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 |
|---|---|---|---|---|---|---|---|---|
c3d5560aa6b2160ebff61462dcf53318885de000 | Update ScanBarCodePicture.cs | asposebarcode/Aspose_BarCode_NET,asposebarcode/Aspose_BarCode_NET,aspose-barcode/Aspose.BarCode-for-.NET,aspose-barcode/Aspose.BarCode-for-.NET,asposebarcode/Aspose_BarCode_NET,aspose-barcode/Aspose.BarCode-for-.NET | Examples/CSharp/ManageAndOptimizeBarcodeRecognition/ScanBarCodePicture.cs | Examples/CSharp/ManageAndOptimizeBarcodeRecognition/ScanBarCodePicture.cs | using System;
using Aspose.BarCode.BarCodeRecognition;
/*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.BarCode for .NET API reference
when the project is build. Please check https://docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manu... | using System;
using Aspose.BarCode.BarCodeRecognition;
/*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.BarCode for .NET API reference
when the project is build. Please check https://docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manu... | mit | C# |
1474ed8fe853d5cc722afff265c52eefb73fca65 | Fix breaks to xml docs | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Mvc.Core/ApiExplorer/IApiResponseFormatMetadataProvider.cs | src/Microsoft.AspNet.Mvc.Core/ApiExplorer/IApiResponseFormatMetadataProvider.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.Collections.Generic;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc.ApiExplorer
{
/// <summary>
//... | // 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.Collections.Generic;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Mvc.ApiExplorer
{
/// <summary>
//... | apache-2.0 | C# |
3d06eb5320954d5904a3d63a5e978838b5ebdfe1 | Add explanatory comment to ThrowHelpers: in my previous check-in concerning MathHelpers I mentioned parallel addition of an explanatory comment to ThrowHelpers (where I made a similar change yesterday) based on review feedback, however I made a mistake so that the ThrowHelpers change didn't really get checked in, this ... | kyulee1/corert,gregkalapos/corert,yizhang82/corert,shrah/corert,yizhang82/corert,botaberg/corert,krytarowski/corert,tijoytom/corert,krytarowski/corert,botaberg/corert,shrah/corert,botaberg/corert,shrah/corert,sandreenko/corert,krytarowski/corert,kyulee1/corert,gregkalapos/corert,yizhang82/corert,botaberg/corert,kyulee1... | src/System.Private.CoreLib/src/Internal/Runtime/CompilerHelpers/ThrowHelpers.cs | src/System.Private.CoreLib/src/Internal/Runtime/CompilerHelpers/ThrowHelpers.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;
namespace Internal.Runtime.CompilerHelpers
{
/// <summary>
/// These methods are used to thr... | // 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;
namespace Internal.Runtime.CompilerHelpers
{
/// <summary>
/// These methods are used to thr... | mit | C# |
46af4bce32eb176c459514b04aac08a95cf44e35 | Cover regression in autoplay test | peppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,peppy/osu-new,EVAST9919/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,EVAST9919/osu | osu.Game.Tests/Visual/Gameplay/TestSceneAutoplay.cs | osu.Game.Tests/Visual/Gameplay/TestSceneAutoplay.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.ComponentModel;
using System.Linq;
using osu.Framework.Testing;
using osu.Game.Rulesets;
using osu.Game.Screens.Play;
using osu.Game.Screens.Play.Break;
na... | // 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.ComponentModel;
using System.Linq;
using osu.Framework.Testing;
using osu.Game.Rulesets;
using osu.Game.Screens.Play;
namespace osu.Game.Tests.Visual.Gamep... | mit | C# |
e5516938c082a779a1242e8c9b139b29213a8148 | add Times(int, Action<int>) | cube-soft/Cube.Core,cube-soft/Cube.Core | Libraries/Operations/Numeric.cs | Libraries/Operations/Numeric.cs | /* ------------------------------------------------------------------------- */
///
/// Copyright (c) 2010 CubeSoft, Inc.
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// ht... | /* ------------------------------------------------------------------------- */
///
/// Copyright (c) 2010 CubeSoft, Inc.
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// ht... | apache-2.0 | C# |
bdd8556a928b652b8f489f701c700d16c99e2f77 | Bump version to 2.1.0 | HangfireIO/Hangfire.Autofac | HangFire.Autofac/Properties/AssemblyInfo.cs | HangFire.Autofac/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("Hangfire.Autofac")]
[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("Hangfire.Autofac")]
[assembly: AssemblyDe... | mit | C# |
f8a8928699d17f6ec513e4ddfb19e8f413b6a1a1 | Implement update of booleans value in transformation project #28 | Julien-Mialon/Cake.Storm,Julien-Mialon/Cake.Storm | fluent/src/Cake.Storm.Fluent.Transformations/Models/CodeTransformation.cs | fluent/src/Cake.Storm.Fluent.Transformations/Models/CodeTransformation.cs | using System;
using System.Collections.Generic;
using Cake.Storm.Fluent.Transformations.Interfaces;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Cake.Storm.Fluent.Transformations.Models
{
internal class CodeTransformation : ICodeTransformati... | using System;
using System.Collections.Generic;
using Cake.Storm.Fluent.Transformations.Interfaces;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Cake.Storm.Fluent.Transformations.Models
{
internal class CodeTransformation : ICodeTransform... | mit | C# |
889d2da9a35ccf2a58dc569dec74645603d53ba5 | Modify class name. | ijufumi/garbage_calendar | garbage_calendar/Views/EditCalendarDataPage.xaml.cs | garbage_calendar/Views/EditCalendarDataPage.xaml.cs | using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace garbage_calendar
{
public partial class EditCalendarDataPage : ContentPage
{
public EditCalendarDataPage()
{
InitializeComponent();
}
}
}
| using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace garbage_calendar
{
public partial class EditDataPage : ContentPage
{
public EditDataPage()
{
InitializeComponent();
}
}
}
| mit | C# |
05a2132a3f738918e5add04665317f2415e07f5f | Undo TakeDmgstatic. | pepi55/ProefProeve | Assets/Scripts/Players/PlayerLocalBehaviour.cs | Assets/Scripts/Players/PlayerLocalBehaviour.cs | // Created by: Petar Dimitrov.
// Date: 23/02/2016
using UnityEngine;
using System.Collections.Generic;
/// <summary>
/// Extend this class to make a new Local player.
/// </summary>
public class PlayerLocalBehaviour : MonoBehaviour, IPlayerBehaviour
{
public static float PlayerHealth { get; protected set; }
publi... | // Created by: Petar Dimitrov.
// Date: 23/02/2016
using UnityEngine;
using System.Collections.Generic;
/// <summary>
/// Extend this class to make a new Local player.
/// </summary>
public class PlayerLocalBehaviour : MonoBehaviour, IPlayerBehaviour
{
public static float PlayerHealth { get; protected set; }
publi... | mit | C# |
e5ad6865b5e295cc59e9bb210702b88aca924a3d | Support encryption func in uwp | 89sos98/LiteDB,falahati/LiteDB,89sos98/LiteDB,masterdidoo/LiteDB,Skysper/LiteDB,icelty/LiteDB,mbdavid/LiteDB,RytisLT/LiteDB,masterdidoo/LiteDB,falahati/LiteDB,RytisLT/LiteDB | LiteDB/Platform/LitePlatformWindowsStore.cs | LiteDB/Platform/LitePlatformWindowsStore.cs | using System;
using System.Threading.Tasks;
#if WINDOWS_UWP
using System.Collections.Specialized;
#endif
using Windows.Storage;
using LiteDB.Platform;
namespace LiteDB.Platform
{
public class LitePlatformWindowsStore : ILitePlatform
{
private readonly LazyLoad<IFileHandler> _fileHandler;
priva... | using System;
using System.Threading.Tasks;
#if WINDOWS_UWP
using System.Collections.Specialized;
#endif
using Windows.Storage;
using LiteDB.Platform;
namespace LiteDB.Platform
{
public class LitePlatformWindowsStore : ILitePlatform
{
private readonly StorageFolder m_folder;
private readonly ... | mit | C# |
0d1cf93c1eebdd0c99c23d2722572ecde39ace8d | Update SelectListBoxItemOnPointerMovedBehavior.cs | wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors,XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors | src/Avalonia.Xaml.Interactions/Core/SelectListBoxItemOnPointerMovedBehavior.cs | src/Avalonia.Xaml.Interactions/Core/SelectListBoxItemOnPointerMovedBehavior.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Xaml.Interactivity;
namespace Avalonia.Xaml.Interactions.Core
{
/// <summary>
/// Sets IsSe... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Xaml.Interactivity;
namespace Avalonia.Xaml.Interactions.Core
{
/// <summary>
/// Sets IsSe... | mit | C# |
de181a828272aff1944b6a892caa4513ed3e1091 | Remove unused field | ar3cka/Journalist | src/Journalist.EventStore/Configuration/NotificationProcessingConfiguration.cs | src/Journalist.EventStore/Configuration/NotificationProcessingConfiguration.cs | using System.Collections.Generic;
using Journalist.EventStore.Notifications.Listeners;
namespace Journalist.EventStore.Configuration
{
public class NotificationProcessingConfiguration : INotificationProcessingConfiguration
{
private readonly IEventStoreConnectionConfiguration m_connection;
priv... | using System.Collections.Generic;
using Journalist.EventStore.Notifications.Listeners;
namespace Journalist.EventStore.Configuration
{
public class NotificationProcessingConfiguration : INotificationProcessingConfiguration
{
private readonly IEventStoreConnectionConfiguration m_connection;
priv... | apache-2.0 | C# |
1f2932d799916be95135454d999df4b15d25cb24 | add time in between beat resets | Dalet/140-speedrun-timer,Dalet/140-speedrun-timer,Dalet/140-speedrun-timer | 140-speedrun-timer/MainObject/BeatTimerController.cs | 140-speedrun-timer/MainObject/BeatTimerController.cs | using SpeedrunTimerMod.BeatTiming;
using UnityEngine;
namespace SpeedrunTimerMod
{
class BeatTimerController : MonoBehaviour
{
public BeatTimer BeatTimer { get; set; }
bool _firstLevelUpdate;
bool _endSoundPlaying;
bool _firstBeatAfterReset;
void OnLevelWasLoaded(int level)
{
SubscribeGlobalBeatMast... | using SpeedrunTimerMod.BeatTiming;
using UnityEngine;
namespace SpeedrunTimerMod
{
class BeatTimerController : MonoBehaviour
{
public BeatTimer BeatTimer { get; set; }
bool _firstLevelUpdate;
bool _endSoundPlaying;
bool _firstBeatAfterReset;
void OnLevelWasLoaded(int level)
{
SubscribeGlobalBeatMast... | unlicense | C# |
397371fe99767f951fe1f77b39e2365f2a15f15d | remove todos only | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EAS.Portal.Client/Models/IAccountDto.cs | src/SFA.DAS.EAS.Portal.Client/Models/IAccountDto.cs | using System;
using System.Collections.Generic;
namespace SFA.DAS.EAS.Portal.Client.Models
{
public interface IAccountDto
{
long AccountId { get; }
IEnumerable<IAccountLegalEntityDto> AccountLegalEntities { get; }
DateTime? Deleted { get; }
}
} | using System;
using System.Collections.Generic;
namespace SFA.DAS.EAS.Portal.Client.Models
{
//todo: can we simplify as we're using covariant?
public interface IAccountDto
{
long AccountId { get; }
IEnumerable<IAccountLegalEntityDto> AccountLegalEntities { get; }
DateTime? Deleted {... | mit | C# |
e26b59e59d6473702221a68d7432b33da2778fc0 | add LangVersion | unosquare/swan | src/Unosquare.Swan/Components/CsProjMetadataBase.cs | src/Unosquare.Swan/Components/CsProjMetadataBase.cs | namespace Unosquare.Swan.Components
{
using System.Linq;
using System.Xml.Linq;
/// <summary>
/// Represents a CsProj metadata abstract class
/// to use with <c>CsProjFile</c> parser.
/// </summary>
public abstract class CsProjMetadataBase
{
private XDocument _xmlDocument;
... | namespace Unosquare.Swan.Components
{
using System.Linq;
using System.Xml.Linq;
/// <summary>
/// Represents a CsProj metadata abstract class
/// to use with <c>CsProjFile</c> parser.
/// </summary>
public abstract class CsProjMetadataBase
{
private XDocument _xmlDocument;
... | mit | C# |
f058d4e0c6996cc96f0a8cb1e7642d8b645ed5a9 | Fix some problem with the find bar accepting input too early | dukemiller/anime-downloader | anime-downloader/Views/Components/Find.xaml.cs | anime-downloader/Views/Components/Find.xaml.cs | using System.Windows;
using UserControl = System.Windows.Controls.UserControl;
namespace anime_downloader.Views.Components
{
/// <summary>
/// Interaction logic for FindViewModel.xaml
/// </summary>
public partial class Find : UserControl
{
public Find()
{
InitializeCom... | using System.Windows;
using UserControl = System.Windows.Controls.UserControl;
namespace anime_downloader.Views.Components
{
/// <summary>
/// Interaction logic for FindViewModel.xaml
/// </summary>
public partial class Find : UserControl
{
public Find()
{
InitializeCom... | apache-2.0 | C# |
52b538e5fba331d41929ed241e2a8162b3d26dbd | change cache duration | Borayvor/ASP.NET-MVC-CourseProject,Borayvor/ASP.NET-MVC-CourseProject,Borayvor/ASP.NET-MVC-CourseProject | EntertainmentSystem/Common/EntertainmentSystem.Common/Constants/GlobalConstants.cs | EntertainmentSystem/Common/EntertainmentSystem.Common/Constants/GlobalConstants.cs | namespace EntertainmentSystem.Common.Constants
{
public class GlobalConstants
{
public const string StringEmpty = "";
public const string AdministratorRoleName = "Administrator";
public const string AdministratorAreaName = "Administration";
public const string ModeratorRoleNam... | namespace EntertainmentSystem.Common.Constants
{
public class GlobalConstants
{
public const string StringEmpty = "";
public const string AdministratorRoleName = "Administrator";
public const string AdministratorAreaName = "Administration";
public const string ModeratorRoleNam... | mit | C# |
a8b0c93ec428b614e38ed407d129d3f43377a290 | Fix build error | neuecc/MagicOnion | samples/JwtAuthentication/JwtAuthApp.Server/Program.cs | samples/JwtAuthentication/JwtAuthApp.Server/Program.cs | using System;
using System.Threading.Tasks;
using JwtAuthApp.Server.Authentication;
using LitJWT;
using LitJWT.Algorithms;
using MagicOnion.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace JwtAuthApp.Server
{
class Program
{
static async Task Main(s... | using System;
using System.Threading.Tasks;
using JwtAuthApp.Server.Authentication;
using LitJWT;
using LitJWT.Algorithms;
using MagicOnion.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace JwtAuthApp.Server
{
class Program
{
static async Task Main(s... | mit | C# |
682f0a1a47f487efe02757b1b5eb518f04734906 | Test for Show user by id | willegetz/NoTPK.APIWrapper.ObsidianPortal | NoTPK.APIWrapper.ObsidianPortal/APIWrapper.ObsidianPortal.Tests/API_Users_Tests.cs | NoTPK.APIWrapper.ObsidianPortal/APIWrapper.ObsidianPortal.Tests/API_Users_Tests.cs | using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NoTPK.APIWrapper.ObsidianPortal;
namespace APIWrapper.ObsidianPortal.Tests
{
[TestClass]
public class API_Users_Tests
{
private static string _appId = "";
private s... | using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NoTPK.APIWrapper.ObsidianPortal;
namespace APIWrapper.ObsidianPortal.Tests
{
[TestClass]
public class API_Users_Tests
{
private static string _appId = "";
private s... | apache-2.0 | C# |
84422d00ca48ccf6f68806bd1405cd5017bbfa03 | Fix Know Your Way support | CaitSith2/KtaneTwitchPlays,samfun123/KtaneTwitchPlays | TwitchPlaysAssembly/Src/ComponentSolvers/Modded/Misc/KnowYourWayComponentSolver.cs | TwitchPlaysAssembly/Src/ComponentSolvers/Modded/Misc/KnowYourWayComponentSolver.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEngine;
public class KnowYourWayComponentSolver : ComponentSolver
{
public KnowYourWayComponentSolver(BombCommander bombCommander, BombComponent bombComponent)
: base (bombCommander, bom... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEngine;
public class KnowYourWayComponentSolver : ComponentSolver
{
public KnowYourWayComponentSolver(BombCommander bombCommander, BombComponent bombComponent)
: base (bombCommander, bom... | mit | C# |
975efa85c8e1845b7ccd7acfd39abf8a7957610f | Fix a bug in BenchmarkResult. | SolalPirelli/ThriftSharp,SolalPirelli/ThriftSharp | ThriftSharp.Benchmarking/BenchmarkResult.cs | ThriftSharp.Benchmarking/BenchmarkResult.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace ThriftSharp.Benchmarking
{
public sealed class BenchmarkResult
{
public string Name { get; }
public TimeSpan ThriftSharpReadTime { get; }
public TimeSpan ThriftSharpWrite... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace ThriftSharp.Benchmarking
{
public sealed class BenchmarkResult
{
public string Name { get; }
public TimeSpan ThriftSharpReadTime { get; }
public TimeSpan ThriftSharpWrite... | mit | C# |
933c63b2d5cc08032fc35f956aeb31fc73982b86 | Add delay between attempts to contact the server | mylibero/cli,jonsequitur/cli,borgdylan/dotnet-cli,AbhitejJohn/cli,jonsequitur/cli,mylibero/cli,danquirk/cli,mlorbetske/cli,Faizan2304/cli,dasMulli/cli,danquirk/cli,naamunds/cli,marono/cli,nguerrera/cli,blackdwarf/cli,nguerrera/cli,marono/cli,mlorbetske/cli,MichaelSimons/cli,FubarDevelopment/cli,Faizan2304/cli,schellap/... | test/Microsoft.DotNet.Tools.Tests.Utilities/NetworkUtils/NetworkHelper.cs | test/Microsoft.DotNet.Tools.Tests.Utilities/NetworkUtils/NetworkHelper.cs | using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
namespace Microsoft.DotNet.Tools.Test.Utilities
{
public class NetworkHelper
{
// in milliseconds
private const int Timeout = 20... | using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
namespace Microsoft.DotNet.Tools.Test.Utilities
{
public class NetworkHelper
{
// in milliseconds
private const int Timeout = 20... | mit | C# |
6d9d8ad92e99efb4cd89a7a62b6c1d36aa655444 | fix the nukie code being the wrong one (#6040) | fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation | UnityProject/Assets/Scripts/Systems/Antagonists/Antags/NuclearOperative.cs | UnityProject/Assets/Scripts/Systems/Antagonists/Antags/NuclearOperative.cs | using UnityEngine;
using Objects.Command;
namespace Antagonists
{
[CreateAssetMenu(menuName="ScriptableObjects/Antagonist/NuclearOperative")]
public class NuclearOperative : Antagonist
{
[Tooltip("For use in Syndicate Uplinks")]
[SerializeField]
private int initialTC = 20;
public override void AfterSpawn(C... | using UnityEngine;
using Objects.Command;
namespace Antagonists
{
[CreateAssetMenu(menuName="ScriptableObjects/Antagonist/NuclearOperative")]
public class NuclearOperative : Antagonist
{
[Tooltip("For use in Syndicate Uplinks")]
[SerializeField]
private int initialTC = 20;
public override void AfterSpawn(C... | agpl-3.0 | C# |
eb630dc925f2089447ff9a21f3d42ddbcab6f557 | Document `DotLiquidApplicationRegistrations` | lijunle/Nancy,tsdl2013/Nancy,albertjan/Nancy,vladlopes/Nancy,jeff-pang/Nancy,EIrwin/Nancy,khellang/Nancy,jeff-pang/Nancy,VQComms/Nancy,ayoung/Nancy,ccellar/Nancy,daniellor/Nancy,MetSystem/Nancy,jongleur1983/Nancy,jmptrader/Nancy,felipeleusin/Nancy,albertjan/Nancy,danbarua/Nancy,sroylance/Nancy,joebuschmann/Nancy,charle... | src/Nancy.ViewEngines.DotLiquid/DotLiquidApplicationRegistrations.cs | src/Nancy.ViewEngines.DotLiquid/DotLiquidApplicationRegistrations.cs | namespace Nancy.ViewEngines.DotLiquid
{
using Nancy.Bootstrapper;
using global::DotLiquid.NamingConventions;
/// <summary>
/// Used to register DotLiquid's RubyNamingConvention as the default for the ViewEngine. The naming convention affect DotLiquid Drops and filters.
/// See <a href="http... | namespace Nancy.ViewEngines.DotLiquid
{
using Nancy.Bootstrapper;
using global::DotLiquid.NamingConventions;
public class DotLiquidApplicationRegistrations : ApplicationRegistrations
{
public DotLiquidApplicationRegistrations()
{
this.RegisterWithDefault<INamingCon... | mit | C# |
7d922c7d41a74e302779421245f0f7b568237740 | Add support to force register certain tuple types, useful for testing | Chatham/ServiceStack.Text.TupleSerializer | src/ServiceStack.Text.TupleSerializer/TupleSerializerConfigurator.cs | src/ServiceStack.Text.TupleSerializer/TupleSerializerConfigurator.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using ServiceStack.Text.TupleSerializer.Api;
namespace ServiceStack.Text.TupleSerializer
{
public sealed class TupleSerializerConfigurator : ITupleSerializerConfigurator
{
internal readonly HashSet<Assembly> _assembliesT... | using System;
using System.Collections.Generic;
using System.Reflection;
using ServiceStack.Text.TupleSerializer.Api;
namespace ServiceStack.Text.TupleSerializer
{
public sealed class TupleSerializerConfigurator : ITupleSerializerConfigurator
{
internal readonly HashSet<Assembly> _assembliesT... | mit | C# |
538744d13f28ff8e690267a738abebdc43f98edb | Make WindowsPrincipalIsInRoleNeg pass when a domain client is offline | Jiayili1/corefx,ptoonen/corefx,ViktorHofer/corefx,ptoonen/corefx,mmitche/corefx,ViktorHofer/corefx,ericstj/corefx,ptoonen/corefx,ericstj/corefx,shimingsg/corefx,shimingsg/corefx,Jiayili1/corefx,wtgodbe/corefx,ViktorHofer/corefx,Jiayili1/corefx,ericstj/corefx,ptoonen/corefx,Jiayili1/corefx,ptoonen/corefx,ptoonen/corefx,... | src/System.Security.Principal.Windows/tests/WindowsPrincipalTests.cs | src/System.Security.Principal.Windows/tests/WindowsPrincipalTests.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.ComponentModel;
using System.Security.Principal;
using Xunit;
public class WindowsPrinci... | // 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.Security.Principal;
using Xunit;
public class WindowsPrincipalTests
{
[Fact]
public static voi... | mit | C# |
025896b281ddcbabf992885c6be57626eb2cc567 | use BreakOnUse to add a popup message | WulfMarius/ModComponent | ModComponentMapper/src/patches/FireManagerPatches.cs | ModComponentMapper/src/patches/FireManagerPatches.cs | using Harmony;
using ModComponentAPI;
namespace ModComponentMapper
{
[HarmonyPatch(typeof(FireManager), "PlayerStartFire")]
internal class FireManager_PlayerStartFire
{
internal static void Postfix(FireStarterItem starter, bool __result)
{
if (!__result)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Harmony;
using ModComponentAPI;
namespace ModComponentMapper
{
[HarmonyPatch(typeof(FireManager), "PlayerStartFire")]
class FireManager_PlayerStartFire
{
internal static void Postfix(FireStarterItem starte... | mit | C# |
c1e5fd81975e6023dc845fee46ca65a9fa2d3406 | Update MVCConfigurationExtensions.cs | ipjohnson/Grace | src/Grace.AspNetCore.MVC/MVCConfigurationExtensions.cs | src/Grace.AspNetCore.MVC/MVCConfigurationExtensions.cs | using Grace.DependencyInjection;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Mvc.ViewComponents;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Grace.AspNetCore.MVC
{
public class GraceMVCConfiguration
{
public Grac... | using Grace.DependencyInjection;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Mvc.ViewComponents;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Grace.AspNetCore.MVC
{
public class GraceMVCConfiguration
{
public Grac... | mit | C# |
8dcd5c3646755853d7287d81caf8bf2289ca3e14 | Change version to 1.8 | Seddryck/NBi,Seddryck/NBi | AssemblyInfo.cs | AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// 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: AssemblyCompany("NBi Team - Cédric L. Charlier")]... | using System.Reflection;
using System.Runtime.CompilerServices;
// 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: AssemblyCompany("NBi Team - Cédric L. Charlier")]... | apache-2.0 | C# |
738ef6071d2604ac029adbdc6a9f98d1fbd0f35c | Fix invalid cast in CalculatorConnection | brian-dot-net/writeasync,brian-dot-net/writeasync,brian-dot-net/writeasync | projects/EventSourceSample/source/EventSourceSample.Core/CalculatorConnection.cs | projects/EventSourceSample/source/EventSourceSample.Core/CalculatorConnection.cs | //-----------------------------------------------------------------------
// <copyright file="CalculatorConnection.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace EventSourceSample... | //-----------------------------------------------------------------------
// <copyright file="CalculatorConnection.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace EventSourceSample... | unlicense | C# |
1a1bcc4a222f9bed592339ac044526945ff749af | fix for GA | autumn009/TanoCSharpSamples | Chap37/CallerExpressionAttribute/CallerExpressionAttribute/Program.cs | Chap37/CallerExpressionAttribute/CallerExpressionAttribute/Program.cs | using System;
using System.Runtime.CompilerServices;
CalcAndReport(1.23 * 4.56);
CalcAndReport((1 + 2) * 3);
CalcAndReport(Math.PI);
CalcAndReport("Hello " + "World!");
void CalcAndReport<T>(T argument, [CallerArgumentExpression("argument")] string? argumentExpression = null)
{
Console.WriteLine($"{argumentExpre... | using System.Runtime.CompilerServices;
CalcAndReport(1.23 * 4.56);
CalcAndReport((1 + 2) * 3);
CalcAndReport(Math.PI);
CalcAndReport("Hello " + "World!");
void CalcAndReport<T>(T argument, [CallerArgumentExpression("argument")] string? argumentExpression = null)
{
Console.WriteLine($"{argumentExpression} = {argu... | mit | C# |
983cc38ad592934fe31c2c0d5f4a21c5e071c87e | Update WrappingText.cs | aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,aspose-c... | Examples/CSharp/Formatting/ConfiguringAlignmentSettings/WrappingText.cs | Examples/CSharp/Formatting/ConfiguringAlignmentSettings/WrappingText.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Formatting.ConfiguringAlignmentSettings
{
public class WrappingText
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Ce... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Formatting.ConfiguringAlignmentSettings
{
public class WrappingText
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDa... | mit | C# |
506939b3adc422a5401c55ab235da9cddfecd43c | Bump version to 1.0.0rc5 | github-for-unity/Unity,github-for-unity/Unity,github-for-unity/Unity | common/SolutionInfo.cs | common/SolutionInfo.cs | #pragma warning disable 436
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("GitHub for Unity")]
[assembly: AssemblyVersion(System.AssemblyVersionInformation.VersionForAssembly)]
[assembly: AssemblyFileVersion(Sys... | #pragma warning disable 436
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("GitHub for Unity")]
[assembly: AssemblyVersion(System.AssemblyVersionInformation.VersionForAssembly)]
[assembly: AssemblyFileVersion(Sys... | mit | C# |
b79ba710fc33dd5f55890c124bccbc8f77129a03 | Enable source generator integration test | ErikSchierboom/roslyn,bartdesmet/roslyn,mavasani/roslyn,tannergooding/roslyn,KirillOsenkov/roslyn,KevinRansom/roslyn,KirillOsenkov/roslyn,eriawan/roslyn,AlekseyTs/roslyn,panopticoncentral/roslyn,diryboy/roslyn,tmat/roslyn,eriawan/roslyn,AmadeusW/roslyn,dotnet/roslyn,dotnet/roslyn,ErikSchierboom/roslyn,AmadeusW/roslyn,p... | src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpSourceGenerators.cs | src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpSourceGenerators.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.
#nullable disable
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Test.Ut... | // 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.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Test.Ut... | mit | C# |
00490daa052b6120f43280543992366d9115163d | add AddressText as raw address to be parsed | dhawalharsora/connectedcare-sdk,SnapMD/connectedcare-sdk | SnapMD.VirtualCare.ApiModels/Rules/RegistrationAvailabilityRequest.cs | SnapMD.VirtualCare.ApiModels/Rules/RegistrationAvailabilityRequest.cs | namespace SnapMD.VirtualCare.ApiModels.Rules
{
/// <summary>
/// Request model for RegistrationAvailability
/// </summary>
public class RegistrationAvailabilityRequest : SubjectAddress, IRuleExecutionRequest
{
/// <summary>
/// The category of the rule for the request.
/// <... | namespace SnapMD.VirtualCare.ApiModels.Rules
{
/// <summary>
/// Request model for RegistrationAvailability
/// </summary>
public class RegistrationAvailabilityRequest : SubjectAddress, IRuleExecutionRequest
{
/// <summary>
/// The category of the rule for the request.
/// <... | apache-2.0 | C# |
4df706af714d1542286a258c4c6a550909d84a3d | Fix Travis CI | lecaillon/Evolve | test/Evolve.Test.Utilities/Internal/DockerContainer.cs | test/Evolve.Test.Utilities/Internal/DockerContainer.cs | using System;
using Docker.DotNet;
using Docker.DotNet.Models;
namespace Evolve.Test.Utilities
{
internal class DockerContainer : IDockerContainer
{
private readonly DockerClient _client;
private readonly bool _rm;
public DockerContainer(string id, bool rm = true)
{
... | using System;
using Docker.DotNet;
using Docker.DotNet.Models;
namespace Evolve.Test.Utilities
{
internal class DockerContainer : IDockerContainer
{
private readonly DockerClient _client;
private readonly bool _rm;
public DockerContainer(string id, bool rm = true)
{
... | mit | C# |
6c95bff49106b0633677c9b4570af0ea1258c250 | Fix Travis CI | lecaillon/Evolve | test/Evolve.Test.Utilities/Internal/DockerContainer.cs | test/Evolve.Test.Utilities/Internal/DockerContainer.cs | using System;
using Docker.DotNet;
using Docker.DotNet.Models;
namespace Evolve.Test.Utilities
{
internal class DockerContainer : IDockerContainer
{
private readonly DockerClient _client;
private readonly bool _rm;
public DockerContainer(string id, bool rm = true)
{
... | using System;
using Docker.DotNet;
using Docker.DotNet.Models;
namespace Evolve.Test.Utilities
{
internal class DockerContainer : IDockerContainer
{
private readonly DockerClient _client;
private readonly bool _rm;
public DockerContainer(string id, bool rm = true)
{
... | mit | C# |
782ae2818523ac6a77de82158458356b90f3cb7e | Fix related to circular buffer. | shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib | dotnet/src/Tests/CoreTests.cs | dotnet/src/Tests/CoreTests.cs | using System;
using System.Collections.Generic;
using System.Text;
using TA.Lib;
namespace Tests
{
class CoreTests
{
public CoreTests()
{
simpleMACall();
averageTrueRangeTest();
callMFI();
callHT();
}
void simpleMACall()
{... | /****************************** BIG WARNING ********************
* Only the code in TA-Lib-Core for .NET is mature.
*
* All code in TA-Lib-Timeseries is in development and is
* not yet ready for use in applications.
****************************** BIG WARNING ********************/
using System;
using Syste... | bsd-3-clause | C# |
69732c9eccc484d8483fca74ff7d44439ade9cd3 | Remove unused namespaces from Worker template Program.cs (#8574) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs | src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace Company.Application1
{
public class Program
{
public static void Main(string[] args)
{
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace Company.Application1
{
public... | apache-2.0 | C# |
0be12611f0da0749cf647a840014ddf3d0f4fc47 | Add IRepository changes to the RepositorySaveOrUpdate | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Repo/RepositorySaveOrUpdate.cs | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Repo/RepositorySaveOrUpdate.cs | using System.Threading.Tasks;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo
{
public abstract partial class Repository< TEntity, TPk>
where TEntity : class
{
public TPk SaveOrUpdate(TEntity entity, IUnitOfWork uow)
{
... | using System.Threading.Tasks;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo
{
public abstract partial class Repository< TEntity, TPk>
where TEntity : class
{
public TPk SaveOrUpdate(TEntity entity, IUnitOfWork uow)
{
... | mit | C# |
f1da399a473ed476a8040175d313df3391e81a36 | Fix - notifiche update enti | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf | src/backend/SO115App.SignalR/Sender/GestioneEnti/NotificationUpdateEnte.cs | src/backend/SO115App.SignalR/Sender/GestioneEnti/NotificationUpdateEnte.cs | using CQRS.Queries;
using Microsoft.AspNetCore.SignalR;
using SO115App.Models.Classi.Condivise;
using SO115App.Models.Servizi.CQRS.Commands.GestioneRubrica.Enti.UpdateEnte;
using SO115App.Models.Servizi.CQRS.Queries.GestioneRubrica;
using SO115App.Models.Servizi.Infrastruttura.GestioneRubrica.Enti;
using SO115App.Mode... | using CQRS.Queries;
using Microsoft.AspNetCore.SignalR;
using SO115App.Models.Classi.Condivise;
using SO115App.Models.Servizi.CQRS.Commands.GestioneRubrica.Enti.UpdateEnte;
using SO115App.Models.Servizi.CQRS.Queries.GestioneRubrica;
using SO115App.Models.Servizi.Infrastruttura.GestioneRubrica.Enti;
using SO115App.Mode... | agpl-3.0 | C# |
f4190129a679c3aac585db013d93934b0f402c45 | Add judgement conditions | TomoyaShibata/Mastoon | Mastoon/Views/MainWindow.xaml.cs | Mastoon/Views/MainWindow.xaml.cs | using System.Diagnostics;
using System.Windows;
using System.Windows.Navigation;
using mshtml;
namespace Mastoon.Views
{
/// <summary>
/// ViewModel.xaml の相互作用ロジック
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeCo... | using System.Windows;
using System.Windows.Navigation;
using mshtml;
namespace Mastoon.Views
{
/// <summary>
/// ViewModel.xaml の相互作用ロジック
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
t... | mit | C# |
1ed9437e4d36af979a2b3bb666581bb93bab4626 | add integration test for flushing the cache | BaylorRae/Let.cs | tests/Let.cs.Tests/IntegrationTest.cs | tests/Let.cs.Tests/IntegrationTest.cs | using Moq;
using NUnit.Framework;
using System;
using LetTestHelper;
namespace Let.cs.Tests
{
[TestFixture]
public class IntegrationTest
{
private Mock<ISpy> MockSpy => LetHelper.Let("MockSpy", () => {
var mockSpy = new Mock<ISpy>();
mockSpy.Setup(spy => spy.DoSomething()).R... | using Moq;
using NUnit.Framework;
using System;
using LetTestHelper;
namespace Let.cs.Tests
{
[TestFixture]
public class IntegrationTest
{
private Mock<ISpy> MockSpy => LetHelper.Let("MockSpy", () => {
var mockSpy = new Mock<ISpy>();
mockSpy.Setup(spy => spy.DoSomething()).R... | mit | C# |
947ccd8cb5d99ab98f8b8c68dc02bab004025074 | Edit it | sta/websocket-sharp,2Toad/websocket-sharp,jogibear9988/websocket-sharp,jogibear9988/websocket-sharp,jogibear9988/websocket-sharp,2Toad/websocket-sharp,sta/websocket-sharp,sta/websocket-sharp,sta/websocket-sharp,jogibear9988/websocket-sharp,2Toad/websocket-sharp,2Toad/websocket-sharp | websocket-sharp/WebSocketException.cs | websocket-sharp/WebSocketException.cs | #region License
/*
* WebSocketException.cs
*
* The MIT License
*
* Copyright (c) 2012-2014 sta.blockhead
*
* 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, includ... | #region License
/*
* WebSocketException.cs
*
* The MIT License
*
* Copyright (c) 2012-2014 sta.blockhead
*
* 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, includ... | mit | C# |
5473ee8a9b8eeb2664817497668eae93c673dd8a | Bump AssemblyInfo version to 0.15.0 | Deadpikle/NetSparkle,Deadpikle/NetSparkle | AssemblyInfo.cs | 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: AssemblyTi... | 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: AssemblyTi... | mit | C# |
dc0789db5b0a66440eaed90f6a03a2861d11671f | Add classes | sakapon/Samples-2016,sakapon/Samples-2016 | BindingSample/BindingConsole/Person.cs | BindingSample/BindingConsole/Person.cs | using System;
using System.ComponentModel;
using System.Windows;
namespace BindingConsole
{
public class Person0
{
public int Id { get; set; }
public string Name { get; set; } = "";
}
public class Person1 : INotifyPropertyChanged
{
int _Id;
public ... | using System;
namespace BindingConsole
{
public class Person0
{
public int Id { get; set; }
public string Name { get; set; }
}
}
| mit | C# |
f84ed413e81298783248f0c6bac08522faa2a005 | remove of old and unused ref | Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal | Master/Appleseed/WebSites/Appleseed/DesktopModules/CoreModules/MVC/MVCModule.ascx.cs | Master/Appleseed/WebSites/Appleseed/DesktopModules/CoreModules/MVC/MVCModule.ascx.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Appleseed.Framework.Web.UI.WebControls;
using System.Web.Mvc;
//using Microsoft.Web.Mvc;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using Appleseed.Framework;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Appleseed.Framework.Web.UI.WebControls;
using System.Web.Mvc;
using Microsoft.Web.Mvc;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using Appleseed.Framework;
pu... | apache-2.0 | C# |
b5726a6782df8a00ab031956e4b033422fe2d937 | Use interface ICommand instead of MvxCommand | jquintus/spikes,jquintus/spikes,jquintus/spikes,jquintus/spikes | XamarinSpikes/MvvmCrossSpikes/MvvmCrossSpikes.Droid/Bindings/ButtonCommandBinding.cs | XamarinSpikes/MvvmCrossSpikes/MvvmCrossSpikes.Droid/Bindings/ButtonCommandBinding.cs | using Android.Widget;
using Cirrious.MvvmCross.ViewModels;
using System;
using System.Windows.Input;
namespace MvvmCrossSpikes.Droid.Bindings
{
public class ButtonCommandBinding : MvxTargetBinding<Button, ICommand>
{
private ICommand _command;
public ButtonCommandBinding(Button target)
... | using Android.Widget;
using Cirrious.MvvmCross.ViewModels;
using System;
using System.Windows.Input;
namespace MvvmCrossSpikes.Droid.Bindings
{
public class ButtonCommandBinding : MvxTargetBinding<Button, MvxCommand>
{
private ICommand _command;
public ButtonCommandBinding(Button target)
... | mit | C# |
c3f08a1c8f7c0e35eaee660072186944aa22c9f0 | Update IdentityCalibrationFunction.cs | zrolfs/MetaMorpheus,smith-chem-wisc/MetaMorpheus,hoffmann4/MetaMorpheus,XRSHEERAN/MetaMorpheus,lonelu/MetaMorpheus,rmillikin/MetaMorpheus,lschaffer2/MetaMorpheus | EngineLayer/CalibrationEngine/CalibrationFunctions/IdentityCalibrationFunction.cs | EngineLayer/CalibrationEngine/CalibrationFunctions/IdentityCalibrationFunction.cs | using System.Collections.Generic;
using System.Text;
namespace EngineLayer.Calibration
{
public class IdentityCalibrationFunction : CalibrationFunction
{
#region Public Methods
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Appen... | using System.Collections.Generic;
using System.Text;
namespace EngineLayer.Calibration
{
public class IdentityCalibrationFunction : CalibrationFunction
{
#region Public Methods
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Appen... | mit | C# |
cd9b5c0f208c50f5f89ddc9243b2530bf7814e97 | Fix small typo | xkproject/Orchard2,stevetayloruk/Orchard2,petedavis/Orchard2,petedavis/Orchard2,xkproject/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,petedavis/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,petedavis/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2 | src/OrchardCore/OrchardCore.ContentManagement.Abstractions/Routing/AutorouteEntry.cs | src/OrchardCore/OrchardCore.ContentManagement.Abstractions/Routing/AutorouteEntry.cs | namespace OrchardCore.ContentManagement.Routing
{
public class AutorouteEntry
{
public AutorouteEntry(string contentItemId, string path, string containedContentItemId = null, string jsonPath = null)
{
ContentItemId = contentItemId;
// Normalize path.
Path = "... | namespace OrchardCore.ContentManagement.Routing
{
public class AutorouteEntry
{
public AutorouteEntry(string contentItemId, string path, string containedContentItemId = null, string jsonPath = null)
{
ContentItemId = contentItemId;
// Normalize path.
Path = "... | bsd-3-clause | C# |
3777490c55105427cf2f2514a5c16233eae118fb | Fix spacing | noobot/noobot,Workshop2/noobot | tests/Noobot.Tests.Unit/Core/MessagingPipeline/ValidHandles/ExactMatchHandleTests.cs | tests/Noobot.Tests.Unit/Core/MessagingPipeline/ValidHandles/ExactMatchHandleTests.cs | using Noobot.Core.MessagingPipeline.Middleware.ValidHandles;
using Shouldly;
using Xunit;
namespace Noobot.Tests.Unit.Core.MessagingPipeline.ValidHandles
{
public class ExactMatchHandleTests
{
[Theory]
[InlineData("i love geoff", "i love geoff")]
[InlineData("who wants LUNCH?", "who wa... | using Noobot.Core.MessagingPipeline.Middleware.ValidHandles;
using Shouldly;
using Xunit;
namespace Noobot.Tests.Unit.Core.MessagingPipeline.ValidHandles
{
public class ExactMatchHandleTests
{
[Theory]
[InlineData("i love geoff", "i love geoff")]
[InlineData("who wants LUNCH?", "who wa... | mit | C# |
876491f97465cf58e4f111850ec5f193b54d1444 | Update Carrier Track member to be public | goshippo/shippo-csharp-client | Shippo/Track.cs | Shippo/Track.cs | using System;
using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Shippo {
[JsonObject (MemberSerialization.OptIn)]
public class Track : ShippoId
{
[JsonProperty (PropertyName = "carrier")]
public string Carrier;
[JsonProperty (PropertyName ... | using System;
using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Shippo {
[JsonObject (MemberSerialization.OptIn)]
public class Track : ShippoId
{
[JsonProperty (PropertyName = "carrier")]
private string Carrier;
[JsonProperty (PropertyName... | apache-2.0 | C# |
71875cb97d131235359c443467a8befdb41f342a | Change SDK name in NewAnalyzerTemplate | natidea/roslyn-analyzers,jaredpar/roslyn-analyzers,bkoelman/roslyn-analyzers,pakdev/roslyn-analyzers,pakdev/roslyn-analyzers,dotnet/roslyn-analyzers,heejaechang/roslyn-analyzers,genlu/roslyn-analyzers,srivatsn/roslyn-analyzers,mavasani/roslyn-analyzers,dotnet/roslyn-analyzers,mattwar/roslyn-analyzers,qinxgit/roslyn-ana... | NewAnalyzerTemplate/NewAnalyzerTemplate/NewAnalyzerTemplate/DiagnosticAnalyzer.cs | NewAnalyzerTemplate/NewAnalyzerTemplate/NewAnalyzerTemplate/DiagnosticAnalyzer.cs | /*This tutorial is going to guide you to write a diagnostic analyzer that enforces the placement of a single space between the if keyword of an if statement and the
open parenthesis of the condition.
For more information, please reference the ReadMe.
Before you begin, go to Tools->Extensions and Updates->Online, and... | /*This tutorial is going to guide you to write a diagnostic analyzer that enforces the placement of a single space between the if keyword of an if statement and the
open parenthesis of the condition.
For more information, please reference the ReadMe.
Before you begin, go to Tools->Extensions and Updates->Online, and... | mit | C# |
f9998839ce7600e0dfb133be231a4f4071fccd1f | fix Zoe's comments | dotnet/roslyn-analyzers,natidea/roslyn-analyzers,pakdev/roslyn-analyzers,qinxgit/roslyn-analyzers,tmeschter/roslyn-analyzers-1,heejaechang/roslyn-analyzers,jasonmalinowski/roslyn-analyzers,jinujoseph/roslyn-analyzers,mavasani/roslyn-analyzers,Anniepoh/roslyn-analyzers,pakdev/roslyn-analyzers,mavasani/roslyn-analyzers,b... | NewAnalyzerTemplate/NewAnalyzerTemplate/NewAnalyzerTemplate/DiagnosticAnalyzer.cs | NewAnalyzerTemplate/NewAnalyzerTemplate/NewAnalyzerTemplate/DiagnosticAnalyzer.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.
/*This tutorial is going to guide you to write a diagnostic analyzer that enforces the placement of a single space between the if keyword of an if statement a... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
/*This tutorial is going to guide you to write a diagnostic analyzer that enforces the placement of one space between the if keyword of an if statement and th... | mit | C# |
b2ccd3c55658933042426c85ed2994538531bfaf | fix M area routing | RoxanaAnghel/quiz-engine,QubizSolutions/quiz-engine,RoxanaAnghel/quiz-engine,QubizSolutions/quiz-engine,MarianCristian/quiz-engine,QubizSolutions/quiz-engine,MarianCristian/quiz-engine,QubizSolutions/quiz-engine,MarianCristian/quiz-engine,RoxanaAnghel/quiz-engine,MarianCristian/quiz-engine,QubizSolutions/quiz-engine,Ma... | src/Qubiz.QuizEngine/Areas/M/MAreaRegistration.cs | src/Qubiz.QuizEngine/Areas/M/MAreaRegistration.cs | using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
namespace Qubiz.QuizEngine.Areas.M
{
public class MAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "M";
}
}
publ... | using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
namespace Qubiz.QuizEngine.Areas.M
{
public class MAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "M";
}
}
publ... | mit | C# |
056ec6f071409b2d1efac24b28f432ceb5aa5236 | Fix ICollector<CloudQueueMessage> (fixes #290). | gibwar/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,brendankowitz/azure-webjobs-... | src/Microsoft.Azure.WebJobs.Host/Queues/Bindings/MessageConverterFactory.cs | src/Microsoft.Azure.WebJobs.Host/Queues/Bindings/MessageConverterFactory.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections;
using Microsoft.WindowsAzure.Storage.Queue;
namespace Microsoft.Azure.WebJobs.Host.Queues.Bin... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections;
using Microsoft.WindowsAzure.Storage.Queue;
namespace Microsoft.Azure.WebJobs.Host.Queues.Bin... | mit | C# |
305631f320ad8df674ca8ee905b37b5e7a6a8737 | Update DisposeFixtureCommand.cs | nunit/nunit,nunit/nunit | src/NUnitFramework/framework/Internal/Commands/DisposeFixtureCommand.cs | src/NUnitFramework/framework/Internal/Commands/DisposeFixtureCommand.cs | // Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt
#nullable enable
using System;
using NUnit.Framework.Interfaces;
namespace NUnit.Framework.Internal.Commands
{
/// <summary>
/// OneTimeTearDownCommand performs any teardown actions
/// specified for a suite and ca... | // Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt
#nullable enable
using System;
using NUnit.Framework.Interfaces;
namespace NUnit.Framework.Internal.Commands
{
/// <summary>
/// OneTimeTearDownCommand performs any teardown actions
/// specified for a suite and ca... | mit | C# |
37cc088278498f8ad8e2f00c018d03e1389617da | Support RelationName as dictionary key | elastic/elasticsearch-net,elastic/elasticsearch-net | src/Nest/CommonAbstractions/Infer/RelationName/RelationNameFormatter.cs | src/Nest/CommonAbstractions/Infer/RelationName/RelationNameFormatter.cs | using Utf8Json;
namespace Nest
{
internal class RelationNameFormatter : IJsonFormatter<RelationName>, IObjectPropertyNameFormatter<RelationName>
{
public RelationName Deserialize(ref JsonReader reader, IJsonFormatterResolver formatterResolver)
{
if (reader.GetCurrentJsonToken() == JsonToken.String)
{
... | using Utf8Json;
namespace Nest
{
internal class RelationNameFormatter : IJsonFormatter<RelationName>
{
public RelationName Deserialize(ref JsonReader reader, IJsonFormatterResolver formatterResolver)
{
if (reader.GetCurrentJsonToken() == JsonToken.String)
{
RelationName relationName = reader.ReadStrin... | apache-2.0 | C# |
a3d010a3cad770dbe20e25a84dd070a9955e37e3 | Fix build break caused by Keane releasing a new album | AnthonySteele/SevenDigital.Api.Wrapper,raoulmillais/SevenDigital.Api.Wrapper,bettiolo/SevenDigital.Api.Wrapper,gregsochanik/SevenDigital.Api.Wrapper,actionshrimp/SevenDigital.Api.Wrapper,emashliles/SevenDigital.Api.Wrapper,minkaotic/SevenDigital.Api.Wrapper,luiseduardohdbackup/SevenDigital.Api.Wrapper,danbadge/SevenDig... | src/SevenDigital.Api.Dynamic.Integration.Tests/DynamicXmlParserTests.cs | src/SevenDigital.Api.Dynamic.Integration.Tests/DynamicXmlParserTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using NUnit.Framework;
using SevenDigital.Api.Wrapper;
using SevenDigital.Api.Wrapper.EndpointResolution;
using SevenDigital.Api.Wrapper.EndpointResolution.OAuth;
using SevenDigital.Api.Wrapper.Utility.Http;
namespace ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using NUnit.Framework;
using SevenDigital.Api.Wrapper;
using SevenDigital.Api.Wrapper.EndpointResolution;
using SevenDigital.Api.Wrapper.EndpointResolution.OAuth;
using SevenDigital.Api.Wrapper.Utility.Http;
namespace ... | mit | C# |
63572f10ad967c666169de3dc42ba57ddf6a1633 | Fix EventNotification 0 not getting serialized | tgstation/tgstation-server-tools,tgstation/tgstation-server,tgstation/tgstation-server | src/Tgstation.Server.Host/Components/Interop/Topic/EventNotification.cs | src/Tgstation.Server.Host/Components/Interop/Topic/EventNotification.cs | using System.Collections.Generic;
using System.Linq;
using Tgstation.Server.Host.Components.Events;
namespace Tgstation.Server.Host.Components.Interop.Topic
{
/// <summary>
/// Data structure for <see cref="TopicCommandType.EventNotification"/> requests.
/// </summary>
sealed class EventNotification
{
/// <summ... | using System.Collections.Generic;
using System.Linq;
using Tgstation.Server.Host.Components.Events;
namespace Tgstation.Server.Host.Components.Interop.Topic
{
/// <summary>
/// Data structure for <see cref="TopicCommandType.EventNotification"/> requests.
/// </summary>
sealed class EventNotification
{
/// <sum... | agpl-3.0 | C# |
0796d38d38198add71c021edd4eec99b1f184907 | fix whitespace | kherr9/TransitSocial.ChicagoTransitAuthority | src/TransitSocial.ChicagoTransitAuthority.BusTracker/GetTimeResponse.cs | src/TransitSocial.ChicagoTransitAuthority.BusTracker/GetTimeResponse.cs | using System;
using System.Xml.Serialization;
namespace TransitSocial.ChicagoTransitAuthority.BusTracker
{
/// <summary>
/// Response envelope for GetTime
/// </summary>
[Serializable]
[XmlTypeAttribute(TypeName = "bustime-response")]
public class GetTimeResponse
{
[Xml... | using System;
using System.Xml.Serialization;
namespace TransitSocial.ChicagoTransitAuthority.BusTracker
{
/// <summary>
/// Response envelope for GetTime
/// </summary>
[Serializable]
[XmlTypeAttribute(TypeName = "bustime-response")]
public class GetTimeResponse
{
[XmlElement("err... | mit | C# |
7541858ab4cb17c47b02d04b341a5c881b30fdf9 | Update NewBehaviourScript11.cs | maconbot/quick | one/two/Assets/Scripts/NewBehaviourScript11.cs | one/two/Assets/Scripts/NewBehaviourScript11.cs | using UnityEngine;
using System.Collections;
public class NewBehaviourScript11 : MonoBehaviour {
// Use this for initialization
void Start () {
//lets think here
}
// Update is called once per frame
void Update () {
}
}
| using UnityEngine;
using System.Collections;
public class NewBehaviourScript11 : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
| unlicense | C# |
ee3b98dee4092e1c78253cf5183d9534ad123f51 | set AssemblyFileVersion to 1.2.5149 | jandockx/ppwcode-recovered-from-google-code,jandppw/ppwcode-recovered-from-google-code,jandppw/ppwcode-recovered-from-google-code,jandockx/ppwcode-recovered-from-google-code,jandockx/ppwcode-recovered-from-google-code,jandppw/ppwcode-recovered-from-google-code,jandockx/ppwcode-recovered-from-google-code,jandockx/ppwcod... | dotnet/Kit/Tasks/trunk/SolutionItems/SolutionInfo.cs | dotnet/Kit/Tasks/trunk/SolutionItems/SolutionInfo.cs | /*
* Copyright 2004 - $Date: 2008-11-15 23:58:07 +0100 (za, 15 nov 2008) $ by PeopleWare n.v..
*
* 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/license... | /*
* Copyright 2004 - $Date: 2008-11-15 23:58:07 +0100 (za, 15 nov 2008) $ by PeopleWare n.v..
*
* 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/license... | apache-2.0 | C# |
5fb884b6a1d331095dbdcb205f5ca06cfb4d5b45 | Fix missing newline at the end of a file | ptoonen/corefx,richlander/corefx,tstringer/corefx,manu-silicon/corefx,parjong/corefx,dotnet-bot/corefx,manu-silicon/corefx,manu-silicon/corefx,krk/corefx,weltkante/corefx,ptoonen/corefx,wtgodbe/corefx,dotnet-bot/corefx,Petermarcu/corefx,krytarowski/corefx,stone-li/corefx,Chrisboh/corefx,YoupHulsebos/corefx,shmao/corefx... | src/System.Runtime/tests/System/IO/DirectoryNotFoundExceptionTests.cs | src/System.Runtime/tests/System/IO/DirectoryNotFoundExceptionTests.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.IO;
using Xunit;
namespace System.IO.Tests
{
public static class DirectoryNotFoundEx... | // 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.IO;
using Xunit;
namespace System.IO.Tests
{
public static class DirectoryNotFoundEx... | mit | C# |
b31882bf8ee657c329863def82d7608569ffcf55 | Fix References | bytePassion/OpenQuoridorFramework | OpenQuoridorFramework/OQF.PlayerVsBot/Behaviors/MainWindowClosingBehavior.cs | OpenQuoridorFramework/OQF.PlayerVsBot/Behaviors/MainWindowClosingBehavior.cs | using System.ComponentModel;
using System.Windows;
using System.Windows.Interactivity;
using MaterialDesignThemes.Wpf;
using OQF.PlayerVsBot.ViewModels.MainWindow;
using OQF.Visualization.Resources.LanguageDictionaries;
namespace OQF.PlayerVsBot.Behaviors
{
internal class MainWindowClosingBehavior: Behavior<Window>
... | using System.ComponentModel;
using System.Windows;
using System.Windows.Interactivity;
namespace OQF.PlayerVsBot.Behaviors
{
internal class MainWindowClosingBehavior: Behavior<Window>
{
protected override void OnAttached()
{
base.OnAttached();
AssociatedObject.Closing += OnClosing;
}
protected over... | apache-2.0 | C# |
e9a3c644b61c1b570a55449a71e02d45e13c3d21 | Add async methods to IHidDevice interface | brianlance/HidLibrary,mikeobrien/HidLibrary,brianlance/HidLibrary,mikeobrien/HidLibrary,brianlance/HidLibrary | src/HidLibrary/IHidDevice.cs | src/HidLibrary/IHidDevice.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HidLibrary
{
public delegate void InsertedEventHandler();
public delegate void RemovedEventHandler();
public enum DeviceMode
{
NonOverlapped = 0,
Overlapped = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HidLibrary
{
public delegate void InsertedEventHandler();
public delegate void RemovedEventHandler();
public enum DeviceMode
{
NonOverlapped = 0,
Overlapped = 1
}
[Flags]
publi... | mit | C# |
84f3f820aabef1d09828d1f5273ab6e002f0f6a4 | Initialize to the route handler of ASP.NET MVC | restful-routing/restful-routing,stevehodgkiss/restful-routing,stevehodgkiss/restful-routing,stevehodgkiss/restful-routing,restful-routing/restful-routing,restful-routing/restful-routing | src/RestfulRouting/Mapper.cs | src/RestfulRouting/Mapper.cs | using System.Web.Mvc;
using System.Web.Routing;
namespace RestfulRouting
{
public abstract class Mapper
{
private readonly IRouteHandler _routeHandler;
protected Mapper()
{
_routeHandler = new MvcRouteHandler();
}
protected Route GenerateRoute(string path, string controller, string action, string[] h... | using System.Web.Mvc;
using System.Web.Routing;
namespace RestfulRouting
{
public abstract class Mapper
{
private readonly IRouteHandler _routeHandler;
protected Route GenerateRoute(string path, string controller, string action, string[] httpMethods)
{
return new Route(path,
new RouteValueDictionary(n... | mit | C# |
47d43550622518546f7366991139e0f584231db8 | fix space for armor values | PavelMaca/WoT-PogsIconSet | Layers/Armor.cs | Layers/Armor.cs | using Phobos.WoT;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WotPogsIconSet.Fonts;
namespace WotPogsIconSet.Layers
{
public class Armor
{
const int MAX_WIDTH = 41;
public static... | using Phobos.WoT;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WotPogsIconSet.Fonts;
namespace WotPogsIconSet.Layers
{
public class Armor
{
const int MAX_WIDTH = 40;
public static... | bsd-3-clause | C# |
fa55d529ee1841106f909b339b658e190cddfeea | add context menu | kchen0723/ExcelAsync | ExcelAsyncWpf/ExcelOperate/ExcelApp.cs | ExcelAsyncWpf/ExcelOperate/ExcelApp.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Interop.Excel;
using Microsoft.Office.Core;
namespace ExcelAsyncWpf.ExcelOperate
{
public static class ExcelApp
{
public static uint ExcelMainUiThreadId { get; set; }
pr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Interop.Excel;
namespace ExcelAsyncWpf.ExcelOperate
{
public static class ExcelApp
{
public static uint ExcelMainUiThreadId { get; set; }
private static Application m_currentExcel;
... | agpl-3.0 | C# |
7e1aa94191b261a07ab4be11d1180be4b5bce1cb | Set max concurrent deliveries to 10 in demo. | justinjstark/Verdeler,justinjstark/Delivered | Demo/Program.cs | Demo/Program.cs | using System;
using Demo.Endpoints.FileSystem;
using Demo.Endpoints.Sharepoint;
using Verdeler;
namespace Demo
{
internal class Program
{
private static void Main(string[] args)
{
//Configure the distributor
var distributor = new Distributor<DistributableFile, Vendor>()... | using System;
using Demo.Endpoints.FileSystem;
using Demo.Endpoints.Sharepoint;
using Verdeler;
namespace Demo
{
internal class Program
{
private static void Main(string[] args)
{
//Configure the distributor
var distributor = new Distributor<DistributableFile, Vendor>()... | mit | C# |
33a5c156a1e79e3ffe22f7199e9348f8f42b2464 | Use existing snap list from BindableBeatDivisor | UselessToucan/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,peppy/osu,peppy/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu | osu.Game/Rulesets/Objects/BeatDivisorFinder.cs | osu.Game/Rulesets/Objects/BeatDivisorFinder.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Utils;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Screens.Edit;
namespace osu.Game.Rulesets.Objects... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Utils;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Rulesets.Objects
{
/// <summary>
/// ... | mit | C# |
fc52384daefc1b8388057ef2460730e52ab753bb | Remove milliseconds from date fields in GetLearners Json | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api/Controllers/LearnerController.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api/Controllers/LearnerController.cs | using System;
using System.Threading.Tasks;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using SFA.DAS.CommitmentsV2.Api.Types.Responses;
using SFA.DAS.CommitmentsV2.Application.Queries.GetAllLearners;
namespace SFA.DAS.CommitmentsV2.Api.Controllers
{
[ApiController]
[Route("api/learn... | using System;
using System.Threading.Tasks;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using SFA.DAS.CommitmentsV2.Api.Types.Responses;
using SFA.DAS.CommitmentsV2.Application.Queries.GetAllLearners;
namespace SFA.DAS.CommitmentsV2.Api.Controllers
{
[ApiController]
[Route("api/learners")]
public class... | mit | C# |
700d615d57add88622a15d6575c1205e629a7fed | Add `HasPriorLearning` to draft DTO | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Types/Dtos/DraftApprenticeshipDto.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Types/Dtos/DraftApprenticeshipDto.cs | using System;
namespace SFA.DAS.CommitmentsV2.Types.Dtos
{
public class DraftApprenticeshipDto
{
public long Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public DateTime? DateOfBirth { get;... | using System;
namespace SFA.DAS.CommitmentsV2.Types.Dtos
{
public class DraftApprenticeshipDto
{
public long Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public DateTime? DateOfBirth { get;... | mit | C# |
c840f2480513779afbdaf53947f518e467ede0df | update file version | idormenco/PolyBool.Net | Polybool.Net/Properties/AssemblyInfo.cs | Polybool.Net/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("Polybool.Net")]
[assembly: AssemblyDescri... | 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("Polybool.Net")]
[assembly: AssemblyDescri... | mit | C# |
76176c3d7c6ad4dded931986399dd89231d7681b | Add placeholder for Config.GetDurationInNanos | AdaptiveConsulting/Aeron.NET,AdaptiveConsulting/Aeron.NET | src/Adaptive.Aeron/Config.cs | src/Adaptive.Aeron/Config.cs | /*
* Copyright 2014 - 2017 Adaptive Financial Consulting Ltd
*
* 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.0S
*
* Unless required by ap... | /*
* Copyright 2014 - 2017 Adaptive Financial Consulting Ltd
*
* 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.0S
*
* Unless required by ap... | apache-2.0 | C# |
87d390fe4b28a1a8d39bb70fd6dd03562f512866 | Add basic execute method to parseresult (temp fix, want to add typechecking and specify return type) | jordanwallwork/jello | src/Jello/ParseResult.cs | src/Jello/ParseResult.cs | using System.Collections.Generic;
using Jello.DataSources;
using Jello.Errors;
using Jello.Nodes;
namespace Jello
{
public class ParseResult
{
public bool Success { get; private set; }
public IEnumerable<IError> Errors { get; private set; }
private INode _root;
public ParseR... | using System.Collections.Generic;
using Jello.Errors;
using Jello.Nodes;
namespace Jello
{
public class ParseResult
{
public bool Success { get; private set; }
public IEnumerable<IError> Errors { get; private set; }
private INode _root;
public ParseResult(INode node)
... | mit | C# |
13f4bad9a1abf3494ae2e5ec855d827f05b18e5a | Add unit tests for enum scrobble action type read and write. | henrikfroehling/TraktApiSharp | Source/Tests/TraktApiSharp.Tests/Enums/TraktScrobbleActionTypeTests.cs | Source/Tests/TraktApiSharp.Tests/Enums/TraktScrobbleActionTypeTests.cs | namespace TraktApiSharp.Tests.Enums
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
using TraktApiSharp.Enums;
[TestClass]
public class TraktScrobbleActionTypeTests
{
class TestObject
{
[JsonConverter(typeof(T... | namespace TraktApiSharp.Tests.Enums
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Enums;
[TestClass]
public class TraktScrobbleActionTypeTests
{
[TestMethod]
public void TestTraktScrobbleActionTypeHasMembers()
{
... | mit | C# |
3dedfd4c5e6c2184a398ceedbc374fb8fefefcec | fix build warning | dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP | samples/Sample.RabbitMQ.Postgres.DashboardAuth/HttpContextDashboardFilter.cs | samples/Sample.RabbitMQ.Postgres.DashboardAuth/HttpContextDashboardFilter.cs | using System;
using System.Threading.Tasks;
using DotNetCore.CAP.Dashboard;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace Sample.RabbitMQ.Postgres.DashboardAuth
{
public class HttpContextDashboardFilter : IDashboardAuthorizationFilter
{
public Task<bool> Aut... | using System;
using System.Threading.Tasks;
using DotNetCore.CAP.Dashboard;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace Sample.RabbitMQ.Postgres.DashboardAuth
{
public class HttpContextDashboardFilter : IDashboardAuthorizationFilter
{
public async Task<boo... | mit | C# |
b41520e6e388da15d8a39d4670ee2544ce18d9cc | Update _NameListPartial.cshtml | kpi-ua/X.PagedList,kpi-ua/X.PagedList,ernado-x/X.PagedList,ernado-x/X.PagedList,dncuug/X.PagedList | examples/X.PagedList.Mvc.Example.Core/Views/Home/_NameListPartial.cshtml | examples/X.PagedList.Mvc.Example.Core/Views/Home/_NameListPartial.cshtml | @*use this for the fake AjaxOptions since ajax helpers were dropped in .net core*@
@model IPagedList<string>
@*import this so we get our HTML Helper*@
@using X.PagedList.Mvc.Core;
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@
@using X.PagedList;
@using X.Page... | @*use this for the fake AjaxOptions since ajax helpers were dropped in .net core*@
@model IPagedList<string>
@*import this so we get our HTML Helper*@
@using X.PagedList.Mvc.Core;
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@
@using X.PagedList;
@using X.Page... | mit | C# |
b00c20da1212fbc86f4d8593a6997013e5f921d0 | Remove personal Zendesk API credentials from test settings. | CKCobra/ZendeskApi_v2,mwarger/ZendeskApi_v2 | src/Tests/Settings.cs | src/Tests/Settings.cs | namespace Tests {
public class Settings
{
public const string Site = "https://csharpapi.zendesk.com/api/v2/";
public const string DefaultOrg = "csharpapi";
public const string Email = "eric.neifert@gmail.com";
public const string Password = "pa55word";
public const string ... | namespace Tests {
public class Settings
{
//public const string Site = "https://csharpapi.zendesk.com/api/v2/";
public const string Site = "https://pruvit.zendesk.com/api/v2/";
public const string DefaultOrg = "csharpapi";
//public const string Email = "eric.neifert@gmail.com";
... | apache-2.0 | C# |
29e828c1d212705dc5094a480bf0f0cf2220dbc8 | Add extension methods to produce distinct lookups | bungeemonkee/Utilitron | Utilitron/Linq/EnumerableExtensions.cs | Utilitron/Linq/EnumerableExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Utilitron.Linq
{
/// <summary>
/// Extensions for any <see cref="IEnumerable{T}"/>.
/// </summary>
public static class EnumerableExtensions
{
/// <summary>
/// Adds a single item to an enumerable.
... | using System.Collections.Generic;
using System.Linq;
namespace Utilitron.Linq
{
/// <summary>
/// Extensions for any <see cref="IEnumerable{T}"/>.
/// </summary>
public static class EnumerableExtensions
{
/// <summary>
/// Adds a single item to an enumerable.
/// </summary>... | mit | C# |
021914cb14c3b9975e68b00b9dfb42f61fa9967c | Format source code in CustomReflectionContext.cs | twsouthwick/corefx,iamjasonp/corefx,benpye/corefx,nbarbettini/corefx,fgreinacher/corefx,nbarbettini/corefx,axelheer/corefx,shmao/corefx,khdang/corefx,Chrisboh/corefx,zhenlan/corefx,mokchhya/corefx,dotnet-bot/corefx,rahku/corefx,zhenlan/corefx,josguil/corefx,kkurni/corefx,JosephTremoulet/corefx,wtgodbe/corefx,josguil/co... | src/System.Reflection.Context/src/System/Reflection/Context/CustomReflectionContext.cs | src/System.Reflection.Context/src/System/Reflection/Context/CustomReflectionContext.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
namespace System.Reflection.Context
{
public abstract class CustomReflectionContext : ReflectionContext
{
protected C... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using global::System;
using global::System.Reflection;
using global::System.Diagnostics;
using global::System.Collections.Generic;
namespace System.Reflection.Context
... | mit | C# |
51c391ea734c7e1cbb40a4a227ed65249d06d633 | Add missing using directive in quickstart | shrishrirang/azure-mobile-apps-quickstarts,soninaren/azure-mobile-services-quickstarts,phvannor/azure-mobile-services-quickstarts,aziel/azure-mobile-services-quickstarts,shrishrirang/azure-mobile-apps-quickstarts,shrishrirang/azure-mobile-services-quickstarts,phvannor/azure-mobile-services-quickstarts,lindydonna/azure-... | Quickstart/ZUMOAPPNAMEService/App_Start/WebApiConfig.cs | Quickstart/ZUMOAPPNAMEService/App_Start/WebApiConfig.cs | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Web.Http;
using Microsoft.WindowsAzure.Mobile.Service;
using ZUMOAPPNAMEService.DataObjects;
using ZUMOAPPNAMEService.Models;
namespace ZUMOAPPNAMEService
{
public static class WebApiConfig
{
public static void Regi... | using System.Collections.Generic;
using System.Data.Entity;
using System.Web.Http;
using Microsoft.WindowsAzure.Mobile.Service;
using ZUMOAPPNAMEService.DataObjects;
using ZUMOAPPNAMEService.Models;
namespace ZUMOAPPNAMEService
{
public static class WebApiConfig
{
public static void Register()
... | apache-2.0 | C# |
6a57e028a70be978ea4f2150c9c4424a81d3e8b6 | Update About.cshtml | capqueen/CapQueenCMS,capqueen/CapQueenCMS,capqueen/CapQueenCMS | CapQueenCMS.UI/CapQueenCMS/Views/Home/About.cshtml | CapQueenCMS.UI/CapQueenCMS/Views/Home/About.cshtml | @{
ViewBag.Title = "About";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<p>Use this area to provide additional information.11</p>
| @{
ViewBag.Title = "About";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<p>Use this area to provide additional information.</p>
| artistic-2.0 | C# |
897a4817cf32481e8b72000e731f2c6fdf1a3bed | Fix tests | JosephWoodward/GlobalExceptionHandlerDotNet,JosephWoodward/GlobalExceptionHandlerDotNet | src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/LogExceptionTests.cs | src/GlobalExceptionHandler.Tests/WebApi/LoggerTests/LogExceptionTests.cs | using System;
using System.Net.Http;
using System.Threading.Tasks;
using GlobalExceptionHandler.Tests.WebApi.Fixtures;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.TestHost;
using Shouldly;
using Xunit;
namespace GlobalExceptionHand... | using System;
using System.Net.Http;
using System.Threading.Tasks;
using GlobalExceptionHandler.Tests.WebApi.Fixtures;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.TestHost;
using Shouldly;
using Xunit;
namespace GlobalExceptionHand... | mit | C# |
49081c667ac6f7a7b1319d94498752ff431c837c | Fix ObjectMessagePackSerializer cannot deserialize array and map correctly (merge from 0.4 branch). | undeadlabs/msgpack-cli,msgpack/msgpack-cli,msgpack/msgpack-cli,scopely/msgpack-cli,scopely/msgpack-cli,modulexcite/msgpack-cli,undeadlabs/msgpack-cli,modulexcite/msgpack-cli | src/MsgPack/Serialization/DefaultSerializers/System_ObjectMessagePackSerializer.cs | src/MsgPack/Serialization/DefaultSerializers/System_ObjectMessagePackSerializer.cs | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010-2012 FUJIWARA, Yusuke
//
// 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.apac... | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010-2012 FUJIWARA, Yusuke
//
// 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.apac... | apache-2.0 | C# |
03d34a08f1b70877f1bfae1e16f1912e114dadeb | Fix crash when logging in | ethanmoffat/EndlessClient | EndlessClient/Rendering/NPC/NPCAnimationActions.cs | EndlessClient/Rendering/NPC/NPCAnimationActions.cs | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using EndlessClient.ControlSets;
using EndlessClient.HUD.Controls;
using EOLib.Domain.Notifiers;
namespace EndlessClient.Rendering.NPC
{
public class NPCAnimationAct... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using EndlessClient.ControlSets;
using EndlessClient.HUD.Controls;
using EOLib.Domain.Notifiers;
namespace EndlessClient.Rendering.NPC
{
public class NPCAnimationAct... | mit | C# |
12c76a4d39620fc3e2a8888df946e0023ada6eee | Fix extensions returning null when documents are available | takenet/messaginghub-client-csharp | src/Takenet.MessagingHub.Client/Extensions/ServiceContainerExtensions.cs | src/Takenet.MessagingHub.Client/Extensions/ServiceContainerExtensions.cs | using Takenet.MessagingHub.Client.Extensions.AttendanceForwarding;
using Takenet.MessagingHub.Client.Extensions.Broadcast;
using Takenet.MessagingHub.Client.Extensions.Bucket;
using Takenet.MessagingHub.Client.Extensions.Contacts;
using Takenet.MessagingHub.Client.Extensions.Delegation;
using Takenet.MessagingHub.Clie... | using Takenet.Iris.Messaging;
using Takenet.MessagingHub.Client.Extensions.AttendanceForwarding;
using Takenet.MessagingHub.Client.Extensions.Broadcast;
using Takenet.MessagingHub.Client.Extensions.Bucket;
using Takenet.MessagingHub.Client.Extensions.Contacts;
using Takenet.MessagingHub.Client.Extensions.Delegation;
u... | apache-2.0 | C# |
87a8bfec8a3148d4c464b476dabc6ad8e68e9f83 | Remove TODO in umbracoAuthorizedApiController | robertjf/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,dawoe/Umbraco-CMS,dawoe/Umbraco-CMS,umbraco/Umbraco-CMS,arknu/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,umbraco/Umbraco-CMS,marcemarc/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbra... | src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs | src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs | using Microsoft.AspNetCore.Mvc;
using Umbraco.Web.BackOffice.Filters;
using Umbraco.Web.Common.Attributes;
using Umbraco.Web.Common.Controllers;
using Umbraco.Web.Common.Filters;
namespace Umbraco.Web.BackOffice.Controllers
{
/// <summary>
/// Provides a base class for authorized auto-routed Umbraco API contr... | using Microsoft.AspNetCore.Mvc;
using Umbraco.Web.BackOffice.Filters;
using Umbraco.Web.Common.Attributes;
using Umbraco.Web.Common.Controllers;
using Umbraco.Web.Common.Filters;
namespace Umbraco.Web.BackOffice.Controllers
{
/// <summary>
/// Provides a base class for authorized auto-routed Umbraco API contr... | mit | C# |
cb9b82a17cbfd7d23e5a11c30c7f82c9bb834e61 | Fix it | dotnet-presentations/aspnetcore-app-workshop,csharpfritz/aspnetcore-app-workshop,dotnet-presentations/aspnetcore-app-workshop,dotnet-presentations/aspnetcore-app-workshop,csharpfritz/aspnetcore-app-workshop,csharpfritz/aspnetcore-app-workshop,dotnet-presentations/aspnetcore-app-workshop,csharpfritz/aspnetcore-app-works... | save-points/2b-BackEnd-completed/ConferencePlanner/BackEnd/Data/ApplicationDbContext.cs | save-points/2b-BackEnd-completed/ConferencePlanner/BackEnd/Data/ApplicationDbContext.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.DependencyInjection;
namespace BackEnd.Data
{
public clas... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.DependencyInjection;
namespace BackEnd.Data
{
public clas... | mit | C# |
ca7f5eb55a34419a96a40f612464ca140a60e55f | Simplify transform | peppy/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ZLima12/osu-fr... | osu.Framework/Testing/Drawables/TestCaseSubButton.cs | osu.Framework/Testing/Drawables/TestCaseSubButton.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osuTK.Gra... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osuTK.Grap... | mit | C# |
b062b3e5e9fc1fa73774f07fc2fdcf962a3d27fb | Change int count to long count in Dequeue extension method | huysentruitw/pem-utils | src/DerConverter/Extensions/QueueExtensions.cs | src/DerConverter/Extensions/QueueExtensions.cs | using System.Collections.Generic;
using System.Linq;
namespace DerConverter
{
internal static class QueueExtensions
{
public static IEnumerable<T> Dequeue<T>(this Queue<T> queue, long count)
{
for (long i = 0; i < count; i++) yield return queue.Dequeue();
}
public ... | using System.Collections.Generic;
using System.Linq;
namespace DerConverter
{
internal static class QueueExtensions
{
public static IEnumerable<T> Dequeue<T>(this Queue<T> queue, int count)
{
for (int i = 0; i < count; i++) yield return queue.Dequeue();
}
public st... | apache-2.0 | C# |
1efc10c1bdcc25856525f0a44a9c15a741a78b4b | Update AssemblyVersion to 1.0.3 | Shaddix/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet | RealmAssemblyInfo.cs | RealmAssemblyInfo.cs | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... | apache-2.0 | C# |
5ddf448f92bf4c0d4330d0d50983b14258c61038 | Update Colors for Unified API | paulcbetts/splat,shana/splat,shiftkey/splat,lirkki/splat,pauliusnorkus/splat,dlech/splat | Splat/Cocoa/Color.cs | Splat/Cocoa/Color.cs | using System;
#if UIKIT && !UNIFIED
using MonoTouch.UIKit;
#elif UNIFIED && UIKIT
using UIKit;
#elif UNIFIED && !UIKIT
using AppKit;
#else
using MonoMac.AppKit;
#endif
namespace Splat
{
#if UIKIT
public static class ColorExtensions
{
public static UIColor ToNative(this System.Drawing.Color This)
... | using System;
#if UIKIT
using MonoTouch.UIKit;
#else
using MonoMac.AppKit;
#endif
namespace Splat
{
#if UIKIT
public static class ColorExtensions
{
public static UIColor ToNative(this System.Drawing.Color This)
{
return new UIColor((float)This.R / 255.0f, (float)This.G / 255.0f, Th... | mit | C# |
a8dd50eaa16f6aeba03e53ce1f8e5b7e9afdf23a | Add test case for fetch translation metadata capability when getting locales. | mwarger/ZendeskApi_v2,CKCobra/ZendeskApi_v2 | Tests/LocaleTests.cs | Tests/LocaleTests.cs | using NUnit.Framework;
using ZendeskApi_v2;
namespace Tests
{
[TestFixture]
public class LocaleTests
{
private ZendeskApi api = new ZendeskApi(Settings.Site, Settings.Email, Settings.Password);
[Test]
public void CanGetLocales()
{
var all = api.Locales.GetAllLoc... | using NUnit.Framework;
using ZendeskApi_v2;
namespace Tests
{
[TestFixture]
public class LocaleTests
{
private ZendeskApi api = new ZendeskApi(Settings.Site, Settings.Email, Settings.Password);
[Test]
public void CanGetLocales()
{
var all = api.Locales.GetAllLoc... | apache-2.0 | C# |
42b693dc8b59a35cdafdc07dfe77cfb4ffeb4370 | use singleton for database instance | ZetaPhase/BetaGo,ZetaPhase/BetaGo,ZetaPhase/BetaGo | server/dotnet/BetaGo.Server/src/BetaGo.Server/Services/Database/DatabaseAccessService.cs | server/dotnet/BetaGo.Server/src/BetaGo.Server/Services/Database/DatabaseAccessService.cs | using LiteDB;
namespace BetaGo.Server.Services.Database
{
/// <summary>
/// A service that contains global database table info, and provides access to the LiteDB store
/// </summary>
public class DatabaseAccessService
{
public static string UsersCollectionDatabaseKey => "Users";
p... | using LiteDB;
namespace BetaGo.Server.Services.Database
{
/// <summary>
/// A service that contains global database table info, and provides access to the LiteDB store
/// </summary>
public class DatabaseAccessService
{
public static string UsersCollectionDatabaseKey => "Users";
p... | agpl-3.0 | C# |
52eed1a3e43281bff791efa854d27ae7741a324c | Remove unnecessary method override. | RockFramework/Rock.Logging,bfriesen/Rock.Logging | Rock.Logging/Configuration/Xml/LogProviderProxy.cs | Rock.Logging/Configuration/Xml/LogProviderProxy.cs | using System;
using System.Xml.Serialization;
using Rock.Collections;
using Rock.DependencyInjection;
using Rock.Serialization;
namespace Rock.Logging.Configuration
{
public class LogProviderProxy : XmlDeserializationProxy<ILogProvider>
{
[XmlAttribute("formatter")]
public string Formatter { g... | using System;
using System.Xml.Serialization;
using Rock.Collections;
using Rock.DependencyInjection;
using Rock.Serialization;
namespace Rock.Logging.Configuration
{
public class LogProviderProxy : XmlDeserializationProxy<ILogProvider>
{
[XmlAttribute("formatter")]
public string Formatter { g... | mit | C# |
1b840f311a038dc29aa38212c255792ab49da126 | fix lint for simpleapp | GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples | bigquery/api/SimpleApp/SimpleAppTest.cs | bigquery/api/SimpleApp/SimpleAppTest.cs | /*
* Copyright (c) 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 i... | /*
* Copyright (c) 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 i... | apache-2.0 | C# |
e40af6f77ef17fa472c513bf9cfd3fc9009ac5e2 | change server # 2 | luisgguarda/Test | Test/Program.cs | Test/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hello world");
Console.WriteLine("hello again");
Console... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hello world");
Console.WriteLine("hello again");
Console... | mit | C# |
5c581922b84aa0cb7fb022781456aeda02ba42cf | Enhance DEMO. | john29917958/Korat-Framework | App/Program.cs | App/Program.cs | using System;
using KoratFramework;
using KoratFramework.Behaviors.Browsers;
using KoratFramework.Behaviors.Browsers.Chrome;
using KoratFramework.Behaviors.Os;
using KoratFramework.Pickers.Behaviors.Browser;
using KoratFramework.Pickers.Behaviors.Os;
using Ncu.Oolab.Korat.Library;
namespace App
{
class Program
... | using System;
using KoratFramework;
using KoratFramework.Behaviors.Browsers;
using KoratFramework.Behaviors.Browsers.Chrome;
using KoratFramework.Behaviors.Os;
using KoratFramework.Pickers.Behaviors.Browser;
using KoratFramework.Pickers.Behaviors.Os;
using Ncu.Oolab.Korat.Library;
namespace App
{
class Program
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.