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 |
|---|---|---|---|---|---|---|---|---|---|
aeeaaf0e8fd9f32e8178e406481c11dfd72184a5 | samples/MusicStore/Program.cs | samples/MusicStore/Program.cs | using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.HttpSys;
using Microsoft.Extensions.Configuration;
namespace MusicStore
{
public static class Program
{
public static void Main(string[] args)
{
var config = new ConfigurationBuilder()
... | using System;
using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.HttpSys;
using Microsoft.Extensions.Configuration;
namespace MusicStore
{
public static class Program
{
public static void Main(string[] args)
{
var config = new ConfigurationBuilder... | Add missing call to set content root on WebHostBuilder | Add missing call to set content root on WebHostBuilder
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
c90bc0e39b124ec57604fc8727548f475faa81e8 | Alexa.NET/Request/Type/Converters/DefaultRequestTypeConverter.cs | Alexa.NET/Request/Type/Converters/DefaultRequestTypeConverter.cs | namespace Alexa.NET.Request.Type
{
public class DefaultRequestTypeConverter : IRequestTypeConverter
{
public bool CanConvert(string requestType)
{
return requestType == "IntentRequest" || requestType == "LaunchRequest" || requestType == "SessionEndedRequest";
}
publ... | namespace Alexa.NET.Request.Type
{
public class DefaultRequestTypeConverter : IRequestTypeConverter
{
public bool CanConvert(string requestType)
{
return requestType == "IntentRequest" || requestType == "LaunchRequest" || requestType == "SessionEndedRequest" || requestType == "Syste... | Update default converter to handle exception type | Update default converter to handle exception type | C# | mit | stoiveyp/alexa-skills-dotnet,timheuer/alexa-skills-dotnet |
0b638d87c7339e914d6c0b6fdfd74575c482c0ad | NET/Demos/Console/SoftPwm/Program.cs | NET/Demos/Console/SoftPwm/Program.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Treehopper.Demos.SoftPwm
{
class Program
{
static void Main(string[] args)
{
Run();
}
static TreehopperUsb board;
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Treehopper.Demos.SoftPwm
{
class Program
{
static void Main(string[] args)
{
Run();
}
static TreehopperUsb board;
... | Use Pins, not ints. We ain't Arduino! | Use Pins, not ints. We ain't Arduino!
| C# | mit | treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk |
0afdf5b343941ea59f936f5692b097c23200998a | Rainy/WebService/Admin/StatusService.cs | Rainy/WebService/Admin/StatusService.cs | using ServiceStack.ServiceHost;
using Rainy.Db;
using ServiceStack.OrmLite;
using System;
using ServiceStack.Common.Web;
namespace Rainy.WebService.Admin
{
[Route("/api/admin/status/","GET, OPTIONS",
Summary = "Get status information about the server.")]
[AdminPasswordRequired]
public class StatusRequest : ... | using ServiceStack.ServiceHost;
using Rainy.Db;
using ServiceStack.OrmLite;
using System;
using ServiceStack.Common.Web;
using Tomboy.Db;
namespace Rainy.WebService.Admin
{
[Route("/api/admin/status/","GET, OPTIONS",
Summary = "Get status information about the server.")]
[AdminPasswordRequired]
public class... | Use ORM instead of open-coded SQL | Use ORM instead of open-coded SQL
| C# | agpl-3.0 | Dynalon/Rainy,Dynalon/Rainy,Dynalon/Rainy,Dynalon/Rainy |
9999830b506028ef9c1b25cce697bbcd70552875 | src/Abc.Zebus/Util/TcpUtil.cs | src/Abc.Zebus/Util/TcpUtil.cs | using System;
using System.Net;
using System.Net.Sockets;
namespace Abc.Zebus.Util
{
internal static class TcpUtil
{
public static int GetRandomUnusedPort()
{
var listener = new TcpListener(IPAddress.Any, 0);
listener.Start();
var port = ((IPEndPoint)listene... | using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
namespace Abc.Zebus.Util
{
internal static class TcpUtil
{
public static int GetRandomUnusedPort()
{
var listener = new TcpListener(IPAddress.Any, 0);
listener.Start();
... | Change IsPortUnused() implementation because of SO_REUSEPORT on Linux | Change IsPortUnused() implementation because of SO_REUSEPORT on Linux
| C# | mit | Abc-Arbitrage/Zebus |
3b42e9fd8746d7475ed699cac6394e617e8083ae | CEComms/ClassLibrary1/Communications/Twilio/User/Usage.cs | CEComms/ClassLibrary1/Communications/Twilio/User/Usage.cs | using CommentEverythingCryptography.Encryption;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Twilio;
namespace CEComms.Communications.Twilio.User {
public class Usage {
public double GetUsageThisMonth() {
IEncryptionP... | using CommentEverythingCryptography.Encryption;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Twilio;
namespace CEComms.Communications.Twilio.User {
public class Usage {
public decimal GetUsageThisMonth() {
IEncryption... | Return int or decimal for usage stats | Return int or decimal for usage stats
| C# | mit | MasterOfSomeTrades/CommentEverythingCommunications |
bed5e857df7d2af44ae5f4bbfa304f04be741da1 | osu.Game/Rulesets/Mods/IApplicableToAudio.cs | osu.Game/Rulesets/Mods/IApplicableToAudio.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace osu.Game.Rulesets.Mods
{
public interface IApplicableToAudio : IApplicableToTrack, IApplicableToSample
{
}
}
| // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Rulesets.Mods
{
public interface IApplicableToAudio : IApplicableToTrack, IApplicableToSample
{
}
}
| Add missing license header and remove unused usings | Add missing license header and remove unused usings
| C# | mit | peppy/osu-new,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu |
1488a3767c77ce533f095a9e220773d099c99e61 | src/Glimpse.Common/Reflection/ReflectionDiscoverableCollection.cs | src/Glimpse.Common/Reflection/ReflectionDiscoverableCollection.cs | using System;
using System.Collections;
using System.Collections.Generic;
namespace Glimpse
{
public class ReflectionDiscoverableCollection<T> : List<T>, IDiscoverableCollection<T>
{
private readonly ITypeService _typeService;
public ReflectionDiscoverableCollection(ITypeService typeService)
... | using System;
using System.Collections;
using System.Collections.Generic;
namespace Glimpse
{
public class ReflectionDiscoverableCollection<T> : List<T>, IDiscoverableCollection<T>
{
private readonly ITypeService _typeService;
public ReflectionDiscoverableCollection(ITypeService typeService)
... | Update root lib to Glimpse.Common | Update root lib to Glimpse.Common
| C# | mit | Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,pranavkm/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mi... |
0bd8ea6968155e7a43865413149ad13c40159873 | NFig/DefaultValueAttribute.cs | NFig/DefaultValueAttribute.cs | using System;
namespace NFig
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public abstract class DefaultSettingValueAttribute : Attribute
{
public object DefaultValue { get; protected set; }
public object SubApp { get; protected set; }
public object Tier { get... | using System;
namespace NFig
{
/// <summary>
/// This is the base class for all NFig attributes which specify default values, except for the <see cref="SettingAttribute"/> itself. This attribute is
/// abstract because you should provide the attributes which make sense for your individual setup. The subAp... | Add XML docs for DefaultSettingValueAttribute | Add XML docs for DefaultSettingValueAttribute
| C# | mit | NFig/NFig |
c12c7de949d6b7cd680ec3c75edc4b2b6e410fae | SteamShutdown/App.cs | SteamShutdown/App.cs | using System;
namespace SteamShutdown
{
public class App
{
public int ID { get; set; }
public string Name { get; set; }
public int State { get; set; }
/// <summary>
/// Returns a value indicating whether the game is being downloaded. Includes games in queue ... | namespace SteamShutdown
{
public class App
{
public int ID { get; set; }
public string Name { get; set; }
public int State { get; set; }
/// <summary>
/// Returns a value indicating whether the game is being downloaded.
/// </summary>
public b... | Check for specific bit now to check if a game is downloaded at the moment | Check for specific bit now to check if a game is downloaded at the moment
| C# | mit | akorb/SteamShutdown |
2a35aec7a66d63c3298d2d89304148b8c8b9b5dc | src/StructuredLogger/BinaryLog.cs | src/StructuredLogger/BinaryLog.cs | using System.Diagnostics;
using System.IO;
namespace Microsoft.Build.Logging.StructuredLogger
{
public class BinaryLog
{
public static Build ReadBuild(string filePath)
{
var eventSource = new BinaryLogReplayEventSource();
byte[] sourceArchive = null;
... | using System.Diagnostics;
using System.IO;
namespace Microsoft.Build.Logging.StructuredLogger
{
public class BinaryLog
{
public static Build ReadBuild(string filePath)
{
var eventSource = new BinaryLogReplayEventSource();
byte[] sourceArchive = null;
... | Fix a bug where it didn't read .binlog files correctly. | Fix a bug where it didn't read .binlog files correctly.
| C# | mit | KirillOsenkov/MSBuildStructuredLog,KirillOsenkov/MSBuildStructuredLog |
8db9c9714facaba021d5e2c3126cef7566fcfad0 | src/Wave.ServiceHosting.IIS/IISQueueNameResolver.cs | src/Wave.ServiceHosting.IIS/IISQueueNameResolver.cs | /* Copyright 2014 Jonathan Holland.
*
* 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 in ... | /* Copyright 2014 Jonathan Holland.
*
* 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 in ... | Append IIS queues with worker PID. | Append IIS queues with worker PID.
| C# | apache-2.0 | WaveServiceBus/WaveServiceBus |
c0062d84fc51ba07392e9146e2dabc115e0aa8e1 | src/core/JustCli/Commands/CommandLineHelpCommand.cs | src/core/JustCli/Commands/CommandLineHelpCommand.cs | namespace JustCli.Commands
{
public class CommandLineHelpCommand : ICommand
{
public ICommandRepository CommandRepository { get; set; }
public IOutput Output { get; set; }
public CommandLineHelpCommand(ICommandRepository commandRepository, IOutput output)
{
CommandRe... | namespace JustCli.Commands
{
public class CommandLineHelpCommand : ICommand
{
public ICommandRepository CommandRepository { get; set; }
public IOutput Output { get; set; }
public CommandLineHelpCommand(ICommandRepository commandRepository, IOutput output)
{
CommandRe... | Add "There are no commands". | Add "There are no commands".
| C# | mit | jden123/JustCli |
a5f9202d5a95d9f1a1766948a68682dd8897b459 | src/jmespath.net/Utils/JTokens.cs | src/jmespath.net/Utils/JTokens.cs | using System;
using Newtonsoft.Json.Linq;
namespace DevLab.JmesPath.Utils
{
public static class JTokens
{
public static JToken Null = JToken.Parse("null");
public static JToken True = JToken.Parse("true");
public static JToken False = JToken.Parse("false");
public st... | using System;
using Newtonsoft.Json.Linq;
namespace DevLab.JmesPath.Utils
{
public static class JTokens
{
public static JToken Null = JToken.Parse("null");
public static JToken True = JToken.Parse("true");
public static JToken False = JToken.Parse("false");
public st... | Fix - Included some missing cases for JSON string types. | Fix - Included some missing cases for JSON string types.
| C# | apache-2.0 | jdevillard/JmesPath.Net |
7d190a1befe14eb848db18dfbbea797c56d3d45a | src/Plugins/Torrents/Hadouken.Plugins.Torrents/Rpc/TorrentsServices.cs | src/Plugins/Torrents/Hadouken.Plugins.Torrents/Rpc/TorrentsServices.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hadouken.Framework.Rpc;
using Hadouken.Plugins.Torrents.BitTorrent;
namespace Hadouken.Plugins.Torrents.Rpc
{
public class TorrentsServices : IJsonRpcService
{
private ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hadouken.Framework.Rpc;
using Hadouken.Plugins.Torrents.BitTorrent;
namespace Hadouken.Plugins.Torrents.Rpc
{
public class TorrentsServices : IJsonRpcService
{
private ... | Return simple object representing the torrent. | Return simple object representing the torrent.
| C# | mit | yonglehou/hadouken,vktr/hadouken,Robo210/hadouken,vktr/hadouken,yonglehou/hadouken,Robo210/hadouken,vktr/hadouken,Robo210/hadouken,vktr/hadouken,yonglehou/hadouken,Robo210/hadouken |
52127b123c745bb50239809ab61f2128e052ddc5 | src/VisualStudio/PowershellScripts.cs | src/VisualStudio/PowershellScripts.cs | namespace NuGet.VisualStudio {
public class PowerShellScripts {
public static readonly string Install = "install.ps1";
public static readonly string Uninstall = "uninstall.ps1";
public static readonly string Init = "init.ps1";
}
}
| namespace NuGet.VisualStudio {
public static class PowerShellScripts {
public static readonly string Install = "install.ps1";
public static readonly string Uninstall = "uninstall.ps1";
public static readonly string Init = "init.ps1";
}
}
| Make PowerShellScripts class static per review. | Make PowerShellScripts class static per review.
| C# | apache-2.0 | mdavid/nuget,mdavid/nuget |
e7471bcc9e8d1e69a13ee51be180241358f11e7f | 1-hello-world/Startup.cs | 1-hello-world/Startup.cs | // Copyright(c) 2015 Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writin... | // Copyright(c) 2015 Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writin... | Add a regionTag for document inclusion. | Add a regionTag for document inclusion.
Change-Id: Ia86062b8fbf5afd1c455ea848da47be0e22d5b43
| C# | apache-2.0 | GoogleCloudPlatform/getting-started-dotnet,GoogleCloudPlatform/getting-started-dotnet,GoogleCloudPlatform/getting-started-dotnet |
0b43545ae0f4dd71ecfd8c270512bc47634f47d5 | src/Discord.Net.Commands/ModuleBase.cs | src/Discord.Net.Commands/ModuleBase.cs | using System.Threading.Tasks;
namespace Discord.Commands
{
public abstract class ModuleBase
{
public CommandContext Context { get; internal set; }
protected virtual async Task ReplyAsync(string message, bool isTTS = false, RequestOptions options = null)
{
await Context.Cha... | using System.Threading.Tasks;
namespace Discord.Commands
{
public abstract class ModuleBase
{
public CommandContext Context { get; internal set; }
protected virtual async Task<IUserMessage> ReplyAsync(string message, bool isTTS = false, RequestOptions options = null)
{
ret... | Update ReplyAsync Task to return the sent message. | Update ReplyAsync Task to return the sent message. | C# | mit | RogueException/Discord.Net,Confruggy/Discord.Net,AntiTcb/Discord.Net,LassieME/Discord.Net |
7a7309b48b8f929eb5e2e321c01c1515879d041c | Proto/Assets/Scripts/UI/SceneSelector.cs | Proto/Assets/Scripts/UI/SceneSelector.cs | using UnityEngine;
using UnityEngine.UI;
public class SceneSelector : MonoBehaviour
{
[SerializeField] private Text _levelName;
[SerializeField] private string[] _levels;
[SerializeField] private Button _leftArrow;
[SerializeField] private Button _rightArrow;
private int pos = 0;
private Leade... | using System;
using UnityEngine;
using UnityEngine.UI;
public class SceneSelector : MonoBehaviour
{
[SerializeField] private Text _levelName;
[SerializeField] private string[] _levels;
[SerializeField] private Button _leftArrow;
[SerializeField] private Button _rightArrow;
private int pos = 0;
... | Update the level selector input at the bottom of the leaderboard | Update the level selector input at the bottom of the leaderboard
| C# | mit | DragonEyes7/ConcoursUBI17,DragonEyes7/ConcoursUBI17 |
7e7d6b14a6331db71e9e574f480342eb391a10ad | AngleSharp/Foundation/TaskEx.cs | AngleSharp/Foundation/TaskEx.cs | namespace AngleSharp
{
using System.Collections.Generic;
using System.Threading.Tasks;
/// <summary>
/// Simple wrapper for static methods of Task, which are missing in older
/// versions of the .NET-Framework.
/// </summary>
static class TaskEx
{
/// <summary>
/// Wrap... | namespace System.Threading.Tasks
{
using System.Collections.Generic;
/// <summary>
/// Simple wrapper for static methods of Task, which are missing in older
/// versions of the .NET-Framework.
/// </summary>
static class TaskEx
{
/// <summary>
/// Wrapper for Task.WhenAll, ... | Use official namespace (better for fallback) | Use official namespace (better for fallback)
| C# | mit | FlorianRappl/AngleSharp,FlorianRappl/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,FlorianRappl/AngleSharp,FlorianRappl/AngleSharp |
6ab86212e3150cfed1ae1b1a6ffef027ff0c3b09 | Battery-Commander.Web/Services/UnitService.cs | Battery-Commander.Web/Services/UnitService.cs | using BatteryCommander.Web.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Services
{
public class UnitService
{
public static async Task<Unit> Get(Database db, int unitId)
... | using BatteryCommander.Web.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Services
{
public class UnitService
{
public static async Task<Unit> Get(Database db, int unitId)
... | Remove unit service reference to ignore for reporting | Remove unit service reference to ignore for reporting
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
1f7582b57d63e5fcbea2370f25daa2b1bf1869f4 | PackageExplorer/PublishUrlValidationRule.cs | PackageExplorer/PublishUrlValidationRule.cs | using System;
using System.Windows.Controls;
namespace PackageExplorer {
public class PublishUrlValidationRule : ValidationRule {
public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo) {
string stringValue = (string)value;
Uri... | using System;
using System.Windows.Controls;
namespace PackageExplorer {
public class PublishUrlValidationRule : ValidationRule {
public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo) {
string stringValue = (string)value;
Uri... | Fix binding validation which disallow publishing to HTTPS addresses. | Fix binding validation which disallow publishing to HTTPS addresses.
| C# | mit | campersau/NuGetPackageExplorer,dsplaisted/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer,BreeeZe/NuGetPackageExplorer |
c434a9587743ed71a9ab76a0f92811df27c3a4f9 | DDSReader/DDSReader.Console/Program.cs | DDSReader/DDSReader.Console/Program.cs | using System;
namespace DDSReader.Console
{
class Program
{
static void Main(string[] args)
{
var dds = new DDSImage(args[0]);
dds.Save(args[1]);
}
}
}
| using System;
using System.IO;
namespace DDSReader.Console
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 2)
{
System.Console.WriteLine("ERROR: input and output file required\n");
Environment.Exit(1);
}
var input = args[0];
var output = args[1];
... | Add exception handling to console | Add exception handling to console
| C# | mit | andburn/dds-reader |
394970a1e138139eb78ab8f9494c6649dccdf26d | CIV.Ccs/Processes/PrefixProcess.cs | CIV.Ccs/Processes/PrefixProcess.cs | using System;
using System.Collections.Generic;
using CIV.Common;
namespace CIV.Ccs
{
class PrefixProcess : CcsProcess
{
public String Label { get; set; }
public CcsProcess Inner { get; set; }
protected override IEnumerable<Transition> EnumerateTransitions()
{
return new List<... | using System;
using System.Collections.Generic;
using CIV.Common;
namespace CIV.Ccs
{
class PrefixProcess : CcsProcess
{
public String Label { get; set; }
public CcsProcess Inner { get; set; }
protected override IEnumerable<Transition> EnumerateTransitions()
{
yield return ... | Use “yield” instead of List for GetTransitions | Use “yield” instead of List for GetTransitions
| C# | mit | lou1306/CIV,lou1306/CIV |
2680454fda31eb6cdc1f105e595775a53331770c | FluentMetacritic/Net/HttpClientWrapper.cs | FluentMetacritic/Net/HttpClientWrapper.cs | using System.Net.Http;
using System.Threading.Tasks;
namespace FluentMetacritic.Net
{
public class HttpClientWrapper : IHttpClient
{
private static readonly HttpClient Client = new HttpClient();
public async Task<string> GetContentAsync(string address)
{
return await Clien... | using System.Net.Http;
using System.Threading.Tasks;
namespace FluentMetacritic.Net
{
public class HttpClientWrapper : IHttpClient
{
private static readonly HttpClient Client;
static HttpClientWrapper()
{
Client = new HttpClient();
Client.DefaultRequestHeaders.... | Set UserAgent on HTTP Client. | Set UserAgent on HTTP Client.
| C# | mit | lewishenson/FluentMetacritic,lewishenson/FluentMetacritic |
3edcea6e8c5607bd1a4964201f4df60ac8583e61 | AgileMapper/ObjectPopulation/ExistingOrDefaultValueDataSourceFactory.cs | AgileMapper/ObjectPopulation/ExistingOrDefaultValueDataSourceFactory.cs | namespace AgileObjects.AgileMapper.ObjectPopulation
{
using System.Linq.Expressions;
using DataSources;
using Extensions;
using Members;
internal class ExistingOrDefaultValueDataSourceFactory : IDataSourceFactory
{
public static readonly IDataSourceFactory Instance = new ExistingOrDefau... | namespace AgileObjects.AgileMapper.ObjectPopulation
{
using System.Linq.Expressions;
using DataSources;
using Members;
internal class ExistingOrDefaultValueDataSourceFactory : IDataSourceFactory
{
public static readonly IDataSourceFactory Instance = new ExistingOrDefaultValueDataSourceFacto... | Revert "Using ternary instead of coalesce in fallback enumerable value selection" | Revert "Using ternary instead of coalesce in fallback enumerable value selection"
This reverts commit 1f2b459fd70323866b9443e388a77368e194e5ed.
| C# | mit | agileobjects/AgileMapper |
6c723d3788fe0420e6a09607031068928c96de91 | IntegrationEngine.Tests/JobProcessor/MessageQueueListenerManagerTest.cs | IntegrationEngine.Tests/JobProcessor/MessageQueueListenerManagerTest.cs | using BeekmanLabs.UnitTesting;
using IntegrationEngine.JobProcessor;
using NUnit.Framework;
using Moq;
using System;
using System.Threading;
namespace IntegrationEngine.Tests.JobProcessor
{
public class MessageQueueListenerManagerTest : TestBase<MessageQueueListenerManager>
{
public Mock<MessageQueueL... | using BeekmanLabs.UnitTesting;
using IntegrationEngine.JobProcessor;
using NUnit.Framework;
using Moq;
using System;
using System.Threading;
namespace IntegrationEngine.Tests.JobProcessor
{
public class MessageQueueListenerManagerTest : TestBase<MessageQueueListenerManager>
{
public Mock<MessageQueueL... | Test launching 10 listeners in CI | Test launching 10 listeners in CI
| C# | mit | InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET |
fdf7189ab90abd138a1b2e629a0f807f60fc0ca2 | Source/Lib/TraktApiSharp/Objects/Get/Shows/Seasons/TraktSeasonImages.cs | Source/Lib/TraktApiSharp/Objects/Get/Shows/Seasons/TraktSeasonImages.cs | namespace TraktApiSharp.Objects.Get.Shows.Seasons
{
using Basic;
using Newtonsoft.Json;
/// <summary>
/// A collection of images for a Trakt season.
/// </summary>
public class TraktSeasonImages
{
/// <summary>
/// A poster image set for various sizes.
/// </summary... | namespace TraktApiSharp.Objects.Get.Shows.Seasons
{
using Basic;
using Newtonsoft.Json;
/// <summary>A collection of images and image sets for a Trakt season.</summary>
public class TraktSeasonImages
{
/// <summary>Gets or sets the screenshot image set.</summary>
[JsonProperty(Prop... | Add get best id method for season images. | Add get best id method for season images.
| C# | mit | henrikfroehling/TraktApiSharp |
c3c881149049c58982e282269ecd6cbcc0314b33 | resharper/resharper-yaml/test/src/TestEnvironment.cs | resharper/resharper-yaml/test/src/TestEnvironment.cs | using JetBrains.Application.BuildScript.Application.Zones;
using JetBrains.ReSharper.TestFramework;
using JetBrains.TestFramework;
using JetBrains.TestFramework.Application.Zones;
using NUnit.Framework;
[assembly: RequiresSTA]
namespace JetBrains.ReSharper.Plugins.Yaml.Tests
{
[ZoneDefinition]
public interfa... | using JetBrains.Application.BuildScript.Application.Zones;
using JetBrains.ReSharper.TestFramework;
using JetBrains.TestFramework;
using JetBrains.TestFramework.Application.Zones;
using NUnit.Framework;
[assembly: RequiresSTA]
// This attribute is marked obsolete but is still supported. Use is discouraged in prefere... | Fix test data path when building in Unity plugin | Fix test data path when building in Unity plugin
| C# | apache-2.0 | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity |
7ec68beaa4825a2a9bcb88c8902d8a46bcba7065 | SurveyMonkey/Containers/ResponseAnswer.cs | SurveyMonkey/Containers/ResponseAnswer.cs | using Newtonsoft.Json;
namespace SurveyMonkey.Containers
{
[JsonConverter(typeof(TolerantJsonConverter))]
public class ResponseAnswer
{
public long? ChoiceId { get; set; }
public long? RowId { get; set; }
public long? ColId { get; set; }
public long? OtherId { get; set; }
... | using Newtonsoft.Json;
namespace SurveyMonkey.Containers
{
[JsonConverter(typeof(TolerantJsonConverter))]
public class ResponseAnswer
{
public long? ChoiceId { get; set; }
public long? RowId { get; set; }
public long? ColId { get; set; }
public long? OtherId { get; set; }
... | Add download_url and content_type for file upload questions | Add download_url and content_type for file upload questions
| C# | mit | bcemmett/SurveyMonkeyApi-v3 |
7f8a1a7863c7ae5722637b397fae86e169f7aaa8 | WP8App/Services/WordWrapService.cs | WP8App/Services/WordWrapService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WPAppStudio.Services.Interfaces;
namespace WPAppStudio.Services
{
public class WordWrapService
{
private readonly ITextMeasurementService _tms;
public WordWrapService(ITextMeasurementService textMeasur... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WPAppStudio.Services.Interfaces;
namespace WPAppStudio.Services
{
public class WordWrapService
{
private readonly ITextMeasurementService _tms;
public WordWrapService(ITextMeasurementService textMeasur... | Revert "And we have the medium line working!" | Revert "And we have the medium line working!"
This reverts commit 2c642200074b3a3d882a95530f053656346ac05d.
| C# | mit | pcamp123/GadgtSpot-Windows-Phone-Application |
9a90ebaffe41df590ca3fac9e0b5acdea35c5175 | Collections/Paging/PagingHelpers.cs | Collections/Paging/PagingHelpers.cs | using System;
using System.Linq;
namespace Smartrak.Collections.Paging
{
public static class PagingHelpers
{
/// <summary>
/// Gets a paged list of entities with the total appended to each row in the resultset. This is a faster way of doing things than using 2 seperate queries
/// </summary>
/// <typeparam ... | using System;
using System.Linq;
namespace Smartrak.Collections.Paging
{
public static class PagingHelpers
{
/// <summary>
/// Gets a paged list of entities with the total appended to each row in the resultset. This is a faster way of doing things than using 2 seperate queries
/// </summary>
/// <typeparam ... | Revert "Removing 'zzz' from method name" | Revert "Removing 'zzz' from method name"
This reverts commit e32baff273074950f07a718edfac63933a00a420.
| C# | mit | Smartrak/Smartrak.Library |
cc92d3d6a91dfd5acbdd681b57737df083f6f12b | ProcessRelauncher/ProcessMonitor.cs | ProcessRelauncher/ProcessMonitor.cs | using System;
using System.Diagnostics;
using System.Threading;
namespace ProcessRelauncher
{
public class ProcessMonitor : IDisposable
{
private Timer _timer;
private readonly int _monitoringPollingIntervalMs;
private readonly ProcessStartInfo _processStartInfo;
pri... | using System;
using System.Diagnostics;
using System.Threading;
namespace ProcessRelauncher
{
public class ProcessMonitor : IDisposable
{
private Timer _timer;
private readonly int _monitoringPollingIntervalMs;
private readonly ProcessStartInfo _processStartInfo;
pri... | Enable the GC to clean up the process list immediately. Fixed potential null reference when disposing before starting. | Enable the GC to clean up the process list immediately.
Fixed potential null reference when disposing before starting.
| C# | bsd-3-clause | frederik256/ProcessRelauncher |
807f0c5ce53fc5b0d7e4749b6cd513b04faef93c | hangman.cs | hangman.cs | using System;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
Table table = new Table(2, 3);
string output = table.Draw();
Console.WriteLine(output);
}
}
}
| using System;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
// Table table = new Table(2, 3);
// string output = table.Draw();
// Console.WriteLine(output);
}
}
}
| Comment out the code in Hangman that uses Table | Comment out the code in Hangman that uses Table
To focus on the development of game logic
| C# | unlicense | 12joan/hangman |
976c435749838971252d53ad550ff07587a6b7b8 | BaiduHiCrawler/BaiduHiCrawler/Constants.cs | BaiduHiCrawler/BaiduHiCrawler/Constants.cs | namespace BaiduHiCrawler
{
using System;
static class Constants
{
public const string CommentRetrivalUrlPattern =
"http://hi.baidu.com/qcmt/data/cmtlist?qing_request_source=new_request&thread_id_enc={0}&start={1}&count={2}&orderby_type=0&favor=2&type=smblog";
public c... | namespace BaiduHiCrawler
{
using System;
static class Constants
{
public const string CommentRetrivalUrlPattern =
"http://hi.baidu.com/qcmt/data/cmtlist?qing_request_source=new_request&thread_id_enc={0}&start={1}&count={2}&orderby_type=0&favor=2&type=smblog";
public c... | Set LogLevel in master branch to Warning | Set LogLevel in master branch to Warning
| C# | mit | sqybi/baidu-hi-crawler |
ca98325c82e2288a9215932c46c1fcb61ad35ca8 | RegionsConfiguration.cs | RegionsConfiguration.cs | using System.Collections.Generic;
using Rocket.API;
using RocketRegions.Model;
namespace RocketRegions
{
public class RegionsConfiguration : IRocketPluginConfiguration
{
public int UpdateFrameCount;
public List<Region> Regions;
public string UrlOpenMessage;
public void LoadDef... | using System.Collections.Generic;
using Rocket.API;
using RocketRegions.Model;
namespace RocketRegions
{
public class RegionsConfiguration : IRocketPluginConfiguration
{
public int UpdateFrameCount;
public List<Region> Regions;
public string UrlOpenMessage;
public void LoadDef... | Set default <UpdateFrameCount> to 10 | Set default <UpdateFrameCount> to 10
| C# | agpl-3.0 | Trojaner25/Rocket-Safezone,Trojaner25/Rocket-Regions |
579bdb0ee5287f404ab12a1035f2a47cb73d3ee0 | DesktopWidgets/Actions/PopupAction.cs | DesktopWidgets/Actions/PopupAction.cs | using System.ComponentModel;
using System.Windows;
namespace DesktopWidgets.Actions
{
internal class PopupAction : ActionBase
{
[DisplayName("Text")]
public string Text { get; set; } = "";
[DisplayName("Title")]
public string Title { get; set; } = "";
[DisplayName("Im... | using System.ComponentModel;
using System.IO;
using System.Windows;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Actions
{
internal class PopupAction : ActionBase
{
public FilePath FilePath { get; set; } = new FilePath();
[DisplayName("Text")]
public string Text { get; set; ... | Add "Input Mode", "File" options to "Popup" action | Add "Input Mode", "File" options to "Popup" action
| C# | apache-2.0 | danielchalmers/DesktopWidgets |
2d92a99e35e0a6fd783b220181a0c104c7416184 | src/addoncreator/AddonJson.cs | src/addoncreator/AddonJson.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace GarrysMod.AddonCreator
{
public class AddonJson
{
[JsonProperty("title")]
public string Title { get; set; }
[JsonProperty("description")]
pub... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace GarrysMod.AddonCreator
{
public class AddonJson
{
[JsonProperty("title")]
public string Title { get; set; }
[JsonProperty("description")]
pub... | Add version field and make CheckForErrors less accessible from outside. | Add version field and make CheckForErrors less accessible from outside.
| C# | mit | icedream/gmadsharp |
6f7a7b9c18f11ef9a7013133b897bbeac44920cd | InteractApp/EventListPage.xaml.cs | InteractApp/EventListPage.xaml.cs | using System;
using System.Diagnostics;
using Xamarin.Forms;
using InteractApp;
namespace InteractApp
{
public class EventListPageBase : ViewPage<EventListPageViewModel>
{
}
public partial class EventListPage : EventListPageBase
{
public EventListPage ()
{
InitializeComponent ();
this.Title = "Eve... | using System;
using System.Diagnostics;
using Xamarin.Forms;
using InteractApp;
namespace InteractApp
{
public class EventListPageBase : ViewPage<EventListPageViewModel>
{
}
public partial class EventListPage : EventListPageBase
{
public EventListPage ()
{
InitializeComponent ();
this.Title = "Eve... | Remove unused Toolbar options until we actually make use of them | Remove unused Toolbar options until we actually make use of them
| C# | mit | IrvingtonProgramming/InteractApp,IrvingtonProgramming/InteractApp,IrvingtonProgramming/InteractApp |
d704507823b5c4a107fcab0fff70a1db28fbca41 | PolarisServer/Models/PSOObject.cs | PolarisServer/Models/PSOObject.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using PolarisServer.Packets;
namespace PolarisServer.Models
{
public class PSOObject
{
public struct PSOObjectThing
{
public UInt32 data;
}
public EntityHeader He... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using PolarisServer.Packets;
namespace PolarisServer.Models
{
public class PSOObject
{
public struct PSOObjectThing
{
public UInt32 data;
}
public EntityHeader He... | Write Position using the Position Writer Function | Write Position using the Position Writer Function
| C# | agpl-3.0 | Dreadlow/PolarisServer,MrSwiss/PolarisServer,PolarisTeam/PolarisServer,cyberkitsune/PolarisServer,lockzag/PolarisServer |
34dc61040278b937d8c6805dc94168ec49199ebb | RuneScapeCacheToolsTests/VorbisTests.cs | RuneScapeCacheToolsTests/VorbisTests.cs | using System;
using System.IO;
using System.Linq;
using Villermen.RuneScapeCacheTools.Audio.Vorbis;
using Xunit;
using Xunit.Abstractions;
namespace RuneScapeCacheToolsTests
{
public class VorbisTests : IDisposable
{
private ITestOutputHelper Output { get; }
private VorbisReader Reader1 { get... | using System;
using System.IO;
using System.Linq;
using Villermen.RuneScapeCacheTools.Audio.Vorbis;
using Xunit;
using Xunit.Abstractions;
namespace RuneScapeCacheToolsTests
{
public class VorbisTests : IDisposable
{
private ITestOutputHelper Output { get; }
private VorbisReader Reader1 { get... | Change comment test to reflect changed samples | Change comment test to reflect changed samples
| C# | mit | villermen/runescape-cache-tools,villermen/runescape-cache-tools |
fca6ac5e48a9e85d69f64c87c4b673e2b67c29b3 | DAQ/Agilent53131A.cs | DAQ/Agilent53131A.cs | using System;
using System.Collections.Generic;
using System.Text;
using DAQ.Environment;
namespace DAQ.HAL
{
public class Agilent53131A : FrequencyCounter
{
public Agilent53131A(String visaAddress) : base(visaAddress)
{}
public override double Frequency
{
... | using System;
using System.Collections.Generic;
using System.Text;
using DAQ.Environment;
namespace DAQ.HAL
{
public class Agilent53131A : FrequencyCounter
{
public Agilent53131A(String visaAddress) : base(visaAddress)
{}
public override double Frequency
{
... | Fix a little bug with the new counter. The rf frequency measurement is now tested and works. | Fix a little bug with the new counter. The rf frequency measurement is now tested and works.
| C# | mit | jstammers/EDMSuite,jstammers/EDMSuite,Stok/EDMSuite,ColdMatter/EDMSuite,Stok/EDMSuite,ColdMatter/EDMSuite,jstammers/EDMSuite,jstammers/EDMSuite,ColdMatter/EDMSuite,jstammers/EDMSuite,ColdMatter/EDMSuite |
9bfd6986b57cab02c5b3feeac8f1050d837a20e4 | Vaskelista/Views/Household/Create.cshtml | Vaskelista/Views/Household/Create.cshtml | @model Vaskelista.Models.Household
@{
ViewBag.Title = "Create";
}
<h2>Velkommen til vaskelista</h2>
<p>Her kan du velge hva vaskelisten din skal hete:</p>
<div class="form-horizontal">
<div class="form-group">
<div class="col-md-12"><label>@Request.Url.ToString()</label></div>
... | @model Vaskelista.Models.Household
@{
ViewBag.Title = "Create";
}
<h2>Velkommen til vaskelista</h2>
<p>Her kan du velge hva vaskelisten din skal hete:</p>
<div class="form-horizontal">
<div class="form-group">
<div class="col-md-2"><label>@Request.Url.ToString()</label></div>
... | Decrease bootstrap column sizes to improve mobile experience | Decrease bootstrap column sizes to improve mobile experience
| C# | mit | johanhelsing/vaskelista,johanhelsing/vaskelista |
2808182c0b917218e68132dd0b72da6ee031d372 | TAUtil/Gaf/Structures/GafFrameData.cs | TAUtil/Gaf/Structures/GafFrameData.cs | namespace TAUtil.Gaf.Structures
{
using System.IO;
public struct GafFrameData
{
public ushort Width;
public ushort Height;
public ushort XPos;
public ushort YPos;
public byte Unknown1;
public bool Compressed;
public ushort FramePointers;
... | namespace TAUtil.Gaf.Structures
{
using System.IO;
public struct GafFrameData
{
public ushort Width;
public ushort Height;
public ushort XPos;
public ushort YPos;
public byte TransparencyIndex;
public bool Compressed;
public ushort FrameP... | Rename previously unknown GAF field | Rename previously unknown GAF field
| C# | mit | MHeasell/TAUtil,MHeasell/TAUtil |
9fc9009dbe1a6bba52686e41413aae20c4804652 | osu.Game/Screens/Edit/Timing/SampleSection.cs | osu.Game/Screens/Edit/Timing/SampleSection.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Graphics.UserInterfaceV... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Graphics.UserInterfaceV... | Add change handling for sample section | Add change handling for sample section
| C# | mit | UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,smoogipoo/osu,ppy/osu,ppy/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,UselessToucan/osu,peppy/osu |
53a491eff93565a852f0d4b4d6c636d19eceb890 | src/SFA.DAS.EmployerAccounts/Extensions/EndpointConfigurationExtensions.cs | src/SFA.DAS.EmployerAccounts/Extensions/EndpointConfigurationExtensions.cs | using System;
using NServiceBus;
using SFA.DAS.AutoConfiguration;
using SFA.DAS.EmployerFinance.Messages.Commands;
using SFA.DAS.Notifications.Messages.Commands;
using SFA.DAS.NServiceBus.Configuration.AzureServiceBus;
using StructureMap;
namespace SFA.DAS.EmployerAccounts.Extensions
{
public static class Endpoi... | using System;
using NServiceBus;
using SFA.DAS.AutoConfiguration;
using SFA.DAS.EmployerFinance.Messages.Commands;
using SFA.DAS.Notifications.Messages.Commands;
using SFA.DAS.NServiceBus.Configuration.AzureServiceBus;
using StructureMap;
namespace SFA.DAS.EmployerAccounts.Extensions
{
public static class Endpoi... | Tweak conventions for nservicebus messages to work in unobtrusive and normal mode | Tweak conventions for nservicebus messages to work in unobtrusive and normal mode
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
1d9198b81116df056e7f23e8baa730a32a47c116 | src/Editor/Editor.Client/ServerManager.cs | src/Editor/Editor.Client/ServerManager.cs | using System;
using System.Threading;
using Flood.Editor.Server;
namespace Flood.Editor
{
public class ServerManager
{
public EditorServer Server { get; private set; }
private ManualResetEventSlim serverCreatedEvent;
private void RunBuiltinServer()
{
serverCreatedEv... | using System;
using System.Threading;
using Flood.Editor.Server;
namespace Flood.Editor
{
public class ServerManager
{
public EditorServer Server { get; private set; }
private ManualResetEventSlim serverCreatedEvent;
private void RunBuiltinServer()
{
serverCreatedEv... | Use the logger for writing to the console. | Use the logger for writing to the console.
| C# | bsd-2-clause | FloodProject/flood,FloodProject/flood,FloodProject/flood |
702a8b91e99b35a03ea14b9032a348f00a19921d | src/WPFConverters/BitmapImageConverter.cs | src/WPFConverters/BitmapImageConverter.cs | using System;
using System.Globalization;
using System.Windows;
using System.Windows.Media.Imaging;
namespace WPFConverters
{
public class BitmapImageConverter : BaseConverter
{
protected override object OnConvert(object value, Type targetType, object parameter, CultureInfo culture)
{
... | using System;
using System.Globalization;
using System.Windows;
using System.Windows.Media.Imaging;
namespace WPFConverters
{
public class BitmapImageConverter : BaseConverter
{
protected override object OnConvert(object value, Type targetType, object parameter, CultureInfo culture)
{
... | Make bitmap loading cache the image | Make bitmap loading cache the image
| C# | mit | distantcam/WPFConverters |
2b58b1e89220144f669f306fce375f73a596698d | src/Tests/GoogleAsyncGeocoderTest.cs | src/Tests/GoogleAsyncGeocoderTest.cs | using System.Linq;
using Geocoding.Google;
using Xunit;
using Xunit.Extensions;
namespace Geocoding.Tests
{
public class GoogleAsyncGeocoderTest : AsyncGeocoderTest
{
GoogleGeocoder geoCoder;
protected override IAsyncGeocoder CreateAsyncGeocoder()
{
geoCoder = new GoogleGeocoder();
return geoCoder;
}... | using System.Configuration;
using System.Linq;
using Geocoding.Google;
using Xunit;
using Xunit.Extensions;
namespace Geocoding.Tests
{
public class GoogleAsyncGeocoderTest : AsyncGeocoderTest
{
GoogleGeocoder geoCoder;
protected override IAsyncGeocoder CreateAsyncGeocoder()
{
geoCoder = new GoogleGeocode... | Use google API key in async test. | Use google API key in async test.
| C# | mit | Troncho/Geocoding.net,harsimranb/Geocoding.net,chadly/Geocoding.net |
db7602b5ea3cb9915fc48acfa3b62ed1eb5ff94b | src/StackExchange.Redis.Extensions.Core/Configuration/RedisHostCollection.cs | src/StackExchange.Redis.Extensions.Core/Configuration/RedisHostCollection.cs | using System.Configuration;
namespace StackExchange.Redis.Extensions.Core.Configuration
{
/// <summary>
/// Configuration Element Collection for <see cref="RedisHost"/>
/// </summary>
public class RedisHostCollection : ConfigurationElementCollection
{
/// <summary>
/// Gets or sets the <see cref="R... | using System.Configuration;
namespace StackExchange.Redis.Extensions.Core.Configuration
{
/// <summary>
/// Configuration Element Collection for <see cref="RedisHost"/>
/// </summary>
public class RedisHostCollection : ConfigurationElementCollection
{
/// <summary>
/// Gets or sets the <see cref="R... | Allow for multiple instances of redis running on the same server but different ports. | Allow for multiple instances of redis running on the same server but different ports.
| C# | mit | LeCantaloop/StackExchange.Redis.Extensions,imperugo/StackExchange.Redis.Extensions,imperugo/StackExchange.Redis.Extensions |
0b78a326d6a739d7045e3890b74f8d52c5ab9279 | LINQToTTree/LINQToTTreeLib.Tests/Expressions/SubExpressionReplacementTest.cs | LINQToTTree/LINQToTTreeLib.Tests/Expressions/SubExpressionReplacementTest.cs | using System;
using System.Diagnostics;
using System.Linq.Expressions;
using LINQToTTreeLib.Expressions;
using Microsoft.Pex.Framework;
using Microsoft.Pex.Framework.Validation;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LINQToTTreeLib.Tests.ResultOperators
{
[TestClass]
[PexClass... | using LINQToTTreeLib.Expressions;
using Microsoft.Pex.Framework;
using Microsoft.Pex.Framework.Validation;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Diagnostics;
using System.Linq.Expressions;
namespace LINQToTTreeLib.Tests.ResultOperators
{
[TestClass]
[PexClass... | Fix up badly spelled test | Fix up badly spelled test
| C# | lgpl-2.1 | gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT |
a90f9074540d20f7e937211f621a9d59022d5774 | CakeMail.RestClient/Properties/AssemblyInfo.cs | CakeMail.RestClient/Properties/AssemblyInfo.cs | using System.Reflection;
// 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("CakeMail.RestClient")]
[assembly: AssemblyDescription("CakeMail.RestClient is a... | using System.Reflection;
// 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("CakeMail.RestClient")]
[assembly: AssemblyDescription("CakeMail.RestClient is a... | Increase nuget package version to 1.0.0-beta05 | Increase nuget package version to 1.0.0-beta05
| C# | mit | Jericho/CakeMail.RestClient |
faf6737218f051bfa35f470e32ef0dc0c407473d | MediaCentreServer/Controllers/RunController.cs | MediaCentreServer/Controllers/RunController.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace MediaCentreServer.Controllers
{
// Controller for running an application.
public class RunController : ApiController
{
// POST /api/run?path=...
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace MediaCentreServer.Controllers
{
// Controller for running an application.
public class RunController : ApiController
{
// POST /api/run?path=...
... | Use shell execute for run action. | Use shell execute for run action.
Enables launching URLs as well as apps. Probably a major security issue,
but fuck it, right? Also improved error handling.
| C# | mit | simontaylor81/HomeAutomation,simontaylor81/HomeAutomation,simontaylor81/HomeAutomation,simontaylor81/HomeAutomation,simontaylor81/HomeAutomation |
b087c95581e960f80fa26af370aceb15dadf251e | osu.Game.Rulesets.Catch/UI/CatcherTrail.cs | osu.Game.Rulesets.Catch/UI/CatcherTrail.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.Graphics;
using osu.Framework.Graphics.Pooling;
using osuTK;
namespace osu.Game.Rulesets.Catch.UI
{
/// <summary>
/// A trail of the catcher.... | // 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.Graphics;
using osu.Framework.Graphics.Pooling;
using osu.Framework.Timing;
using osuTK;
namespace osu.Game.Rulesets.Catch.UI
{
/// <summary>
... | Use a frozen clock for catcher trails | Use a frozen clock for catcher trails
| C# | mit | ppy/osu,peppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,peppy/osu-new,UselessToucan/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu |
f9bfaf0ea091a1011310a80232a3ede90e3d9dda | EndlessClient/UIControls/StatusBarLabel.cs | EndlessClient/UIControls/StatusBarLabel.cs | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System;
using EndlessClient.HUD;
using EndlessClient.Rendering;
using EOLib;
using Microsoft.Xna.Framework;
using XNAControls;
namespace EndlessClient.UIControls
{... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System;
using EndlessClient.HUD;
using EndlessClient.Rendering;
using EOLib;
using Microsoft.Xna.Framework;
using XNAControls;
namespace EndlessClient.UIControls
{... | Fix status label updating (update method not called if control is not visible) | Fix status label updating (update method not called if control is not visible)
| C# | mit | ethanmoffat/EndlessClient |
258898a078ba03279c2326639666b7acf63b0825 | DaNES.Emulation/Ppu.cs | DaNES.Emulation/Ppu.cs | using System.Drawing;
namespace DanTup.DaNES.Emulation
{
class Ppu
{
public Memory Ram { get; }
public Bitmap Screen { get; }
public Ppu(Memory ram, Bitmap screen)
{
Ram = ram;
Screen = screen;
for (var x = 0; x < 256; x++)
{
for (var y = 0; y < 240; y++)
{
Screen.SetPixel(x, y, C... | using System.Drawing;
namespace DanTup.DaNES.Emulation
{
class Ppu
{
public Memory Ram { get; }
public Bitmap Screen { get; }
// PPU Control
bool NmiEnable;
bool PpuMasterSlave;
bool SpriteHeight;
bool BackgroundTileSelect;
bool SpriteTileSelect;
bool IncrementMode;
bool NameTableSelect1;
boo... | Add fields for PPU registers. | Add fields for PPU registers.
| C# | mit | DanTup/DaNES |
4795170c6044bc7092b4c78b687f5a5bdc880088 | osu.Game/IO/Serialization/IJsonSerializable.cs | osu.Game/IO/Serialization/IJsonSerializable.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using Newtonsoft.Json;
namespace osu.Game.IO.Serialization
{
public interface IJsonSerializable
{
}
public static class JsonSerializableExtensions
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using Newtonsoft.Json;
using osu.Framework.IO.Serialization;
namespace osu.Game.IO.Serialization
{
public interface IJsonSerializa... | Add back the default json converter locally to ensure it's actually used | Add back the default json converter locally to ensure it's actually used
| C# | mit | peppy/osu,smoogipooo/osu,peppy/osu-new,ppy/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,ppy/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu |
041eda7e74a012bf5fa21e9859840ba110738d4b | Source/Server/NetBots.WebServer.Host/Models/Secrets.cs | Source/Server/NetBots.WebServer.Host/Models/Secrets.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace NetBotsHostProject.Models
{
public static class Secrets
{
private static readonly Dictionary<string,string> _secrets = new Dictionary<string, string>()
{
{"gitHubClientIdDev", "placeholde... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace NetBotsHostProject.Models
{
public static class Secrets
{
private static readonly Dictionary<string,string> _secrets = new Dictionary<string, string>()
{
{"gitHubClientIdDev", "placeHolde... | Set Secret.cs so it will not be modified by default. This means we can put sensitive information in it, and it won't go into source control | Set Secret.cs so it will not be modified by default. This means we can put sensitive information in it, and it won't go into source control
| C# | mit | AiBattleground/BotWars,AiBattleground/BotWars |
b4a6a6fbe06f77f8a91e7500598da05fe181c8e1 | source/Assets/Scripts/Loader.cs | source/Assets/Scripts/Loader.cs | using UnityEngine;
using System.Reflection;
[assembly: AssemblyVersion("1.1.0.*")]
public class Loader : MonoBehaviour
{
/// <summary>
/// DebugUI prefab to instantiate.
/// </summary>
[SerializeField]
private GameObject _debugUI;
/// <summary>
/// ModalDialog prefab to insta... | using UnityEngine;
using System.Reflection;
[assembly: AssemblyVersion("1.1.1.*")]
public class Loader : MonoBehaviour
{
/// <summary>
/// DebugUI prefab to instantiate.
/// </summary>
[SerializeField]
private GameObject _debugUI;
/// <summary>
/// ModalDialog prefab to insta... | Change version up to 1.1.1 | Change version up to 1.1.1
| C# | unknown | matiasbeckerle/breakout,matiasbeckerle/arkanoid,matiasbeckerle/perspektiva |
55d102fd2ed65b32205de6423f39f2f81ee1e0cc | src/Grobid/PdfBlockExtractor.cs | src/Grobid/PdfBlockExtractor.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Grobid.PdfToXml;
namespace Grobid.NET
{
public class PdfBlockExtractor<T>
{
private readonly BlockStateFactory factory;
public PdfBlockExtractor()
{
this.factory = new BlockStateFactory... | using System;
using System.Collections.Generic;
using System.Linq;
using Grobid.PdfToXml;
namespace Grobid.NET
{
public class PdfBlockExtractor<T>
{
private readonly BlockStateFactory factory;
public PdfBlockExtractor()
{
this.factory = new BlockStateFactory... | Simplify foreach'es to a LINQ expression | Simplify foreach'es to a LINQ expression
| C# | apache-2.0 | boumenot/Grobid.NET |
b3e7ca47cad2971433616ccdea6883c8b5b825e6 | CertiPay.Common/Notifications/ISMSService.cs | CertiPay.Common/Notifications/ISMSService.cs | using CertiPay.Common.Logging;
using System;
using System.Threading.Tasks;
using Twilio;
namespace CertiPay.Common.Notifications
{
/// <summary>
/// Send an SMS message to the given recipient.
/// </summary>
/// <remarks>
/// Implementation may be sent into background processing.
/// </remarks... | using CertiPay.Common.Logging;
using System;
using System.Threading.Tasks;
using Twilio;
namespace CertiPay.Common.Notifications
{
/// <summary>
/// Send an SMS message to the given recipient.
/// </summary>
/// <remarks>
/// Implementation may be sent into background processing.
/// </remarks... | Add timer for email sending | Add timer for email sending
| C# | mit | mattgwagner/CertiPay.Common |
1033c42d0156db660f53b3ca113741ca3cc23b37 | DigiTransit10/Helpers/DeviceTypeHelper.cs | DigiTransit10/Helpers/DeviceTypeHelper.cs | using Windows.System.Profile;
using Windows.UI.ViewManagement;
namespace DigiTransit10.Helpers
{
public static class DeviceTypeHelper
{
public static DeviceFormFactorType GetDeviceFormFactorType()
{
switch (AnalyticsInfo.VersionInfo.DeviceFamily)
{
case ... | using Windows.System.Profile;
using Windows.UI.ViewManagement;
namespace DigiTransit10.Helpers
{
public static class DeviceTypeHelper
{
public static DeviceFormFactorType GetDeviceFormFactorType()
{
switch (AnalyticsInfo.VersionInfo.DeviceFamily)
{
case ... | Make Tablet and Desktop device types report as Desktop | Make Tablet and Desktop device types report as Desktop
| C# | mit | pingzing/digi-transit-10 |
1b87767472bea0910e6dd34f5749a98e6f48c90e | test/MusicStore.Test/GenreMenuComponentTest.cs | test/MusicStore.Test/GenreMenuComponentTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.ViewComponents;
using Microsoft.Data.Entity;
using Microsoft.Extensions.DependencyInjection;
using MusicStore.Models;
using Xunit;
namespace MusicStore.Components
{
public class GenreMenuComp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.ViewComponents;
using Microsoft.Data.Entity;
using Microsoft.Extensions.DependencyInjection;
using MusicStore.Models;
using Xunit;
namespace MusicStore.Components
{
public class GenreMenuComp... | Fix bug in test where key value was not being set. | Fix bug in test where key value was not being set.
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
7f6e6f5a08d2d9d8287c5594b1f9e9956b6f1d24 | Vro.FindExportImport/Stores/SearchService.cs | Vro.FindExportImport/Stores/SearchService.cs | using System.Linq;
using EPiServer.Core;
using EPiServer.Find;
using EPiServer.Find.Framework;
using EPiServer.ServiceLocation;
using Vro.FindExportImport.Models;
namespace Vro.FindExportImport.Stores
{
public interface ISearchService
{
ContentReference FindMatchingContent(BestBetEntity bestBetEntity);... | using System;
using System.Linq;
using EPiServer;
using EPiServer.Core;
using EPiServer.Find;
using EPiServer.Find.Framework;
using EPiServer.ServiceLocation;
using Vro.FindExportImport.Models;
namespace Vro.FindExportImport.Stores
{
public interface ISearchService
{
ContentReference FindMatchingConten... | Use type filtering when searching matching content for BestBets | Use type filtering when searching matching content for BestBets
| C# | mit | SergVro/FindExportImport,SergVro/FindExportImport,SergVro/FindExportImport |
84c6f9a068265cb8354f9c82bef8de14f7a8cd84 | src/TrackTv.Updater/ApiResultRepository.cs | src/TrackTv.Updater/ApiResultRepository.cs | namespace TrackTv.Updater
{
using System;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
using TrackTv.Data;
public class ApiResultRepository
{
public ApiResultRepository(IDbService dbService)
{
this.DbService = dbService;
}
... | namespace TrackTv.Updater
{
using System;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
using TrackTv.Data;
public class ApiResultRepository
{
public ApiResultRepository(IDbService dbService)
{
this.DbService = dbService;
}
... | Fix for the api_results FK collision. | Fix for the api_results FK collision.
| C# | mit | HristoKolev/TrackTV,HristoKolev/TrackTV,HristoKolev/TrackTV,HristoKolev/TrackTV,HristoKolev/TrackTV |
40a23b992159327b1d044bdd05b4feb13ff55a3e | osu.Framework.VisualTests/VisualTestGame.cs | osu.Framework.VisualTests/VisualTestGame.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 osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Screens.Testing;
namespace osu... | // 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 osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Platform;
using osu.Framework.Sc... | Set cursor invisible in visual test game | Set cursor invisible in visual test game
| C# | mit | paparony03/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,default0/osu-framework,paparony03/osu-framework,ppy/osu-framework,RedNesto/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,peppy... |
3ff5a31def87f04ea8ceaac7a4fd351c742260a4 | src/Glimpse.Web.Common/ScriptInjector.cs | src/Glimpse.Web.Common/ScriptInjector.cs | using System.Text;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
using Microsoft.AspNet.Mvc.Rendering;
namespace Glimpse.Web.Common
{
[TargetElement("body")]
public class ScriptInjector : TagHelper
{
public override int Order => int.MaxValue;
public override void Process(TagHelperContex... | using System.Text;
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
using Microsoft.AspNet.Mvc.Rendering;
namespace Glimpse.Web.Common
{
[TargetElement("body")]
public class ScriptInjector : TagHelper
{
public override int Order => int.MaxValue;
public override void Process(TagHelperContex... | Update tag helper usage from upstream breaking change | Update tag helper usage from upstream breaking change
| C# | mit | mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterb... |
c7b4b7da7d5f51346ca4f7c840fb82b9967d4db8 | CertiPay.Payroll.Common/Address.cs | CertiPay.Payroll.Common/Address.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CertiPay.Payroll.Common
{
[ComplexType]
public class Address
{
// Warning: This is marked as a complex type, and used in several projects, so any changes will trickle down into ... | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CertiPay.Payroll.Common
{
/// <summary>
/// Represents a basic address format for the United States
/// </summary>
[ComplexType]
public class Address
{
// Warning: T... | Add API comments for address | Add API comments for address
| C# | mit | mattgwagner/CertiPay.Payroll.Common |
9358a0e4793b9e2c528017355ae7bb0c82e1275a | alert-roster.web/Views/Home/New.cshtml | alert-roster.web/Views/Home/New.cshtml | @model alert_roster.web.Models.Message
@{
ViewBag.Title = "Post New Message";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("New", "Home", FormMethod.Post))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<hr />
@Html.ValidationSummary(true)
<div class="alert alert-... | @model alert_roster.web.Models.Message
@{
ViewBag.Title = "Post New Message";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("New", "Home", FormMethod.Post))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<hr />
@Html.ValidationSummary(true)
<div class="alert alert-... | Add warning about no edit/delete | Add warning about no edit/delete
| C# | mit | mattgwagner/alert-roster |
602bd3d89a8a732ad0abcc39bbfce494db95b6b7 | BotBits/Packages/Login/Client/FutureProofLoginClient.cs | BotBits/Packages/Login/Client/FutureProofLoginClient.cs | using System.Threading.Tasks;
using EE.FutureProof;
using JetBrains.Annotations;
using PlayerIOClient;
namespace BotBits
{
public class FutureProofLoginClient : LoginClient
{
private const int CurrentVersion = 218;
public FutureProofLoginClient([NotNull] ConnectionManager connectionMa... | using System.Threading.Tasks;
using EE.FutureProof;
using JetBrains.Annotations;
using PlayerIOClient;
namespace BotBits
{
public class FutureProofLoginClient : LoginClient
{
private const int CurrentVersion = 218;
public FutureProofLoginClient([NotNull] ConnectionManager connectionMa... | Optimize FutureProof to not load when the version is up to date | Optimize FutureProof to not load when the version is up to date
| C# | mit | Yonom/BotBits |
70d7231238f4b1a69f38136d479f6b794aa27417 | CasualMeter.Common/Formatters/DamageTrackerFormatter.cs | CasualMeter.Common/Formatters/DamageTrackerFormatter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CasualMeter.Common.Helpers;
using Tera.DamageMeter;
namespace CasualMeter.Common.Formatters
{
public class DamageTrackerFormatter : Formatter
{
public DamageTrackerFormatter(Damage... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CasualMeter.Common.Helpers;
using Tera.DamageMeter;
namespace CasualMeter.Common.Formatters
{
public class DamageTrackerFormatter : Formatter
{
public DamageTrackerFormatter(Damage... | Fix not pasting stats with no boss name available. | Fix not pasting stats with no boss name available.
| C# | mit | Gl0/CasualMeter |
44e059061365ad21fb624792bdaa8e33f9722bc0 | src/Okanshi.Dashboard/GetMetrics.cs | src/Okanshi.Dashboard/GetMetrics.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Okanshi.Dashboard.Models;
namespace Okanshi.Dashboard
{
public interface IGetMetrics
{
IEnumerable<Metric> Execute(string instanceName);
}
public class GetMetrics : IGet... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Okanshi.Dashboard.Models;
namespace Okanshi.Dashboard
{
public interface IGetMetrics
{
IEnumerable<Metric> Execute(string instanceName);
}
public class GetMetrics : IGet... | Throw exception on unsupported exception | Throw exception on unsupported exception
| C# | mit | mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard |
4213dde00547a60ad82fbe587e5ff7b2d45cad7d | Basic.Azure.Storage/Communications/QueueService/MessageOperations/ClearMessageRequest.cs | Basic.Azure.Storage/Communications/QueueService/MessageOperations/ClearMessageRequest.cs | using Basic.Azure.Storage.Communications.Core;
using Basic.Azure.Storage.Communications.Core.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Basic.Azure.Storage.Communications.QueueService.MessageOperations
{
/// <summary>
... | using Basic.Azure.Storage.Communications.Core;
using Basic.Azure.Storage.Communications.Core.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Basic.Azure.Storage.Communications.QueueService.MessageOperations
{
/// <summary>
... | Update comment for ClearMessages request | Update comment for ClearMessages request
| C# | bsd-3-clause | BrianMcBrayer/BasicAzureStorageSDK,tarwn/BasicAzureStorageSDK |
1a3679b8b938c2a976538c345cb29e3fcbda7d7c | Source/TimesheetParser.Win10/Services/PasswordService.cs | Source/TimesheetParser.Win10/Services/PasswordService.cs | using System;
using System.Linq;
using System.Runtime.InteropServices;
using Windows.Security.Credentials;
using TimesheetParser.Business.Services;
namespace TimesheetParser.Win10.Services
{
internal class PasswordService : IPasswordService
{
private readonly string pluginName;
private readonl... | using System;
using System.Linq;
using Windows.Security.Credentials;
using TimesheetParser.Business.Services;
namespace TimesheetParser.Win10.Services
{
internal class PasswordService : IPasswordService
{
private readonly string pluginName;
private readonly PasswordVault vault = new PasswordVa... | Fix exception handling on .NET Native. | Fix exception handling on .NET Native.
| C# | mit | dermeister0/TimesheetParser,dermeister0/TimesheetParser |
c99df62990002d1bfa14751508be3c63197371ce | Scripts/Utils/LiteNetLibScene.cs | Scripts/Utils/LiteNetLibScene.cs | using UnityEngine;
namespace LiteNetLibManager
{
[System.Serializable]
public class LiteNetLibScene
{
[SerializeField]
public Object sceneAsset;
[SerializeField]
public string sceneName = string.Empty;
public string SceneName
{
get { return scen... | using UnityEngine;
namespace LiteNetLibManager
{
[System.Serializable]
public class LiteNetLibScene
{
[SerializeField]
private Object sceneAsset;
[SerializeField]
private string sceneName = string.Empty;
public string SceneName
{
get { return sc... | Make scene asset / scene name deprecated | Make scene asset / scene name deprecated
| C# | mit | insthync/LiteNetLibManager,insthync/LiteNetLibManager |
a8809e04f95bf7c68fb96d0e708ee99592865883 | src/Avalonia.FreeDesktop/NativeMethods.cs | src/Avalonia.FreeDesktop/NativeMethods.cs | using System.Buffers;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
namespace Avalonia.FreeDesktop
{
internal static class NativeMethods
{
[DllImport("libc", SetLastError = true)]
private static extern long readlink([MarshalAs(UnmanagedType.LPArray)] byte[] ... | using System.Buffers;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
namespace Avalonia.FreeDesktop
{
internal static class NativeMethods
{
[DllImport("libc", SetLastError = true)]
private static extern long readlink([MarshalAs(UnmanagedType.LPArray)] byte[] ... | Use the correct size for the symlink path buffer | Use the correct size for the symlink path buffer
This fixes crashes when the path has non-ASCII characters
| C# | mit | AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,grokys/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex |
7f902496f8fd6a93ff7d66cfdf006edfd70d187e | src/Utils/Metadata.cs | src/Utils/Metadata.cs | using Hyena;
using TagLib;
using System;
using GLib;
namespace FSpot.Utils
{
public static class Metadata
{
public static TagLib.Image.File Parse (SafeUri uri)
{
// Detect mime-type
var gfile = FileFactory.NewForUri (uri);
var info = gfile.QueryInfo ("standar... | using Hyena;
using TagLib;
using System;
using GLib;
namespace FSpot.Utils
{
public static class Metadata
{
public static TagLib.Image.File Parse (SafeUri uri)
{
// Detect mime-type
var gfile = FileFactory.NewForUri (uri);
var info = gfile.QueryInfo ("standar... | Work around broken mime-type detection. | Work around broken mime-type detection.
https://bugzilla.gnome.org/show_bug.cgi?id=624781
| C# | mit | nathansamson/F-Spot-Album-Exporter,mans0954/f-spot,GNOME/f-spot,nathansamson/F-Spot-Album-Exporter,mans0954/f-spot,NguyenMatthieu/f-spot,NguyenMatthieu/f-spot,dkoeb/f-spot,Sanva/f-spot,dkoeb/f-spot,dkoeb/f-spot,mono/f-spot,GNOME/f-spot,nathansamson/F-Spot-Album-Exporter,Yetangitu/f-spot,GNOME/f-spot,mono/f-spot,mono/f-... |
9fbc32ecea224cd153ef0eff91bfc1cc759e4584 | Content.Server/Atmos/Commands/AddAtmosCommand.cs | Content.Server/Atmos/Commands/AddAtmosCommand.cs | using Content.Server.Administration;
using Content.Server.Atmos.Components;
using Content.Shared.Administration;
using Robust.Shared.Console;
namespace Content.Server.Atmos.Commands
{
[AdminCommand(AdminFlags.Debug)]
public sealed class AddAtmosCommand : IConsoleCommand
{
[Dependency] private reado... | using Content.Server.Administration;
using Content.Server.Atmos.Components;
using Content.Shared.Administration;
using Robust.Shared.Console;
namespace Content.Server.Atmos.Commands
{
[AdminCommand(AdminFlags.Debug)]
public sealed class AddAtmosCommand : IConsoleCommand
{
[Dependency] private reado... | Fix addatmos from griduid artifact | Fix addatmos from griduid artifact
| C# | mit | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 |
5f6050593a4ae1c14d563c040b7b0199b1e50c06 | FaqTemplate.Bot/PlainTextMessageReceiver.cs | FaqTemplate.Bot/PlainTextMessageReceiver.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Lime.Protocol;
using Takenet.MessagingHub.Client;
using Takenet.MessagingHub.Client.Listener;
using Takenet.MessagingHub.Client.Sender;
using System.Diagnostics;
using FaqTemplate.Core.Services;
using FaqTemplate.Core.Domain;
namespace FaqTempla... | using System;
using System.Threading;
using System.Threading.Tasks;
using Lime.Protocol;
using Takenet.MessagingHub.Client;
using Takenet.MessagingHub.Client.Listener;
using Takenet.MessagingHub.Client.Sender;
using System.Diagnostics;
using FaqTemplate.Core.Services;
using FaqTemplate.Core.Domain;
namespace FaqTempla... | Add multiple response handling for diferente score levels | Add multiple response handling for diferente score levels
| C# | mit | iperoyg/faqtemplatebot |
979a7284ce2b9983653c7aee2647ed76fbcfbdc0 | SimpleWAWS/Models/WebsiteTemplate.cs | SimpleWAWS/Models/WebsiteTemplate.cs | using System;
using System.Collections.Generic;
using System.EnterpriseServices.Internal;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace SimpleWAWS.Models
{
public class WebsiteTemplate : BaseTemplate
{
[JsonP... | using System;
using System.Collections.Generic;
using System.EnterpriseServices.Internal;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace SimpleWAWS.Models
{
public class WebsiteTemplate : BaseTemplate
{
[JsonP... | Move 'Empty Website' template to Default language | Move 'Empty Website' template to Default language
| C# | apache-2.0 | projectkudu/TryAppService,davidebbo/SimpleWAWS,projectkudu/SimpleWAWS,projectkudu/TryAppService,projectkudu/SimpleWAWS,davidebbo/SimpleWAWS,projectkudu/SimpleWAWS,davidebbo/SimpleWAWS,fashaikh/SimpleWAWS,fashaikh/SimpleWAWS,projectkudu/TryAppService,fashaikh/SimpleWAWS,fashaikh/SimpleWAWS,projectkudu/SimpleWAWS,davideb... |
e27bd15f080242857e4c62d854628c24df235de9 | src/Telegram.Bot/Helpers/Extensions.cs | src/Telegram.Bot/Helpers/Extensions.cs | using System;
namespace Telegram.Bot.Helpers
{
/// <summary>
/// Extension Methods
/// </summary>
public static class Extensions
{
private static readonly DateTime UnixStart = new DateTime(1970, 1, 1);
/// <summary>
/// Convert a long into a DateTime
/// </summary... | using System;
namespace Telegram.Bot.Helpers
{
/// <summary>
/// Extension Methods
/// </summary>
public static class Extensions
{
private static readonly DateTime UnixStart = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
/// <summary>
/// Convert a long into a Dat... | Fix minor issue with unix time calculation. | Fix minor issue with unix time calculation.
| C# | mit | TelegramBots/telegram.bot,MrRoundRobin/telegram.bot,AndyDingo/telegram.bot |
cfb42037cff74a3db3dbcf80cb176003f428c7ae | osu.Game/Online/API/Requests/GetUsersRequest.cs | osu.Game/Online/API/Requests/GetUsersRequest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
namespace osu.Game.Online.API.Requests
{
public class GetUsersRequest : APIRequest<GetUsersResponse>
{
private readonly ... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
namespace osu.Game.Online.API.Requests
{
public class GetUsersRequest : APIRequest<GetUsersResponse>
{
private readonly int[] userIds;
... | Refactor request string logic to avoid linq usage | Refactor request string logic to avoid linq usage
| C# | mit | smoogipooo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,peppy/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,ppy/osu |
9abd0dc16414d9bdeeec898d79bed3c4010258f3 | Bonobo.Git.Server/Configuration/AuthenticationSettings.cs | Bonobo.Git.Server/Configuration/AuthenticationSettings.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
namespace Bonobo.Git.Server.Configuration
{
public class AuthenticationSettings
{
public static string MembershipService { get; private set; }
public static string RoleProvider { ge... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
namespace Bonobo.Git.Server.Configuration
{
public class AuthenticationSettings
{
public static string MembershipService { get; private set; }
static AuthenticationSettings()
... | Remove unused RoleProvider setting from authentication configuration | Remove unused RoleProvider setting from authentication configuration
| C# | mit | crowar/Bonobo-Git-Server,Ollienator/Bonobo-Git-Server,anyeloamt1/Bonobo-Git-Server,Acute-sales-ltd/Bonobo-Git-Server,lkho/Bonobo-Git-Server,Acute-sales-ltd/Bonobo-Git-Server,NipponSysits/IIS.Git-Connector,NipponSysits/IIS.Git-Connector,willdean/Bonobo-Git-Server,Ollienator/Bonobo-Git-Server,forgetz/Bonobo-Git-Server,br... |
a27c502ebaae34ef6355942caaaaeff44fa08c01 | Durwella.UrlShortening.Tests/WebClientUrlUnwrapperTest.cs | Durwella.UrlShortening.Tests/WebClientUrlUnwrapperTest.cs | using System.Net;
using FluentAssertions;
using NUnit.Framework;
namespace Durwella.UrlShortening.Tests
{
public class WebClientUrlUnwrapperTest
{
[Test]
public void ShouldGetResourceLocation()
{
var wrappedUrl = "http://goo.gl/mSkqOi";
var subject = new WebClie... | using System.Net;
using FluentAssertions;
using NUnit.Framework;
namespace Durwella.UrlShortening.Tests
{
public class WebClientUrlUnwrapperTest
{
[Test]
public void ShouldGetResourceLocation()
{
var wrappedUrl = "http://goo.gl/mSkqOi";
var subject = new WebClie... | Update tests for new url resolution behavior | Update tests for new url resolution behavior
| C# | mit | Durwella/UrlShortening,Durwella/UrlShortening |
38e336fa9f7a3f730771a958f7ccde61a22bbedd | UaClient.UnitTests/UnitTests/UaApplicationOptionsTests.cs | UaClient.UnitTests/UnitTests/UaApplicationOptionsTests.cs | using FluentAssertions;
using System;
using System.Collections.Generic;
using System.Text;
using Workstation.ServiceModel.Ua;
using Xunit;
namespace Workstation.UaClient.UnitTests
{
public class UaApplicationOptionsTests
{
[Fact]
public void UaTcpTransportChannelOptionsDefaults()
{
... | using FluentAssertions;
using System;
using System.Collections.Generic;
using System.Text;
using Workstation.ServiceModel.Ua;
using Xunit;
namespace Workstation.UaClient.UnitTests
{
public class UaApplicationOptionsTests
{
[Fact]
public void UaTcpTransportChannelOptionsDefaults()
{
... | Use 8192u as lowestBufferSize; Remove tests for LocalMaxChunkCount and MaxMessageSize | Use 8192u as lowestBufferSize; Remove tests for LocalMaxChunkCount and MaxMessageSize
| C# | mit | convertersystems/opc-ua-client |
d028119cf799e0f7007850b3a811613696b158bd | DesktopWidgets/Helpers/FullScreenHelper.cs | DesktopWidgets/Helpers/FullScreenHelper.cs | using System.Linq;
using System.Windows;
using System.Windows.Forms;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Helpers
{
internal static class FullScreenHelper
{
private static bool DoesMonitorHaveFullscreenApp(Screen screen) => Win32Helper.GetForegroundApp()
.IsFullScreen(scr... | using System.Linq;
using System.Windows;
using System.Windows.Forms;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Helpers
{
internal static class FullScreenHelper
{
private static bool DoesMonitorHaveFullscreenApp(Screen screen) => Win32Helper.GetForegroundApp()
.IsFullScreen(scr... | Fix potential fullscreen checking error | Fix potential fullscreen checking error
| C# | apache-2.0 | danielchalmers/DesktopWidgets |
b270e4ae22bee7005c1a9d26f6d5309a82b4ff67 | SharpHaven.Common/Resources/ResourceRef.cs | SharpHaven.Common/Resources/ResourceRef.cs | using System;
namespace SharpHaven.Resources
{
public struct ResourceRef
{
public ResourceRef(string name, ushort version)
{
if (name == null)
throw new ArgumentNullException(nameof(name));
this.Name = name;
this.Version = version;
}
public string Name { get; }
public ushort Version { get;... | using System;
namespace SharpHaven.Resources
{
public struct ResourceRef
{
public ResourceRef(string name, ushort version)
{
if (name == null)
throw new ArgumentNullException(nameof(name));
Name = name;
Version = version;
}
public string Name { get; }
public ushort Version { get; }
publ... | Revert "Fix mono compilation error" | Revert "Fix mono compilation error"
This reverts commit be3d841e576a83354476c905b51882159daba5cc.
| C# | mit | k-t/SharpHaven |
647aa345f7547f66c19cf7ece10cba5e08d17218 | Gu.Wpf.Geometry.Tests/NamespacesTests.cs | Gu.Wpf.Geometry.Tests/NamespacesTests.cs | namespace Gu.Wpf.Geometry.Tests
{
using System;
using System.Linq;
using System.Reflection;
using System.Windows.Markup;
using NUnit.Framework;
public class NamespacesTests
{
private const string Uri = "http://gu.se/Geometry";
private readonly Assembly assembly;
p... | namespace Gu.Wpf.Geometry.Tests
{
using System;
using System.Linq;
using System.Reflection;
using System.Windows.Markup;
using NUnit.Framework;
public class NamespacesTests
{
private const string Uri = "http://gu.se/Geometry";
private readonly Assembly assembly;
p... | Remove test that is checked by analyzer. | Remove test that is checked by analyzer.
| C# | mit | JohanLarsson/Gu.Wpf.Geometry |
74cbf9f91972fc26244bb008cf20fee432999bfd | OMF/Program.cs | OMF/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OMF
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
stati... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OMF
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
stati... | Make test file path OS-agnostic | Make test file path OS-agnostic
| C# | mit | GMSGDataExchange/omf_csharp |
4274cc401f9522bea1aa88190718981b03381a19 | PS.Mothership.Core/PS.Mothership.Core.Common/SignalRConnectionHandling/IClientsCollection.cs | PS.Mothership.Core/PS.Mothership.Core.Common/SignalRConnectionHandling/IClientsCollection.cs | namespace PS.Mothership.Core.Common.SignalRConnectionHandling
{
public interface IClientsCollection
{
ISignalRUser Get(string machineName, string username);
ISignalRUser GetOrAdd(string machineName, string username);
void AddOrReplace(ISignalRUser inputUser);
}
}
| namespace PS.Mothership.Core.Common.SignalRConnectionHandling
{
public interface IClientsCollection
{
ISignalRUser Get(string username);
ISignalRUser GetOrAdd(string username);
void AddOrReplace(ISignalRUser inputUser);
}
}
| Remove machine name from method calls since it is no longer needed after refactoring implementation | Remove machine name from method calls since it is no longer needed after refactoring implementation
| C# | mit | Paymentsense/Dapper.SimpleSave |
373b4d6a8ecc320eb14d09c476e1a6161b0641f1 | Src/AjErl.Console/Program.cs | Src/AjErl.Console/Program.cs | namespace AjErl.Console
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AjErl.Compiler;
using AjErl.Expressions;
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("AjE... | namespace AjErl.Console
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AjErl.Compiler;
using AjErl.Expressions;
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("AjE... | Expand delayed calls in console interpreter | Expand delayed calls in console interpreter
| C# | mit | ajlopez/AjErl,ajlopez/ErlSharp |
0cea0185767d71d7a94538c9127d2fb49ef158d4 | osu.Game/Screens/Select/ImportFromStablePopup.cs | osu.Game/Screens/Select/ImportFromStablePopup.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Game.Graphics;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Select
{
public class ImportFromStablePopup : PopupDialo... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Game.Graphics;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Select
{
public class ImportFromStablePopup : PopupDialo... | Use a more suiting (?) icon for import dialog | Use a more suiting (?) icon for import dialog
Closes #1763. | C# | mit | NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,ZLima12/osu,smoogipoo/osu,ppy/osu,Frontear/osuKyzer,peppy/osu-new,johnneijzen/osu,johnneijzen/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,2yangk23/osu,EVAST9919/osu,EVAST9919/osu,ppy/osu,ZLima12/osu,2yangk23/osu,UselessToucan/osu,naoey/osu,peppy/osu,naoey/osu,DrabWeb/osu... |
fd4bc059a2b35f1b1d05eea263599f10b5a0d6f9 | Common/Properties/SharedAssemblyInfo.cs | Common/Properties/SharedAssemblyInfo.cs | using System.Reflection;
// common assembly attributes
[assembly: AssemblyDescription("Lean Engine is an open-source, plataform agnostic C# and Python algorithmic trading engine. " +
"Allows strategy research, backtesting and live trading with Equities, FX, CFD, Crypto, Options and Futu... | using System.Reflection;
// common assembly attributes
[assembly: AssemblyDescription("Lean Engine is an open-source, platform agnostic C# and Python algorithmic trading engine. " +
"Allows strategy research, backtesting and live trading with Equities, FX, CFD, Crypto, Options and Futur... | Fix typo in assembly description | Fix typo in assembly description
| C# | apache-2.0 | QuantConnect/Lean,jameschch/Lean,AlexCatarino/Lean,StefanoRaggi/Lean,QuantConnect/Lean,jameschch/Lean,StefanoRaggi/Lean,JKarathiya/Lean,JKarathiya/Lean,StefanoRaggi/Lean,StefanoRaggi/Lean,jameschch/Lean,jameschch/Lean,JKarathiya/Lean,AlexCatarino/Lean,StefanoRaggi/Lean,jameschch/Lean,QuantConnect/Lean,JKarathiya/Lean,A... |
26f501f86401d1ad54b196e020a4430561569e95 | src/OmniSharp.Abstractions/Configuration.cs | src/OmniSharp.Abstractions/Configuration.cs | namespace OmniSharp
{
internal static class Configuration
{
public static bool ZeroBasedIndices = false;
public const string RoslynVersion = "2.1.0.0";
public const string RoslynPublicKeyToken = "31bf3856ad364e35";
public readonly static string RoslynFeatures = GetRoslynAssembl... | namespace OmniSharp
{
internal static class Configuration
{
public static bool ZeroBasedIndices = false;
public const string RoslynVersion = "2.3.0.0";
public const string RoslynPublicKeyToken = "31bf3856ad364e35";
public readonly static string RoslynFeatures = GetRoslynAssembl... | Update Roslyn version number for assembly loading | Update Roslyn version number for assembly loading
| C# | mit | DustinCampbell/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn |
f6dec186e9bb20707c477ac79ce27a5ec225380f | projects/ProcessSample/source/ProcessSample.App/Program.cs | projects/ProcessSample/source/ProcessSample.App/Program.cs | //-----------------------------------------------------------------------
// <copyright file="Program.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace ProcessSample
{
using Sy... | //-----------------------------------------------------------------------
// <copyright file="Program.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace ProcessSample
{
using Sy... | Use async method in main program | Use async method in main program
| C# | unlicense | brian-dot-net/writeasync,brian-dot-net/writeasync,brian-dot-net/writeasync |
69c1dd61d2143bc4697c7da94b6b98ffd948427e | ProgressBarComponent/Views/Home/Index.cshtml | ProgressBarComponent/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
.<div class="row">
<div class="col-xs-12">
<div bs-progress-min="1"
bs-progress-max="5"
bs-progress-value="4">
</div>
</div>
</div>
| @{
ViewData["Title"] = "Home Page";
}
<div class="row">
<div class="col-xs-6 col-md-4">
<div href="#" class="thumbnail">
<h3>Progress Bar Default</h3>
<p>
<code>progress-bar</code>
</p>
<div bs-progress-min="1"
bs-progress-max="100"
bs-progress... | Use updated TagHelper on home page | Use updated TagHelper on home page
| C# | mit | peterblazejewicz/asp5-mvc6-examples,peterblazejewicz/asp5-mvc6-examples,peterblazejewicz/asp5-mvc6-examples,peterblazejewicz/asp5-mvc6-examples |
77f0b9b78c19a5eaf2dd63218b3f56272106b3b4 | game.cs | game.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Hangman {
public class Game {
public string Word;
private List<char> GuessedLetters;
private string StatusMessage;
public Game(string word) {
Word = word;
GuessedLetters = new List<char>();
StatusMessage =... | using System;
using System.Collections.Generic;
using System.Text;
namespace Hangman {
public class Game {
public string Word;
private List<char> GuessedLetters;
private string StatusMessage;
public Game(string word) {
Word = word;
GuessedLetters = new List<char>();
StatusMessage =... | Update status message for last guess | Update status message for last guess
| C# | unlicense | 12joan/hangman |
5b44b6efce0556b0c58742696ba0e7bd3e541c3c | Source/Tests/TraktApiSharp.Tests/Experimental/Requests/Users/OAuth/TraktUserCustomListAddRequestTests.cs | Source/Tests/TraktApiSharp.Tests/Experimental/Requests/Users/OAuth/TraktUserCustomListAddRequestTests.cs | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Base.Post;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
using TraktApiSharp.Objects.Get.Users.Lists;
... | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Base.Post;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
using TraktApiSharp.Objects.Get.Users.Lists;
... | Add test for authorization requirement in TraktUserCustomListAddRequest | Add test for authorization requirement in TraktUserCustomListAddRequest
| C# | mit | henrikfroehling/TraktApiSharp |
ab8481215c11df4c2f76a46ec193b8cb69e3ae41 | JustSaying.IntegrationTests/WhenRegisteringHandlersViaResolver/WhenRegisteringABlockingHandlerViaContainer.cs | JustSaying.IntegrationTests/WhenRegisteringHandlersViaResolver/WhenRegisteringABlockingHandlerViaContainer.cs | using System.Linq;
using NUnit.Framework;
using Shouldly;
using StructureMap;
namespace JustSaying.IntegrationTests.WhenRegisteringHandlersViaResolver
{
public class WhenRegisteringABlockingHandlerViaContainer : GivenAPublisher
{
private BlockingOrderProcessor _resolvedHandler;
protected overr... | using System.Linq;
using JustSaying.Messaging.MessageHandling;
using NUnit.Framework;
using Shouldly;
using StructureMap;
namespace JustSaying.IntegrationTests.WhenRegisteringHandlersViaResolver
{
public class WhenRegisteringABlockingHandlerViaContainer : GivenAPublisher
{
private BlockingOrderProcesso... | Fix to dodgy cast in test | Fix to dodgy cast in test
| C# | apache-2.0 | eric-davis/JustSaying,Intelliflo/JustSaying,Intelliflo/JustSaying |
72a58731bb7ddfaf35c14cb4362b49451d4dfdbf | src/ReadLine/ReadLine.cs | src/ReadLine/ReadLine.cs | using System;
namespace ReadLine
{
public static class ReadLine
{
private static KeyHandler _keyHandler;
static ReadLine()
{
_keyHandler = new KeyHandler();
}
public static string Read()
{
ConsoleKeyInfo keyInfo = Console.ReadKey(true);... | using System;
namespace ReadLine
{
public static class ReadLine
{
private static KeyHandler _keyHandler;
public static string Read()
{
_keyHandler = new KeyHandler();
ConsoleKeyInfo keyInfo = Console.ReadKey(true);
while (keyInfo.Key != ConsoleKey.E... | Create new instance of KeyHandler on every call to Read method | Create new instance of KeyHandler on every call to Read method
| C# | mit | tsolarin/readline,tsolarin/readline |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.