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 |
|---|---|---|---|---|---|---|---|---|---|
05ae25fb6943689897b2b6578353f7da6581ee98 | osu.Framework.Tests/Input/KeyCombinationTest.cs | osu.Framework.Tests/Input/KeyCombinationTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Input.Bindings;
using osu.Framework.Input.States;
using osuTK.Input;
using KeyboardState = osu.Framework.Input.States.KeyboardS... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Input.Bindings;
namespace osu.Framework.Tests.Input
{
[TestFixture]
public class KeyCombinationTest
{
priv... | Make tests actually test the string output | Make tests actually test the string output
| C# | mit | smoogipooo/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework |
2524ebb93f0ae26d3f8a6ec495e6af82034375fe | DapperTesting/Core/Data/DapperPostRepository.cs | DapperTesting/Core/Data/DapperPostRepository.cs | using System;
using System.Collections.Generic;
using DapperTesting.Core.Model;
namespace DapperTesting.Core.Data
{
public class DapperPostRepository : DapperRepositoryBase, IPostRepository
{
public DapperPostRepository(IConnectionFactory connectionFactory, string connectionStringName) : base(connecti... | using System;
using System.Collections.Generic;
using System.Linq;
using Dapper;
using DapperTesting.Core.Model;
namespace DapperTesting.Core.Data
{
public class DapperPostRepository : DapperRepositoryBase, IPostRepository
{
public DapperPostRepository(IConnectionFactory connectionFactory, string co... | Add basic Get for a post | Add basic Get for a post
| C# | mit | tvanfosson/dapper-integration-testing |
4344d78a4d960a71490a186f822a5b9c94a3bbb8 | src/SevenDigital.Api.Wrapper.Integration.Tests/Exceptions/ErrorConditionTests.cs | src/SevenDigital.Api.Wrapper.Integration.Tests/Exceptions/ErrorConditionTests.cs | using System;
using NUnit.Framework;
using SevenDigital.Api.Schema;
using SevenDigital.Api.Wrapper.Exceptions;
using SevenDigital.Api.Schema.ArtistEndpoint;
using SevenDigital.Api.Schema.LockerEndpoint;
namespace SevenDigital.Api.Wrapper.Integration.Tests.Exceptions
{
[TestFixture]
public class ErrorCondit... | using System;
using NUnit.Framework;
using SevenDigital.Api.Schema;
using SevenDigital.Api.Wrapper.Exceptions;
using SevenDigital.Api.Schema.ArtistEndpoint;
using SevenDigital.Api.Schema.LockerEndpoint;
namespace SevenDigital.Api.Wrapper.Integration.Tests.Exceptions
{
[TestFixture]
public class ErrorCondit... | Make inputexception message tests more robust | Make inputexception message tests more robust
| C# | mit | gregsochanik/SevenDigital.Api.Wrapper,danbadge/SevenDigital.Api.Wrapper,emashliles/SevenDigital.Api.Wrapper,bnathyuw/SevenDigital.Api.Wrapper,bettiolo/SevenDigital.Api.Wrapper,AnthonySteele/SevenDigital.Api.Wrapper,mattgray/SevenDigital.Api.Wrapper,danhaller/SevenDigital.Api.Wrapper,luiseduardohdbackup/SevenDigital.Api... |
5a02e477bfc0f52a9fb273faaa3b574517999aee | NuGet.Extensions.Tests/TestData/Isolation.cs | NuGet.Extensions.Tests/TestData/Isolation.cs | using System.IO;
namespace NuGet.Extensions.Tests.TestData
{
public class Isolation
{
public static DirectoryInfo GetIsolatedTestSolutionDir()
{
var solutionDir = new DirectoryInfo(Path.GetRandomFileName());
CopyFilesRecursively(new DirectoryInfo(Paths.TestSolutionForA... | using System.IO;
namespace NuGet.Extensions.Tests.TestData
{
public class Isolation
{
public static DirectoryInfo GetIsolatedTestSolutionDir()
{
var solutionDir = new DirectoryInfo(GetRandomTempDirectoryPath());
CopyFilesRecursively(new DirectoryInfo(Paths.TestSolution... | Create temp directories in temp folder | Create temp directories in temp folder
| C# | mit | BenPhegan/NuGet.Extensions |
37ef42a633586abc13e43bdad74731b25ad55742 | examples/dotnetcore2.0/Function.cs | examples/dotnetcore2.0/Function.cs | // Compile with:
// docker run --rm -v "$PWD":/var/task lambci/lambda:build-dotnetcore2.0 dotnet publish -c Release -o pub
// Run with:
// docker run --rm -v "$PWD"/pub:/var/task lambci/lambda:dotnetcore2.0 test::test.Function::FunctionHandler "some"
using Amazon.Lambda.Core;
[assembly: LambdaSerializer(typeof(Amazo... | // Compile with:
// docker run --rm -v "$PWD":/var/task lambci/lambda:build-dotnetcore2.0 dotnet publish -c Release -o pub
// Run with:
// docker run --rm -v "$PWD"/pub:/var/task lambci/lambda:dotnetcore2.0 test::test.Function::FunctionHandler "some"
using System;
using System.Collections;
using Amazon.Lambda.Core;
... | Add RemainingTime and env vars to dotnetcore2.0 example | Add RemainingTime and env vars to dotnetcore2.0 example
| C# | mit | lambci/docker-lambda,lambci/docker-lambda,lambci/docker-lambda,lambci/docker-lambda,lambci/docker-lambda,lambci/docker-lambda,lambci/docker-lambda |
3b25539b725493d8d8de9d858c1e7636061aca44 | src/GitVersionTask.Tests/GetVersionTaskTests.cs | src/GitVersionTask.Tests/GetVersionTaskTests.cs | using System.Linq;
using GitVersion;
using GitVersionTask;
using Microsoft.Build.Framework;
using NUnit.Framework;
using Shouldly;
[TestFixture]
public class GetVersionTaskTests
{
[Test]
public void OutputsShouldMatchVariableProvider()
{
var taskProperties = typeof(GetVersion)
.GetProp... | using System.Linq;
using GitVersion;
using GitVersionTask;
using Microsoft.Build.Framework;
using NUnit.Framework;
using Shouldly;
[TestFixture]
public class GetVersionTaskTests
{
[Test]
public void OutputsShouldMatchVariableProvider()
{
var taskProperties = typeof(GetVersion)
.GetProp... | Use the AvailableVariables property instead of doing GetProperties() everywhere. | Use the AvailableVariables property instead of doing GetProperties() everywhere.
| C# | mit | ermshiperete/GitVersion,dpurge/GitVersion,ermshiperete/GitVersion,dpurge/GitVersion,gep13/GitVersion,Philo/GitVersion,pascalberger/GitVersion,onovotny/GitVersion,asbjornu/GitVersion,onovotny/GitVersion,onovotny/GitVersion,dpurge/GitVersion,gep13/GitVersion,DanielRose/GitVersion,dpurge/GitVersion,pascalberger/GitVersion... |
8442489aa773a11609da66cf732f7099a3e7b2f4 | WundergroundClient/Autocomplete/AutocompleteRequest.cs | WundergroundClient/Autocomplete/AutocompleteRequest.cs | using System;
namespace WundergroundClient.Autocomplete
{
enum ResultFilter
{
CitiesOnly,
HurricanesOnly,
CitiesAndHurricanes
}
class AutocompleteRequest
{
private String _searchString;
private ResultFilter _filter = ResultFilter.CitiesOnly;
private... | using System;
namespace WundergroundClient.Autocomplete
{
enum ResultFilter
{
CitiesOnly,
HurricanesOnly,
CitiesAndHurricanes
}
class AutocompleteRequest
{
private const String BaseUrl = "http://autocomplete.wunderground.com/";
private readonly String _sea... | Add comments to constructors, use constructor chaining. | Add comments to constructors, use constructor chaining.
| C# | mit | jcheng31/WundergroundAutocomplete.NET |
7c00a9944936a22aab6e59c51a6fbe2b4cacfbf4 | OpenStardriveServer/HostedServices/ServerInitializationService.cs | OpenStardriveServer/HostedServices/ServerInitializationService.cs | using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using OpenStardriveServer.Domain.Database;
using OpenStardriveServer.Domain.Systems;
namespace OpenStardriveServer.HostedServices;
public class ServerInitializationService : BackgroundService
... | using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using OpenStardriveServer.Domain;
using OpenStardriveServer.Domain.Database;
using OpenStardriveServer.Domain.Systems;
namespace OpenStardriveServer.HostedServices;
public class ServerInitiali... | Initialize the server with a report-state command | Initialize the server with a report-state command
| C# | apache-2.0 | openstardrive/server,openstardrive/server,openstardrive/server |
4e6b240e77c80ee4e0ebef669d4f62b68c54ad47 | apis/Google.Cloud.Translation.V2/Google.Cloud.Translation.V2.Tests/CodeHealthTest.cs | apis/Google.Cloud.Translation.V2/Google.Cloud.Translation.V2.Tests/CodeHealthTest.cs | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | Clean up Translation code health test | Clean up Translation code health test
(This is somewhat unrelated to the AdvancedTranslationClient work,
hence the separate commit.)
| C# | apache-2.0 | evildour/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,iantalarico/google-cloud-dotnet,benwulfe/google-cloud-dotnet,jskeet/google-cloud-dotnet,evildour/google-cloud-dotnet,chrisdunelm/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,chrisdunelm/gcloud-dot... |
3e828a6521917bb2d0eac85b7f3668ff73415bae | Casper.Mvc/Casper.Mvc/Views/Home/Index.cshtml | Casper.Mvc/Casper.Mvc/Views/Home/Index.cshtml | @{ViewBag.Title = "Home";}
<div class="jumbotron">
<h1>CasperJS Testing!</h1>
<p>CasperJS is a navigation scripting & testing utility for PhantomJS written in Javascript</p>
<p><a target="_blank" href="http://casperjs.org/" class="btn btn-primary btn-lg" role="button">Learn more</a></p>
</div>
<div clas... | @{ViewBag.Title = "Home";}
<div class="jumbotron">
<h1>CasperJS Testing!!!</h1>
<p>CasperJS is a navigation scripting & testing utility for PhantomJS written in Javascript</p>
<p><a target="_blank" href="http://casperjs.org/" class="btn btn-primary btn-lg" role="button">Learn more</a></p>
</div>
<div cl... | Remove second build step from TC, thanks to Sean | Remove second build step from TC, thanks to Sean
| C# | mit | rippo/testing.casperjs.presentation.vscode.50mins,rippo/testing.casperjs.presentation.vscode.50mins,rippo/testing.casperjs.presentation.vscode.50mins,rippo/testing.casperjs.presentation.vscode.50mins |
47e00887a29a2a468cd920c1e548e00cbc6cf468 | src/NodaTime.Test/Annotations/MutabilityTest.cs | src/NodaTime.Test/Annotations/MutabilityTest.cs | // Copyright 2013 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
using System.Linq;
using NodaTime.Annotations;
using NUnit.Framework;
namespace NodaTime.Test.Annotations
{
[TestFixture]
public c... | // Copyright 2013 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
using System.Linq;
using NodaTime.Annotations;
using NUnit.Framework;
namespace NodaTime.Test.Annotations
{
[TestFixture]
public c... | Remove some spurious Console.WriteLine() calls from a test. | Remove some spurious Console.WriteLine() calls from a test.
| C# | apache-2.0 | BenJenkinson/nodatime,malcolmr/nodatime,malcolmr/nodatime,jskeet/nodatime,nodatime/nodatime,zaccharles/nodatime,zaccharles/nodatime,zaccharles/nodatime,malcolmr/nodatime,zaccharles/nodatime,zaccharles/nodatime,jskeet/nodatime,nodatime/nodatime,zaccharles/nodatime,BenJenkinson/nodatime,malcolmr/nodatime |
0b4a36b6a62eaa5435ddb949e864025e32d9cce8 | src/Services/HourlyAndMinutelyDarkSkyService.cs | src/Services/HourlyAndMinutelyDarkSkyService.cs | using DarkSky.Models;
using DarkSky.Services;
using Microsoft.Extensions.Options;
using System.Collections.Generic;
using System.Threading.Tasks;
using WeatherLink.Models;
namespace WeatherLink.Services
{
/// <summary>
/// A service to get a Dark Sky forecast for a latitude and longitude.
/// </summary>
... | using DarkSky.Models;
using DarkSky.Services;
using Microsoft.Extensions.Options;
using System.Collections.Generic;
using System.Threading.Tasks;
using WeatherLink.Models;
namespace WeatherLink.Services
{
/// <summary>
/// A service to get a Dark Sky forecast for a latitude and longitude.
/// </summary>
... | Fix warning about empty constructor | Fix warning about empty constructor
| C# | mit | amweiss/WeatherLink |
3e9f23df8e72c8c547e37798db9fb5a3ac68bb1d | LiveSplit/LiveSplit.Core/Model/TimeSpanParser.cs | LiveSplit/LiveSplit.Core/Model/TimeSpanParser.cs | using System;
using System.Globalization;
namespace LiveSplit.Model
{
public static class TimeSpanParser
{
public static TimeSpan? ParseNullable(String timeString)
{
if (String.IsNullOrEmpty(timeString))
return null;
return Parse(timeString);
}
... | using System;
using System.Linq;
using System.Globalization;
namespace LiveSplit.Model
{
public static class TimeSpanParser
{
public static TimeSpan? ParseNullable(String timeString)
{
if (String.IsNullOrEmpty(timeString))
return null;
return Parse(timeS... | Rewrite of the Time Parsing code | Rewrite of the Time Parsing code
| C# | mit | stoye/LiveSplit,Dalet/LiveSplit,zoton2/LiveSplit,CryZe/LiveSplit,Jiiks/LiveSplit,kugelrund/LiveSplit,drtchops/LiveSplit,Dalet/LiveSplit,PackSciences/LiveSplit,glasnonck/LiveSplit,Fluzzarn/LiveSplit,Seldszar/LiveSplit,glasnonck/LiveSplit,chloe747/LiveSplit,drtchops/LiveSplit,stoye/LiveSplit,kugelrund/LiveSplit,CryZe/Liv... |
d12e4928e62023e26aa90ce32bbf84f087886e7d | osu.Game/Screens/Edit/Verify/VerifyScreen.cs | osu.Game/Screens/Edit/Verify/VerifyScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.G... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.G... | Increase editor verify settings width to give more breathing space | Increase editor verify settings width to give more breathing space
| C# | mit | ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu |
3b10811e61ed71ec331dd606b0234c7cb934f2bb | samples/HelloWorld/Startup.cs | samples/HelloWorld/Startup.cs | using ExplicitlyImpl.AspNetCore.Mvc.FluentActions;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
namespace HelloWorld
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().AddFluentActions();
... | using ExplicitlyImpl.AspNetCore.Mvc.FluentActions;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
namespace HelloWorld
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services... | Set compatibility version to 2.2 in hello world sample project | Set compatibility version to 2.2 in hello world sample project
| C# | mit | ExplicitlyImplicit/AspNetCore.Mvc.FluentActions,ExplicitlyImplicit/AspNetCore.Mvc.FluentActions |
f28dcd8d0c37eb63b1eefb9ca1cf17d3dd92f63b | src/StreamDeckSharp/StreamDeckExtensions.cs | src/StreamDeckSharp/StreamDeckExtensions.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StreamDeckSharp
{
/// <summary>
/// </summary>
/// <remarks>
/// The <see cref="IStreamDeck"/> interface is... | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StreamDeckSharp
{
/// <summary>
/// </summary>
/// <remarks>
/// The <see cref="IStreamDeck"/> interface is... | Add extension method to set bitmap for all keys (+Xml documentation) | Add extension method to set bitmap for all keys (+Xml documentation)
| C# | mit | OpenStreamDeck/StreamDeckSharp |
81e5d852c6e277535f1268e5225bbdf7afedb288 | src/ByteSizeLib.Tests/Binary/ToBinaryStringMethod.cs | src/ByteSizeLib.Tests/Binary/ToBinaryStringMethod.cs | using System.Globalization;
using Xunit;
namespace ByteSizeLib.Tests.BinaryByteSizeTests
{
public class ToBinaryStringMethod
{
[Fact]
public void ReturnsDefaultRepresenation()
{
// Arrange
var b = ByteSize.FromKiloBytes(10);
// Act
var r... | using System.Globalization;
using Xunit;
namespace ByteSizeLib.Tests.BinaryByteSizeTests
{
public class ToBinaryStringMethod
{
[Fact]
public void ReturnsDefaultRepresenation()
{
// Arrange
var b = ByteSize.FromKiloBytes(10);
// Act
var r... | Fix ReturnsDefaultRepresenationCurrentCulture test for all cultures | Fix ReturnsDefaultRepresenationCurrentCulture test for all cultures
Use NumberDecimalSeparator instead of CurrencyDecimalSeparator. In some cultures it may be different. For example, in the fr-CH culture, the currency separator is a dot and the number separator is a comma. | C# | mit | omar/ByteSize |
16973e7db1fb7610e39a68976237b72fca28b1c5 | AngleSharp.Performance.Css/AngleSharpParser.cs | AngleSharp.Performance.Css/AngleSharpParser.cs | namespace AngleSharp.Performance.Css
{
using AngleSharp;
using AngleSharp.Parser.Css;
using System;
class AngleSharpParser : ITestee
{
static readonly IConfiguration configuration = new Configuration().WithCss();
public String Name
{
get { return "AngleSharp"; ... | namespace AngleSharp.Performance.Css
{
using AngleSharp;
using AngleSharp.Parser.Css;
using System;
class AngleSharpParser : ITestee
{
static readonly IConfiguration configuration = new Configuration().WithCss();
static readonly CssParserOptions options = new CssParserOptions
... | Use CssParser front-end as intended | Use CssParser front-end as intended
| C# | mit | Livven/AngleSharp,FlorianRappl/AngleSharp,AngleSharp/AngleSharp,FlorianRappl/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,zedr0n/AngleSharp.Local,Livven/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,Livven/AngleSharp,FlorianRappl/AngleSharp,FlorianRappl/AngleSharp,zedr0n/AngleSharp.Local,zedr0n/Angle... |
1674f6afc68a89a2570c35fd40a0f1d277f08ac5 | DanTup.DartAnalysis/Commands/AnalysisGetHover.cs | DanTup.DartAnalysis/Commands/AnalysisGetHover.cs | using System.Threading.Tasks;
namespace DanTup.DartAnalysis
{
class AnalysisGetHoverRequest : Request<AnalysisGetHoverParams, Response<AnalysisGetHoverResponse>>
{
public string method = "analysis.getHover";
public AnalysisGetHoverRequest(string file, int offset)
{
this.@params = new AnalysisGetHoverParam... | using System.Threading.Tasks;
namespace DanTup.DartAnalysis
{
class AnalysisGetHoverRequest : Request<AnalysisGetHoverParams, Response<AnalysisGetHoverResponse>>
{
public string method = "analysis.getHover";
public AnalysisGetHoverRequest(string file, int offset)
{
this.@params = new AnalysisGetHoverParam... | Add some more properties to hover info. | Add some more properties to hover info.
| C# | mit | DartVS/DartVS,DartVS/DartVS,modulexcite/DartVS,modulexcite/DartVS,DartVS/DartVS,modulexcite/DartVS |
6382df06d25699c285f0fc313dd6bcccfe2c260e | CodePlayground/Program.cs | CodePlayground/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodePlayground
{
public static class MyLinqMethods
{
public static IEnumerable<T> Where<T>(
this IEnumerable<T> inputSequence,
Func<T, bool> predicate)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodePlayground
{
public static class MyLinqMethods
{
public static IEnumerable<T> Where<T>(
this IEnumerable<T> inputSequence,
Func<T, bool> predicate)... | Implement the second overload of Select | Implement the second overload of Select
Because sometimes we need the index of an item.
| C# | apache-2.0 | BillWagner/MVA-LINQ,sushantgoel/MVA-LINQ |
714720b9aa80b63403551d88f5a7e1fbf35b00ea | src/CustomerListEquip.aspx.cs | src/CustomerListEquip.aspx.cs | using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
p... | using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
p... | Update sql commands and use the new method | Update sql commands and use the new method
| C# | mit | Mimalef/repop |
01961a2cfdfe3635bca0419d315f63672ebfc14e | EngineTest/ActorShould.cs | EngineTest/ActorShould.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Moq;
using Engine;
namespace EngineTest
{
[TestFixture()]
public class ActorShould
{
Mock<IScene> scene;
Actor actor;
Mock<IStrategy> strategy;
[SetUp()]
public void SetUp()
{
strat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Moq;
using Engine;
namespace EngineTest
{
[TestFixture()]
public class ActorShould
{
Mock<IScene> scene;
Actor actor;
Mock<IStrategy> strategy;
private Mock<IAct> act;
[SetUp()]
pu... | Fix tests - all green | Fix tests - all green
| C# | mit | sheix/GameEngine,sheix/GameEngine,sheix/GameEngine |
56d2afabe55562282e79a3d9f7fbe986ddebcedd | TeleBot/API/Extensions/ParseModeEnumConverter.cs | TeleBot/API/Extensions/ParseModeEnumConverter.cs | using System;
using Newtonsoft.Json;
using TeleBot.API.Enums;
namespace TeleBot.API.Extensions
{
public class ParseModeEnumConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return objectType == typeof(string);
}
public override object R... | using System;
using Newtonsoft.Json;
using TeleBot.API.Enums;
namespace TeleBot.API.Extensions
{
public class ParseModeEnumConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return objectType == typeof(string);
}
public override object R... | Remove unnecessary else statement. Remove unnecessary return statement. | Remove unnecessary else statement.
Remove unnecessary return statement.
| C# | mit | kreynes/TeleBot |
0f2e4c47c695686ef42d36c144887de28113caa3 | BikeMates/BikeMates.Contracts/IUserRepository.cs | BikeMates/BikeMates.Contracts/IUserRepository.cs | using BikeMates.DataAccess.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BikeMates.Contracts
{
//TODO: Create folder Repositories and move this interface into it
//TODO: Create a base IRepository interface
public inter... | using BikeMates.DataAccess.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BikeMates.Contracts
{
//TODO: Create folder Repositories and move this interface into it
//TODO: Create a base IRepository interface
public inter... | Revert "Added edit method into UserRepository" | Revert "Added edit method into UserRepository"
This reverts commit b1727daccbcaeba70c7fa2e60c787528dd250037.
| C# | mit | BikeMates/bike-mates,BikeMates/bike-mates,BikeMates/bike-mates |
7072d089ef9671e5e42a05b687968c46cc566d4e | src/Hangfire.EntityFramework/HangfireServer.cs | src/Hangfire.EntityFramework/HangfireServer.cs | // Copyright (c) 2017 Sergey Zhigunov.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Hangfire.EntityFramework
{
internal class HangfireS... | // Copyright (c) 2017 Sergey Zhigunov.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Hangfire.EntityFramework
{
internal class HangfireS... | Remove heartbeat server property index name | Remove heartbeat server property index name
| C# | mit | sergezhigunov/Hangfire.EntityFramework |
f6e38562ca963299ec18f590b33a3d01ac767168 | CarFuel/Controllers/CarsController.cs | CarFuel/Controllers/CarsController.cs | using CarFuel.DataAccess;
using CarFuel.Models;
using CarFuel.Services;
using Microsoft.AspNet.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CarFuel.Controllers
{
public class CarsController : Controller
{
private ICarDb ... | using CarFuel.DataAccess;
using CarFuel.Models;
using CarFuel.Services;
using Microsoft.AspNet.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
namespace CarFuel.Controllers
{
public class CarsController : Controller
{
... | Handle null id for Cars/Details action | Handle null id for Cars/Details action
If users don't supply id value in the URL, instead of displaying YSOD, we are now return BadRequest.
| C# | mit | tipjung/tdd-carfuel,tipjung/tdd-carfuel,tipjung/tdd-carfuel |
92ad156d83af9051d2214878c468116bdf7f616e | tests/Avalonia.Controls.UnitTests/TextBlockTests.cs | tests/Avalonia.Controls.UnitTests/TextBlockTests.cs | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Data;
using Xunit;
namespace Avalonia.Controls.UnitTests
{
public class TextBlockTests
{
[Fact]
public void Defaul... | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using Avalonia.Data;
using Xunit;
namespace Avalonia.Controls.UnitTests
{
public class TextBlockTests
{
[Fact]
public void Defaul... | Add test that default value of TextBlock.Text property is empty string. | Add test that default value of TextBlock.Text property is empty string. | C# | mit | SuperJMN/Avalonia,wieslawsoltes/Perspex,grokys/Perspex,jkoritzinsky/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,SuperJMN/Avalonia,Perspex/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,akrisiun/Perspex,grokys/Perspex,jkoritzinsky/Avalonia,SuperJMN/A... |
259a13587787dd799018e47e0c336aad714cf699 | Infusion.Desktop/InterProcessCommunication.cs | Infusion.Desktop/InterProcessCommunication.cs | using System;
using System.IO;
using System.IO.MemoryMappedFiles;
using System.Threading;
using UltimaRX.Proxy.InjectionApi;
namespace Infusion.Desktop
{
internal static class InterProcessCommunication
{
private static readonly EventWaitHandle MessageSentEvent = new EventWaitHandle(false, EventResetMo... | using System;
using System.IO;
using System.IO.MemoryMappedFiles;
using System.Threading;
using UltimaRX.Proxy.InjectionApi;
namespace Infusion.Desktop
{
internal static class InterProcessCommunication
{
private static readonly EventWaitHandle MessageSentEvent = new EventWaitHandle(false, EventResetMo... | Use background thread, otherwise process is not terminated after closing application window. | Use background thread, otherwise process is not terminated after closing application window.
| C# | mit | uoinfusion/Infusion |
074bf195ebc0c59b1335983904ab0176996ceef5 | dotnet/Mammoth.Tests/DocumentConverterTests.cs | dotnet/Mammoth.Tests/DocumentConverterTests.cs | using Xunit;
using System.IO;
namespace Mammoth.Tests {
public class DocumentConverterTests {
[Fact]
public void DocxContainingOneParagraphIsConvertedToSingleParagraphElement() {
assertSuccessfulConversion(
convertToHtml("single-paragraph.docx"),
"<p>Walking on imported air</p>");
}
private void ... | using Xunit;
using System.IO;
namespace Mammoth.Tests {
public class DocumentConverterTests {
[Fact]
public void DocxContainingOneParagraphIsConvertedToSingleParagraphElement() {
assertSuccessfulConversion(
ConvertToHtml("single-paragraph.docx"),
"<p>Walking on imported air</p>");
}
[Fact]
publ... | Add test for reading files with UTF-8 BOM | Add test for reading files with UTF-8 BOM
| C# | bsd-2-clause | mwilliamson/java-mammoth |
633810f139f43b39999f99fb0669e02029df1612 | Testing-001/MyApplication/PersonService.cs | Testing-001/MyApplication/PersonService.cs | using System;
using System.Linq;
using MyApplication.dependencies;
using System.Collections.Generic;
namespace MyApplication
{
public class PersonService
{
/// <summary>
/// Initializes a new instance of the <see cref="PersonService"/> class.
/// </summary>
public Perso... | using System;
using System.Linq;
using MyApplication.dependencies;
using System.Collections.Generic;
namespace MyApplication
{
public class PersonService
{
/// <summary>
/// Initializes a new instance of the <see cref="PersonService"/> class.
/// </summary>
public Perso... | Make initial task easier given the number of refactorings needed. | Make initial task easier given the number of refactorings needed.
| C# | mit | Tom-Kuhn/scratch-UnitTest,Tom-Kuhn/scratch-UnitTest |
3a656a7bc575c482de6f169945629d771c3d6b3a | Visma.net/lib/DAta/JournalTransactionData.cs | Visma.net/lib/DAta/JournalTransactionData.cs | using ONIT.VismaNetApi.Models;
using System.Threading.Tasks;
namespace ONIT.VismaNetApi.Lib.Data
{
public class JournalTransactionData : BaseCrudDataClass<JournalTransaction>
{
public JournalTransactionData(VismaNetAuthorization auth) : base(auth)
{
ApiControllerUri = VismaNetContr... | using ONIT.VismaNetApi.Models;
using System.Threading.Tasks;
namespace ONIT.VismaNetApi.Lib.Data
{
public class JournalTransactionData : BaseCrudDataClass<JournalTransaction>
{
public JournalTransactionData(VismaNetAuthorization auth) : base(auth)
{
ApiControllerUri = VismaNetContr... | Add release action to journal transaction | Add release action to journal transaction
| C# | mit | ON-IT/Visma.Net |
89dc280c468a7369417b055719a40e98569c4b84 | Assets/Alensia/Tests/Camera/ThirdPersonCameraTest.cs | Assets/Alensia/Tests/Camera/ThirdPersonCameraTest.cs | using Alensia.Core.Actor;
using Alensia.Core.Camera;
using Alensia.Tests.Actor;
using NUnit.Framework;
namespace Alensia.Tests.Camera
{
[TestFixture, Description("Test suite for ThirdPersonCamera class.")]
public class ThirdPersonCameraTest : BaseOrbitingCameraTest<ThirdPersonCamera, IHumanoid>
{
... | using Alensia.Core.Actor;
using Alensia.Core.Camera;
using Alensia.Tests.Actor;
using NUnit.Framework;
using UnityEngine;
namespace Alensia.Tests.Camera
{
[TestFixture, Description("Test suite for ThirdPersonCamera class.")]
public class ThirdPersonCameraTest : BaseOrbitingCameraTest<ThirdPersonCamera, IHuman... | Add test cases for wall avoidance settings | Add test cases for wall avoidance settings
| C# | apache-2.0 | mysticfall/Alensia |
e4f6c6d255b4ec4d68eb182883edc3cf00b4828a | src/NodaTime.Web/Views/Documentation/Docs.cshtml | src/NodaTime.Web/Views/Documentation/Docs.cshtml | @model MarkdownPage
<section class="body">
<div class="row">
<div class="large-9 columns">
<h1>@Model.Title</h1>
@Model.Content
</div>
<div class="large-3 columns">
<div class="section-container accordian">
@foreach (var category in Mode... | @model MarkdownPage
@{ ViewBag.Title = Model.Title; }
<section class="body">
<div class="row">
<div class="large-9 columns">
<h1>@Model.Title</h1>
@Model.Content
</div>
<div class="large-3 columns">
<div class="section-container accordian">
... | Fix the viewbag title, used for the page title | Fix the viewbag title, used for the page title
| C# | apache-2.0 | malcolmr/nodatime,malcolmr/nodatime,malcolmr/nodatime,nodatime/nodatime,BenJenkinson/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,nodatime/nodatime,jskeet/nodatime,jskeet/nodatime |
ae380d6e5e0d487009fde7bfea85f0835412c202 | TicketTimer.Core/Services/WorkItemServiceImpl.cs | TicketTimer.Core/Services/WorkItemServiceImpl.cs | using TicketTimer.Core.Infrastructure;
namespace TicketTimer.Core.Services
{
// TODO this should have a better name
public class WorkItemServiceImpl : WorkItemService
{
private readonly WorkItemStore _workItemStore;
private readonly DateProvider _dateProvider;
public WorkItemServic... | using TicketTimer.Core.Infrastructure;
namespace TicketTimer.Core.Services
{
// TODO this should have a better name
public class WorkItemServiceImpl : WorkItemService
{
private readonly WorkItemStore _workItemStore;
private readonly DateProvider _dateProvider;
public WorkItemServic... | Save work items after starting. | [master] Save work items after starting.
| C# | mit | n-develop/tickettimer |
d10c0f15ed66c82c4669a9d51cde27cccec9cbb8 | UndisposedExe/Program.cs | UndisposedExe/Program.cs | // Copyright (c) 2014 Eberhard Beilharz
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System;
using Undisposed;
namespace UndisposedExe
{
class MainClass
{
private static void Usage()
{
Console.WriteLine("Usage");
Console.WriteLine("Undisposed.exe [-o output... | // Copyright (c) 2014 Eberhard Beilharz
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System;
using Undisposed;
namespace UndisposedExe
{
class MainClass
{
private static void Usage()
{
Console.WriteLine("Usage");
Console.WriteLine("Undisposed.exe [-o output... | Allow standalone program to process multiple files at once | Allow standalone program to process multiple files at once
| C# | mit | ermshiperete/undisposed-fody,ermshiperete/undisposed-fody |
e45ccd7d61cfa68c19a5f13e0b6ec95d30109b95 | src/System.Web.Http/ModelBinding/IModelBinder.cs | src/System.Web.Http/ModelBinding/IModelBinder.cs | using System.Web.Http.Controllers;
namespace System.Web.Http.ModelBinding
{
// Interface for model binding
public interface IModelBinder
{
bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext);
}
}
| using System.Web.Http.Controllers;
namespace System.Web.Http.ModelBinding
{
/// <summary>
/// Interface for model binding.
/// </summary>
public interface IModelBinder
{
bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext);
}
}
| Change comment to doc comment | Change comment to doc comment
| C# | mit | LianwMS/WebApi,chimpinano/WebApi,scz2011/WebApi,chimpinano/WebApi,congysu/WebApi,LianwMS/WebApi,abkmr/WebApi,congysu/WebApi,lewischeng-ms/WebApi,abkmr/WebApi,scz2011/WebApi,yonglehou/WebApi,lungisam/WebApi,lewischeng-ms/WebApi,yonglehou/WebApi,lungisam/WebApi |
aff1bb8ba0d0f28c3d5e086952e91e76bbcfb905 | RestImageResize/Config.cs | RestImageResize/Config.cs | using System.Collections.Generic;
using System.Linq;
using RestImageResize.Security;
using RestImageResize.Utils;
namespace RestImageResize
{
/// <summary>
/// Provides configuration options.
/// </summary>
internal static class Config
{
private static class AppSettingKeys
{
... | using System.Collections.Generic;
using System.Linq;
using RestImageResize.Security;
using RestImageResize.Utils;
namespace RestImageResize
{
/// <summary>
/// Provides configuration options.
/// </summary>
internal static class Config
{
private static class AppSettingKeys
{
... | Fix private keys config parsing | Fix private keys config parsing
| C# | mit | Romanets/RestImageResize,Romanets/RestImageResize,Romanets/RestImageResize,Romanets/RestImageResize,Romanets/RestImageResize |
10a10007567c1e523e6c874b4f07b9ff5cf09b70 | Tamarind/Cache/ICache.cs | Tamarind/Cache/ICache.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
namespace Tamarind.Cache
{
// TODO: NEEDS DOCUMENTATION.
public interface ICache<K, V>
{
V GetIfPresent(K key);
V Get(K key, Func<V> valueLoader);
Im... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
namespace Tamarind.Cache
{
// Guava Reference: https://code.google.com/p/guava-libraries/source/browse/guava/src/com/google/common/cache/Cache.java
// TODO: NEEDS DOCUMENTATION.
... | Add link to Guava implementation of Cache. | Add link to Guava implementation of Cache.
| C# | mit | NextMethod/Tamarind |
7e0b214510fa6e3f4b1cd3f0b6d6474145ce5893 | TwilioAPI.cs | TwilioAPI.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using Twilio;
using Twilio.Rest.Api.V2010.Account;
using Twilio.Types;
namespace VendingMachineNew
{
public class TwilioAPI
{
static void Main(string[] args)
{
SendSms... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using Twilio;
using Twilio.Rest.Api.V2010.Account;
using Twilio.Types;
namespace VendingMachineNew
{
public class TwilioAPI
{
static void Main(string[] args)
{
SendSms... | Remove account and api key | Remove account and api key | C# | mit | jnnfrlocke/VendingMachineNew,jnnfrlocke/VendingMachineNew,jnnfrlocke/VendingMachineNew |
3df96746c6dc8951428d0a674b11faf07fd1d513 | src/Abp.TestBase/TestBase/AbpTestBaseModule.cs | src/Abp.TestBase/TestBase/AbpTestBaseModule.cs | using System.Reflection;
using Abp.Modules;
namespace Abp.TestBase
{
[DependsOn(typeof(AbpKernelModule))]
public class AbpTestBaseModule : AbpModule
{
public override void PreInitialize()
{
Configuration.EventBus.UseDefaultEventBus = false;
}
public override vo... | using System.Reflection;
using Abp.Modules;
namespace Abp.TestBase
{
[DependsOn(typeof(AbpKernelModule))]
public class AbpTestBaseModule : AbpModule
{
public override void PreInitialize()
{
Configuration.EventBus.UseDefaultEventBus = false;
Configuration.DefaultName... | Set Configuration.DefaultNameOrConnectionString for unit tests by default. | Set Configuration.DefaultNameOrConnectionString for unit tests by default.
| C# | mit | verdentk/aspnetboilerplate,ilyhacker/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ZhaoRd/aspnetboilerplate,zquans/aspnetboilerplate,ryancyq/aspnetboilerplate,virtualcca/aspnetboilerplate,jaq316/aspnetboilerplate,ShiningRush/aspnetboilerplate,carldai0106/aspnetboilerplate,zquans/aspnetboilerplate,luchaoshuai/aspnetbo... |
a7fa3b11a2ef001745ab5169b55039abf036df5c | PathfinderAPI/Action/DelayablePathfinderAction.cs | PathfinderAPI/Action/DelayablePathfinderAction.cs | using System;
using System.Xml;
using Hacknet;
using Pathfinder.Util;
using Pathfinder.Util.XML;
namespace Pathfinder.Action
{
public abstract class DelayablePathfinderAction : PathfinderAction
{
[XMLStorage]
public string DelayHost;
[XMLStorage]
public string Delay;
... | using System;
using System.Xml;
using Hacknet;
using Pathfinder.Util;
using Pathfinder.Util.XML;
namespace Pathfinder.Action
{
public abstract class DelayablePathfinderAction : PathfinderAction
{
[XMLStorage]
public string DelayHost;
[XMLStorage]
public string Delay;
... | Fix DelayableAction delays persisting DAH serialization | Fix DelayableAction delays persisting DAH serialization
| C# | mit | Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder |
b2cbb48cc3952d53acea7a677e8407f7e5e30ecb | Tools/ControlsLibrary/BasicControls/TextWindow.cs | Tools/ControlsLibrary/BasicControls/TextWindow.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ControlsLibrary.BasicControls
{
public partial class TextWindow : Form
{
public TextWindow()
{
... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ControlsLibrary.BasicControls
{
public partial class TextWindow : Form
{
public TextWindow()
{
... | Fix for shader preview window in material tool appearing and then just disappearing | Fix for shader preview window in material tool appearing and then just disappearing
| C# | mit | xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE,xlgames-inc/XLE |
674100ec36eafc6b19ce268f8e55d8ca06fe206c | dotnet/Tests/Clients/JsonTests/OptionTests.cs | dotnet/Tests/Clients/JsonTests/OptionTests.cs | using System;
using Xunit;
using Branch.Clients.Json;
using System.Threading.Tasks;
using Branch.Clients.Http.Models;
using System.Collections.Generic;
namespace Branch.Tests.Clients.JsonTests
{
public class OptionTests
{
[Fact]
public void RespectOptions()
{
var options = new Options
{
... | using System;
using Xunit;
using Branch.Clients.Json;
using System.Threading.Tasks;
using Branch.Clients.Http.Models;
using System.Collections.Generic;
namespace Branch.Tests.Clients.JsonTests
{
public class OptionTests
{
[Fact]
public void RespectOptions()
{
var options = new Options
{
... | Remove test intead of fixing it 👍 | Remove test intead of fixing it 👍
| C# | mit | TheTree/branch,TheTree/branch,TheTree/branch |
f56cc5371ca05303615feebfbe5392c8120b1783 | KmlToGpxConverter/KmlReader.cs | KmlToGpxConverter/KmlReader.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace KmlToGpxConverter
{
internal static class KmlReader
{
public const string FileExtension = "kml";
public static IList<GpsTimePoint> ReadFile(string fi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
namespace KmlToGpxConverter
{
internal static class KmlReader
{
public const string FileExtension = "kml";
public static IList<GpsTimePoint> ReadFile(string fi... | Handle elements without elevation data | Handle elements without elevation data
* Handle elements without elevation data
* Fix issue where the converter would bail out at the first error
encountered in the input file.
| C# | mit | pacurrie/KmlToGpxConverter |
56eebd86d7fd261c92100857d550a3d974e136a9 | Core.Shogi.Tests/BitVersion/BitboardShogiGameShould.cs | Core.Shogi.Tests/BitVersion/BitboardShogiGameShould.cs | using NSubstitute;
using Xunit;
namespace Core.Shogi.Tests.BitVersion
{
public class BitboardShogiGameShould
{
[Fact]
public void IdentifyACheckMateState()
{
var blackPlayer = new Player(PlayerType.Black);
var whitePlayer = new Player(PlayerType.White);
... | using NSubstitute;
using Xunit;
namespace Core.Shogi.Tests.BitVersion
{
public class BitboardShogiGameShould
{
[Fact]
public void IdentifyACheckMateState()
{
var blackPlayer = new Player(PlayerType.Black);
var whitePlayer = new Player(PlayerType.White);
... | Reset board at start of the game. | Reset board at start of the game.
| C# | mit | pjbgf/shogi,pjbgf/shogi |
93a8092da6504019b871ba4f219e8b9634715b28 | osu.Game/Screens/Edit/Verify/VerifyScreen.cs | osu.Game/Screens/Edit/Verify/VerifyScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.G... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.G... | Increase usable width slightly further | Increase usable width slightly further
| C# | mit | peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu |
e256d4a58138fd52c1c583dc07ab11412f5ea24b | Pennyworth/DropHelper.cs | Pennyworth/DropHelper.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Pennyworth {
public static class DropHelper {
public static IEnumerable<String> GetAssembliesFromDropData(IEnumerable<FileInfo> data) {
Func<FileInfo, Boolean> isDir = fi => ((fi.Attributes & FileAttr... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Pennyworth {
public static class DropHelper {
public static IEnumerable<String> GetAssembliesFromDropData(IEnumerable<FileInfo> data) {
Func<FileInfo, Boolean> isDir = fi => ((fi.Attributes & FileAtt... | Use the shortest path if assemblies have the same file name | Use the shortest path if assemblies have the same file name
| C# | mit | hruan/Pennyworth |
d83337e7c1094a1626c9325024387a6a35f56e9f | AndHUD/XHUD.cs | AndHUD/XHUD.cs | using System;
using Android.App;
using AndroidHUD;
namespace XHUD
{
public enum MaskType
{
// None = 1,
Clear,
Black,
// Gradient
}
public static class HUD
{
public static Activity MyActivity;
public static void Show(string message, int progress = -1, MaskType maskType = MaskType.Black)
{
AndHU... | using System;
using Android.App;
using AndroidHUD;
namespace XHUD
{
public enum MaskType
{
// None = 1,
Clear = 2,
Black = 3,
// Gradient
}
public static class HUD
{
public static Activity MyActivity;
public static void Show(string message, int progress = -1, MaskType maskType = MaskType.Black)
{
... | Make XHud MaskType cast-able to AndHud MaskType | Make XHud MaskType cast-able to AndHud MaskType
| C# | apache-2.0 | Redth/AndHUD,Redth/AndHUD |
76d2dc40d94b1a79f100fe3a4f6521bb095cf9b0 | src/WordList/Program.cs | src/WordList/Program.cs | using System;
using Autofac;
using WordList.Composition;
namespace WordList {
public class Program {
public static void Main(string[] args) {
var compositionRoot = CompositionRoot.Compose();
var wordListProgram = compositionRoot.Resolve<IWordListProgram>();
wordListProgram.Run();
Consol... | using System;
using Autofac;
using WordList.Composition;
namespace WordList {
public class Program {
public static void Main(string[] args) {
CompositionRoot.Compose().Resolve<IWordListProgram>().Run();
Console.WriteLine("Press any key to quit...");
Console.ReadKey();
}
}
} | Make the code in the entrypoint even shorter. | Make the code in the entrypoint even shorter.
| C# | mit | DavidLievrouw/WordList |
030865cf921b6fb731d26bce98cc2f873d9eaff1 | src/Evolve/Exception/EvolveConfigurationException.cs | src/Evolve/Exception/EvolveConfigurationException.cs | using System;
namespace Evolve
{
public class EvolveConfigurationException : EvolveException
{
private const string EvolveConfigurationError = "Evolve configuration error: ";
public EvolveConfigurationException(string message) : base(EvolveConfigurationError + message) { }
public Evo... | using System;
namespace Evolve
{
public class EvolveConfigurationException : EvolveException
{
private const string EvolveConfigurationError = "Evolve configuration error: ";
public EvolveConfigurationException(string message) : base(EvolveConfigurationError + FirstLetterToLower(message)) { }... | Add FirstLetterToLower() to each exception message | Add FirstLetterToLower() to each exception message
| C# | mit | lecaillon/Evolve |
ec241ae48a8082d7516bfd84fd4e790d20730fea | src/Symbooglix/Executor/ExecutionTreeNode.cs | src/Symbooglix/Executor/ExecutionTreeNode.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Symbooglix
{
public class ExecutionTreeNode
{
public readonly ExecutionTreeNode Parent;
public readonly ProgramLocation CreatedAt;
public readonly ExecutionState State; // Should this be a weak referenc... | using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Symbooglix
{
public class ExecutionTreeNode
{
public readonly ExecutionTreeNode Parent;
public readonly ProgramLocation CreatedAt;
public readonly ExecutionState State; // Should this be a weak referenc... | Add assertion to check for cycles in ExecutionTree | Add assertion to check for cycles in ExecutionTree
| C# | bsd-2-clause | symbooglix/symbooglix,symbooglix/symbooglix,symbooglix/symbooglix |
49a3685e27c985d0a2cbbff8b80b84bdf2165055 | ReverseWords/BracesValidator/BracesValidator.cs | ReverseWords/BracesValidator/BracesValidator.cs | namespace BracesValidator
{
using System.Collections.Generic;
public class BracesValidator
{
public bool Validate(string code)
{
char[] codeArray = code.ToCharArray();
List<char> openers = new List<char> { '{', '[', '(' };
List<char> closers = new List<c... | namespace BracesValidator
{
using System.Collections.Generic;
public class BracesValidator
{
public bool Validate(string code)
{
char[] codeArray = code.ToCharArray();
Dictionary<char, char> openersClosersMap = new Dictionary<char, char>();
openersClose... | Use dictionary instead of lists | Use dictionary instead of lists
| C# | apache-2.0 | ozim/CakeStuff |
51f447a5f2594a56c20988f1a57dc1f6dd51d380 | service/DotNetApis.Common/AsyncLocalAblyLogger.cs | service/DotNetApis.Common/AsyncLocalAblyLogger.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using DotNetApis.Common.Internals;
using Microsoft.Extensions.Logging;
namespace DotNetApis.Common
{
/// <summary>
/// A logger that attempts to write to an implicit Ably channel. This type can be safely created before ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using DotNetApis.Common.Internals;
using Microsoft.Extensions.Logging;
namespace DotNetApis.Common
{
/// <summary>
/// A logger that attempts to write to an implicit Ably channel. This type can be safely created before ... | Remove warnings from Ably log to reduce noise. | Remove warnings from Ably log to reduce noise.
| C# | mit | StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis |
9bc96d2bbf17e574c9563ee8a71d928cf6a2951e | glib/GLib.cs | glib/GLib.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
//using GLib;
//using Gtk;
using NDesk.DBus;
using NDesk.GLib;
using org.freedesktop.DBus;
namespace NDesk.DBus
{
//FIXME: this API needs review and de-unixification. It is h... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
//using GLib;
//using Gtk;
using NDesk.DBus;
using NDesk.GLib;
using org.freedesktop.DBus;
namespace NDesk.DBus
{
//FIXME: this API needs review and de-unixification. It is h... | Make sure we only ever initialize once | Make sure we only ever initialize once
| C# | mit | mono/dbus-sharp-glib,mono/dbus-sharp-glib |
d3a1e82d76719bd8c9d439946f6d365a964174ed | src/SignaturePad.Android/ClearingImageView.cs | src/SignaturePad.Android/ClearingImageView.cs |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.Util;
using Android.Graphics;
namespace SignaturePad {
public class ClearingImageView : I... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.Util;
using Android.Graphics;
namespace SignaturePad {
public class ClearingImageView : I... | Call Dispose and the GC to avoid leaking memory. | [SignaturePad] Call Dispose and the GC to avoid leaking memory.
If the end user does too many successive strokes, the app will crash
with an OutOfMemory exception.
| C# | mit | xamarin/SignaturePad,xamarin/SignaturePad |
1f7909117f1fd7d565b8a6bc2c51003191034802 | src/Atata.Tests/Properties/AssemblyInfo.cs | src/Atata.Tests/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Atata.Tests")]
[assembly: Guid("9d0aa4f2-4987-4395-be95-76abc329b7a0")] | using NUnit.Framework;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Atata.Tests")]
[assembly: Guid("9d0aa4f2-4987-4395-be95-76abc329b7a0")]
[assembly: LevelOfParallelism(4)]
[assembly: Parallelizable(ParallelScope.Fixtures)]
[assembly: Atata.Culture("en-us")] | Add parallelism to Tests project | Add parallelism to Tests project
| C# | apache-2.0 | atata-framework/atata,YevgeniyShunevych/Atata,YevgeniyShunevych/Atata,atata-framework/atata |
b76fbbf8e51014995bb2e6aed0735430abbe3af6 | HeadRaceTiming-Site/Controllers/CrewController.cs | HeadRaceTiming-Site/Controllers/CrewController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using HeadRaceTimingSite.Models;
using Microsoft.EntityFrameworkCore;
namespace HeadRaceTimingSite.Controllers
{
public class CrewController : BaseController
{
public CrewCon... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using HeadRaceTimingSite.Models;
using Microsoft.EntityFrameworkCore;
namespace HeadRaceTimingSite.Controllers
{
public class CrewController : BaseController
{
public CrewCon... | Fix crew to reference by BroeCrewId | Fix crew to reference by BroeCrewId
| C# | mit | MelHarbour/HeadRaceTiming-Site,MelHarbour/HeadRaceTiming-Site,MelHarbour/HeadRaceTiming-Site |
886bee57c85901d09f815da232a4fb5969e01a4c | MonoMod.UnitTest/RuntimeDetour/DetourEmptyTest.cs | MonoMod.UnitTest/RuntimeDetour/DetourEmptyTest.cs | #pragma warning disable CS1720 // Expression will always cause a System.NullReferenceException because the type's default value is null
#pragma warning disable xUnit1013 // Public method should be marked as test
using Xunit;
using MonoMod.RuntimeDetour;
using System;
using System.Reflection;
using System.Runtime.Comp... | #pragma warning disable CS1720 // Expression will always cause a System.NullReferenceException because the type's default value is null
#pragma warning disable xUnit1013 // Public method should be marked as test
using Xunit;
using MonoMod.RuntimeDetour;
using System;
using System.Reflection;
using System.Runtime.Comp... | Mark the empty method detour test as NoInlining | Mark the empty method detour test as NoInlining
| C# | mit | AngelDE98/MonoMod,0x0ade/MonoMod |
6f92b46999af97d5d43285679a23aa79b00d79f7 | JabbR/ContentProviders/UserVoiceContentProvider.cs | JabbR/ContentProviders/UserVoiceContentProvider.cs | using System;
using System.Threading.Tasks;
using JabbR.ContentProviders.Core;
using JabbR.Infrastructure;
namespace JabbR.ContentProviders
{
public class UserVoiceContentProvider : CollapsibleContentProvider
{
private static readonly string _uservoiceAPIURL = "http://{0}/api/v1/oembed.json?url={1}";
... | using System;
using System.Threading.Tasks;
using JabbR.ContentProviders.Core;
using JabbR.Infrastructure;
namespace JabbR.ContentProviders
{
public class UserVoiceContentProvider : CollapsibleContentProvider
{
private static readonly string _uservoiceAPIURL = "https://{0}/api/v1/oembed.json?url={1}";... | Make user voice content provider work with https. | Make user voice content provider work with https.
| C# | mit | e10/JabbR,ClarkL/test09jabbr,test0925/test0925,mogultest2/Project92104,aapttester/jack12051317,LookLikeAPro/JabbR,M-Zuber/JabbR,mogulTest1/Project13171109,test0925/test0925,mogulTest1/Project13231109,LookLikeAPro/JabbR,meebey/JabbR,AAPT/jean0226case1322,ClarkL/1317on17jabbr,MogulTestOrg914/Project91407,mogulTest1/Proje... |
b66566e96d4f22d7e4351443ea8d999fd7f9bce7 | osu.Game/Overlays/Settings/Sections/SizeSlider.cs | osu.Game/Overlays/Settings/Sections/SizeSlider.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Localisation;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Settings.Sections
{
/// <summary>
/// A slider... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Globalization;
using osu.Framework.Localisation;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Settings.Sections
{
//... | Use explicit culture info rather than `null` | Use explicit culture info rather than `null`
| C# | mit | NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu |
8b24b861a3cbdf9e2411716e391e60965072ca0d | Docker.DotNet.X509/CertificateCredentials.cs | Docker.DotNet.X509/CertificateCredentials.cs | using System.Net.Http;
using System.Security.Cryptography.X509Certificates;
namespace Docker.DotNet.X509
{
public class CertificateCredentials : Credentials
{
private readonly WebRequestHandler _handler;
public CertificateCredentials(X509Certificate2 clientCertificate)
{
_... | using System.Net;
using System.Net.Http;
using System.Security.Cryptography.X509Certificates;
using Microsoft.Net.Http.Client;
namespace Docker.DotNet.X509
{
public class CertificateCredentials : Credentials
{
private X509Certificate2 _certificate;
public CertificateCredentials(X509Certificat... | Make X509 work with ManagedHandler | Make X509 work with ManagedHandler
This eliminates the full-framework dependency. A follow-up change should
start building this fore CoreCLR.
| C# | apache-2.0 | jterry75/Docker.DotNet,jterry75/Docker.DotNet,ahmetalpbalkan/Docker.DotNet |
51f69f171192e0534e3221be9f2b41023fac8cf5 | Azimuth.Migrations/Migrations/Migration_201409101200_RemoveListenedTableAndAddCounterToPlaylistTable.cs | Azimuth.Migrations/Migrations/Migration_201409101200_RemoveListenedTableAndAddCounterToPlaylistTable.cs |
using FluentMigrator;
namespace Azimuth.Migrations
{
[Migration(201409101200)]
public class Migration_201409101200_RemoveListenedTableAndAddCounterToPlaylistTable: Migration
{
public override void Up()
{
Delete.Table("Listened");
Alter.Table("Playlists").AddColumn(... |
using FluentMigrator;
namespace Azimuth.Migrations
{
[Migration(201409101200)]
public class Migration_201409101200_RemoveListenedTableAndAddCounterToPlaylistTable: Migration
{
public override void Up()
{
Delete.Table("Listened");
Alter.Table("Playlists").AddColumn(... | Rename listened table in migration | Rename listened table in migration
| C# | mit | B1naryStudio/Azimuth,B1naryStudio/Azimuth |
9ba8441a3bebe5133c5f5639cb2d6178dc4a7083 | test/MathParser.Tests/InfixLexicalAnalyzerTest.cs | test/MathParser.Tests/InfixLexicalAnalyzerTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MathParser.Tests
{
public class InfixLexicalAnalyzerTest
{
public void Expressao_binaria_simples_com_espacos()
{
//var analyzer = new InfixLexic... | using Xunit;
namespace MathParser.Tests
{
public class InfixLexicalAnalyzerTest
{
[Fact]
public void Expressao_binaria_simples_com_espacos()
{
//var analyzer = new InfixLexicalAnalyzer();
//analyzer.Analyze("2 + 2");
}
}
}
| Include Fact attribute on test method | Include Fact attribute on test method
| C# | mit | henriqueprj/infixtopostfix |
a5e642016966fb44270c21143ca6e7b31b7838ec | Synapse.RestClient/SynapseRestClientFactory.cs | Synapse.RestClient/SynapseRestClientFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Synapse.RestClient.Transaction;
namespace Synapse.RestClient
{
using User;
using Node;
public class SynapseRestClientFactory
{
private SynapseApiCredentials _creds;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Synapse.RestClient.Transaction;
namespace Synapse.RestClient
{
using User;
using Node;
using System.Net;
public class SynapseRestClientFactory
{
private SynapseApiCred... | Update servicepointmanager to use newer TLS | Update servicepointmanager to use newer TLS
| C# | mit | neuralaxis/synapsecsharpclient |
c89ec0dda19893397055f75ebf1ff01d859c3dfd | src/BloomTests/ProblemReporterDialogTests.cs | src/BloomTests/ProblemReporterDialogTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Bloom;
using Bloom.MiscUI;
using NUnit.Framework;
namespace BloomTests
{
[TestFixture]
#if __MonoCS__
[RequiresSTA]
#endif
public class ProblemReporterDialogTests
{
[TestFixtureSetUp]
public... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Bloom;
using Bloom.MiscUI;
using NUnit.Framework;
#if __MonoCS__
using Gecko;
#endif
namespace BloomTests
{
[TestFixture]
#if __MonoCS__
[RequiresSTA]
#endif
public class ProblemReporterDialogTe... | Add missing "using geckofx" for mono build | Add missing "using geckofx" for mono build
| C# | mit | StephenMcConnel/BloomDesktop,JohnThomson/BloomDesktop,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,andrew-polk/BloomDesktop,JohnThomson/BloomDesktop,StephenMcConnel/BloomDesktop,andrew-polk/BloomDesktop,JohnThomson/BloomDesktop,gmartin7/myBloomFork,andrew-polk/BloomDesktop,andrew-polk/BloomDeskt... |
5f9d2ebf02326f505a2a3c4c476659aed225c172 | csharp/Hello/HelloClient/Program.cs | csharp/Hello/HelloClient/Program.cs | using System;
namespace HelloClient
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
| using System;
using Grpc.Core;
using Hello;
namespace HelloClient
{
class Program
{
public static void Main(string[] args)
{
Channel channel = new Channel("127.0.0.1:50051", ChannelCredentials.Insecure);
var client = new HelloService.HelloServiceClient(channel);
String user = "Euler";
var reply = ... | Add client for simple call | Add client for simple call
| C# | mit | avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors,avinassh/grpc-errors |
5aac6dd314fad2c821543e29fcd4c6b391c661b1 | WebNoodle/NodeHelper.cs | WebNoodle/NodeHelper.cs | using System;
using System.Collections.Generic;
namespace WebNoodle
{
public static class NodeHelper
{
public static IEnumerable<object> YieldChildren(this object node, string path, bool breakOnNull = false)
{
path = string.IsNullOrWhiteSpace(path) ? "/" : path;
yield re... | using System;
using System.Collections.Generic;
using System.Web;
namespace WebNoodle
{
public static class NodeHelper
{
public static IEnumerable<object> YieldChildren(this object node, string path, bool breakOnNull = false)
{
path = string.IsNullOrWhiteSpace(path) ? "/" : path;
... | Throw 404 when you can't find the node | Throw 404 when you can't find the node
| C# | mit | mcintyre321/Noodles,mcintyre321/Noodles |
b62b3a1d2d64aa9194cf6a42e556b6f421e0e1fd | Source/MonoGame.Extended/FramesPerSecondCounter.cs | Source/MonoGame.Extended/FramesPerSecondCounter.cs | using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
namespace MonoGame.Extended
{
public class FramesPerSecondCounter : IUpdate
{
public FramesPerSecondCounter(int maximumSamples = 100)
{
MaximumSamples = maximumSamples;
}
private re... | using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
namespace MonoGame.Extended
{
public class FramesPerSecondCounter : DrawableGameComponent
{
public FramesPerSecondCounter(Game game, int maximumSamples = 100)
:base(game)
{
MaximumSample... | Make FPS counter to a GameComponent | Make FPS counter to a GameComponent
| C# | mit | rafaelalmeidatk/MonoGame.Extended,Aurioch/MonoGame.Extended,HyperionMT/MonoGame.Extended,LithiumToast/MonoGame.Extended,cra0zy/MonoGame.Extended,rafaelalmeidatk/MonoGame.Extended |
aad3111d03eca22bb366daa3cfdbf283e341c463 | osu.Framework.Tests/Localisation/CultureInfoHelperTest.cs | osu.Framework.Tests/Localisation/CultureInfoHelperTest.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.Globalization;
using NUnit.Framework;
using osu.Framework.Localisation;
namespace osu.Framework.Tests.Localisation
{
[TestFixture]
public class Cult... | // 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.Globalization;
using NUnit.Framework;
using osu.Framework.Localisation;
namespace osu.Framework.Tests.Localisation
{
[TestFixture]
public class Cult... | Fix tests failing due to not being updated with new behaviour | Fix tests failing due to not being updated with new behaviour
| C# | mit | ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework |
1ce92e0330ea1abc9d2860e127490eaf9f10e664 | src/LfMerge/LanguageForge/Model/LfAuthorInfo.cs | src/LfMerge/LanguageForge/Model/LfAuthorInfo.cs | // Copyright (c) 2015 SIL International
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System;
namespace LfMerge.LanguageForge.Model
{
public class LfAuthorInfo : LfFieldBase
{
public string CreatedByUserRef { get; set; }
public DateTime CreatedDate { get; set; }
... | // Copyright (c) 2015 SIL International
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System;
using MongoDB.Bson;
namespace LfMerge.LanguageForge.Model
{
public class LfAuthorInfo : LfFieldBase
{
public ObjectId? CreatedByUserRef { get; set; }
public DateTime Crea... | Handle Mongo ObjectId references better | Handle Mongo ObjectId references better
ObjectId is a struct in the Mongo C# driver, so it's a non-nullable
object by default. However, our PHP code stores null for these UserRef
fields if no user reference is available. I had been making these fields
strings, but nullable ObjectId values are better: they will round-t... | C# | mit | ermshiperete/LfMerge,ermshiperete/LfMerge,ermshiperete/LfMerge,sillsdev/LfMerge,sillsdev/LfMerge,sillsdev/LfMerge |
9180ab4442a25925192da08a7ea5d42ebe7e7af7 | src/Umbraco.Core/Models/TagCacheStorageType.cs | src/Umbraco.Core/Models/TagCacheStorageType.cs | namespace Umbraco.Core.Models
{
public enum TagCacheStorageType
{
Json,
Csv
}
}
| namespace Umbraco.Core.Models
{
public enum TagCacheStorageType
{
Csv,
Json
}
} | Reset commit to not break backwards compatibility mode | Reset commit to not break backwards compatibility mode
| C# | mit | aaronpowell/Umbraco-CMS,abryukhov/Umbraco-CMS,WebCentrum/Umbraco-CMS,NikRimington/Umbraco-CMS,leekelleher/Umbraco-CMS,hfloyd/Umbraco-CMS,tompipe/Umbraco-CMS,dawoe/Umbraco-CMS,aaronpowell/Umbraco-CMS,rasmuseeg/Umbraco-CMS,robertjf/Umbraco-CMS,arknu/Umbraco-CMS,dawoe/Umbraco-CMS,tcmorris/Umbraco-CMS,abryukhov/Umbraco-CMS... |
60e69f5b8dccb55eb1e34a778a99a042f0165c18 | EOLib/Domain/Interact/MapNPCActions.cs | EOLib/Domain/Interact/MapNPCActions.cs | using AutomaticTypeMapper;
using EOLib.Domain.NPC;
using EOLib.IO.Repositories;
using EOLib.Net;
using EOLib.Net.Communication;
namespace EOLib.Domain.Interact
{
[AutoMappedType]
public class MapNPCActions : IMapNPCActions
{
private readonly IPacketSendService _packetSendService;
private r... | using AutomaticTypeMapper;
using EOLib.Domain.Interact.Quest;
using EOLib.Domain.NPC;
using EOLib.IO.Repositories;
using EOLib.Net;
using EOLib.Net.Communication;
namespace EOLib.Domain.Interact
{
[AutoMappedType]
public class MapNPCActions : IMapNPCActions
{
private readonly IPacketSendService _p... | Fix bug where quest NPC dialog caused a crash because the requested NPC was never set | Fix bug where quest NPC dialog caused a crash because the requested NPC was never set
| C# | mit | ethanmoffat/EndlessClient |
f9ca48054b89faa433f0577820964be2b45d4242 | source/Glimpse.Core2/Extensibility/ScriptOrder.cs | source/Glimpse.Core2/Extensibility/ScriptOrder.cs | namespace Glimpse.Core2.Extensibility
{
public enum ScriptOrder
{
IncludeBeforeClientInterfaceScript,
ClientInterfaceScript,
IncludeAfterClientInterfaceScript,
IncludeBeforeRequestDataScript,
RequestDataScript,
RequestMetadataScript,
IncludeAfterRequestD... | namespace Glimpse.Core2.Extensibility
{
public enum ScriptOrder
{
IncludeBeforeClientInterfaceScript,
ClientInterfaceScript,
IncludeAfterClientInterfaceScript,
IncludeBeforeRequestDataScript,
RequestMetadataScript,
RequestDataScript,
IncludeAfterRequestD... | Switch the load order so that metadata comes first in the dom | Switch the load order so that metadata comes first in the dom
| C# | apache-2.0 | paynecrl97/Glimpse,sorenhl/Glimpse,dudzon/Glimpse,sorenhl/Glimpse,SusanaL/Glimpse,flcdrg/Glimpse,codevlabs/Glimpse,codevlabs/Glimpse,rho24/Glimpse,rho24/Glimpse,paynecrl97/Glimpse,elkingtonmcb/Glimpse,codevlabs/Glimpse,SusanaL/Glimpse,Glimpse/Glimpse,Glimpse/Glimpse,paynecrl97/Glimpse,SusanaL/Glimpse,flcdrg/Glimpse,pay... |
838cd975c6c31c55e303594139e32454eba6996d | src/Compilers/Shared/DesktopShim.cs | src/Compilers/Shared/DesktopShim.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Reflection;
namespace Roslyn.Utilities
{
/// <summary>
/// This is a bridge for APIs that are only available on Desktop
... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Reflection;
namespace Roslyn.Utilities
{
/// <summary>
/// This is a bridge for APIs that are only available on Desktop
... | Make the FNF exception light up more robust | Make the FNF exception light up more robust
| C# | mit | AlekseyTs/roslyn,davkean/roslyn,jasonmalinowski/roslyn,wvdd007/roslyn,CyrusNajmabadi/roslyn,swaroop-sridhar/roslyn,dotnet/roslyn,panopticoncentral/roslyn,VSadov/roslyn,mavasani/roslyn,diryboy/roslyn,dotnet/roslyn,VSadov/roslyn,bartdesmet/roslyn,aelij/roslyn,DustinCampbell/roslyn,agocke/roslyn,mgoertz-msft/roslyn,Dustin... |
8f4213994da35a84551f4aa546ed99cd63518ed0 | src/Options/GeneralOptionControl.cs | src/Options/GeneralOptionControl.cs | using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using NuGet.VisualStudio;
namespace NuGet.Options {
public partial class GeneralOptionControl : UserControl {
private IRecentPackageRepository _recentPackageRepository;
private IProductUpdateSettings _p... | using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using NuGet.VisualStudio;
namespace NuGet.Options {
public partial class GeneralOptionControl : UserControl {
private IRecentPackageRepository _recentPackageRepository;
private IProductUpdateSettings _p... | Fix bug: Clearing the cache says "All items have been cleared from the recent packages list." Work items: 986 | Fix bug: Clearing the cache says "All items have been cleared from the recent packages list." Work items: 986
| C# | apache-2.0 | xoofx/NuGet,indsoft/NuGet2,dolkensp/node.net,mono/nuget,xero-github/Nuget,anurse/NuGet,antiufo/NuGet2,indsoft/NuGet2,themotleyfool/NuGet,jholovacs/NuGet,themotleyfool/NuGet,alluran/node.net,RichiCoder1/nuget-chocolatey,kumavis/NuGet,zskullz/nuget,mrward/nuget,jholovacs/NuGet,jmezach/NuGet2,GearedToWar/NuGet2,ctaggart/n... |
f0e56a1455be4ede45bc9a4683227f6b84cf0fa0 | src/dotless.Core/Parser/Tree/Url.cs | src/dotless.Core/Parser/Tree/Url.cs | namespace dotless.Core.Parser.Tree
{
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Infrastructure;
using Infrastructure.Nodes;
using Utils;
using Exceptions;
public class Url : Node
{
public Node Value { get; set; }
... | namespace dotless.Core.Parser.Tree
{
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Infrastructure;
using Infrastructure.Nodes;
using Utils;
using Exceptions;
public class Url : Node
{
public Node Value { get; set; }
... | Change a-Z to a-zA-Z as reccomended | Change a-Z to a-zA-Z as reccomended
| C# | apache-2.0 | r2i-sitecore/dotless,rytmis/dotless,dotless/dotless,dotless/dotless,modulexcite/dotless,rytmis/dotless,modulexcite/dotless,rytmis/dotless,modulexcite/dotless,r2i-sitecore/dotless,rytmis/dotless,rytmis/dotless,r2i-sitecore/dotless,modulexcite/dotless,rytmis/dotless,r2i-sitecore/dotless,modulexcite/dotless,r2i-sitecore/d... |
c5471cc62ebe67750c990c40fbe9bf0e40537259 | src/Glimpse.Agent.AspNet/Internal/Inspectors/AspNet/EnvironmentInspector.cs | src/Glimpse.Agent.AspNet/Internal/Inspectors/AspNet/EnvironmentInspector.cs | using System;
using Glimpse.Agent.AspNet.Messages;
using Glimpse.Agent.Inspectors;
using Microsoft.AspNet.Http;
namespace Glimpse.Agent.AspNet.Internal.Inspectors.AspNet
{
public class EnvironmentInspector : Inspector
{
private readonly IAgentBroker _broker;
private EnvironmentMessage _message... | using System;
using Glimpse.Agent.AspNet.Messages;
using Glimpse.Agent.Inspectors;
using Microsoft.AspNet.Http;
namespace Glimpse.Agent.AspNet.Internal.Inspectors.AspNet
{
public class EnvironmentInspector : Inspector
{
private readonly IAgentBroker _broker;
private EnvironmentMessage _message... | Comment out the environment message for the time being | Comment out the environment message for the time being
| C# | mit | Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glim... |
36be6f9a16363774af9584f14a938f6397374b74 | NavigationSample/Controllers/PersonController.cs | NavigationSample/Controllers/PersonController.cs | using Navigation.Sample.Models;
using System;
using System.Web.Mvc;
namespace Navigation.Sample.Controllers
{
public class PersonController : Controller
{
public ActionResult Index(PersonSearchModel model, string sortExpression, int startRowIndex, int maximumRows)
{
DateTime outDate;
if (model.... | using Navigation.Sample.Models;
using System;
using System.Web.Mvc;
namespace Navigation.Sample.Controllers
{
public class PersonController : Controller
{
public ActionResult Index(PersonSearchModel model)
{
DateTime outDate;
if (model.MinDateOfBirth == null || DateTime.TryParse(model.MinDateOf... | Clear sort and start when search changes (same as Web Forms). Cleaner to take data from StateContext instead of parameters because most can change within the method | Clear sort and start when search changes (same as Web Forms).
Cleaner to take data from StateContext instead of parameters because most can change within the method
| C# | apache-2.0 | grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation |
647d8adb568935f38246403416673d2a67f36537 | RestSharp.Portable.Test/HttpBin/HttpBinResponse.cs | RestSharp.Portable.Test/HttpBin/HttpBinResponse.cs | using System.Collections.Generic;
namespace RestSharp.Portable.Test.HttpBin
{
public class HttpBinResponse
{
public Dictionary<string, string> Args { get; set; }
public Dictionary<string, string> Form { get; set; }
public Dictionary<string, string> Headers { get; set; }
publ... | using System.Collections.Generic;
namespace RestSharp.Portable.Test.HttpBin
{
public class HttpBinResponse
{
public Dictionary<string, string> Args { get; set; }
public Dictionary<string, string> Form { get; set; }
public Dictionary<string, string> Headers { get; set; }
publ... | Fix unit test by making the Data property writable | Fix unit test by making the Data property writable
| C# | bsd-2-clause | gabornemeth/restsharp.portable |
6fdced25dc7a38f312ea28c50b6f19484a958bb9 | src/SparkPost/RequestSenders/AsyncRequestSender.cs | src/SparkPost/RequestSenders/AsyncRequestSender.cs | using System;
using System.Globalization;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace SparkPost.RequestSenders
{
public class AsyncRequestSender : IRequestSender
{
private readonly IClient client;
public AsyncRequestSender(IClient client)
... | using System;
using System.Globalization;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace SparkPost.RequestSenders
{
public class AsyncRequestSender : IRequestSender
{
private readonly IClient client;
public AsyncRequestSender(IClient client)
... | Drop in a note for later. | Drop in a note for later.
| C# | apache-2.0 | darrencauthon/csharp-sparkpost,kirilsi/csharp-sparkpost,SparkPost/csharp-sparkpost,kirilsi/csharp-sparkpost,darrencauthon/csharp-sparkpost,ZA1/csharp-sparkpost |
b364aa61b137e4e37744ebb0cbeac3908524f4ce | src/Infrastructure/Repository/RoomRepository.cs | src/Infrastructure/Repository/RoomRepository.cs | using System;
using System.Collections.Generic;
using System.Linq;
using ISTS.Domain.Rooms;
using ISTS.Domain.Schedules;
namespace ISTS.Infrastructure.Repository
{
public class RoomRepository : IRoomRepository
{
public Room Get(Guid id)
{
return null;
}
public Room... | using System;
using System.Collections.Generic;
using System.Linq;
using ISTS.Domain.Rooms;
using ISTS.Domain.Schedules;
using ISTS.Infrastructure.Model;
namespace ISTS.Infrastructure.Repository
{
public class RoomRepository : IRoomRepository
{
private readonly IstsContext _context;
public Ro... | Implement GetSchedule functionality for Rooms | Implement GetSchedule functionality for Rooms
| C# | mit | meutley/ISTS |
749a0dd8779b4d075ecd7a84769718c0d28e1f7e | src/SFA.DAS.EmployerUsers.Web/Views/Account/Login.cshtml | src/SFA.DAS.EmployerUsers.Web/Views/Account/Login.cshtml | <div class="grid-row">
<div class="column-half">
<h1 class="heading-large">Sign in</h1>
<form method="post">
@Html.AntiForgeryToken()
<div class="form-group">
<label class="form-label" for="email-address">Email address</label>
<input cl... | @model bool
@{
var invalidAttributes = Model ? "aria-invalid=\"true\" aria-labeledby=\"invalidMessage\"" : "";
}
<div class="grid-row">
<div class="column-half">
<h1 class="heading-large">Sign in</h1>
@if (Model)
{
<div class="error" style="margin-bottom: 10px;" i... | Add invalid message + aria tags to login | Add invalid message + aria tags to login
| C# | mit | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers |
dcfe9e39a17d3739942e4f619404d6ba9c618942 | src/AST/Preprocessor.cs | src/AST/Preprocessor.cs | namespace CppSharp.AST
{
public enum MacroLocation
{
Unknown,
ClassHead,
ClassBody,
FunctionHead,
FunctionParameters,
FunctionBody,
};
/// <summary>
/// Base class that describes a preprocessed entity, which may
/// be a preprocessor directive or... | namespace CppSharp.AST
{
public enum MacroLocation
{
Unknown,
ClassHead,
ClassBody,
FunctionHead,
FunctionParameters,
FunctionBody,
};
/// <summary>
/// Base class that describes a preprocessed entity, which may
/// be a preprocessor directive or... | Improve debug string representation of MacroDefinition. | Improve debug string representation of MacroDefinition.
| C# | mit | inordertotest/CppSharp,SonyaSa/CppSharp,genuinelucifer/CppSharp,SonyaSa/CppSharp,mono/CppSharp,zillemarco/CppSharp,u255436/CppSharp,mono/CppSharp,genuinelucifer/CppSharp,inordertotest/CppSharp,mydogisbox/CppSharp,ktopouzi/CppSharp,zillemarco/CppSharp,mono/CppSharp,inordertotest/CppSharp,mono/CppSharp,mohtamohit/CppShar... |
ae4cf0abfc1312e7c3c9513e3ddd8d4b43ce6b4d | LiteDB.Tests/Crud/FileStorageTest.cs | LiteDB.Tests/Crud/FileStorageTest.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
namespace LiteDB.Tests
{
[TestClass]
public class FileStorage_Test
{
[TestMethod]
public void FileStorage_InsertDelete()
{
// create a dump file
File.WriteAllText("Core.dll", "FileCoreConte... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
using System.Linq;
using System.Text;
namespace LiteDB.Tests
{
[TestClass]
public class FileStorage_Test
{
[TestMethod]
public void FileStorage_InsertDelete()
{
// create a dump file
File.W... | Add more unit test filestorage | Add more unit test filestorage
| C# | mit | masterdidoo/LiteDB,falahati/LiteDB,89sos98/LiteDB,RytisLT/LiteDB,prepare/LiteDB,RytisLT/LiteDB,89sos98/LiteDB,prepare/LiteDB,prepare/LiteDB,falahati/LiteDB,Skysper/LiteDB,prepare/LiteDB,Xicy/LiteDB,masterdidoo/LiteDB,mbdavid/LiteDB,icelty/LiteDB |
6832af7196b6f87925f4aea65e7a8a6aef72242e | Core/OfficeDevPnP.Core/Pages/ClientSideSectionEmphasis.cs | Core/OfficeDevPnP.Core/Pages/ClientSideSectionEmphasis.cs | using Newtonsoft.Json;
namespace OfficeDevPnP.Core.Pages
{
public class ClientSideSectionEmphasis
{
[JsonIgnore]
public int ZoneEmphasis
{
get
{
if (!string.IsNullOrWhiteSpace(ZoneEmphasisString) && int.TryParse(ZoneEmphasisString, out int result... | using Newtonsoft.Json;
namespace OfficeDevPnP.Core.Pages
{
public class ClientSideSectionEmphasis
{
[JsonProperty(PropertyName = "zoneEmphasis", NullValueHandling = NullValueHandling.Ignore)]
public int ZoneEmphasis
{
get
{
if (!string.IsNullOrWh... | Fix serialization of the zoneemphasis | Fix serialization of the zoneemphasis
| C# | mit | OfficeDev/PnP-Sites-Core,OfficeDev/PnP-Sites-Core,OfficeDev/PnP-Sites-Core |
2da8f73a056e13f249f47de1dd0640f5374f5cca | UnityProject/Assets/Scripts/Messages/GameMessageBase.cs | UnityProject/Assets/Scripts/Messages/GameMessageBase.cs | using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
public abstract class GameMessageBase : MessageBase
{
public GameObject NetworkObject;
public GameObject[] NetworkObjects;
protected IEnumerator WaitFor(NetworkInstanceId id)
{
int tries = 0;
while ((NetworkObject = ClientScene.FindLo... | using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
public abstract class GameMessageBase : MessageBase
{
public GameObject NetworkObject;
public GameObject[] NetworkObjects;
protected IEnumerator WaitFor(NetworkInstanceId id)
{
int tries = 0;
while ((NetworkObject = ClientScene.FindLo... | Print more info if the message times out while waiting | Print more info if the message times out while waiting | C# | agpl-3.0 | MrLeebo/unitystation,MrLeebo/unitystation,fomalsd/unitystation,fomalsd/unitystation,MrLeebo/unitystation,Necromunger/unitystation,krille90/unitystation,Necromunger/unitystation,MrLeebo/unitystation,fomalsd/unitystation,fomalsd/unitystation,Lancemaker/unitystation,Necromunger/unitystation,krille90/unitystation,Lancemake... |
4ce3b07ba1fa4ef07a6d6f910050e134d56c6bf0 | zipkin4net-aspnetcore/Criteo.Profiling.Tracing.Middleware/TracingMiddleware.cs | zipkin4net-aspnetcore/Criteo.Profiling.Tracing.Middleware/TracingMiddleware.cs | using System;
using Microsoft.AspNetCore.Builder;
using Criteo.Profiling.Tracing;
using Criteo.Profiling.Tracing.Utils;
namespace Criteo.Profiling.Tracing.Middleware
{
public static class TracingMiddleware
{
public static void UseTracing(this IApplicationBuilder app, string serviceName)
{
... | using System;
using Microsoft.AspNetCore.Builder;
using Criteo.Profiling.Tracing;
using Criteo.Profiling.Tracing.Utils;
namespace Criteo.Profiling.Tracing.Middleware
{
public static class TracingMiddleware
{
public static void UseTracing(this IApplicationBuilder app, string serviceName)
{
... | Add http path under http.uri tag | Add http path under http.uri tag
| C# | apache-2.0 | criteo/zipkin4net,criteo/zipkin4net |
dc8fae7d8fa18f545f9dfb055dad58409a4dcaca | Src/TensorSharp/Operations/DivideDoubleDoubleOperation.cs | Src/TensorSharp/Operations/DivideDoubleDoubleOperation.cs | namespace TensorSharp.Operations
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class DivideDoubleDoubleOperation : IBinaryOperation<double, double, double>
{
public Tensor<double> Evaluate(Tensor<double> tensor1, Tensor<double> ... | namespace TensorSharp.Operations
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class DivideDoubleDoubleOperation : IBinaryOperation<double, double, double>
{
public Tensor<double> Evaluate(Tensor<double> tensor1, Tensor<double> ... | Refactor Divide Doubles operation to use GetValues and CloneWithValues | Refactor Divide Doubles operation to use GetValues and CloneWithValues
| C# | mit | ajlopez/TensorSharp |
823e2079dd1d06bbf666a5187b4faefbc5cda46c | core/Akka.Interfaced-Base/InterfacedActorRefExtensions.cs | core/Akka.Interfaced-Base/InterfacedActorRefExtensions.cs | namespace Akka.Interfaced
{
public static class InterfacedActorRefExtensions
{
// Cast (not type-safe)
public static TRef Cast<TRef>(this InterfacedActorRef actorRef)
where TRef : InterfacedActorRef, new()
{
if (actorRef == null)
return null;
... | namespace Akka.Interfaced
{
public static class InterfacedActorRefExtensions
{
// Cast (not type-safe)
public static TRef Cast<TRef>(this InterfacedActorRef actorRef)
where TRef : InterfacedActorRef, new()
{
if (actorRef == null)
return null;
... | Add IRequestTarget.Cast instead of BoundActorTarget.* | Add IRequestTarget.Cast instead of BoundActorTarget.*
| C# | mit | SaladLab/Akka.Interfaced,SaladbowlCreative/Akka.Interfaced,SaladLab/Akka.Interfaced,SaladbowlCreative/Akka.Interfaced |
874034d109b74125d87b8d1d6c44fae54476339b | src/IdentityModel/Client/BasicAuthenticationHeaderValue.cs | src/IdentityModel/Client/BasicAuthenticationHeaderValue.cs | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System.Net.Http.Headers;
using System.Text;
namespace System.Net.Http
{
public class BasicAuthenticationHeaderValue : Authenticatio... | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System.Net.Http.Headers;
using System.Text;
namespace System.Net.Http
{
public class BasicAuthenticationHeaderValue : Authenticatio... | Add error checking to basic auth header | Add error checking to basic auth header
| C# | apache-2.0 | IdentityModel/IdentityModelv2,IdentityModel/IdentityModel,IdentityModel/IdentityModelv2,IdentityModel/IdentityModel2,IdentityModel/IdentityModel,IdentityModel/IdentityModel2 |
c2ba47821a69993412a93c012c39ce8d90ff2b1e | Battery-Commander.Web/Queries/GetCurrentUser.cs | Battery-Commander.Web/Queries/GetCurrentUser.cs | using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using BatteryCommander.Web.Models;
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
namespace BatteryCommander.Web.Queries
{
public class GetCurrentUser : IRequest<Soldier>
{
private class Hand... | using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using BatteryCommander.Web.Models;
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
namespace BatteryCommander.Web.Queries
{
public class GetCurrentUser : IRequest<Soldier>
{
private class Hand... | Fix for get current user on anon page | Fix for get current user on anon page
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
b6788916856c16d1246450bd1308c16c504eb7f9 | src/Cake.Common/Tools/NuGet/NuGetMSBuildVersion.cs | src/Cake.Common/Tools/NuGet/NuGetMSBuildVersion.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Cake.Common.Tools.NuGet
{
/// <summary>
/// NuGet MSBuild version
/// </summary>
public e... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Cake.Common.Tools.NuGet
{
/// <summary>
/// NuGet MSBuild version
/// </summary>
public e... | Update enum for VS 2017 | Update enum for VS 2017
| C# | mit | Sam13/cake,cake-build/cake,mholo65/cake,gep13/cake,robgha01/cake,daveaglick/cake,gep13/cake,mholo65/cake,Sam13/cake,vlesierse/cake,cake-build/cake,Julien-Mialon/cake,phenixdotnet/cake,adamhathcock/cake,patriksvensson/cake,robgha01/cake,ferventcoder/cake,devlead/cake,patriksvensson/cake,thomaslevesque/cake,adamhathcock/... |
9bdbd17964ea71ea1c51a4b7c94f942483a835ce | Updater/Program.cs | Updater/Program.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Updater
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 0)
{
T... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Updater
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 0)
{
T... | Fix setup not being able to start for first 10s | Fix setup not being able to start for first 10s
| C# | mit | Piotrekol/StreamCompanion,Piotrekol/StreamCompanion |
8965d1c6f8e2b2bc9d1eb2882b2029769200da4d | src/Nest/Cat/CatSnapshots/CatSnapshotsRecord.cs | src/Nest/Cat/CatSnapshots/CatSnapshotsRecord.cs | using System.Runtime.Serialization;
using Elasticsearch.Net.Utf8Json;
namespace Nest
{
[DataContract]
public class CatSnapshotsRecord : ICatRecord
{
[DataMember(Name ="duration")]
public Time Duration { get; set; }
[DataMember(Name ="end_epoch")]
[JsonFormatter(typeof(StringLongFormatter))]
public long ... | using System.Runtime.Serialization;
using Elasticsearch.Net.Utf8Json;
namespace Nest
{
[DataContract]
public class CatSnapshotsRecord : ICatRecord
{
[DataMember(Name ="duration")]
public Time Duration { get; set; }
[DataMember(Name ="end_epoch")]
[JsonFormatter(typeof(StringLongFormatter))]
public long ... | Fix spelling of SuccessfulShards in CatSnapshots | Fix spelling of SuccessfulShards in CatSnapshots
| C# | apache-2.0 | elastic/elasticsearch-net,elastic/elasticsearch-net |
ad16632c8ebfc781c9cfdd63b7c1080096da2c98 | 3-Editing/1-Code_completion/1.3-Smart_completion.cs | 3-Editing/1-Code_completion/1.3-Smart_completion.cs | namespace JetBrains.ReSharper.Koans.Editing
{
// Smart Completion
//
// Narrows candidates to those that best suit the current context
//
// Ctrl+Alt+Space (VS)
// Ctrl+Shift+Space (IntelliJ)
public class SmartCompletion
{
// 1. Start typing: string s =
// Automatic... | namespace JetBrains.ReSharper.Koans.Editing
{
// Smart Completion
//
// Narrows candidates to those that best suit the current context
//
// Ctrl+Alt+Space (VS)
// Ctrl+Shift+Space (IntelliJ)
public class SmartCompletion
{
// 1. Start typing: string s =
// Automatic... | Comment code that should be commented | Comment code that should be commented
| C# | apache-2.0 | JetBrains/resharper-workshop,yskatsumata/resharper-workshop,yskatsumata/resharper-workshop,JetBrains/resharper-workshop,gorohoroh/resharper-workshop,gorohoroh/resharper-workshop,yskatsumata/resharper-workshop,gorohoroh/resharper-workshop,JetBrains/resharper-workshop |
1e9a5f462ad5e5db4ed29dc9c4c0f477453cbc83 | src/Tests/Data.NHibernate4.Tests/CompileTests.cs | src/Tests/Data.NHibernate4.Tests/CompileTests.cs | using System;
using System.Data;
using System.Linq;
using Cobweb.Data;
using Cobweb.Data.NHibernate;
using NHibernate;
namespace Data.NHibernate.Tests {
/// <summary>
/// These tests are not executed by NUnit. They are here for compile-time checking. 'If it builds, ship it.'
/// </summary>
public ... | using System;
using System.Data;
using System.Linq;
using NHibernate;
namespace Cobweb.Data.NHibernate.Tests {
/// <summary>
/// These tests are not executed by NUnit. They are here for compile-time checking. 'If it builds, ship it.'
/// </summary>
public class CompileTests {
internal clas... | Adjust namespaces for Data.NHibernate4 unit tests. | fix(tests): Adjust namespaces for Data.NHibernate4 unit tests.
| C# | bsd-3-clause | aranasoft/cobweb |
59d4744c84c2fa35b26b54722f0c9f650587e9e5 | tests/cs/boxing/Boxing.cs | tests/cs/boxing/Boxing.cs | using System;
public struct Foo : ICloneable
{
public int CloneCounter { get; private set; }
public object Clone()
{
CloneCounter++;
return this;
}
}
public static class Program
{
public static ICloneable BoxAndCast<T>(T Value)
{
return (ICloneable)Value;
}
pu... | using System;
public struct Foo : ICloneable
{
public int CloneCounter { get; private set; }
public object Clone()
{
CloneCounter++;
return this;
}
}
public static class Program
{
public static ICloneable BoxAndCast<T>(T Value)
{
return (ICloneable)Value;
}
pu... | Extend the boxing/unboxing test with a primitive value unbox | Extend the boxing/unboxing test with a primitive value unbox
| C# | mit | jonathanvdc/ecsc |
48887ebf49e0bdd33581bb587385bc63897a7e57 | Smoother.IoC.Dapper.Repository.UnitOfWork.Tests/TestClasses/Migrations/MigrateDb.cs | Smoother.IoC.Dapper.Repository.UnitOfWork.Tests/TestClasses/Migrations/MigrateDb.cs | using System.Data;
using System.Data.SQLite;
using System.Reflection;
using FakeItEasy;
using FakeItEasy.Core;
using SimpleMigrations;
using SimpleMigrations.VersionProvider;
using Smoother.IoC.Dapper.Repository.UnitOfWork.Data;
using Smoother.IoC.Dapper.Repository.UnitOfWork.UoW;
namespace Smoother.IoC.Dapper.FastCR... | using System.Data;
using System.Data.SQLite;
using System.Reflection;
using FakeItEasy;
using FakeItEasy.Core;
using SimpleMigrations;
using SimpleMigrations.VersionProvider;
using Smoother.IoC.Dapper.Repository.UnitOfWork.Data;
using Smoother.IoC.Dapper.Repository.UnitOfWork.UoW;
namespace Smoother.IoC.Dapper.FastCR... | Fix issue with test class | Fix issue with test class
| C# | mit | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork |
37611b467b6dec0f659eee2b9b127170668e0e97 | DisplayCurrentTime/DisplayCurrentTime/Program.cs | DisplayCurrentTime/DisplayCurrentTime/Program.cs | using System;
class Program
{
static void Main()
{
Console.WriteLine("Hello, C#!");
}
}
| using System;
class Program
{
static void Main()
{
Console.WriteLine(DateTime.Now);
}
}
| Repair error in Console Writeline | Repair error in Console Writeline
| C# | mit | pkindalov/beginner_exercises |
c809b662c08b0c843d3b8d2360ddd027e93b0dcc | src/GitHub.Exports/Services/ITeamExplorerContext.cs | src/GitHub.Exports/Services/ITeamExplorerContext.cs | using System;
using System.ComponentModel;
using GitHub.Models;
namespace GitHub.Services
{
/// <summary>
/// Responsible for watching the active repository in Team Explorer.
/// </summary>
/// <remarks>
/// A <see cref="PropertyChanged"/> event is fired when moving to a new repository.
/// A ... | using System;
using System.ComponentModel;
using GitHub.Models;
namespace GitHub.Services
{
/// <summary>
/// Responsible for watching the active repository in Team Explorer.
/// </summary>
/// <remarks>
/// A <see cref="PropertyChanged"/> event is fired when moving to a new repository.
/// A ... | Add remarks about non-UI thread | Add remarks about non-UI thread
| C# | mit | github/VisualStudio,github/VisualStudio,github/VisualStudio |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.