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 |
|---|---|---|---|---|---|---|---|---|---|
1c2d0ca33fe2b1dcf7f1580a89380774ae25ab16 | src/DocumentDbTests/Bugs/Bug_2211_select_transform_inner_object.cs | src/DocumentDbTests/Bugs/Bug_2211_select_transform_inner_object.cs | using System;
using System.Linq;
using System.Threading.Tasks;
using Bug2211;
using Marten;
using Marten.Testing.Harness;
using Shouldly;
using Weasel.Core;
using Xunit;
namespace DocumentDbTests.Bugs
{
public class Bug_2211_select_transform_inner_object: BugIntegrationContext
{
[Fact]
public a... | using System;
using System.Linq;
using System.Threading.Tasks;
using Bug2211;
using Marten;
using Marten.Testing.Harness;
using Shouldly;
using Weasel.Core;
using Xunit;
namespace DocumentDbTests.Bugs
{
public class Bug_2211_select_transform_inner_object: BugIntegrationContext
{
[Fact]
public a... | Fix test referring to wrong value | Fix test referring to wrong value
| C# | mit | ericgreenmix/marten,ericgreenmix/marten,ericgreenmix/marten,ericgreenmix/marten |
767a40e9c1c07fbeac819b34b0fa9716ee9c74d2 | Scripts/GameApi/Messages/ServerSpawnSceneObjectMessage.cs | Scripts/GameApi/Messages/ServerSpawnSceneObjectMessage.cs | using System.Collections;
using System.Collections.Generic;
using LiteNetLib.Utils;
using UnityEngine;
namespace LiteNetLibHighLevel
{
public class ServerSpawnSceneObjectMessage : LiteNetLibMessageBase
{
public uint objectId;
public Vector3 position;
public override void Deserialize(N... | using System.Collections;
using System.Collections.Generic;
using LiteNetLib.Utils;
using UnityEngine;
namespace LiteNetLibHighLevel
{
public class ServerSpawnSceneObjectMessage : ILiteNetLibMessage
{
public uint objectId;
public Vector3 position;
public void Deserialize(NetDataReader... | Change serialize/deserialze abstract class to interface | Change serialize/deserialze abstract class to interface
| C# | mit | insthync/LiteNetLibManager,insthync/LiteNetLibManager |
fd9b9b43878728173a297d615a59e8b35db917f3 | src/FalconSharp/Properties/VersionInfo.cs | src/FalconSharp/Properties/VersionInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18449
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18449
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | Set correct version number, v0.1.1 | Set correct version number, v0.1.1
| C# | mit | UmbrellaInc/FalconSharp,UmbrellaInc/FalconSharp |
ab510cea704fa4a210e73f90cad77d8325492f80 | Scripts/Converters/Vector2ToVector3.cs | Scripts/Converters/Vector2ToVector3.cs | using UnityEngine;
namespace Pear.InteractionEngine.Converters
{
/// <summary>
/// Converts a Vector2 to Vector3
/// </summary>
public class Vector2ToVector3 : MonoBehaviour, IPropertyConverter<Vector2, Vector3>
{
public Vector3 Convert(Vector2 convertFrom)
{
return convertFrom;
}
}
}
| using System;
using System.Collections.Generic;
using UnityEngine;
namespace Pear.InteractionEngine.Converters
{
/// <summary>
/// Converts a Vector2 to Vector3
/// </summary>
public class Vector2ToVector3 : MonoBehaviour, IPropertyConverter<Vector2, Vector3>
{
[Tooltip("Where should the X value be ... | Add more features to vector 2 -> vector 3 conversion | Add more features to vector 2 -> vector 3 conversion
| C# | mit | PearMed/Pear-Interaction-Engine |
e7ff96c5bc327a0fc69941dc9715ea47bf2191db | src/keypay-dotnet/Properties/AssemblyInfo.cs | src/keypay-dotnet/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("KeyPay")]
[assembly: AssemblyDescription("... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("KeyPay")]
[assembly: AssemblyDescription("... | Add Employee Standard Hours endpoints | Add Employee Standard Hours endpoints
| C# | mit | KeyPay/keypay-dotnet,KeyPay/keypay-dotnet,KeyPay/keypay-dotnet,KeyPay/keypay-dotnet |
00d95ecfa1dc65b879b8d21c6b548d2d1e723e6c | Views/Home/Index.cshtml | Views/Home/Index.cshtml | @{
ViewBag.Title = "Home Page";
}
<div class="col-md-5">
<h1>
Vendo 5.0
</h1>
<p class="lead">The Future of Vending Machines</p>
<p class="text-justify">
Vendo 5.0 is among the first digitally integrated vending machines of the 21st century. It's so gr... | @{
ViewBag.Title = "Home Page";
}
<div class="col-md-5">
<h1>
Vendo 5.0
</h1>
<p class="lead">The Future of Vending Machines</p>
<p class="text-justify">
Vendo 5.0 is among the first digitally integrated vending machines of the 21st century. It's so gr... | Add code to allow vendo img to show on Azure | Add code to allow vendo img to show on Azure
| C# | mit | jnnfrlocke/VendingMachineNew,jnnfrlocke/VendingMachineNew,jnnfrlocke/VendingMachineNew |
68ba4388587ac8ca4644ece84f4ab140bd3d6be2 | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("0.6.0.0")... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("0... | Increase project version number to 0.7.0 | Increase project version number to 0.7.0
| C# | apache-2.0 | atata-framework/atata,YevgeniyShunevych/Atata,atata-framework/atata,YevgeniyShunevych/Atata |
fd1936626783f64d45d3142f77115ed5e85266b3 | LINQToTTree/LINQToTTreeLib/Variables/VarSimple.cs | LINQToTTree/LINQToTTreeLib/Variables/VarSimple.cs | using System;
using LinqToTTreeInterfacesLib;
namespace LINQToTTreeLib.Variables
{
/// <summary>
/// A simple variable (like int, etc.).
/// </summary>
public class VarSimple : IVariable
{
public string VariableName { get; private set; }
public string RawValue { get; pri... | using System;
using LinqToTTreeInterfacesLib;
namespace LINQToTTreeLib.Variables
{
/// <summary>
/// A simple variable (like int, etc.).
/// </summary>
public class VarSimple : IVariable
{
public string VariableName { get; private set; }
public string RawValue { get; pri... | Add the ability to have a simple variable declared inline. | Add the ability to have a simple variable declared inline.
| C# | lgpl-2.1 | gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT |
96f29c5696946c6f1365ea8f9e8d2318776f7915 | samples/MvcSandbox/Startup.cs | samples/MvcSandbox/Startup.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft... | Use latest compat version in MvcSandbox | Use latest compat version in MvcSandbox
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
aa0639ac54889fd46ba4374951544198ac49a749 | src/Squidex.Domain.Apps.Entities/Contents/ScheduleJob.cs | src/Squidex.Domain.Apps.Entities/Contents/ScheduleJob.cs | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... | Fix deserialization of scheduled job. | Fix deserialization of scheduled job.
| C# | mit | Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex |
981dba4dde7fb08f48cd10b0926c0c04e1bb1e3c | src/Diploms.WebUI/Configuration/ControllerExtensions.cs | src/Diploms.WebUI/Configuration/ControllerExtensions.cs | using System.Linq;
using Diploms.Dto;
using Microsoft.AspNetCore.Mvc;
namespace Diploms.WebUI
{
public static class ControllerExtensions
{
public static OperationResult GetErrors(this Controller controller, object model)
{
var result = new OperationResult();
if (model =... | using System.Linq;
using Diploms.Dto;
using Microsoft.AspNetCore.Mvc;
namespace Diploms.WebUI
{
public static class ControllerExtensions
{
public static OperationResult GetErrors(this Controller controller, object model)
{
var result = new OperationResult();
if (model =... | Add special http method to return unprocessable entities | Add special http method to return unprocessable entities
| C# | mit | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs |
29091f3fe2c7febbccf2d01b98ce798d95670547 | src/HipChatConnect/Controllers/Listeners/Github/GithubAggregator.cs | src/HipChatConnect/Controllers/Listeners/Github/GithubAggregator.cs | using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HipChatConnect.Controllers.Listeners.Github.Models;
using HipChatConnect.Controllers.Listeners.TeamCity;
namespace HipChatConnect.Controllers.Listeners.Github
{
public class GithubAggregator
{
private IHipChatRoom Room { get; }
... | using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HipChatConnect.Controllers.Listeners.Github.Models;
using HipChatConnect.Controllers.Listeners.TeamCity;
namespace HipChatConnect.Controllers.Listeners.Github
{
public class GithubAggregator
{
private IHipChatRoom Room { get; }
... | Fix some formatting for Teams | Fix some formatting for Teams
| C# | mit | laurentkempe/HipChatConnect,laurentkempe/HipChatConnect |
bf1a7dfb850c7ea143372ea48e628edeb1cbd981 | src/Chess-Demo/AppDelegate.cs | src/Chess-Demo/AppDelegate.cs | using System.Reflection;
using Microsoft.Xna.Framework;
using CocosDenshion;
using CocosSharp;
namespace Chess_Demo
{
class AppDelegate : CCApplicationDelegate
{
static CCWindow sharedWindow;
public static CCWindow SharedWindow
{
get { return sharedWindow; }
}
... | using System.Reflection;
using Microsoft.Xna.Framework;
using CocosDenshion;
using CocosSharp;
namespace Chess_Demo
{
class AppDelegate : CCApplicationDelegate
{
static CCWindow sharedWindow;
public static CCWindow SharedWindow
{
get { return sharedWindow; }
}
... | Add Layer to scene. Currently breaking on asset load | Add Layer to scene. Currently breaking on asset load
| C# | mit | HotPrawns/Jiemyu_Unity,HotPrawns/Jiemyu |
672604ffe649779254dda0aa7967396f7d5d464b | MedallionOData.Samples.Web/Models/Provider.cs | MedallionOData.Samples.Web/Models/Provider.cs | using Medallion.OData.Sql;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Medallion.OData.Samples.Web.Models
{
public class Provider : DatabaseProvider
{
protected override string GetSqlTypeName(Trees.ODataExpressionType oDataType)
{
... | using Medallion.OData.Service.Sql;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Medallion.OData.Samples.Web.Models
{
public class Provider : DatabaseProvider
{
protected override string GetSqlTypeName(Trees.ODataExpressionType oDataType)
{
... | Build fix after namespace adjustment | Build fix after namespace adjustment
| C# | mit | madelson/MedallionOData,madelson/MedallionOData,madelson/MedallionOData |
604172bca0555166a6e99d96aa370e33f3872cc7 | MemoryGames/MemoryGames/CardRandomPosition.cs | MemoryGames/MemoryGames/CardRandomPosition.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace MemoryGames
{
public class CardRandomPosition
{
private List<CardFace> gameCard = new List<CardFace>();
private string[] cardName = new string[8];//here will be the name of the card
private Random randomGenerato... | using System;
using System.Collections.Generic;
using System.Linq;
namespace MemoryGames
{
public class CardRandomPosition
{
public static CardFace[,] GetRandomCardFace(int dimentionZero, int dimentionOne)
{
const int pair = 2;
const int pairCount = 9;
CardF... | Add random position of card | Add random position of card
| C# | mit | TomaNikolov/MemoryGame |
64f20d5b47ecfd62269764a8c360be60d3910614 | Nodejs/Tests/AnalysisTests/SerializedAnalysisTests.cs | Nodejs/Tests/AnalysisTests/SerializedAnalysisTests.cs | /* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.html file at the root of this distribution. If ... | /* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.html file at the root of this distribution. If ... | Test needs to be public | Test needs to be public
| C# | apache-2.0 | zhoffice/nodejstools,hagb4rd/nodejstools,hoanhtien/nodejstools,necroscope/nodejstools,bowdenk7/nodejstools,mjbvz/nodejstools,paladique/nodejstools,Microsoft/nodejstools,redabakr/nodejstools,paladique/nodejstools,paladique/nodejstools,lukedgr/nodejstools,bowdenk7/nodejstools,paulvanbrenk/nodejstools,np83/nodejstools,avi... |
e2e6b8e4cb174d46d50812887e13d8c8e1657654 | Battery-Commander.Web/Controllers/API/WeaponsController.cs | Battery-Commander.Web/Controllers/API/WeaponsController.cs | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers.API
{
public class WeaponsController : ApiController
{
public WeaponsCon... | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System.Linq;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers.API
{
public class WeaponsController : ApiController
{
public WeaponsController(Database db) : base(db)
... | Allow filtering weapons by unit | Allow filtering weapons by unit
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
f002dae2e57c0f2ac33b430f7117a08b12879ddd | tests/Auth0.ManagementApi.IntegrationTests/TestBase.cs | tests/Auth0.ManagementApi.IntegrationTests/TestBase.cs | using System.Threading.Tasks;
using Auth0.AuthenticationApi;
using Auth0.AuthenticationApi.Models;
using Microsoft.Extensions.Configuration;
namespace Auth0.Tests.Shared
{
public class TestBase
{
private readonly IConfigurationRoot _config;
public TestBase()
{
_config = ne... | using System;
using System.Threading.Tasks;
using Auth0.AuthenticationApi;
using Auth0.AuthenticationApi.Models;
using Microsoft.Extensions.Configuration;
namespace Auth0.Tests.Shared
{
public class TestBase
{
private readonly IConfigurationRoot _config;
public TestBase()
{
... | Check configuration values are set in tests | Check configuration values are set in tests
| C# | mit | auth0/auth0.net,auth0/auth0.net |
892f0729e7262dc48eb6a0a985f4a9fb7470f75a | Samples/Configuration/ConfigurationConsole/Program.cs | Samples/Configuration/ConfigurationConsole/Program.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Program.cs" company="Quartz Software SRL">
// Copyright (c) Quartz Software SRL. All rights reserved.
// </copyright>
// <summary>
// Implements the program class.
// </summar... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Program.cs" company="Quartz Software SRL">
// Copyright (c) Quartz Software SRL. All rights reserved.
// </copyright>
// <summary>
// Implements the program class.
// </summar... | Comment out the resource not found fix for .NET Core | Comment out the resource not found fix for .NET Core
| C# | mit | quartz-software/kephas,quartz-software/kephas |
2e2e229d2f2d62e09afbe9099ac8f97d59c710f7 | Components/TemplateHelpers/Images/Ratio.cs | Components/TemplateHelpers/Images/Ratio.cs | using System;
namespace Satrabel.OpenContent.Components.TemplateHelpers
{
public class Ratio
{
private readonly float _ratio;
public int Width { get; private set; }
public int Height { get; private set; }
public float AsFloat
{
get { return (float)Width / (... | using System;
namespace Satrabel.OpenContent.Components.TemplateHelpers
{
public class Ratio
{
private readonly float _ratio;
public int Width { get; private set; }
public int Height { get; private set; }
public float AsFloat
{
get { return (float)Width / (... | Fix issue where ratio was always returning "1" | Fix issue where ratio was always returning "1"
| C# | mit | janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent |
abf4cadab49e7baac51700029f29181550924e8c | Source/TeaCommerce.Umbraco.Application/Caching/UmbracoRuntimeCacheService.cs | Source/TeaCommerce.Umbraco.Application/Caching/UmbracoRuntimeCacheService.cs | using System;
using TeaCommerce.Api.Dependency;
using TeaCommerce.Api.Infrastructure.Caching;
using Umbraco.Core;
using Umbraco.Core.Cache;
namespace TeaCommerce.Umbraco.Application.Caching
{
[SuppressDependency("TeaCommerce.Api.Infrastructure.Caching.ICacheService", "TeaCommerce.Api")]
public class UmbracoRu... | using System;
using TeaCommerce.Api.Dependency;
using TeaCommerce.Api.Infrastructure.Caching;
using Umbraco.Core;
using Umbraco.Core.Cache;
namespace TeaCommerce.Umbraco.Application.Caching
{
[SuppressDependency("TeaCommerce.Api.Infrastructure.Caching.ICacheService", "TeaCommerce.Api")]
public class UmbracoRu... | Enable sliding expiration by default as that is what the Tea Commerce cache does | Enable sliding expiration by default as that is what the Tea Commerce cache does
| C# | mit | TeaCommerce/Tea-Commerce-for-Umbraco,TeaCommerce/Tea-Commerce-for-Umbraco,TeaCommerce/Tea-Commerce-for-Umbraco |
82ec97343a604e166d3667cfaca758027d8a344d | code_examples/01-SubcutaneousTestsVsImplementationTests/subcutaneous-test.cs | code_examples/01-SubcutaneousTestsVsImplementationTests/subcutaneous-test.cs | public class StudentControllerTests
{
[SetUp]
public void Setup()
{
_fixture = new DatabaseFixture();
_controller = new StudentController(new StudentRepository(_fixture.Context));
}
[Test]
public void IndexAction_ShowsAllStudentsOrderedByName()
{
var expectedStudents = new List<Student>
{
... | public class StudentControllerTests
{
[SetUp]
public void Setup()
{
_fixture = new DatabaseFixture();
_controller = new StudentController(new StudentRepository(_fixture.Context));
}
[Test]
public void IndexAction_ShowsAllStudentsOrderedByName()
{
var expectedStudents = new List<Student>
{
... | Fix a missing semicolon in an example | Fix a missing semicolon in an example
| C# | mit | MRCollective/MicrotestingPresentation |
6b8e4b5111f6d73c9563800bc1cb0a4462b1d088 | source/plugin/Assets/GoogleMobileAds/Editor/GoogleMobileAdsSettingsEditor.cs | source/plugin/Assets/GoogleMobileAds/Editor/GoogleMobileAdsSettingsEditor.cs | using UnityEditor;
using UnityEngine;
namespace GoogleMobileAds.Editor
{
[InitializeOnLoad]
[CustomEditor(typeof(GoogleMobileAdsSettings))]
public class GoogleMobileAdsSettingsEditor : UnityEditor.Editor
{
[MenuItem("Assets/Google Mobile Ads/Settings...")]
public static void OpenInspec... | using UnityEditor;
using UnityEngine;
namespace GoogleMobileAds.Editor
{
[InitializeOnLoad]
[CustomEditor(typeof(GoogleMobileAdsSettings))]
public class GoogleMobileAdsSettingsEditor : UnityEditor.Editor
{
[MenuItem("Assets/Google Mobile Ads/Settings...")]
public static void OpenInspec... | Fix erroneous removal of code | Fix erroneous removal of code
PiperOrigin-RevId: 350625811
| C# | apache-2.0 | googleads/googleads-mobile-unity,googleads/googleads-mobile-unity |
945ef339760bee342bdde0f0db156430a28b9966 | src/Novell.Directory.Ldap.NETStandard/ExtensionMethods.cs | src/Novell.Directory.Ldap.NETStandard/ExtensionMethods.cs | using System.Collections.Generic;
using System.Text;
namespace Novell.Directory.Ldap
{
internal static partial class ExtensionMethods
{
/// <summary>
/// Is the given collection null, or Empty (0 elements)?
/// </summary>
internal static bool IsEmpty<T>(this IReadOnlyCollection... | using System;
using System.Collections.Generic;
using System.Text;
namespace Novell.Directory.Ldap
{
internal static partial class ExtensionMethods
{
/// <summary>
/// Shortcut for <see cref="string.IsNullOrEmpty"/>
/// </summary>
internal static bool IsEmpty(this string input)... | Add more string extension methods for common operations | Add more string extension methods for common operations
| C# | mit | dsbenghe/Novell.Directory.Ldap.NETStandard,dsbenghe/Novell.Directory.Ldap.NETStandard |
8c0ec1a3e0c7915306dcb47925168b017a035668 | samples/Todo/Todo/TodoItem.cs | samples/Todo/Todo/TodoItem.cs | // TodoItem.cs
//
using System;
using System.Runtime.CompilerServices;
namespace Todo {
[Imported]
[IgnoreNamespace]
[ScriptName("Object")]
internal sealed class TodoItem {
public bool Completed;
[ScriptName("id")]
public string ID;
public string Title;
}
}
| // TodoItem.cs
//
using System;
using System.Runtime.CompilerServices;
namespace Todo {
[ScriptImport]
[ScriptIgnoreNamespace]
[ScriptName("Object")]
internal sealed class TodoItem {
public bool Completed;
[ScriptName("id")]
public string ID;
public string Title;
... | Update todo sample for latest metadata changes | Update todo sample for latest metadata changes
| C# | apache-2.0 | x335/scriptsharp,x335/scriptsharp,nikhilk/scriptsharp,x335/scriptsharp,nikhilk/scriptsharp,nikhilk/scriptsharp |
e93c13496f5e920569404ede102f4608d3cf6db5 | src/BugsnagUnity/DictionaryExtensions.cs | src/BugsnagUnity/DictionaryExtensions.cs | using System.Collections.Generic;
using BugsnagUnity.Payload;
using UnityEngine;
namespace BugsnagUnity
{
static class DictionaryExtensions
{
internal static void PopulateDictionaryFromAndroidData(this IDictionary<string, object> dictionary, AndroidJavaObject source)
{
using (var set = source.Call<An... | using System;
using System.Collections.Generic;
using BugsnagUnity.Payload;
using UnityEngine;
namespace BugsnagUnity
{
static class DictionaryExtensions
{
private static IntPtr Arrays { get; } = AndroidJNI.FindClass("java/util/Arrays");
private static IntPtr ToStringMethod { get; } = AndroidJNIHelper.Get... | Use a more compatible method call | Use a more compatible method call
For some reason the way we are calling this method does not work on
at least android v6. I have tested this on android 4, 5 and 6
| C# | mit | bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity |
bbf260bcfcb183f96c126478b0fb4655b0468808 | src/SIM.Tool.Windows/MainWindowComponents/CreateSupportPatchButton.cs | src/SIM.Tool.Windows/MainWindowComponents/CreateSupportPatchButton.cs | namespace SIM.Tool.Windows.MainWindowComponents
{
using System;
using System.IO;
using System.Windows;
using Sitecore.Diagnostics.Base;
using JetBrains.Annotations;
using SIM.Core;
using SIM.Instances;
using SIM.Tool.Base;
using SIM.Tool.Base.Plugins;
[UsedImplicitly]
public class CreateSupportPa... | namespace SIM.Tool.Windows.MainWindowComponents
{
using System;
using System.IO;
using System.Windows;
using Sitecore.Diagnostics.Base;
using JetBrains.Annotations;
using SIM.Core;
using SIM.Instances;
using SIM.Tool.Base;
using SIM.Tool.Base.Plugins;
[UsedImplicitly]
public class CreateSupportPa... | Add properties to patch creator button | Add properties to patch creator button | C# | mit | Sitecore/Sitecore-Instance-Manager,Brad-Christie/Sitecore-Instance-Manager |
ba255b7056b4f4d76ec7d32a3375bb44ea700ff9 | tools/Build/Build.cs | tools/Build/Build.cs | using System;
using Faithlife.Build;
internal static class Build
{
public static int Main(string[] args) => BuildRunner.Execute(args, build =>
{
build.AddDotNetTargets(
new DotNetBuildSettings
{
DocsSettings = new DotNetDocsSettings
{
GitLogin = new GitLoginInfo("faithlifebuildbot", Environment.... | using System;
using Faithlife.Build;
internal static class Build
{
public static int Main(string[] args) => BuildRunner.Execute(args, build =>
{
build.AddDotNetTargets(
new DotNetBuildSettings
{
DocsSettings = new DotNetDocsSettings
{
GitLogin = new GitLoginInfo("faithlifebuildbot", Environment.... | Set default build target to build. | Set default build target to build.
| C# | mit | Faithlife/System.Data.SQLite,Faithlife/Parsing,ejball/ArgsReading,Faithlife/FaithlifeUtility,ejball/XmlDocMarkdown,Faithlife/System.Data.SQLite |
e56abef5c40695162e410da0ab24d6e39d6fb9c8 | ExactTarget.TriggeredEmail/Core/ExactTargetResultChecker.cs | ExactTarget.TriggeredEmail/Core/ExactTargetResultChecker.cs | using System;
using System.Linq;
using ExactTarget.TriggeredEmail.ExactTargetApi;
namespace ExactTarget.TriggeredEmail.Core
{
public class ExactTargetResultChecker
{
public static void CheckResult(Result result)
{
if (result == null)
{
throw new Exceptio... | using System;
using System.Linq;
using ExactTarget.TriggeredEmail.ExactTargetApi;
namespace ExactTarget.TriggeredEmail.Core
{
public class ExactTargetResultChecker
{
public static void CheckResult(Result result)
{
if (result == null)
{
throw new Exceptio... | Fix result checker if no subscriber errors in response | Fix result checker if no subscriber errors in response
| C# | mit | alwynlombaard/ExactTarget-triggered-email-sender |
0dfa9a0efb8cbffe4a914ea7d8a9effe854c81f0 | EfMigrationsBug/Migrations/201410021402204_ChangePkType.cs | EfMigrationsBug/Migrations/201410021402204_ChangePkType.cs | namespace EfMigrationsBug.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class ChangePkType : DbMigration
{
public override void Up()
{
DropPrimaryKey("dbo.Foos");
AlterColumn("dbo.Foos", "ID", c => c.Int(nullable: fa... | namespace EfMigrationsBug.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class ChangePkType : DbMigration
{
public override void Up()
{
DropTable("dbo.Foos");
CreateTable(
"dbo.Foos",
... | Modify the migration so it rebuilds the table. | Modify the migration so it rebuilds the table.
| C# | mit | mareksuscak/ef-migrations-bug |
1bf53f46f27c84eeb8225458a9215304a570bada | Aurio/Aurio/Streams/MemoryWriterStream.cs | Aurio/Aurio/Streams/MemoryWriterStream.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Aurio.Streams {
public class MemoryWriterStream : MemorySourceStream, IAudioWriterStream {
public MemoryWriterStream(MemoryStream target, AudioProperties properties) :
base(target, ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Aurio.Streams {
public class MemoryWriterStream : MemorySourceStream, IAudioWriterStream {
public MemoryWriterStream(MemoryStream target, AudioProperties properties) :
base(target, ... | Add constructor that creates memory stream internally | Add constructor that creates memory stream internally
| C# | agpl-3.0 | protyposis/Aurio,protyposis/Aurio |
a9e4976b7aa9026b04d63c3346cfc83a6bf204e9 | Source/OxyPlot/Utilities/TypeExtensions.cs | Source/OxyPlot/Utilities/TypeExtensions.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="TypeExtensions.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// <summary>
// Provides extension methods for types.
// </summary>
// -------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="TypeExtensions.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// <summary>
// Provides extension methods for types.
// </summary>
// -------... | Update type extension for net40 | Update type extension for net40
| C# | mit | oxyplot/oxyplot,ze-pequeno/oxyplot |
2905292d20308fd492135d8d7f2b1d2f883fc250 | osu.Framework/Platform/Linux/LinuxGameHost.cs | osu.Framework/Platform/Linux/LinuxGameHost.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.Platform.Linux.Native;
using osu.Framework.Platform.Linux.Sdl;
using osuTK;
namespace osu.Framework.Platform.Linux
{
public class LinuxGameHost ... | // 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.Platform.Linux.Native;
using osu.Framework.Platform.Linux.Sdl;
using osuTK;
namespace osu.Framework.Platform.Linux
{
public class LinuxGameHost ... | Use SdlClipboard on Linux when using new SDL2 backend | Use SdlClipboard on Linux when using new SDL2 backend
| C# | mit | EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework |
963c84d8e7250200152382ed48d02851a1cfe083 | src/Models/Games/LineScore.cs | src/Models/Games/LineScore.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace mdryden.cflapi.v1.Models.Games
{
public class LineScore
{
[JsonProperty(PropertyName = "quarter")]
public int Quarter { get; set; }
[JsonProperty(PropertyName =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace mdryden.cflapi.v1.Models.Games
{
public class LineScore
{
[JsonProperty(PropertyName = "quarter")]
public Quarters Quarter { get; set; }
[JsonProperty(PropertyN... | Change quarter type to enum to allow for "ot" as value. | Change quarter type to enum to allow for "ot" as value.
| C# | mit | pudds/cfl-api.net,pudds/cfl-api.net |
d97cdedfadbb77157cfce80812c4bfbe123f5841 | Meridium.EPiServer.Migration/Support/SourcePage.cs | Meridium.EPiServer.Migration/Support/SourcePage.cs | using System.Linq;
using EPiServer.Core;
namespace Meridium.EPiServer.Migration.Support {
public class SourcePage {
public string TypeName { get; set; }
public PropertyDataCollection Properties { get; set; }
public TValue GetValue<TValue>(string propertyName, TValue @default = default(TVal... | using System.Linq;
using EPiServer.Core;
namespace Meridium.EPiServer.Migration.Support {
public class SourcePage {
public string TypeName { get; set; }
public PropertyDataCollection Properties { get; set; }
public TValue GetValue<TValue>(string propertyName, TValue @default = default(TVal... | Make GetValue method handle value types | Make GetValue method handle value types
Removing the `class` type restriction on the `SourcePage.GetValue` and
`SourcePage.GetValueWithFallback` methods. Instead of `null`
`default(TValue)` is returned when a value can not be extracted.
| C# | mit | meridiumlabs/episerver.migration |
9af0f42dafba5b473f28c31814d79661a54146b2 | src/Templar/TemplateSource.cs | src/Templar/TemplateSource.cs | using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace Templar
{
public class TemplateSource : IContentSource
{
private readonly string global;
private readonly Compiler compiler;
private readonly TemplateFinder finder;
public Templat... | using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace Templar
{
public class TemplateSource : IContentSource
{
private readonly string global;
private readonly Compiler compiler;
private readonly TemplateFinder finder;
public Templat... | Remove usage of parallelism when compiling templates (causing crash in Jurassic?). | Remove usage of parallelism when compiling templates (causing crash in Jurassic?).
| C# | mit | mrydengren/templar,mrydengren/templar |
510ffce1877f2cb7c7e1900764970a5838e7ff46 | Moya.Runner.Console/OptionArgumentPair.cs | Moya.Runner.Console/OptionArgumentPair.cs | namespace Moya.Runner.Console
{
public struct OptionArgumentPair
{
public string Option { get; set; }
public string Argument { get; set; }
public static OptionArgumentPair Create(string stringFromCommandLine)
{
string[] optionAndArgument = stringFromCommandLine.Spl... | namespace Moya.Runner.Console
{
using System.Linq;
public struct OptionArgumentPair
{
public string Option { get; set; }
public string Argument { get; set; }
public static OptionArgumentPair Create(string stringFromCommandLine)
{
string[] optionAndArgument = s... | Handle optionargumentpairs with only option | Handle optionargumentpairs with only option
| C# | mit | Hammerstad/Moya |
60550b73f77d0ec625c070fcd6eee395e8397149 | osu.Game/Online/RealtimeMultiplayer/MultiplayerUserState.cs | osu.Game/Online/RealtimeMultiplayer/MultiplayerUserState.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Online.RealtimeMultiplayer
{
public enum MultiplayerUserState
{
Idle,
Ready,
WaitingForLoad,
Loaded,
Pl... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Online.RealtimeMultiplayer
{
public enum MultiplayerUserState
{
/// <summary>
/// The user is idle and waiting for something to... | Add missing states and xmldoc for all states' purposes | Add missing states and xmldoc for all states' purposes
| C# | mit | peppy/osu-new,smoogipoo/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu |
3176f7f85d458fd6dc11324250a7d850d3b30a20 | CollAction/ValidationAttributes/RichTextRequiredAttribute.cs | CollAction/ValidationAttributes/RichTextRequiredAttribute.cs | using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
namespace CollAction.ValidationAttributes
{
public class RichTextRequiredAttribute : ValidationAttribute, IClientModelValidator
{
public void AddValidation(ClientModelValidationContext context)
... | using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
namespace CollAction.ValidationAttributes
{
public class RichTextRequiredAttribute : RequiredAttribute, IClientModelValidator
{
public void AddValidation(ClientModelValidationContext context)
... | Add required validation for rich text components on server side | Add required validation for rich text components on server side
| C# | agpl-3.0 | CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction |
00940d3297bd526cde61887cc49bf13ef8d360cf | QuizFactory/QuizFactory.Data/Migrations/Configuration.cs | QuizFactory/QuizFactory.Data/Migrations/Configuration.cs | namespace QuizFactory.Data.Migrations
{
using System;
using System.Data.Entity.Migrations;
using System.Linq;
using QuizFactory.Data;
internal sealed class Configuration : DbMigrationsConfiguration<QuizFactoryDbContext>
{
public Configuration()
{
this.AutomaticMigrat... | namespace QuizFactory.Data.Migrations
{
using System;
using System.Data.Entity.Migrations;
using System.Linq;
using QuizFactory.Data;
internal sealed class Configuration : DbMigrationsConfiguration<QuizFactoryDbContext>
{
public Configuration()
{
this.AutomaticMigrat... | Revert "disable automatic migration data loss" | Revert "disable automatic migration data loss"
This reverts commit f6024ca8c0657cab4eeda90ef9225f66654fd6be.
| C# | mit | dpesheva/QuizFactory,dpesheva/QuizFactory |
83d83a132aba8bdae6f1c71b9ea8999eb86ebf3c | SupportManager.Web/Features/User/CreateCommandHandler.cs | SupportManager.Web/Features/User/CreateCommandHandler.cs | using AutoMapper;
using MediatR;
using SupportManager.DAL;
using SupportManager.Web.Infrastructure.CommandProcessing;
namespace SupportManager.Web.Features.User
{
public class CreateCommandHandler : RequestHandler<CreateCommand>
{
private readonly SupportManagerContext db;
public CreateComman... | using SupportManager.DAL;
using SupportManager.Web.Infrastructure.CommandProcessing;
namespace SupportManager.Web.Features.User
{
public class CreateCommandHandler : RequestHandler<CreateCommand>
{
private readonly SupportManagerContext db;
public CreateCommandHandler(SupportManagerContext db... | Replace map with manual initialization | Replace map with manual initialization
| C# | mit | mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager |
f21358e85b50b6ba642c7354e35af923c7c6d811 | src/Firehose.Web/Authors/NicholasMGetchell.cs | src/Firehose.Web/Authors/NicholasMGetchell.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class NicholasMGetchell : IAmACommunityMember
{
public string FirstName => "Nicholas";
public st... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class NicholasMGetchell : IAmACommunityMember
{
public string FirstName => "Nicholas";
public st... | Move from powershell.getchell.org to ngetchell.com | Move from powershell.getchell.org to ngetchell.com
Also adds an updated Bio to reflect my current work.
| C# | mit | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell |
ff1735522174e0bf8e007cf692f0078eec7776e8 | src/Azure/Storage.Net.Microsoft.Azure.DataLake.Store/Gen2/Models/DirectoryItem.cs | src/Azure/Storage.Net.Microsoft.Azure.DataLake.Store/Gen2/Models/DirectoryItem.cs | using System;
using Newtonsoft.Json;
namespace Storage.Net.Microsoft.Azure.DataLake.Store.Gen2.Models
{
public class DirectoryItem
{
[JsonProperty("contentLength")] public int? ContentLength { get; set; }
[JsonProperty("etag")] public DateTime Etag { get; set; }
[JsonProperty("group")] publi... | using System;
using Newtonsoft.Json;
namespace Storage.Net.Microsoft.Azure.DataLake.Store.Gen2.Models
{
public class DirectoryItem
{
[JsonProperty("contentLength")] public int? ContentLength { get; set; }
[JsonProperty("etag")] public string Etag { get; set; }
[JsonProperty("group")] public ... | Change etag from DateTime to string, to reflect updated api. | Change etag from DateTime to string, to reflect updated api.
| C# | mit | aloneguid/storage |
7045eb196ca51bded0bd2ebef995714901f0e578 | src/Umbraco.Web/WebApi/Filters/HttpQueryStringModelBinder.cs | src/Umbraco.Web/WebApi/Filters/HttpQueryStringModelBinder.cs | using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Formatting;
using System.Web.Http.Controllers;
using System.Web.Http.ModelBinding;
namespace Umbraco.Web.WebApi.Filters
{
/// <summary>
/// Allows an Action to execute with an arbitrary number of QueryStrings
/// </summary>
///... | using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Formatting;
using System.Web.Http.Controllers;
using System.Web.Http.ModelBinding;
using Umbraco.Core;
namespace Umbraco.Web.WebApi.Filters
{
/// <summary>
/// Allows an Action to execute with an arbitrary number of QueryStrings
//... | Use InvariantContains instead of Contains when looking for culture in the querystring | Use InvariantContains instead of Contains when looking for culture in the querystring
| C# | mit | tcmorris/Umbraco-CMS,madsoulswe/Umbraco-CMS,KevinJump/Umbraco-CMS,KevinJump/Umbraco-CMS,arknu/Umbraco-CMS,leekelleher/Umbraco-CMS,hfloyd/Umbraco-CMS,abryukhov/Umbraco-CMS,abryukhov/Umbraco-CMS,rasmuseeg/Umbraco-CMS,abjerner/Umbraco-CMS,NikRimington/Umbraco-CMS,abjerner/Umbraco-CMS,umbraco/Umbraco-CMS,dawoe/Umbraco-CMS,... |
cc73813109652efbef46b2c19f576b106a72ac09 | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | Update server side API for single multiple answer question | Update server side API for single multiple answer question
| C# | mit | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist |
3bb209ef9fef3607481679f32406fb4f8468fc1f | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TsAnalyser")]
[assembly: AssemblyDescript... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TsAnalyser")]
[assembly: AssemblyDescript... | Update assembly version number to v1.1 | Update assembly version number to v1.1 | C# | apache-2.0 | Cinegy/TsAnalyser |
07aa2918a3446a3bdabbb40b07e2663528d5afd8 | src/Solomobro.Instagram.Tests/WebApi/AuthSettingsTests.cs | src/Solomobro.Instagram.Tests/WebApi/AuthSettingsTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Solomobro.Instagram.Tests.WebApi
{
[TestFixture]
public class AuthSettingsTests
{
//WebApiDemo.Settings.EnvironmentManager.
}
}
| using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Solomobro.Instagram.WebApiDemo.Settings;
namespace Solomobro.Instagram.Tests.WebApi
{
[TestFixture]
public class AuthSettingsTests
{
con... | Add unit test for AuthSettings class | Add unit test for AuthSettings class
| C# | apache-2.0 | solomobro/Instagram,solomobro/Instagram,solomobro/Instagram |
273ed5678f8cb6583e67e17a050532a33454d19f | MultiMiner.Xgminer/MiningPool.cs | MultiMiner.Xgminer/MiningPool.cs | using System;
namespace MultiMiner.Xgminer
{
//marked Serializable to allow deep cloning of CoinConfiguration
[Serializable]
public class MiningPool
{
public string Host { get; set; }
public int Port { get; set; }
public string Username { get; set; }
public string Passw... | using System;
namespace MultiMiner.Xgminer
{
//marked Serializable to allow deep cloning of CoinConfiguration
[Serializable]
public class MiningPool
{
public MiningPool()
{
//set defaults
Host = String.Empty;
Username = String.Empty;
Pass... | Set default values (to avoid null references for invalid user data) | Set default values (to avoid null references for invalid user data)
| C# | mit | nwoolls/MultiMiner,IWBWbiz/MultiMiner,nwoolls/MultiMiner,IWBWbiz/MultiMiner |
162e50b1128f8b3f9ab936035ce7a89ab91fabc1 | src/Microsoft.DotNet.Tools.Pack/NuGet/PackageIdValidator.cs | src/Microsoft.DotNet.Tools.Pack/NuGet/PackageIdValidator.cs | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Globalization;
namespace NuGet
{
public static class PackageIdValidator
{
internal const int MaxPacka... | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Globalization;
using System.Text.RegularExpressions;
namespace NuGet
{
public static class PackageIdValidator
... | Fix package id version checking during pack - The logic wasn't in sync with nuget.exe | Fix package id version checking during pack
- The logic wasn't in sync with nuget.exe
| C# | mit | jaredpar/cli,jonsequitur/cli,mlorbetske/cli,naamunds/cli,ravimeda/cli,gkhanna79/cli,AbhitejJohn/cli,harshjain2/cli,EdwardBlair/cli,FubarDevelopment/cli,jonsequitur/cli,blackdwarf/cli,AbhitejJohn/cli,mylibero/cli,krwq/cli,marono/cli,ravimeda/cli,FubarDevelopment/cli,mylibero/cli,mylibero/cli,livarcocc/cli-1,mlorbetske/c... |
a0c1da647ed06478559cca86f783262b12510f52 | Properties/VersionAssemblyInfo.cs | Properties/VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | Split WCF functionality out of Autofac.Extras.Multitenant into a separate assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned 3.1.0. | Split WCF functionality out of Autofac.Extras.Multitenant into a separate
assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned
3.1.0.
| C# | mit | autofac/Autofac.Extras.CommonServiceLocator |
28652caeb6156522b2ee211868d5e1e966edc306 | Properties/VersionAssemblyInfo.cs | Properties/VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | Split WCF functionality out of Autofac.Extras.Multitenant into a separate assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned 3.1.0. | Split WCF functionality out of Autofac.Extras.Multitenant into a separate
assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned
3.1.0.
| C# | mit | autofac/Autofac.Extras.AggregateService |
468e2a8fa6bbc93a912e0a5049077ee36bca7ebf | Opus.Core/PackageBuildList.cs | Opus.Core/PackageBuildList.cs | // <copyright file="PackageBuildList.cs" company="Mark Final">
// Opus
// </copyright>
// <summary>Opus Core</summary>
// <author>Mark Final</author>
namespace Opus.Core
{
public class PackageBuild
{
public PackageBuild(PackageIdentifier id)
{
this.Name = id.Name;
... | // <copyright file="PackageBuildList.cs" company="Mark Final">
// Opus
// </copyright>
// <summary>Opus Core</summary>
// <author>Mark Final</author>
namespace Opus.Core
{
public class PackageBuild
{
public PackageBuild(PackageIdentifier id)
{
this.Name = id.Name;
... | Add an improved string representation of PackageBuild instances | [trunk] Add an improved string representation of PackageBuild instances
| C# | bsd-3-clause | markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation,markfinal/BuildAMation |
52ededb390ff36f873c85e869b4007af235ad59e | Drums/VDrumExplorer.Model/Schema/Json/HexInt32Converter.cs | Drums/VDrumExplorer.Model/Schema/Json/HexInt32Converter.cs | // Copyright 2020 Jon Skeet. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using Newtonsoft.Json;
using System;
using VDrumExplorer.Utility;
namespace VDrumExplorer.Model.Schema.Json
{
internal class HexInt32Converter : JsonConverter<H... | // Copyright 2020 Jon Skeet. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using Newtonsoft.Json;
using System;
using VDrumExplorer.Utility;
namespace VDrumExplorer.Model.Schema.Json
{
internal class HexInt32Converter : JsonConverter<H... | Fix new warning around nullability | Fix new warning around nullability
| C# | apache-2.0 | jskeet/DemoCode,jskeet/DemoCode,jskeet/DemoCode,jskeet/DemoCode |
431b5517d15cb177050b99d4dd1a456110e4526a | Assets/Scripts/HarryPotterUnity/Cards/PlayRequirements/InputRequirement.cs | Assets/Scripts/HarryPotterUnity/Cards/PlayRequirements/InputRequirement.cs | using HarryPotterUnity.Game;
using JetBrains.Annotations;
using UnityEngine;
namespace HarryPotterUnity.Cards.PlayRequirements
{
public class InputRequirement : MonoBehaviour, ICardPlayRequirement
{
private BaseCard _cardInfo;
[SerializeField, UsedImplicitly]
private int _fromHandActi... | using HarryPotterUnity.Game;
using JetBrains.Annotations;
using UnityEngine;
namespace HarryPotterUnity.Cards.PlayRequirements
{
public class InputRequirement : MonoBehaviour, ICardPlayRequirement
{
private BaseCard _cardInfo;
[SerializeField, UsedImplicitly]
private int _fromHandActi... | Add TODO for Input Requirement | Add TODO for Input Requirement | C# | mit | StefanoFiumara/Harry-Potter-Unity |
62ff03224be369f835d5f99392bde48db5eec204 | standard-library/Int32.cs | standard-library/Int32.cs | namespace System
{
/// <summary>
/// Represents a 32-bit integer.
/// </summary>
public struct Int32
{
// Note: integers are equivalent to instances of this data structure because
// flame-llvm the contents of single-field structs as a value of their single
// field, rather t... | namespace System
{
/// <summary>
/// Represents a 32-bit integer.
/// </summary>
public struct Int32
{
// Note: integers are equivalent to instances of this data structure because
// flame-llvm stores the contents of single-field structs as a value of their
// field, rather t... | Fix a typo in a comment | Fix a typo in a comment
| C# | mit | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm |
8801dfa8fb3b93d38072be9cef1fa642afadc73b | ExpandableList/ExpandableList.Android/Views/DetailsView.cs | ExpandableList/ExpandableList.Android/Views/DetailsView.cs | using Android.App;
using Android.OS;
using MvvmCross.Droid.Support.V7.AppCompat;
using System;
namespace ExpandableList.Droid.Views
{
[Activity(Label = "DetailsView")]
public class DetailsView : MvxAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
... | using Android.App;
using Android.OS;
using MvvmCross.Droid.Support.V7.AppCompat;
using System;
namespace ExpandableList.Droid.Views
{
[Activity(Label = "DetailsView")]
public class DetailsView : MvxAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
... | Fix build error with unused variable | Fix build error with unused variable
| C# | mit | AlexStefan/template-app |
118f233b57e040bc290bcf612b55400acef1561b | osu.Framework.Tests/Audio/AudioComponentTest.cs | osu.Framework.Tests/Audio/AudioComponentTest.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.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.Audio;
using osu.Framework.IO.Stores;
using osu.Framework.Threading;
namespace osu.Framework.Tes... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.Audio;
using osu.Framework.IO.Stores;
using osu.Framework.Platform;
using osu.Framework.Threading... | Fix new test on CI host | Fix new test on CI host
| C# | mit | peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework |
742b9d9f4469a7aa97be61fa74534459be2c8e19 | src/Arkivverket.Arkade.UI/Bootstrapper.cs | src/Arkivverket.Arkade.UI/Bootstrapper.cs | using System.Windows;
using Arkivverket.Arkade.UI.Views;
using Arkivverket.Arkade.Util;
using Autofac;
using Prism.Autofac;
using Prism.Modularity;
namespace Arkivverket.Arkade.UI
{
public class Bootstrapper : AutofacBootstrapper
{
protected override DependencyObject CreateShell()
{
... | using System.Windows;
using Arkivverket.Arkade.UI.Views;
using Arkivverket.Arkade.Util;
using Autofac;
using Prism.Autofac;
using Prism.Modularity;
namespace Arkivverket.Arkade.UI
{
public class Bootstrapper : AutofacBootstrapper
{
protected override DependencyObject CreateShell()
{
... | Remove old bootstrapper stuff from UI-project. | Remove old bootstrapper stuff from UI-project.
| C# | agpl-3.0 | arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5 |
71da075e02a3a86123241f5508bff439fdc76335 | src/Totem.Runtime/Timeline/ITimelineDb.cs | src/Totem.Runtime/Timeline/ITimelineDb.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Totem.Runtime.Timeline
{
/// <summary>
/// Describes the database persisting the timeline
/// </summary>
public interface ITimelineDb
{
Many<TimelinePoint> Append(TimelinePosition cause, Many<Event> events);
TimelinePoint AppendOcc... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Totem.Runtime.Timeline
{
/// <summary>
/// Describes the database persisting the timeline
/// </summary>
public interface ITimelineDb
{
Many<TimelinePoint> Append(TimelinePosition cause, Many<Event> events);
TimelinePoint AppendOcc... | Remove unused method on timeline db | Remove unused method on timeline db
| C# | mit | bwatts/Totem,bwatts/Totem |
8fea3dacee5ce9d3cb46789a8a672668cc9deed0 | src/Nancy/Session/Session.cs | src/Nancy/Session/Session.cs | namespace Nancy.Session
{
using System.Collections;
using System.Collections.Generic;
public class Session : ISession
{
private readonly IDictionary<string, object> dictionary;
private bool hasChanged;
public Session() : this(new Dictionary<string, object>(0)){}
... | namespace Nancy.Session
{
using System.Collections;
using System.Collections.Generic;
public class Session : ISession
{
private readonly IDictionary<string, object> dictionary;
private bool hasChanged;
public Session() : this(new Dictionary<string, object>(0)){}
... | Update session only is value is changed | Update session only is value is changed
| C# | mit | AlexPuiu/Nancy,tareq-s/Nancy,horsdal/Nancy,jonathanfoster/Nancy,rudygt/Nancy,sloncho/Nancy,AlexPuiu/Nancy,rudygt/Nancy,NancyFx/Nancy,tsdl2013/Nancy,xt0rted/Nancy,joebuschmann/Nancy,horsdal/Nancy,phillip-haydon/Nancy,fly19890211/Nancy,sadiqhirani/Nancy,albertjan/Nancy,sroylance/Nancy,MetSystem/Nancy,cgourlay/Nancy,blair... |
5fe764b2db98b30113fdc9f2fc7690df8db97ed8 | osu.Game.Tournament/Components/TourneyVideo.cs | osu.Game.Tournament/Components/TourneyVideo.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.IO;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using os... | // 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.IO;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using os... | Fix tournament videos stuttering when changing scenes | Fix tournament videos stuttering when changing scenes
| C# | mit | EVAST9919/osu,peppy/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,2yangk23/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,2yangk23/osu,peppy/osu-new,johnneijzen/osu,ppy/osu,smoogipooo/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,johnneijzen/osu,smoogipoo/osu,EVAST9919/osu,ppy/osu |
4cc1771b574980b77b29d7f0a263488131f284c7 | Assets/SourceCode/RoomGenerator.cs | Assets/SourceCode/RoomGenerator.cs | using UnityEngine;
public class RoomGenerator : MonoBehaviour
{
public GameObject roomPrefab;
public int roomCount = 100;
public int spaceWidth = 500;
public int spaceLength = 500;
public int minRoomWidth = 5;
public int maxRoomWidth = 20;
public int minRoomLength = 5;
public int maxRoomLength = 20;
pub... | using UnityEngine;
public class RoomGenerator : MonoBehaviour
{
public GameObject roomPrefab;
public int roomCount = 100;
public int spaceWidth = 500;
public int spaceLength = 500;
public int minRoomWidth = 5;
public int maxRoomWidth = 20;
public int minRoomLength = 5;
public int maxRoomLength = 20;
pub... | Fix typo in public variable | Fix typo in public variable
| C# | mit | Saduras/DungeonGenerator |
247ff6c10cc5fbd24007107543ee21af233e4cf7 | src/DeployStatus/Service/DeployStatusService.cs | src/DeployStatus/Service/DeployStatusService.cs | using System;
using DeployStatus.Configuration;
using DeployStatus.SignalR;
using log4net;
using Microsoft.Owin.Hosting;
namespace DeployStatus.Service
{
public class DeployStatusService : IService
{
private IDisposable webApp;
private readonly ILog log;
private readonly DeployStatusCon... | using System;
using System.Linq;
using DeployStatus.Configuration;
using DeployStatus.SignalR;
using log4net;
using Microsoft.Owin.Hosting;
namespace DeployStatus.Service
{
public class DeployStatusService : IService
{
private IDisposable webApp;
private readonly ILog log;
private reado... | Add support for listening on multiple urls. | Add support for listening on multiple urls.
| C# | mit | Jark/DeployStatus,Jark/DeployStatus,Jark/DeployStatus |
b11156b2cc1e19e419b3174558c1ac0200ee11bf | src/GitHub.InlineReviews/Tags/ShowInlineCommentGlyph.xaml.cs | src/GitHub.InlineReviews/Tags/ShowInlineCommentGlyph.xaml.cs | using System;
using System.Windows.Controls;
using GitHub.InlineReviews.Views;
using GitHub.InlineReviews.ViewModels;
namespace GitHub.InlineReviews.Tags
{
public partial class ShowInlineCommentGlyph : UserControl
{
readonly CommentTooltipView commentTooltipView;
public ShowInlineCommentGlyph... | using System;
using System.Windows.Controls;
using GitHub.InlineReviews.Views;
using GitHub.InlineReviews.ViewModels;
namespace GitHub.InlineReviews.Tags
{
public partial class ShowInlineCommentGlyph : UserControl
{
readonly ToolTip toolTip;
public ShowInlineCommentGlyph()
{
... | Create and release tooltip content on demand | Create and release tooltip content on demand
Save memory by not holding on to contents of tooltip (comment thread).
| C# | mit | github/VisualStudio,github/VisualStudio,github/VisualStudio |
8d55340325b457427661d0ae31d8b0a5e66b255a | src/Umbraco.Web/Media/EmbedProviders/Youtube.cs | src/Umbraco.Web/Media/EmbedProviders/Youtube.cs | using System.Collections.Generic;
namespace Umbraco.Web.Media.EmbedProviders
{
public class YouTube : EmbedProviderBase
{
public override string ApiEndpoint => "https://www.youtube.com/oembed";
public override string[] UrlSchemeRegex => new string[]
{
@"youtu.be/.*",
... | using System.Collections.Generic;
namespace Umbraco.Web.Media.EmbedProviders
{
public class YouTube : EmbedProviderBase
{
public override string ApiEndpoint => "https://www.youtube.com/oembed";
public override string[] UrlSchemeRegex => new string[]
{
@"youtu.be/.*",
... | Fix up youtube URL regex matching | Fix up youtube URL regex matching
| C# | mit | JimBobSquarePants/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,marcemarc/Umbraco-CMS,robertjf/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,marcemarc/Umbraco-CMS,mattbrailsford/Umbraco-CMS,dawoe/Umbraco-CMS,leekelleher/Umbraco-CMS,robertjf/Umbraco-CMS,abjerner/Umbraco-CMS,bjarnef/Umbraco-CMS,NikRimington/Umbraco-CMS,KevinJump... |
4b370ec763b69d06569933d71677a6d4727da66a | src/ErgastApi/Responses/ErgastResponse.cs | src/ErgastApi/Responses/ErgastResponse.cs | using System;
using Newtonsoft.Json;
namespace ErgastApi.Responses
{
// TODO: Use internal/private constructors for all response types?
public abstract class ErgastResponse
{
[JsonProperty("url")]
public virtual string RequestUrl { get; private set; }
[JsonProperty("limit")]
... | using System;
using Newtonsoft.Json;
namespace ErgastApi.Responses
{
// TODO: Use internal/private constructors for all response types?
public abstract class ErgastResponse
{
[JsonProperty("url")]
public string RequestUrl { get; protected set; }
[JsonProperty("limit")]
pub... | Fix issue with Page calculation | Fix issue with Page calculation
| C# | unlicense | Krusen/ErgastApi.Net |
251cbc8f829a7b5a8687857e03aa9d5c4675b111 | Modbus/IO/StreamResourceUtility.cs | Modbus/IO/StreamResourceUtility.cs | using System.Linq;
using System.Text;
namespace Modbus.IO
{
internal static class StreamResourceUtility
{
internal static string ReadLine(IStreamResource stream)
{
var result = new StringBuilder();
var singleByteBuffer = new byte[1];
do
... | using System.Linq;
using System.Text;
namespace Modbus.IO
{
internal static class StreamResourceUtility
{
internal static string ReadLine(IStreamResource stream)
{
var result = new StringBuilder();
var singleByteBuffer = new byte[1];
do
... | Add checking of Read() return value. | Add checking of Read() return value.
Without this using of non-initialized (0) value or value from the previous step of loop.
| C# | mit | yvschmid/NModbus4,richardlawley/NModbus4,NModbus4/NModbus4,Maxwe11/NModbus4,NModbus/NModbus,xlgwr/NModbus4 |
320476f8da56704035b9da6f558960638ab4d1ef | src/GitHub.VisualStudio/Services/SharedResources.cs | src/GitHub.VisualStudio/Services/SharedResources.cs | using GitHub.UI;
using GitHub.VisualStudio.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace GitHub.VisualStudio
{
public static class SharedResources
{
static readonly Dictionary<string, Drawin... | using System.Collections.Generic;
using System.Windows.Media;
using GitHub.UI;
using GitHub.VisualStudio.UI;
namespace GitHub.VisualStudio
{
public static class SharedResources
{
static readonly Dictionary<string, DrawingBrush> drawingBrushes = new Dictionary<string, DrawingBrush>();
public s... | Sort and remove unused usings | Sort and remove unused usings
| C# | mit | SaarCohen/VisualStudio,YOTOV-LIMITED/VisualStudio,Dr0idKing/VisualStudio,luizbon/VisualStudio,shaunstanislaus/VisualStudio,yovannyr/VisualStudio,bbqchickenrobot/VisualStudio,github/VisualStudio,modulexcite/VisualStudio,github/VisualStudio,HeadhunterXamd/VisualStudio,radnor/VisualStudio,mariotristan/VisualStudio,Guilher... |
998237b83d5d753a066e5910563cae3209481517 | Samples/Stylet.Samples.RedditBrowser/Pages/TaskbarViewModel.cs | Samples/Stylet.Samples.RedditBrowser/Pages/TaskbarViewModel.cs | using Stylet.Samples.RedditBrowser.Events;
using Stylet.Samples.RedditBrowser.RedditApi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Stylet.Samples.RedditBrowser.Pages
{
public class TaskbarViewModel : Screen
{
private I... | using Stylet.Samples.RedditBrowser.Events;
using Stylet.Samples.RedditBrowser.RedditApi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Stylet.Samples.RedditBrowser.Pages
{
public class TaskbarViewModel : Screen
{
private I... | Add extra work to RedditBrowser sample | Add extra work to RedditBrowser sample
| C# | mit | canton7/Stylet,canton7/Stylet,cH40z-Lord/Stylet,cH40z-Lord/Stylet |
2c9df53c35f0c6cf53acf44b6c56e3ff400ab2e3 | PadReaderTest/Program.cs | PadReaderTest/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using XboxOnePadReader;
namespace PadReaderTest
{
class Program
{
static void Main(string[] args)
{
ControllerReader myController = Controller... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using XboxOnePadReader;
namespace PadReaderTest
{
class Program
{
static void Main(string[] args)
{
ControllerReader myController = Controller... | Fix Sleep of the test program | Fix Sleep of the test program
| C# | apache-2.0 | badgio/XboxOneController,badgio/XboxOneController,badgio/XboxOneController |
52ed00c76cc1c586fc2fd37d90ae5644d2d9afe6 | Project1/Assets/Test1.cs | Project1/Assets/Test1.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test1 : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
| using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test1 : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Condole.Log("This log is added by Suzuki");
}
} | Write Log message for test | Write Log message for test
| C# | mit | rexph/UnityPractice |
32fe1f196e9bc955194c176ed49f74909a081ed0 | OpenKh.Game/Global.cs | OpenKh.Game/Global.cs | namespace OpenKh.Game
{
public class Global
{
public const int ResolutionWidth = 512;
public const int ResolutionHeight = 416;
public const int ResolutionRemixWidth = 684;
public const float ResolutionReMixRatio = 0.925f;
public const float ResolutionBoostRatio = 2;
... | namespace OpenKh.Game
{
public class Global
{
public const int ResolutionWidth = 512;
public const int ResolutionHeight = 416;
public const int ResolutionRemixWidth = 684;
public const float ResolutionReMixRatio = 0.925f;
}
}
| Remove unused line of code | Remove unused line of code
| C# | mit | Xeeynamo/KingdomHearts |
c1a4f2e6afd823b9e36c73f76f16ea4445da0a88 | osu.Game.Rulesets.Taiko.Tests/TaikoDifficultyCalculatorTest.cs | osu.Game.Rulesets.Taiko.Tests/TaikoDifficultyCalculatorTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Taiko.Difficulty;
using osu.Game.Tests.Beatmaps;
namespace os... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Taiko.Difficulty;
using osu.Game.Tests.Beatmaps;
namespace os... | Update expected SR in test | Update expected SR in test
| C# | mit | NeoAdonis/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,peppy/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,ppy/osu,smoogipoo/osu |
a5c29c69cf2eb2bcceb6adf1fe0fe3ad58772525 | Tests/TextureTests.cs | Tests/TextureTests.cs | using System;
using System.Drawing.Imaging;
using System.IO;
using NUnit.Framework;
using ValveResourceFormat;
using ValveResourceFormat.ResourceTypes;
namespace Tests
{
public class TextureTests
{
[Test]
public void Test()
{
var path = Path.Combine(TestContext.CurrentConte... | using System;
using System.Drawing.Imaging;
using System.IO;
using NUnit.Framework;
using ValveResourceFormat;
using ValveResourceFormat.ResourceTypes;
namespace Tests
{
public class TextureTests
{
[Test]
[Ignore("Need a better way of testing images rather than comparing the files directly")]
... | Disable text tests for now | Disable text tests for now
| C# | mit | SteamDatabase/ValveResourceFormat |
ae7f4f9a1a47dbb08e51a99fc6edbc0598334ba1 | src/Swashbuckle.AspNetCore.SwaggerUI/Application/SwaggerUIBuilderExtensions.cs | src/Swashbuckle.AspNetCore.SwaggerUI/Application/SwaggerUIBuilderExtensions.cs | using System;
using Microsoft.AspNetCore.StaticFiles;
using Swashbuckle.AspNetCore.SwaggerUI;
namespace Microsoft.AspNetCore.Builder
{
public static class SwaggerUIBuilderExtensions
{
public static IApplicationBuilder UseSwaggerUI(
this IApplicationBuilder app,
Action<SwaggerUI... | using System;
using Microsoft.AspNetCore.StaticFiles;
using Swashbuckle.AspNetCore.SwaggerUI;
namespace Microsoft.AspNetCore.Builder
{
public static class SwaggerUIBuilderExtensions
{
public static IApplicationBuilder UseSwaggerUI(
this IApplicationBuilder app,
Action<SwaggerUI... | Support to map swagger UI to application root url | Support to map swagger UI to application root url
UseSwaggerUI will check for special case empty RoutePrefix and allow mapping swagger UI to application root url. | C# | mit | domaindrivendev/Swashbuckle.AspNetCore,domaindrivendev/Ahoy,domaindrivendev/Swashbuckle.AspNetCore,domaindrivendev/Ahoy,domaindrivendev/Swashbuckle.AspNetCore,domaindrivendev/Ahoy |
09f9c480e4073cbbd1e7e5759a28c512e0ad1485 | src/PowerShellEditorServices.Protocol/LanguageServer/Hover.cs | src/PowerShellEditorServices.Protocol/LanguageServer/Hover.cs | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sy... | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sy... | Add registration options for hover request | Add registration options for hover request
| C# | mit | PowerShell/PowerShellEditorServices |
4b20df12cd15c09ad002aa85dec6a4af83bbaa99 | build.cake | build.cake | //#tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
// Define directories.
var buildDir = Directory("./src/Example/bin") + Directory(configuration);
Task("Clean")
.Does(() =>
{
CleanDirectory(buildDir);... | //#tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0
string target = Argument("target", "Default");
string configuration = Argument("configuration", "Release");
// Define directories.
var dirs = new[]
{
Directory("./Live.Forms/bin") + Directory(configuration),
Directory("./Live.Forms.iOS/bin") + Director... | Build Script - cleanup and filling out vars | Build Script - cleanup and filling out vars
| C# | mit | jonathanpeppers/Live.Forms.iOS,jonathanpeppers/Live.Forms.iOS |
cb7252a97e46a6e21ead7ce5ff4b5d40db8d70d5 | Kandanda/Kandanda.Dal/KandandaDbContext.cs | Kandanda/Kandanda.Dal/KandandaDbContext.cs | using System.Data.Entity;
using Kandanda.Dal.DataTransferObjects;
namespace Kandanda.Dal
{
public class KandandaDbContext : DbContext
{
public KandandaDbContext()
{
Database.SetInitializer(new SampleDataDbInitializer());
}
public DbSet<Tournament> Tournaments { get... | using System.Data.Entity;
using Kandanda.Dal.DataTransferObjects;
namespace Kandanda.Dal
{
public class KandandaDbContext : DbContext
{
public KandandaDbContext()
{
// TODO fix SetInitializer for tests
Database.SetInitializer(new DropCreateDatabaseAlways<KandandaDbConte... | Fix tests, but not seeding Database anymore | Fix tests, but not seeding Database anymore
| C# | mit | kandanda/Client,kandanda/Client |
99e63ec2fa2c385de65b5569d82cda40e3ff2196 | source/nuPickers/Shared/DotNetDataSource/DotNetDataSource.cs | source/nuPickers/Shared/DotNetDataSource/DotNetDataSource.cs |
namespace nuPickers.Shared.DotNetDataSource
{
using nuPickers.Shared.Editor;
using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
public class DotNetDataSource
{
public string AssemblyName { get; set; }
public string ClassName { get;... |
namespace nuPickers.Shared.DotNetDataSource
{
using nuPickers.Shared.Editor;
using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
public class DotNetDataSource
{
public string AssemblyName { get; set; }
public string ClassName { get;... | Use Helper to create instance from assembly | Use Helper to create instance from assembly
Activator takes a full path to the assembly and we only have the
assembly file name.
| C# | mit | iahdevelop/nuPickers,JimBobSquarePants/nuPickers,LottePitcher/nuPickers,uComponents/nuPickers,abjerner/nuPickers,JimBobSquarePants/nuPickers,pgregorynz/nuPickers,iahdevelop/nuPickers,abjerner/nuPickers,pgregorynz/nuPickers,uComponents/nuPickers,pgregorynz/nuPickers,JimBobSquarePants/nuPickers,iahdevelop/nuPickers,abjer... |
e583bf86a1c5afd34f9de2e41106259f79cdd063 | src/Certify.Core.Models/Models/Shared/RenewalStatusReport.cs | src/Certify.Core.Models/Models/Shared/RenewalStatusReport.cs | namespace Certify.Models.Shared
{
public class RenewalStatusReport
{
public string InstanceId { get; set; }
public string MachineName { get; set; }
public ManagedSite ManagedSite { get; set; }
public string PrimaryContactEmail { get; set; }
public string AppVersion { get... | using System;
namespace Certify.Models.Shared
{
public class RenewalStatusReport
{
public string InstanceId { get; set; }
public string MachineName { get; set; }
public ManagedSite ManagedSite { get; set; }
public string PrimaryContactEmail { get; set; }
public string A... | Add date to status report | Add date to status report
| C# | mit | ndouthit/Certify,webprofusion/Certify,Prerequisite/Certify |
f9f5f94206f41acfd26c499ad3518b3f9da64e2e | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api.Types/Responses/GetDraftApprenticeshipResponse.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api.Types/Responses/GetDraftApprenticeshipResponse.cs | using System;
using SFA.DAS.CommitmentsV2.Types;
namespace SFA.DAS.CommitmentsV2.Api.Types.Responses
{
public sealed class GetDraftApprenticeshipResponse
{
public long Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Emai... | using System;
using SFA.DAS.CommitmentsV2.Types;
namespace SFA.DAS.CommitmentsV2.Api.Types.Responses
{
public sealed class GetDraftApprenticeshipResponse
{
public long Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Emai... | Add `HasPriorLearning` to draft response | Add `HasPriorLearning` to draft response
| C# | mit | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments |
422fbf36a7495d5cbfbd30d01eec1377c3d6c291 | Discovery/src/AspDotNet4/Fortune-Teller-Service4/Global.asax.cs | Discovery/src/AspDotNet4/Fortune-Teller-Service4/Global.asax.cs | using Autofac;
using Autofac.Integration.WebApi;
using FortuneTellerService4.Models;
using Pivotal.Discovery.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Http;
using System.Web.Routing;
namespace FortuneTellerService4
{
publ... | using Autofac;
using Autofac.Integration.WebApi;
using FortuneTellerService4.Models;
using Pivotal.Discovery.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Http;
using System.Web.Routing;
namespace FortuneTellerService4
{
publ... | Fix FortuneTeller for .NET4 not unregistering from eureka on app shutdown | Fix FortuneTeller for .NET4 not unregistering from eureka on app shutdown
| C# | apache-2.0 | SteelToeOSS/Samples,SteelToeOSS/Samples,SteelToeOSS/Samples,SteelToeOSS/Samples |
3372cec70513765fe9065db13c3afb25f9c147a7 | src/Stunts/Stunts.Tests/StuntNamingTests.cs | src/Stunts/Stunts.Tests/StuntNamingTests.cs | using System;
using Xunit;
namespace Stunts.Tests
{
public class StuntNamingTests
{
[Theory]
[InlineData("StuntFactoryIDisposableIServiceProvider" + StuntNaming.DefaultSuffix, typeof(StuntFactory), typeof(IServiceProvider), typeof(IDisposable))]
public void GetNameOrdersTypes(string ex... | using System;
using System.Collections.Generic;
using Xunit;
namespace Stunts.Tests
{
public class StuntNamingTests
{
[Theory]
[InlineData("StuntFactoryIDisposableIServiceProvider" + StuntNaming.DefaultSuffix, typeof(StuntFactory), typeof(IServiceProvider), typeof(IDisposable))]
[Inlin... | Add extra test for generic type for naming | Add extra test for generic type for naming
| C# | apache-2.0 | Moq/moq |
38a7b285ff324d959d26a0a2d391feb6029123e1 | Cogito.Core.Tests/Net/Http/HttpMessageEventSourceTests.cs | Cogito.Core.Tests/Net/Http/HttpMessageEventSourceTests.cs | using System;
using System.Diagnostics.Eventing.Reader;
using System.Net;
using System.Net.Http;
using Cogito.Net.Http;
using Microsoft.Diagnostics.Tracing;
using Microsoft.Diagnostics.Tracing.Session;
using Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility;
using Microsoft.Samples.Eventing;
using Microsof... | using System;
using System.Diagnostics.Eventing.Reader;
using System.Net;
using System.Net.Http;
using Cogito.Net.Http;
using Microsoft.Diagnostics.Tracing;
using Microsoft.Diagnostics.Tracing.Session;
using Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Utility;
using Microsoft.Samples.Eventing;
using Microsof... | Disable broken test session thing. | Disable broken test session thing.
| C# | mit | wasabii/Cogito,wasabii/Cogito |
f4f3588047606c5210beec97b06436d3c7e765ac | Puppy/MenuService/MenuItem.cs | Puppy/MenuService/MenuItem.cs | #region Using
using System.Collections.Generic;
using System.Windows.Input;
using PuppyFramework.Services;
#endregion
namespace PuppyFramework.MenuService
{
public class MenuItem : MenuItemBase
{
#region Fields
private ObservableSortedList<MenuItemBase> _children;
pri... | #region Using
using System.Collections.Generic;
using System.Windows.Input;
using PuppyFramework.Services;
#endregion
namespace PuppyFramework.MenuService
{
public class MenuItem : MenuItemBase
{
#region Fields
private ObservableSortedList<MenuItemBase> _children;
pri... | Fix bug - command parameter is always null. | Fix bug - command parameter is always null.
| C# | mit | ashokgelal/Puppy |
567a7b6d48c3c0ebead0a6635c6b36da50ba34c9 | src/Senders/FluentEmail.Smtp/FluentEmailSmtpBuilderExtensions.cs | src/Senders/FluentEmail.Smtp/FluentEmailSmtpBuilderExtensions.cs | using FluentEmail.Core.Interfaces;
using FluentEmail.Smtp;
using Microsoft.Extensions.DependencyInjection.Extensions;
using System;
using System.Net;
using System.Net.Mail;
namespace Microsoft.Extensions.DependencyInjection
{
public static class FluentEmailSmtpBuilderExtensions
{
public static FluentE... | using FluentEmail.Core.Interfaces;
using FluentEmail.Smtp;
using Microsoft.Extensions.DependencyInjection.Extensions;
using System;
using System.Net;
using System.Net.Mail;
namespace Microsoft.Extensions.DependencyInjection
{
public static class FluentEmailSmtpBuilderExtensions
{
public static FluentE... | Fix AddSmtpSender extension methods to property add service | Fix AddSmtpSender extension methods to property add service
Resolves "An asynchronous call is already in progress." error message due to SmtpClient being instantiated during startup and reused, irrespective of it being defined as a Scoped service. | C# | mit | lukencode/FluentEmail,lukencode/FluentEmail |
2fb3c3bcf6182a0de653d7747862ea7dd467f5fd | source/NetFramework/Server/MirrorSharp/SetOptionsFromClient.cs | source/NetFramework/Server/MirrorSharp/SetOptionsFromClient.cs | using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using MirrorSharp.Advanced;
using SharpLab.Server.Common;
namespace SharpLab.Server.MirrorSharp {
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
public class SetOptionsFromClient : ISetOpti... | using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using MirrorSharp.Advanced;
using SharpLab.Server.Common;
namespace SharpLab.Server.MirrorSharp {
[UsedImplicitly(ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
public class SetOptionsFromClient : ISetOpti... | Fix x-container-experiment-seed failure in .NET Framework branches | [gh-620] Fix x-container-experiment-seed failure in .NET Framework branches
| C# | bsd-2-clause | ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab |
1437540efbbc8dac9b14223e1f1bd8e7332a54f7 | source/CroquetAustralia.Website/Layouts/Shared/Sidebar.cshtml | source/CroquetAustralia.Website/Layouts/Shared/Sidebar.cshtml | <div class="sticky-notes">
<div class="sticky-note">
<i class="pin"></i>
<div class="content green">
<h1>
GC Handicapping System
</h1>
<p>
New <a href="/disciplines/golf-croquet/resources">GC Handicapping System</a> comes into effe... | <div class="sticky-notes">
<div class="sticky-note">
<i class="pin"></i>
<div class="content green">
<h1>
GC Handicapping System
</h1>
<p>
New <a href="/disciplines/golf-croquet/resources">GC Handicapping System</a> comes into effe... | Remove 'Positions Vacant' sticky note | Remove 'Positions Vacant' sticky note
| C# | mit | croquet-australia/croquet-australia.com.au,croquet-australia/website-application,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia-website,croquet-australia/website-application,croquet-australia/croquet-australia-website,croquet-australia/croquet-a... |
86f9e8533d364b1042711c9c91f73bfa7b8566b8 | src/git-istage/ConsoleCommand.cs | src/git-istage/ConsoleCommand.cs | using System;
namespace GitIStage
{
internal sealed class ConsoleCommand
{
private readonly Action _handler;
private readonly ConsoleKey _key;
public readonly string Description;
private readonly ConsoleModifiers _modifiers;
public ConsoleCommand(Action handler, Console... | using System;
namespace GitIStage
{
internal sealed class ConsoleCommand
{
private readonly Action _handler;
private readonly ConsoleKey _key;
public readonly string Description;
private readonly ConsoleModifiers _modifiers;
public ConsoleCommand(Action handler, Console... | Fix showing digits - show '1' instead of 'D1' | Fix showing digits - show '1' instead of 'D1'
| C# | mit | terrajobst/git-istage,terrajobst/git-istage |
bdae9bcb0b085d30cd318d9723d429e11cf42434 | wrappers/dotnet/indy-sdk-dotnet-test/PoolTests/CreatePoolTest.cs | wrappers/dotnet/indy-sdk-dotnet-test/PoolTests/CreatePoolTest.cs | using Hyperledger.Indy.PoolApi;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
using System.Threading.Tasks;
namespace Hyperledger.Indy.Test.PoolTests
{
[TestClass]
public class CreatePoolTest : IndyIntegrationTestBase
{
[TestMethod]
public async Task TestCreatePoolWo... | using Hyperledger.Indy.PoolApi;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;
using System.Threading.Tasks;
namespace Hyperledger.Indy.Test.PoolTests
{
[TestClass]
public class CreatePoolTest : IndyIntegrationTestBase
{
[TestMethod]
public async Task TestCreatePoolWo... | Create Pool Tests work. removed obsolete tests | Create Pool Tests work. removed obsolete tests
Signed-off-by: matt raffel <a1c361500f8f28827fe56351c610aa9d1ba26ce8@evernym.com>
| C# | apache-2.0 | srottem/indy-sdk,srottem/indy-sdk,Artemkaaas/indy-sdk,Artemkaaas/indy-sdk,Artemkaaas/indy-sdk,srottem/indy-sdk,peacekeeper/indy-sdk,peacekeeper/indy-sdk,peacekeeper/indy-sdk,Artemkaaas/indy-sdk,anastasia-tarasova/indy-sdk,srottem/indy-sdk,anastasia-tarasova/indy-sdk,srottem/indy-sdk,anastasia-tarasova/indy-sdk,Artemkaa... |
4332d05963b4fc7fcf06a683ff6a9c5178a4e8c7 | src/Auth0.Core/ApiError.cs | src/Auth0.Core/ApiError.cs | using Auth0.Core.Serialization;
using Newtonsoft.Json;
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace Auth0.Core
{
/// <summary>
/// Error information captured from a failed API request.
/// </summary>
[JsonConverter(typeof(ApiErrorConverter))]
public class ApiError
... | using Auth0.Core.Serialization;
using Newtonsoft.Json;
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace Auth0.Core
{
/// <summary>
/// Error information captured from a failed API request.
/// </summary>
[JsonConverter(typeof(ApiErrorConverter))]
public class ApiError
... | Handle other kinds of deserialization exceptions | Handle other kinds of deserialization exceptions
| C# | mit | auth0/auth0.net,auth0/auth0.net |
a9ab9f614751fd822e0c32814802117d400fe905 | src/FluentMigrator.Runner/Generators/MySql/MySqlQuoter.cs | src/FluentMigrator.Runner/Generators/MySql/MySqlQuoter.cs | using FluentMigrator.Runner.Generators.Generic;
namespace FluentMigrator.Runner.Generators.MySql
{
public class MySqlQuoter : GenericQuoter
{
public override string OpenQuote { get { return "`"; } }
public override string CloseQuote { get { return "`"; } }
public override string Quot... | using FluentMigrator.Runner.Generators.Generic;
namespace FluentMigrator.Runner.Generators.MySql
{
public class MySqlQuoter : GenericQuoter
{
public override string OpenQuote { get { return "`"; } }
public override string CloseQuote { get { return "`"; } }
public override string Quot... | Fix MySql do not support Milliseconds | Fix MySql do not support Milliseconds
| C# | apache-2.0 | spaccabit/fluentmigrator,spaccabit/fluentmigrator |
f73933d619581666ca7309f285e0efcb6c98d637 | Src/Codge.Generator/Presentations/Xsd/XmlSchemaExtensions.cs | Src/Codge.Generator/Presentations/Xsd/XmlSchemaExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Schema;
namespace Codge.Generator.Presentations.Xsd
{
public static class XmlSchemaExtensions
{
public static bool IsEmptyType(this XmlSchemaComplexType type)
{
... | using System.Collections.Generic;
using System.Linq;
using System.Xml.Schema;
namespace Codge.Generator.Presentations.Xsd
{
public static class XmlSchemaExtensions
{
public static bool IsEmptyType(this XmlSchemaComplexType type)
{
return type.ContentModel == null && type.Attributes... | Fix for treating enum types as primitives due non-enumeration facets | Fix for treating enum types as primitives due non-enumeration facets
| C# | apache-2.0 | avao/Codge |
ef7a53f792619be004da2498bc013c7d59f205d3 | src/Pablo.Gallery/Views/Account/_ExternalLoginsListPartial.cshtml | src/Pablo.Gallery/Views/Account/_ExternalLoginsListPartial.cshtml | @model ICollection<AuthenticationClientData>
@if (Model.Count > 0)
{
using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = ViewBag.ReturnUrl }))
{
@Html.AntiForgeryToken()
<h4>Use another service to log in.</h4>
<hr />
<div id="socialLoginList">
@foreach (AuthenticationCl... | @model ICollection<Microsoft.Web.WebPages.OAuth.AuthenticationClientData>
@if (Model.Count > 0)
{
using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = ViewBag.ReturnUrl }))
{
@Html.AntiForgeryToken()
<h4>Use another service to log in.</h4>
<hr />
<div id="socialLoginList">
... | Fix external logins partial for running in mono 3.2.x | Fix external logins partial for running in mono 3.2.x
| C# | mit | cwensley/Pablo.Gallery,sixteencolors/Pablo.Gallery,sixteencolors/Pablo.Gallery,sixteencolors/Pablo.Gallery,sixteencolors/Pablo.Gallery,cwensley/Pablo.Gallery,cwensley/Pablo.Gallery |
3af1e6500d660bd36c0d6e7793b90a7dda360c0a | Source/Eto.Platform.Mac/Forms/FormHandler.cs | Source/Eto.Platform.Mac/Forms/FormHandler.cs | using System;
using Eto.Drawing;
using Eto.Forms;
using MonoMac.AppKit;
using SD = System.Drawing;
namespace Eto.Platform.Mac.Forms
{
public class FormHandler : MacWindow<MyWindow, Form>, IDisposable, IForm
{
protected override bool DisposeControl { get { return false; } }
public FormHandler()
{
Control = ... | using System;
using Eto.Forms;
using MonoMac.AppKit;
using SD = System.Drawing;
namespace Eto.Platform.Mac.Forms
{
public class FormHandler : MacWindow<MyWindow, Form>, IForm
{
protected override bool DisposeControl { get { return false; } }
public FormHandler()
{
Control = new MyWindow(new SD.Rectangle(0,... | Call Form.OnShown after window is shown (to be consistent with dialog) | Mac: Call Form.OnShown after window is shown (to be consistent with dialog)
| C# | bsd-3-clause | l8s/Eto,PowerOfCode/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1,l8s/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,bbqchickenrobot/Eto-1,l8s/Eto |
987aa5a21c043360d71f0155b52d70e77ddd3a5e | osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModAimAssist.cs | osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModAimAssist.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Rulesets.Osu.Mods;
namespace osu.Game.Rulesets.Osu.Tests.Mods
{
public class TestSceneOsuModAimAssist : OsuModTestScene
{
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Rulesets.Osu.Mods;
namespace osu.Game.Rulesets.Osu.Tests.Mods
{
public class TestSceneOsuModAimAssist : OsuModTestScene
{
... | Add testing of different strengths | Add testing of different strengths
| C# | mit | peppy/osu,ppy/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu |
cc3923be778ba8f2278111338f008dc1579dd189 | UniversalSoundBoard/Common/GeneralMethods.cs | UniversalSoundBoard/Common/GeneralMethods.cs | using davClassLibrary.Common;
using davClassLibrary.DataAccess;
using UniversalSoundBoard.DataAccess;
using Windows.Networking.Connectivity;
namespace UniversalSoundboard.Common
{
public class GeneralMethods : IGeneralMethods
{
public bool IsNetworkAvailable()
{
var connection = Ne... | using davClassLibrary.Common;
using davClassLibrary.DataAccess;
using UniversalSoundBoard.DataAccess;
using Windows.Networking.Connectivity;
namespace UniversalSoundboard.Common
{
public class GeneralMethods : IGeneralMethods
{
public bool IsNetworkAvailable()
{
var connection = Ne... | Check for null in IsNetworkAvailable implementation | Check for null in IsNetworkAvailable implementation
| C# | mit | Dav2070/UniversalSoundBoard |
ac3ff4471fb020a730c0a538c66f2b8352915ea8 | src/JoinRpg.Blazor.Client/ApiClients/HttpClientRegistration.cs | src/JoinRpg.Blazor.Client/ApiClients/HttpClientRegistration.cs | using JoinRpg.Web.CheckIn;
using JoinRpg.Web.ProjectCommon;
using JoinRpg.Web.ProjectMasterTools.ResponsibleMaster;
using JoinRpg.Web.ProjectMasterTools.Subscribe;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
namespace JoinRpg.Blazor.Client.ApiClients;
public static class HttpClientRegistration
{
pr... | using JoinRpg.Web.CheckIn;
using JoinRpg.Web.ProjectCommon;
using JoinRpg.Web.ProjectMasterTools.ResponsibleMaster;
using JoinRpg.Web.ProjectMasterTools.Subscribe;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
namespace JoinRpg.Blazor.Client.ApiClients;
public static class HttpClientRegistration
{
pr... | Fix namespace in httpclient registration | Fix namespace in httpclient registration
| C# | mit | leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net |
7da56ec7fd27ebddc7253b6151b50f93ad289dd4 | osu.Game/Screens/Play/ScreenSuspensionHandler.cs | osu.Game/Screens/Play/ScreenSuspensionHandler.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Platform;
namespace osu.Game.Screens.Play
{
internal... | // 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 JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Platform;
nam... | Add null check and xmldoc | Add null check and xmldoc
| C# | mit | smoogipoo/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,UselessToucan/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,NeoAdonis/osu |
67bb3bcf61314b8469e992bff30db93b231c3bb5 | Bumblebee/Extensions/Debugging.cs | Bumblebee/Extensions/Debugging.cs | using System;
using System.Threading;
namespace Bumblebee.Extensions
{
public static class Debugging
{
public static T DebugPrint<T>(this T obj)
{
Console.WriteLine(obj.ToString());
return obj;
}
public static T DebugPrint<T>(this T obj, string message)
... | using System;
using System.Threading;
namespace Bumblebee.Extensions
{
public static class Debugging
{
public static T DebugPrint<T>(this T obj)
{
Console.WriteLine(obj.ToString());
return obj;
}
public static T DebugPrint<T>(this T obj, string message)
... | Add PlaySound as a debugging 'tool' | Add PlaySound as a debugging 'tool'
| C# | mit | Bumblebee/Bumblebee,kool79/Bumblebee,toddmeinershagen/Bumblebee,chrisblock/Bumblebee,Bumblebee/Bumblebee,toddmeinershagen/Bumblebee,kool79/Bumblebee,chrisblock/Bumblebee,qchicoq/Bumblebee,qchicoq/Bumblebee |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.