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 |
|---|---|---|---|---|---|---|---|---|---|
859035ce5d210a4dd0dd01ccfb71a7141d537573 | src/Stripe.net/Services/Plans/StripePlanUpdateOptions.cs | src/Stripe.net/Services/Plans/StripePlanUpdateOptions.cs | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Stripe
{
public class StripePlanUpdateOptions : StripeBaseOptions, ISupportMetadata
{
[JsonProperty("active")]
public bool? Active { get; set; }
[JsonProperty("metadata")]
public Dictionary<string, string> Meta... | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Stripe
{
public class StripePlanUpdateOptions : StripeBaseOptions, ISupportMetadata
{
[JsonProperty("active")]
public bool? Active { get; set; }
[JsonProperty("metadata")]
public Dictionary<string, string> Meta... | Add support for `product` on the Plan Update API | Add support for `product` on the Plan Update API
| C# | apache-2.0 | richardlawley/stripe.net,stripe/stripe-dotnet |
710a7524a14f6ffc5791311c5eac79bfced68246 | subprocess/Program.cs | subprocess/Program.cs | using System;
using CefSharp.BrowserSubprocess;
namespace TweetDuck.Browser{
static class Program{
internal const string Version = "1.4.1.0";
private static int Main(string[] args){
SubProcess.EnableHighDPISupport();
const string typePrefix = "--type=";
... | using System;
using System.Diagnostics;
using System.Threading.Tasks;
using CefSharp.BrowserSubprocess;
namespace TweetDuck.Browser{
static class Program{
internal const string Version = "1.4.1.0";
private static int Main(string[] args){
SubProcess.EnableHighDPISupport();
... | Kill subprocess if it doesn't exit after the app is closed | Kill subprocess if it doesn't exit after the app is closed
| C# | mit | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck |
6dd905fc641faafa49d6a1c36f57aaf62e4dfe45 | src/Defs/MainButtonWorkerToggleWorld.cs | src/Defs/MainButtonWorkerToggleWorld.cs | using RimWorld;
using Verse;
namespace PrepareLanding.Defs
{
/// <summary>
/// This class is called from a definition file when clicking the "World" button on the bottom menu bar while playing
/// (see "PrepareLanding/Defs/Misc/MainButtonDefs/MainButtons.xml").
/// </summary>
public class MainBut... | using RimWorld;
using Verse;
namespace PrepareLanding.Defs
{
/// <summary>
/// This class is called from a definition file when clicking the "World" button on the bottom menu bar while playing
/// (see "\PrepareLanding\Patches\MainButtonDef_Patch.xml").
/// </summary>
public class MainButtonWorke... | Fix comment about the patch path. | Fix comment about the patch path.
| C# | mit | neitsa/PrepareLanding,neitsa/PrepareLanding |
3bf1058969c881588e0e801b4917cd56ea6b250a | src/ZobShop.Services/CategoryService.cs | src/ZobShop.Services/CategoryService.cs | using System.Linq;
using ZobShop.Data.Contracts;
using ZobShop.Factories;
using ZobShop.Models;
using ZobShop.Services.Contracts;
namespace ZobShop.Services
{
public class CategoryService : ICategoryService
{
private readonly IRepository<Category> repository;
private readonly IUnitOfWork unitO... | using System;
using System.Linq;
using ZobShop.Data.Contracts;
using ZobShop.Factories;
using ZobShop.Models;
using ZobShop.Services.Contracts;
namespace ZobShop.Services
{
public class CategoryService : ICategoryService
{
private readonly IRepository<Category> repository;
private readonly IUn... | Add category service constructor validation | Add category service constructor validation
| C# | mit | Branimir123/ZobShop,Branimir123/ZobShop,Branimir123/ZobShop |
fc4c48ea8c3a03c1303f24627b1990e07ab46b50 | src/InEngine.Commands/AlwaysSucceed.cs | src/InEngine.Commands/AlwaysSucceed.cs | using InEngine.Core;
namespace InEngine.Commands
{
/// <summary>
/// Dummy command for testing and sample code.
/// </summary>
public class AlwaysSucceed : AbstractCommand
{
public override void Run()
{
Info("Ths command always succeeds.");
}
}
}
| using InEngine.Core;
namespace InEngine.Commands
{
/// <summary>
/// Dummy command for testing and sample code.
/// </summary>
public class AlwaysSucceed : AbstractCommand
{
public override void Run()
{
Info("This command always succeeds.");
}
}
}
| Fix typo in succeed command output | Fix typo in succeed command output
| C# | mit | InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET |
d17b4f6978697885af87586d64fd04f11d23112e | WalletWasabi.Gui/Controls/LockScreen/PinLockScreen.xaml.cs | WalletWasabi.Gui/Controls/LockScreen/PinLockScreen.xaml.cs | using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using Avalonia;
using Avalonia.Input;
using ReactiveUI;
using System.Reactive.Linq;
using System;
namespace WalletWasabi.Gui.Controls.LockScreen
{
public class PinLockScreen : UserControl
{
public static readonly DirectProperty<PinLockScreen, bool> IsLockedPrope... | using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using Avalonia;
using Avalonia.Input;
using ReactiveUI;
using System.Reactive.Linq;
using System;
using Avalonia.LogicalTree;
namespace WalletWasabi.Gui.Controls.LockScreen
{
public class PinLockScreen : UserControl
{
public static readonly DirectProperty<PinLoc... | Set the focus of passwordbox after app start. | Set the focus of passwordbox after app start.
| C# | mit | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet |
bf94d22b2f054275eaa65f1f91384a3101bdef37 | src/ScriptCs.Octokit.Sample/sample.csx | src/ScriptCs.Octokit.Sample/sample.csx | var octokit = Require<OctokitPack>();
var client = octokit.Create("ScriptCs.Octokit");
var userTask = client.User.Get("alfhenrik");
var user = userTask.Result;
Console.WriteLine(user.Name);
var repoTask = client.Repository.GetAllBranches("alfhenrik", "octokit.net");
var branches = repoTask.Result;
Console.WriteLine(br... | var octokit = Require<OctokitPack>();
var client = octokit.Create("ScriptCs.Octokit");
var userTask = client.User.Get("alfhenrik");
var user = userTask.Result;
Console.WriteLine(user.Name);
var repoTask = client.Repository.Branch.GetAll("alfhenrik", "octokit.net");
var branches = repoTask.Result;
Console.WriteLine(bra... | Fix integration test due to breaking change in latest Octokit.net release | Fix integration test due to breaking change in latest Octokit.net release
| C# | mit | alfhenrik/ScriptCs.OctoKit |
13499d0f7b0c57e95226ded8facc85319cb7e60c | Mocca/MoccaCompiler.cs | Mocca/MoccaCompiler.cs | using System;
namespace Mocca {
public class MoccaCompiler {
public MoccaCompiler() {
}
}
}
| using System;
using System.Collections.Generic;
using System.Text;
using Mocca.DataType;
namespace Mocca {
public enum TargetLanguage {
Python, // Now available
Java, // NOT available
Javascript, // NOT available
C_sharp, // NOT available
Swift // NOT Available
}
public interface Compiler {
string ... | Add Target Language, Compiler Interface | Add Target Language, Compiler Interface
| C# | mit | ngEPL/Mocca |
9b34cb365541ec2f1e4e057368f2dfdd96f85384 | JoinRpg.Domain/FieldExtensions.cs | JoinRpg.Domain/FieldExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using JoinRpg.DataModel;
namespace JoinRpg.Domain
{
public static class FieldExtensions
{
public static bool HasValueList(this ProjectField field)
{
return field.FieldType == ProjectFieldType.Dropdown || field.FieldType == ProjectFie... | using System;
using System.Collections.Generic;
using System.Linq;
using JoinRpg.DataModel;
namespace JoinRpg.Domain
{
public static class FieldExtensions
{
public static bool HasValueList(this ProjectField field)
{
return field.FieldType == ProjectFieldType.Dropdown || field.FieldType == ProjectFie... | Hide already deleted variants if not set | Hide already deleted variants if not set
| C# | mit | leotsarev/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net |
0ba2b20c0d588e7580dcec903a3c132a2e78cb8d | SettlersOfCatan/Mutable/Player.cs | SettlersOfCatan/Mutable/Player.cs |
namespace SettlersOfCatan.Mutable
{
public class Player
{
public Resources Hand { get; private set; }
public Player()
{
Hand = new Resources();
}
public void Trade(Player other, Resources give, Resources take)
{
Hand.RequireAtLeast(give... |
namespace SettlersOfCatan.Mutable
{
public class Player
{
public Resources Hand { get; }
public Player()
{
Hand = new Resources();
}
public void Trade(Player other, Resources give, Resources take)
{
Hand.RequireAtLeast(give);
... | Use getter only auto property for player resources. | Use getter only auto property for player resources.
| C# | mit | michaellperry/dof |
c55c16ccef5ddfa6e6194e1331d012568d833597 | tools/src/MyGet/DataServices/Routes.cs | tools/src/MyGet/DataServices/Routes.cs | using System.Data.Services;
using System.ServiceModel.Activation;
using System.Web.Routing;
using NuGet.Server;
using NuGet.Server.DataServices;
using NuGet.Server.Publishing;
using RouteMagic;
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(MyGet.NuGetRoutes), "Start")]
namespace MyGet
{
public static... | using System.Data.Services;
using System.ServiceModel.Activation;
using System.Web.Routing;
using NuGet.Server;
using NuGet.Server.DataServices;
using NuGet.Server.Publishing;
using RouteMagic;
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(MyGet.NuGetRoutes), "Start")]
namespace MyGet {
public static... | Use default routes from package. | Use default routes from package.
| C# | bsd-2-clause | chtoucas/Narvalo.NET,chtoucas/Narvalo.NET |
a0718326f57f64b598f8a9ac0bb9373d10b5b73b | VGPrompter/Logger.cs | VGPrompter/Logger.cs | using System;
namespace VGPrompter {
public class Logger {
public bool Enabled { get; set; }
public string Name { get; private set; }
Action<object> _logger;
public Logger(bool enabled = true) : this("Default", enabled: enabled) { }
public Logger(string name, Action<obj... | using System;
namespace VGPrompter {
[Serializable]
public class Logger {
public bool Enabled { get; set; }
public string Name { get; private set; }
Action<object> _logger;
public Logger(bool enabled = true) : this("Default", enabled: enabled) { }
public Logger(stri... | Fix regression in Script serialization | Fix regression in Script serialization
Since the logger in Script is no longer static, the Logger class needs to be serializable.
| C# | mit | eugeniusfox/vgprompter |
9621958556aa5583f79d0d351fa410e92bde5c67 | kafka-net/DefaultPartitionSelector.cs | kafka-net/DefaultPartitionSelector.cs | using System;
using System.Collections.Concurrent;
using System.Linq;
using KafkaNet.Model;
using KafkaNet.Protocol;
namespace KafkaNet
{
public class DefaultPartitionSelector : IPartitionSelector
{
private readonly ConcurrentDictionary<string, Partition> _roundRobinTracker = new ConcurrentDictionary<... | using System;
using System.Collections.Concurrent;
using System.Linq;
using KafkaNet.Model;
using KafkaNet.Protocol;
namespace KafkaNet
{
public class DefaultPartitionSelector : IPartitionSelector
{
private readonly ConcurrentDictionary<string, Partition> _roundRobinTracker = new ConcurrentDictionary<... | Fix error in hash key selector would return -1 | Fix error in hash key selector would return -1
| C# | apache-2.0 | PKRoma/kafka-net,CenturyLinkCloud/kafka-net,Jroland/kafka-net,aNutForAJarOfTuna/kafka-net,gigya/KafkaNetClient,bridgewell/kafka-net,nightkid1027/kafka-net,BDeus/KafkaNetClient,martijnhoekstra/kafka-net,EranOfer/KafkaNetClient,geffzhang/kafka-net |
80ef1b69f07a943961c5000d1fd2a4be21efe4e2 | src/keypay-dotnet/ApiFunctions/V2/ManagerFunction.cs | src/keypay-dotnet/ApiFunctions/V2/ManagerFunction.cs | using KeyPay.DomainModels.V2.Business;
using KeyPay.DomainModels.V2.Manager;
using System.Collections.Generic;
namespace KeyPay.ApiFunctions.V2
{
public class ManagerFunction : BaseFunction
{
public ManagerFunction(ApiRequestExecutor api) : base(api)
{
LeaveRequests = new ManagerLea... | using KeyPay.DomainModels.V2.Business;
using KeyPay.DomainModels.V2.Manager;
using System.Collections.Generic;
namespace KeyPay.ApiFunctions.V2
{
public class ManagerFunction : BaseFunction
{
public ManagerFunction(ApiRequestExecutor api) : base(api)
{
LeaveRequests = new ManagerLea... | Include manager leave request functions and update to version 1.1.0.15-rc2 | Include manager leave request functions and update to version 1.1.0.15-rc2
| C# | mit | KeyPay/keypay-dotnet,KeyPay/keypay-dotnet,KeyPay/keypay-dotnet,KeyPay/keypay-dotnet |
9c3ccfca13b80ab6b80479d27e1c344af78bc962 | MIMWebClient/Core/Update/UpdateWorld.cs | MIMWebClient/Core/Update/UpdateWorld.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
namespace MIMWebClient.Core.Update
{
public class UpdateWorld
{
public static void Init()
{
Task.Run(UpdateTime);
}
... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
namespace MIMWebClient.Core.Update
{
public class UpdateWorld
{
public static void Init()
{
Task.Run(UpdateTime);
}
... | Update Delay to 30 seconds | Update Delay to 30 seconds
| C# | mit | LiamKenneth/ArchaicQuest,LiamKenneth/ArchaicQuest,LiamKenneth/ArchaicQuest,LiamKenneth/MIM,LiamKenneth/MIM,LiamKenneth/ArchaicQuest,LiamKenneth/MIM |
7facad1ba03c33a1ba8f6968f79cce31e702c66b | Engine/GameObject/PrefabsPool.cs | Engine/GameObject/PrefabsPool.cs | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PrefabsPool : GameObjectBehavior {
public Dictionary<string, GameObject> prefabs;
// Only one ObjectPoolManager can exist. We use a singleton pattern to enforce this.
private static PrefabsPo... | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PrefabsPool : GameObjectBehavior {
public Dictionary<string, GameObject> prefabs;
// Only one ObjectPoolManager can exist. We use a singleton pattern to enforce this.
private static PrefabsPo... | Update prefabs resources.load flow, fix dual load. | Update prefabs resources.load flow, fix dual load.
| C# | mit | drawcode/game-lib-engine |
924e8521ae9765af922b73be17cd22893d69e7f6 | BMPClient/Program.cs | BMPClient/Program.cs | using System;
using System.Net;
using BmpListener.Bmp;
using BmpListener.JSON;
using Newtonsoft.Json;
namespace BmpListener
{
internal class Program
{
private static void Main()
{
JsonConvert.DefaultSettings = () =>
{
var settings = new JsonSerializerSet... | using System;
using System.Net;
using BmpListener.Bmp;
using BmpListener.JSON;
using Newtonsoft.Json;
namespace BmpListener
{
internal class Program
{
private static void Main()
{
JsonConvert.DefaultSettings = () =>
{
var settings = new JsonSerializerSet... | Change default behaviour to listen on all IP addresses | Change default behaviour to listen on all IP addresses
| C# | mit | mstrother/BmpListener |
04cfae9bdeb525855a34527a217e8b2cba34b115 | osu.Game/Database/RealmLiveUnmanaged.cs | osu.Game/Database/RealmLiveUnmanaged.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 Realms;
#nullable enable
namespace osu.Game.Database
{
/// <summary>
/// Provides a method of working with unmanaged realm objects.
/// ... | // 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 Realms;
#nullable enable
namespace osu.Game.Database
{
/// <summary>
/// Provides a method of working with unmanaged realm objects.
/// ... | Fix "Random Skin" text not showing up correctly | Fix "Random Skin" text not showing up correctly
| C# | mit | NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu |
53d8a0e4e955f5e8c57babc3c9e69b025df2fd45 | src/git-istage/ConsoleCommand.cs | src/git-istage/ConsoleCommand.cs | using System;
namespace GitIStage
{
internal sealed class ConsoleCommand
{
private readonly Action _handler;
private readonly ConsoleKey _key;
public readonly string Description;
private readonly ConsoleModifiers _modifiers;
public ConsoleCommand(Action handler, Console... | using System;
namespace GitIStage
{
internal sealed class ConsoleCommand
{
private readonly Action _handler;
private readonly ConsoleKey _key;
public readonly string Description;
private readonly ConsoleModifiers _modifiers;
public ConsoleCommand(Action handler, Console... | Change CTRL to Ctrl in commands description. | Change CTRL to Ctrl in commands description.
Co-Authored-By: tomaszprasolek <1a877c38cb151259581ee0940a398d86d3acddc2@o2.pl> | C# | mit | terrajobst/git-istage,terrajobst/git-istage |
e8bd737f10b003aea52e54e8e182c90eb589b68c | ComputeClient/Compute.Contracts/Backup/ServicePlan.cs | ComputeClient/Compute.Contracts/Backup/ServicePlan.cs | namespace DD.CBU.Compute.Api.Contracts.Backup
{
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.18020")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://oec.api.opsource.net/schemas/backup")]
public enum ServicePlan {
... | namespace DD.CBU.Compute.Api.Contracts.Backup
{
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.18020")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://oec.api.opsource.net/schemas/backup")]
public enum ServicePlan {
... | Change default backup service plan enum value. | Change default backup service plan enum value.
| C# | mit | DimensionDataCBUSydney/DimensionData.ComputeClient,riveryc/DimensionData.ComputeClient,DimensionDataCBUSydney/Compute.Api.Client,riveryc/DimensionData.ComputeClient,DimensionDataCBUSydney/DimensionData.ComputeClient,riveryc/DimensionData.ComputeClient,samuelchong/Compute.Api.Client,DimensionDataCBUSydney/DimensionData.... |
1665d6c5254b0df97c75a65e8399e7185851765d | test/csharp/test_SessionState.cs | test/csharp/test_SessionState.cs | using Xunit;
using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Management.Automation;
using System.Management.Automation.Host;
using System.Management.Automation.Internal;
using System.Management.Automation.Internal.Host;
using System.Management.Autom... | using Xunit;
using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Management.Automation;
using System.Management.Automation.Host;
using System.Management.Automation.Internal;
using System.Management.Automation.Internal.Host;
using System.Management.Autom... | Add SessionStateTests to AssemblyLoadContext collection | Add SessionStateTests to AssemblyLoadContext collection
| C# | mit | daxian-dbw/PowerShell,jsoref/PowerShell,TravisEz13/PowerShell,PaulHigin/PowerShell,PaulHigin/PowerShell,JamesWTruher/PowerShell-1,jsoref/PowerShell,bmanikm/PowerShell,JamesWTruher/PowerShell-1,bmanikm/PowerShell,kmosher/PowerShell,KarolKaczmarek/PowerShell,JamesWTruher/PowerShell-1,bmanikm/PowerShell,kmosher/PowerShell... |
56612b09fb0535fc8132231c0752442ea8592db3 | Mail2Bug/Email/AckEmailHandler.cs | Mail2Bug/Email/AckEmailHandler.cs | using System.Text;
using log4net;
using Mail2Bug.Email.EWS;
namespace Mail2Bug.Email
{
class AckEmailHandler
{
private readonly Config.InstanceConfig _config;
public AckEmailHandler(Config.InstanceConfig config)
{
_config = config;
}
/// <summary>
... | using System.Text;
using log4net;
using Mail2Bug.Email.EWS;
namespace Mail2Bug.Email
{
class AckEmailHandler
{
private readonly Config.InstanceConfig _config;
public AckEmailHandler(Config.InstanceConfig config)
{
_config = config;
}
/// <summary>
... | Send Ack emails even if the system is in Simulation Mode. | Send Ack emails even if the system is in Simulation Mode.
| C# | mit | vitru/mail2bug,Spurrya/mail2bug,mrpeterson27/mail2bug,mbmccormick/mail2bug |
1d57d0cba6bd60d0f5a28630b349e75b36ccd89e | src/Discord.Net.Rest/Entities/Invites/RestInviteMetadata.cs | src/Discord.Net.Rest/Entities/Invites/RestInviteMetadata.cs | using System;
using Model = Discord.API.InviteMetadata;
namespace Discord.Rest
{
public class RestInviteMetadata : RestInvite, IInviteMetadata
{
private long _createdAtTicks;
public bool IsRevoked { get; private set; }
public bool IsTemporary { get; private set; }
public int? ... | using System;
using Model = Discord.API.InviteMetadata;
namespace Discord.Rest
{
public class RestInviteMetadata : RestInvite, IInviteMetadata
{
private long _createdAtTicks;
public bool IsRevoked { get; private set; }
public bool IsTemporary { get; private set; }
public int? ... | Add support for invites without attached users | Add support for invites without attached users
| C# | mit | AntiTcb/Discord.Net,Confruggy/Discord.Net,LassieME/Discord.Net,RogueException/Discord.Net |
dd2a0eb00226f0564ef26581edf784177be52313 | src/Webpack.AspNetCore/Static/PhysicalFileManifestReader.cs | src/Webpack.AspNetCore/Static/PhysicalFileManifestReader.cs | using Newtonsoft.Json;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Webpack.AspNetCore.Internal;
namespace Webpack.AspNetCore.Static
{
internal class PhysicalFileManifestReader : IManifestReader
{
private readonly WebpackContext context;
public Physic... | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Webpack.AspNetCore.Internal;
namespace Webpack.AspNetCore.Static
{
internal class PhysicalFileManifestReader : IManifestReader
{
private readonly WebpackContext context;
... | Update exception handling for physical file manifest reader | Update exception handling for physical file manifest reader
| C# | mit | sergeysolovev/webpack-aspnetcore,sergeysolovev/webpack-aspnetcore,sergeysolovev/webpack-aspnetcore |
9b750783527ab7f6daedf410c25832171ffecb9d | Assets/scripts/utils/TableNetworking.cs | Assets/scripts/utils/TableNetworking.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class TableNetworking : NetworkBehaviour
{
[SyncVar]
public string variant;
[SyncVar]
public string table;
[SyncVar]
public bool selected;
[ServerCallback]
void Start ()
{
selected = fal... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class TableNetworking : NetworkBehaviour
{
[SyncVar]
public string variant;
[SyncVar]
public string table;
[SyncVar]
public bool selected;
public float logPingFrequency = 5.0f;
[ServerCallb... | Add debug log for latency on server | Add debug log for latency on server
| C# | mit | Double-Fine-Game-Club/pongball |
9055f5426deecf1069e5e3054cfbee2a09832a66 | Rainy/WebService/Admin/StatusService.cs | Rainy/WebService/Admin/StatusService.cs | using ServiceStack.ServiceHost;
using Rainy.Db;
using ServiceStack.OrmLite;
using System;
using ServiceStack.ServiceInterface.Cors;
using ServiceStack.Common.Web;
namespace Rainy.WebService.Admin
{
[Route("/api/admin/status/","GET, OPTIONS")]
[AdminPasswordRequired]
public class StatusRequest : IReturn<Status>
{
... | using ServiceStack.ServiceHost;
using Rainy.Db;
using ServiceStack.OrmLite;
using System;
using ServiceStack.ServiceInterface.Cors;
using ServiceStack.Common.Web;
namespace Rainy.WebService.Admin
{
[Route("/api/admin/status/","GET, OPTIONS")]
[AdminPasswordRequired]
public class StatusRequest : IReturn<Status>
{
... | Fix division by zero bug for status service | Fix division by zero bug for status service
| C# | agpl-3.0 | Dynalon/Rainy,Dynalon/Rainy,Dynalon/Rainy,Dynalon/Rainy |
a49289141c5760ebd31818af1882d7a569a9c1fb | src/TestHelper/OracleConnectionBuilder.cs | src/TestHelper/OracleConnectionBuilder.cs | #if NETFRAMEWORK
using System;
using Oracle.ManagedDataAccess.Client;
public static class OracleConnectionBuilder
{
public static OracleConnection Build()
{
return Build(false);
}
public static OracleConnection Build(bool disableMetadataPooling)
{
var connection = Environment.GetEn... | using System;
using Oracle.ManagedDataAccess.Client;
public static class OracleConnectionBuilder
{
public static OracleConnection Build()
{
return Build(false);
}
public static OracleConnection Build(bool disableMetadataPooling)
{
var connection = Environment.GetEnvironmentVariable... | Remove conditional Oracle connection builder compilation | Remove conditional Oracle connection builder compilation
| C# | mit | NServiceBusSqlPersistence/NServiceBus.SqlPersistence |
ed36084c25845bfbf69307b1f26499175c3fd933 | samples/MvcSample.Web/Startup.cs | samples/MvcSample.Web/Startup.cs |
#if NET45
using Microsoft.AspNet.Abstractions;
using Microsoft.AspNet.DependencyInjection;
using Microsoft.AspNet.DependencyInjection.Fallback;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Routing;
namespace MvcSample.Web
{
public class Startup
{
public void Configuration(IBuilder builder)
... | using Microsoft.AspNet.Abstractions;
using Microsoft.AspNet.DependencyInjection;
using Microsoft.AspNet.DependencyInjection.Fallback;
using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Routing;
namespace MvcSample.Web
{
public class Startup
{
public void Configuration(IBuilder builder)
{
... | Remove ifdef for net45 in sample | Remove ifdef for net45 in sample
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
5b5e95b69af18a8f22b975fb409e0937f7b70247 | Battery-Commander.Tests/ACFTTests.cs | Battery-Commander.Tests/ACFTTests.cs | using BatteryCommander.Web.Models.Data;
using System;
using Xunit;
namespace BatteryCommander.Tests
{
public class ACFTTests
{
[Theory]
[InlineData(15, 54, 84)]
public void Calculate_Run_Score(int minutes, int seconds, int expected)
{
Assert.Equal(expected, ACFTScor... | using BatteryCommander.Web.Models.Data;
using System;
using Xunit;
namespace BatteryCommander.Tests
{
public class ACFTTests
{
[Theory]
[InlineData(15, 54, 84)]
[InlineData(13, 29, 100)]
[InlineData(23, 01, 0)]
[InlineData(19, 05, 64)]
[InlineData(17, 42, 72)]
... | Add basic test for pushups and run | Add basic test for pushups and run
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
8e961dba625185f4742ddc2e27b67bfc37af90af | Commencement.Core/Domain/Template.cs | Commencement.Core/Domain/Template.cs | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using FluentNHibernate.Mapping;
using UCDArch.Core.DomainModel;
namespace Commencement.Core.Domain
{
public class Template : DomainObject
{
public Template(string bodyText, TemplateType templateType, Ceremony cerem... | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using FluentNHibernate.Mapping;
using UCDArch.Core.DomainModel;
namespace Commencement.Core.Domain
{
public class Template : DomainObject
{
public Template(string bodyText, TemplateType templateType, Ceremony cerem... | Make sure BodyText can take a large string. | Make sure BodyText can take a large string.
| C# | mit | ucdavis/Commencement,ucdavis/Commencement,ucdavis/Commencement |
93fe57d39970ee9c9dcc7dc0a757c2537aa10e55 | osu.Game.Tests/NonVisual/BeatmapSetInfoEqualityTest.cs | osu.Game.Tests/NonVisual/BeatmapSetInfoEqualityTest.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 NUnit.Framework;
using osu.Game.Beatmaps;
namespace osu.Game.Tests.NonVisual
{
[TestFixture]
public class BeatmapSetInfoEqualityTest
{
[Test]
... | // 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 NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Extensions;
namespace osu.Game.Tests.NonVisual
{
[TestFixture]
public class BeatmapSetInfoEquality... | Update tests to match new equality not including online ID checks | Update tests to match new equality not including online ID checks
| C# | mit | ppy/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu |
456a83f396932bdf65f31f151cbc5ef5141c0542 | ExpressionToCodeTest/ApprovalTest.cs | ExpressionToCodeTest/ApprovalTest.cs | using System.IO;
using System.Runtime.CompilerServices;
using Assent;
namespace ExpressionToCodeTest
{
static class ApprovalTest
{
public static void Verify(string text, [CallerFilePath] string filepath = null, [CallerMemberName] string membername = null)
{
var filename = ... | using System.IO;
using System.Runtime.CompilerServices;
using Assent;
namespace ExpressionToCodeTest
{
static class ApprovalTest
{
public static void Verify(string text, [CallerFilePath] string filepath = null, [CallerMemberName] string membername = null)
{
var filename = ... | Throw exception for crazy input | Throw exception for crazy input
| C# | apache-2.0 | EamonNerbonne/ExpressionToCode |
bb8ce18207a48a01e4e9ffa878392c27103e3cd5 | tests/Faker.Tests/RandomNumberFixture.cs | tests/Faker.Tests/RandomNumberFixture.cs | using System;
using System.Linq;
using NUnit.Framework;
namespace Faker.Tests
{
[TestFixture]
public class RandomNumberFixture
{
[TestCase(1, "Coin flip")] // 0 ... 1 Coin flip
[TestCase(6, "6 sided die")] // 0 .. 6
[TestCase(9, "Random single digit")] // 0 ... 9
[TestCase(... | using System;
using System.Linq;
using NUnit.Framework;
namespace Faker.Tests
{
[TestFixture]
public class RandomNumberFixture
{
[TestCase(1, "Coin flip")] // 0 ... 1 Coin flip
[TestCase(6, "6 sided die")] // 0 .. 6
[TestCase(9, "Random single digit")] // 0 ... 9
[TestCase(... | Fix name on test console write out | Fix name on test console write out
| C# | mit | oriches/faker-cs,oriches/faker-cs |
b2e29c2473db10f46394ded80f88f548df54c8e2 | src/Data/Settings.cs | src/Data/Settings.cs | using System;
namespace Rooijakkers.MeditationTimer.Data
{
/// <summary>
/// Stores settings data in local settings storage
/// </summary>
public class Settings
{
private const string TIME_TO_GET_READY_IN_SECONDS_STORAGE = "TimeToGetReadyStorage";
public TimeSpan TimeToGetReady
... | using System;
namespace Rooijakkers.MeditationTimer.Data
{
/// <summary>
/// Stores settings data in local settings storage
/// </summary>
public class Settings
{
private const string TIME_TO_GET_READY_IN_SECONDS_STORAGE = "TimeToGetReadyStorage";
public TimeSpan TimeToGetReady
... | Make settings object bit cleaner | Make settings object bit cleaner
| C# | mit | erooijak/MeditationTimer |
3fb41a20b55aa7e2d5270195e1a182dec18ed80b | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoomSettings.cs | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoomSettings.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using osu.Game.Online.API;
namespace osu.Game.Online.Re... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using osu.Game.Online.API;
namespace osu.Game.Online.Re... | Add room name to settings | Add room name to settings
| C# | mit | smoogipoo/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,ppy/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu |
840a96480fdf7ba510152b16e59d6f80f7aa295d | CalendarProxy/Views/Shared/_Layout.cshtml | CalendarProxy/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Calendar Proxy</title>
<link href="~/Content/iCalStyles.min.css" rel="stylesheet" />
<link href="~/Content/timer.min.css" rel="stylesheet" />
<li... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Calendar Proxy</title>
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/iCalStyles.min.css" rel="stylesheet" />
... | Add missing bootstrap reference (after removing bootswatch) | Add missing bootstrap reference (after removing bootswatch)
| C# | mit | taurit/TodoistCalendar,taurit/TodoistCalendar,taurit/CalendarProxy,taurit/CalendarProxy,taurit/TodoistCalendar |
1032ba42c3813af861604bd9fc2e116c5cc5e458 | OmniSharp/Rename/ModifiedFileResponse.cs | OmniSharp/Rename/ModifiedFileResponse.cs | namespace OmniSharp.Rename
{
public class ModifiedFileResponse
{
public ModifiedFileResponse() {}
public ModifiedFileResponse(string fileName, string buffer) {
this.FileName = fileName;
this.Buffer = buffer;
}
public string FileName { get; set; }
... | using OmniSharp.Solution;
namespace OmniSharp.Rename
{
public class ModifiedFileResponse
{
private string _fileName;
public ModifiedFileResponse() {}
public ModifiedFileResponse(string fileName, string buffer) {
this.FileName = fileName;
this.Buffer = buffer;
... | Add Cygwin path replacement for Rename/Override | Add Cygwin path replacement for Rename/Override
| C# | mit | x335/omnisharp-server,corngood/omnisharp-server,syl20bnr/omnisharp-server,corngood/omnisharp-server,x335/omnisharp-server,syl20bnr/omnisharp-server,svermeulen/omnisharp-server,OmniSharp/omnisharp-server |
53e1d700d4896e893cc1d743c8c58e1c7af16129 | Gu.Units.Tests/UnitParserTests.cs | Gu.Units.Tests/UnitParserTests.cs | namespace Gu.Units.Tests
{
using NUnit.Framework;
public class UnitParserTests
{
[TestCase("1m", 1)]
[TestCase("-1m", -1)]
[TestCase("1e3m", 1e3)]
[TestCase("1e+3m", 1e+3)]
[TestCase("-1e+3m", -1e+3)]
[TestCase("1e-3m", 1e-3)]
[TestCase("-1e-3m", -1e... | namespace Gu.Units.Tests
{
using NUnit.Framework;
public class UnitParserTests
{
[TestCase("1m", 1)]
[TestCase("-1m", 1)]
[TestCase("1e3m", 1e3)]
[TestCase("1e+3m", 1e+3)]
[TestCase("1e-3m", 1e-3)]
[TestCase(" 1m", 1)]
[TestCase("1 m", 1)]
[T... | Revert "Added 5 tests for Length and a test for Time" | Revert "Added 5 tests for Length and a test for Time"
This reverts commit fc9d9dd8deef45fa4946f25d9293d1c6fc8bf970.
| C# | mit | JohanLarsson/Gu.Units |
56e27f01d72f7c4a786fbdd570143dba1b590396 | Source/Eto.Mac/Properties/AssemblyInfo.cs | Source/Eto.Mac/Properties/AssemblyInfo.cs | using System.Reflection;
#if XAMMAC
[assembly: AssemblyTitle("Eto.Forms - OS X Platform using Xamarin.Mac")]
[assembly: AssemblyDescription("OS X Platform for the Eto.Forms UI Framework using Xamarin.Mac")]
#else
[assembly: AssemblyTitle("Eto.Forms - OS X Platform using MonoMac")]
[assembly: AssemblyDescription("OS X ... | using System.Reflection;
#if XAMMAC
[assembly: AssemblyTitle("Eto.Forms - Xamarin.Mac Platform")]
[assembly: AssemblyDescription("OS X Platform for the Eto.Forms UI Framework using Xamarin.Mac")]
#elif Mac64
[assembly: AssemblyTitle("Eto.Forms - MonoMac Platform")]
[assembly: AssemblyDescription("OS X Platform for the... | Use better title for Mac/Mac64/XamMac assemblies/nuget packages | Use better title for Mac/Mac64/XamMac assemblies/nuget packages
| C# | bsd-3-clause | l8s/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1,l8s/Eto,PowerOfCode/Eto,l8s/Eto,PowerOfCode/Eto |
0084527eab1f2b8586258050cf300a296398295b | mvc-individual-authentication/Views/Shared/_LoginPartial.cshtml | mvc-individual-authentication/Views/Shared/_LoginPartial.cshtml | @using Microsoft.AspNetCore.Identity
@using mvc_individual_authentication.Models
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
@if (SignInManager.IsSignedIn(User))
{
<form asp-area="" asp-controller="Account" asp-action="Logout" method="post" id="log... | @using Microsoft.AspNetCore.Identity
@using mvc_individual_authentication.Models
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
@if (SignInManager.IsSignedIn(User))
{
<form asp-area="" asp-controller="Account" asp-action="Logout" method="post" class="... | Rework login partial to BS4 | Rework login partial to BS4
| C# | mit | peterblazejewicz/aspnet-5-bootstrap-4,peterblazejewicz/aspnet-5-bootstrap-4 |
3020a3a4bc32a2c61d2dbf654705bbf1ad5ccb78 | Microsoft.DirectX/AssemblyInfo.cs | Microsoft.DirectX/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.
using System;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Microsoft.DirectX")]
[assembly: AssemblyDescr... | 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.
using System;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Microsoft.DirectX")]
[assembly: AssemblyDescr... | Set specific version for Microsoft.DirectX.dll. | Set specific version for Microsoft.DirectX.dll.
This is needed for strong-name references to work.
| C# | mit | alesliehughes/monoDX,alesliehughes/monoDX |
f9a6468ba47d1bf98233946f9e0b49499189ecba | Yeena/PathOfExile/PoEItemSocket.cs | Yeena/PathOfExile/PoEItemSocket.cs | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | Use ToString instead of Enum.GetName | Use ToString instead of Enum.GetName
| C# | apache-2.0 | jcmoyer/Yeena |
d9e0e39a898acbc2a64fbf18bb90a924fe17be5f | TopLevelProgramExample/Program.cs | TopLevelProgramExample/Program.cs | using System;
Console.WriteLine("Hello World!");
| using System;
using System.Linq.Expressions;
using ExpressionToCodeLib;
const int SomeConst = 27;
var myVariable = "implicitly closed over";
var withImplicitType = new {
A = "ImplicitTypeMember",
};
Console.WriteLine(ExpressionToCode.ToCode(() => myVariable));
new InnerClass().DoIt();
LocalFunction(123... | Add a bunch of junk you might find in a top-level program | Add a bunch of junk you might find in a top-level program
| C# | apache-2.0 | EamonNerbonne/ExpressionToCode |
73e9a902a1372cfd2a3bb96ee4d2f24afc3df111 | src/SlackConnector.Tests.Unit/SlackConnectionTests/PingTests.cs | src/SlackConnector.Tests.Unit/SlackConnectionTests/PingTests.cs | using System.Threading.Tasks;
using Moq;
using NUnit.Framework;
using Ploeh.AutoFixture.NUnit3;
using SlackConnector.Connections;
using SlackConnector.Connections.Clients.Channel;
using SlackConnector.Connections.Models;
using SlackConnector.Connections.Sockets;
using SlackConnector.Connections.Sockets.Messages.Outbou... | using System.Threading.Tasks;
using Moq;
using NUnit.Framework;
using Ploeh.AutoFixture.NUnit3;
using SlackConnector.Connections;
using SlackConnector.Connections.Sockets;
using SlackConnector.Connections.Sockets.Messages.Outbound;
using SlackConnector.Models;
namespace SlackConnector.Tests.Unit.SlackConnectionTests
... | Remove unused depedency from test | Remove unused depedency from test
| C# | mit | noobot/SlackConnector |
3ad687023bc4abf4133d26476e9d930c6d952247 | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Repo/IRepository.cs | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Repo/IRepository.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo
{
public interface IRepository<TEntity, TPk>
where TEntity : class
{
TEntity GetKey(TPk key, ISession session);
Tas... | using System.Collections.Generic;
using System.Threading.Tasks;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo
{
public interface IRepository<TEntity, TPk>
where TEntity : class
{
TEntity GetKey(TPk key, ISession session);
TEn... | Expand interface to be more testable. So methods must have a session (i.e. not null) and add a generic for session when no session is needed. | Expand interface to be more testable. So methods must have a session (i.e. not null) and add a generic for session when no session is needed.
| C# | mit | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork |
93b639c93a204423513a9b8133021d42a7ab6b17 | source/Glimpse.Core/Plugin/Assist/FormattingKeywords.cs | source/Glimpse.Core/Plugin/Assist/FormattingKeywords.cs | namespace Glimpse.Core.Plugin.Assist
{
public static class FormattingKeywords
{
public const string Error = "error";
public const string Fail = "fail";
public const string Info = "info";
public const string Loading = "loading";
public const string Ms = "ms";
publ... | namespace Glimpse.Core.Plugin.Assist
{
public static class FormattingKeywords
{
public const string Error = "error";
public const string Fail = "fail";
public const string Info = "info";
public const string Loading = "loading";
public const string Ms = "ms";
publ... | Convert FormattingKeyword enum to it class name counterparts | Convert FormattingKeyword enum to it class name counterparts
| C# | apache-2.0 | SusanaL/Glimpse,rho24/Glimpse,paynecrl97/Glimpse,gabrielweyer/Glimpse,codevlabs/Glimpse,elkingtonmcb/Glimpse,codevlabs/Glimpse,elkingtonmcb/Glimpse,SusanaL/Glimpse,flcdrg/Glimpse,paynecrl97/Glimpse,sorenhl/Glimpse,dudzon/Glimpse,flcdrg/Glimpse,sorenhl/Glimpse,SusanaL/Glimpse,rho24/Glimpse,gabrielweyer/Glimpse,Glimpse/G... |
e6329f4123fe6ed60de4871e96e46e3207b46a2c | src/Auth0.AuthenticationApi/OpenIdConfigurationCache.cs | src/Auth0.AuthenticationApi/OpenIdConfigurationCache.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.IdentityModel.Protocols;
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
namespace Auth0.AuthenticationApi
{
internal class OpenIdConfigurationCache
... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.IdentityModel.Protocols;
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
namespace Auth0.AuthenticationApi
{
internal class OpenIdConfigurationCache
... | Load OIDC configuration from root of Authority | Load OIDC configuration from root of Authority
| C# | mit | auth0/auth0.net,jerriep/auth0.net,auth0/auth0.net,jerriep/auth0.net,jerriep/auth0.net |
bf6815b2a7496042bf63538349eaf048594c1a25 | osu.Game.Tests/Visual/TestCaseOsuGame.cs | osu.Game.Tests/Visual/TestCaseOsuGame.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 NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Screens;
us... | // 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 NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;... | Fix OsuGame test case not working | Fix OsuGame test case not working
| C# | mit | naoey/osu,DrabWeb/osu,ZLima12/osu,ZLima12/osu,DrabWeb/osu,UselessToucan/osu,ppy/osu,EVAST9919/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,2yangk23/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,smoogipooo/osu,NeoAdonis/osu,NeoAdonis/osu,naoey/osu,johnneijzen/osu,UselessToucan/osu,2yangk23/osu,johnneijzen/osu,EVAST9919/osu,ppy... |
bcd61e8ad2204611d1c3969ce62bca470e4ded76 | Assets/Scripts/HarryPotterUnity/Utils/StaticCoroutine.cs | Assets/Scripts/HarryPotterUnity/Utils/StaticCoroutine.cs | using System.Collections;
using JetBrains.Annotations;
using UnityEngine;
namespace HarryPotterUnity.Utils
{
public class StaticCoroutine : MonoBehaviour
{
private static StaticCoroutine _mInstance;
private static StaticCoroutine Instance
{
get
{
... | using System.Collections;
using JetBrains.Annotations;
using UnityEngine;
namespace HarryPotterUnity.Utils
{
public class StaticCoroutine : MonoBehaviour
{
private static StaticCoroutine _mInstance;
private static StaticCoroutine Instance
{
get
{
... | Stop all coroutines on Die() | Stop all coroutines on Die()
| C# | mit | StefanoFiumara/Harry-Potter-Unity |
ca3e85d395dfadadf309e6111f254eea35cdcbde | src/mscorlib/src/System/Reflection/Metadata/AssemblyExtensions.cs | src/mscorlib/src/System/Reflection/Metadata/AssemblyExtensions.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
namespace System.Reflection.Metadata
{
public static class Asse... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
namespace System.Reflection.Metadata
{
public static class Asse... | Fix TryGetRawMetadata to return false when the assembly is not a RuntimeAssembly | Fix TryGetRawMetadata to return false when the assembly is not a RuntimeAssembly
Related to dotnet/corefx#2768
| C# | mit | cmckinsey/coreclr,jamesqo/coreclr,ramarag/coreclr,blackdwarf/coreclr,yeaicc/coreclr,ramarag/coreclr,dasMulli/coreclr,manu-silicon/coreclr,OryJuVog/coreclr,wkchoy74/coreclr,taylorjonl/coreclr,parjong/coreclr,ruben-ayrapetyan/coreclr,wkchoy74/coreclr,mskvortsov/coreclr,James-Ko/coreclr,AlfredoMS/coreclr,schellap/coreclr,... |
6d091534699a1fcfeca8cf235e17c6d69507cd34 | src/FromString.Tests/ParsedTTests.cs | src/FromString.Tests/ParsedTTests.cs | using System;
using Xunit;
namespace FromString.Tests
{
public class ParsedTTests
{
[Fact]
public void CanParseAnInt()
{
var parsedInt = new Parsed<int>("123");
Assert.True(parsedInt.HasValue);
Assert.Equal(123, parsedInt.Value);
}
... | using System;
using Xunit;
namespace FromString.Tests
{
public class ParsedTTests
{
[Fact]
public void CanParseAnInt()
{
var parsedInt = new Parsed<int>("123");
Assert.True(parsedInt.HasValue);
Assert.Equal(123, parsedInt.Value);
}
... | Test parsing valid absolute URI | Test parsing valid absolute URI
| C# | mit | vgrigoriu/FromString |
55cc509f2f6e51388b752a79577c6ff7de443c5c | src/SwissArmyKnife.Benchmarks/Program.cs | src/SwissArmyKnife.Benchmarks/Program.cs | using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
using SwissArmyKnife.Benchmarks.Benches.Extensions;
using System;
using BenchmarkDotNet.Diagnosers;
using BenchmarkDotNet.Toolchains.CsProj;
namespace SwissArmyKnife.Benchmarks
{
class Program
{
private static vo... | using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
using SwissArmyKnife.Benchmarks.Benches.Extensions;
using System;
using BenchmarkDotNet.Diagnosers;
using BenchmarkDotNet.Toolchains.CsProj;
namespace SwissArmyKnife.Benchmarks
{
class Program
{
private static vo... | Remove running benchmarks on .NET Core 2.1 | Remove running benchmarks on .NET Core 2.1
We're only running benchmarks on the latest LTS releases of frameworks, so currently we're only running benchmarks on .NET 4.8 and .NET Core 3.1.
| C# | mit | akamsteeg/SwissArmyKnife |
f54fb1c4ac98bc724f7cc9945b11d2e32a308bd0 | BudgetAnalyser.Engine/Widgets/BudgetBucketMonitorWidget.cs | BudgetAnalyser.Engine/Widgets/BudgetBucketMonitorWidget.cs | using System;
using BudgetAnalyser.Engine.Annotations;
namespace BudgetAnalyser.Engine.Widgets
{
public sealed class BudgetBucketMonitorWidget : RemainingBudgetBucketWidget, IUserDefinedWidget
{
private readonly string disabledToolTip;
private string doNotUseId;
public Budge... | using System;
using BudgetAnalyser.Engine.Annotations;
namespace BudgetAnalyser.Engine.Widgets
{
public sealed class BudgetBucketMonitorWidget : RemainingBudgetBucketWidget, IUserDefinedWidget
{
private readonly string disabledToolTip;
private string doNotUseId;
public Budge... | Fix labels not appearing on BucketMonitorWidget | Fix labels not appearing on BucketMonitorWidget
| C# | mit | Benrnz/BudgetAnalyser |
da5d3837f0c16f83859381953001c1f93401d0a8 | TicTacToe/Controllers/GameController.cs | TicTacToe/Controllers/GameController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TicTacToe.Core;
using TicTacToe.Web.Data;
using TicTacToe.Web.ViewModels;
namespace TicTacToe.Controllers
{
public class GameController : Controller
{
private ApplicationDbContext context;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TicTacToe.Core;
using TicTacToe.Web.Data;
using TicTacToe.Web.ViewModels;
namespace TicTacToe.Controllers
{
public class GameController : Controller
{
private ApplicationDbContext context;
... | Add missing Commit, when game starts. | Add missing Commit, when game starts.
| C# | mit | beta-tank/TicTacToe,beta-tank/TicTacToe,beta-tank/TicTacToe |
031c581be09285582e81b7ff4798d73f549c0781 | test/Autofac.Test/Features/OpenGenerics/OpenGenericDelegateTests.cs | test/Autofac.Test/Features/OpenGenerics/OpenGenericDelegateTests.cs | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace Autofac.Test.Features.OpenGenerics
{
public class OpenGenericDelegateTests
{
private interface IInterfaceA<T>
{
}
private class ImplementationA<T> : IInterfaceA<T>
{
}
... | using System;
using System.Collections.Generic;
using System.Text;
using Autofac.Core;
using Autofac.Core.Registration;
using Xunit;
namespace Autofac.Test.Features.OpenGenerics
{
public class OpenGenericDelegateTests
{
private interface IInterfaceA<T>
{
}
private interface II... | Add negative test for the registration source. | Add negative test for the registration source.
| C# | mit | autofac/Autofac |
f637977985c6aed9e997b390e72196248abbdbb0 | AgileMapper.UnitTests/SimpleTypeConversion/WhenMappingToDateTimes.cs | AgileMapper.UnitTests/SimpleTypeConversion/WhenMappingToDateTimes.cs | namespace AgileObjects.AgileMapper.UnitTests.SimpleTypeConversion
{
using System;
using TestClasses;
using Xunit;
public class WhenMappingToDateTimes
{
[Fact]
public void ShouldMapANullableDateTimeToADateTime()
{
var source = new PublicProperty<DateTime?> { Valu... | namespace AgileObjects.AgileMapper.UnitTests.SimpleTypeConversion
{
using System;
using Shouldly;
using TestClasses;
using Xunit;
public class WhenMappingToDateTimes
{
[Fact]
public void ShouldMapANullableDateTimeToADateTime()
{
var source = new PublicProper... | Test coverage for unparseable string -> DateTime conversion | Test coverage for unparseable string -> DateTime conversion
| C# | mit | agileobjects/AgileMapper |
bfba639b94d88dc22b1cd2ac43fd04d8813ffcb7 | WalletWasabi/BlockchainAnalysis/Cluster.cs | WalletWasabi/BlockchainAnalysis/Cluster.cs | using System;
using System.Collections.Generic;
using System.Linq;
using WalletWasabi.Bases;
using WalletWasabi.Coins;
namespace WalletWasabi.BlockchainAnalysis
{
public class Cluster : NotifyPropertyChangedBase
{
private List<SmartCoin> Coins { get; set; }
private string _labels;
public Cluster(params Smart... | using System;
using System.Collections.Generic;
using System.Linq;
using WalletWasabi.Bases;
using WalletWasabi.Coins;
namespace WalletWasabi.BlockchainAnalysis
{
public class Cluster : NotifyPropertyChangedBase
{
private List<SmartCoin> Coins { get; set; }
private string _labels;
public Cluster(params Smart... | Use Count instead of Count() | Use Count instead of Count()
Co-Authored-By: Dávid Molnár <6d607974c44f675e0e525d39b2684f7b117c5263@gmail.com> | C# | mit | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet |
321da87399e00ab525ac67b3cdd7d3f578744ca4 | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | Update server side API for single multiple answer question | Update server side API for single multiple answer question
| C# | mit | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist |
eda5204cecaca8a0e3dedc75cb22b5b3fdfcad16 | NOpenCL.Test/TestCategories.cs | NOpenCL.Test/TestCategories.cs | // Copyright (c) Tunnel Vision Laboratories, LLC. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace NOpenCL.Test
{
internal static class TestCategories
{
public const string RequireGpu = nameof(RequireGpu);
}
} | // Copyright (c) Tunnel Vision Laboratories, LLC. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace NOpenCL.Test
{
internal static class TestCategories
{
public const string RequireGpu = nameof(RequireGpu);
}
}
| Fix a build warning for missing blank line at end of file | Fix a build warning for missing blank line at end of file
| C# | mit | sharwell/NOpenCL,tunnelvisionlabs/NOpenCL |
2cce60da347d6d99709a83bc7a8b3dbae711e8ec | Samples/Validation/App.xaml.cs | Samples/Validation/App.xaml.cs | using System.Threading.Tasks;
using Windows.ApplicationModel.Activation;
namespace Sample
{
sealed partial class App : Template10.Common.BootStrapper
{
public App()
{
InitializeComponent();
}
public override async Task OnStartAsync(StartKind startKind, IActivatedEve... | using System.Threading.Tasks;
using Windows.ApplicationModel.Activation;
namespace Sample
{
sealed partial class App : Template10.Common.BootStrapper
{
public App()
{
InitializeComponent();
}
public override Task OnStartAsync(StartKind startKind, IActivatedEventArgs... | Replace another Task.Yield with Task.CompletedTask. | Replace another Task.Yield with Task.CompletedTask.
| C# | apache-2.0 | abubberman/Template10,kenshinthebattosai/Template10,pekspro/Template10,liptonbeer/Template10,gsantopaolo/Template10,teamneusta/Template10,ivesely/Template10,dkackman/Template10,AparnaChinya/Template10,Windows-XAML/Template10,devinfluencer/Template10,lombo75/Template10,artfuldev/Template10,Viachaslau-Zinkevich/Template1... |
571ca8d3fd5d8499f287ff4197cc37d4e0717ba7 | src/FrontEnd/Pages/Session.cshtml | src/FrontEnd/Pages/Session.cshtml | @page "{id}"
@model SessionModel
<ol class="breadcrumb">
<li><a asp-page="/Index">Agenda</a></li>
<li><a asp-page="/Index" asp-route-day="@Model.DayOffset">Day @(Model.DayOffset + 1)</a></li>
<li class="active">@Model.Session.Title</li>
</ol>
<h1>@Model.Session.Title</h1>
<span class="label label-default"... | @page "{id}"
@model SessionModel
<ol class="breadcrumb">
<li><a asp-page="/Index">Agenda</a></li>
<li><a asp-page="/Index" asp-route-day="@Model.DayOffset">Day @(Model.DayOffset + 1)</a></li>
<li class="active">@Model.Session.Title</li>
</ol>
<h1>@Model.Session.Title</h1>
<span class="label label-default"... | Change text from favorites to "My Agenda" | Change text from favorites to "My Agenda"
| C# | mit | csharpfritz/aspnetcore-app-workshop,csharpfritz/aspnetcore-app-workshop,csharpfritz/aspnetcore-app-workshop,anurse/ConferencePlanner,anurse/ConferencePlanner,dotnet-presentations/aspnetcore-app-workshop,jongalloway/aspnetcore-app-workshop,dotnet-presentations/aspnetcore-app-workshop,anurse/ConferencePlanner,dotnet-pres... |
565786a9f79a21bc4d20aaa55da66a888a385769 | IdentityManagement.ApplicationServices/Mapping/RoleMapper.cs | IdentityManagement.ApplicationServices/Mapping/RoleMapper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Affecto.IdentityManagement.ApplicationServices.Model;
using Affecto.IdentityManagement.Interfaces.Model;
using Affecto.Mapping.AutoMapper;
using AutoMapper;
namespace Affecto.IdentityManagement.ApplicationServices.Mapping
{
internal class Ro... | using System.Collections.Generic;
using System.Linq;
using Affecto.IdentityManagement.ApplicationServices.Model;
using Affecto.Mapping.AutoMapper;
using AutoMapper;
namespace Affecto.IdentityManagement.ApplicationServices.Mapping
{
internal class RoleMapper : OneWayMapper<Querying.Data.Role, Role>
{
p... | Remove interface mapping from role mapper | Remove interface mapping from role mapper
| C# | mit | affecto/dotnet-IdentityManagement |
c13eacefa03cf226af35f51c5ef22303764aef29 | Source/Engine/AGS.Engine.IOS/AGSEngineIOS.cs | Source/Engine/AGS.Engine.IOS/AGSEngineIOS.cs | using System;
using Autofac;
namespace AGS.Engine.IOS
{
public class AGSEngineIOS
{
private static IOSAssemblies _assembly;
public static void Init()
{
OpenTK.Toolkit.Init();
var device = new IOSDevice(_assembly);
AGSGame.Device = device;
... | using System;
using Autofac;
namespace AGS.Engine.IOS
{
public class AGSEngineIOS
{
private static IOSAssemblies _assembly;
public static void Init()
{
// On IOS, when the mono linker is enabled (and it's enabled by default) it strips out all parts of
// the fr... | Fix Autofac crash due to linker stripping out a function used by reflection only | Fix Autofac crash due to linker stripping out a function used by reflection only
| C# | artistic-2.0 | tzachshabtay/MonoAGS |
aca2a2884f8628db65a63c62a8afe3a25636a2b2 | Scanner/Scanner/BackingStore.cs | Scanner/Scanner/BackingStore.cs | using System;
using System.IO;
using Newtonsoft.Json;
namespace Scanner
{
using System.Collections.Generic;
public class BackingStore
{
private string backingStoreName;
public BackingStore(string backingStoreName)
{
this.backingStoreName = backingStoreName;
}
... | using System;
using System.IO;
using Newtonsoft.Json;
namespace Scanner
{
using System.Collections.Generic;
public class BackingStore
{
private string backingStoreName;
public BackingStore(string backingStoreName)
{
this.backingStoreName = backingStoreName;
}
... | Make sure we read the backing store name properly. | Make sure we read the backing store name properly.
| C# | mit | JeremyMcGee/WhosPlayingWhen,JeremyMcGee/WhosPlayingWhen,JeremyMcGee/WhosPlayingWhen |
0c737d3622395f9397efa480112cef41c4fb9be9 | Assets/Scripts/HarryPotterUnity/Cards/Generic/GenericSpell.cs | Assets/Scripts/HarryPotterUnity/Cards/Generic/GenericSpell.cs | using System.Collections;
using System.Collections.Generic;
using HarryPotterUnity.Tween;
using HarryPotterUnity.Utils;
using JetBrains.Annotations;
using UnityEngine;
namespace HarryPotterUnity.Cards.Generic
{
public abstract class GenericSpell : GenericCard {
private static readonly Vector3 SpellOffset... | using System.Collections;
using System.Collections.Generic;
using HarryPotterUnity.Tween;
using HarryPotterUnity.Utils;
using JetBrains.Annotations;
using UnityEngine;
namespace HarryPotterUnity.Cards.Generic
{
public abstract class GenericSpell : GenericCard {
private static readonly Vector3 SpellOffset... | Add 0.6 seconds preview time for spells | Add 0.6 seconds preview time for spells
| C# | mit | StefanoFiumara/Harry-Potter-Unity |
fbdec250e5d824a812ed84d97b096a01d4ea07df | src/Azure/Storage.Net.Microsoft.Azure.ServiceBus/Converter.cs | src/Azure/Storage.Net.Microsoft.Azure.ServiceBus/Converter.cs | using Microsoft.Azure.ServiceBus;
using System;
using System.Collections.Generic;
using QueueMessage = Storage.Net.Messaging.QueueMessage;
namespace Storage.Net.Microsoft.Azure.ServiceBus
{
static class Converter
{
public static Message ToMessage(QueueMessage message)
{
if(message == null)
... | using Microsoft.Azure.ServiceBus;
using System;
using System.Collections.Generic;
using QueueMessage = Storage.Net.Messaging.QueueMessage;
namespace Storage.Net.Microsoft.Azure.ServiceBus
{
static class Converter
{
public static Message ToMessage(QueueMessage message)
{
if(message == null)
... | Add message id to storage convert process | Add message id to storage convert process
| C# | mit | aloneguid/storage |
b2ce6f56a6de0eb987433057ea45b869b37b8cd1 | NoAdsHere/Commands/Blocks/BlockModule.cs | NoAdsHere/Commands/Blocks/BlockModule.cs | using System;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Microsoft.Extensions.DependencyInjection;
using MongoDB.Driver;
using NoAdsHere.Database;
using NoAdsHere.Database.Models.GuildSettings;
using NoAdsHere.Common;
using NoAdsHere.Common.Preconditions;
using NoAdsHere.Services.AntiAds... | using System.Threading.Tasks;
using Discord.Commands;
using NoAdsHere.Common;
using NoAdsHere.Common.Preconditions;
using NoAdsHere.Services.AntiAds;
namespace NoAdsHere.Commands.Blocks
{
[Name("Blocks"), Group("Blocks")]
public class BlockModule : ModuleBase
{
[Command("Invite")]
[RequireP... | Clean the Blocks Module of unused code | Clean the Blocks Module of unused code
| C# | mit | Nanabell/NoAdsHere |
58891a55ff285790e904f0253978cd8d3236b6df | src/PrivateCache/CacheEntry.cs | src/PrivateCache/CacheEntry.cs | using System;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using ClientSamples.CachingTools;
namespace Tavis.PrivateCache
{
public class CacheEntry
{
public PrimaryCacheKey Key { get; private set; }
public HttpHeaderValueCollection<string> VaryHeaders { get; private... | using System;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using ClientSamples.CachingTools;
namespace Tavis.PrivateCache
{
public class CacheEntry
{
public PrimaryCacheKey Key { get; private set; }
public HttpHeaderValueCollection<string> VaryHead... | Switch to StringBuilder for speed. | Switch to StringBuilder for speed.
String concatenation of varying-count of items should almost always use StringBuilder. | C# | apache-2.0 | tavis-software/Tavis.HttpCache |
dfd12d7e1e9d7eac9ea968ed77a188391170243a | NBi.Xml/Items/Calculation/ExpressionXml.cs | NBi.Xml/Items/Calculation/ExpressionXml.cs | using NBi.Core.Evaluate;
using NBi.Core.ResultSet;
using NBi.Core.Transformation;
using NBi.Xml.Variables;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace NBi.Xml.Items.Calculatio... | using NBi.Core.Evaluate;
using NBi.Core.ResultSet;
using NBi.Core.Transformation;
using NBi.Xml.Variables;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace NBi.Xml.Items.Calculatio... | Fix some xml parsing issues | Fix some xml parsing issues
| C# | apache-2.0 | Seddryck/NBi,Seddryck/NBi |
6fe663951dd2f889466f9ec65d33b834806389cd | test/WebSites/TagHelpersWebSite/Startup.cs | test/WebSites/TagHelpersWebSite/Startup.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
namespace TagHelpersWebSite
{
public class Startup... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
namespace TagHelpersWebSite
{
public class Startup... | Update new test to use UsePerRequestServices | Update new test to use UsePerRequestServices
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
1026ad571f9507d276ede10ca84c97b76fccb493 | VigilantCupcake/SubForms/AboutBox.cs | VigilantCupcake/SubForms/AboutBox.cs | using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace VigilantCupcake.SubForms {
partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
Text = $"About {AssemblyTitle}";
labelProductName.Text = AssemblyTitle;
... | using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace VigilantCupcake.SubForms {
partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
Text = $"About {AssemblyTitle}";
labelProductName.Text = AssemblyTitle;
... | Reduce information displayed in about box | Reduce information displayed in about box
| C# | mit | amweiss/vigilant-cupcake |
106fca41a6267b34c4736d4c3dff6196152cc2a3 | VigilantCupcake/SubForms/AboutBox.cs | VigilantCupcake/SubForms/AboutBox.cs | using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace VigilantCupcake.SubForms {
partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
Text = $"About {AssemblyTitle}";
labelProductName.Text = AssemblyTitle;
... | using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace VigilantCupcake.SubForms {
partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
Text = $"About {AssemblyTitle}";
labelProductName.Text = AssemblyTitle;
... | Fix wrong attribute for about box | Fix wrong attribute for about box
| C# | mit | amweiss/vigilant-cupcake |
25b9850d6ae0c4ab2b89c7f357aa41a501d76147 | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Di... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Di... | Add license info in assembly. | Add license info in assembly.
| C# | mit | nagilum/dcm |
3fe9aaa8ddf64957100fe9f3b02e30440dce9cf6 | osu.Framework/IO/Network/JsonWebRequest.cs | osu.Framework/IO/Network/JsonWebRequest.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using Newtonsoft.Json;
namespace osu.Framework.IO.Network
{
/// <summary>
/// A web request with a specific JSON response forma... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Net;
using Newtonsoft.Json;
namespace osu.Framework.IO.Network
{
/// <summary>
/// A web request with a specific ... | Use the correct Accept type for json requests | Use the correct Accept type for json requests
We were getting html error responses from the API when http response code errors were expected | C# | mit | Nabile-Rahmani/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,default0/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,Nabile-Rahmani/osu-framework,EVA... |
85f1974da6a60d0dc6eddafd99d21c5514cf626f | src/SFA.DAS.EmployerUsers.Api/Startup.cs | src/SFA.DAS.EmployerUsers.Api/Startup.cs | using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(SFA.DAS.EmployerUsers.Api.Startup))]
namespace SFA.DAS.EmployerUsers.Api
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
}
}
} | using System.Net;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(SFA.DAS.EmployerUsers.Api.Startup))]
namespace SFA.DAS.EmployerUsers.Api
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ServicePointManager.SecurityProtocol |= Security... | Add TLS change to make the call to the Audit api work | Add TLS change to make the call to the Audit api work
| C# | mit | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers |
6d501aa3a6fd0b68fa9fb838b671345555c6ae61 | TSRandom/TSRandom/Properties/AssemblyInfo.cs | TSRandom/TSRandom/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TSR... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TSR... | Change the assembly version to use wildcard | Change the assembly version to use wildcard
| C# | mit | Solybum/Libraries |
02a7bcbdaba82dcac4b01799249744929f3f9413 | src/Obsidian/Services/SignInService.cs | src/Obsidian/Services/SignInService.cs | using Microsoft.AspNetCore.Http;
using Obsidian.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Authentication;
using Obsidian.Application.OAuth20;
namespace Obsidian.Services
{
public class Sign... | using Microsoft.AspNetCore.Http;
using Obsidian.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Authentication;
using Obsidian.Application.OAuth20;
namespace Obsidian.Services
{
public class Sign... | Revert "keep username only in sinin cookie" | Revert "keep username only in sinin cookie"
This reverts commit 6a2a4dceca65d2457a80f205ee5d1dfa65b7278b.
| C# | apache-2.0 | ZA-PT/Obsidian,ZA-PT/Obsidian,ZA-PT/Obsidian,ZA-PT/Obsidian |
afe048a7a150bfdf3a6d22137b682073be355c17 | src/Library.Test/AlwaysTests.cs | src/Library.Test/AlwaysTests.cs | #region Copyright and license
// // <copyright file="AlwaysTests.cs" company="Oliver Zick">
// // Copyright (c) 2016 Oliver Zick. All rights reserved.
// // </copyright>
// // <author>Oliver Zick</author>
// // <license>
// // Licensed under the Apache License, Version 2.0 (the "License");
// // you may no... | #region Copyright and license
// // <copyright file="AlwaysTests.cs" company="Oliver Zick">
// // Copyright (c) 2016 Oliver Zick. All rights reserved.
// // </copyright>
// // <author>Oliver Zick</author>
// // <license>
// // Licensed under the Apache License, Version 2.0 (the "License");
// // you may no... | Improve naming of tests to clearly indicate the feature to be tested | Improve naming of tests to clearly indicate the feature to be tested
| C# | apache-2.0 | oliverzick/Delizious-Filtering |
8084a3405f4ca901237d9d8a51e11277e978858b | src/Nimbus.Tests.Integration/AssemblySetUp.cs | src/Nimbus.Tests.Integration/AssemblySetUp.cs | using NUnit.Framework;
[assembly: Category("IntegrationTest")]
[assembly: Parallelizable(ParallelScope.Fixtures)]
[assembly: LevelOfParallelism(32)] | using NUnit.Framework;
[assembly: Category("IntegrationTest")]
[assembly: Parallelizable(ParallelScope.Fixtures)]
[assembly: LevelOfParallelism(2)] | Reduce concurrency (not eliminate) in integration tests so that starting up a test suite run doesn't soak up all the threads in our thread pool. | Reduce concurrency (not eliminate) in integration tests so that starting up a test suite run doesn't soak up all the threads in our thread pool.
| C# | mit | NimbusAPI/Nimbus,NimbusAPI/Nimbus |
78089ae664d99f98890f860a27bb52e018f8b5a8 | Facebook.iOS/custom_externals_download.cake | Facebook.iOS/custom_externals_download.cake | void DownloadAudienceNetwork (Artifact artifact)
{
var podSpec = artifact.PodSpecs [0];
var id = podSpec.Name;
var version = podSpec.Version;
var url = $"https://origincache.facebook.com/developers/resources/?id={id}-{version}.zip";
var basePath = $"./externals/{id}";
DownloadFile (url, $"{basePath}.zip", new Cak... | void DownloadAudienceNetwork (Artifact artifact)
{
var podSpec = artifact.PodSpecs [0];
var id = podSpec.Name;
var version = podSpec.Version;
var url = $"https://developers.facebook.com/resources/{id}-{version}.zip";
var basePath = $"./externals/{id}";
DownloadFile (url, $"{basePath}.zip", new Cake.Xamarin.Build.... | Use same url Facebook uses to download bits | [iOS][AudienceNetwork] Use same url Facebook uses to download bits
| C# | mit | SotoiGhost/FacebookComponents,SotoiGhost/FacebookComponents |
1d8399925c808326b4f9bae0105d740f58042b37 | PackageViewModel/Utilities/TemporaryFile.cs | PackageViewModel/Utilities/TemporaryFile.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NuGet.Packaging;
namespace PackageExplorerViewModel.Utilities
{
public class TemporaryFile : IDisposable
{
public TemporaryFile(Stream stream, string extension)
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NuGet.Packaging;
namespace PackageExplorerViewModel.Utilities
{
public class TemporaryFile : IDisposable
{
public TemporaryFile(Stream stream, string extension)
... | Fix check so file extension is preserved | Fix check so file extension is preserved
| C# | mit | campersau/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer |
1fe5df12632e41ec59f08f23669bd7c22b8e1b30 | ConsoleWritePrettyOneDay.App/Program.cs | ConsoleWritePrettyOneDay.App/Program.cs | using System.Threading;
using System.Threading.Tasks;
using Console = System.Console;
namespace ConsoleWritePrettyOneDay.App
{
class Program
{
static void Main(string[] args)
{
Spinner.Wait(() => Thread.Sleep(5000), "waiting for sleep");
var task = Task.Run... | using System.Threading;
using System.Threading.Tasks;
using Console = System.Console;
namespace ConsoleWritePrettyOneDay.App
{
class Program
{
static void Main(string[] args)
{
Spinner.Wait(() => Thread.Sleep(5000), "waiting for sleep");
var task = Task.Run... | Add message to press enter when sample App execution is complete | Add message to press enter when sample App execution is complete
| C# | mit | prescottadam/ConsoleWritePrettyOneDay |
51e1a6e55d74b7ce612707961b61e241bd10ca57 | twitch-tv-viewer/Views/MainWindow.xaml.cs | twitch-tv-viewer/Views/MainWindow.xaml.cs | using System.Windows;
namespace twitch_tv_viewer.Views
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void Edit_Click(object send... | using System.Windows;
using System.Windows.Input;
namespace twitch_tv_viewer.Views
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private... | Add simple binding for showing display of delete view | Add simple binding for showing display of delete view
| C# | mit | dukemiller/twitch-tv-viewer |
7f7b0471abbe660cd607bc4b2aa8a70ef23c3785 | uSync8.Core/Dependency/DependencyFlags.cs | uSync8.Core/Dependency/DependencyFlags.cs | using System;
namespace uSync8.Core.Dependency
{
[Flags]
public enum DependencyFlags
{
None = 0,
IncludeChildren = 2,
IncludeAncestors = 4,
IncludeDependencies = 8,
IncludeViews = 16,
IncludeMedia = 32,
IncludeLinked = 64,
IncludeMediaFiles =... | using System;
namespace uSync8.Core.Dependency
{
[Flags]
public enum DependencyFlags
{
None = 0,
IncludeChildren = 2,
IncludeAncestors = 4,
IncludeDependencies = 8,
IncludeViews = 16,
IncludeMedia = 32,
IncludeLinked = 64,
IncludeMediaFiles =... | Add config to the dependency flags. | Add config to the dependency flags.
| C# | mpl-2.0 | KevinJump/uSync,KevinJump/uSync,KevinJump/uSync |
9df3dc9218fc9cc1ad7a9841837e9cd81455d62c | BmpListener/Bgp/CapabilityMultiProtocol.cs | BmpListener/Bgp/CapabilityMultiProtocol.cs | using BmpListener.Extensions;
using System;
using System.Linq;
namespace BmpListener.Bgp
{
public class CapabilityMultiProtocol : Capability
{
public CapabilityMultiProtocol(ArraySegment<byte> data) : base(data)
{
var afi = data.ToInt16(2);
var safi = data.ElementAt(4);... | using System;
namespace BmpListener.Bgp
{
public class CapabilityMultiProtocol : Capability
{
public CapabilityMultiProtocol(ArraySegment<byte> data) : base(data)
{
Decode(CapabilityValue);
}
public AddressFamily Afi { get; set; }
public SubsequentAddressFa... | Fix Multiprotocol AFI and SAFI decoding | Fix Multiprotocol AFI and SAFI decoding
| C# | mit | mstrother/BmpListener |
fb35ac8a853d6a2b4e72f9b7449f74ea94fcad8d | Mammoth/Couscous/java/net/URI.cs | Mammoth/Couscous/java/net/URI.cs | using System;
namespace Mammoth.Couscous.java.net {
internal class URI {
private readonly Uri _uri;
internal URI(string uri) {
try {
_uri = new Uri(uri, UriKind.RelativeOrAbsolute);
} catch (UriFormatException exception) {
throw new U... | using System;
namespace Mammoth.Couscous.java.net {
internal class URI {
private readonly Uri _uri;
internal URI(string uri) {
try {
_uri = new Uri(uri, UriKind.RelativeOrAbsolute);
} catch (UriFormatException exception) {
throw new U... | Handle paths on Windows properly | Handle paths on Windows properly
| C# | bsd-2-clause | mwilliamson/dotnet-mammoth |
ca861dfd8d3320cca9e280aa0c2c4a4187526d10 | NanoGames/Application/FpsView.cs | NanoGames/Application/FpsView.cs | // Copyright (c) the authors of nanoGames. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt in the project root.
using NanoGames.Engine;
using System.Collections.Generic;
using System.Diagnostics;
namespace NanoGames.Application
{
/// <summary>
/// A view that measures and draws the cu... | // Copyright (c) the authors of nanoGames. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt in the project root.
using NanoGames.Engine;
using System.Collections.Generic;
using System.Diagnostics;
namespace NanoGames.Application
{
/// <summary>
/// A view that measures and draws the cu... | Debug mode: Show the number of garbage collections | Debug mode: Show the number of garbage collections
| C# | mit | codeflo/nanogames,codeflo/nanogames |
db921a045f150126497a34412ffa786ddfc55993 | exercises/concept/numbers/.meta/Example.cs | exercises/concept/numbers/.meta/Example.cs | public static class AssemblyLine
{
private const int ProductionRatePerHourForDefaultSpeed = 221;
public static double ProductionRatePerHour(int speed) =>
ProductionRatePerHourForSpeed(speed) * SuccessRate(speed);
private static int ProductionRatePerHourForSpeed(int speed) =>
ProductionRate... | public static class AssemblyLine
{
private const int ProductionRatePerHourForDefaultSpeed = 221;
public static double ProductionRatePerHour(int speed) =>
ProductionRatePerHourForSpeed(speed) * SuccessRate(speed);
private static int ProductionRatePerHourForSpeed(int speed) =>
ProductionRate... | Fix rounding error in numbers exercise | Fix rounding error in numbers exercise
| C# | mit | exercism/xcsharp,exercism/xcsharp |
67523e748a1b73f8837f17e8c78d263ab96d780b | PackageViewModel/Types/ICredentialManager.cs | PackageViewModel/Types/ICredentialManager.cs | using System;
using System.Net;
namespace PackageExplorerViewModel.Types
{
public interface ICredentialManager
{
void TryAddUriCredentials(Uri feedUri);
void Add(ICredentials credentials, Uri feedUri);
ICredentials GetForUri(Uri uri);
}
}
| using System;
using System.Net;
namespace PackageExplorerViewModel.Types
{
public interface ICredentialManager
{
void Add(ICredentials credentials, Uri feedUri);
ICredentials GetForUri(Uri uri);
}
}
| Remove unused method from interface | Remove unused method from interface
| C# | mit | NuGetPackageExplorer/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer,campersau/NuGetPackageExplorer |
98ce69d1d32b65abd9983dbd1124cad8f6bc938b | osu.Game.Rulesets.Catch/UI/HitExplosion.cs | osu.Game.Rulesets.Catch/UI/HitExplosion.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Catch.Skinning.Default;
using osu.Game.Rulesets.Objects.Pooling;
using osu.Game.Skin... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Catch.Skinning.Default;
using osu.Game.Rulesets.Objects.Pooling;
using osu.Game.Skin... | Fix explosion reading out time values from wrong clock | Fix explosion reading out time values from wrong clock
| C# | mit | NeoAdonis/osu,ppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,peppy/osu-new,peppy/osu |
4d976094d1c69613ef581828d638ffdb04a48984 | osu.Game/Input/Bindings/RealmKeyBinding.cs | osu.Game/Input/Bindings/RealmKeyBinding.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Input.Bindings;
using osu.Game.Database;
using Realms;
namespace osu.Game.Input.Bindings
{
[MapTo(nameof(KeyBinding))]
public c... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Input.Bindings;
using osu.Game.Database;
using Realms;
namespace osu.Game.Input.Bindings
{
[MapTo(nameof(KeyBinding))]
public c... | Switch Guid implementation temporarily to avoid compile time error | Switch Guid implementation temporarily to avoid compile time error
| C# | mit | ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new,peppy/osu |
ff5945c63fc34c0c739b1eb84a31fed92fedc4e1 | Unity/Assets/Code/Tweening/AnimateToPoint.cs | Unity/Assets/Code/Tweening/AnimateToPoint.cs | using UnityEngine;
using System.Collections;
using System;
public class AnimateToPoint : MonoBehaviour {
private SimpleTween tween;
private Vector3 sourcePos;
private Vector3 targetPos;
private Action onComplete;
private float timeScale;
private float timer;
public void Trigger(SimpleTween tween, Vector3 poin... | using UnityEngine;
using System.Collections;
using System;
public class AnimateToPoint : MonoBehaviour {
private SimpleTween tween;
private Vector3 sourcePos;
private Vector3 targetPos;
private Action onComplete;
private float timeScale;
private float timer;
public void Trigger(SimpleTween tween, Vector3 poin... | Fix ordering bug when chaining Tweens | Fix ordering bug when chaining Tweens
| C# | mit | kevadsett/BAGameJam2016,kevadsett/BAGameJam2016,kevadsett/BAGameJam2016 |
d1b9168575ea75605cb72a252e8c722a9a991a5d | app/Assets/Scripts/AdminModeMessageWindow.cs | app/Assets/Scripts/AdminModeMessageWindow.cs | using UnityEngine;
using System.Collections;
public class AdminModeMessageWindow : MonoBehaviour {
private const float WINDOW_WIDTH = 300;
private const float WINDOW_HEIGHT = 120;
private const float MESSAGE_HEIGHT = 60;
private const float BUTTON_HEIGHT = 30;
private const float BUTTON_WIDTH = 40;... | using UnityEngine;
using System.Collections;
public class AdminModeMessageWindow : MonoBehaviour {
private const float WINDOW_WIDTH = 300;
private const float WINDOW_HEIGHT = 120;
private const float MESSAGE_HEIGHT = 60;
private const float BUTTON_HEIGHT = 30;
private const float BUTTON_WIDTH = 40;... | Change message to indicate player is freed from track | Change message to indicate player is freed from track
| C# | mit | mikelovesrobots/daft-pong,mikelovesrobots/daft-pong |
03fd69c754f914e88ec84455674524e665c8d0bb | src/Okanshi.Dashboard/GetMetrics.cs | src/Okanshi.Dashboard/GetMetrics.cs | using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using Okanshi.Dashboard.Models;
namespace Okanshi.Dashboard
{
public interface IGetMetrics
{
IEnumerable<Metric> Deserialize(string response);
}
public class GetMetrics : IGetMetrics
{
public IEnumerable<Metric> Deserialize(string r... | using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Okanshi.Dashboard.Models;
namespace Okanshi.Dashboard
{
public interface IGetMetrics
{
IEnumerable<Metric> Deserialize(string response);
}
public class GetMetrics : IGetMetrics
{
publi... | Handle optional version and fallback | Handle optional version and fallback
| C# | mit | mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard |
bdd9b97f31cdd24b8e99b09bd74d436fa02832b3 | src/UnitTests/GitHub.App/ViewModels/PullRequestCreationViewModelTests.cs | src/UnitTests/GitHub.App/ViewModels/PullRequestCreationViewModelTests.cs | using System.Reactive.Linq;
using System.Threading.Tasks;
using NSubstitute;
using Xunit;
using UnitTests;
using GitHub.Models;
using System;
using GitHub.Services;
using GitHub.ViewModels;
public class PullRequestCreationViewModelTests : TempFileBaseClass
{
[Fact]
public async Task NullDescriptionBecomesEmpt... | using System.Reactive.Linq;
using System.Threading.Tasks;
using NSubstitute;
using Xunit;
using UnitTests;
using GitHub.Models;
using System;
using GitHub.Services;
using GitHub.ViewModels;
public class PullRequestCreationViewModelTests : TempFileBaseClass
{
[Fact]
public async Task NullDescriptionBecomesEmpt... | Fix code warning in test | Fix code warning in test
| C# | mit | github/VisualStudio,github/VisualStudio,github/VisualStudio |
797e14b7c1807ec5bcb9b203ab98692eba882d77 | src/Squidex/Pipeline/SingleUrlsMiddleware.cs | src/Squidex/Pipeline/SingleUrlsMiddleware.cs | // ==========================================================================
// SingleUrlsMiddleware.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// ==================================================... | // ==========================================================================
// SingleUrlsMiddleware.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// ==================================================... | Fix the query string stuff | Fix the query string stuff
| C# | mit | Squidex/squidex,pushrbx/squidex,pushrbx/squidex,Squidex/squidex,pushrbx/squidex,pushrbx/squidex,pushrbx/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex |
264ece5130f4cc07d7f2a6edf4d921470db566e0 | src/SceneJect.Common/Services/Factory/DepedencyInjectionFactoryService.cs | src/SceneJect.Common/Services/Factory/DepedencyInjectionFactoryService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SceneJect.Common
{
public abstract class DepedencyInjectionFactoryService
{
/// <summary>
/// Service for resolving dependencies.
/// </summary>
protected IResolver resolverService { get; }
/// <summary>
///... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SceneJect.Common
{
public abstract class DepedencyInjectionFactoryService
{
/// <summary>
/// Service for resolving dependencies.
/// </summary>
protected IResolver resolverService { get; }
/// <summary>
///... | Fix Fault; Incorrect check in ctor | Fix Fault; Incorrect check in ctor
GameObjectFactory checked prop instead of param in ctor.
| C# | mit | HelloKitty/SceneJect,HelloKitty/SceneJect |
c2a37a16fa404e9ef58d12e38c7b9c9f1d8cb759 | osu.Framework.iOS/Properties/AssemblyInfo.cs | osu.Framework.iOS/Properties/AssemblyInfo.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.Runtime.CompilerServices;
using ObjCRuntime;
// We publish our internal attributes to other sub-projects of the framework.
// Note, that we omit visual tes... | // 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.Runtime.CompilerServices;
using ObjCRuntime;
// We publish our internal attributes to other sub-projects of the framework.
// Note, that we omit visual tes... | Include BASSmix native library in linker | Include BASSmix native library in linker
| C# | mit | peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework |
3c7297fa3a30bc40c2ebf07f09fa964266128ca8 | WootzJs.Mvc/ControllerActionInvoker.cs | WootzJs.Mvc/ControllerActionInvoker.cs | using System;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace WootzJs.Mvc
{
public class ControllerActionInvoker : IActionInvoker
{
public Task<ActionResult> InvokeAction(ControllerContext context, MethodInfo action)
{
var parameters = action.Get... | using System;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace WootzJs.Mvc
{
public class ControllerActionInvoker : IActionInvoker
{
public Task<ActionResult> InvokeAction(ControllerContext context, MethodInfo action)
{
var parameters = action.Get... | Fix logic to use the new task based async pattern | Fix logic to use the new task based async pattern
| C# | mit | x335/WootzJs,kswoll/WootzJs,kswoll/WootzJs,x335/WootzJs,x335/WootzJs,kswoll/WootzJs |
d522342f7567ccd55496cd904f9b5a1e0c7284ab | Battery-Commander.Web/Jobs/JobHandler.cs | Battery-Commander.Web/Jobs/JobHandler.cs | using FluentScheduler;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Logging;
using System;
namespace BatteryCommander.Web.Jobs
{
internal static class JobHandler
{
public static void WithScheduler(this IApplicationBuilder app, ILoggerFactory loggerFactory)
{
var l... | using FluentScheduler;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Logging;
using System;
namespace BatteryCommander.Web.Jobs
{
internal static class JobHandler
{
public static void WithScheduler(this IApplicationBuilder app, ILoggerFactory loggerFactory)
{
var l... | Fix registration to send nightly | Fix registration to send nightly
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.