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 |
|---|---|---|---|---|---|---|---|---|---|
f730e6f9efc4ebf59ad316e2ab08bdbe1d19a7f9 | halodi-robot-models-unity-support/Packages/halodi-robot-models/Runtime/Halodi/Physics/Interfaces/IPhysicsEngine.cs | halodi-robot-models-unity-support/Packages/halodi-robot-models/Runtime/Halodi/Physics/Interfaces/IPhysicsEngine.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Halodi.Physics.Interfaces
{
public abstract class IPhysicsEngine : MonoBehaviour
{
public abstract IRevoluteJointPhysics AddRevoluteJoint(ArticulationRevoluteJoint joint);
public abstract IPrismat... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Halodi.Physics.Interfaces
{
public abstract class IPhysicsEngine : MonoBehaviour
{
public abstract IRevoluteJointPhysics AddRevoluteJoint(ArticulationRevoluteJoint joint);
public abstract IPrismat... | Add simulate call to robot | Add simulate call to robot
| C# | apache-2.0 | Halodi/halodi-robot-models,Halodi/halodi-robot-models,Halodi/halodi-robot-models |
d50f11661baff537059bcab72848813f2c1b735f | examples/aspnet35/Index.aspx.cs | examples/aspnet35/Index.aspx.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Bugsnag.Sample.AspNet35
{
public partial class Index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
AspNet.Client.Current... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bugsnag.AspNet;
namespace Bugsnag.Sample.AspNet35
{
public partial class Index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
... | Use the new extension method | Use the new extension method
| C# | mit | bugsnag/bugsnag-dotnet,bugsnag/bugsnag-dotnet |
cd85326924849c718863a156000e0460a2474788 | PS.Mothership.Core/PS.Mothership.Core.Common/Dto/Application/ApplicationDetailsMetadataDto.cs | PS.Mothership.Core/PS.Mothership.Core.Common/Dto/Application/ApplicationDetailsMetadataDto.cs | using System.Collections.Generic;
using System.Runtime.Serialization;
using PS.Mothership.Core.Common.Template.Gen;
namespace PS.Mothership.Core.Common.Dto.Application
{
[DataContract]
public class ApplicationDetailsMetadataDto
{
[DataMember]
public IList<GenBusinessLegalType> BusinessLega... | using System.Collections.Generic;
using System.Runtime.Serialization;
using PS.Mothership.Core.Common.Template.App;
using PS.Mothership.Core.Common.Template.Gen;
namespace PS.Mothership.Core.Common.Dto.Application
{
[DataContract]
public class ApplicationDetailsMetadataDto
{
[DataMember]
p... | Add missing property, needed in web | Add missing property, needed in web
| C# | mit | Paymentsense/Dapper.SimpleSave |
682340e5a58ebdbdc0554538e682302d06871acb | EOLib/HDSerialNumberServiceLinux.cs | EOLib/HDSerialNumberServiceLinux.cs | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using AutomaticTypeMapper;
namespace EOLib
{
#if LINUX
[AutoMappedType]
public class HDSerialNumberServiceLinux : IHDSerialNumberService
{
public str... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System.Diagnostics;
using System.Linq;
using System.Text.RegularExpressions;
using AutomaticTypeMapper;
namespace EOLib
{
#if LINUX
[AutoMappedType]
public... | Update linux HD serial number to pull a real value | Update linux HD serial number to pull a real value
| C# | mit | ethanmoffat/EndlessClient |
84be67eaaf9132a634068e0ee69999d34902f23c | src/GeoIP/Controllers/IP2LocationController.cs | src/GeoIP/Controllers/IP2LocationController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Hosting;
using Newtonsoft.Json;
using System.Net.Http;
using Newtonsoft.Json.Linq;
using GeoIP.Models;
using GeoIP.Executers;
// For more information on enabling ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Hosting;
using Newtonsoft.Json;
using System.Net.Http;
using Newtonsoft.Json.Linq;
using GeoIP.Models;
using GeoIP.Executers;
// For more information on enabling ... | Set geoip webservice to port 4000 | Set geoip webservice to port 4000
| C# | mit | zulhilmizainuddin/geoip,zulhilmizainuddin/geoip |
c401faf94cc426a5ade94f7195dc800addfa6e65 | DynamixelServo.Quadruped/Vector3.cs | DynamixelServo.Quadruped/Vector3.cs | namespace DynamixelServo.Quadruped
{
public struct Vector3
{
public readonly float X;
public readonly float Y;
public readonly float Z;
public Vector3(float x, float y, float z)
{
X = x;
Y = y;
Z = z;
}
public static ... | namespace DynamixelServo.Quadruped
{
public struct Vector3
{
public readonly float X;
public readonly float Y;
public readonly float Z;
public Vector3(float x, float y, float z)
{
X = x;
Y = y;
Z = z;
}
public static ... | Add vector scaling method to vector3 | Add vector scaling method to vector3
| C# | apache-2.0 | dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo |
e7381392d843f92a2c553c8ef1a2c45e2ba99d9c | hangman.cs | hangman.cs | using System;
using Table;
public class Hangman {
public static void Main(string[] args) {
Console.WriteLine("Hello, World!");
Console.WriteLine("You entered the following {0} command line arguments:",
args.Length );
for (int i=0; i < args.Length; i++) {
Console.WriteLine("{0}", args[i]); ... | using System;
using Table;
public class Hangman {
public static void Main(string[] args) {
Table.Table t = new Table.Table();
Console.WriteLine("Hello, World!");
Console.WriteLine("You entered the following {0} command line arguments:",
args.Length );
for (int i=0; i < args.Length; i++) {
... | Define unused instance of Table | Define unused instance of Table
| C# | unlicense | 12joan/hangman |
08d9e46881bc1da3755a12c88e0114ee98388d3c | src/System.Private.CoreLib/src/System/Runtime/CompilerServices/EagerOrderedStaticConstructorAttribute.cs | src/System.Private.CoreLib/src/System/Runtime/CompilerServices/EagerOrderedStaticConstructorAttribute.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.Runtime.CompilerServices
{
// When applied to a type this custom attribute will cause it's cctor to be executed during startup
// rather bein... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.Runtime.CompilerServices
{
// When applied to a type this custom attribute will cause it's cctor to be executed during startup
// rather bein... | Add EagerStaticConstructorOrder.ReflectionExecution, fix the typo EagerStaticConstructorOrder.TypeLoaderEnvirnoment -> TypeLoaderEnvironment | Add EagerStaticConstructorOrder.ReflectionExecution, fix the typo EagerStaticConstructorOrder.TypeLoaderEnvirnoment -> TypeLoaderEnvironment
[tfs-changeset: 1550385]
| C# | mit | schellap/corert,mjp41/corert,sandreenko/corert,yizhang82/corert,krytarowski/corert,manu-silicon/corert,gregkalapos/corert,botaberg/corert,krytarowski/corert,yizhang82/corert,schellap/corert,tijoytom/corert,gregkalapos/corert,gregkalapos/corert,kyulee1/corert,mjp41/corert,tijoytom/corert,yizhang82/corert,botaberg/corert... |
7f501596309daf2c5e585e574f8c0ada4cb6012b | src/Features/CSharp/Portable/AddObsoleteAttribute/CSharpAddObsoleteAttributeCodeFixProvider.cs | src/Features/CSharp/Portable/AddObsoleteAttribute/CSharpAddObsoleteAttributeCodeFixProvider.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using System.Composition;
using Microsoft.CodeAnalysis.AddObsoleteAttribute;
using Microsoft.CodeAnalysis.CodeFixes;
nam... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using System.Composition;
using Microsoft.CodeAnalysis.AddObsoleteAttribute;
using Microsoft.CodeAnalysis.CodeFixes;
nam... | Add support for obsolete collection initializers. | Add support for obsolete collection initializers.
| C# | mit | eriawan/roslyn,mgoertz-msft/roslyn,swaroop-sridhar/roslyn,DustinCampbell/roslyn,bartdesmet/roslyn,davkean/roslyn,brettfo/roslyn,mavasani/roslyn,AlekseyTs/roslyn,abock/roslyn,eriawan/roslyn,abock/roslyn,jasonmalinowski/roslyn,wvdd007/roslyn,MichalStrehovsky/roslyn,KevinRansom/roslyn,diryboy/roslyn,mavasani/roslyn,jcouv/... |
a595e9bd4dd9ed8eb9550c309e2898405b7c53b3 | editor/Resources/scripttemplate.csx | editor/Resources/scripttemplate.csx | using OpenTK;
using OpenTK.Graphics;
using StorybrewCommon.Scripting;
using StorybrewCommon.Storyboarding;
using StorybrewCommon.Storyboarding.Util;
using StorybrewCommon.Mapset;
using StorybrewCommon.Util;
using System;
using System.Collections.Generic;
namespace StorybrewScripts
{
public class %CLASSNAME% : Sto... | using OpenTK;
using OpenTK.Graphics;
using StorybrewCommon.Mapset;
using StorybrewCommon.Scripting;
using StorybrewCommon.Storyboarding;
using StorybrewCommon.Storyboarding.Util;
using StorybrewCommon.Subtitles;
using StorybrewCommon.Mapset;
using StorybrewCommon.Util;
using System;
using System.Collections.Generic;
... | Add more default usings to new scripts. | Add more default usings to new scripts.
| C# | mit | Damnae/storybrew |
6754c37f41414b8b39deec59c908acd29088bbef | test/Cuemon.Extensions.Diagnostics.Tests/FileVersionInfoExtensionsTest.cs | test/Cuemon.Extensions.Diagnostics.Tests/FileVersionInfoExtensionsTest.cs | using System.Diagnostics;
using Cuemon.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;
namespace Cuemon.Extensions.Diagnostics
{
public class FileVersionInfoExtensionsTest : Test
{
public FileVersionInfoExtensionsTest(ITestOutputHelper output) : base(output)
{
}
[Fact... | using System.Diagnostics;
using Cuemon.Extensions.Xunit;
using Xunit;
using Xunit.Abstractions;
namespace Cuemon.Extensions.Diagnostics
{
public class FileVersionInfoExtensionsTest : Test
{
public FileVersionInfoExtensionsTest(ITestOutputHelper output) : base(output)
{
}
[Fact... | Fix for changes to default fileversion (00000). | Fix for changes to default fileversion (00000).
| C# | mit | gimlichael/Cuemon,gimlichael/CuemonCore,gimlichael/Cuemon |
7880083f2a4c7ab287fc484a4fd42aa9e3906e95 | src/SFA.DAS.EmployerApprenticeshipsService.Application/Commands/CreateEmployerAccount/CreateAccountCommandHandler.cs | src/SFA.DAS.EmployerApprenticeshipsService.Application/Commands/CreateEmployerAccount/CreateAccountCommandHandler.cs | using System;
using System.Threading.Tasks;
using MediatR;
using SFA.DAS.EmployerApprenticeshipsService.Application.Messages;
using SFA.DAS.EmployerApprenticeshipsService.Domain.Data;
using SFA.DAS.Messaging;
namespace SFA.DAS.EmployerApprenticeshipsService.Application.Commands.CreateEmployerAccount
{
public clas... | using System;
using System.Threading.Tasks;
using MediatR;
using SFA.DAS.EmployerApprenticeshipsService.Application.Messages;
using SFA.DAS.EmployerApprenticeshipsService.Domain.Attributes;
using SFA.DAS.EmployerApprenticeshipsService.Domain.Data;
using SFA.DAS.Messaging;
namespace SFA.DAS.EmployerApprenticeshipsServ... | Add property to use to determine the queue name to be used, and applied QueueName attribute to the property | Add property to use to determine the queue name to be used, and applied QueueName attribute to the property
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
cd2c760f31338bd03cac8edb433e3fee0af94c41 | templates/footer.cs | templates/footer.cs | <script type="text/javascript">searchHighlight()</script>
<?cs if:len(links.alternate) ?>
<div id="altlinks">
<h3>Download in other formats:</h3>
<ul><?cs each:link = links.alternate ?>
<li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>>
<a href="<?cs var:link.href ?>"<?cs if:link.cla... | <script type="text/javascript">searchHighlight()</script>
<?cs if:len(links.alternate) ?>
<div id="altlinks">
<h3>Download in other formats:</h3>
<ul><?cs each:link = links.alternate ?>
<li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>>
<a href="<?cs var:link.href ?>"<?cs if:link.cla... | Add a link to "about trac" on the trac version number at the end | Add a link to "about trac" on the trac version number at the end
git-svn-id: f68c6b3b1dcd5d00a2560c384475aaef3bc99487@883 af82e41b-90c4-0310-8c96-b1721e28e2e2
| C# | bsd-3-clause | moreati/trac-gitsvn,exocad/exotrac,exocad/exotrac,moreati/trac-gitsvn,exocad/exotrac,exocad/exotrac,dafrito/trac-mirror,dokipen/trac,moreati/trac-gitsvn,dafrito/trac-mirror,dafrito/trac-mirror,moreati/trac-gitsvn,dafrito/trac-mirror,dokipen/trac,dokipen/trac |
80c53273ad52653c944c2f919c7404a169562f9e | templates/footer.cs | templates/footer.cs | <script type="text/javascript">searchHighlight()</script>
<?cs if:len(links.alternate) ?>
<div id="altlinks">
<h3>Download in other formats:</h3>
<ul><?cs each:link = links.alternate ?>
<li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>>
<a href="<?cs var:link.href ?>"<?cs if:link.cla... | <script type="text/javascript">searchHighlight()</script>
<?cs if:len(links.alternate) ?>
<div id="altlinks">
<h3>Download in other formats:</h3>
<ul><?cs each:link = links.alternate ?>
<li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>>
<a href="<?cs var:link.href ?>"<?cs if:link.cla... | Add a link to "about trac" on the trac version number at the end | Add a link to "about trac" on the trac version number at the end
| C# | bsd-3-clause | pkdevbox/trac,pkdevbox/trac,pkdevbox/trac,pkdevbox/trac |
91ac9198f07db2afca2ddab3b64be36b9b1b0cf9 | Omise/Models/OffsiteTypes.cs | Omise/Models/OffsiteTypes.cs | using System.Runtime.Serialization;
namespace Omise.Models
{
public enum OffsiteTypes
{
[EnumMember(Value = null)]
None,
[EnumMember(Value = "internet_banking_scb")]
InternetBankingSCB,
[EnumMember(Value = "internet_banking_bbl")]
InternetBankingBBL,
[En... | using System.Runtime.Serialization;
namespace Omise.Models
{
public enum OffsiteTypes
{
[EnumMember(Value = null)]
None,
[EnumMember(Value = "internet_banking_scb")]
InternetBankingSCB,
[EnumMember(Value = "internet_banking_bbl")]
InternetBankingBBL,
[En... | Add new payment sources (e.g. paynow etc) | Add new payment sources (e.g. paynow etc)
| C# | mit | omise/omise-dotnet |
a0f19ad77c75ba515cda55294f21ddf2d0348e6d | MimeBank/MimeChecker.cs | MimeBank/MimeChecker.cs | /*
* Programmed by Umut Celenli umut@celenli.com
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace MimeBank
{
/// <summary>
/// This is the main class to check the file mime type
/// Header list is loaded once
/// </summary>
public cla... | /*
* Programmed by Umut Celenli umut@celenli.com
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace MimeBank
{
/// <summary>
/// This is the main class to check the file mime type
/// Header list is loaded once
/// </summary>
public cla... | Remove unnecessary check and throw (already throws) | Remove unnecessary check and throw (already throws)
| C# | apache-2.0 | detaybey/MimeBank |
0e0f015ad0a09c9565dc92cbd9146deed5ffa5f6 | src/System.Private.ServiceModel/src/System/ServiceModel/Channels/ServiceModelHttpMessageHandler.cs | src/System.Private.ServiceModel/src/System/ServiceModel/Channels/ServiceModelHttpMessageHandler.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.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace System.S... | // 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.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace System.S... | Fix null-ref exception when doing get request | Fix null-ref exception when doing get request
| C# | mit | iamjasonp/wcf,StephenBonikowsky/wcf,mconnew/wcf,hongdai/wcf,shmao/wcf,dotnet/wcf,KKhurin/wcf,shmao/wcf,imcarolwang/wcf,KKhurin/wcf,zhenlan/wcf,ElJerry/wcf,ElJerry/wcf,dotnet/wcf,zhenlan/wcf,ericstj/wcf,mconnew/wcf,hongdai/wcf,mconnew/wcf,dotnet/wcf,MattGal/wcf,imcarolwang/wcf,imcarolwang/wcf,iamjasonp/wcf,MattGal/wcf,S... |
fc64a966634f6fe8ab89b9b88593f3f3bf128ee6 | Source/Lib/TraktApiSharp/Requests/WithoutOAuth/Shows/Episodes/TraktEpisodeCommentsRequest.cs | Source/Lib/TraktApiSharp/Requests/WithoutOAuth/Shows/Episodes/TraktEpisodeCommentsRequest.cs | namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Episodes
{
using Enums;
using Objects.Basic;
using Objects.Get.Shows.Episodes;
using System.Collections.Generic;
internal class TraktEpisodeCommentsRequest : TraktGetByIdEpisodeRequest<TraktPaginationListResult<TraktEpisodeComment>, TraktEpisodeC... | namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Episodes
{
using Enums;
using Objects.Basic;
using Objects.Get.Shows.Episodes;
using System.Collections.Generic;
internal class TraktEpisodeCommentsRequest : TraktGetByIdEpisodeRequest<TraktPaginationListResult<TraktEpisodeComment>, TraktEpisodeC... | Fix uri templates in episode requests. | Fix uri templates in episode requests.
| C# | mit | henrikfroehling/TraktApiSharp |
ceca14c97b8610595c8028213928c8ad4dcdf660 | src/Fixie/Behaviors/ExecuteCases.cs | src/Fixie/Behaviors/ExecuteCases.cs | using System;
using System.Diagnostics;
namespace Fixie.Behaviors
{
public class ExecuteCases : InstanceBehavior
{
public void Execute(Fixture fixture)
{
foreach (var @case in fixture.Cases)
{
var result = @case.Execution;
using (var con... | using System;
using System.Diagnostics;
namespace Fixie.Behaviors
{
public class ExecuteCases : InstanceBehavior
{
public void Execute(Fixture fixture)
{
foreach (var @case in fixture.Cases)
{
var execution = @case.Execution;
using (var ... | Rename local variable for accuracy. | Rename local variable for accuracy.
| C# | mit | bardoloi/fixie,bardoloi/fixie,JakeGinnivan/fixie,EliotJones/fixie,Duohong/fixie,KevM/fixie,fixie/fixie |
00eba2d37547a03edfff9b42f7a4eeec980f7562 | CertManager.Test/AcmeTests/WhenLoadingDirectory.cs | CertManager.Test/AcmeTests/WhenLoadingDirectory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace CertManager.Test.AcmeTests
{
[TestFixture]
public class WhenInitializing : WithAcmeClient
{
public override async Task BecauseOf()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace CertManager.Test.AcmeTests
{
[TestFixture]
public class WhenInitializing : WithAcmeClient
{
public override async Task BecauseOf()
{
... | Test that the initial nonce is set. | Test that the initial nonce is set.
| C# | mit | PaulTrampert/CertManager,PaulTrampert/CertManager |
4a7b9617a1cc3713be6304f39b7ef47e33edc8fd | DrClockwork/DrClockwork.Nancy/Modules/AskModule.cs | DrClockwork/DrClockwork.Nancy/Modules/AskModule.cs | using System;
using DrClockwork.Domain.Logic;
using DrClockwork.Domain.Models;
using DrClockwork.Nancy.ViewModels;
using Microsoft.AspNet.SignalR;
using Nancy;
using Nancy.ModelBinding;
using Nancy.Validation;
using Raven.Client;
namespace DrClockwork.Nancy.Modules
{
public class AskModule : NancyModule
{
... | using System;
using DrClockwork.Domain.Logic;
using DrClockwork.Domain.Models;
using DrClockwork.Nancy.ViewModels;
using Microsoft.AspNet.SignalR;
using Nancy;
using Nancy.ModelBinding;
using Nancy.Validation;
using Raven.Client;
namespace DrClockwork.Nancy.Modules
{
public class AskModule : NancyModule
{
... | Change verb from get to post | Change verb from get to post
| C# | unlicense | MacsDickinson/DoctorClockwork,MacsDickinson/DoctorClockwork |
8d45fcd34e5b21cc878c523a623e8aefba8fea30 | test/Microsoft.AspNetCore.Mvc.Razor.Precompilation.FunctionalTests/SimpleAppDesktopOnlyTest.cs | test/Microsoft.AspNetCore.Mvc.Razor.Precompilation.FunctionalTests/SimpleAppDesktopOnlyTest.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.Threading.Tasks;
using Microsoft.AspNetCore.Server.IntegrationTesting;
using Microsoft.AspNetCore.Testing.xunit;
using Xunit;
namespace M... | // 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.Threading.Tasks;
using Microsoft.AspNetCore.Server.IntegrationTesting;
using Microsoft.AspNetCore.Testing.xunit;
using Xunit;
namespace M... | Use ConditionalFact to not run tests on xplat | Use ConditionalFact to not run tests on xplat
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
0318944b807d8c3a2aa75735f78f955ec3dab837 | osu.Game.Rulesets.Osu/Edit/Blueprints/OsuSelectionBlueprint.cs | osu.Game.Rulesets.Osu/Edit/Blueprints/OsuSelectionBlueprint.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.Game.Rulesets.Edit;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Osu.Edit.Blueprints.HitCircles.Components;
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 osu.Framework.Allocation;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Osu.Edit.Blueprints.HitCircles.Components;
using os... | Fix incorrect alive criteria causing clicking future objects to be too greedy | Fix incorrect alive criteria causing clicking future objects to be too greedy
| C# | mit | NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu |
a4aaa9f827d8b04d45411650c6f0282fb8324755 | src/Yio/Program.cs | src/Yio/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Yio.Utilities;
namespace Yio
{
public c... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Yio.Utilities;
namespace Yio
{
public c... | Fix server not starting on correct URL | Fix server not starting on correct URL
| C# | mit | Zyrio/ictus,Zyrio/ictus |
4bbb3bbad1d15fb96a65820bcefba9b05bbc3fde | src/Tests/NamespaceTests.cs | src/Tests/NamespaceTests.cs | using System;
using System.Linq;
using FluentAssertions;
using NSaga;
using Xunit;
namespace Tests
{
public class NamespaceTests
{
[Fact]
public void NSaga_Contains_Only_One_Namespace()
{
//Arrange
var assembly = typeof(ISagaMediator).Assembly;
// A... | using System;
using System.Linq;
using FluentAssertions;
using NSaga;
using PetaPoco;
using Xunit;
namespace Tests
{
public class NamespaceTests
{
[Fact]
public void NSaga_Contains_Only_One_Namespace()
{
//Arrange
var assembly = typeof(ISagaMediator).Assembly;
... | Test for petapoco to stay internal | Test for petapoco to stay internal
| C# | mit | AMVSoftware/NSaga |
8b7429856791f31dfab695e5fa01edcd20c937dc | osu.Game/Tests/Beatmaps/LegacyModConversionTest.cs | osu.Game/Tests/Beatmaps/LegacyModConversionTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using NUnit.Framework;
using osu.Game.Beatmaps.Legacy;
using osu.Game.Rulesets;
namespace osu.Game.Tests.Beatmaps
{
/// <summary>
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using NUnit.Framework;
using osu.Game.Beatmaps.Legacy;
using osu.Game.Rulesets;
namespace osu.Game.Tests.Beatmaps
{
/// <summary>
... | Add base method for testing conversion in other direction | Add base method for testing conversion in other direction
| C# | mit | peppy/osu,ppy/osu,ppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipooo/osu,peppy/osu-new,UselessToucan/osu,UselessToucan/osu |
c1f2c0393a9c55fde65c883bfc4e4185722ed621 | src/Glimpse.Web.Common/Framework/FixedRequestAuthorizerProvider.cs | src/Glimpse.Web.Common/Framework/FixedRequestAuthorizerProvider.cs | using System.Collections.Generic;
using System.Linq;
namespace Glimpse.Web
{
public class FixedRequestAuthorizerProvider : IRequestAuthorizerProvider
{
public FixedRequestAuthorizerProvider()
: this(Enumerable.Empty<IRequestAuthorizer>())
{
}
public FixedRequestAut... | using System.Collections.Generic;
using System.Linq;
namespace Glimpse.Web
{
public class FixedRequestAuthorizerProvider : IRequestAuthorizerProvider
{
public FixedRequestAuthorizerProvider()
: this(Enumerable.Empty<IRequestAuthorizer>())
{
}
public FixedRequestAut... | Update field name change that got missed | Update field name change that got missed
| C# | mit | mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.... |
9cc0208c359b797fe0371186ea9b1547cf79869d | src/Glimpse.Server.Web/GlimpseServerWebServices.cs | src/Glimpse.Server.Web/GlimpseServerWebServices.cs | using Glimpse.Agent;
using Microsoft.Framework.DependencyInjection;
using Glimpse.Server.Web;
using Microsoft.Framework.OptionsModel;
namespace Glimpse
{
public class GlimpseServerWebServices
{
public static IServiceCollection GetDefaultServices()
{
var services = new ServiceCollec... | using Glimpse.Agent;
using Microsoft.Framework.DependencyInjection;
using Glimpse.Server.Web;
using Microsoft.Framework.OptionsModel;
namespace Glimpse
{
public class GlimpseServerWebServices
{
public static IServiceCollection GetDefaultServices()
{
var services = new ServiceCollec... | Remove IClientPublisher service as it doesn't exist before | Remove IClientPublisher service as it doesn't exist before
| C# | mit | peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototyp... |
939211824ead516a0374f03a72d1a9e28d122a38 | src/MonoTorrent.Tests/Common/TorrentEditorTests.cs | src/MonoTorrent.Tests/Common/TorrentEditorTests.cs | using System;
using NUnit.Framework;
using MonoTorrent.BEncoding;
namespace MonoTorrent.Common
{
[TestFixture]
public class TorrentEditorTests
{
[Test]
public void EditingCreatesCopy ()
{
var d = Create ("comment", "a");
var editor = new TorrentEditor (d);
... | using System;
using NUnit.Framework;
using MonoTorrent.BEncoding;
namespace MonoTorrent.Common
{
[TestFixture]
public class TorrentEditorTests
{
[Test]
public void EditingCreatesCopy ()
{
var d = Create ("comment", "a");
var editor = new TorrentEditor (d);
... | Add more tests to ensure secure properties are kept secure | [TorrentEditor] Add more tests to ensure secure properties are kept secure
| C# | mit | dipeshc/BTDeploy |
6382553d8a38e3458cceba5b961c5541c06c0345 | GoldenTicket/App_Start/RouteConfig.cs | GoldenTicket/App_Start/RouteConfig.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace GoldenTicket
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace GoldenTicket
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*... | Set default route to Registration Index | Set default route to Registration Index
| C# | bsd-2-clause | codeforamerica/golden-ticket,codeforamerica/golden-ticket |
5e11dcaf91833ca2c771c247adb42bc3d88e433c | src/backend/SO115.ApiGateway/Controllers/PersonaleController.cs | src/backend/SO115.ApiGateway/Controllers/PersonaleController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace SO115.ApiGateway.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class PersonaleController : ControllerBase
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SO115App.ApiGateway.Classi;
using SO115App.ApiGateway.Servizi;
namespace SO115.ApiGateway.Controllers
{
[Route("api/[controller]")]
[ApiContro... | Add - Aggiunto controller adibito alla gestione dei dati del Personale | Add - Aggiunto controller adibito alla gestione dei dati del Personale
| C# | agpl-3.0 | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf |
7ad982b540e013902af7fcb906cc7945cba399b7 | osu.Game.Rulesets.Mania/Replays/ManiaFramedReplayInputHandler.cs | osu.Game.Rulesets.Mania/Replays/ManiaFramedReplayInputHandler.cs | using System.Collections.Generic;
using osu.Framework.Input;
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Rulesets.Replays;
namespace osu.Game.Rulesets.Mania.Replays
{
internal class M... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using osu.Framework.Input;
using osu.Game.Rulesets.Replays;
namespace osu.Game.Rulesets.Mania.Replays
{
internal class M... | Fix ordering of license header. | Fix ordering of license header.
| C# | mit | johnneijzen/osu,DrabWeb/osu,peppy/osu,NeoAdonis/osu,2yangk23/osu,Nabile-Rahmani/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,naoey/osu,peppy/osu,NeoAdonis/osu,ZLima12/osu,DrabWeb/osu,DrabWeb/osu,2yangk23/osu,EVAST9919/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,ppy/osu,naoey/osu,peppy/osu,peppy/osu-... |
47956bb375544410f3af3ef64e77b52809aa25af | MMLibrarySystem/MMLibrarySystem/Controllers/BookListController.cs | MMLibrarySystem/MMLibrarySystem/Controllers/BookListController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MMLibrarySystem.Models;
namespace MMLibrarySystem.Controllers
{
public class BookListController : Controller
{
public ActionResult Index(string searchTerm = null)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MMLibrarySystem.Models;
namespace MMLibrarySystem.Controllers
{
public class BookListController : Controller
{
public ActionResult Index(string searchTerm = null)
{
... | Change The Detail of the ajax Search | Change The Detail of the ajax Search
| C# | apache-2.0 | SoftwareDesign/Library,SoftwareDesign/Library,SoftwareDesign/Library |
5983ecfb990333d95aefb1daac5ef4b52f76b93f | RTS/ViewTone.aspx.cs | RTS/ViewTone.aspx.cs | using RTS.MIDI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace RTS
{
public partial class ViewTone : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
int... | using RTS.MIDI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace RTS
{
public partial class ViewTone : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
int... | Change from displaying an error to redirecting back home | Change from displaying an error to redirecting back home
| C# | mit | EmilySamantha80/RTS |
5225f37c22c91b9c5bd1f18fc7e707568fd4f374 | src/Microsoft.ApplicationInsights.AspNetCore/Extensions/DefaultApplicationInsightsServiceConfigureOptions.cs | src/Microsoft.ApplicationInsights.AspNetCore/Extensions/DefaultApplicationInsightsServiceConfigureOptions.cs | namespace Microsoft.AspNetCore.Hosting
{
using System.Diagnostics;
using System.Globalization;
using Microsoft.ApplicationInsights.AspNetCore.Extensions;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
/// <summa... | namespace Microsoft.AspNetCore.Hosting
{
using System.Diagnostics;
using System.Globalization;
using System.IO;
using Microsoft.ApplicationInsights.AspNetCore.Extensions;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Opt... | Set base path to current directory if ContentRootPath is null on hosting environment. This path is where AI would look for appsettings.json file for ikey, endpoint etc. | Set base path to current directory if ContentRootPath is null on hosting environment. This path is where AI would look for appsettings.json file for ikey, endpoint etc.
| C# | mit | Microsoft/ApplicationInsights-aspnet5,Microsoft/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnet5,Microsoft/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnet5 |
524fddef4804b8d92b7d4d6ae9b19beef5e2a1be | src/THNETII.Security.JOSE/JsonWebRsaExtensions.cs | src/THNETII.Security.JOSE/JsonWebRsaExtensions.cs | using System;
using System.Security.Cryptography;
namespace THNETII.Security.JOSE
{
public static class JsonWebRsaExtensions
{
public static JsonRsaWebKey ExportJsonWebKey(this RSA rsa, bool includePrivateParameters)
{
if (rsa == null)
throw new ArgumentNullExceptio... | using Newtonsoft.Json;
using System;
using System.Security.Cryptography;
namespace THNETII.Security.JOSE
{
public static class JsonWebRsaExtensions
{
public static JsonRsaWebKey ExportJsonWebKey(this RSA rsa, bool includePrivateParameters)
{
if (rsa == null)
throw n... | Add general JWK to JWK (RSA) conversion | Add general JWK to JWK (RSA) conversion
| C# | mit | thnetii/dotnet-common |
5e932dfff9a8e6a1f3d2f7ee3749c314c2e4c968 | PickupMailViewer/Models/MailModel.cs | PickupMailViewer/Models/MailModel.cs | using PickupMailViewer.Helpers;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace PickupMailViewer.Models
{
public class MailModel
{
private readonly CDO.Message mail;
private readonly string mailPath;
public MailModel(strin... | using PickupMailViewer.Helpers;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace PickupMailViewer.Models
{
public class MailModel
{
private readonly CDO.Message mail;
private readonly string mailPath;
public MailModel(strin... | Handle multiple addresses in the To field | Handle multiple addresses in the To field
| C# | mit | jeremycook/PickupMailViewer,jeremycook/PickupMailViewer |
6124191515fe4f1a76ca27edd2e3e53dc70fdddf | source/Cosmos.VS.ProjectSystem/ProjectSystem/ProjectTreePropertiesProvider.cs | source/Cosmos.VS.ProjectSystem/ProjectSystem/ProjectTreePropertiesProvider.cs | using System.ComponentModel.Composition;
using Microsoft.VisualStudio.ProjectSystem;
namespace Cosmos.VS.ProjectSystem
{
[Export(typeof(IProjectTreePropertiesProvider))]
[AppliesTo(ProjectCapability.Cosmos)]
[Order(Order.OverrideManaged)]
internal class ProjectTreePropertiesProvider : IProjectTreeProp... | using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Imaging;
using Microsoft.VisualStudio.ProjectSystem;
namespace Cosmos.VS.ProjectSystem
{
[Export(typeof(IProjectTreePropertiesProvider))]
[AppliesTo(ProjectCapability.Cosmos)]
[Order(Order.OverrideManaged)]
internal class ProjectTre... | Replace by other icon (temporary) | Replace by other icon (temporary)
| C# | bsd-3-clause | zarlo/Cosmos,zarlo/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos |
448b257e87d5c56b15ea3e0fbfa057f94d0835ed | Leaf/Leaf/Engine.cs | Leaf/Leaf/Engine.cs | using System;
namespace Leaf
{
/// <summary>
/// Handles serialization and meta-data of nodes in a container.
/// </summary>
public abstract class Engine
{
/// <summary>
/// Numerical version used to distinguish this engine from others.
/// </summary>
public abstrac... | using System.IO;
using Leaf.Nodes;
namespace Leaf
{
/// <summary>
/// Handles serialization and meta-data of nodes in a container.
/// </summary>
public abstract class Engine
{
/// <summary>
/// Numerical version used to distinguish this engine from others.
/// </summary>
... | Change structure of engine class | Change structure of engine class
| C# | mit | turtle-box-games/leaf-csharp |
27840cdff6b897bab68cacbb670f68c22e682e68 | Albireo.Otp/Hotp.cs | Albireo.Otp/Hotp.cs | namespace Albireo.Otp
{
using System;
using System.Diagnostics.Contracts;
public static class Hotp
{
public static int GetCode(string secret, long counter, int digits = Otp.DefaultDigits)
{
Contract.Requires<ArgumentNullException>(secret != null);
Contract.Requi... | namespace Albireo.Otp
{
using System;
using System.Diagnostics.Contracts;
public static class Hotp
{
public static int GetCode(string secret, long counter, int digits = Otp.DefaultDigits)
{
Contract.Requires<ArgumentNullException>(secret != null);
Contract.Requi... | Add HOTP key URI implementation | Add HOTP key URI implementation
| C# | mit | kappa7194/otp |
9f0772a16c601edf6f193e0fd09be2aa2efaab08 | SimpleToggle/Toggle.cs | SimpleToggle/Toggle.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace SimpleToggle
{
public class Toggle
{
public class Config
{
static Config()
{
NoToggleBehaviour = DefaultNoToggleBehaviour;
}
private static bool DefaultN... | using System;
using System.Collections.Generic;
using System.Linq;
namespace SimpleToggle
{
public class Toggle
{
public class Config
{
static Config()
{
NoToggleBehaviour = DefaultNoToggleBehaviour;
}
private static bool DefaultN... | Use full type name to allow multiple toggles with same name but different namespace. | Use full type name to allow multiple toggles with same name but different namespace.
| C# | mit | CraftyFella/SimpleToggle,CraftyFella/SimpleToggle,CraftyFella/SimpleToggle,CraftyFella/SimpleToggle |
95fb189ea5c65d4afb79c504c2816079f5a80bb4 | LiteDB.Shell/Shell/ShellException.cs | LiteDB.Shell/Shell/ShellException.cs | using System;
namespace LiteDB.Shell
{
internal class ShellException : Exception
{
public ShellException(string message)
: base(message)
{
}
public static ShellException NoDatabase()
{
return new ShellException("No open database");
}
... | using System;
namespace LiteDB.Shell
{
[Serializable]
internal class ShellException : Exception
{
public ShellException(string message)
: base(message)
{
}
public static ShellException NoDatabase()
{
return new ShellException("No open databa... | Mark class [Serializable] to address warning | Mark class [Serializable] to address warning
Addresses warning CA2237: https://docs.microsoft.com/en-us/visualstudio/code-quality/ca2237-mark-iserializable-types-with-serializableattribute | C# | mit | mbdavid/LiteDB,89sos98/LiteDB,falahati/LiteDB,falahati/LiteDB,89sos98/LiteDB |
530455b952cf0bbeed4c23f25c14861a86febf95 | Views/ClipList.xaml.cs | Views/ClipList.xaml.cs | using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media.Animation;
namespace clipman.Views
{
/// <summary>
/// Interaction logic for ClipList.xaml
/// </summary>
public partial class ClipList : UserControl
{
public ClipList()
{
InitializeCo... | using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media.Animation;
namespace clipman.Views
{
/// <summary>
/// Interaction logic for ClipList.xaml
/// </summary>
public partial class ClipList : UserControl
{
public ClipList()
{
InitializeCo... | Disable echo effect on double click copy | Disable echo effect on double click copy
| C# | apache-2.0 | Schlechtwetterfront/snipp |
3292a7cdc73affcaad54e268ec01fd20f4167bc6 | Marcello/Transactions/Transaction.cs | Marcello/Transactions/Transaction.cs | using System;
using System.Threading.Tasks;
namespace Marcello.Transactions
{
internal class Transaction
{
Marcello Session { get; set; }
internal bool Running { get; set; }
internal bool IsCommitting { get; set; }
int Enlisted { get; set; }
internal Transaction(Mar... | using System;
using System.Threading.Tasks;
namespace Marcello.Transactions
{
internal class Transaction
{
Marcello Session { get; set; }
internal bool Running { get; set; }
internal bool IsCommitting { get; set; }
int Enlisted { get; set; }
internal Transaction(Mar... | Apply transaction in same thread | Apply transaction in same thread
| C# | mit | markmeeus/MarcelloDB |
7d6c6c2d420087f45fcab193f5cca6603f2db990 | PixelPet/CLI/Commands/PadTilesetCmd.cs | PixelPet/CLI/Commands/PadTilesetCmd.cs | using LibPixelPet;
using System;
namespace PixelPet.CLI.Commands {
internal class PadTilesetCmd : CliCommand {
public PadTilesetCmd()
: base("Pad-Tileset",
new Parameter(true, new ParameterValue("width"))
) { }
public override void Run(Workbench workbench, ILogger logger) {
int width = FindUnnamedP... | using LibPixelPet;
using System;
namespace PixelPet.CLI.Commands {
internal class PadTilesetCmd : CliCommand {
public PadTilesetCmd()
: base("Pad-Tileset",
new Parameter(true, new ParameterValue("width"))
) { }
public override void Run(Workbench workbench, ILogger logger) {
int width = FindUnnamedP... | Change Pad-Tileset behavior to be similar to Pad-Palettes. | Change Pad-Tileset behavior to be similar to Pad-Palettes.
| C# | mit | Prof9/PixelPet |
9cd27086b4965dada45918204b9a5446c3c4a10e | IdunnSql.Console/GenerateOptions.cs | IdunnSql.Console/GenerateOptions.cs | using CommandLine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IdunnSql.Console
{
[Verb("generate", HelpText = "Generate a file")]
public class GenerateOptions
{
[Option('s', "source", Required = true,
HelpTe... | using CommandLine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IdunnSql.Console
{
[Verb("generate", HelpText = "Generate a file")]
public class GenerateOptions
{
[Option('s', "source", Required = true,
HelpTe... | Add an option to provide a template name | Add an option to provide a template name
| C# | apache-2.0 | Seddryck/Idunn.SqlServer |
4bee7c687ad95f13108d64faca358f968b31df7e | IllusionInjector/PluginComponent.cs | IllusionInjector/PluginComponent.cs | using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
namespace IllusionInjector
{
class PluginComponent : MonoBehaviour
{
private CompositePlugin plugins;
private bool freshlyLoaded = false;
void Awake()
{
DontDestroyOnLoad(this);
... | using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
namespace IllusionInjector
{
class PluginComponent : MonoBehaviour
{
private CompositePlugin plugins;
private bool freshlyLoaded = false;
void Awake()
{
DontDestroyOnLoad(this);
... | Fix typo for LateUpdate calls | Fix typo for LateUpdate calls
| C# | mit | Eusth/Illusion-Plugins |
f4802f63b5117f0ca4e170da8da7839bb3a19ded | NFluidsynth/Native/LibFluidsynth.cs | NFluidsynth/Native/LibFluidsynth.cs | using System;
using System.Runtime.InteropServices;
namespace NFluidsynth.Native
{
internal static partial class LibFluidsynth
{
public const string LibraryName = "fluidsynth";
public const int FluidOk = 0;
public const int FluidFailed = -1;
#if NETCOREAPP
static LibFluidsynt... | using System;
using System.Runtime.InteropServices;
namespace NFluidsynth.Native
{
internal static partial class LibFluidsynth
{
public const string LibraryName = "fluidsynth";
public const int FluidOk = 0;
public const int FluidFailed = -1;
#if NETCOREAPP
static LibFluidsynt... | Fix issues with specifying manual resolve paths and with-application shipped fluidsynth libraries | Fix issues with specifying manual resolve paths and with-application shipped fluidsynth libraries
| C# | mit | atsushieno/nfluidsynth |
5933114f7c35f53bb6a42a90468630d7b1f67a15 | CefSharp.WinForms.Example/Program.cs | CefSharp.WinForms.Example/Program.cs | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Forms;
using CefSharp.Example;
namespace CefSharp.WinForms.Example
{
class Program
{
[STAThrea... | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Forms;
using CefSharp.Example;
using CefSharp.WinForms.Example.Minimal;
namespace CefSharp.WinForms.Example
{
... | Add commented out example to start second form | Add commented out example to start second form
| C# | bsd-3-clause | Livit/CefSharp,VioletLife/CefSharp,AJDev77/CefSharp,dga711/CefSharp,yoder/CefSharp,yoder/CefSharp,zhangjingpu/CefSharp,VioletLife/CefSharp,NumbersInternational/CefSharp,ruisebastiao/CefSharp,Octopus-ITSM/CefSharp,wangzheng888520/CefSharp,Octopus-ITSM/CefSharp,joshvera/CefSharp,illfang/CefSharp,dga711/CefSharp,Livit/Cef... |
2e71d71ece8c60b2ab502a2ded3e051e9e99c289 | Views/Partials/Google.cshtml | Views/Partials/Google.cshtml | <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analy... | <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window, document, 'script', '//cdn.owlcdn.com/google/analytics/a... | Use OWL CDN for google analytics | Use OWL CDN for google analytics
| C# | mit | manishramanan15/denann,manishramanan15/denann,manishramanan15/denann |
9eedd9eb6c644de978fdf42dcd5dc28cd09503ab | osu.Framework.Benchmarks/Program.cs | osu.Framework.Benchmarks/Program.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 BenchmarkDotNet.Running;
namespace osu.Framework.Benchmarks
{
public static class Program
{
public static void Main(string[] args)
{
... | // 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 BenchmarkDotNet.Configs;
using BenchmarkDotNet.Running;
namespace osu.Framework.Benchmarks
{
public static class Program
{
public static void Main(... | Fix benchmarks not running due to unoptimised nunit | Fix benchmarks not running due to unoptimised nunit
| C# | mit | smoogipooo/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework |
20fac77b3333180ddad412fb2f14907d9154bc73 | SadConsole/ValueChangedEventArgs.cs | SadConsole/ValueChangedEventArgs.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace SadConsole
{
/// <summary>
/// The old value and the value it changed to.
/// </summary>
public class ValueChangedEventArgs<T> : EventArgs
{
/// <summary>
/// The previous object.
/// </summary>
... | using System;
using System.Collections.Generic;
using System.Text;
namespace SadConsole
{
/// <summary>
/// The old value and the value it changed to.
/// </summary>
public class ValueChangedEventArgs<T> : EventArgs
{
/// <summary>
/// The previous object.
/// </summary>
... | Add cancel/handle for value changed eventargs | Add cancel/handle for value changed eventargs
| C# | mit | Thraka/SadConsole |
98bcefd7c796f50082204f0bb8e61cd550e3b914 | KenticoInspector.WebApplication/Controllers/InstancesController.cs | KenticoInspector.WebApplication/Controllers/InstancesController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using KenticoInspector.Core.Models;
using KenticoInspector.Core.Services;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
namespace KenticoInspector.WebApplication.Controllers
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using KenticoInspector.Core.Models;
using KenticoInspector.Core.Services;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
namespace KenticoInspector.WebApplication.Controllers
... | Remove old testing code in instance controller | Remove old testing code in instance controller
| C# | mit | Kentico/KInspector,Kentico/KInspector,ChristopherJennings/KInspector,Kentico/KInspector,ChristopherJennings/KInspector,ChristopherJennings/KInspector,Kentico/KInspector,ChristopherJennings/KInspector |
b078f856b9f6c77dd0233f8d7d51bd02b5d7f6da | src/Umbraco.Examine/IndexRebuilder.cs | src/Umbraco.Examine/IndexRebuilder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Examine;
namespace Umbraco.Examine
{
/// <summary>
/// Utility to rebuild all indexes ensuring minimal data queries
/// </summary>
public class IndexRebuilder
{
private readonly IEnum... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Examine;
namespace Umbraco.Examine
{
/// <summary>
/// Utility to rebuild all indexes ensuring minimal data queries
/// </summary>
public class IndexRebuilder
{
private readonly IEnum... | Remove the usage of Parallel to run the populators | Remove the usage of Parallel to run the populators
| C# | mit | abjerner/Umbraco-CMS,robertjf/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,robertjf/Umbraco-CMS,leekelleher/Umbraco-CMS,abjerner/Umbraco-CMS,leekelleher/Umbraco-CMS,madsoulswe/Umbraco-CMS,marcemarc/Umbraco-CMS,mattbrailsford/Umbraco-CMS,leekelleher/Umbraco-CMS,KevinJump/Umbraco-CMS,madsoulswe/Umbraco-CMS,marcemarc/Umbraco... |
5668149607cc17977d16c7af4dbb3582be7297a3 | src/Xunit.Vsix/VisualStudioVersion.cs | src/Xunit.Vsix/VisualStudioVersion.cs |
namespace Xunit
{
/// <summary>
/// Suggested values for the Visual Studio Version to run tests against.
/// </summary>
public static class VisualStudioVersion
{
/// <summary>
/// Specifies that the test should be run against all installed
/// Visual Studio versions that h... |
namespace Xunit
{
/// <summary>
/// Suggested values for the Visual Studio Version to run tests against.
/// </summary>
public static class VisualStudioVersion
{
/// <summary>
/// Specifies that the test should be run against all installed
/// Visual Studio versions that h... | Add VS2017 and VS2019 as known versions | Add VS2017 and VS2019 as known versions
| C# | mit | kzu/xunit.vsix |
6e619e83f3f7cd886c56441489a82d8dcf45e1b4 | UnityProject/Assets/Scripts/Messages/Server/LocalGuiMessages/AntagBannerMessage.cs | UnityProject/Assets/Scripts/Messages/Server/LocalGuiMessages/AntagBannerMessage.cs | using Antagonists;
using UnityEngine;
namespace Messages.Server.LocalGuiMessages
{
public class AntagBannerMessage: ServerMessage
{
public string AntagName;
public string AntagSound;
public Color TextColor;
public Color BackgroundColor;
private bool playSound;
public static AntagBannerMessage Send(
... | using Antagonists;
using Audio.Managers;
using Mirror;
using UnityEngine;
namespace Messages.Server.LocalGuiMessages
{
public class AntagBannerMessage: ServerMessage
{
public string AntagName;
public string AntagSound;
public Color TextColor;
public Color BackgroundColor;
private bool PlaySound;
public... | Rewrite message serialization to fix PlaySound missing flag | Rewrite message serialization to fix PlaySound missing flag
| C# | agpl-3.0 | fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation |
703a95290aaad110e0ebf7318ab0c62b5938ea5d | Portal.CMS.Entities/Seed/MenuSeed.cs | Portal.CMS.Entities/Seed/MenuSeed.cs | using Portal.CMS.Entities.Entities;
using System.Collections.Generic;
using System.Linq;
namespace Portal.CMS.Entities.Seed
{
public static class MenuSeed
{
public static void Seed(PortalEntityModel context)
{
if (!context.Menus.Any(x => x.MenuName == "Main Menu"))
{
... | using Portal.CMS.Entities.Entities;
using System.Collections.Generic;
using System.Linq;
namespace Portal.CMS.Entities.Seed
{
public static class MenuSeed
{
public static void Seed(PortalEntityModel context)
{
if (!context.Menus.Any(x => x.MenuName == "Main Menu"))
{
... | Remove Contact Page from Menu Seed | Remove Contact Page from Menu Seed
| C# | mit | tommcclean/PortalCMS,tommcclean/PortalCMS,tommcclean/PortalCMS |
f7f6ab83a6d132c0d81e0d2818dc1f8d3ca1f609 | StyleCop.Analyzers/StyleCop.Analyzers.Test/ExportCodeFixProviderAttributeNameTest.cs | StyleCop.Analyzers/StyleCop.Analyzers.Test/ExportCodeFixProviderAttributeNameTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.MSBuild;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Style... | namespace StyleCop.Analyzers.Test
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using StyleCop.Analyzers.ReadabilityRules;
using Xunit;
public class ExportCodeFixPr... | Test if ExportCodeFixProviderAttribute is applied correctly - adjusted/corrected | Test if ExportCodeFixProviderAttribute is applied correctly - adjusted/corrected
| C# | mit | DotNetAnalyzers/StyleCopAnalyzers |
2622a560a6bb5aa33fcb5d8b632981ff88bc225c | EventLogDataSource/EventLogDataSource/Program.cs | EventLogDataSource/EventLogDataSource/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace EventLogDataSource
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
stat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace EventLogDataSource
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
stat... | Implement the simplest possible 'Hello World' DAE | Implement the simplest possible 'Hello World' DAE
| C# | apache-2.0 | SAP/lumira-extension-da-windowseventlog |
2969c2a592439d9a2cc0e9aa20ef0bfe39c3eb5b | Scripts/Movement.cs | Scripts/Movement.cs | using UnityEngine;
using System.Collections;
public class Movement : MonoBehaviour {
public float speed = 6.0F;
private Animator animator;
private Vector3 moveDirection = Vector3.zero;
public float lookSpeed = 10;
private Vector3 curLoc;
private Vector3 prevLoc;
void Start(){
animator = GetComponent<Anima... | using UnityEngine;
using System.Collections;
public class Movement : MonoBehaviour {
public float speed = 6.0F;
private Animator animator;
private Vector3 moveDirection = Vector3.zero;
public float lookSpeed = 10;
private Vector3 curLoc;
private Vector3 prevLoc;
void Start(){
animator = GetComponent<Anima... | Revert "Revert "AI detects when player is close"" | Revert "Revert "AI detects when player is close""
This reverts commit 2613d21e307d05d3109e790b0512d60ceddf7055.
| C# | cc0-1.0 | kellymoen/Opus |
d79f1fb27149e4c8ed9488431e2fd3d05c2e63fa | WebSearches/Site.cs | WebSearches/Site.cs | using System;
using IvionWebSoft;
public class Site
{
public readonly Uri SiteUrl;
public readonly int DisplayMax;
public string GoogleSiteDeclaration
{
get { return "site:" + SiteUrl.Host; }
}
public static readonly Site None;
public static readonly Site YouTube;
public st... | using System;
using IvionWebSoft;
public class Site
{
public readonly Uri SiteUrl;
public readonly int DisplayMax;
public string GoogleSiteDeclaration
{
get { return "site:" + SiteUrl.Host; }
}
public static readonly Site None;
public static readonly Site YouTube;
public st... | Add VNDB as possible search site | Add VNDB as possible search site
| C# | bsd-2-clause | IvionSauce/MeidoBot |
e94d96f25093a2b32511554548e1a1314db6ce45 | osu.Game/Screens/Edit/EditorScreen.cs | osu.Game/Screens/Edit/EditorScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Screens.Edit
{
/// <summary>
/// TODO: ... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor;
namespace osu.Game.Screens.Ed... | Add local popover container to editor screens | Add local popover container to editor screens
| C# | mit | ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,peppy/osu,peppy/osu,smoogipoo/osu,peppy/osu-new |
567c7541e5303ff8cd5f15bbcda9702fcfb1cc53 | ExpressRunner/DesignerMocks/TestExplorerViewModel.cs | ExpressRunner/DesignerMocks/TestExplorerViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExpressRunner.DesignerMocks
{
public class TestExplorerViewModel
{
private readonly TestGroup selectedTestGroup;
public TestGroup SelectedTestGroup
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExpressRunner.DesignerMocks
{
public class TestExplorerViewModel
{
private readonly TestGroup selectedTestGroup;
public TestGroup SelectedTestGroup
{
... | Add test data to mock view-model | Add test data to mock view-model
| C# | mit | lpatalas/ExpressRunner |
c86c07ea42cde6ae99a765fb9b0fa58cf1d66fdf | VstsMetrics/Commands/Throughput/ThroughputCommand.cs | VstsMetrics/Commands/Throughput/ThroughputCommand.cs | using System;
using System.Linq;
using System.Threading.Tasks;
using CommandLine;
using VstsMetrics.Abstractions;
using VstsMetrics.Extensions;
using VstsMetrics.Renderers;
namespace VstsMetrics.Commands.Throughput
{
public class ThroughputCommand : Command
{
[Option('d', "doneState", DefaultValue = "D... | using System;
using System.Linq;
using System.Threading.Tasks;
using CommandLine;
using VstsMetrics.Abstractions;
using VstsMetrics.Extensions;
using VstsMetrics.Renderers;
namespace VstsMetrics.Commands.Throughput
{
public class ThroughputCommand : Command
{
[Option('d', "doneState", DefaultValue = "D... | Order the throughput data by newest to oldest. | Order the throughput data by newest to oldest.
| C# | agpl-3.0 | christopher-bimson/VstsMetrics |
5cf2dd3926c3392f2d3bcfa8c1d5e015b329b520 | src/Shovel/Properties/AssemblyInfo.cs | src/Shovel/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("Sh... | 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("Sh... | Add author to assembly copyright field | Add author to assembly copyright field
| C# | mit | jancowol/Shovel,modulexcite/Shovel,jancowol/Shovel |
ce54923111ada0a9b186fa5c9dd589190d9d2ec2 | Chalmers.ILL/Providers/ProviderService.cs | Chalmers.ILL/Providers/ProviderService.cs | using Chalmers.ILL.Models;
using Examine;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Chalmers.ILL.Extensions;
using Chalmers.ILL.OrderItems;
namespace Chalmers.ILL.Providers
{
public class ProviderService : IProviderService
{
IOrde... | using Chalmers.ILL.Models;
using Examine;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Chalmers.ILL.Extensions;
using Chalmers.ILL.OrderItems;
namespace Chalmers.ILL.Providers
{
public class ProviderService : IProviderService
{
IOrde... | Set the same delivery time for Reprints Desk as for Subito | Set the same delivery time for Reprints Desk as for Subito
| C# | mit | ChalmersLibrary/Chillin,ChalmersLibrary/Chillin,ChalmersLibrary/Chillin,ChalmersLibrary/Chillin |
f9fed2672e04f41ec20fd236d6fae791bb6bbcbe | osu.Framework/Graphics/Video/VideoTextureUpload.cs | osu.Framework/Graphics/Video/VideoTextureUpload.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Graphics.Textures;
using osuTK.Graphics.ES30;
using FFmpeg.AutoGen;
using osu.Framework.Graphics.Primitives;
using SixLabors.ImageSharp... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Graphics.Textures;
using osuTK.Graphics.ES30;
using FFmpeg.AutoGen;
using osu.Framework.Graphics.Primitives;
using SixLabors.ImageSharp... | Tidy up class xmldoc and naming | Tidy up class xmldoc and naming
| C# | mit | peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework |
11f0b4c6fab0d825102fe1fa08618d19a6fb46c9 | src/AutoSitecore/ItemDataAttribute.cs | src/AutoSitecore/ItemDataAttribute.cs | using System;
using Sitecore.Data;
namespace AutoSitecore
{
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
public class ItemDataAttribute : Attribute
{
public static readonly ItemDataAttribute Null = new ItemDataAttribute();
public ItemDataAttribute(string name=null, string id = nu... | using System;
using Sitecore.Data;
namespace AutoSitecore
{
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
public class ItemDataAttribute : Attribute
{
public static readonly ItemDataAttribute Null = new ItemDataAttribute();
public ItemDataAttribute(string name=null, string itemId ... | Improve error messages for invalid Guids in ItemData | Improve error messages for invalid Guids in ItemData
Invalid GUID did not say which field has error. Now paramater name is
specified.
| C# | mit | dsolovay/AutoSitecore |
2bddaeb4a4fb04975588c94482eff23097c4c5c4 | src/Parsley/ReadOnlySpanExtensions.cs | src/Parsley/ReadOnlySpanExtensions.cs | namespace Parsley;
public static class ReadOnlySpanExtensions
{
public static ReadOnlySpan<char> Peek(this ref ReadOnlySpan<char> input, int length)
=> length >= input.Length
? input.Slice(0)
: input.Slice(0, length);
public static void Advance(this ref ReadOnlySpan<char> input... | namespace Parsley;
public static class ReadOnlySpanExtensions
{
public static ReadOnlySpan<char> Peek(this ref ReadOnlySpan<char> input, int length)
=> length >= input.Length
? input.Slice(0)
: input.Slice(0, length);
public static void Advance(this ref ReadOnlySpan<char> input... | Reorder lines within Advance to no longer interleve two distinct operations in play: advancing the input span by `length` items, and then analyzing the items advanced over to update the Position. This is a step towards extracting a method for each of the two distinct operations. | Reorder lines within Advance to no longer interleve two distinct operations in play: advancing the input span by `length` items, and then analyzing the items advanced over to update the Position. This is a step towards extracting a method for each of the two distinct operations.
| C# | mit | plioi/parsley |
96bfb0d997d5e54a15850d85e53a33d1a7c53ad4 | src/ReadLine/Abstractions/IConsole.cs | src/ReadLine/Abstractions/IConsole.cs | namespace Internal.ReadLine.Abstractions
{
internal interface IConsole
{
int CursorLeft { get; }
int CursorTop { get; }
int BufferWidth { get; }
int BufferHeight { get; }
bool PasswordMode { get; set; }
char PasswordChar { get; set; }
void SetCursorPositio... | namespace Internal.ReadLine.Abstractions
{
internal interface IConsole
{
int CursorLeft { get; }
int CursorTop { get; }
int BufferWidth { get; }
int BufferHeight { get; }
void SetCursorPosition(int left, int top);
void SetBufferSize(int width, int height);
... | Remove PasswordMode and PasswordChar from interface definition | Remove PasswordMode and PasswordChar from interface definition
| C# | mit | tsolarin/readline,tsolarin/readline |
fb0be11930a8e37e971e6e26e48c16ba71cf7c3e | src/AssemblyInfo.cs | src/AssemblyInfo.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System.Reflection;
using System.Runtime.CompilerServices;
//[assembly: AssemblyVersion("0.0.0.*")]
[assembly: AssemblyTitle ("NDesk.DBus")]
[assembly: AssemblyDescription ("D-Bus IPC ... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System.Reflection;
using System.Runtime.CompilerServices;
//[assembly: AssemblyVersion("0.0.0.*")]
[assembly: AssemblyTitle ("NDesk.DBus")]
[assembly: AssemblyDescription ("D-Bus IPC ... | Add dbus-sharp-glib to friend assemblies | Add dbus-sharp-glib to friend assemblies
| C# | mit | arfbtwn/dbus-sharp,openmedicus/dbus-sharp,mono/dbus-sharp,Tragetaschen/dbus-sharp,Tragetaschen/dbus-sharp,mono/dbus-sharp,openmedicus/dbus-sharp,arfbtwn/dbus-sharp |
468f81eaae4dcf81eb416d77cc88634d0d5a4f98 | src/CompetitionPlatform/Models/IdentityModels.cs | src/CompetitionPlatform/Models/IdentityModels.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CompetitionPlatform.Models
{
public class AuthenticateModel
{
public string FullName { get; set; }
public string Password { get; set; }
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CompetitionPlatform.Models
{
public class AuthenticateModel
{
public string FullName { get; set; }
public string Password { get; set; }
}
public class CompetitionPlatformUser
... | Add CompetitionPlatformUser to Identity models. | Add CompetitionPlatformUser to Identity models.
| C# | mit | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform |
8b97f3f847b993ac4c15586dc7414b10589ee463 | src/Libraries/Node/Node.Core/Network/HttpVerb.cs | src/Libraries/Node/Node.Core/Network/HttpVerb.cs | // IPAddressType.cs
// Script#/Libraries/Node/Core
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System;
using System.Runtime.CompilerServices;
namespace NodeApi.Network {
[ScriptImport]
[ScriptIgnoreNamespace]
[ScriptConstants(UseNames = true)]
p... | // IPAddressType.cs
// Script#/Libraries/Node/Core
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System;
using System.Runtime.CompilerServices;
namespace NodeApi.Network {
[ScriptImport]
[ScriptIgnoreNamespace]
[ScriptConstants(UseNames = true)]
p... | Add PATCH to http verbs enumeration | Add PATCH to http verbs enumeration
| C# | apache-2.0 | nikhilk/scriptsharp,x335/scriptsharp,nikhilk/scriptsharp,x335/scriptsharp,nikhilk/scriptsharp,x335/scriptsharp |
24a561bb1ad38b89af179a61d19f9d13b5721ae4 | DevTyr.Gullap.Tests/With_Guard/For_NotNull/When_argument_is_null.cs | DevTyr.Gullap.Tests/With_Guard/For_NotNull/When_argument_is_null.cs | using System;
using NUnit.Framework;
using DevTyr.Gullap;
namespace DevTyr.Gullap.Tests.With_Guard.For_NotNull
{
[TestFixture]
public class When_argument_is_null
{
[Test]
public void Should_throw_argumentnullexception ()
{
Assert.Throws<ArgumentNullException> (() => Guard.NotNull (null, null));
}
[Te... | using System;
using NUnit.Framework;
using DevTyr.Gullap;
namespace DevTyr.Gullap.Tests.With_Guard.For_NotNull
{
[TestFixture]
public class When_argument_is_null
{
[Test]
public void Should_throw_argumentnullexception ()
{
Assert.Throws<ArgumentNullException> (() => Guard.NotNull (null, null));
}
[Te... | Add new test for NotNull with provided message. | Add new test for NotNull with provided message.
| C# | mit | devtyr/gullap |
47d2c8f644239120afc69731d977d67727f0fb10 | CSharp.Functional.Tests/RangeTests.cs | CSharp.Functional.Tests/RangeTests.cs | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace CSharp.Functional.Tests
{
public class RangeTests
{
[Theory]
[InlineData(0, 1)]
public void RangeProvidesAnIEnumerable(int start, int end)
{
var result = F.Range(st... | using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace CSharp.Functional.Tests
{
public class RangeTests
{
[Theory]
[InlineData(0, 1)]
public void RangeProvidesAnIEnumerable(int start, int end)
{
var result = F.Range(st... | Add test for invalid range | Add test for invalid range
| C# | mit | farity/farity |
0eeca8faf9d548fa3a3cdb600eb42338ab3113d5 | LiveSplit/LiveSplit.Core/TimeFormatters/PossibleTimeSaveFormatter.cs | LiveSplit/LiveSplit.Core/TimeFormatters/PossibleTimeSaveFormatter.cs | using System;
namespace LiveSplit.TimeFormatters
{
public class PossibleTimeSaveFormatter : ITimeFormatter
{
public TimeAccuracy Accuracy { get; set; }
public string Format(TimeSpan? time)
{
var formatter = new ShortTimeFormatter();
if (time == null)
... | using System;
namespace LiveSplit.TimeFormatters
{
public class PossibleTimeSaveFormatter : ITimeFormatter
{
public TimeAccuracy Accuracy { get; set; }
public string Format(TimeSpan? time)
{
var formatter = new ShortTimeFormatter();
if (time == null)
... | Fix dash being minus sign in PTS Formatter | Fix dash being minus sign in PTS Formatter
| C# | mit | LiveSplit/LiveSplit,Glurmo/LiveSplit,kugelrund/LiveSplit,ROMaster2/LiveSplit,Glurmo/LiveSplit,kugelrund/LiveSplit,Glurmo/LiveSplit,kugelrund/LiveSplit,ROMaster2/LiveSplit,ROMaster2/LiveSplit |
0487178c3d9105407e3394dac169595bcdfa653f | aspnet/4-auth/Controllers/SessionController.cs | aspnet/4-auth/Controllers/SessionController.cs | // Copyright(c) 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | // Copyright(c) 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | Simplify login docs region & only show action | Simplify login docs region & only show action
| C# | apache-2.0 | GoogleCloudPlatform/getting-started-dotnet,GoogleCloudPlatform/getting-started-dotnet,GoogleCloudPlatform/getting-started-dotnet |
36bb2086420e20a1eae477b958d9e58915ec8047 | WindowsStore/Service/CameraService.cs | WindowsStore/Service/CameraService.cs | using MyDocs.Common.Contract.Service;
using MyDocs.Common.Contract.Storage;
using MyDocs.Common.Model;
using MyDocs.WindowsStore.Storage;
using System;
using System.Threading.Tasks;
using Windows.Media.Capture;
namespace MyDocs.WindowsStore.Service
{
public class CameraService : ICameraService
{
... | using MyDocs.Common.Contract.Service;
using MyDocs.Common.Contract.Storage;
using MyDocs.Common.Model;
using MyDocs.WindowsStore.Storage;
using System;
using System.Threading.Tasks;
using Windows.Media.Capture;
namespace MyDocs.WindowsStore.Service
{
public class CameraService : ICameraService
{
... | Use type inference in type definition | Use type inference in type definition
| C# | mit | eggapauli/MyDocs,eggapauli/MyDocs |
2398d677105b558d2220249a051059206bcc96ba | src/AppHarbor.Tests/Commands/CreateCommandTest.cs | src/AppHarbor.Tests/Commands/CreateCommandTest.cs | using AppHarbor.Commands;
using Moq;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoMoq;
using Xunit;
namespace AppHarbor.Tests.Commands
{
public class CreateCommandTest
{
private readonly IFixture _fixture;
public CreateCommandTest()
{
_fixture = new Fixture().Customize(new AutoMoqCustomization());... | using AppHarbor.Commands;
using Moq;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoMoq;
using Ploeh.AutoFixture.Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests.Commands
{
public class CreateCommandTest
{
private readonly IFixture _fixture;
public CreateCommandTest()
{
_fixture = new Fixtur... | Refactor test to use AutoCommandData | Refactor test to use AutoCommandData
| C# | mit | appharbor/appharbor-cli |
76cae17fd71a9513a817979d4185bdfb2ba0ed43 | ffmpeg-farm-server/API.WindowsService/Models/AudioJobRequestModel.cs | ffmpeg-farm-server/API.WindowsService/Models/AudioJobRequestModel.cs | using System.ComponentModel.DataAnnotations;
using API.WindowsService.Validators;
using Contract;
using FluentValidation.Attributes;
namespace API.WindowsService.Models
{
[Validator(typeof(AudioRequestValidator))]
public class AudioJobRequestModel : JobRequestModel
{
[Required]
public Audi... | using System.ComponentModel.DataAnnotations;
using API.WindowsService.Validators;
using Contract;
using FluentValidation.Attributes;
namespace API.WindowsService.Models
{
[Validator(typeof(AudioRequestValidator))]
public class AudioJobRequestModel : JobRequestModel
{
[Required]
public Audi... | Change DestinationFilenamePrefix to be a required field | Change DestinationFilenamePrefix to be a required field
| C# | bsd-3-clause | drdk/ffmpeg-farm,ongobongo/ffmpeg-farm |
566a20a623a5d82f73d4e11f6c2ea9836ce14566 | osu.Game/Overlays/Settings/Sections/UserInterface/GeneralSettings.cs | osu.Game/Overlays/Settings/Sections/UserInterface/GeneralSettings.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Localisation;
using osu.Game.Configuration;
using osu.Game.Graphics.UserInterface;
usin... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Localisation;
using osu.Game.Configuration;
using osu.Game.Graphics.UserInterface;
usin... | Add keyword "delay" to hold-to-confirm activation time setting | Add keyword "delay" to hold-to-confirm activation time setting
| C# | mit | NeoAdonis/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu |
d9fda4b63d1d748aade640bad87fc916e0048e06 | OutlookMatters/Settings/SaveCommand.cs | OutlookMatters/Settings/SaveCommand.cs | using System;
using System.Windows.Input;
namespace OutlookMatters.Settings
{
public class SaveCommand : ICommand
{
private readonly ISettingsSaveService _saveService;
private readonly IClosableWindow _window;
public SaveCommand(ISettingsSaveService saveService, IClosableWindow window... | using System;
using System.Windows.Input;
namespace OutlookMatters.Settings
{
public class SaveCommand : ICommand
{
private readonly ISettingsSaveService _saveService;
private readonly IClosableWindow _window;
public SaveCommand(ISettingsSaveService saveService, IClosableWindow window... | Refactor to build on Visual Studio 2013 | Refactor to build on Visual Studio 2013
| C# | mit | makmu/outlook-matters,maxlmo/outlook-matters,makmu/outlook-matters,maxlmo/outlook-matters |
d1d7ccee594bf0632e306d2019132051bfbfb18e | Console/Scripts/ConsoleAction.cs | Console/Scripts/ConsoleAction.cs | using UnityEngine;
using System.Collections;
public abstract class ConsoleAction : ActionBase {
public abstract void Activate();
}
| using UnityEngine;
using System.Collections;
public abstract class ConsoleAction : MonoBehaviour {
public abstract void Activate();
}
| Fix exception when including this in a project without TriggerAction | Fix exception when including this in a project without TriggerAction
| C# | bsd-3-clause | ShaneOBrien/unity3d-console,Bonemind/unity3d-console,mikelovesrobots/unity3d-console,davidaayers/unity3d-console |
a48f43ea9cd27fbddf3268b0d2e109f8492abc0a | src/AssemblyInfo.cs | src/AssemblyInfo.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System.Reflection;
using System.Runtime.CompilerServices;
//[assembly: AssemblyVersion("0.0.0.*")]
[assembly: AssemblyTitle ("NDesk.DBus")]
[assembly: AssemblyDescription ("D-Bus IPC ... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System.Reflection;
using System.Runtime.CompilerServices;
//[assembly: AssemblyVersion("0.0.0.*")]
[assembly: AssemblyTitle ("NDesk.DBus")]
[assembly: AssemblyDescription ("D-Bus IPC ... | Use the correct strong name for dbus-sharp-glib friend assembly | Use the correct strong name for dbus-sharp-glib friend assembly
| C# | mit | Tragetaschen/dbus-sharp,arfbtwn/dbus-sharp,openmedicus/dbus-sharp,Tragetaschen/dbus-sharp,mono/dbus-sharp,mono/dbus-sharp,arfbtwn/dbus-sharp,openmedicus/dbus-sharp |
dc8e2a49b6f4bb9e60e3f6b2d945279b6ed458b6 | src/BaseEnviron.cs | src/BaseEnviron.cs | using System;
using System.Collections.Generic;
namespace NValidate
{
public class BaseEnviron : Environ
{
readonly Dictionary<Type, Func<Environ, object>> _modelExtractors;
readonly Dictionary<Type, object> _models;
public BaseEnviron(Dictionary<Type, Func<Environ, objec... | using System;
using System.Collections.Generic;
namespace NValidate
{
public class BaseEnviron : Environ
{
readonly Dictionary<Type, Func<Environ, object>> _modelExtractors;
readonly Dictionary<Type, object> _models;
public BaseEnviron(Dictionary<Type, Func<Environ, objec... | Add a builder for the base environ, so it's easier to work with | Add a builder for the base environ, so it's easier to work with
| C# | mit | horia141/nvalidate,horia141/nvalidate |
7a810ae15e0c43dec52eb56136b0ecb29708c2b0 | NATS.Client/Srv.cs | NATS.Client/Srv.cs | // Copyright 2015 Apcera Inc. All rights reserved.
using System;
namespace NATS.Client
{
// Tracks individual backend servers.
internal class Srv
{
internal Uri url = null;
internal bool didConnect = false;
internal int reconnects = 0;
internal DateTime lastAtt... | // Copyright 2015 Apcera Inc. All rights reserved.
using System;
namespace NATS.Client
{
// Tracks individual backend servers.
internal class Srv
{
internal Uri url = null;
internal bool didConnect = false;
internal int reconnects = 0;
internal DateTime lastAtt... | Fix problem with parsing server url. | Fix problem with parsing server url.
When passed urlString starts with ‘nats’ (like ‘nats.domain.com’) the protocol supplement will be skipped and connection will fail.
| C# | mit | stephenjannin/csnats,nats-io/csnats |
5f5fec0b35b6685b24c6380d8e398cb8a495007f | DataDefinitions/Body.cs | DataDefinitions/Body.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EddiDataDefinitions
{
/// <summary>
/// A star or planet
/// </summary>
public class Body
{
/// <summary>The ID of this body in EDDB</summary>
public long E... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EddiDataDefinitions
{
/// <summary>
/// A star or planet
/// </summary>
public class Body
{
/// <summary>The ID of this body in EDDB</summary>
public long E... | Increase precision of 'g', as requested. | Increase precision of 'g', as requested.
| C# | apache-2.0 | cmdrmcdonald/EliteDangerousDataProvider |
72fc4d3d0ac705ec56951e41f5fb709d4b347af7 | DependencyKata.Tests/DoItAllTests.cs | DependencyKata.Tests/DoItAllTests.cs | using NSubstitute;
using NUnit.Framework;
namespace DependencyKata.Tests
{
[TestFixture]
public class DoItAllTests
{
[Test, Category("Integration")]
public void DoItAll_Does_ItAll()
{
var expected = "The passwords don't match";
var io = Substitute.For<IOutpu... | using NSubstitute;
using NUnit.Framework;
namespace DependencyKata.Tests
{
[TestFixture]
public class DoItAllTests
{
[Test, Category("Integration")]
public void DoItAll_Does_ItAll()
{
var expected = "The passwords don't match";
var io = Substitute.For<IOutpu... | Update Step 3 - Remove integration test category. | Update Step 3 - Remove integration test category.
| C# | mit | dubmun/DependencyKata |
b9b164116493444b2bcbe673799038579dee084d | MeidoBot/Plugins/PluginExtensions.cs | MeidoBot/Plugins/PluginExtensions.cs | using System.Collections.Generic;
using MeidoCommon;
namespace MeidoBot
{
public static class PluginExtensions
{
public static string Name(this IMeidoHook plugin)
{
string name = plugin.Name.Trim();
switch (name)
{
case "":
c... | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using MeidoCommon;
namespace MeidoBot
{
public static class PluginExtensions
{
public static string Name(this IMeidoHook plugin)
{
string name = plugin.Name.Trim();
switch (name)
... | Extend TriggerHelp for querying help | MeidoBot: Extend TriggerHelp for querying help
| C# | bsd-2-clause | IvionSauce/MeidoBot |
ba974268d8bfdebcd7ea0f3b1125728104bf864a | Sloth/Sloth/Core/WinUtilities.cs | Sloth/Sloth/Core/WinUtilities.cs | using Sloth.Interfaces.Core;
using System;
namespace Sloth.Core
{
public class WinUtilities : IWinUtilities
{
public IntPtr FindControlHandle(IntPtr windowsHandle, string controlName)
{
throw new NotImplementedException();
}
public IntPtr FindWindowsHandle(string c... | using Sloth.Interfaces.Core;
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace Sloth.Core
{
public class WinUtilities : IWinUtilities
{
public IntPtr FindControlHandle(IntPtr windowsHandle, string controlName)
{
throw new NotImplementedException();
... | Add user32 function in winutilities | Add user32 function in winutilities
| C# | mit | CindyB/sloth |
1f1a15b5614fc2c239f5fc9793824975f740bdda | Framework.Cli/Command/CommandStart.cs | Framework.Cli/Command/CommandStart.cs | namespace Framework.Cli.Command
{
/// <summary>
/// Cli start command.
/// </summary>
public class CommandStart : CommandBase
{
public CommandStart(AppCli appCli)
: base(appCli, "start", "Start server and open browser")
{
}
protected internal override v... | namespace Framework.Cli.Command
{
using System.Runtime.InteropServices;
/// <summary>
/// Cli start command.
/// </summary>
public class CommandStart : CommandBase
{
public CommandStart(AppCli appCli)
: base(appCli, "start", "Start server and open browser")
{
... | Update for cli start command on Ubuntu | Update for cli start command on Ubuntu
| C# | mit | WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework |
e63393c1996c40ad7c9bd420d061963ef5596d88 | Core2D.Sample/Program.cs | Core2D.Sample/Program.cs | // Copyright (c) Wiesław Šoltés. 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.Linq;
using System.Text;
using System.Threading.Tasks;
using Dependencies;
namespace Core2D.Sample
{
... | // Copyright (c) Wiesław Šoltés. 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.Linq;
using System.Text;
using System.Threading.Tasks;
using Dependencies;
namespace Core2D.Sample
{
... | Create project and editor explicitly | Create project and editor explicitly
| C# | mit | Core2D/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D |
e8537d34af2037c6a6381f44c1a8b7d8025556a1 | Shippo/BatchShipment.cs | Shippo/BatchShipment.cs | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Shippo
{
[JsonObject (MemberSerialization.OptIn)]
public class BatchShipment : ShippoId
{
[JsonProperty (PropertyName = "object_status")]
public string ObjectStatus;
[JsonProperty (PropertyName = "car... | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Shippo
{
[JsonObject (MemberSerialization.OptIn)]
public class BatchShipment : ShippoId
{
[JsonProperty (PropertyName = "object_status")]
public string ObjectStatus;
[JsonProperty (PropertyName = "car... | Change messages attribute to type "object" | Change messages attribute to type "object"
| C# | apache-2.0 | goshippo/shippo-csharp-client |
a6d9adb5bff9d790342bed1413b1afab1fb36b53 | ThrottleSample/Sample.cs | ThrottleSample/Sample.cs | using System;
using System.Threading;
using System.Windows.Threading;
using Throttle;
using Xunit;
using TomsToolbox.Desktop;
public class ThrottleSample
{
int throttledCalls;
[Fact]
public void Run()
{
var dispatcher = Dispatcher.CurrentDispatcher;
dispatcher.BeginInvoke(() =>
... | using System;
using System.Threading;
using System.Windows.Threading;
using Throttle;
using Xunit;
using TomsToolbox.Desktop;
public class ThrottleSample
{
int throttledCalls;
[Fact]
public void Run()
{
var dispatcher = Dispatcher.CurrentDispatcher;
dispatcher.BeginInvoke(() =>
... | Adjust timing ratio to prevent occasional failing | Adjust timing ratio to prevent occasional failing
| C# | mit | Fody/FodyAddinSamples,Fody/FodyAddinSamples |
80e7e473470bef732381c782b412e6925c8bab2d | NET/Demos/Console/Blink/Program.cs | NET/Demos/Console/Blink/Program.cs | using System;
using Treehopper;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Collections.Generic;
using System.Threading;
namespace Blink
{
/// <summary>
/// This demo blinks the built-in LED using async programming.
/// </summary>
class Program
{
static Treehopper... | using System;
using Treehopper;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Collections.Generic;
using System.Threading;
namespace Blink
{
/// <summary>
/// This demo blinks the built-in LED using async programming.
/// </summary>
class Program
{
static Treehopper... | Remove random SoftPwm test code | Remove random SoftPwm test code
| C# | mit | treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk |
26b7aaa76ea8c53e8f0aafc796c12652f3a2eee6 | src/biz.dfch.CS.Appclusive.UI/Views/Shared/DisplayTemplates/Acl.cshtml | src/biz.dfch.CS.Appclusive.UI/Views/Shared/DisplayTemplates/Acl.cshtml | @model biz.dfch.CS.Appclusive.UI.Models.Core.Acl
@using biz.dfch.CS.Appclusive.UI.App_LocalResources
@if (Model != null && !string.IsNullOrEmpty(Model.Name))
{
if (biz.dfch.CS.Appclusive.UI.Navigation.PermissionDecisions.Current.HasPermission(Model.GetType(), "CanRead"))
{
string id = (string)ViewCont... | @model biz.dfch.CS.Appclusive.UI.Models.Core.Acl
@using biz.dfch.CS.Appclusive.UI.App_LocalResources
@if (Model != null && !string.IsNullOrEmpty(Model.Name))
{
if (biz.dfch.CS.Appclusive.UI.Navigation.PermissionDecisions.Current.HasPermission(Model.GetType(), "CanRead"))
{
string id = (string)ViewCont... | Fix Navigation link on acl | Fix Navigation link on acl
| C# | apache-2.0 | dfensgmbh/biz.dfch.CS.Appclusive.UI,dfensgmbh/biz.dfch.CS.Appclusive.UI,dfch/biz.dfch.CS.Appclusive.UI,dfch/biz.dfch.CS.Appclusive.UI,dfch/biz.dfch.CS.Appclusive.UI |
bb4b9f84040af3fdd43111a50e90bd92e6be5cd4 | MichaelsMusic/Views/Shared/Components/_Header.cshtml | MichaelsMusic/Views/Shared/Components/_Header.cshtml | <header class="main-header">
<div class="row">
<div class="column">
<ul class="menu">
<li class="mobile-expand" id="mobile-expand">
<a href="#">
<i class="fa fa-align-justify"></i>
</a>
</li>
... | <header class="main-header">
<div class="row">
<div class="column">
<ul class="menu">
<li class="mobile-expand" id="mobile-expand">
<a href="#">
<i class="fa fa-align-justify"></i>
</a>
</li>
... | Remove drop menus from main menu | Remove drop menus from main menu
| C# | mit | michaelp0730/MichaelsMusic,michaelp0730/MichaelsMusic,michaelp0730/MichaelsMusic |
bd75a2f43aaa42d0e063a8226bfac5badd8ebc97 | PathfinderAPI/BaseGameFixes/Performance/NodeLookup.cs | PathfinderAPI/BaseGameFixes/Performance/NodeLookup.cs | using System.Collections.Generic;
using Hacknet;
using HarmonyLib;
using Pathfinder.Event;
using Pathfinder.Event.Loading;
using Pathfinder.Util;
namespace Pathfinder.BaseGameFixes.Performance
{
[HarmonyPatch]
internal static class NodeLookup
{
[HarmonyPostfix]
[HarmonyPatch(typeof(List<Co... | using System.Collections.Generic;
using Hacknet;
using HarmonyLib;
using Pathfinder.Event;
using Pathfinder.Event.Loading;
using Pathfinder.Util;
namespace Pathfinder.BaseGameFixes.Performance
{
[HarmonyPatch]
internal static class NodeLookup
{
[HarmonyPostfix]
[HarmonyPatch(typeof(List<Co... | Make sure playerComp is in the node lookup list | Make sure playerComp is in the node lookup list
| C# | mit | Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder |
151d717005bfe5e9d452c0148afcc6eee2e813d7 | SSLLWrapper.ConsoleAppTester/Program.cs | SSLLWrapper.ConsoleAppTester/Program.cs | using System;
using System.Linq;
namespace SSLLWrapper.ConsoleAppTester
{
class Program
{
private const string apiUrl = "https://api.dev.ssllabs.com/api/fa78d5a4";
static void Main(string[] args)
{
AnalyzeTester();
}
static void AnalyzeTester()
{
var apiService = new ApiService(apiUrl);
var a... | using System;
using System.Linq;
namespace SSLLWrapper.ConsoleAppTester
{
class Program
{
private const string ApiUrl = "https://api.dev.ssllabs.com/api/fa78d5a4";
static readonly ApiService ApiService = new ApiService(ApiUrl);
static void Main(string[] args)
{
//AnalyzeTester();
//InfoTester();
G... | Add GetEndpointData manual test to ConsoleAppTester | Add GetEndpointData manual test to ConsoleAppTester
| C# | mit | AshleyPoole/ssllabs-api-wrapper |
e31104dc7da75dab3a01920bd52366fd991c1843 | MonoMod/DebugIL/DebugILGeneratorExt.cs | MonoMod/DebugIL/DebugILGeneratorExt.cs | using Mono.Cecil;
using Mono.Cecil.Cil;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace MonoMod.DebugIL {
public static class DebugILGeneratorExt {
public readonly static Type ... | using Mono.Cecil;
using Mono.Cecil.Cil;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace MonoMod.DebugIL {
public static class DebugILGeneratorExt {
public readonly static Type ... | Use element type name for variable names | DbgILGen: Use element type name for variable names
| C# | mit | zatherz/MonoMod,0x0ade/MonoMod,AngelDE98/MonoMod |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.