commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
69114c45fbb6471710a106967ceeeb2cfefc5c76 | Remove empty line | henrikfroehling/TraktApiSharp | Source/Lib/TraktApiSharp/Objects/Post/Comments/ITraktCommentReplyPost.cs | Source/Lib/TraktApiSharp/Objects/Post/Comments/ITraktCommentReplyPost.cs | namespace TraktApiSharp.Objects.Post.Comments
{
public interface ITraktCommentReplyPost : ITraktCommentUpdatePost
{
}
}
| namespace TraktApiSharp.Objects.Post.Comments
{
public interface ITraktCommentReplyPost : ITraktCommentUpdatePost
{
}
}
| mit | C# |
108701c8d51088795a537e007a3e8dab1b2965eb | Update ExchangeRateRepository.cs | tiksn/TIKSN-Framework | TIKSN.Core/Finance/ForeignExchange/Data/LiteDB/ExchangeRateRepository.cs | TIKSN.Core/Finance/ForeignExchange/Data/LiteDB/ExchangeRateRepository.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using LiteDB;
using TIKSN.Data.LiteDB;
namespace TIKSN.Finance.ForeignExchange.Data.LiteDB
{
public class ExchangeRateRepository : LiteDbRepository<ExchangeRateEntity, Guid>, IExchangeRateReposi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using LiteDB;
using TIKSN.Data.LiteDB;
namespace TIKSN.Finance.ForeignExchange.Data.LiteDB
{
public class ExchangeRateRepository : LiteDbRepository<ExchangeRateEntity, Guid>, IExchangeRateReposi... | mit | C# |
91e43c172225427bb56cddfc8ea23d5e3d8e0406 | Update ExchangeRateRepository.cs | tiksn/TIKSN-Framework | TIKSN.Core/Finance/ForeignExchange/Data/LiteDB/ExchangeRateRepository.cs | TIKSN.Core/Finance/ForeignExchange/Data/LiteDB/ExchangeRateRepository.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using LiteDB;
using TIKSN.Data.LiteDB;
namespace TIKSN.Finance.ForeignExchange.Data.LiteDB
{
public class ExchangeRateRepository : LiteDbRepository<ExchangeRateEntity, int>, IExchangeRateReposi... | using LiteDB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using TIKSN.Data.LiteDB;
namespace TIKSN.Finance.ForeignExchange.Data.LiteDB
{
public class ExchangeRateRepository : LiteDbRepository<ExchangeRateEntity, int>, IExchangeRateReposi... | mit | C# |
9937a26694132bac63fc49735a97749df8e59bed | Add force solve handler to Simon Says | CaitSith2/KtaneTwitchPlays,samfun123/KtaneTwitchPlays | TwitchPlaysAssembly/Src/ComponentSolvers/Vanilla/SimonComponentSolver.cs | TwitchPlaysAssembly/Src/ComponentSolvers/Vanilla/SimonComponentSolver.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
public class SimonComponentSolver : ComponentSolver
{
public SimonComponentSolver(BombCommander bombCommander, SimonComponent bombComponent) :
base(bombCommander, bombComponent)
{
_buttons = ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
public class SimonComponentSolver : ComponentSolver
{
public SimonComponentSolver(BombCommander bombCommander, SimonComponent bombComponent) :
base(bombCommander, bombComponent)
{
_buttons = ... | mit | C# |
1b9ab2494053921faeb9d71d6a4eb0165fccbfc5 | remove redundant using | config-r/config-r | tests/ConfigR.Tests.Acceptance.Roslyn.CSharp/DefaultValuesFeature.cs | tests/ConfigR.Tests.Acceptance.Roslyn.CSharp/DefaultValuesFeature.cs | // <copyright file="DefaultValuesFeature.cs" company="ConfigR contributors">
// Copyright (c) ConfigR contributors. (configr.net@gmail.com)
// </copyright>
namespace ConfigR.Tests.Acceptance
{
using ConfigR.Tests.Acceptance.Roslyn.CSharp.Support;
using FluentAssertions;
using Xbehave;
publi... | // <copyright file="DefaultValuesFeature.cs" company="ConfigR contributors">
// Copyright (c) ConfigR contributors. (configr.net@gmail.com)
// </copyright>
namespace ConfigR.Tests.Acceptance
{
using System.IO;
using ConfigR.Tests.Acceptance.Roslyn.CSharp.Support;
using FluentAssertions;
using... | mit | C# |
9c387495af2acf41e8f72b53a8e7d16f413635df | add option for client generated ids | Research-Institute/json-api-dotnet-core,Research-Institute/json-api-dotnet-core,json-api-dotnet/JsonApiDotNetCore | src/JsonApiDotNetCore/Configuration/JsonApiOptions.cs | src/JsonApiDotNetCore/Configuration/JsonApiOptions.cs | namespace JsonApiDotNetCore.Configuration
{
public class JsonApiOptions
{
public string Namespace { get; set; }
public int DefaultPageSize { get; set; }
public bool IncludeTotalRecordCount { get; set; }
public bool AllowClientGeneratedIds { get; set; }
}
}
| namespace JsonApiDotNetCore.Configuration
{
public class JsonApiOptions
{
public string Namespace { get; set; }
public int DefaultPageSize { get; set; }
public bool IncludeTotalRecordCount { get; set; }
}
}
| mit | C# |
98b7bc426cd34a6a2b90d65ca8d2ce7118e1fa2e | update version | Fody/Equals | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Foody.Equals")]
[assembly: AssemblyProduct("Foody.Equals")]
[assembly: AssemblyVersion("1.2.1.0")]
[assembly: AssemblyFileVersion("1.2.1.0")]
| using System.Reflection;
[assembly: AssemblyTitle("Foody.Equals")]
[assembly: AssemblyProduct("Foody.Equals")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
| mit | C# |
2d29f3d80c105ea8e21af38961a87f87bff82063 | Update ValidationAttribute.cs | WebApiContrib/WebAPIContrib.Core,WebApiContrib/WebAPIContrib.Core | src/WebApiContrib.Core/Filters/ValidationAttribute.cs | src/WebApiContrib.Core/Filters/ValidationAttribute.cs | using System.Linq;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using System.Collections.Generic;
namespace WebApiContrib.Core.Filters
{
public class ValidationAttribute : ActionFilterAttribute
{
public bool AllowNull { get; set; }
public override void OnActionExecu... | using System.Linq;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using System.Collections.Generic;
namespace WebApiContrib.Core.Filters
{
public class ValidationAttribute : ActionFilterAttribute
{
public bool AllowNull { get; }
public override void OnActionExecuting(... | mit | C# |
c0d252eec6c41adbc36aa134afff5c2c8d8068c9 | Add network behaviour to invoke click over network. | purple-movies/expanse_bundle_lib | OnClickInvoker.cs | OnClickInvoker.cs | using UnityEngine;
using UnityEngine.EventSystems;
using System.Collections.Generic;
using System;
using UnityEngine.Events;
using UnityEngine.Networking;
public class OnClickInvoker : NetworkBehaviour
{
[Serializable] public class TriggerEvent : UnityEvent<BaseEventData>
{ }
[Serializable] public class ... | using UnityEngine;
using UnityEngine.EventSystems;
using System.Collections.Generic;
using System;
using UnityEngine.Events;
public class OnClickInvoker : MonoBehaviour
{
[Serializable] public class TriggerEvent : UnityEvent<BaseEventData>
{ }
[Serializable] public class Entry
{
public EventT... | apache-2.0 | C# |
344de78256586085f7cda40101e3dc21f6a2ed03 | Update CreatePivotChart.cs | aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-as... | Examples/CSharp/Articles/CreatePivotTablesPivotCharts/CreatePivotChart.cs | Examples/CSharp/Articles/CreatePivotTablesPivotCharts/CreatePivotChart.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Articles.CreatePivotTablesPivotCharts
{
public class CreatePivotChart
{
public static void Main()
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Example... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Articles.CreatePivotTablesPivotCharts
{
public class CreatePivotChart
{
public static void Main()
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(Syste... | mit | C# |
cb9a7776068645f55c97045345ccb7bf3aca7013 | Add LocationCompleter to SiteRecovery cmdlets | ClogenyTechnologies/azure-powershell,naveedaz/azure-powershell,naveedaz/azure-powershell,AzureAutomationTeam/azure-powershell,naveedaz/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,devigned/azure-powershell,devigned/azure-powershell,ClogenyTechnologies/azure-powershell,Cloge... | src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Vault/NewAzureSiteRecoveryVault.cs | src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Vault/NewAzureSiteRecoveryVault.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 | C# |
344b37fc27c39117eed9a8764393090695604788 | Update error message for net standard/UAP. (#3409) | AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet | src/client/Microsoft.Identity.Client/Platforms/netstandard13/NetStandard13WebUIFactory.cs | src/client/Microsoft.Identity.Client/Platforms/netstandard13/NetStandard13WebUIFactory.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Microsoft.Identity.Client.ApiConfig.Parameters;
using Microsoft.Identity.Client.Internal;
using Microsoft.Identity.Client.PlatformsCommon.Shared;
using Microsoft.Identity.Client.UI;
namespace Microsoft... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Microsoft.Identity.Client.ApiConfig.Parameters;
using Microsoft.Identity.Client.Internal;
using Microsoft.Identity.Client.PlatformsCommon.Shared;
using Microsoft.Identity.Client.UI;
namespace Microsoft... | mit | C# |
1528bad16d973dbb8010db6d9dbd35f21dca3d3c | Add test for ReadTableOfContentsRequestProcessor. | Milyli/DocMAH,Milyli/DocMAH,Milyli/DocMAH | DocMAH.UnitTests/Web/Requests/Processors/ReadTableOfContentsRequestProcessorTestFixture.cs | DocMAH.UnitTests/Web/Requests/Processors/ReadTableOfContentsRequestProcessorTestFixture.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using DocMAH.Data;
using DocMAH.Models;
using DocMAH.Web.Authorization;
using DocMAH.Web.Requests;
using DocMAH.Web.Requests.Processors;
using NUnit.Framework;
namespace D... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace DocMAH.UnitTests.Web.Requests.Processors
{
[TestFixture]
public class ReadTableOfContentsRequestProcessorTestFixture
{
#region Tests
[Test]
[Des... | mit | C# |
b460bc7726b7ad630b3c1400e39888f2ebc925d9 | allow running [MenuItem] method with return value (#1943) | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/CSharp/Rider/Host/Features/RunMarkers/UnityRunMarkerUtil.cs | resharper/resharper-unity/src/CSharp/Rider/Host/Features/RunMarkers/UnityRunMarkerUtil.cs | using System.Linq;
using JetBrains.Annotations;
using JetBrains.ReSharper.Psi;
using JetBrains.Util;
namespace JetBrains.ReSharper.Plugins.Unity.CSharp.Rider.Host.Features.RunMarkers
{
public static class UnityRunMarkerUtil
{
[Pure]
public static bool IsSuitableStaticMethod([NotNull] IMethod me... | using System.Linq;
using JetBrains.Annotations;
using JetBrains.ReSharper.Psi;
using JetBrains.Util;
namespace JetBrains.ReSharper.Plugins.Unity.CSharp.Rider.Host.Features.RunMarkers
{
public static class UnityRunMarkerUtil
{
[Pure]
public static bool IsSuitableStaticMethod([NotNull] IMethod me... | apache-2.0 | C# |
dee593b39fbda588880cbc19510bce1e21d45b7d | Remove useless symbols | PKI-InVivo/reactive-domain | src/ReactiveDomain.Foundation.Tests/PrefixedCamelCaseStreamNameBuilderTests.cs | src/ReactiveDomain.Foundation.Tests/PrefixedCamelCaseStreamNameBuilderTests.cs | using ReactiveDomain.Foundation.Testing;
using System;
using Xunit;
namespace ReactiveDomain.Foundation.Tests
{
[Collection(nameof(EventStoreCollection))]
public class PrefixedCamelCaseStreamNameBuilderTests
{
[Fact]
public void ThrowsOnNonExplicitNullOrEmptyPrefix()
{
... | using ReactiveDomain.Foundation.Testing;
using System;
using Xunit;
namespace ReactiveDomain.Foundation.Tests
{
[Collection(nameof(EventStoreCollection))]
public class PrefixedCamelCaseStreamNameBuilderTests
{
[Fact]
public void ThrowsOnNonExplicitNullOrEmptyPrefix()
{
... | mit | C# |
129fa8d73a9a130364538513ba6825d634bf6b3c | Enable MonsterFixUp test | ErikEJ/EntityFramework7.SqlServerCompact,ErikEJ/EntityFramework.SqlServerCompact | test/EntityFramework.SqlServerCompact.FunctionalTests/MonsterFixUpSqlCeTest.cs | test/EntityFramework.SqlServerCompact.FunctionalTests/MonsterFixUpSqlCeTest.cs | using System;
using System.Data.SqlServerCe;
using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;
using Microsoft.EntityFrameworkCore.Specification.Tests.TestModels;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.EntityFrameworkCore.TestModels;
namespace Microsoft.EntityFrameworkCore.Specific... | using System;
using System.Data.SqlServerCe;
using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;
using Microsoft.EntityFrameworkCore.Specification.Tests.TestModels;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.EntityFrameworkCore.Specification.Tests
{
//public class MonsterFixupSql... | apache-2.0 | C# |
2dd2ea31a1c346a7442ddef29e86e8d6599d8cc2 | Fix port | cmusatyalab/gabriel,cmusatyalab/gabriel,cmusatyalab/gabriel | client/legacy-hololens-client/gabriel-holo-client/Assets/Scripts/Const.cs | client/legacy-hololens-client/gabriel-holo-client/Assets/Scripts/Const.cs | #if !UNITY_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace gabriel_client
{
class Const
{
// whether to do a demo or a set of experiments
public static bool IS_EXPERIMENT = false;
// whether to use re... | #if !UNITY_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace gabriel_client
{
class Const
{
// whether to do a demo or a set of experiments
public static bool IS_EXPERIMENT = false;
// whether to use re... | apache-2.0 | C# |
8c2daa1dbce9b79a6a500bb38e9c43362e7a9d94 | comment on code behind | Esri/visibility-addin-dotnet | source/ArcMapAddinVisibility/ArcMapAddinVisibility/Views/LLOSView.xaml.cs | source/ArcMapAddinVisibility/ArcMapAddinVisibility/Views/LLOSView.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | apache-2.0 | C# |
26e7a3f157ced6e6fb0ab01f05b9ec2abe2ab862 | add license header | johnneijzen/osu,peppy/osu,NeoAdonis/osu,ppy/osu,naoey/osu,naoey/osu,Nabile-Rahmani/osu,UselessToucan/osu,Drezi126/osu,ZLima12/osu,NeoAdonis/osu,NeoAdonis/osu,2yangk23/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,johnneijzen/osu,smoogipooo/osu,DrabWeb/osu,DrabWeb/osu,EVAST9919/osu,ppy/osu,EVAST9919/osu,ZLima12/... | osu.Game/Audio/AudioLoadWrapper.cs | osu.Game/Audio/AudioLoadWrapper.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics;
using osu.Game.Beatmaps;
using System;... | using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics;
using osu.Game.Beatmaps;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace osu.Game.Audio
{
public clas... | mit | C# |
f64d01e42f4576d0965f904a79238cce141cd855 | Apply rendering code, now need to test | austinmao/reduxity,austinmao/reduxity | Assets/Scripts/ReduxMovementLookExample/Renderers/MoveCamera.cs | Assets/Scripts/ReduxMovementLookExample/Renderers/MoveCamera.cs | using UnityEngine;
using UniRx;
namespace Reduxity.Example.PlayerMovementLook {
[RequireComponent(typeof(Camera))]
public class MoveCamera : MonoBehaviour {
private Camera camera_;
private void Awake() {
camera_ = GetComponent<Camera>();
}
void Start() {
... | using UnityEngine;
using UniRx;
namespace Reduxity.Example.PlayerMovementLook {
[RequireComponent(typeof(Camera))]
public class MoveCamera : MonoBehaviour {
private Camera camera_;
private void Awake() {
camera_ = GetComponent<Camera>();
}
void Start() {
... | mit | C# |
93c2aced808ecb9b8697934b0beec04df71e4563 | Update CitiesByContinentAndCounry.cs | IPetrov007/Softuni-Programing-Fundamentals | AdvancedCollections/AdvancedCollections/02_Cities/CitiesByContinentAndCounry.cs | AdvancedCollections/AdvancedCollections/02_Cities/CitiesByContinentAndCounry.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02_CitiesByCountryAndContinent
{
class Program
{
static void Main(string[] args)
{
var citiesData = new Dictionary<string, Dictionary<string, List<string>>... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02_CitiesByCountryAndContinent
{
class Program
{
static void Main(string[] args)
{
var citiesData = new Dictionary<string, Dictionary<string, List<string>>... | mit | C# |
fd0c6fb026c8d6e664b6bf8f4e85decbb814c8a5 | make editor have multiline for debug | greggman/hft-unity3d,greggman/hft-unity3d,greggman/hft-unity3d,greggman/hft-unity3d | Assets/HappyFunTimes/HappyFunTimesCore/Editor/HFTHappyFunTimesSettingsEditor.cs | Assets/HappyFunTimes/HappyFunTimesCore/Editor/HFTHappyFunTimesSettingsEditor.cs | /*
* Copyright 2014, Gregg Tavares.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | /*
* Copyright 2014, Gregg Tavares.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | bsd-3-clause | C# |
d968f5a21e49ee127126d578add6f21e8dc2dddc | Bump version up. | mr-bt/Eos,mr-bt/Eos | Eos.Atomic/Properties/AssemblyInfo.cs | Eos.Atomic/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("Eo... | 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("Eo... | mit | C# |
b642d2dba85bfa6231069f8ee43b02f972c88ed3 | Add implementation for simple cache using Dictionary | iperoyg/faqtemplatebot | FaqTemplate.Infrastructure/Services/SimpleMemoryCacheService.cs | FaqTemplate.Infrastructure/Services/SimpleMemoryCacheService.cs | using FaqTemplate.Core.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FaqTemplate.Infrastructure.Services
{
public class SimpleMemoryCacheService<T> : ICacheService<T>
{
private IDictionary<string, T> _cache;
... | using FaqTemplate.Core.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FaqTemplate.Infrastructure.Services
{
public class SimpleMemoryCacheService<T> : ICacheService<T>
{
public Task AddOrUpdate(string key, T value... | mit | C# |
e18bdd156de64961237b2b84f1b79ce876d380c8 | Revert "Added ability to have more than one dynamic placeholder in the same rendering" | Fortis-Collection/dynamic-placeholders-mvc | Source/DynamicPlaceholders.Mvc/Extensions/SitecoreHelperExtensions.cs | Source/DynamicPlaceholders.Mvc/Extensions/SitecoreHelperExtensions.cs | using Sitecore.Mvc.Helpers;
using Sitecore.Mvc.Presentation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace DynamicPlaceholders.Mvc.Extensions
{
public static class SitecoreHelperExtensions
{
public static HtmlString ... | using System.Linq;
using Sitecore.Mvc.Helpers;
using Sitecore.Mvc.Presentation;
using System.Collections.Generic;
using System.Web;
namespace DynamicPlaceholders.Mvc.Extensions
{
public static class SitecoreHelperExtensions
{
public static List<string> DynamicPlaceholders = new List<string>();
public static Ht... | mit | C# |
e47566ca4ea36922b50ea1071f6cc46c5f5a90a0 | Fix build | umbraco/Umbraco-CMS,hfloyd/Umbraco-CMS,dawoe/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,hfloyd/Umbraco-CMS,madsoulswe/Umbraco-CMS,leekelleher/Umbraco-CMS,bjarnef/Umbraco-CMS,mattbrailsford/Umbraco-CMS,arknu/Umbraco-CMS,rasmuseeg/Umbraco-CMS,rasmuseeg/Umbraco-CMS,dawoe/Umbraco-CMS,leekelleher/Umbraco-CMS,tcmorris/Umbraco... | src/Umbraco.Core/Persistence/Repositories/IDocumentBlueprintRepository.cs | src/Umbraco.Core/Persistence/Repositories/IDocumentBlueprintRepository.cs | namespace Umbraco.Core.Persistence.Repositories
{
public interface IDocumentBlueprintRepository : IDocumentRepository
{ }
}
| namespace Umbraco.Core.Persistence.Repositories
{
interface IDocumentBlueprintRepository : IDocumentRepository
{ }
}
| mit | C# |
cdb3d20fc62465946a98730452baf6a381da14e1 | Remove unnecessary warning suppression | NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu-new,UselessToucan/osu,peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu | osu.Game/Database/RealmWrapper.cs | osu.Game/Database/RealmWrapper.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.Threading;
using Realms;
namespace osu.Game.Database
{
public class RealmWrapper<T> : IEquatable<RealmWrapper<T>>
where T : RealmO... | // 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.Diagnostics.CodeAnalysis;
using System.Threading;
using Realms;
namespace osu.Game.Database
{
[SuppressMessage("ReSharper", "CA2225")]
... | mit | C# |
cee7957ba5fe3dd9cbbdc9179fe4cccb42282550 | Reduce test loop count | IWBWbiz/MultiMiner,nwoolls/MultiMiner,IWBWbiz/MultiMiner,nwoolls/MultiMiner | MultiMiner.Xgminer.Discovery.Tests/MinerFinderTests.cs | MultiMiner.Xgminer.Discovery.Tests/MinerFinderTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using System.Net;
namespace MultiMiner.Xgminer.Discovery.Tests
{
[TestClass]
public class MinerFinderTests
{
[TestMethod]
public void MinerFinder_FindsMiners()
{
const in... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using System.Net;
namespace MultiMiner.Xgminer.Discovery.Tests
{
[TestClass]
public class MinerFinderTests
{
[TestMethod]
public void MinerFinder_FindsMiners()
{
const in... | mit | C# |
a1b6e3534319c1ea48b38c05170d34eb9515490a | Convert StripeSubscriptionUpdateOptions.CancelAtPeriodEnd to property | stripe/stripe-dotnet,richardlawley/stripe.net | src/Stripe.net/Services/Subscriptions/StripeSubscriptionUpdateOptions.cs | src/Stripe.net/Services/Subscriptions/StripeSubscriptionUpdateOptions.cs | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
namespace Stripe
{
public class StripeSubscriptionUpdateOptions : SubscriptionSharedOptions
{
#region BillingCycleAnchor
public bool BillingCycleAnchorNow { get; set; }
public bool Billi... | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
namespace Stripe
{
public class StripeSubscriptionUpdateOptions : SubscriptionSharedOptions
{
#region BillingCycleAnchor
public bool BillingCycleAnchorNow { get; set; }
public bool Billi... | apache-2.0 | C# |
ab8528195323af2b40a034cafebf0e0e089300f9 | Handle missing account aggregation document | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Data/LevyAggregationRepository.cs | src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Data/LevyAggregationRepository.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Azure;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using Newtonsoft.Json;
using SFA.DAS.EmployerApprenticeshipsService.Domain;
using SFA.DAS.EmployerApprenticeshipsService.Domain.Data;
using SFA.DAS.Em... | using System.Threading.Tasks;
using Microsoft.Azure;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using Newtonsoft.Json;
using SFA.DAS.EmployerApprenticeshipsService.Domain;
using SFA.DAS.EmployerApprenticeshipsService.Domain.Data;
using SFA.DAS.EmployerApprenticeshipsService.Infra... | mit | C# |
df93ac5ad3679608ceb44547a9ba6ee0662ce6e0 | Fix platform check | Microsoft/ApplicationInsights-Xamarin | ApplicationInsightsXamarinSDK/ApplicationInsightsXamarin/AI.XamarinSDK.Abstractions/Utils.cs | ApplicationInsightsXamarinSDK/ApplicationInsightsXamarin/AI.XamarinSDK.Abstractions/Utils.cs | using System;
using Xamarin.Forms;
namespace AI.XamarinSDK.Abstractions
{
public class Utils
{
public Utils ()
{
}
public static Boolean IsSupportedPlatform(){
return (Device.OS == TargetPlatform.iOS || Device.OS == TargetPlatform.Android);
}
}
}
| using System;
using Xamarin.Forms;
namespace AI.XamarinSDK.Abstractions
{
public class Utils
{
public Utils ()
{
}
public static Boolean IsSupportedPlatform(){
return !(Device.OS == TargetPlatform.iOS || Device.OS == TargetPlatform.Android);
}
}
}
| mit | C# |
49eb09d2e8403021a23899ef44ba5b6e73911c9b | remove OutputCache from SidebarController | csyntax/BlogSystem | Source/BlogSystem.Web/Controllers/SidebarController.cs | Source/BlogSystem.Web/Controllers/SidebarController.cs | namespace BlogSystem.Web.Controllers
{
using System.Linq;
using System.Web.Mvc;
using Data.Models;
using Data.Repositories;
using ViewModels.Sidebar;
using ViewModels.Post;
using ViewModels.Page;
using Infrastructure.Extensions;
public class SidebarController : BaseController
{... | namespace BlogSystem.Web.Controllers
{
using System.Linq;
using System.Web.Mvc;
using Data.Models;
using Data.Repositories;
using ViewModels.Sidebar;
using ViewModels.Post;
using ViewModels.Page;
using Infrastructure.Extensions;
public class SidebarController : BaseController
{... | mit | C# |
b68551994d274b5fa03041c9949c09f7beb6da66 | revert unrelated changes | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/Behaviors/SplitViewAutoBehavior.cs | WalletWasabi.Fluent/Behaviors/SplitViewAutoBehavior.cs | using Avalonia;
using Avalonia.Controls;
using Avalonia.Xaml.Interactivity;
using System;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using ReactiveUI;
namespace WalletWasabi.Fluent.Behaviors
{
public class SplitViewAutoBehavior : Behavior<SplitView>
{
private bool _sidebarWasForceClosed;
pri... | using Avalonia;
using Avalonia.Controls;
using Avalonia.Xaml.Interactivity;
using System;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using ReactiveUI;
namespace WalletWasabi.Fluent.Behaviors
{
public class SplitViewAutoBehavior : Behavior<SplitView>
{
private bool _sidebarWasForceClosed;
pri... | mit | C# |
3a876ea10cdb110bca55bdb69666eb0060b35486 | Correct HelpCenter.Categories namespace | dcrowe/ZendeskApi_v2,mattnis/ZendeskApi_v2,CKCobra/ZendeskApi_v2,mwarger/ZendeskApi_v2 | ZendeskApi_v2/Models/HelpCenter/Categories/Category.cs | ZendeskApi_v2/Models/HelpCenter/Categories/Category.cs | // Generated by Xamasoft JSON Class Generator
// http://www.xamasoft.com/json-class-generator
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace ZendeskApi_v2.Models.HelpCenter.Categories
{
public class Category
{
[JsonProperty("id")]
... | // Generated by Xamasoft JSON Class Generator
// http://www.xamasoft.com/json-class-generator
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace ZendeskApi_v2.Models.HelpCenter
{
public class Category
{
[JsonProperty("id")]
public lo... | apache-2.0 | C# |
65dced7bac9fd04f826b3e3f51d47e9ce43103fa | add define guard | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/PlayerSettingTools/PlayerSettingTools.cs | Unity/PlayerSettingTools/PlayerSettingTools.cs | /**
MIT License
Copyright (c) 2017 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | /**
MIT License
Copyright (c) 2017 NDark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | mit | C# |
053532387ea8697dfb4f520f8bf78a94d65c77a9 | Fix whitespace | mono/xwt,antmicro/xwt | Xwt.XamMac/Xwt.Mac/NSApplicationInitializer.cs | Xwt.XamMac/Xwt.Mac/NSApplicationInitializer.cs | //
// NSApplicationInitializer.cs
//
// Author:
// Lluis Sanchez Gual <lluis@xamarin.com>
//
// Copyright (c) 2016 Xamarin, Inc (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to d... | //
// NSApplicationInitializer.cs
//
// Author:
// Lluis Sanchez Gual <lluis@xamarin.com>
//
// Copyright (c) 2016 Xamarin, Inc (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to d... | mit | C# |
119fa558b69e3c7fb75364d522ea4793575d1fa4 | Bump version | Heufneutje/AudioSharp,Heufneutje/HeufyAudioRecorder | SharedAssemblyInfo.cs | SharedAssemblyInfo.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: AssemblyConfigurat... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfigurat... | mit | C# |
4b817e72d5aa8bc27f19ac4b6bf2fd93e637b439 | Remove unused test code | SteamDatabase/ValveResourceFormat | Tests/TextureTests.cs | Tests/TextureTests.cs | using System.IO;
using NUnit.Framework;
using ValveResourceFormat;
using ValveResourceFormat.ResourceTypes;
namespace Tests
{
public class TextureTests
{
[Test]
public void ExportTextures()
{
var path = Path.Combine(TestContext.CurrentContext.TestDirectory, "Files", "Texture... | using System.IO;
using NUnit.Framework;
using SkiaSharp;
using ValveResourceFormat;
using ValveResourceFormat.ResourceTypes;
namespace Tests
{
public class TextureTests
{
[Test]
public void ExportTextures()
{
var path = Path.Combine(TestContext.CurrentContext.TestDirectory, ... | mit | C# |
14ee65432b6668c0ad5dc23bf2a1a159c3e417dc | Update version | bartlomiejwolk/Annotation | TodoComponent/Todo.cs | TodoComponent/Todo.cs | // Copyright (c) 2015 Bartlomiej Wolk (bartlomiejwolk@gmail.com)
//
// This file is part of the Annotation extension for Unity.
// Licensed under the MIT license. See LICENSE file in the project root folder.
using UnityEngine;
namespace AnnotationEx.TodoComponent {
public sealed class Todo : MonoBehaviour {
... | // Copyright (c) 2015 Bartlomiej Wolk (bartlomiejwolk@gmail.com)
//
// This file is part of the Annotation extension for Unity.
// Licensed under the MIT license. See LICENSE file in the project root folder.
using UnityEngine;
namespace AnnotationEx.TodoComponent {
public sealed class Todo : MonoBehaviour {
... | mit | C# |
3f5351ee02e8d91629b5a9357b0d7be54f2be1c8 | Add test owner to FqdnTag test | ClogenyTechnologies/azure-powershell,ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azur... | src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/AzureFirewallFqdnTagTests.cs | src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/AzureFirewallFqdnTagTests.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 | C# |
30f2ffd88cd65e61d6cd36f315684bc8dff0a5e2 | Make Panel class publicly visible. | dneelyep/MonoGameUtils | MonoGameUtils/GameComponents/Panel.cs | MonoGameUtils/GameComponents/Panel.cs | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGameUtils.GameComponents
{
/// <summary>
/// A solid-color rectangle that can be drawn on-screen.
/// </summary>
public class Panel : DrawableGameComponent
{
#region "Properties"
public Rectangle ... | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGameUtils.GameComponents
{
/// <summary>
/// A solid-color rectangle that can be drawn on-screen.
/// </summary>
internal class Panel : DrawableGameComponent
{
#region "Properties"
public Rectangl... | mit | C# |
10341a8d62e5f6094620ddee999886f80da98222 | Fix ordering of views so the ordering is the same as v8 | robertjf/Umbraco-CMS,umbraco/Umbraco-CMS,abjerner/Umbraco-CMS,arknu/Umbraco-CMS,abryukhov/Umbraco-CMS,KevinJump/Umbraco-CMS,umbraco/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,arknu/Umbraco-CMS,arknu/Umbraco-CMS,abryukhov/Umbraco-CMS,robertjf/Umbraco-CMS,JimBobSquarePants/Umbraco-C... | src/Umbraco.Web.Website/ViewEngines/RenderRazorViewEngineOptionsSetup.cs | src/Umbraco.Web.Website/ViewEngines/RenderRazorViewEngineOptionsSetup.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc.Razor;
using Microsoft.Extensions.Options;
namespace Umbraco.Cms.Web.Website.ViewEngines
{
/// <summary>
/// Configure view engine locations for front-end rendering
/// </summary>
public class RenderRazorV... | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc.Razor;
using Microsoft.Extensions.Options;
namespace Umbraco.Cms.Web.Website.ViewEngines
{
/// <summary>
/// Configure view engine locations for front-end rendering
/// </summary>
public class RenderRazorV... | mit | C# |
8d071e7f4b2154ea19cb5145396c8691335e13e4 | Fix a typo | mono/gio-sharp,mono/gio-sharp | gio/FileFactory.cs | gio/FileFactory.cs | //
// FileFactory.cs
//
// Author(s):
// Stephane Delcroix <stephane@delcroix.org>
//
// Copyright (c) 2008 Stephane Delcroix
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foun... | //
// FileFactory.cs
//
// Author(s):
// Stephane Delcroix <stephane@delcroix.org>
//
// Copyright (c) 2008 Stephane Delcroix
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foun... | mit | C# |
78b52b207d0147659c742478fd327bd323909dd4 | Remove null check in quick fix | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/src/resharper-unity/Feature/Services/QuickFixes/ConvertCoalesingToConditionalQuickFix.cs | resharper/src/resharper-unity/Feature/Services/QuickFixes/ConvertCoalesingToConditionalQuickFix.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JetBrains.Application.Progress;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Feature.Services.QuickFixes;
using JetBrains.ReSharper.Intentions.Util;
using JetBrains.ReSharper.Plugins.Uni... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JetBrains.Application.Progress;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Feature.Services.QuickFixes;
using JetBrains.ReSharper.Intentions.Util;
using JetBrains.ReSharper.Plugins.Uni... | apache-2.0 | C# |
f56d5ac498ad0ebfd29c6a26e3919f0e02f3660f | Fix for issue #221 NullReferenceException | inthehand/32feet,inthehand/32feet,inthehand/32feet,inthehand/32feet | InTheHand.Net.Bluetooth/Platforms/Android/BluetoothDevicePickerReceiver.cs | InTheHand.Net.Bluetooth/Platforms/Android/BluetoothDevicePickerReceiver.cs | // 32feet.NET - Personal Area Networking for .NET
//
// InTheHand.Net.Bluetooth.Droid.BluetoothDevicePickerReceiver (Android)
//
// Copyright (c) 2018-2022 In The Hand Ltd, All rights reserved.
// This source code is licensed under the MIT License
using Android.Content;
namespace InTheHand.Net.Bluetooth.Droid
{
... | // 32feet.NET - Personal Area Networking for .NET
//
// InTheHand.Net.Bluetooth.Droid.BluetoothDevicePickerReceiver (Android)
//
// Copyright (c) 2018-2020 In The Hand Ltd, All rights reserved.
// This source code is licensed under the MIT License
using Android.Content;
namespace InTheHand.Net.Bluetooth.Droid
{
... | mit | C# |
a5d76bb44ad672ced228a5576ca1c42ca5143b1d | Add css class | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Views/Shared/DisplayTemplates/SSDStatusModel.cshtml | Battery-Commander.Web/Views/Shared/DisplayTemplates/SSDStatusModel.cshtml | @model Soldier.SSDStatusModel
@if (Model != null)
{
<div>
@switch (Model.Rank)
{
case Rank.E1:
case Rank.E2:
case Rank.E3:
case Rank.E4:
<span class="@Model.CssClass">SSD 1 (@Html.DisplayFor(m => m.SSD_1))</span>
retur... | @model Soldier.SSDStatusModel
@if (Model != null)
{
<div>
@switch (Model.Rank)
{
case Rank.E1:
case Rank.E2:
case Rank.E3:
case Rank.E4:
<span class="label label-default">SSD 1 (@Html.DisplayFor(m => m.SSD_1))</span>
r... | mit | C# |
5b3ba6a9ed3a5ae0849645ae6a87e6b907b06e41 | Fix on CreateObjectAction | UnityTechnologies/PlaygroundProject,UnityTechnologies/PlaygroundProject | PlaygroundProject/Assets/Scripts/Conditions/Actions/CreateObjectAction.cs | PlaygroundProject/Assets/Scripts/Conditions/Actions/CreateObjectAction.cs | using UnityEngine;
using System.Collections;
[AddComponentMenu("Playground/Actions/Create Object")]
public class CreateObjectAction : Action
{
public GameObject prefabToCreate;
public Vector2 newPosition;
public bool relativeToThisObject;
// Moves the gameObject instantly to a custom position
public override b... | using UnityEngine;
using System.Collections;
[AddComponentMenu("Playground/Actions/Create Object")]
public class CreateObjectAction : Action
{
public GameObject prefabToCreate;
public Vector2 newPosition;
public bool relativeToThisObject;
void Update ()
{
if (relativeToThisObject)
{
newPosition = (Vector... | mit | C# |
57a956d28a59a4813d5ff2908c292499ba48a73e | add an example of fileType value | iQuarc/Code-Design-Training,iQuarc/Code-Design-Training | LessonsSamples/LessonsSamples/Lesson7/CohesionCoupling/IPageFileWriter.cs | LessonsSamples/LessonsSamples/Lesson7/CohesionCoupling/IPageFileWriter.cs | namespace LessonsSamples.Lesson7.CohesionCoupling
{
public interface IPageFileWriter
{
bool WriteFile(PageXml page, string fileType); // fileType=="CustomerPage"
}
public static class PageFileWriterExtensions
{
public static bool WriteFile(this IPageFileWriter writer, PageXml page)
{
return writer.WriteF... | namespace LessonsSamples.Lesson7.CohesionCoupling
{
public interface IPageFileWriter
{
bool WriteFile(PageXml page, string fileType);
}
public static class PageFileWriterExtensions
{
public static bool WriteFile(this IPageFileWriter writer, PageXml page)
{
return writer.WriteFile(page, string.Empty);
}... | mit | C# |
9770fe3641a090703f5eadefcd3979a6260f5fb4 | add test, logic is fine | Pondidum/Magistrate,Pondidum/Magistrate,Pondidum/Magistrate,Pondidum/Magistrate | Magistrate.Tests/Acceptance/When_a_user_has_one_role_with_a_permission.cs | Magistrate.Tests/Acceptance/When_a_user_has_one_role_with_a_permission.cs | using System.Linq;
using Shouldly;
using Xunit;
namespace Magistrate.Tests.Acceptance
{
public class When_a_user_has_one_role_with_a_permission : UserAcceptanceBase
{
public When_a_user_has_one_role_with_a_permission()
{
TestRole.AddPermission(new MagistrateUser(), FirstPermission);
User.AddRole(new Magist... | using System.Linq;
using Shouldly;
using Xunit;
namespace Magistrate.Tests.Acceptance
{
public class When_a_user_has_one_role_with_a_permission : UserAcceptanceBase
{
public When_a_user_has_one_role_with_a_permission()
{
TestRole.AddPermission(new MagistrateUser(), FirstPermission);
User.AddRole(new Magist... | lgpl-2.1 | C# |
2cfd18b6a2781e24cb54839f57386146190d7ca5 | Fix some C#3.0-isms that broke build in Mono 1.2.6 and MSVC# 2005. Fixes Mantis #2989. | EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/arribasim-dev-tests,OpenSimian/opensimulator,Michelle-Argus/ArribasimExtract,Michelle-Argus/ArribasimExtract,allquixotic/opensim-autobackup,QuillLittlefeather/opensim-1,AlexRa/opensim-mods-Alex,BogusCurry/arribasim-dev,cdbean/CySim,justinccdev/opensim,bravelittlescientist/opensi... | OpenSim/Data/NHibernate/UserFriend.cs | OpenSim/Data/NHibernate/UserFriend.cs | using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Data.NHibernate
{
public class UserFriend
{
public UserFriend()
{
}
public UserFriend(UUID userFriendID, UUID ownerID, UUID friendID, uint friendPermissions)
{
... | using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Data.NHibernate
{
public class UserFriend
{
public UserFriend()
{
}
public UserFriend(UUID userFriendID, UUID ownerID, UUID friendID, uint friendPermissions)
{
... | bsd-3-clause | C# |
e9699caf4e1119492a6d72ebe086abf154bee594 | remove actionresults from response due to inconsistent behaviour | ceee/PocketSharp | PocketSharp/Models/Response/Modify.cs | PocketSharp/Models/Response/Modify.cs | using Newtonsoft.Json;
using System.Runtime.Serialization;
namespace PocketSharp.Models
{
/// <summary>
/// Modify Response
/// </summary>
[JsonObject]
internal class Modify : ResponseBase
{
/// <summary>
/// Gets or sets the action results.
/// </summary>
/// <value>
/// The action re... | using Newtonsoft.Json;
using System.Runtime.Serialization;
namespace PocketSharp.Models
{
/// <summary>
/// Modify Response
/// </summary>
[JsonObject]
internal class Modify : ResponseBase
{
/// <summary>
/// Gets or sets the action results.
/// </summary>
/// <value>
/// The action re... | mit | C# |
1f684003d8631176f639954f39f93d5bd9e88e4b | Fix comment. | nguerrera/roslyn,sharwell/roslyn,dpoeschl/roslyn,jcouv/roslyn,jasonmalinowski/roslyn,Shiney/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,dotnet/roslyn,KevinH-MS/roslyn,KirillOsenkov/roslyn,yeaicc/roslyn,weltkante/roslyn,jeffanders/roslyn,AmadeusW/roslyn,jamesqo/roslyn,xoofx/roslyn,sharwell/roslyn,srivatsn/roslyn,balaj... | src/Features/Core/Portable/FindReferences/DefinitionLocation.DocumentDefinitionLocation.cs | src/Features/Core/Portable/FindReferences/DefinitionLocation.DocumentDefinitionLocation.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;
namespace Microsoft.CodeAnalysis.FindReferences
{
internal partial class DefinitionLocation
{
/// <summa... | // 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;
namespace Microsoft.CodeAnalysis.FindReferences
{
internal partial class DefinitionLocation
{
/// <summa... | mit | C# |
340925d88239a1786994fa7f330dc260f82f2286 | Update build.cake | xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents | XPlat/ExposureNotification/build.cake | XPlat/ExposureNotification/build.cake | var TARGET = Argument("t", Argument("target", "ci"));
var SRC_COMMIT = "85caa2ed4a84d0193eb1bcce85eb22818a679398";
var SRC_URL = $"https://github.com/xamarin/xamarin.exposurenotification/archive/{SRC_COMMIT}.zip";
var OUTPUT_PATH = (DirectoryPath)"./output/";
var NUGET_VERSION = "0.1.0-preview02";
Task("externals")
... | var TARGET = Argument("t", Argument("target", "ci"));
var SRC_COMMIT = "1b129fc87970fde12e0f739b52e7ee01c23ab401";
var SRC_URL = $"https://github.com/xamarin/xamarin.exposurenotification/archive/{SRC_COMMIT}.zip";
var OUTPUT_PATH = (DirectoryPath)"./output/";
var NUGET_VERSION = "0.1.0-preview01";
Task("externals")
... | mit | C# |
e3fc1f2737d713fe2e0b25b8e19c2a554156c284 | Update LayerMetadataWelder.cs (#1180) | stevetayloruk/Orchard2,OrchardCMS/Brochard,xkproject/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,xkproject/Orchard2,petedavis/Orchard2,OrchardCMS/Brochard,petedavis/Orchard2,stevetayloruk/Orchard2,OrchardCMS/Brochard,petedavis/Orchard2,xkproject/Orchard2,xkproject/Orchard2,petedavis/Orchard2,stevetayloruk/Orchar... | src/OrchardCore.Modules/OrchardCore.Layers/Drivers/LayerMetadataWelder.cs | src/OrchardCore.Modules/OrchardCore.Layers/Drivers/LayerMetadataWelder.cs | using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Localization;
using OrchardCore.ContentManagement;
using OrchardCore.ContentManagement.Display.ContentDisplay;
using OrchardCore.DisplayManagement.Handlers;
using OrchardCore.DisplayManagement.Views;
using OrchardCore.Layers.Models;
using OrchardCor... | using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Localization;
using OrchardCore.ContentManagement;
using OrchardCore.ContentManagement.Display.ContentDisplay;
using OrchardCore.DisplayManagement.Handlers;
using OrchardCore.DisplayManagement.Views;
using OrchardCore.Layers.Models;
using OrchardCor... | bsd-3-clause | C# |
9d1b63a5bbb55eb48fe2ea52f7879a1c8520e56a | Add assert | bugsnag/bugsnag-dotnet,bugsnag/bugsnag-dotnet | tests/Bugsnag.Tests/ClientTests.cs | tests/Bugsnag.Tests/ClientTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace Bugsnag.Tests
{
public class ClientTests
{
[Fact]
public async void TestThrownException()
{
var server = new TestServer(1);
server.Start();
var metadata = new Dictionary<string, object>() { { "... | using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace Bugsnag.Tests
{
public class ClientTests
{
[Fact]
public async void TestThrownException()
{
var server = new TestServer(1);
server.Start();
var metadata = new Dictionary<string, object>() { { "... | mit | C# |
b8b096f626a41e32f5f66110c9e3235125147a53 | Add material mappings to eth1. | fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game | ethernet/maps/eth1/mission.cs | ethernet/maps/eth1/mission.cs | // This script is executed on the server
$MAP_ROOT = "ethernet/maps/eth1/";
$sgLightEditor::lightDBPath = $MAP_ROOT @ "lights/";
$sgLightEditor::filterDBPath = $MAP_ROOT @ "filters/";
sgLoadDataBlocks($sgLightEditor::lightDBPath);
sgLoadDataBlocks($sgLightEditor::filterDBPath);
//---------------------------... | // This script is executed on the server
$MAP_ROOT = "ethernet/maps/eth1/";
$sgLightEditor::lightDBPath = $MAP_ROOT @ "lights/";
$sgLightEditor::filterDBPath = $MAP_ROOT @ "filters/";
sgLoadDataBlocks($sgLightEditor::lightDBPath);
sgLoadDataBlocks($sgLightEditor::filterDBPath);
//exec("./difs/propertymap.cs");
//exe... | lgpl-2.1 | C# |
72dde11979aba1a6a763c7a16b05537fcaa3e22e | Update CopyingPicture.cs | asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-... | Examples/CSharp/Articles/CopyShapesBetweenWorksheets/CopyingPicture.cs | Examples/CSharp/Articles/CopyShapesBetweenWorksheets/CopyingPicture.cs | using System.IO;
using System.Drawing;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Articles.CopyShapesBetweenWorksheets
{
public class CopyingPicture
{
public static void Main()
{
//ExStart:1
// The path to the documents directory.
string dataDir = A... | using System.IO;
using System.Drawing;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Articles.CopyShapesBetweenWorksheets
{
public class CopyingPicture
{
public static void Main()
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Uti... | mit | C# |
bb74ee4f530199349776f12317d7841aa17611eb | Fix JobHandlerTypeSerializerTest again | InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform | InfinniPlatform.Scheduler.Tests/Common/JobHandlerTypeSerializerTest.cs | InfinniPlatform.Scheduler.Tests/Common/JobHandlerTypeSerializerTest.cs | using System;
using System.Threading.Tasks;
using InfinniPlatform.IoC;
using InfinniPlatform.Tests;
using Moq;
using NUnit.Framework;
namespace InfinniPlatform.Scheduler.Common
{
[TestFixture(Category = TestCategories.UnitTest)]
public class JobHandlerTypeSerializerTest
{
private const string H... | using System;
using System.Threading.Tasks;
using InfinniPlatform.IoC;
using InfinniPlatform.Tests;
using Moq;
using NUnit.Framework;
namespace InfinniPlatform.Scheduler.Common
{
[TestFixture(Category = TestCategories.UnitTest)]
public class JobHandlerTypeSerializerTest
{
private const string H... | agpl-3.0 | C# |
b280f8faa36f127f910145da8a9ccb05ea64d2c8 | Update device creation to just return the raw token | RightpointLabs/conference-room,jorupp/conference-room,RightpointLabs/conference-room,jorupp/conference-room,RightpointLabs/conference-room,jorupp/conference-room,jorupp/conference-room,RightpointLabs/conference-room | RightpointLabs.ConferenceRoom.Services/Controllers/DeviceController.cs | RightpointLabs.ConferenceRoom.Services/Controllers/DeviceController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Web.Http;
using RightpointLabs.ConferenceRoom.Domain.Models;
using RightpointLabs.ConferenceRoom.Domain.Models.Entities;
using RightpointLabs.ConferenceRoom.Domain.Repositories;
u... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using RightpointLabs.ConferenceRoom.Domain.Models;
using RightpointLabs.ConferenceRoom.Domain.Models.Entities;
using RightpointLabs.ConferenceRoom.Domain.Repositories;
using RightpointLabs... | mit | C# |
5340dd39c1df2051801ee14fb827ecaeeb9c78a3 | fix startup bug with IOC container when requesting generic type for the first time | devdaves/TasksExample | TasksExample.Api/Infrastructure/Windsor/Installers/MediatrInstaller.cs | TasksExample.Api/Infrastructure/Windsor/Installers/MediatrInstaller.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.MicroKernel;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using MediatR;
namespace TasksExample.Api.Infrastructure.Windsor.Installers
{
public class ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using MediatR;
namespace TasksExample.Api.Infrastructure.Windsor.Installers
{
public class MediatrInstaller : IWindso... | mit | C# |
51623d3ff636a06d72f9b2a21bf8aaf4a2cf42a0 | Add Required attribute | Generic-Voting-Application/voting-application,JDawes-ScottLogic/voting-application,stevenhillcox/voting-application,stevenhillcox/voting-application,tpkelly/voting-application,tpkelly/voting-application,tpkelly/voting-application,Generic-Voting-Application/voting-application,JDawes-ScottLogic/voting-application,stevenh... | VotingApplication/VotingApplication.Web/Api/Models/DBViewModels/ManageOptionUpdateRequest.cs | VotingApplication/VotingApplication.Web/Api/Models/DBViewModels/ManageOptionUpdateRequest.cs | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace VotingApplication.Web.Api.Models.DBViewModels
{
public class ManageOptionUpdateRequest
{
public ManageOptionUpdateRequest()
{
Options = new List<OptionUpdate>();
}
public List<... | using System.Collections.Generic;
namespace VotingApplication.Web.Api.Models.DBViewModels
{
public class ManageOptionUpdateRequest
{
public ManageOptionUpdateRequest()
{
Options = new List<OptionUpdate>();
}
public List<OptionUpdate> Options { get; set; }
}
... | apache-2.0 | C# |
0356717a861597a982d7b4c7ab0a0d66ccc83305 | Return NotFound if contentItemId is null instead of ArgumentNullException (#5402) | OrchardCMS/Brochard,stevetayloruk/Orchard2,stevetayloruk/Orchard2,petedavis/Orchard2,xkproject/Orchard2,petedavis/Orchard2,xkproject/Orchard2,petedavis/Orchard2,xkproject/Orchard2,OrchardCMS/Brochard,stevetayloruk/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,petedavis/Orchard2,xkproject/Orc... | src/OrchardCore.Modules/OrchardCore.Contents/Controllers/ItemController.cs | src/OrchardCore.Modules/OrchardCore.Contents/Controllers/ItemController.cs | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using OrchardCore.ContentManagement;
using OrchardCore.ContentManagement.Display;
using OrchardCore.DisplayManagement.ModelBinding;
using System.Threading.Tasks;
namespace OrchardCore.Contents.Controllers
{
public class ItemController : Cont... | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using OrchardCore.ContentManagement;
using OrchardCore.ContentManagement.Display;
using OrchardCore.DisplayManagement.ModelBinding;
using System.Threading.Tasks;
namespace OrchardCore.Contents.Controllers
{
public class ItemController : Cont... | bsd-3-clause | C# |
32650734cc907b16750c5b38e8fda8e74902c5d5 | Fix format | mconnew/wcf,imcarolwang/wcf,imcarolwang/wcf,mconnew/wcf,dotnet/wcf,StephenBonikowsky/wcf,imcarolwang/wcf,StephenBonikowsky/wcf,dotnet/wcf,dotnet/wcf,mconnew/wcf | src/System.ServiceModel.Security/tests/ServiceModel/SecurityKeyTypeTest.cs | src/System.ServiceModel.Security/tests/ServiceModel/SecurityKeyTypeTest.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.IdentityModel.Tokens;
using Infrastructure.Common;
using Xunit;
public static class SecurityKeyTypeT... | // 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.IdentityModel.Tokens;
using Infrastructure.Common;
using Xunit;
public static class SecurityKeyTypeT... | mit | C# |
72dddb2ddb9a1e327acd53a819fd24764c4d8160 | fix OCD #5 | filipw/omnisharp-roslyn,hitesh97/omnisharp-roslyn,khellang/omnisharp-roslyn,fishg/omnisharp-roslyn,RichiCoder1/omnisharp-roslyn,ianbattersby/omnisharp-roslyn,ianbattersby/omnisharp-roslyn,haled/omnisharp-roslyn,sriramgd/omnisharp-roslyn,sreal/omnisharp-roslyn,khellang/omnisharp-roslyn,filipw/omnisharp-roslyn,sriramgd/o... | src/OmniSharp/Api/Navigation/OmnisharpController.FindImplementations.cs | src/OmniSharp/Api/Navigation/OmnisharpController.FindImplementations.cs | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.CodeAnalysis.FindSymbols;
using Microsoft.CodeAnalysis.Text;
using OmniSharp.Models;
namespace OmniSharp
{
public partial class OmnisharpController
{
[HttpPost("findimplementat... | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.CodeAnalysis.FindSymbols;
using Microsoft.CodeAnalysis.Text;
using OmniSharp.Models;
namespace OmniSharp
{
public partial class OmnisharpController
{
[HttpPost("findimplem... | mit | C# |
5ed7a1104a941295f1619e7120ed6028eb7d0422 | Create mapping from NotificationOption to EditorConfig severity string. | shyamnamboodiripad/roslyn,jasonmalinowski/roslyn,KirillOsenkov/roslyn,sharwell/roslyn,agocke/roslyn,AlekseyTs/roslyn,dotnet/roslyn,dotnet/roslyn,nguerrera/roslyn,KirillOsenkov/roslyn,abock/roslyn,jmarolf/roslyn,jasonmalinowski/roslyn,KevinRansom/roslyn,mavasani/roslyn,ErikSchierboom/roslyn,tannergooding/roslyn,bartdesm... | src/Workspaces/Core/Portable/Extensions/NotificationOptionExtensions.cs | src/Workspaces/Core/Portable/Extensions/NotificationOptionExtensions.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 Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.CodeStyle
{
internal static class NotificationOptionExtensions
{
public static strin... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.CodeAnalysis.CodeStyle
{
internal static class NotificationOptionExtensions
{
public static string ToEditorConfigString(t... | mit | C# |
d2264a428e7150adde0847524c26c725df5ca684 | Support visual debugging of enum masks. | sschmid/Entitas-CSharp,sschmid/Entitas-CSharp | Entitas.Unity/Assets/Entitas/Unity/VisualDebugging/Entity/Editor/TypeDrawer/EnumTypeDrawer.cs | Entitas.Unity/Assets/Entitas/Unity/VisualDebugging/Entity/Editor/TypeDrawer/EnumTypeDrawer.cs | using System;
using Entitas;
using UnityEditor;
namespace Entitas.Unity.VisualDebugging {
public class EnumTypeDrawer : ITypeDrawer {
public bool HandlesType(Type type) {
return type.IsEnum;
}
public object DrawAndGetNewValue(Type memberType, string memberName, object value, En... | using System;
using Entitas;
using UnityEditor;
namespace Entitas.Unity.VisualDebugging {
public class EnumTypeDrawer : ITypeDrawer {
public bool HandlesType(Type type) {
return type.IsEnum;
}
public object DrawAndGetNewValue(Type memberType, string memberName, object value, En... | mit | C# |
a87828105034013bb549ded4cc9b96b47b33780a | Update Index.cshtml | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Update posted: June 29, 2021<br /><br />
<strong>Please Note Holiday Closure Information:</strong><br /><br />
The Lab will ... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<p class="lead">The UC Davis Analytical Laboratory is a core support facility of the UC Davis College of Agriculture and Environmental Sciences.</p>
<p>The laboratory is located in Hoagland Hall with a Sample Receiving area in nearby Hoagland ... | mit | C# |
2e9bcc9aca2083e7203729f968d812038daf1666 | Update Index.cshtml | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Posted: April 6, 2020<br /><br />
We are scaling back to a bare minimum staff at this time. We will only be working on samples wh... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<h2 style="color: blue">Posted: April 6, 2020<br /><br />
We are scaling back to a bare minimum staff at this time. We will only be working on samples where immediate testing is essential. Assisting you with your research is very importa... | mit | C# |
02f784e20a95a6519502fe24d89243ba74965cfa | add getresponse | Terradue/DotNetOpenSearch | Terradue.OpenSearch/Terradue/OpenSearch/Response/HttpOpenSearchResponse.cs | Terradue.OpenSearch/Terradue/OpenSearch/Response/HttpOpenSearchResponse.cs | //
// HttpOpenSearchResponse.cs
//
// Author:
// Emmanuel Mathot <emmanuel.mathot@terradue.com>
//
// Copyright (c) 2014 Terradue
using System;
using Mono.Addins;
using System.Collections.Generic;
using System.Net;
using System.Xml;
using System.Diagnostics;
using Terradue.OpenSearch.Result;
using System.IO;
... | //
// HttpOpenSearchResponse.cs
//
// Author:
// Emmanuel Mathot <emmanuel.mathot@terradue.com>
//
// Copyright (c) 2014 Terradue
using System;
using Mono.Addins;
using System.Collections.Generic;
using System.Net;
using System.Xml;
using System.Diagnostics;
using Terradue.OpenSearch.Result;
using System.IO;
... | agpl-3.0 | C# |
e3b2907bc3e813f3f6187f2e7481cbc8de601cc8 | Fix build | allquixotic/banshee-gst-sharp-work,dufoli/banshee,lamalex/Banshee,ixfalia/banshee,babycaseny/banshee,GNOME/banshee,Dynalon/banshee-osx,Carbenium/banshee,lamalex/Banshee,arfbtwn/banshee,directhex/banshee-hacks,arfbtwn/banshee,babycaseny/banshee,Carbenium/banshee,mono-soc-2011/banshee,stsundermann/banshee,Carbenium/bansh... | src/Core/Banshee.Services/Banshee.MediaEngine/PlaybackControllerDatabaseStack.cs | src/Core/Banshee.Services/Banshee.MediaEngine/PlaybackControllerDatabaseStack.cs | //
// PlaybackControllerDatabaseStack.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (C) 2007 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software w... | //
// PlaybackControllerDatabaseStack.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (C) 2007 Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software w... | mit | C# |
8a0fa732b0836eca9e979da2ce836fd3c582f8da | Make RequiredAttributeAdapter public | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Mvc/src/Microsoft.AspNetCore.Mvc.DataAnnotations/RequiredAttributeAdapter.cs | src/Mvc/src/Microsoft.AspNetCore.Mvc.DataAnnotations/RequiredAttributeAdapter.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;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using Microsoft.Extensions.Localizati... | // 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;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using Microsoft.Extensions.Localizati... | apache-2.0 | C# |
1002934cda52c6e6922220c6fa4ada06e374faf1 | Update version number. | Damnae/storybrew | editor/Properties/AssemblyInfo.cs | editor/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("storybrew editor")]
[assembly: AssemblyDe... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("storybrew editor")]
[assembly: AssemblyDe... | mit | C# |
7759a685c2bb6c2161f569db7e94e57b6304cf17 | fix constructor | CoditEU/lunchorder,CoditEU/lunchorder,CoditEU/lunchorder,CoditEU/lunchorder | backend/WebApi/Lunchorder.Api/App_Start/Configuration/Mapper/AddressMap.cs | backend/WebApi/Lunchorder.Api/App_Start/Configuration/Mapper/AddressMap.cs | using AutoMapper;
namespace Lunchorder.Api.Configuration.Mapper
{
public class AddressMap : Profile
{
public AddressMap()
{
CreateMap<Domain.Entities.DocumentDb.Address, Domain.Dtos.Address>();
}
}
} | using AutoMapper;
namespace Lunchorder.Api.Configuration.Mapper
{
public class AddressMap : Profile
{
protected AddressMap()
{
CreateMap<Domain.Entities.DocumentDb.Address, Domain.Dtos.Address>();
}
}
} | mit | C# |
594c9ff8d9fc27ca2a7c6ef01487e5c524df875f | fix send-notification-detailed snippet | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets | notifications/rest/notifications/send-notification-detailed/send-notification-detailed.5.x.cs | notifications/rest/notifications/send-notification-detailed/send-notification-detailed.5.x.cs | // Download the twilio-csharp library from twilio.com/docs/libraries/csharp
using System;
using System.Collections.Generic;
using Twilio;
using Twilio.Rest.Notify.V1.Service;
public class Example
{
public static void Main(string[] args)
{
// Find your Account SID and Auth Token at twilio.com/console
... | // Download the twilio-csharp library from twilio.com/docs/libraries/csharp
using System;
using System.Collections.Generic;
using Twilio;
using Twilio.Rest.Notify.V1.Service;
public class Example
{
public static void Main(string[] args)
{
// Find your Account SID and Auth Token at twilio.com/console
... | mit | C# |
f0b338ec70ce2ab90ed19651311d7e83119fd4b4 | Remove IService interface | ahanusa/Peasy.NET,peasy/Peasy.NET,ahanusa/facile.net | Peasy/IService.cs | Peasy/IService.cs | using System.Collections.Generic;
namespace Peasy
{
public interface IService<T, TKey> : ISupportGetAllCommand<T>,
ISupportGetByIDCommand<T, TKey>,
ISupportInsertCommand<T>,
ISupportUpdateCo... | using System.Collections.Generic;
namespace Peasy
{
public interface IService
{
}
public interface IService<T, TKey> : ISupportGetAllCommand<T>,
ISupportGetByIDCommand<T, TKey>,
ISupportInsertCommand<T>,
... | mit | C# |
5d072c8c727e72a9c280835be28f0d428165946e | fix vari csv | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf | src/backend/SO115App.Persistence.File/CSVManagement/CSVTemplateManager.cs | src/backend/SO115App.Persistence.File/CSVManagement/CSVTemplateManager.cs | using CsvHelper;
using CsvHelper.Configuration;
using SO115App.Persistence.File.PDFManagement.TemplateModelForms;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace SO115App.Persistence.File.CSVManagement
{
internal sealed class CSVTemplateManager<TemplateModelF... | using CsvHelper;
using SO115App.Persistence.File.PDFManagement.TemplateModelForms;
using System;
using System.Globalization;
using System.IO;
namespace SO115App.Persistence.File.CSVManagement
{
internal sealed class CSVTemplateManager<TemplateModelForm> : ICSVTemplateManager<TemplateModelForm> where TemplateModel... | agpl-3.0 | C# |
56494d3f4e08575fef0780f14de478fe742aeb27 | Fix tests | MistyKuu/bitbucket-for-visual-studio,MistyKuu/bitbucket-for-visual-studio | Source/Tests/Integration/Bitbucket.REST.API.Integration.Tests/Clients/RepositoryClientTests.cs | Source/Tests/Integration/Bitbucket.REST.API.Integration.Tests/Clients/RepositoryClientTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bitbucket.REST.API.Integration.Tests.Helpers;
using BitBucket.REST.API;
using BitBucket.REST.API.Models;
using NUnit.Framework;
namespace Bitbucket.REST.API.Integration.Tests.Clients
{
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bitbucket.REST.API.Integration.Tests.Helpers;
using BitBucket.REST.API;
using BitBucket.REST.API.Models;
using NUnit.Framework;
namespace Bitbucket.REST.API.Integration.Tests.Clients
{
public ... | mit | C# |
158c2c94c9f1783bb4d553c2b9c7720be3cb5aa7 | remove unused / commented code | killerantz/HoloToolkit-Unity,DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,vladkol/MixedRealityToolkit-Unity,vladkol/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,vladkol/MixedRealityToolkit-Unity | Assets/MixedRealityToolkit/EventDatum/SpatialAwareness/MixedRealitySpatialAwarenessEventData.cs | Assets/MixedRealityToolkit/EventDatum/SpatialAwareness/MixedRealitySpatialAwarenessEventData.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.Core.Definitions.SpatialAwarenessSystem;
using Microsoft.MixedReality.Toolkit.Core.Interfaces.SpatialAwarenessSystem.Observers;
... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.Core.Definitions.SpatialAwarenessSystem;
using Microsoft.MixedReality.Toolkit.Core.Interfaces.SpatialAwarenessSystem.Observers;
... | mit | C# |
90ae3ebbcd7103a94a9a0fdf122df3717d37edbf | fix C# code | google/or-tools,google/or-tools,or-tools/or-tools,google/or-tools,google/or-tools,or-tools/or-tools,or-tools/or-tools,google/or-tools,or-tools/or-tools,google/or-tools,or-tools/or-tools,or-tools/or-tools | examples/dotnet/csknapsack.cs | examples/dotnet/csknapsack.cs | // Copyright 2010-2018 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2010-2018 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | apache-2.0 | C# |
5a994adb225e7ed2eb14a3873937cbd90239ff3c | Enable NRT | jasonmalinowski/roslyn,CyrusNajmabadi/roslyn,shyamnamboodiripad/roslyn,bartdesmet/roslyn,bartdesmet/roslyn,mavasani/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,jasonmalinowski/roslyn,sharwell/roslyn,dotnet/roslyn,KevinRansom/roslyn,mavasani/roslyn,sharwell/roslyn,weltkante/roslyn,diryboy/roslyn,jasonmalinowski/rosly... | src/Analyzers/Core/CodeFixes/RemoveUnnecessaryImports/AbstractRemoveUnnecessaryImportsCodeFixProvider.cs | src/Analyzers/Core/CodeFixes/RemoveUnnecessaryImports/AbstractRemoveUnnecessaryImportsCodeFixProvider.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;
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using Micro... | // 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.
#nullable disable
using System;
using System.Collections.Immutable;
using System.Threading;
using System.Threading... | mit | C# |
fdd5c50df33e63f0ee1b5c47815bbe391a77525d | Fix a region name | DotNetKit/DotNetKit.Wpf.Printing | DotNetKit.Wpf.Printing.Demo/Samples/MultipageReportSample/OrderFormPage.cs | DotNetKit.Wpf.Printing.Demo/Samples/MultipageReportSample/OrderFormPage.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DotNetKit.Windows.Controls;
using DotNetKit.Windows.Documents;
namespace DotNetKit.Wpf.Printing.Demo.Samples.MultipageReportSample
{
public sealed class OrderFormPage... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DotNetKit.Windows.Controls;
using DotNetKit.Windows.Documents;
namespace DotNetKit.Wpf.Printing.Demo.Samples.MultipageReportSample
{
public sealed class OrderFormPage... | mit | C# |
05d0fcbfffd21d7d6fc9f25da6bdde1f9fb6c489 | Fix rotation on android. | jamesmontemagno/Hanselman.Forms,jamesmontemagno/Hanselman.Forms,bbqchickenrobot/Hanselman.Forms,Xerosigma/Hanselman.Forms,elkjaerit/Hanselman.Forms,jamesmontemagno/Hanselman.Forms,ahmedalejo/Hanselman.Forms,slombardo/Hanselman.Forms,paulpatarinski/Hanselman.Forms | Hanselman.Android/MainActivity.cs | Hanselman.Android/MainActivity.cs | using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Xamarin.Forms.Platform.Android;
using Xamarin.Forms;
using Android.Content.PM;
namespace HanselmanAndroid
{
[Activity (Label = "Hanselman", MainLauncher = true, Configura... | using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Xamarin.Forms.Platform.Android;
using Xamarin.Forms;
namespace HanselmanAndroid
{
[Activity (Label = "Hanselman", MainLauncher = true)]
public class MainActivity : Andro... | mit | C# |
feeefd8ba70c8f584b8f32d4afcc2ead1201c5c3 | copy comments from base | gdziadkiewicz/octokit.net,SLdragon1989/octokit.net,yonglehou/octokit.net,forki/octokit.net,mminns/octokit.net,naveensrinivasan/octokit.net,alfhenrik/octokit.net,shiftkey-tester/octokit.net,fffej/octokit.net,eriawan/octokit.net,dampir/octokit.net,devkhan/octokit.net,hitesh97/octokit.net,shiftkey/octokit.net,octokit-net-... | Octokit/Clients/TagsClient.cs | Octokit/Clients/TagsClient.cs | using System.Threading.Tasks;
namespace Octokit
{
public class TagsClient : ApiClient, ITagsClient
{
public TagsClient(IApiConnection apiConnection)
: base(apiConnection)
{
}
/// <summary>
/// Gets a tag for a given repository by sha reference
/// ... | using System.Threading.Tasks;
namespace Octokit
{
public class TagsClient : ApiClient, ITagsClient
{
public TagsClient(IApiConnection apiConnection)
: base(apiConnection)
{
}
public Task<GitTag> Get(string owner, string name, string reference)
{
... | mit | C# |
166805c83390af1657b4dc82848880045d158db9 | remove ports | NebcoOrganization/Yuffie,NebcoOrganization/Yuffie | WebApp/Program.cs | WebApp/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace WebApp
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace WebApp
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
... | mit | C# |
5caa637d432d84acb5fa67ae38ebfc6307fb54e6 | バージョン番号を更新。 | YKSoftware/YKToolkit.Controls | YKToolkit.Controls/Properties/AssemblyInfo.cs | YKToolkit.Controls/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("YKToolkit.Controls")]
#if NET4
[assembly: AssemblyDescription(".NET Framework 4.0 用 の WPF カスタムコントロールライブラリです。")]
#else
[assembly: AssemblyDescription("WPF カスタムコントロールライブラリです。")]
#endif
[assembly: Ass... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("YKToolkit.Controls")]
#if NET4
[assembly: AssemblyDescription(".NET Framework 4.0 用 の WPF カスタムコントロールライブラリです。")]
#else
[assembly: AssemblyDescription("WPF カスタムコントロールライブラリです。")]
#endif
[assembly: Ass... | mit | C# |
6670082fee525385695d7e739c7d5303068550cf | change constructor paoramter to IProxyServiceProvider | AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Lite,AspectCore/Abstractions | src/AspectCore.Lite.DependencyInjection/Internal/ServiceProxyActivator.cs | src/AspectCore.Lite.DependencyInjection/Internal/ServiceProxyActivator.cs | using AspectCore.Lite.Abstractions;
using AspectCore.Lite.Abstractions.Activators;
using System;
namespace AspectCore.Lite.DependencyInjection.Internal
{
internal class ServiceProxyActivator : IProxyActivator
{
private readonly IProxyServiceProvider serviceProvider;
private readonly IProxyActi... | using AspectCore.Lite.Abstractions;
using AspectCore.Lite.Abstractions.Activators;
using System;
namespace AspectCore.Lite.DependencyInjection.Internal
{
internal class ServiceProxyActivator : IProxyActivator
{
private readonly ISupportOriginalService serviceProvider;
private readonly IProxyAc... | mit | C# |
1891019910497f288b24f9fd6920900541aef84a | rename server tests | rjw57/streamkinect2.net | StreamKinect2Tests/ServerTests.cs | StreamKinect2Tests/ServerTests.cs | using System.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using StreamKinect2;
using System.Threading;
using System.Collections.Generic;
using System;
using StreamKinect2Tests.Mocks;
namespace StreamKinect2Tests
{
[TestClass]
public class StoppedServerTests
{
// Re-initialised ... | using System.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using StreamKinect2;
using System.Threading;
using System.Collections.Generic;
using System;
using StreamKinect2Tests.Mocks;
namespace StreamKinect2Tests
{
[TestClass]
public class ServerTests
{
// Re-initialised for eac... | bsd-2-clause | C# |
e55c55b03025033d8500e89d31c354d948b9b854 | remove todo only | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EAS.Portal/Application/Services/Commitments/Http/CommitmentsApiHttpClientFactory.cs | src/SFA.DAS.EAS.Portal/Application/Services/Commitments/Http/CommitmentsApiHttpClientFactory.cs | using System;
using System.Net.Http;
using SFA.DAS.EAS.Portal.Configuration;
using SFA.DAS.Http;
using SFA.DAS.Http.TokenGenerators;
namespace SFA.DAS.EAS.Portal.Application.Services.Commitments.Http
{
public class CommitmentsApiHttpClientFactory : ICommitmentsApiHttpClientFactory
{
private readonly Co... | using System;
using System.Net.Http;
using SFA.DAS.EAS.Portal.Configuration;
using SFA.DAS.Http;
using SFA.DAS.Http.TokenGenerators;
namespace SFA.DAS.EAS.Portal.Application.Services.Commitments.Http
{
public class CommitmentsApiHttpClientFactory : ICommitmentsApiHttpClientFactory
{
private readonly Co... | mit | C# |
02f07532866ab6065ac58b22eee20cbd8767336e | Make sure the departure airport gets filled correctly. | lehmamic/columbus,lehmamic/columbus | Diskordia.Columbus.Bots.Host/Services/SingaporeAirlines/PageObjects/FareDealsSectionComponent.cs | Diskordia.Columbus.Bots.Host/Services/SingaporeAirlines/PageObjects/FareDealsSectionComponent.cs | using System;
using System.Collections.Generic;
using System.Linq;
using OpenQA.Selenium;
namespace Diskordia.Columbus.Bots.Host.Services.SingaporeAirlines.PageObjects
{
public class FareDealsSectionComponent
{
private readonly IWebDriver driver;
private readonly IWebElement element;
public FareDealsSectionC... | using System;
using System.Collections.Generic;
using System.Linq;
using OpenQA.Selenium;
namespace Diskordia.Columbus.Bots.Host.Services.SingaporeAirlines.PageObjects
{
public class FareDealsSectionComponent
{
private readonly IWebDriver driver;
private readonly IWebElement element;
public FareDealsSectionC... | mit | C# |
190390f63324ad00eff97ddf33d5834c7f763e37 | Implement UnitTest for ReceiptPageViewModel#TakePhotoAsyncCommand. | ProjectBlueMonkey/BlueMonkey,ProjectBlueMonkey/BlueMonkey | client/BlueMonkey/BlueMonkey.ViewModel.Tests/ReceiptPageViewModelTest.cs | client/BlueMonkey/BlueMonkey.ViewModel.Tests/ReceiptPageViewModelTest.cs | using System.ComponentModel;
using System.IO;
using System.Windows.Media;
using BlueMonkey.MediaServices;
using BlueMonkey.Model;
using BlueMonkey.ViewModels;
using Moq;
using Xunit;
namespace BlueMonkey.ViewModel.Tests
{
public class ReceiptPageViewModelTest
{
[Fact]
public void ReceiptProper... | using System.ComponentModel;
using System.IO;
using System.Windows.Media;
using BlueMonkey.MediaServices;
using BlueMonkey.Model;
using BlueMonkey.ViewModels;
using Moq;
using Xunit;
namespace BlueMonkey.ViewModel.Tests
{
public class ReceiptPageViewModelTest
{
[Fact]
public void ReceiptProper... | mit | C# |
14d2eb02440f14ea94af9169fca24f19cbed6fd7 | Throw on null syntax or errors. | PenguinF/sandra-three | Eutherion/Shared/Text/Json/RootJsonSyntax.cs | Eutherion/Shared/Text/Json/RootJsonSyntax.cs | #region License
/*********************************************************************************
* RootJsonSyntax.cs
*
* Copyright (c) 2004-2019 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... | #region License
/*********************************************************************************
* RootJsonSyntax.cs
*
* Copyright (c) 2004-2019 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... | apache-2.0 | C# |
b97b46ed7b7e6a7562c8327a51d7ba2adde6720a | Add a new pinkie event | pingzing/k-christmas-2016 | KChristmas.AzureFunctions/GetPinkieEvents.cs | KChristmas.AzureFunctions/GetPinkieEvents.cs | using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using System.Collections.Generic;
using KChristmas.Models;
namespace KChr... | using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using System.Collections.Generic;
using KChristmas.Models;
namespace KChr... | mit | C# |
8fcd713fb5675cc5fd19ded751605dc435d3b7a6 | remove interface stub (#1653) | exercism/xcsharp,exercism/xcsharp | exercises/concept/remote-control-competition/RemoteControlCompetition.cs | exercises/concept/remote-control-competition/RemoteControlCompetition.cs | using System;
using System.Collections.Generic;
// TODO implement the IRemoteControlCar interface
public class ProductionRemoteControlCar
{
public int DistanceTravelled { get; private set; }
public int NumberOfVictories { get; set; }
public void Drive()
{
DistanceTravelled += 10;
}
}
pub... | using System;
using System.Collections.Generic;
public interface IRemoteControlCar
{
// TODO implement the IRemoteControlCar interface
}
public class ProductionRemoteControlCar
{
public int DistanceTravelled { get; private set; }
public int NumberOfVictories { get; set; }
public void Drive()
{
... | mit | C# |
e69a7c92841c457a1f01f237c2474d99fb70100c | Update generate-twiml-dynamic-sms.5.x.cs | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets | rest/messages/generate-twiml-dynamic-sms/generate-twiml-dynamic-sms.5.x.cs | rest/messages/generate-twiml-dynamic-sms/generate-twiml-dynamic-sms.5.x.cs | // In Package Manager, run:
// Install-Package Twilio.AspNet.Mvc -DependencyVersion HighestMinor
using System.Web.Mvc;
using Twilio.AspNet.Mvc;
using Twilio.TwiML;
public class HelloWorldController : TwilioController
{
[HttpPost]
public ActionResult Index()
{
var requestBody = Request.Form["Body"];
... | // In Package Manager, run:
// Install-Package Twilio.AspNet.Mvc -DependencyVersion HighestMinor
using System.Web.Mvc;
using Twilio.AspNet.Mvc;
using Twilio.TwiML;
public class HelloWorldController : TwilioController
{
[HttpPost]
public ActionResult Index()
{
const string requestBody = Request.Form["Body"... | mit | C# |
d7eb5e8d1a3cdc1c10639c94b308b80ee7ed8c3e | change resource name variable to private | takenet/blip-sdk-csharp | src/Take.Blip.Builder/Variables/BaseResourceVariableProvider.cs | src/Take.Blip.Builder/Variables/BaseResourceVariableProvider.cs | using Lime.Protocol;
using Lime.Protocol.Network;
using Lime.Protocol.Serialization;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Take.Blip.Client;
namespace Take.Blip.Builder.Variables
{
public class BaseResourceVariableProvider : ... | using Lime.Protocol;
using Lime.Protocol.Network;
using Lime.Protocol.Serialization;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Take.Blip.Client;
namespace Take.Blip.Builder.Variables
{
public class BaseResourceVariableProvider : ... | apache-2.0 | C# |
3c6af8a5f7b341fd559de5dded999197c42bf472 | Update InjectInvokeHandlerContextBehavior.cs | SimonCropp/NServiceBus.Serilog | src/NServiceBus.Serilog/LogInjection/InjectInvokeHandlerContextBehavior.cs | src/NServiceBus.Serilog/LogInjection/InjectInvokeHandlerContextBehavior.cs | using System;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Pipeline;
using NServiceBus.Serilog;
class InjectInvokeHandlerContextBehavior :
Behavior<IInvokeHandlerContext>
{
public class Registration :
RegisterStep
{
public Registration()
: base(
... | using System;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Pipeline;
using NServiceBus.Serilog;
class InjectInvokeHandlerContextBehavior :
Behavior<IInvokeHandlerContext>
{
public class Registration :
RegisterStep
{
public Registration()
: base(
... | mit | C# |
5d2f150faf670d00784a1f8749e098089d496a77 | Fix typos | wwwwwwzx/3DSRNGTool | 3DSRNGTool/Pokemon/Lead.cs | 3DSRNGTool/Pokemon/Lead.cs | namespace Pk3DSRNGTool
{
public enum Lead
{
None,
// Nature
Synchronize,
// Gender
CuteCharmM,
CuteCharmF,
// Encounter slots
Static,
MagnetPull,
// Held item
CompoundEyes,
// Fishing
SuctionCups,
... | namespace Pk3DSRNGTool
{
public enum Lead
{
None,
// Ability
Synchronize,
// Gender
CuteCharmM,
CuteCharmF,
// Encounter slots
Static,
MagnetPull,
// Held item
CompoundEyes,
// Fishing
SuctionCups,
... | mit | C# |
57bc54d5d144908a33fa7bf1707b9fd1dfef6f02 | Test for #3277 | DotNetAnalyzers/StyleCopAnalyzers | StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp9/ReadabilityRules/SA1129CSharp9UnitTests.cs | StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp9/ReadabilityRules/SA1129CSharp9UnitTests.cs | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
namespace StyleCop.Analyzers.Test.CSharp9.ReadabilityRules
{
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis... | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
namespace StyleCop.Analyzers.Test.CSharp9.ReadabilityRules
{
using StyleCop.Analyzers.Test.CSharp8.ReadabilityRules;
public class SA1129CSharp9Uni... | mit | C# |
7fbd5198b28f16624b1f935957ca0891e2169495 | Tweak to use typed GetCustomAttributes from field | mattgwagner/CertiPay.Common | CertiPay.Common/ExtensionMethods.cs | CertiPay.Common/ExtensionMethods.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
namespace CertiPay.Common
{
public static class ExtensionMethods
{
/// <summary>
/// Trims the string of any whitestace and leaves null if there is no content.
/// </summary>
... | using System;
using System.ComponentModel.DataAnnotations;
using System.Reflection;
namespace CertiPay.Common
{
public static class ExtensionMethods
{
/// <summary>
/// Trims the string of any whitestace and leaves null if there is no content.
/// </summary>
public static Strin... | mit | C# |
f966e5e1c65edb6d0555e19edccbbf41c28da04c | Update InjectInvokeHandlerContextBehavior.cs | SimonCropp/NServiceBus.Serilog | src/NServiceBus.Serilog/LogInjection/InjectInvokeHandlerContextBehavior.cs | src/NServiceBus.Serilog/LogInjection/InjectInvokeHandlerContextBehavior.cs | using System;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Pipeline;
class InjectInvokeHandlerContextBehavior :
Behavior<IInvokeHandlerContext>
{
public class Registration :
RegisterStep
{
public Registration() :
base(
stepId: $"Serilog{nam... | using System;
using System.Threading.Tasks;
using NServiceBus;
using NServiceBus.Pipeline;
class InjectInvokeHandlerContextBehavior :
Behavior<IInvokeHandlerContext>
{
public class Registration :
RegisterStep
{
public Registration() :
base(
stepId: $"Serilog{nam... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.