commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
ece20cacceacf8661048973d51013d455ebdd0de | Fix #339, optional parameter detection was broken | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Mvc.Core/DefaultParameterDescriptorFactory.cs | src/Microsoft.AspNet.Mvc.Core/DefaultParameterDescriptorFactory.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
namespace Microsoft.AspNet.Mvc
{
public class DefaultParameterDescriptorFactory : IParameterDescriptorFac... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
namespace Microsoft.AspNet.Mvc
{
public class DefaultParameterDescriptorFactory : IParameterDescriptorFac... | apache-2.0 | C# |
42857a686920806a1bb74cf5b3c273b300ade27e | Fix routes (#244) | tg-msft/azure-sdk-tools,tg-msft/azure-sdk-tools,tg-msft/azure-sdk-tools,tg-msft/azure-sdk-tools,tg-msft/azure-sdk-tools,tg-msft/azure-sdk-tools,tg-msft/azure-sdk-tools,tg-msft/azure-sdk-tools | src/dotnet/APIView/APIViewWeb/Pages/Assemblies/ReviewLayout.cshtml | src/dotnet/APIView/APIViewWeb/Pages/Assemblies/ReviewLayout.cshtml | @{
Layout = "Shared/_Layout";
var id = ViewContext.RouteData.Values["id"];
}
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link @ActivePageClass("api")" asp-page="Review" asp-route-id="@id">API</a>
</li>
<li class="nav-item">
<a class="nav-link @ActivePageClass("revi... | @{
Layout = "Shared/_Layout";
}
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link @ActivePageClass("api")" asp-page="Review">API</a>
</li>
<li class="nav-item">
<a class="nav-link @ActivePageClass("revisions")" asp-page="Revisions">Revisions</a>
</li>
</ul>
@functi... | mit | C# |
0c540537c9f3dde85e4ac74718be9d71a07c19b1 | Revert "Add BackgroundSource.Seasonal" | ppy/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu | osu.Game/Configuration/BackgroundSource.cs | osu.Game/Configuration/BackgroundSource.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.Configuration
{
public enum BackgroundSource
{
Skin,
Beatmap
}
}
| // 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.Configuration
{
public enum BackgroundSource
{
Skin,
Beatmap,
Seasonal
}
}
| mit | C# |
ef4724a43158ecee99beb126823a7497d31e3137 | Adjust task to base class changes | mono-soc-2012/Tasque,mono-soc-2012/Tasque,mono-soc-2012/Tasque | src/Addins/DummyBackend/DummyTask.cs | src/Addins/DummyBackend/DummyTask.cs | // DummyTask.cs created with MonoDevelop
// User: boyd at 8:50 PM 2/10/2008
//
// DummyTask.cs
//
// Author:
// Antonius Riha <antoniusriha@gmail.com>
//
// Copyright (c) 2012 Antonius Riha
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated d... | // DummyTask.cs created with MonoDevelop
// User: boyd at 8:50 PM 2/10/2008
//
// DummyTask.cs
//
// Author:
// Antonius Riha <antoniusriha@gmail.com>
//
// Copyright (c) 2012 Antonius Riha
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated d... | mit | C# |
e8987fdc17d726ad4f3cac3be0120319cb8057b6 | Swap out IgnoreLayerCollisions for new custom version. | cmilr/Unity2D-Components,jguarShark/Unity2D-Components | Game/GameInit.cs | Game/GameInit.cs | using UnityEngine;
using System.Collections;
using DG.Tweening;
using Matcha.Lib;
public class GameInit : MonoBehaviour
{
void Awake()
{
// seed Random with current seconds;
Random.seed = (int)System.DateTime.Now.Ticks;
// initialize DOTween before first use.
DOTween.Init(true, true, LogBehaviour.Verbose).... | using UnityEngine;
using System.Collections;
using DG.Tweening;
public class GameInit : MonoBehaviour
{
void Awake()
{
// seed Random with current seconds;
Random.seed = (int)System.DateTime.Now.Ticks;
// initialize DOTween before first use.
DOTween.Init(true, true, LogBehaviour.Verbose).SetCapacity(200, 1... | mit | C# |
fa71a8d698df216b625391198b726e06b5232459 | Remove unnecessary null validator check (#23675) | ptoonen/corefx,Jiayili1/corefx,wtgodbe/corefx,Jiayili1/corefx,shimingsg/corefx,Ermiar/corefx,ViktorHofer/corefx,mazong1123/corefx,seanshpark/corefx,parjong/corefx,ericstj/corefx,fgreinacher/corefx,mazong1123/corefx,tijoytom/corefx,MaggieTsang/corefx,BrennanConroy/corefx,ravimeda/corefx,mazong1123/corefx,ravimeda/corefx... | src/System.Net.Http/src/System/Net/Http/Headers/ObjectCollection.cs | src/System.Net.Http/src/System/Net/Http/Headers/ObjectCollection.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
namespace System.... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace System.Net.Http.Headers
{
// ... | mit | C# |
9a180c1685c85bf8d962bef329f32258b2cbeca1 | Update src/Umbraco.Web.Common/DependencyInjection/StaticServiceProvider.cs | JimBobSquarePants/Umbraco-CMS,arknu/Umbraco-CMS,dawoe/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,robertjf/Umbraco-CMS,umbraco/Umbraco-CMS,umbraco/Umbraco-CMS,KevinJump/Umbraco-CMS,arknu/Umbraco-CMS,dawoe/Umbraco-CMS,abjerner/Umbraco-CMS,dawoe/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,marcemarc/Umbraco-CMS,a... | src/Umbraco.Web.Common/DependencyInjection/StaticServiceProvider.cs | src/Umbraco.Web.Common/DependencyInjection/StaticServiceProvider.cs | using System;
using System.ComponentModel;
namespace Umbraco.Cms.Web.Common.DependencyInjection
{
/// <summary>
/// INTERNAL Service locator. Should only be used if no other ways exist.
/// </summary>
/// <remarks>
/// It is created with only two goals in mind
/// 1) Continue to have the same ... | using System;
using System.ComponentModel;
namespace Umbraco.Cms.Web.Common.DependencyInjection
{
/// <summary>
/// INTERNAL Service locator. Should only be used if no other ways exist.
/// </summary>
/// <remarks>
/// It is created with only two goals in mind
/// 1) Continue to have the same ... | mit | C# |
645e280cb5f68aa557ec3e302d1b3b4412b9c40b | Update AssemblyInfo.cs | Zyntax9/HOPLInterpreter | src/InternalTest/Properties/AssemblyInfo.cs | src/InternalTest/Properties/AssemblyInfo.cs | using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
[assembly: Guid("6f06fb74-6266-4e64-b430-27876613528f")]
| using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfigurat... | mit | C# |
412e778e002dc68449553603bc7e86ba7f9f7d4c | add pragma to nocache | nexbit/IdentityManager,Ernesto99/IdentityManager,IdentityManager/IdentityManager,nexbit/IdentityManager,alibad/IdentityManager.vNext,alibad/IdentityManager.vNext,jerryhuffman/IdentityManager,jerryhuffman/IdentityManager,nexbit/IdentityManager,jerryhuffman/IdentityManager,alibad/IdentityManager.vNext,Ernesto99/IdentityM... | source/Core/Api/Filters/NoCacheAttribute.cs | source/Core/Api/Filters/NoCacheAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http.Filters;
namespace Thinktecture.IdentityManager.Core.Api.Filters
{
class NoCacheAttribute : ActionFilterAttribute
{
public override void OnActionExecuted(HttpAction... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http.Filters;
namespace Thinktecture.IdentityManager.Core.Api.Filters
{
class NoCacheAttribute : ActionFilterAttribute
{
public override void OnActionExecuted(HttpAction... | apache-2.0 | C# |
8362d2508b9368acafcb1f30c4abe16515644be4 | Update DeleteSkillCommandHandler.cs | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.BusinessLayer/CommandHandlers/DeleteSkillCommandHandler.cs | NinjaHive.BusinessLayer/CommandHandlers/DeleteSkillCommandHandler.cs | using NinjaHive.Contract.Commands;
using NinjaHive.Core;
using NinjaHive.Domain;
namespace NinjaHive.BusinessLayer.CommandHandlers
{
public class DeleteSkillCommandHandler
: ICommandHandler<DeleteSkillCommand>
{
private readonly IRepository<SkillEntity> skillEntityRepository;
public D... | using NinjaHive.Contract.Commands;
using NinjaHive.Core;
using NinjaHive.Domain;
namespace NinjaHive.BusinessLayer.CommandHandlers
{
public class DeleteSkillCommandHandler
: ICommandHandler<DeleteSkillCommand>
{
private readonly IRepository<SkillEntity> skillEntityRepository;
public D... | apache-2.0 | C# |
c86c378198adbdd0faf01458d21ea1737d4e8905 | Make the context and verb menus visible through walls for ghosts (#2415) | space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14 | Content.Shared/GameObjects/Verbs/SharedVerbSystem.cs | Content.Shared/GameObjects/Verbs/SharedVerbSystem.cs | #nullable enable
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Content.Shared.Physics;
using Content.Shared.Utility;
using Robust.Shared.GameObjects;
using Robust.Shared.GameObjects.Components.Eye;
using Robust.Shared.GameObjects.Systems;
using Robust.Shared.Interface... | #nullable enable
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Content.Shared.Physics;
using Content.Shared.Utility;
using Robust.Shared.GameObjects;
using Robust.Shared.GameObjects.Systems;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Map;
using Ro... | mit | C# |
b3d35c717d02c8c4ebf12a0fbf9d83e6748b867f | Initialize LogoutAuthCommand with an IAccessTokenConfiguration | appharbor/appharbor-cli | src/AppHarbor/Commands/LogoutAuthCommand.cs | src/AppHarbor/Commands/LogoutAuthCommand.cs | using System;
namespace AppHarbor.Commands
{
[CommandHelp("Logout of AppHarbor")]
public class LogoutAuthCommand : ICommand
{
private readonly IAccessTokenConfiguration _accessTokenConfiguration;
public LogoutAuthCommand(IAccessTokenConfiguration accessTokenConfiguration)
{
_accessTokenConfiguration = ac... | using System;
namespace AppHarbor.Commands
{
[CommandHelp("Logout of AppHarbor")]
public class LogoutAuthCommand : ICommand
{
private readonly AccessTokenConfiguration _accessTokenConfiguration;
public LogoutAuthCommand(AccessTokenConfiguration accessTokenConfiguration)
{
_accessTokenConfiguration = acce... | mit | C# |
7b28451e3d872d03fac0411e189da2642a0426a2 | Improve warning message for user | NeoAdonis/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu | osu.Game/Localisation/LayoutSettingsStrings.cs | osu.Game/Localisation/LayoutSettingsStrings.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.Localisation;
namespace osu.Game.Localisation
{
public static class LayoutSettingsStrings
{
private const string prefix = @"osu.Game.... | // 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.Localisation;
namespace osu.Game.Localisation
{
public static class LayoutSettingsStrings
{
private const string prefix = @"osu.Game.... | mit | C# |
343203a2c433116df79d9a46a86eedf3691d522f | Update StevenThewissen.cs | stvansolano/planetxamarin,planetxamarin/planetxamarin,stvansolano/planetxamarin,stvansolano/planetxamarin,beraybentesen/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin,beraybentesen/planetxamarin,MabroukENG/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin,planetxamarin/planetxamarin... | src/Firehose.Web/Authors/StevenThewissen.cs | src/Firehose.Web/Authors/StevenThewissen.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class StevenThewissen : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Steven";
public st... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class StevenThewissen : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Steven";
public st... | mit | C# |
ded02aaa3ddd29eec6c7743eebe7998534178fe5 | send exception to view | ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth | GalleryMVC_With_Auth/Controllers/ErrorsController.cs | GalleryMVC_With_Auth/Controllers/ErrorsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace GalleryMVC_With_Auth.Controllers
{
public class ErrorsController : Controller
{
// GET: Errors
public ActionResult Index()
{
var error = Server.GetLastError(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace GalleryMVC_With_Auth.Controllers
{
public class ErrorsController : Controller
{
// GET: Errors
public ActionResult Index()
{
var error = Server.GetLastError(... | apache-2.0 | C# |
3f5fe0f7108a6fc8e1bb9ce71049ebc41dac834a | Implement InvokeMethod method | sakapon/Samples-2017 | ProxySample/CrossCuttingConsole/CrossCuttingProxy.cs | ProxySample/CrossCuttingConsole/CrossCuttingProxy.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Activation;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Proxies;
namespace CrossCuttingConsole
{
public class CrossCuttingP... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Activation;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Proxies;
namespace CrossCuttingConsole
{
public class CrossCuttingProxy : RealProxy
{
... | mit | C# |
c4a528d6a4e565c41d7490a59f59148690fe0f54 | Fix operation on wrong node | ozim/CakeStuff | ReverseWords/SearchingBinaryTree/BinarySearchTree.cs | ReverseWords/SearchingBinaryTree/BinarySearchTree.cs | namespace SearchingBinaryTree
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class BinarySearchTree
{
public Node Root { get; private set; }
public void Add(Node node) {
if(Root!=null) {
... | namespace SearchingBinaryTree
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class BinarySearchTree
{
public Node Root { get; private set; }
public void Add(Node node) {
if(Root!=null) {
... | apache-2.0 | C# |
02310d2555bccacd2b3410a163a4d1dc688b0636 | Add override to test migration, so it happens every time | jackawatts/ionfar-sharepoint-migration,jackawatts/ionfar-sharepoint-migration,sgryphon/ionfar-sharepoint-migration,sgryphon/ionfar-sharepoint-migration | src/TestApplication/Migrations/ShowTitle.cs | src/TestApplication/Migrations/ShowTitle.cs | using System;
using IonFar.SharePoint.Migration;
using Microsoft.SharePoint.Client;
namespace TestApplication.Migrations
{
[Migration(10001, true)]
public class ShowTitle : IMigration
{
public void Up(ClientContext clientContext, ILogger logger)
{
clientContext.Load(clientConte... | using System;
using IonFar.SharePoint.Migration;
using Microsoft.SharePoint.Client;
namespace TestApplication.Migrations
{
[Migration(10001)]
public class ShowTitle : IMigration
{
public void Up(ClientContext clientContext, ILogger logger)
{
clientContext.Load(clientContext.Web... | mit | C# |
7e15b1c932bb96c2b4b99a17f526b9953a5fea2b | Update AssemblyRedirects.cs | ErikSchierboom/roslyn,Hosch250/roslyn,CyrusNajmabadi/roslyn,bkoelman/roslyn,reaction1989/roslyn,MattWindsor91/roslyn,gafter/roslyn,AnthonyDGreen/roslyn,paulvanbrenk/roslyn,orthoxerox/roslyn,jkotas/roslyn,weltkante/roslyn,jaredpar/roslyn,mattscheffer/roslyn,AlekseyTs/roslyn,wvdd007/roslyn,a-ctor/roslyn,DustinCampbell/ro... | src/VisualStudio/Setup/AssemblyRedirects.cs | src/VisualStudio/Setup/AssemblyRedirects.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio.Shell;
using Roslyn.VisualStudio.Setup;
[assembly: ProvideRoslynBindingRedirection("Microsoft.CodeAnalysis.CSharp.dll")]
[assemb... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio.Shell;
using Roslyn.VisualStudio.Setup;
[assembly: ProvideRoslynBindingRedirection("Microsoft.CodeAnalysis.CSharp.dll")]
[assemb... | mit | C# |
c426e58de051d67a7e2c2bc2eb1e772bd3ba7123 | Update font-awesome | martincostello/website,martincostello/website,martincostello/website,martincostello/website | src/Website/Pages/Shared/_StylesBody.cshtml | src/Website/Pages/Shared/_StylesBody.cshtml | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.2.2/flatly/bootstrap.min.css" integrity="sha512-5XWhNNAvuliE7/RYnDpQOUwyC1HdX3FD5EF7y1S3m9OOHQYd2Utgczi+Cgoh/3KInNkdvnZ9j2q/h9FK6Nbdng==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cl... | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.2.2/flatly/bootstrap.min.css" integrity="sha512-5XWhNNAvuliE7/RYnDpQOUwyC1HdX3FD5EF7y1S3m9OOHQYd2Utgczi+Cgoh/3KInNkdvnZ9j2q/h9FK6Nbdng==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cl... | apache-2.0 | C# |
0f3a70d1068c7fbd35c79a59c61250392a852bdf | remove '_' from auto property naming in netframework classic | trenoncourt/AutoQueryable | src/AutoQueryable/Extensions/TypeBuilderExtension.cs | src/AutoQueryable/Extensions/TypeBuilderExtension.cs | using System;
using System.Reflection;
using System.Reflection.Emit;
namespace AutoQueryable.Extensions
{
public static class TypeBuilderExtension
{
private static void AddProperty(this TypeBuilder typeBuilder, string propName, PropertyAttributes attributes, Type propertyType) {
const Meth... | using System;
using System.Reflection;
using System.Reflection.Emit;
namespace AutoQueryable.Extensions
{
public static class TypeBuilderExtension
{
private static void AddProperty(this TypeBuilder typeBuilder, string propName, PropertyAttributes attributes, Type propertyType) {
const Meth... | mit | C# |
e6c470de3f772c6bd35ef32e255b4d16dad7ef98 | Remove RegexOptions.Compiled for code paths executed during cold start | Azure/azure-webjobs-sdk,Azure/azure-webjobs-sdk | src/Microsoft.Azure.WebJobs/FunctionNameAttribute.cs | src/Microsoft.Azure.WebJobs/FunctionNameAttribute.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Text.RegularExpressions;
namespace Microsoft.Azure.WebJobs
{
/// <summary>
/// Attribute used to indicate the name to use for a job... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Text.RegularExpressions;
namespace Microsoft.Azure.WebJobs
{
/// <summary>
/// Attribute used to indicate the name to use for a job... | mit | C# |
338cbfb18d85dbd5bfc24b84526d05ae14529340 | Bump minor version number | hartez/TodotxtTouch.WindowsPhone | TodotxtTouch.WindowsPhone/Properties/AssemblyInfo.cs | TodotxtTouch.WindowsPhone/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
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("TodotxtTouch.Wind... | using System.Reflection;
using System.Resources;
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("TodotxtTouch.Wind... | mit | C# |
834ca7c33f8daf37e6f02fe53230396ee9a7f98e | Add link on home page back to GitHub repo | johnnyreilly/jQuery.Validation.Unobtrusive.Native,johnnyreilly/jQuery.Validation.Unobtrusive.Native,senzacionale/jQuery.Validation.Unobtrusive.Native,johnnyreilly/jQuery.Validation.Unobtrusive.Native | jVUNDemo/Views/Home/Index.cshtml | jVUNDemo/Views/Home/Index.cshtml | <h3>What is jQuery Validation Unobtrusive Native?</h3>
<p>jQuery Validation Unobtrusive Native is a collection of ASP.Net MVC HTML helper extensions. These make use of jQuery Validation's native support for validation driven by HTML 5 data attributes. Microsoft shipped <a href="http://bradwilson.typepad.com/blog/201... | <h3>What is jQuery Validation Unobtrusive Native?</h3>
<p>jQuery Validation Unobtrusive Native is a collection of ASP.Net MVC HTML helper extensions. These make use of jQuery Validation's native support for validation driven by HTML 5 data attributes. Microsoft shipped <a href="http://bradwilson.typepad.com/blog/201... | mit | C# |
9d74775ad68690ee93c4ff8cd5e918b93221f462 | refactor for generalizing 3div to fiz | hyrmn/Katas | FizzBuzz/FizzBuzz.csx | FizzBuzz/FizzBuzz.csx | using Shouldly;
var fixie = Require<FixieRunner>();
fixie.RunAllTests();
public class Fizzer
{
public string Answer(int number)
{
if(number % 3 == 0)
{
return "fizz";
}
return number.ToString();
}
}
public class FizzerTests
{
private readonly Fizzer fizzer = new Fizzer();
public void Fizzed_1_r... | using Shouldly;
var fixie = Require<FixieRunner>();
fixie.RunAllTests();
public class Fizzer
{
public string Answer(int number)
{
if(number == 3 || number == 6)
{
return "fizz";
}
return number.ToString();
}
}
public class FizzerTests
{
private readonly Fizzer fizzer = new Fizzer();
public void... | unlicense | C# |
8dec5e28862035b729492a94c44ab0404b64eae6 | support in proc authentication | opinum/opisense-sample-dotnet-console | opisense-sample-dotnet-console/Authenticator.cs | opisense-sample-dotnet-console/Authenticator.cs | using System;
using System.Configuration;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using IdentityModel.Client;
namespace opisense_sample_dotnet_console
{
public class Authenticator
{
private static readonly string IdentityServer = ConfigurationManager.AppSettings["Opisens... | using System;
using System.Configuration;
using System.Net.Http;
using System.Threading.Tasks;
using IdentityModel.Client;
namespace opisense_sample_dotnet_console
{
public class Authenticator
{
private static readonly string IdentityServer = ConfigurationManager.AppSettings["OpisenseIdentity"];
... | mit | C# |
c473e819d3f5cf1d7d4fbe3c77d6ec55816e4dd4 | update CopySheet in xssf | antony-liu/npoi,tonyqus/npoi | examples/xssf/CopySheet/Program.cs | examples/xssf/CopySheet/Program.cs | using System;
using System.IO;
using NPOI.HSSF.UserModel;
using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;
namespace CopySheet
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World! Please Wait while processing...");
//Excel worksheet com... | using System;
using System.IO;
using NPOI.XSSF.UserModel;
namespace CopySheet
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World! Please Wait while processing...");
//Excel worksheet combine example
//Note: This example does n... | apache-2.0 | C# |
a5b5b1bbc61e8f5d430f541f792d5463637303d3 | fix method casing | ChrisMissal/Quiche,ChrisMissal/Quiche | src/Quiche/PropertyBuilder.cs | src/Quiche/PropertyBuilder.cs | namespace Quiche
{
using System.Linq;
using Settings;
internal class PropertyBuilder
{
private readonly FieldBuilder _fieldBuilder = new FieldBuilder();
private readonly FieldConverter _converter;
internal PropertyBuilder(BuilderSettings settings)
{
_convert... | namespace Quiche
{
using System.Linq;
using Settings;
internal class PropertyBuilder
{
private readonly FieldBuilder _fieldBuilder = new FieldBuilder();
private readonly FieldConverter _converter;
internal PropertyBuilder(BuilderSettings settings)
{
_convert... | mit | C# |
c94cff96474a7d04d2a338d881123d77301bfa74 | Update AttachmentSubType.cs | smartsheet-platform/smartsheet-csharp-sdk,smartsheet-platform/smartsheet-csharp-sdk | main/Smartsheet/Api/Models/AttachmentSubType.cs | main/Smartsheet/Api/Models/AttachmentSubType.cs | // #[license]
// SmartsheetClient SDK for C#
// %%
// Copyright (C) 2014 SmartsheetClient
// %%
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | // #[license]
// SmartsheetClient SDK for C#
// %%
// Copyright (C) 2014 SmartsheetClient
// %%
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | apache-2.0 | C# |
9486f93f49e203fc75abeddf649cd1ed04650622 | bump version to experimental 7 | Dalet/140-speedrun-timer,Dalet/140-speedrun-timer,Dalet/140-speedrun-timer | SharedAssemblyInfo.cs | SharedAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("0.7.3.7")]
[assembly: AssemblyFileVersion("0.7.3.7")]
| using System.Reflection;
[assembly: AssemblyVersion("0.7.3.6")]
[assembly: AssemblyFileVersion("0.7.3.6")]
| unlicense | C# |
3ab7c9f18b6621f77200e5d9eaa4a03297d72029 | Add Articles rep into DI scope | AustinFelipe/website,AustinFelipe/website,AustinFelipe/website | src/Startup.cs | src/Startup.cs | using AustinSite.Repositories;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace AustinSite
{
public class Startup
{
public Startup(IH... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace AustinSite
{
public class Startup
{
public Startup(IHostingEnvironment env)
... | mit | C# |
1f5df69d936a8992c437fd4e22b9dcceacb3e74f | Update GeraldVersluis.cs (#695) | planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin | src/Firehose.Web/Authors/GeraldVersluis.cs | src/Firehose.Web/Authors/GeraldVersluis.cs | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class GeraldVersluis : IWorkAtXamarinOrMicrosoft
{
public string FirstName => "Gerald";
public string LastName => "Versluis";
public string StateOrRegion => "The N... | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class GeraldVersluis : IWorkAtXamarinOrMicrosoft
{
public string FirstName => "Gerald";
public string LastName => "Versluis";
public string StateOrRegion => "The N... | mit | C# |
10257353c3cd2d7edcca40d300c5b627fb43f937 | Update ConfigReader.cs | AnkRaiza/cordova-plugin-config-reader,AnkRaiza/cordova-plugin-config-reader,AnkRaiza/cordova-plugin-config-reader | src/wp8/ConfigReader.cs | src/wp8/ConfigReader.cs | using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using Microsoft.Phone.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
using Windows.Storage;
using System.Diagnostics;
using System.IO;
namespace WPCordovaClassLib.Cordova.Commands
{
pub... | using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using Microsoft.Phone.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
using Windows.Storage;
using System.Diagnostics;
using System.IO;
namespace WPCordovaClassLib.Cordova.Commands
{
pub... | mit | C# |
398690c960bbe7c82ff42a6506ef7112894703b7 | Initialize UnlinkAppCommand with a TextWriter | appharbor/appharbor-cli | src/AppHarbor/Commands/UnlinkAppCommand.cs | src/AppHarbor/Commands/UnlinkAppCommand.cs | using System;
using System.IO;
namespace AppHarbor.Commands
{
[CommandHelp("Unlink application from directory", alias: "unlink")]
public class UnlinkAppCommand : ICommand
{
private readonly IApplicationConfiguration _applicationConfiguration;
private readonly TextWriter _writer;
public UnlinkAppCommand(IApp... | using System;
namespace AppHarbor.Commands
{
[CommandHelp("Unlink application from directory", alias: "unlink")]
public class UnlinkAppCommand : ICommand
{
private readonly IApplicationConfiguration _applicationConfiguration;
public UnlinkAppCommand(IApplicationConfiguration applicationConfiguration)
{
_... | mit | C# |
1f3bf28b9204c20d411f74e1684e93dbdf0d1d9f | Add required params for merges | nmklotas/GitLabCLI | src/GitlabCmd.Console/Cmd/CreateOptions.cs | src/GitlabCmd.Console/Cmd/CreateOptions.cs | using System.Collections.Generic;
using CommandLine;
namespace GitlabCmd.Console.Cmd
{
[Verb("create", HelpText = "Commands: issue, merge. Run create [command] to learn more.")]
[SubVerbs(
typeof(CreateMergeRequestOptions),
typeof(CreateIssueOptions))]
public abstract class CreateOptions :... | using System.Collections.Generic;
using CommandLine;
namespace GitlabCmd.Console.Cmd
{
[Verb("create", HelpText = "Commands: issue, merge. Run create [command] to learn more.")]
[SubVerbs(
typeof(CreateMergeRequestOptions),
typeof(CreateIssueOptions))]
public abstract class CreateOptions :... | mit | C# |
78a10d9c20d2284e2848534c82447d7c7fa604a0 | Add retry logic for test clean up | OmniSharp/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn | tests/TestUtility/TestAssets.TestProject.cs | tests/TestUtility/TestAssets.TestProject.cs | using System;
using System.Threading;
namespace TestUtility
{
public partial class TestAssets
{
private class TestProject : ITestProject
{
private bool _disposed;
public string Name { get; }
public string BaseDirectory { get; }
public string Dir... | using System;
namespace TestUtility
{
public partial class TestAssets
{
private class TestProject : ITestProject
{
private bool _disposed;
public string Name { get; }
public string BaseDirectory { get; }
public string Directory { get; }
... | mit | C# |
9e3cd857025d0c7da06b9bfc1ae183e970aef8ae | Rename 'header', 'body' to 'tableHeader', 'tableBody' in Examples AST | moreirap/gherkin3,araines/gherkin3,SabotageAndi/gherkin,araines/gherkin3,araines/gherkin3,chebizarro/gherkin3,chebizarro/gherkin3,dirkrombauts/gherkin3,cucumber/gherkin3,amaniak/gherkin3,amaniak/gherkin3,chebizarro/gherkin3,curzona/gherkin3,dg-ratiodata/gherkin3,pjlsergeant/gherkin,dg-ratiodata/gherkin3,thiblahute/gher... | Gherkin/Ast/Examples.cs | Gherkin/Ast/Examples.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Gherkin.Ast
{
public class Examples : IHasLocation, IHasDescription, IHasRows, IHasTags
{
public IEnumerable<Tag> Tags { get; private set; }
public Location Location { get; private set; }
public stri... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Gherkin.Ast
{
public class Examples : IHasLocation, IHasDescription, IHasRows, IHasTags
{
public IEnumerable<Tag> Tags { get; private set; }
public Location Location { get; private set; }
public stri... | mit | C# |
de1a2ad19632ffecbdc34672e2f4dc0c47556031 | fix Enums.State access modifier | HearthSim/HearthDb | HearthDb/Enums/State.cs | HearthDb/Enums/State.cs | namespace HearthDb.Enums
{
public enum State
{
INVALID = 0,
LOADING = 1,
RUNNING = 2,
COMPLETE = 3
}
} | namespace HearthDb.Enums
{
internal enum State
{
INVALID = 0,
LOADING = 1,
RUNNING = 2,
COMPLETE = 3
}
} | mit | C# |
9810617eea482bbf2fb62c683ba265f047d21506 | Fix broken tests | amironov73/ManagedIrbis2,amironov73/ManagedIrbis2 | Source/UnitTests/ManagedIrbis/Direct/XrfFile64Test.cs | Source/UnitTests/ManagedIrbis/Direct/XrfFile64Test.cs | using System;
using System.IO;
using AM;
using AM.IO;
using JetBrains.Annotations;
using ManagedIrbis;
using ManagedIrbis.Direct;
using Microsoft.VisualStudio.TestTools.UnitTesting;
// ReSharper disable UseObjectOrCollectionInitializer
namespace UnitTests.ManagedIrbis.Direct
{
[TestClass]
public class Xr... | using System;
using System.IO;
using AM;
using AM.IO;
using JetBrains.Annotations;
using ManagedIrbis;
using ManagedIrbis.Direct;
using Microsoft.VisualStudio.TestTools.UnitTesting;
// ReSharper disable UseObjectOrCollectionInitializer
namespace UnitTests.ManagedIrbis.Direct
{
[TestClass]
public class Xr... | mit | C# |
7938528070d5d1af2c3c186999f26c493b76367d | Move EditorBrowsable to class level | telerik/JustMockLite | Telerik.JustMock/Core/Context/AsyncContextResolver.cs | Telerik.JustMock/Core/Context/AsyncContextResolver.cs | /*
JustMock Lite
Copyright © 2019 Progress Software Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | /*
JustMock Lite
Copyright © 2019 Progress Software Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | apache-2.0 | C# |
ecd03b8bb358954ff85b78ebaaa86de841fbdcb9 | Use latest xmldocmd to fix publish. | ejball/ArgsReading | 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("ejball", Environment.GetEnvironm... | 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("ejball", Environment.GetEnvironm... | mit | C# |
ac0fe4952b66b7c88c3fb594a54a7fc097f94f6a | Fix ValidateBuildEnvironment task to work on multiple OSes (#24765) | mattscheffer/roslyn,wvdd007/roslyn,bartdesmet/roslyn,shyamnamboodiripad/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,CyrusNajmabadi/roslyn,VSadov/roslyn,stephentoub/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,tmeschter/roslyn,bartdesmet/roslyn,dotnet/roslyn,bkoelman/roslyn,AlekseyTs/roslyn,mgoertz-msft/roslyn,davkea... | src/Tools/BuildUtil/ValidateBuildEnvironment.cs | src/Tools/BuildUtil/ValidateBuildEnvironment.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Roslyn.MSBuild.Util
{
public sealed class ValidateBuildEnvironment : Task
{
[Required]
public string MSBuild... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Roslyn.MSBuild.Util
{
public sealed class ValidateBuildEnvironment : Task
{
[Required]
public string MSBuild... | mit | C# |
bbc80f7fc77ad72309c998fa7158d84e07bed4cd | Fix crash on user details | leotsarev/joinrpg-net,kirillkos/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net | Joinrpg/Models/UserProfileViewModel.cs | Joinrpg/Models/UserProfileViewModel.cs | using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using JoinRpg.DataModel;
using JoinRpg.Domain;
namespace JoinRpg.Web.Models
{
public class UserProfileViewModel
{
public string DisplayName { get; set; }
public IEnumerable<Proje... | using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using JoinRpg.DataModel;
using JoinRpg.Domain;
namespace JoinRpg.Web.Models
{
public class UserProfileViewModel
{
public string DisplayName { get; set; }
public IEnumerable<Proje... | mit | C# |
01f5225916143b9f86409e3c303997a6fe37a538 | Tweak NuGet TFM. | MatthewKing/DeviceId | build/build.cake | build/build.cake | var target = Argument("target", "Finalize");
var configuration = Argument("configuration", "Release");
var workingDir = Directory("./temp").Path.MakeAbsolute(Context.Environment);
var outputDir = Directory("./output").Path.MakeAbsolute(Context.Environment);
Task("Clean")
.Does(() =>
{
CleanDirectory(wo... | var target = Argument("target", "Finalize");
var configuration = Argument("configuration", "Release");
var workingDir = Directory("./temp").Path.MakeAbsolute(Context.Environment);
var outputDir = Directory("./output").Path.MakeAbsolute(Context.Environment);
Task("Clean")
.Does(() =>
{
CleanDirectory(wo... | mit | C# |
3a69f1ce24c7250dddb4b8c8a75de089b55c8090 | Fix for Issue 10, bug was caused by not blanking the parameters string if there was nothing left in ParameterList after the command was removed. | MatthewCox/MoronBot,MatthewCox/MoronBot,MatthewCox/MoronBot,MatthewCox/MoronBot,MatthewCox/MoronBot | src/BotMessage.cs | src/BotMessage.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using CwIRC;
namespace MoronBot
{
class BotMessage : CwIRC.IRCMessage
{
string parameters;
public string Parameters
{
get { return parameters; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using CwIRC;
namespace MoronBot
{
class BotMessage : CwIRC.IRCMessage
{
string parameters;
public string Parameters
{
get { return parameters; }
... | mit | C# |
358dd07b2ad813495e5e2c42c9816e77c0b6bb2e | Fix silent failure by using Id for dictionary since multiple pages could have the same title (#947) | PowerShell/PowerShellEditorServices | src/PowerShellEditorServices.VSCode/CustomViews/CustomViewFeature.cs | src/PowerShellEditorServices.VSCode/CustomViews/CustomViewFeature.cs | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
using Microsoft.... | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
using Microsoft.... | mit | C# |
3af83ae6352931099e871860a6d75a927dbfaf32 | remove commented code | RadicalFx/radical | src/Radical/ComponentModel/Container/ComponentRegisteredEventArgs.cs | src/Radical/ComponentModel/Container/ComponentRegisteredEventArgs.cs | using System;
namespace Radical.ComponentModel
{
/// <summary>
/// Defines event arguments for the ComponentRegistered event.
/// </summary>
public class ComponentRegisteredEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="ComponentRegisteredEve... | using System;
namespace Radical.ComponentModel
{
/// <summary>
/// Defines event arguments for the ComponentRegistered event.
/// </summary>
public class ComponentRegisteredEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="ComponentRegisteredEve... | mit | C# |
ecff24089c32df35923041077d89bb85758b9c4b | Bump version to 8.7.0 | KevinJump/Umbraco-CMS,abjerner/Umbraco-CMS,abryukhov/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,tcmorris/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,abryukhov/Umbraco-CMS,dawoe/Umbraco-CMS,tcmorris/Umbraco-CMS,KevinJump/Umbraco-CMS,arknu/Umbraco-CMS,madsoulswe/Umbraco-CMS,umbraco/Umbraco-CMS,robertjf/Umbraco... | src/SolutionInfo.cs | src/SolutionInfo.cs | using System.Reflection;
using System.Resources;
[assembly: AssemblyCompany("Umbraco")]
[assembly: AssemblyCopyright("Copyright © Umbraco 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en-US")]
// versions
// read https://stackoverflow.com/questions/64... | using System.Reflection;
using System.Resources;
[assembly: AssemblyCompany("Umbraco")]
[assembly: AssemblyCopyright("Copyright © Umbraco 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en-US")]
// versions
// read https://stackoverflow.com/questions/64... | mit | C# |
cd52d785d4e0f0aec88fb580f0180ecd193a1293 | Add second test for interpolation accuracy | peppy/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-fram... | osu.Framework.Tests/Clocks/InterpolatingClockTest.cs | osu.Framework.Tests/Clocks/InterpolatingClockTest.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;
using NUnit.Framework;
using osu.Framework.MathUtils;
using osu.Framework.Timing;
namespace osu.Framework.Tests.Clocks
{
[TestFixture]
pu... | // 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;
using NUnit.Framework;
using osu.Framework.Timing;
namespace osu.Framework.Tests.Clocks
{
[TestFixture]
public class InterpolatingClockTe... | mit | C# |
971e46c17981e6cb368069ea4b354e34d353733c | enable console write | zdjohn/asyncpipetosample | AsyncRpcEmulator/AsyncCallEmulator.cs | AsyncRpcEmulator/AsyncCallEmulator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsyncRpcEmulator
{
public class AsyncCallEmulator
{
private readonly int _min = 20;
private readonly int _max = 500;
private static Random random = new Random()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsyncRpcEmulator
{
public class AsyncCallEmulator
{
private readonly int _min = 20;
private readonly int _max = 500;
private static Random random = new Random()... | mit | C# |
2f56b8d8441b2125faed971a77870961aa6b3f12 | Remove extraneous class from CustomViewModel | mrattner/chchbus | ChchBus/ViewModels/CustomViewModel.cs | ChchBus/ViewModels/CustomViewModel.cs | using GalaSoft.MvvmLight;
namespace ChchBus {
/// <summary>
/// Adds some extra functionality to the base ViewModel class.
/// </summary>
class CustomViewModel : ViewModelBase {
/// <summary>
/// True if data is currently being loaded
/// </summary>
private bool isLoading = false;
public virtual bool Is... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
namespace ChchBus {
/// <summary>
/// Adds some extra functionality to the base ViewModel class.
/// </summary>
class Cus... | mit | C# |
6035b354bacf0279315e565706d0c4d8ff8ad9b1 | Update Result.cs | nmarazov/Team-Sazerac | OOPTeamwork/OOPTeamwork/Core/Result.cs | OOPTeamwork/OOPTeamwork/Core/Result.cs | using System;
namespace OOPTeamwork.Core
{
public class Result
{
private int playerOneNumOfWins;
private int playerTwoNumOfWins;
public int PlayerOneNumOfWins
{
get { return playerOneNumOfWins; }
private set { playerOneNumOfWins = value; }
}
... | using System;
namespace OOPTeamwork.Core
{
public class Result
{
private int playerOneNumOfWins;
private int playerTwoNumOfWins;
public int PlayerOneNumOfWins
{
get { return playerOneNumOfWins; }
private set { playerOneNumOfWins = value; }
}
... | mit | C# |
0e7a9b1e8dbfc64c84f3f582596830ac40b5d837 | Update BryceMcDonald.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/BryceMcDonald.cs | src/Firehose.Web/Authors/BryceMcDonald.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 BryceMcDonald : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Bryce";
... | 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 BryceMcDonald : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Bryce";
... | mit | C# |
9616b4b8fd1193161b96f09165906648ded866e1 | fix block in AsyncBlockTest | AspectCore/Lite,AspectCore/AspectCore-Framework,AspectCore/Abstractions,AspectCore/AspectCore-Framework | core/test/AspectCore.Tests/Injector/AsyncBlockTest.cs | core/test/AspectCore.Tests/Injector/AsyncBlockTest.cs | using AspectCore.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace AspectCore.Tests.Injector
{
public class Intercept1 : AbstractInterceptorAttribute
{
public override Task Invoke(AspectContext context, AspectDelegate ... | using AspectCore.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace AspectCore.Tests.Injector
{
public class Intercept1 : AbstractInterceptorAttribute
{
public override Task Invoke(AspectContext context, AspectDelegate ... | mit | C# |
16718d2fd420542b811a5704a2c6d8b1aa35d5c8 | Fix registry | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers | src/SFA.DAS.EmployerUsers.Web/DependencyResolution/DefaultRegistry.cs | src/SFA.DAS.EmployerUsers.Web/DependencyResolution/DefaultRegistry.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DefaultRegistry.cs" company="Web Advanced">
// Copyright 2012 Web Advanced (www.webadvanced.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may n... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DefaultRegistry.cs" company="Web Advanced">
// Copyright 2012 Web Advanced (www.webadvanced.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not u... | mit | C# |
c91f57463b447072ac0458742449b89937e72eb0 | Add Google Ads script | OvidiuCaba/StatisticsRomania,OvidiuCaba/StatisticsRomania,OvidiuCaba/StatisticsRomania,OvidiuCaba/StatisticsRomania | src/WebClient/Views/Shared/_Layout.cshtml | src/WebClient/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-4024802291999001",
enable_page_level_ads: true
});
</script>
<meta charset="utf-8" />
<... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Statistici Romania @ViewData["Title"]</title>
<base href="/" />
<link rel="stylesheet" href="~/dist/vendor.css" asp-append-version="true" />... | mit | C# |
7e94d2af3df8803239ae1c44456814b0e2ad9ef1 | remove warning | ParticularLabs/APIComparer,modernist/APIComparer,ParticularLabs/APIComparer,modernist/APIComparer | ExampleV2/InternalNextVersionClass.cs | ExampleV2/InternalNextVersionClass.cs | namespace Example
{
internal class InternalNextVersionClass
{
#pragma warning disable 169
public string StringField;
#pragma warning restore 169
public string StringProperty { get; set; }
public void Method()
{
}
}
} | namespace Example
{
internal class InternalNextVersionClass
{
public string StringField;
public string StringProperty { get; set; }
public void Method()
{
}
}
} | mit | C# |
3ed1f15a1053ac45e9cbd3f9f3cfe6c15f4abf20 | Use a lower maxTreeLevel precision | mj1856/RavenDB-TimeZones | Raven.TimeZones/ZoneShapesIndex.cs | Raven.TimeZones/ZoneShapesIndex.cs | using System.Linq;
using Raven.Abstractions.Indexing;
using Raven.Client.Indexes;
namespace Raven.TimeZones
{
public class ZoneShapesIndex : AbstractIndexCreationTask<ZoneShape>
{
public ZoneShapesIndex()
{
Map = shapes => from shape in shapes
... | using System.Linq;
using Raven.Client.Indexes;
namespace Raven.TimeZones
{
public class ZoneShapesIndex : AbstractIndexCreationTask<ZoneShape>
{
public ZoneShapesIndex()
{
Map = shapes => from shape in shapes
select new
... | mit | C# |
ae99c6959f0120bfc06da49eceda4f821edc7b20 | Update AssemblyInfo.cs | EmphaticFistGames/Fluky,michaeljbaird/Fluky,EmphaticFist/Fluky,michaeljbaird/Fluky | src/Fluky/Properties/AssemblyInfo.cs | src/Fluky/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfigurati... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfigurati... | mit | C# |
5a2567accd11a2064b4378f97d85f667ec274d46 | Fix the error spelling | edwardinubuntu/Roguelike2D | Assets/Scripts/Player.cs | Assets/Scripts/Player.cs | using UnityEngine;
using System.Collections;
public class Player : MovingObject
{
public int wallDamage = 1;
public int pointsPerFood = 10;
public int pointsPerSoda = 20;
public float restartLevelDelay = 1f;
private Animator animator;
private int food;
// Use this for initialization
protected override voi... | using UnityEngine;
using System.Collections;
public class Player : MovingObject
{
public int wallDamage = 1;
public int pointsPerFood = 10;
public int pointsPerSoda = 20;
public float restartLevelDelay = 1f;
private Animator animator;
private int food;
// Use this for initialization
protected override vo... | mit | C# |
73d8a365d67f775b9dfa9242a9c0e1b68e4e36c2 | Remove debug line | cmdrmcdonald/EliteDangerousDataProvider | SpeechResponder/ShowDiffWindow.xaml.cs | SpeechResponder/ShowDiffWindow.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | apache-2.0 | C# |
5e900e785741a3e51d02237b5acd7f1fbc9d9767 | Add ImportNode() to XmlDocument. | x335/scriptsharp,x335/scriptsharp,nikhilk/scriptsharp,nikhilk/scriptsharp,nikhilk/scriptsharp,x335/scriptsharp | src/Libraries/Web/Xml/XmlDocument.cs | src/Libraries/Web/Xml/XmlDocument.cs | // XmlDocument.cs
// Script#/Libraries/Web
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System.Runtime.CompilerServices;
namespace System.Xml {
/// <summary>
/// Represents the hierarchy of node objects parsed from XML markup.
/// </summary>
[Scr... | // XmlDocument.cs
// Script#/Libraries/Web
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System.Runtime.CompilerServices;
namespace System.Xml {
/// <summary>
/// Represents the hierarchy of node objects parsed from XML markup.
/// </summary>
[Scr... | apache-2.0 | C# |
165f57a3eb0359653fe3d7969aa45f2be755c2fb | Set version 1.2.0 | alexeykuptsov/testo,alexeykuptsov/testo | src/Testo/Properties/AssemblyInfo.cs | src/Testo/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Te... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Te... | mit | C# |
18049e2b7bcbf78554d68bb6009c40e752700909 | increase version | tinohager/Nager.Date,tinohager/Nager.Date,tinohager/Nager.Date | Nager.Date/Properties/AssemblyInfo.cs | Nager.Date/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Na... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Na... | mit | C# |
0337af128c6cbc18eeec93a9d7846a963790441e | Build prerelease nuget package. | rlyczynski/XSerializer,QuickenLoans/XSerializer | XSerializer/Properties/AssemblyInfo.cs | XSerializer/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("XS... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("XS... | mit | C# |
bae4d639a73216b4fb1690ecf5292169a758592c | Fix Price regex | dotnet-architecture/eShopModernizing,dotnet-architecture/eShopModernizing,dotnet-architecture/eShopModernizing,dotnet-architecture/eShopModernizing,dotnet-architecture/eShopModernizing | src/eShopCatalogMVC/Models/CatalogItem.cs | src/eShopCatalogMVC/Models/CatalogItem.cs | using System.ComponentModel.DataAnnotations;
namespace eShopCatalogMVC.Models
{
public class CatalogItem
{
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
// decimal(18,2)
[RegularExpression(@"^\d+(\.\d{0,2})*$", E... | using System.ComponentModel.DataAnnotations;
namespace eShopCatalogMVC.Models
{
public class CatalogItem
{
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
// decimal(18,2)
[RegularExpression(@"^\d+\.\d{0,2}$", Erro... | mit | C# |
483cf64d3d3fdb9e3f2c9eea95200b882c4d7a71 | add FluentInclude<T>.WithLiteModel | signumsoftware/framework,signumsoftware/framework | Signum.Engine/Schema/FluentInclude.cs | Signum.Engine/Schema/FluentInclude.cs |
namespace Signum.Engine.Maps;
public class FluentInclude<T> where T : Entity
{
public SchemaBuilder SchemaBuilder { get; private set; }
public Table Table { get; private set; }
public FluentInclude(Table table, SchemaBuilder schemaBuilder)
{
Table = table;
SchemaBuilder = s... |
namespace Signum.Engine.Maps;
public class FluentInclude<T> where T : Entity
{
public SchemaBuilder SchemaBuilder { get; private set; }
public Table Table { get; private set; }
public FluentInclude(Table table, SchemaBuilder schemaBuilder)
{
Table = table;
SchemaBuilder = s... | mit | C# |
6d027db09562f714a159708affc3f4fee1e5b895 | Update IndexModule.cs | LeedsSharp/AppVeyorDemo | src/AppVeyorDemo/AppVeyorDemo/Modules/IndexModule.cs | src/AppVeyorDemo/AppVeyorDemo/Modules/IndexModule.cs | namespace AppVeyorDemo.Modules
{
using System.Configuration;
using AppVeyorDemo.Models;
using Nancy;
public class IndexModule : NancyModule
{
public IndexModule()
{
Get["/"] = parameters =>
{
var model = new IndexViewModel
{
... | namespace AppVeyorDemo.Modules
{
using System.Configuration;
using AppVeyorDemo.Models;
using Nancy;
public class IndexModule : NancyModule
{
public IndexModule()
{
Get["/"] = parameters =>
{
var model = new IndexViewModel
{
... | apache-2.0 | C# |
613477531ac0509c822295220de1633b78d39919 | Fix update check not async | danielchalmers/SteamAccountSwitcher | SteamAccountSwitcher/AppInitHelper.cs | SteamAccountSwitcher/AppInitHelper.cs | #region
using System;
using System.Threading;
using SteamAccountSwitcher.Properties;
#endregion
namespace SteamAccountSwitcher
{
internal class AppInitHelper
{
public static void Initialize()
{
App.HelperWindow = new HelperWindow();
CheckSingleInstanceStatus();
... | #region
using System;
using System.Threading;
using SteamAccountSwitcher.Properties;
#endregion
namespace SteamAccountSwitcher
{
internal class AppInitHelper
{
public static void Initialize()
{
App.HelperWindow = new HelperWindow();
CheckSingleInstanceStatus();
... | mit | C# |
7c55bf17b5fb2006c36537c5bb5089d9720a3c53 | Update privacy info | GeorgDangl/WebDocu,GeorgDangl/WebDocu,GeorgDangl/WebDocu | src/Dangl.WebDocumentation/Views/Home/Privacy.cshtml | src/Dangl.WebDocumentation/Views/Home/Privacy.cshtml | <h1>Legal Notice & Privacy</h1>
<p>Dangl.<strong>Docu</strong> hosts all documentation and help pages for products and services offered by Dangl<strong>IT</strong> as well as for multiple open source projects.</p>
<p>
This website is operated and hosted by <a href="https://www.dangl-it.com/legal-notice/">Dan... | <h1>Legal Notice & Privacy</h1>
<p>Dangl.<strong>Docu</strong> hosts all documentation and help pages for products and services offered by Dangl<strong>IT</strong> as well as for multiple open source projects.</p>
<p>
This website is operated and hosted by <a href="https://www.dangl-it.com/legal-notice/">Dan... | mit | C# |
a09373721bbb953571c77b1cb55e30333c424c09 | Clean up reading templates from embedded resources. | sjp/Schematic,sjp/Schematic,sjp/Schematic,sjp/SJP.Schema,sjp/Schematic | src/SJP.Schematic.Reporting/Html/TemplateProvider.cs | src/SJP.Schematic.Reporting/Html/TemplateProvider.cs | using System;
using System.IO;
using System.Linq;
using System.Reflection;
using EnumsNET;
using Microsoft.Extensions.FileProviders;
namespace SJP.Schematic.Reporting.Html
{
internal class TemplateProvider : ITemplateProvider
{
public string GetTemplate(ReportTemplate template)
{
i... | using System;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using EnumsNET;
using Microsoft.Extensions.FileProviders;
namespace SJP.Schematic.Reporting.Html
{
internal class TemplateProvider : ITemplateProvider
{
public string GetTemplate(ReportTemplate template)
... | mit | C# |
44ea7cee53973e95b04ca280b45758747e10dde8 | Fix import status succeeded spelling error | stoiveyp/Alexa.NET.Management | Alexa.NET.Management/Package/ImportStatus.cs | Alexa.NET.Management/Package/ImportStatus.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Alexa.NET.Management.Package
{
public enum ImportStatus
{
FAILED,
IN_PROGRESS,
SUCCEEDED
}
}
| using System;
using System.Collections.Generic;
using System.Text;
namespace Alexa.NET.Management.Package
{
public enum ImportStatus
{
FAILED,
IN_PROGRESS,
SUCCEEEDED
}
}
| mit | C# |
6b2a286083c3cbf21cd4fa14a480b7b5164a155b | Make cursor redundancy more redundant | Barleytree/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare | Assets/Scripts/Global/UnlockCursorOnStart.cs | Assets/Scripts/Global/UnlockCursorOnStart.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UnlockCursorOnStart : MonoBehaviour
{
[SerializeField]
bool forceOnUpdate = true;
void Start()
{
Invoke("unlockCursor", .1f);
}
void unlockCursor()
{
Cursor.lockState = GameControl... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UnlockCursorOnStart : MonoBehaviour
{
void Start()
{
Invoke("unlockCursor", .1f);
}
void unlockCursor()
{
Cursor.lockState = GameController.DefaultCursorMode;
}
}
| mit | C# |
64127341ab80353baf82d7fd0470d8ac52a25972 | Use {0:c} rather than ToString("c") where possible. | bleroy/Nwazet.Commerce,bleroy/Nwazet.Commerce | Views/Price.cshtml | Views/Price.cshtml | @if (Model.DiscountedPrice != Model.Price)
{
<b class="inactive-price" style="text-decoration:line-through" title="@T("Was {0:c}", Model.Price)">@Model.Price.ToString("c")</b>
<b class="discounted-price" title="@T("Now {0:c}", Model.DiscountedPrice)">@Model.DiscountedPrice.ToString("c")</b>
<span class... | @if (Model.DiscountedPrice != Model.Price)
{
<b class="inactive-price" style="text-decoration:line-through" title="@T("Was {0}", Model.Price.ToString("c"))">@Model.Price.ToString("c")</b>
<b class="discounted-price" title="@T("Now {0}", Model.DiscountedPrice.ToString("c"))">@Model.DiscountedPrice.ToString("... | bsd-3-clause | C# |
29fe64535c0dd3a6f80fdb05da9c81fb002ba85c | Tweak to make magnet easier to use | JScott/cardboard-controls | CardboardControl/Scripts/ParsedMagnetData.cs | CardboardControl/Scripts/ParsedMagnetData.cs | using UnityEngine;
using System.Collections;
/**
* Dealing with raw magnet input from a Cardboard device
*/
public class ParsedMagnetData {
private Vector3 previousAcceleration;
private float accelerationMagnitude;
private float gyroRotationMagnitude;
private float magneticFieldMagnitude;
private float mag... | using UnityEngine;
using System.Collections;
/**
* Dealing with raw magnet input from a Cardboard device
*/
public class ParsedMagnetData {
private Vector3 previousAcceleration;
private float accelerationMagnitude;
private float gyroRotationMagnitude;
private float magneticFieldMagnitude;
private float mag... | mit | C# |
fe67439e7c2bb32baa5fab1010ef30db8308e097 | Add zoom and sensitivity | Voxelgon/Voxelgon,Voxelgon/Voxelgon | Assets/Plugins/Voxelgon/CameraController.cs | Assets/Plugins/Voxelgon/CameraController.cs | using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour {
public float panSensitivity = 0.8f;
public float orbitSensitivity = 3f;
public float zoomSensativity = 1f;
public float zoomExpo = 1.1f;
public float minAltitude = 5;
public float maxAltitude = 85;
public float minZ... | using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour {
public float minAltitude = 5;
public float maxAltitude = 85;
private float altitude = (45);
private Quaternion altitudeQuat = new Quaternion();
private Matrix4x4 orthoSpace = new Matrix4x4();
// Update is called on... | apache-2.0 | C# |
995492a73f4be5ae2f52438f843b39190ccdf2b0 | Initialize AutoCommandDataAttribute with an AutoMoqCustomization | appharbor/appharbor-cli | src/AppHarbor.Tests/AutoCommandDataAttribute.cs | src/AppHarbor.Tests/AutoCommandDataAttribute.cs | using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoMoq;
using Ploeh.AutoFixture.Xunit;
namespace AppHarbor.Tests
{
public class AutoCommandDataAttribute : AutoDataAttribute
{
public AutoCommandDataAttribute()
: base(new Fixture().Customize(new AutoMoqCustomization()))
{
}
}
}
| using Ploeh.AutoFixture.Xunit;
namespace AppHarbor.Tests
{
public class AutoCommandDataAttribute : AutoDataAttribute
{
}
}
| mit | C# |
44406ed0ba287b2e8220732fca6988ab6a8d5c79 | Add a GetRecordVersion method to the LedgerQueriesExtensions class | openchain/openchain | src/Openchain.Ledger/LedgerQueriesExtensions.cs | src/Openchain.Ledger/LedgerQueriesExtensions.cs | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# |
84950e5ce3c91f170438d25373baec35c380f9b8 | Use Persist value from config. | northspb/RawRabbit,pardahlman/RawRabbit | src/RawRabbit/Common/BasicPropertiesProvider.cs | src/RawRabbit/Common/BasicPropertiesProvider.cs | using System;
using System.Collections.Generic;
using RabbitMQ.Client;
using RabbitMQ.Client.Framing;
using RawRabbit.Configuration;
namespace RawRabbit.Common
{
public interface IBasicPropertiesProvider
{
IBasicProperties GetProperties<TMessage>(Action<IBasicProperties> custom = null);
}
public class BasicPro... | using System;
using System.Collections.Generic;
using RabbitMQ.Client;
using RabbitMQ.Client.Framing;
namespace RawRabbit.Common
{
public interface IBasicPropertiesProvider
{
IBasicProperties GetProperties<TMessage>(Action<IBasicProperties> custom = null);
}
public class BasicPropertiesProvider : IBasicPropert... | mit | C# |
e1ba1b6fbb65ed6681c990c5070e85512afb3c7f | Add util extention for rendering GUI. | Cryru/SoulEngine | Emotion.Plugins.ImGuiNet/ImGuiExtensions.cs | Emotion.Plugins.ImGuiNet/ImGuiExtensions.cs | #region Using
using System;
using System.Numerics;
using Emotion.Graphics;
using Emotion.Graphics.Objects;
using Emotion.Primitives;
using ImGuiNET;
#endregion
namespace Emotion.Plugins.ImGuiNet
{
public static class ImGuiExtensions
{
public static Tuple<Vector2, Vector2> GetImGuiUV(this Texture t, ... | #region Using
using System;
using System.Numerics;
using Emotion.Graphics.Objects;
using Emotion.Primitives;
#endregion
namespace Emotion.Plugins.ImGuiNet
{
public static class ImGuiExtensions
{
public static Tuple<Vector2, Vector2> GetImGuiUV(this Texture t, Rectangle? uv = null)
{
... | mit | C# |
dd05cccc794a791a549624703d0e34c5daa5e8d9 | resolve #16 | shchy/FluentHub | FluentHub/ModelConverter/BinaryConverter.cs | FluentHub/ModelConverter/BinaryConverter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FluentHub.ModelConverter
{
using ToBytes = Func<object, byte[]>;
using ToValue = Func<byte[], object>;
using Converter = Tuple<Func<object, byte[]>, Func<byte[], object>>;
pub... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FluentHub.ModelConverter
{
using ToBytes = Func<object, byte[]>;
using ToValue = Func<byte[], object>;
using Converter = Tuple<Func<object, byte[]>, Func<byte[], object>>;
pub... | mit | C# |
636b94a05811ccfa8de656175ed85e5a03bd999a | build fix | StockSharp/StockSharp | Algo/Storages/DefaultCredentialsProvider.cs | Algo/Storages/DefaultCredentialsProvider.cs | namespace StockSharp.Algo.Storages
{
using System;
using System.IO;
using Ecng.Common;
using Ecng.ComponentModel;
using Ecng.Serialization;
using StockSharp.Configuration;
using StockSharp.Logging;
/// <summary>
/// Default implementation of <see cref="ICredentialsProvider"/>.
/// </summary>
public class... | namespace StockSharp.Algo.Storages
{
using System;
using System.IO;
using Ecng.Common;
using Ecng.ComponentModel;
using Ecng.Serialization;
using StockSharp.Configuration;
using StockSharp.Logging;
/// <summary>
/// Default implementation of <see cref="ICredentialsProvider"/>.
/// </summary>
public class... | apache-2.0 | C# |
83847904550b7843b4060fc263521e7dbc22030c | Test for loading import from data url | FlorianRappl/AngleSharp,AngleSharp/AngleSharp,FlorianRappl/AngleSharp,FlorianRappl/AngleSharp,FlorianRappl/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp | AngleSharp.Core.Tests/Library/PageImport.cs | AngleSharp.Core.Tests/Library/PageImport.cs | namespace AngleSharp.Core.Tests.Library
{
using AngleSharp.Core.Tests.Mocks;
using AngleSharp.Dom.Html;
using AngleSharp.Extensions;
using NUnit.Framework;
using System;
using System.Threading.Tasks;
[TestFixture]
public class PageImportTests
{
[Test]
public async T... | namespace AngleSharp.Core.Tests.Library
{
using AngleSharp.Core.Tests.Mocks;
using AngleSharp.Dom.Html;
using AngleSharp.Extensions;
using NUnit.Framework;
using System;
using System.Threading.Tasks;
[TestFixture]
public class PageImportTests
{
[Test]
public async T... | mit | C# |
f36b6954b916271d15dae07a34e12e9ac6d4d7d5 | test cases | jefking/King.B-Trak | King.BTrak.Unit.Test/Models/SqlTableTests.cs | King.BTrak.Unit.Test/Models/SqlTableTests.cs | namespace King.BTrak.Unit.Test.Models
{
using King.BTrak.Models;
using King.Mapper.Generated.Sql;
using NUnit.Framework;
[TestFixture]
public class SqlTableTests
{
[Test]
public void Constructor()
{
new SqlTable();
}
[Test]
public vo... | namespace King.BTrak.Unit.Test.Models
{
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
[TestFixture]
public class SqlTableTests
{
}
} | mit | C# |
022374ac4cc8a0392fb28efdf6e5a192583304f8 | Rearrange method | callumevans/fluid-http | src/FluidHttp/Client/FluidClient.cs | src/FluidHttp/Client/FluidClient.cs | using FluidHttp.Response;
using System.Net.Http;
using System.Threading.Tasks;
namespace FluidHttp.Client
{
public class FluidClient
{
private HttpClient httpClient;
public FluidClient(HttpClient httpClient)
{
this.httpClient = httpClient;
}
public async T... | using FluidHttp.Response;
using System.Net.Http;
using System.Threading.Tasks;
namespace FluidHttp.Client
{
public class FluidClient
{
private HttpClient httpClient;
public FluidClient(HttpClient httpClient)
{
this.httpClient = httpClient;
}
public async T... | mit | C# |
43d8aea5716129fffc395dab739653ca4677c1bf | fix about window not linking out | lanayotech/vagrant-manager-windows,shabbirh/vagrant-manager-windows,kunday/vagrant-manager-windows,yonglehou/vagrant-manager-windows | Lanayo.VagrantManager/Windows/AboutWindow.cs | Lanayo.VagrantManager/Windows/AboutWindow.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Lanayo.Vagrant_Manager.Windows {
public partial class AboutWindo... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Lanayo.Vagrant_Manager.Windows {
public partial class AboutWindow : Form {
public ... | mit | C# |
164220c6e9444b40917f06a9d789214249f5351c | Add Device & Thing Titles to Endpoint GridList | MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,cmoussalli/DynThings | DynThings.WebPortal/Views/Endpoints/_List.cshtml | DynThings.WebPortal/Views/Endpoints/_List.cshtml | @model PagedList.IPagedList<DynThings.Data.Models.Endpoint>
<table class="table striped hovered border bordered">
<thead>
<tr>
<th>Title</th>
<th>Type</th>
<th>Device</th>
<th>Thing</th>
<th></th>
</tr>
</thead>
<tbody>
@for... | @model PagedList.IPagedList<DynThings.Data.Models.Endpoint>
<table class="table striped hovered border bordered">
<thead>
<tr>
<th>Title</th>
<th>Type</th>
<th>GUID</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
... | mit | C# |
821fdd9c1072a8fdb63130fc771aeebccccd9bf6 | Update DisplayHideTabs.cs | aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.... | Examples/CSharp/Worksheets/Display/DisplayHideTabs.cs | Examples/CSharp/Worksheets/Display/DisplayHideTabs.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Worksheets.Display
{
public class DisplayHideTabs
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Worksheets.Display
{
public class DisplayHideTabs
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System.Refle... | mit | C# |
dc1ecb09b164506f7a48dc15f353d724f6d602c4 | implement FindIn_Test | miraimann/Knuth-Morris-Pratt | KnuthMorrisPratt/KnuthMorrisPratt.Tests/Tests.cs | KnuthMorrisPratt/KnuthMorrisPratt.Tests/Tests.cs | using NUnit.Framework;
using StringSearch;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KnuthMorrisPratt.Tests
{
[TestFixture]
public class Tests
{
private readonly IFinderFactory<char> _find... | using NUnit.Framework;
using StringSearch;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KnuthMorrisPratt.Tests
{
[TestFixture]
public class Tests
{
private readonly IFinderFactory<char> _find... | mit | C# |
53c810c18a395cc9eeef8948ee376dca533109c2 | add click to label. | Codeer-Software/Selenium.StandardControls,Codeer-Software/Selenium.StandardControls,Codeer-Software/Selenium.StandardControls | Project/Selenium.StandardControls/LabelDriver.cs | Project/Selenium.StandardControls/LabelDriver.cs | using OpenQA.Selenium;
using Selenium.StandardControls.AdjustBrowser;
using Selenium.StandardControls.PageObjectUtility;
using Selenium.StandardControls.TestAssistant.GeneratorToolKit;
using System;
namespace Selenium.StandardControls
{
/// <summary>
/// Label Driver
/// </summary>
public class LabelD... | using OpenQA.Selenium;
using Selenium.StandardControls.PageObjectUtility;
using Selenium.StandardControls.TestAssistant.GeneratorToolKit;
namespace Selenium.StandardControls
{
/// <summary>
/// Label Driver
/// </summary>
public class LabelDriver : ControlDriverBase
{
/// <summary>
... | apache-2.0 | C# |
f43aa31209d903826eeb01c05057711ab7cb2556 | Fix server track sorting bug | GeorgeHahn/SOVND | SOVND.Lib/Handlers/SortedPlaylistProvider.cs | SOVND.Lib/Handlers/SortedPlaylistProvider.cs | using System;
using System.Collections.Generic;
using SOVND.Lib.Models;
using System.Linq;
using Anotar.NLog;
using SOVND.Lib.Utils;
namespace SOVND.Lib.Handlers
{
public class SortedPlaylistProvider : PlaylistProviderBase, ISortedPlaylistProvider
{
public List<Song> Songs { get; private set; }
... | using System;
using System.Collections.Generic;
using SOVND.Lib.Models;
using System.Linq;
using Anotar.NLog;
using SOVND.Lib.Utils;
namespace SOVND.Lib.Handlers
{
public class SortedPlaylistProvider : PlaylistProviderBase, ISortedPlaylistProvider
{
public List<Song> Songs { get; private set; }
... | epl-1.0 | C# |
5beb347b6b1c6d985c97218fa3cc9b81b03d2d0c | modify class access level. | dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap | src/DotNetCore.CAP.PostgreSql/CAP.EFOptions.cs | src/DotNetCore.CAP.PostgreSql/CAP.EFOptions.cs | using System;
// ReSharper disable once CheckNamespace
namespace DotNetCore.CAP
{
public class EFOptions
{
public const string DefaultSchema = "cap";
/// <summary>
/// Gets or sets the schema to use when creating database objects.
/// Default is <see cref="DefaultSchema"/>.
... | using System;
// ReSharper disable once CheckNamespace
namespace DotNetCore.CAP
{
public class EFOptions
{
public const string DefaultSchema = "cap";
/// <summary>
/// Gets or sets the schema to use when creating database objects.
/// Default is <see cref="DefaultSchema"/>.
... | mit | C# |
533ddafcbaf525badd78b36f5abb278b0864b54a | Revert "如果元素返回自身将会炸掉" | lindexi/lindexi_gd,lindexi/lindexi_gd,lindexi/lindexi_gd,lindexi/lindexi_gd,lindexi/lindexi_gd | LightTextEditorPlus/TextEditorPlus/Layout/TextView.cs | LightTextEditorPlus/TextEditorPlus/Layout/TextView.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using LightTextEditorPlus.TextEditorPlus.Render;
namespace LightTextEditorPlus.TextEditorPlus.Layout
{
/// <summary>
/// 视觉呈现容器
/// </summary>
internal cl... | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using LightTextEditorPlus.TextEditorPlus.Render;
namespace LightTextEditorPlus.TextEditorPlus.Layout
{
/// <summary>
/// 视觉呈现容器
/// </summary>
internal cl... | mit | C# |
b557ae037b59830cba81c8f6a724d2c2a2eede85 | Add support for dynamically resizing frame when rating submitted | DenverDev/.NET-Wrapper-for-CKAN-API,DenverDev/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API | CkanDotNet.Web/Views/Shared/_Rating.cshtml | CkanDotNet.Web/Views/Shared/_Rating.cshtml | @using CkanDotNet.Api.Model
@using CkanDotNet.Web.Models
@using CkanDotNet.Web.Models.Helpers
@model Package
@{
bool editable = Convert.ToBoolean(ViewData["editable"]);
string ratingId = GuidHelper.GetUniqueKey(16);
}
@if (Model.RatingsAverage.HasValue || editable)
{
<div id="@ratingId" class="rating">
@... | @using CkanDotNet.Api.Model
@using CkanDotNet.Web.Models
@using CkanDotNet.Web.Models.Helpers
@model Package
@{
bool editable = Convert.ToBoolean(ViewData["editable"]);
string ratingId = GuidHelper.GetUniqueKey(16);
}
@if (Model.RatingsAverage.HasValue || editable)
{
<div id="@ratingId" class="rating">
@... | apache-2.0 | C# |
081eb5e2557881af6e59e74acabbdf36214997ff | Add missing doc for 'SessionOptions' | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Session/SessionOptions.cs | src/Microsoft.AspNet.Session/SessionOptions.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;
namespace Microsoft.AspNet.Session
{
/// <summary>
/// Represents the session state options for the application.
/// </summar... | // 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;
namespace Microsoft.AspNet.Session
{
public class SessionOptions
{
/// <summary>
/// Determines the cookie name u... | apache-2.0 | C# |
ca021067355071e789892b2963dd67953e796749 | Improve log messages for scheduled events | bwatts/Totem,bwatts/Totem | Source/Totem.Runtime/Timeline/LocalTimelineDb.cs | Source/Totem.Runtime/Timeline/LocalTimelineDb.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using Totem.Runtime.Map.Timeline;
namespace Totem.Runtime.Timeline
{
/// <summary>
/// A database persisting timeline data in the local runtime
/// </summary>
public sealed class LocalTimelineDb : Notion, ITimelineDb
{
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using Totem.Runtime.Map.Timeline;
namespace Totem.Runtime.Timeline
{
/// <summary>
/// A database persisting timeline data in the local runtime
/// </summary>
public sealed class LocalTimelineDb : Notion, ITimelineDb
{
p... | mit | C# |
67599c9196d2c23d017e51071b483da8a4264898 | Use IConfiguration instead of IConfigurationRoot | tiksn/TIKSN-Framework | TIKSN.Core/Data/LiteDB/LiteDbDatabaseProvider.cs | TIKSN.Core/Data/LiteDB/LiteDbDatabaseProvider.cs | using LiteDB;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.FileProviders;
namespace TIKSN.Data.LiteDB
{
/// <summary>
/// Create LiteDB database
/// </summary>
public class LiteDbDatabaseProvider : ILiteDbDatabaseProvider
{
private readonly IConfiguration _config... | using LiteDB;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.FileProviders;
namespace TIKSN.Data.LiteDB
{
/// <summary>
/// Create LiteDB database
/// </summary>
public class LiteDbDatabaseProvider : ILiteDbDatabaseProvider
{
private readonly IConfigurationRoot _co... | mit | C# |
a2c9f56038668a9d5da45817d798c0f5b103d109 | Update DeserializerBase.cs | tiksn/TIKSN-Framework | TIKSN.Core/Serialization/DeserializerBase.cs | TIKSN.Core/Serialization/DeserializerBase.cs | using System;
namespace TIKSN.Serialization
{
public abstract class DeserializerBase<TSerial> : IDeserializer<TSerial> where TSerial : class
{
public T Deserialize<T>(TSerial serial)
{
try
{
return DeserializeInternal<T>(serial);
}
... | using System;
using TIKSN.Analytics.Telemetry;
namespace TIKSN.Serialization
{
public abstract class DeserializerBase<TSerial> : SerializationBase, IDeserializer<TSerial> where TSerial : class
{
protected DeserializerBase(IExceptionTelemeter exceptionTelemeter) : base(exceptionTelemeter)
{
... | mit | C# |
4a336c24e05bc2a7f6da9cd9feaa446991540ded | Fix CodeFactor | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/AboutViewModel.cs | WalletWasabi.Fluent/ViewModels/AboutViewModel.cs | using System;
using System.IO;
using System.Reactive;
using System.Reactive.Linq;
using JetBrains.Annotations;
using ReactiveUI;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.WebClients.Wasabi;
using WalletWasabi.Helpers;
using WalletWasabi.Logging;
namespace WalletWasabi.Fluent.ViewModels
{
pub... | using System;
using System.IO;
using System.Reactive;
using System.Reactive.Linq;
using JetBrains.Annotations;
using ReactiveUI;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.WebClients.Wasabi;
using WalletWasabi.Helpers;
using WalletWasabi.Logging;
namespace WalletWasabi.Fluent.ViewModels
{
pub... | mit | C# |
a6f16d3eb2f787d5c7370b003e3dd0d49705466c | Adjust layout | dirkrombauts/pickles-testresults,picklesdoc/pickles-testresults,picklesdoc/pickles-testresults,dirkrombauts/pickles-testresults,dirkrombauts/pickles-testresults,picklesdoc/pickles-testresults | TestHarness/AutomationLayer/AdditionSteps.cs | TestHarness/AutomationLayer/AdditionSteps.cs | using System;
using System.Collections.Generic;
using Shouldly;
using TechTalk.SpecFlow;
namespace AutomationLayer
{
[Binding]
public class AdditionSteps
{
private List<int> numbersList;
private int result;
[Given(@"the calculator has clean memory")]
public void GivenTheC... | using System;
using System.Collections.Generic;
using Shouldly;
using TechTalk.SpecFlow;
namespace AutomationLayer
{
[Binding]
public class AdditionSteps
{
private List<int> numbersList;
private int result;
[Given(@"the calculator has clean memory")]
public void GivenTheCalculator... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.