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 |
|---|---|---|---|---|---|---|---|---|
6b4c227a63315a34f5d450980399882cceeac22f | change inner routine of TrExtension | TakeAsh/cs-WpfUtility | WpfUtility/TrExtension.cs | WpfUtility/TrExtension.cs | using System;
using System.Resources;
using System.Windows.Markup;
using System.Xaml;
namespace WpfUtility {
/// <summary>
/// Translation Extension for XAML Markup
/// </summary>
/// <remarks>
/// <list type="bullet">
/// <item>[XAML のマークアップ拡張を使った WPF での国際化 | プログラマーズ雑記帳](http://y... | using System;
using System.Resources;
using System.Windows.Markup;
using System.Xaml;
namespace WpfUtility {
/// <summary>
/// Translation Extension for XAML Markup
/// </summary>
/// <remarks>
/// <list type="bullet">
/// <item>[XAML のマークアップ拡張を使った WPF での国際化 | プログラマーズ雑記帳](http://y... | mit | C# |
f0cc56860b2225a264e1b4a36825f7c0e44d7fe6 | Remove uneccessary enum parse | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerAccounts.Web/Mappings/AgreementInfoConverter.cs | src/SFA.DAS.EmployerAccounts.Web/Mappings/AgreementInfoConverter.cs | using System;
using AutoMapper;
using SFA.DAS.EAS.Account.Api.Types;
using SFA.DAS.EmployerAccounts.Web.ViewModels;
namespace SFA.DAS.EmployerAccounts.Web.Mappings
{
public class AgreementInfoConverter : ITypeConverter<AccountDetailViewModel, AgreementInfoViewModel>
{
public AgreementInfoViewModel Con... | using System;
using AutoMapper;
using SFA.DAS.EAS.Account.Api.Types;
using SFA.DAS.EmployerAccounts.Web.ViewModels;
namespace SFA.DAS.EmployerAccounts.Web.Mappings
{
public class AgreementInfoConverter : ITypeConverter<AccountDetailViewModel, AgreementInfoViewModel>
{
public AgreementInfoViewModel Con... | mit | C# |
a648be0c86295a632df7f7708c5e0e258d4c5ae7 | Add a menu topper image | Morphan1/Voxalia,Morphan1/Voxalia,Morphan1/Voxalia | Voxalia/ClientGame/ClientMainSystem/MainMenuScreen.cs | Voxalia/ClientGame/ClientMainSystem/MainMenuScreen.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL4;
using Voxalia.ClientGame.GraphicsSystems;
using Voxalia.ClientGame.UISystem;
using Voxalia.ClientGame.UISystem.MenuSystem;
namespace Voxalia.ClientGame.ClientMainSy... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL4;
using Voxalia.ClientGame.GraphicsSystems;
using Voxalia.ClientGame.UISystem;
using Voxalia.ClientGame.UISystem.MenuSystem;
namespace Voxalia.ClientGame.ClientMainSy... | mit | C# |
2ed4af9eb522773f974baff5d8da7e66277734c6 | change version to 3.0.3 | rpmoore/ds3_net_sdk,RachelTucker/ds3_net_sdk,shabtaisharon/ds3_net_sdk,SpectraLogic/ds3_net_sdk,rpmoore/ds3_net_sdk,RachelTucker/ds3_net_sdk,RachelTucker/ds3_net_sdk,rpmoore/ds3_net_sdk,shabtaisharon/ds3_net_sdk,SpectraLogic/ds3_net_sdk,shabtaisharon/ds3_net_sdk,SpectraLogic/ds3_net_sdk | VersionInfo.cs | VersionInfo.cs | /*
* ******************************************************************************
* Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is loc... | /*
* ******************************************************************************
* Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is loc... | apache-2.0 | C# |
e9645edc9e9df90b74bf4e7e8ebea4bb0f505133 | Add identifying tag to MassTransit health checks. | phatboyg/MassTransit,MassTransit/MassTransit,MassTransit/MassTransit,phatboyg/MassTransit | src/Containers/MassTransit.AspNetCoreIntegration/HostedServiceConfigurationExtensions.cs | src/Containers/MassTransit.AspNetCoreIntegration/HostedServiceConfigurationExtensions.cs | namespace MassTransit
{
using AspNetCoreIntegration;
using AspNetCoreIntegration.HealthChecks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
using Monitoring.Health;... | namespace MassTransit
{
using AspNetCoreIntegration;
using AspNetCoreIntegration.HealthChecks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Options;
using Monitoring.Health;... | apache-2.0 | C# |
8b5356f3ffd767b87d420163ef3301465cbd35e3 | Update StopRepository | nycmobiledev/transit-app-experiments | gtfs/GTFSApi/Infrastructure.GTFS.Static.Subway.FileSystem/StopRepository.cs | gtfs/GTFSApi/Infrastructure.GTFS.Static.Subway.FileSystem/StopRepository.cs | using System;
using System.Collections.Generic;
using System.IO;
using CsvHelper;
using NYCMobileDev.TransitApp.Domain.GTFS.Static.Subway.Entities;
using NYCMobileDev.TransitApp.Domain.GTFS.Static.Subway.Interfaces;
namespace NYCMobileDev.TransitApp.Infrastructure.GTFS.Static.Subway.FileSystem
{
public class Stop... | using System;
using System.Collections.Generic;
using System.IO;
using CsvHelper;
using NYCMobileDev.TransitApp.Domain.GTFS.Static.Subway.Entities;
using NYCMobileDev.TransitApp.Domain.GTFS.Static.Subway.Interfaces;
namespace NYCMobileDev.TransitApp.Infrastructure.GTFS.Static.Subway.FileSystem
{
public class Stop... | mit | C# |
5afb57bbb05bc3db5be6d7e9aa7feb1cb7c34a62 | Remove explicit offloading in TaskExtensionHelper (#6545) | markcowl/azure-sdk-for-net,hyonholee/azure-sdk-for-net,yugangw-msft/azure-sdk-for-net,hyonholee/azure-sdk-for-net,jackmagic313/azure-sdk-for-net,hyonholee/azure-sdk-for-net,yugangw-msft/azure-sdk-for-net,ayeletshpigelman/azure-sdk-for-net,brjohnstmsft/azure-sdk-for-net,stankovski/azure-sdk-for-net,AsrOneSdk/azure-sdk-f... | sdk/servicebus/Microsoft.Azure.ServiceBus/src/Primitives/TaskExtensionHelper.cs | sdk/servicebus/Microsoft.Azure.ServiceBus/src/Primitives/TaskExtensionHelper.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Azure.ServiceBus.Primitives
{
using System;
using System.Threading.Tasks;
static class TaskExtensionHelper
{
public static... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Azure.ServiceBus.Primitives
{
using System;
using System.Threading.Tasks;
static class TaskExtensionHelper
{
public static... | mit | C# |
c35818bbd73b2b2e437aae8068d95d588268907e | Add constructor to Player class | allyjweir/battleships | Battleships/Player.cs | Battleships/Player.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Battleships
{
public class Player
{
#region Properties
public string Name { get; }
public Board GameBoard { get; }
#endregion
#region Constru... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Battleships
{
public class Player
{
#region Properties
#endregion
}
}
| mit | C# |
1d39a20a5403fbbaa9aa010cdc5f2f79ea4fcbf5 | make specs building again | appccelerate/statemachine | source/Appccelerate.StateMachine.Specs/Sync/CurrentStateExtension.cs | source/Appccelerate.StateMachine.Specs/Sync/CurrentStateExtension.cs | //-------------------------------------------------------------------------------
// <copyright file="CurrentStateExtension.cs" company="Appccelerate">
// Copyright (c) 2008-2017 Appccelerate
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complian... | //-------------------------------------------------------------------------------
// <copyright file="CurrentStateExtension.cs" company="Appccelerate">
// Copyright (c) 2008-2017 Appccelerate
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complian... | apache-2.0 | C# |
28ba0dd3b72d9f16ec77012314a054467f2d29fe | debug code | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api/Controllers/BulkUploadController.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api/Controllers/BulkUploadController.cs | using MediatR;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using SFA.DAS.Authorization.Mvc.Attributes;
using SFA.DAS.CommitmentsV2.Api.Types.Requests;
using SFA.DAS.CommitmentsV2.Application.Commands.BulkUploadAddDraftApprenticeships;
using SFA.DAS.CommitmentsV2.Features;
using SFA.DAS.Commitme... | using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using SFA.DAS.Authorization.Mvc.Attributes;
using SFA.DAS.CommitmentsV2.Api.Types.Requests;
using SFA.DAS.CommitmentsV2.Application.Commands.BulkUploadAddDraftApprenticeships;
using SFA.DAS.Comm... | mit | C# |
f09c6a4e81f0ed9b6a0c0a8e4eb1ec8353a8029d | Update to link | SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice | src/SFA.DAS.ProviderApprenticeshipsService.Web/Views/CreateCohort/Create.cshtml | src/SFA.DAS.ProviderApprenticeshipsService.Web/Views/CreateCohort/Create.cshtml | @model SFA.DAS.ProviderApprenticeshipsService.Web.Models.CreateCohort.CreateCohortViewModel
@{
ViewBag.Title = "Create Cohort";
}
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-xlarge">Choose an employer</h1>
<p>Choose an employer you want to create a new cohort on ... | @model SFA.DAS.ProviderApprenticeshipsService.Web.Models.CreateCohort.CreateCohortViewModel
@{
ViewBag.Title = "Create Cohort";
}
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-xlarge">Choose an employer</h1>
<p>Choose an employer you want to create a new cohort on ... | mit | C# |
71ede1ac2842084b002707e79e9e7d15be918c38 | Bump version | HelloFax/hellosign-dotnet-sdk | HelloSign/Properties/AssemblyInfo.cs | HelloSign/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("He... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("He... | mit | C# |
6c2ec96ef8e1d6cee3994ac5d81ddf8d3a157f9c | Remove unintended code | peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework | osu.Framework/Graphics/Audio/DrawableSample.cs | osu.Framework/Graphics/Audio/DrawableSample.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Audio.Sample;
namespace osu.Framework.Graphics.Audio
{
/// <summary>
/// A <see cref="SampleChannel"/> wrapper to allow insertion in the draw... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Audio.Sample;
namespace osu.Framework.Graphics.Audio
{
/// <summary>
/// A <see cref="SampleChannel"/> wrapper to allow insertion in the draw... | mit | C# |
98410dbb6d3276d674bba5e5f77bdffd1e598b40 | Reduce shake transform count by one for more aesthetic behaviour | johnneijzen/osu,ppy/osu,UselessToucan/osu,DrabWeb/osu,smoogipoo/osu,naoey/osu,DrabWeb/osu,ppy/osu,ppy/osu,2yangk23/osu,2yangk23/osu,peppy/osu-new,ZLima12/osu,smoogipoo/osu,ZLima12/osu,naoey/osu,peppy/osu,peppy/osu,EVAST9919/osu,DrabWeb/osu,johnneijzen/osu,NeoAdonis/osu,EVAST9919/osu,NeoAdonis/osu,UselessToucan/osu,NeoA... | osu.Game/Graphics/Containers/ShakeContainer.cs | osu.Game/Graphics/Containers/ShakeContainer.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Graphics.Containers
{
/// <summary>
/// A container that adds the abi... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Graphics.Containers
{
/// <summary>
/// A container that adds the abi... | mit | C# |
03e13105b33a3c2972301abfc7aa587c787ba353 | Add test | sakapon/KLibrary.Linq | KLibrary4/UnitTest/Linq/ArrayTest.cs | KLibrary4/UnitTest/Linq/ArrayTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using static KLibrary.Linq.Array2;
namespace UnitTest.Linq
{
[TestClass]
public class ArrayTest
{
[TestMethod]
public void Chain()
{
Rang... | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using static KLibrary.Linq.Array2;
namespace UnitTest.Linq
{
[TestClass]
public class ArrayTest
{
[TestMethod]
public void Chain()
{
var ... | mit | C# |
8ba17dddb324a591d4832c0dd3403f20607f5699 | Change to version 1.0.1 | t3knoid/KeepAwake | KeepAwake/Properties/AssemblyInfo.cs | KeepAwake/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ke... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ke... | mit | C# |
b6f80521d15218c0d5fa08d6f18662ca1cf71f2d | Update JsonHelper.cs | qapquiz/UnityUtilities | Assets/Scripts/JsonHelper.cs | Assets/Scripts/JsonHelper.cs | // From https://forum.unity3d.com/threads/how-to-load-an-array-with-jsonutility.375735/
// Author: ffleurey
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
public class JsonHelper : MonoBehaviour {
[System.Serializable]
public struct Wrapper<T> {
public T[] array... | // From https://forum.unity3d.com/threads/how-to-load-an-array-with-jsonutility.375735/
// Author: ffleurey
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
public class JsonHelper : MonoBehaviour {
public static T[] FromJsonArray<T>(string json) {
string newJson =... | mit | C# |
318c00b2bef1644f0e4a660b3bce287069ddbe01 | Remove call to Application.Current.Dispatcher.CheckAccess() - seems there's a null point happening on a rare instance when Application.Current.Dispatcher is null Rely on parent calling code to execute on the correct thread (which it was already executing on the UI Thread) | windygu/CefSharp,rover886/CefSharp,Haraguroicha/CefSharp,yoder/CefSharp,haozhouxu/CefSharp,VioletLife/CefSharp,Octopus-ITSM/CefSharp,Haraguroicha/CefSharp,wangzheng888520/CefSharp,ruisebastiao/CefSharp,Livit/CefSharp,joshvera/CefSharp,rlmcneary2/CefSharp,joshvera/CefSharp,haozhouxu/CefSharp,battewr/CefSharp,zhangjingpu... | CefSharp.Wpf/DelegateCommand.cs | CefSharp.Wpf/DelegateCommand.cs | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Input;
namespace CefSharp.Wpf
{
internal class DelegateCommand : ICommand
{
private readonly A... | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows;
using System.Windows.Input;
namespace CefSharp.Wpf
{
internal class DelegateCommand : ICommand
{
... | bsd-3-clause | C# |
00216c75fde7a7cb7d338c9040dbab98114f92ac | Comment for validation error rendering | kjac/FormEditor,kjac/FormEditor,kjac/FormEditor | Source/Umbraco/Views/Partials/FormEditor/FieldsNoScript/core.utils.validationerror.cshtml | Source/Umbraco/Views/Partials/FormEditor/FieldsNoScript/core.utils.validationerror.cshtml | @inherits Umbraco.Web.Mvc.UmbracoViewPage<FormEditor.Fields.IFieldWithValidation>
@* for the NoScript rendering, this is solely rendered server side *@
@if (Model.Invalid)
{
<div class="text-danger validation-error">
@Model.ErrorMessage
</div>
}
| @inherits Umbraco.Web.Mvc.UmbracoViewPage<FormEditor.Fields.IFieldWithValidation>
@if (Model.Invalid)
{
<div class="text-danger validation-error">
@Model.ErrorMessage
</div>
}
| mit | C# |
bad7862e0f231623dd0df9b12b2473a1dbe9005b | add heloloe | toannvqo/dnn_publish | Components/ProductController.cs | Components/ProductController.cs | using DotNetNuke.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Christoc.Modules.DNNModule1.Components
{
public class ProductController
{
public Product GetProduct(int productId)
{
Product p;
using (IDataContext ctx ... | using DotNetNuke.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Christoc.Modules.DNNModule1.Components
{
public class ProductController
{
public Product GetProduct(int productId)
{
Product p;
using (IDataContext ctx ... | mit | C# |
e7b279be23561f9f24d7e9f020e23c0d9bb2d5a7 | Test something fails | hartmannr76/EasyIoC,hartmannr76/EasyIoC | EasyIoC/AssemblyFinder.cs | EasyIoC/AssemblyFinder.cs | using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
using Microsoft.Extensions.DependencyModel;
namespace EasyIoC {
public class AssemblyFinder {
private readonly HashSet<string> _defaultIgnoredAssemblies = new HashSet<string>() { "Microsoft.", ... | using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
using Microsoft.Extensions.DependencyModel;
namespace EasyIoC {
public class AssemblyFinder {
private readonly HashSet<string> _defaultIgnoredAssemblies = new HashSet<string>() { "Microsoft.", ... | mit | C# |
54790a94c442745f32f7b67b93eb3ff99e0f6c8b | Remove return xml comments, not valid anymore | Livit/CefSharp,battewr/CefSharp,haozhouxu/CefSharp,NumbersInternational/CefSharp,Haraguroicha/CefSharp,NumbersInternational/CefSharp,wangzheng888520/CefSharp,jamespearce2006/CefSharp,VioletLife/CefSharp,NumbersInternational/CefSharp,yoder/CefSharp,jamespearce2006/CefSharp,AJDev77/CefSharp,twxstar/CefSharp,windygu/CefSh... | CefSharp/IDownloadHandler.cs | CefSharp/IDownloadHandler.cs | // Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
public interface IDownloadHandler
{
/// <summary>
/// Called before a download begins.
/// </... | // Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
public interface IDownloadHandler
{
/// <summary>
/// Called before a download begins.
/// </... | bsd-3-clause | C# |
d42eb56fee4b3aeff9e336553db1dcf1c70f23f2 | Fix content root for non-windows xunit tests with no app domains | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/Microsoft.AspNetCore.StaticFiles.Tests/StaticFilesTestServer.cs | test/Microsoft.AspNetCore.StaticFiles.Tests/StaticFilesTestServer.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.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestH... | // 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.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestH... | apache-2.0 | C# |
a88ce555e39700c6827af6194ac55dea9833170f | fix logging mistake | sebastian-heinz/SvrKit,sebastian-heinz/Arrowgene.Services,sebastian-heinz/MarrySocket | MarrySocket/MServer/PacketManager.cs | MarrySocket/MServer/PacketManager.cs | /*
* Copyright 2015 Sebastian Heinz <sebastian.heinz.gt@googlemail.com>
*
* 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... | /*
* Copyright 2015 Sebastian Heinz <sebastian.heinz.gt@googlemail.com>
*
* 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... | unknown | C# |
a2ebcb1b25cae2ce0e79f934f4be6d6f6a8672f8 | Update Program.cs | sunhyung/JCompareCS | JCompareCS/Program.cs | JCompareCS/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace JCompareCS
{
class Program
{
static void Main(string[] args)
{
JCompareCore core = new JCompareCore();
string s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace JCompareCS
{
class Program
{
static void Main(string[] args)
{
JCompareCore core = new JCompareCore();
string s... | mit | C# |
a4072fceeb530b6bfc7aac32bfe8cf8ba4647958 | add skip upload link | MacsDickinson/HackManchester2014,MacsDickinson/HackManchester2014,MacsDickinson/HackManchester2014 | HackManchester2014/HackManchester2014/Donation/Views/Register4.cshtml | HackManchester2014/HackManchester2014/Donation/Views/Register4.cshtml | @{
Layout = "Shared/_Layout.cshtml";
}
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic>
<article class="register main-content">
<section class="layout-constrained layout-constrained--narrow">
<div class="layout-constrained layout-constrained--narrow">
<div class="page-intro">... | @{
Layout = "Shared/_Layout.cshtml";
}
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic>
<article class="register main-content">
<section class="layout-constrained layout-constrained--narrow">
<div class="layout-constrained layout-constrained--narrow">
<div class="page-intro">... | mit | C# |
8e5ba71122d91a8fcdfcaef30422580793971910 | Add the "expired" value to the RecipientStatus enum | messagebird/csharp-rest-api | MessageBird/Objects/Recipient.cs | MessageBird/Objects/Recipient.cs | using System;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace MessageBird.Objects
{
public class Recipient
{
public enum RecipientStatus
{
// Message status
[EnumMember(Value = "scheduled")]
Scheduled,... | using System;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace MessageBird.Objects
{
public class Recipient
{
public enum RecipientStatus
{
// Message status
[EnumMember(Value = "scheduled")]
Scheduled,... | isc | C# |
e6c840cad73a10e73d8e1e5af1a7bf416b8d497f | Implement more complete dispose pattern | TurnerSoftware/MongoFramework | MongoFramework/MongoDbContext.cs | MongoFramework/MongoDbContext.cs | using System;
using System.Collections.Generic;
using MongoDB.Driver;
using System.Reflection;
using MongoFramework.Infrastructure;
using System.Linq;
namespace MongoFramework
{
public class MongoDbContext : IMongoDbContext, IDisposable
{
protected IMongoDatabase database { get; set; }
private IList<IMongoDbSe... | using System;
using System.Collections.Generic;
using MongoDB.Driver;
using System.Reflection;
using MongoFramework.Infrastructure;
using System.Linq;
namespace MongoFramework
{
public class MongoDbContext : IMongoDbContext, IDisposable
{
protected IMongoDatabase database { get; set; }
private IList<IMongoDbSe... | mit | C# |
c542089cd98f7d50fec0b8c702808c0d49c6c24f | Fix service bus scenario test to use new name and assert for errors early | akromm/azure-sdk-tools,DinoV/azure-sdk-tools,Madhukarc/azure-sdk-tools,Madhukarc/azure-sdk-tools,akromm/azure-sdk-tools,markcowl/azure-sdk-tools,markcowl/azure-sdk-tools,Madhukarc/azure-sdk-tools,akromm/azure-sdk-tools,johnkors/azure-sdk-tools,akromm/azure-sdk-tools,Madhukarc/azure-sdk-tools,akromm/azure-sdk-tools,anto... | WindowsAzurePowershell/src/Management.ServiceBus.Test/ScenarioTest.cs | WindowsAzurePowershell/src/Management.ServiceBus.Test/ScenarioTest.cs | // ----------------------------------------------------------------------------------
//
// Copyright 2011 Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://ww... | // ----------------------------------------------------------------------------------
//
// Copyright 2011 Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://ww... | apache-2.0 | C# |
a2ee21c202dc330d2c08f01e86a2930f801f3ff8 | Bump version | kamil-mrzyglod/Oxygenize | Oxygenize/Properties/AssemblyInfo.cs | Oxygenize/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ox... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ox... | mit | C# |
67ed290df1038e4be4aefc4bbb415c57fbf3f81e | write log messages to the debug console | pauldendulk/Mapsui,charlenni/Mapsui,charlenni/Mapsui | Samples/Mapsui.Samples.Forms/Mapsui.Samples.Forms.Shared/App.xaml.cs | Samples/Mapsui.Samples.Forms/Mapsui.Samples.Forms.Shared/App.xaml.cs | using System;
using System.Diagnostics;
using Mapsui.Logging;
using Xamarin.Forms;
namespace Mapsui.Samples.Forms
{
public partial class App : Application
{
public App()
{
InitializeComponent();
Logger.LogDelegate += LogMethod;
if (Device.Idiom == TargetI... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace Mapsui.Samples.Forms
{
public partial class App : Application
{
public App()
{
InitializeComponent();
if (Device.Idiom == TargetIdiom.Phone)
... | mit | C# |
18eb6fc55bfe76d5d2569187440fd5595be2ba04 | Correct typo in docs | lambdacasserole/shaver | Shaver/CopyButton.cs | Shaver/CopyButton.cs | using System.Drawing;
using System.Windows.Forms;
namespace Shaver
{
/// <summary>
/// A copy keyboard button.
/// </summary>
class CopyButton : KeyboardButton
{
private int iconSize;
/// <summary>
/// Gets or sets the icon size on the button.
/// </summary>
... | using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace Shaver
{
/// <summary>
/// A copy keyboard button.
/// </summary>
class CopyButton : KeyboardButton
{
private int iconSize;
/// <summary>
/// Gets or sets the icon size on the but... | mit | C# |
358fe8f4719d555513eaa7b65a69ede46c27165c | Clean up comments. | DimensionDataCBUSydney/jab | jab/jab/Test/ServiceTests.cs | jab/jab/Test/ServiceTests.cs | using NSwag;
using Xunit;
namespace jab.tests
{
public partial class ApiBestPracticeTestBase
{
/// <summary>
/// Require HTTPS support.
/// </summary>
/// <param name="service">
/// The <see cref="SwaggerService"/> to test.
/// </param>
[Theory, Paramete... | using NSwag;
using Xunit;
namespace jab.tests
{
public partial class ApiBestPracticeTestBase
{
/// <summary>
/// Require HTTPS support.
/// </summary>
/// <param name="service"></param>
/// <param name="path"></param>
/// <param name="method"></param>
//... | apache-2.0 | C# |
1b8876319e1da1076d8fb6f35bee39c7aa566915 | Update XGroup.cs | Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | Test/Core/XGroup.cs | Test/Core/XGroup.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespac... | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test.Core
{
public class XGroup : XShape
{
public string _name;
public IList<XShape> _shapes;
public string Name
... | mit | C# |
750fa775c9061915c273c74ec49f08d662c747ed | Fix typo | maxmind/GeoIP2-dotnet | MaxMind.GeoIP2/Model/MaxMind.cs | MaxMind.GeoIP2/Model/MaxMind.cs | #region
using MaxMind.Db;
using Newtonsoft.Json;
#endregion
namespace MaxMind.GeoIP2.Model
{
/// <summary>
/// Contains data related to your MaxMind account.
/// </summary>
public class MaxMind
{
/// <summary>
/// Constructor
/// </summary>
public MaxMind(... | #region
using MaxMind.Db;
using Newtonsoft.Json;
#endregion
namespace MaxMind.GeoIP2.Model
{
/// <summary>
/// Contains data related to your MaxMind account.
/// </summary>
public class MaxMind
{
/// <summary>
/// Constructor
/// </summary>
public MaxMind(... | apache-2.0 | C# |
a1cc27d0efccf47fb576b12b427a58d2d8f89a48 | Change obsolete signature for method Error | alexvictoor/BrowserLog,alexvictoor/BrowserLog,alexvictoor/BrowserLog | BrowserLog.NLog.Demo/Program.cs | BrowserLog.NLog.Demo/Program.cs | using System;
using System.Threading;
using NLog;
using NLogConfig = NLog.Config;
namespace BrowserLog.NLog.Demo
{
class Program
{
static void Main(string[] args)
{
LogManager.Configuration = new NLogConfig.XmlLoggingConfiguration("NLog.config", true);
var logger = Log... | using System;
using System.Threading;
using NLog;
using NLogConfig = NLog.Config;
namespace BrowserLog.NLog.Demo
{
class Program
{
static void Main(string[] args)
{
LogManager.Configuration = new NLogConfig.XmlLoggingConfiguration("NLog.config", true);
var logger = Log... | apache-2.0 | C# |
2888ecdd99ccad316f0f3bd39cb2eba055aea45e | Update assemblyinfo | PKTINOS/SpongeGame | Code/Properties/AssemblyInfo.cs | Code/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: 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: AssemblyTitle("Spo... | mit | C# |
b3f4ec2469b13ec5d9c2cd0aa7aae7b8bc9bb18e | Improve tab fragment | jbatonnet/shared | Android/Layout/TabFragment.cs | Android/Layout/TabFragment.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Database;
using Android.Graphics;
using Android.OS;
using Android.Runtime;
using Android.Support.Design.Widget;
using Android.Support.V4.Widget;
using Android.Support.V4... | using System;
using System.Collections.Generic;
using System.Linq;
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Database;
using Android.Graphics;
using Android.OS;
using Android.Runtime;
using Android.Support.Design.Widget;
using Android.Support.V4.Widget;
using Android.Support.V4... | mit | C# |
6d2a8c5794d98c89b84d97edfaa1c5bd2551660e | Fix side-effect of renaming | emazzotta/unity-tower-defense | Assets/Scripts/MetallKefer.cs | Assets/Scripts/MetallKefer.cs | using UnityEngine;
using System.Collections;
public class MetallKefer : MonoBehaviour {
private GameController game;
private GameObject[] baseBuildable;
private GameObject nextWaypiont;
private int health;
private int currentWaypointIndex = 0;
private int movementSpeed = 2;
void Start () {
this.he... | using UnityEngine;
using System.Collections;
public class MetallKefer : MonoBehaviour {
private Game game;
private GameObject[] baseBuildable;
private GameObject nextWaypiont;
private int health;
private int currentWaypointIndex = 0;
private int movementSpeed = 2;
void Start () {
this.health = 100... | mit | C# |
f81ffa636dc1770284c3d88c9f9514bdc4a30f22 | Use BindTo instead of taking the game's beatmap bindable. | peppy/osu-new,DrabWeb/osu,DrabWeb/osu,tacchinotacchi/osu,ZLima12/osu,UselessToucan/osu,DrabWeb/osu,UselessToucan/osu,smoogipoo/osu,2yangk23/osu,Nabile-Rahmani/osu,naoey/osu,2yangk23/osu,smoogipooo/osu,Drezi126/osu,smoogipoo/osu,naoey/osu,EVAST9919/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ZLima12/osu,ppy/os... | osu.Game/Graphics/Containers/BeatSyncedContainer.cs | osu.Game/Graphics/Containers/BeatSyncedContainer.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.Timin... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.Timin... | mit | C# |
f84d14d043d06ba4c021336f1e657298f4ee7e72 | work on ChartColors web | avifatal/framework,AlejandroCano/framework,avifatal/framework,signumsoftware/framework,signumsoftware/framework,AlejandroCano/framework | Signum.Entities/Basics/Color.cs | Signum.Entities/Basics/Color.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using System.Drawing;
namespace Signum.Entities.Basics
{
[Serializable]
public class ColorDN : EmbeddedEntity
{
public ColorDN()
{
}
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using System.Drawing;
namespace Signum.Entities.Basics
{
[Serializable]
public class ColorDN : EmbeddedEntity
{
public ColorDN()
{
}
public ... | mit | C# |
4477e2d9e6d002109ee4ceeea0fe562bac8d3c84 | add connect by username and password | Xarlot/NGitLab | NGitLab/NGitLab/GitLabClient.cs | NGitLab/NGitLab/GitLabClient.cs | using NGitLab.Impl;
using NGitLab.Models;
namespace NGitLab {
public class GitLabClient {
readonly Api api;
public readonly INamespaceClient Groups;
public readonly IIssueClient Issues;
public readonly IProjectClient Projects;
public readonly IUserClient Users;
Gi... | using NGitLab.Impl;
namespace NGitLab {
public class GitLabClient {
readonly Api api;
public readonly INamespaceClient Groups;
public readonly IIssueClient Issues;
public readonly IProjectClient Projects;
public readonly IUserClient Users;
GitLabClient(string host... | mit | C# |
bc888bb7a7625d623305785bfe2bc12e62ceac24 | Add ColumnSpecification documentation (part of #34) | felipebz/ndapi | Ndapi/ColumnSpecification.cs | Ndapi/ColumnSpecification.cs | using Ndapi.Core.Handles;
using Ndapi.Enums;
namespace Ndapi
{
/// <summary>
/// Represents a record group column.
/// </summary>
public class ColumnSpecification : NdapiObject
{
/// <summary>
/// Creates a record group column.
/// </summary>
/// <param name="module... | using Ndapi.Core.Handles;
using Ndapi.Enums;
namespace Ndapi
{
public class ColumnSpecification : NdapiObject
{
public ColumnSpecification(FormModule module, string name)
{
Create(name, ObjectType.ColumnSpecification, module);
}
internal ColumnSpecification(ObjectS... | mit | C# |
784024ea7a1909acd5bba6563bedd9029cefc46f | Change List data type to IEnumerable | lukecahill/NutritionTracker | food_tracker/DAL/WholeDay.cs | food_tracker/DAL/WholeDay.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace food_tracker.DAL {
public class WholeDay {
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public string WholeDayId { get; set... | using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace food_tracker.DAL {
public class WholeDay {
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public string WholeDayId { get; set... | mit | C# |
69e3911b9b5964105c13c935383e52775111e302 | Update ValuesController.cs | cayodonatti/TopGearApi | TopGearApi/Controllers/ValuesController.cs | TopGearApi/Controllers/ValuesController.cs | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;
namespace TopGearApi.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable... | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;
namespace TopGearApi.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable... | mit | C# |
5e5943cf29b242e3d729f7fe32ddcbeebe99705c | Add escaping to query string parsing | mattolenik/winston,mattolenik/winston,mattolenik/winston | Winston/Net/Extensions.cs | Winston/Net/Extensions.cs | using System;
using System.Collections.Specialized;
using System.Text.RegularExpressions;
namespace Winston.Net
{
static class Extensions
{
public static NameValueCollection ParseQueryString(this Uri uri)
{
var result = new NameValueCollection();
var query = uri.Query;
... | using System;
using System.Collections.Specialized;
using System.Text.RegularExpressions;
namespace Winston.Net
{
static class Extensions
{
public static NameValueCollection ParseQueryString(this Uri uri)
{
var result = new NameValueCollection();
var query = uri.Query;
... | mit | C# |
60926ca60a0ed5743ced99ce288d748f5892603b | Change year in footer to 2021 | DominikStiller/Vertretungsplan,DominikStiller/Vertretungsplan,DominikStiller/Vertretungsplan,DominikStiller/Vertretungsplan | Web/Views/Shared/_Layout.cshtml | Web/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<title>@ViewData["Title"]</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="none">
<meta name="description" content="Vertretungsplan des Gymnasium Unterrieden Sindelfingen">
<meta name="... | <!DOCTYPE html>
<html>
<head>
<title>@ViewData["Title"]</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="none">
<meta name="description" content="Vertretungsplan des Gymnasium Unterrieden Sindelfingen">
<meta name="... | mit | C# |
a700aa2cd30c2f3c018445a937ba6fbd857fee4e | Handle cases where a namespace declaration isn't found in the ancestors of a type declaration | brettfo/roslyn,diryboy/roslyn,davkean/roslyn,tmat/roslyn,shyamnamboodiripad/roslyn,swaroop-sridhar/roslyn,gafter/roslyn,aelij/roslyn,nguerrera/roslyn,mgoertz-msft/roslyn,abock/roslyn,abock/roslyn,AmadeusW/roslyn,KevinRansom/roslyn,heejaechang/roslyn,weltkante/roslyn,dotnet/roslyn,sharwell/roslyn,ErikSchierboom/roslyn,b... | src/Features/CSharp/Portable/MoveToNamespace/CSharpMoveToNamespaceService.cs | src/Features/CSharp/Portable/MoveToNamespace/CSharpMoveToNamespaceService.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Composition;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.CodeAnalysis.MoveT... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Composition;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.CodeAnalysis.MoveT... | mit | C# |
ae376c50a4b921947bef8ec81658573e9bf9e995 | Update copyright year | activescott/lessmsi,activescott/lessmsi,activescott/lessmsi | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or... | // Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or... | mit | C# |
af20fa2cef0cd6e91cb12af0b4bd17743a6dc226 | Enable underscore in middle of long name. | nemec/clipr | clipr/Core/ArgumentValidation.cs | clipr/Core/ArgumentValidation.cs | using System;
using System.Text.RegularExpressions;
namespace clipr.Core
{
internal static class ArgumentValidation
{
public static bool IsAllowedShortName(char c)
{
return Char.IsLetter(c);
}
internal const string IsAllowedShortNameExplanation =
"Short... | using System;
using System.Text.RegularExpressions;
namespace clipr.Core
{
internal static class ArgumentValidation
{
public static bool IsAllowedShortName(char c)
{
return Char.IsLetter(c);
}
internal const string IsAllowedShortNameExplanation =
"Short... | mit | C# |
7c1a235aecc9ad0963c23ca6478a3b516b9672bc | Add `LocalisableString.Interpolate` method. | ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework | osu.Framework/Localisation/LocalisableString.cs | osu.Framework/Localisation/LocalisableString.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;
#nullable enable
namespace osu.Framework.Localisation
{
/// <summary>
/// A descriptor representing text that can be localised and formatted.
... | // 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;
#nullable enable
namespace osu.Framework.Localisation
{
/// <summary>
/// A descriptor representing text that can be localised and formatted.
... | mit | C# |
5ec1f4deb3d9e5b4b1b7837e394acbc664b8aeae | Prepare Release | dfensgmbh/biz.dfch.CS.Appclusive.Scheduler | src/AssemblyVersion.cs | src/AssemblyVersion.cs | using System.Reflection;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[ass... | using System.Reflection;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[ass... | apache-2.0 | C# |
82c18c2ba4d3b3475830fe0a65de0aa38533c758 | add interface to controller [#136036659] | revaturelabs/revashare-svc-webapi | revashare-svc-webapi/revashare-svc-webapi.Client/Controllers/DriverController.cs | revashare-svc-webapi/revashare-svc-webapi.Client/Controllers/DriverController.cs | using revashare_svc_webapi.Logic.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace revashare_svc_webapi.Client.Controllers {
[RoutePrefix("rider")]
public class DriverController : ApiController {
private rea... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace revashare_svc_webapi.Client.Controllers {
public class DriverController : ApiController {
// GET: api/Driver
public IEnumerable<string> Get() {
return new string... | mit | C# |
2cb217e06c04d63de4bc4151c7631b9abc448062 | Fix editor legacy beatmap skins not receiving transformer | NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu | osu.Game/Screens/Edit/EditorSkinProvidingContainer.cs | osu.Game/Screens/Edit/EditorSkinProvidingContainer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Skinning;
#nullable enable
namespace osu.Game.Screens.Edit
{
/// <summary>
/// A <see cref="SkinProvidingContainer"/> that fires <see cref="ISkin... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Skinning;
#nullable enable
namespace osu.Game.Screens.Edit
{
/// <summary>
/// A <see cref="SkinProvidingContainer"/> that fires <see cref="ISkin... | mit | C# |
1ad239b802fc120cdd474e358318f2c51a7bd706 | Add the new managers to the root context. | Mitsugaru/game-off-2016 | Assets/Scripts/RootContext.cs | Assets/Scripts/RootContext.cs | using UnityEngine;
using System.Collections;
using strange.extensions.context.impl;
using strange.extensions.context.api;
public class RootContext : MVCSContext, IRootContext
{
public RootContext(MonoBehaviour view) : base(view)
{
}
public RootContext(MonoBehaviour view, ContextStartupFlags flags) ... | using UnityEngine;
using System.Collections;
using strange.extensions.context.impl;
using strange.extensions.context.api;
public class RootContext : MVCSContext, IRootContext
{
public RootContext(MonoBehaviour view) : base(view)
{
}
public RootContext(MonoBehaviour view, ContextStartupFlags flags) ... | mit | C# |
4f3d55444e0a646ba2f50622313a5fc96dc17630 | Set anti-forgery token unique claim type | antonburger/SimplestMvc5Auth | SimplestMvc5Auth/Global.asax.cs | SimplestMvc5Auth/Global.asax.cs | using System;
using System.Security.Claims;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Routing;
namespace SimplestMvc5Auth
{
public class Global : System.Web.HttpApplication
{
private static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{re... | using System;
using System.Web.Mvc;
using System.Web.Routing;
namespace SimplestMvc5Auth
{
public class Global : System.Web.HttpApplication
{
private static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapMvcAttr... | mit | C# |
092e604dee5aa890c4519302691c41c84d1db5ce | Fix snippet to make it work with the latest version of C# library | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets | video/rest/rooms/create-group-room-with-h264/create-group-room.5.x.cs | video/rest/rooms/create-group-room-with-h264/create-group-room.5.x.cs | // Download the twilio-csharp library from twilio.com/docs/libraries/csharp
using System;
using System.Collections.Generic;
using Twilio;
using Twilio.Rest.Video.V1;
class Example
{
static void Main (string[] args)
{
// Find your Account SID and Auth Token at twilio.com/console
const string api... | // Download the twilio-csharp library from twilio.com/docs/libraries/csharp
using System;
using Twilio;
using Twilio.Rest.Video.V1;
class Example
{
static void Main (string[] args)
{
// Find your Account SID and Auth Token at twilio.com/console
const string apiKeySid = "SKXXXXXXXXXXXXXXXXXXXXXX... | mit | C# |
8599cec7e6b4ced80b4eabecdafe4e6695e66673 | add overload for AddAlert | ceee/UptimeSharp | UptimeSharp/Components/Alert.cs | UptimeSharp/Components/Alert.cs | using RestSharp;
using System.Collections.Generic;
using UptimeSharp.Models;
namespace UptimeSharp
{
/// <summary>
/// UptimeClient
/// </summary>
public partial class UptimeClient
{
/// <summary>
/// Retrieves alerts from UptimeRobot
/// </summary>
/// <param name="IDs">Retrieve specified a... | using RestSharp;
using System.Collections.Generic;
using UptimeSharp.Models;
namespace UptimeSharp
{
/// <summary>
/// UptimeClient
/// </summary>
public partial class UptimeClient
{
/// <summary>
/// Retrieves alerts from UptimeRobot
/// </summary>
/// <param name="IDs">Retrieve specified a... | mit | C# |
11d47a2379bd22ad5ec386ebbd3d305e09f01563 | update SonarLint ignore file | AndreyShpilevoy/DemProject,AndreyShpilevoy/DemProject,AndreyShpilevoy/DemProject | DEM_MVC/GlobalSuppressions.cs | DEM_MVC/GlobalSuppressions.cs |
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", ... |
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", ... | mit | C# |
2cabea326978eabe4e04549a05a913128d505273 | test push | karamalie/ddac-assignment,karamalie/ddac-assignment,karamalie/ddac-assignment | DdacAssignment/Global.asax.cs | DdacAssignment/Global.asax.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace DdacAssignment
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace DdacAssignment
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | mit | C# |
cfefb1003c22cdf831f7eb372a248b0a22a586fc | Fix name issue in SendAnswerFactory. | fhict-Intellicloud/nl.fhict.intellicloud.backend,fhict-Intellicloud/nl.fhict.intellicloud.backend | IntelliCloud/IntelliCloud.Business/Plugins/Loader/SendAnswerFactory.cs | IntelliCloud/IntelliCloud.Business/Plugins/Loader/SendAnswerFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using nl.fhict.IntelliCloud.Common.DataTransfer;
namespace nl.fhict.IntelliCloud.Business.Plugins.Loader
{
/// <summary>
/// A factory that loads the correct send answer plugin according to the given <see cref="SourceDefinit... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using nl.fhict.IntelliCloud.Common.DataTransfer;
namespace nl.fhict.IntelliCloud.Business.Plugins.Loader
{
/// <summary>
/// A factory that loads the correct send answer plugin according to the given <see cref="SourceDefinit... | apache-2.0 | C# |
b7958935429487f04e28b729d3214ddebc36a0eb | Remove rogue using | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.Authentication.Google/GoogleAppBuilderExtensions.cs | src/Microsoft.AspNetCore.Authentication.Google/GoogleAppBuilderExtensions.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 Microsoft.AspNetCore.Authentication.Google;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
nam... | // 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 Microsoft.AspNetCore.Authentication.Google;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection... | apache-2.0 | C# |
f576ccde8360d276c6718fd3a04adbdc35cf8604 | remove nameof | MystFan/Heroically-Recipes,MystFan/Heroically-Recipes | Source/HeroicallyRecipes/Data/HeroicallyRecipes.Data/Repositories/DbRepository.cs | Source/HeroicallyRecipes/Data/HeroicallyRecipes.Data/Repositories/DbRepository.cs | namespace HeroicallyRecipes.Data.Repositories
{
using System;
using System.Data.Entity;
using System.Linq;
using Models;
// TODO: Why BaseModel<int> instead BaseModel<TKey>?
public class DbRepository<T> : IDbRepository<T>
where T : BaseModel<int>
{
public DbRepository(DbCo... | namespace HeroicallyRecipes.Data.Repositories
{
using System;
using System.Data.Entity;
using System.Linq;
using Models;
// TODO: Why BaseModel<int> instead BaseModel<TKey>?
public class DbRepository<T> : IDbRepository<T>
where T : BaseModel<int>
{
public DbRepository(DbCo... | mit | C# |
4c6791dffd1635767f7add5b3e290ca92bc243d0 | Update ObservableExtensions.cs | keith-hall/Extensions,keith-hall/Extensions | src/ObservableExtensions.cs | src/ObservableExtensions.cs | using System;
using System.Reactive.Linq;
namespace HallLibrary.Extensions
{
/// <summary>
/// Contains extension methods for working with observables.
/// </summary>
public static class ObservableExtensions
{
public static IObservable<TOutput> WithPrevious<TSource, TOutput>(this IObservable<TSource> source, Fu... | using System;
using System.Reactive.Linq;
namespace HallLibrary.Extensions
{
public static class ObservableExtensions
{
public static IObservable<TOutput> WithPrevious<TSource, TOutput>(this IObservable<TSource> source, Func<TSource, TSource, TOutput> projection)
{
return source.Scan(Tuple.Create(default(TSou... | apache-2.0 | C# |
0e68df7ca1d38c61b025d4302e6c90a67e78ade4 | Improve benchmarks | ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework | osu.Framework.Benchmarks/BenchmarkWeakList.cs | osu.Framework.Benchmarks/BenchmarkWeakList.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.Linq;
using BenchmarkDotNet.Attributes;
using osu.Framework.Lists;
namespace osu.Framework.Benchmarks
{
public class BenchmarkWeakList : BenchmarkTest
... | // 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.Linq;
using BenchmarkDotNet.Attributes;
using NUnit.Framework;
using osu.Framework.Lists;
namespace osu.Framework.Benchmarks
{
public class BenchmarkWea... | mit | C# |
d55324585d678603435adcaed815d3d85186037b | Change RoomSubmittingPlayer's request implementation to return null on RoomID missing, rather than silently succeeding | UselessToucan/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu | osu.Game/Screens/Play/RoomSubmittingPlayer.cs | osu.Game/Screens/Play/RoomSubmittingPlayer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Game.Online.API;
using osu.Game.Online.Rooms;
using osu.Game.Scoring;
namespace osu.Game.Screens... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Game.Online.API;
using osu.Game.Online.Rooms;
using osu.Game.Scoring;
namespace osu.Game.Screens... | mit | C# |
a0f8079f76bd42f7f065fd01f283cdea3a1fc643 | Use 'long' datatype for IDs in sample applications to avoid warnings. | azabluda/InfoCarrier.Core | sample/Datamodel.cs | sample/Datamodel.cs | // Copyright (c) on/off it-solutions gmbh. All rights reserved.
// Licensed under the MIT license. See license.txt file in the project root for license information.
#pragma warning disable SA1402 // FileMayOnlyContainASingleType
#pragma warning disable SA1649 // FileNameMustMatchTypeName
namespace InfoCarrierSample
... | // Copyright (c) on/off it-solutions gmbh. All rights reserved.
// Licensed under the MIT license. See license.txt file in the project root for license information.
#pragma warning disable SA1402 // FileMayOnlyContainASingleType
#pragma warning disable SA1649 // FileNameMustMatchTypeName
namespace InfoCarrierSample
... | mit | C# |
4fccadac87b055ea94ba8428433f47f54b006a04 | remove abstract ,unused class TextBreaker | LayoutFarm/PixelFarm | src/PixelFarm/Typography/Typography.TextBreak/Typography.TextBreak/BreakEngine.cs | src/PixelFarm/Typography/Typography.TextBreak/Typography.TextBreak/BreakEngine.cs | //MIT, 2016-2017, WinterDev
//some code from ICU project with BSD license
namespace Typography.TextBreak
{
public delegate void OnBreak(BreakBounds breakBounds);
public class BreakBounds
{
public int startIndex;
public int length;
public bool stopNext;
public WorkKind ... | //MIT, 2016-2017, WinterDev
//some code from ICU project with BSD license
namespace Typography.TextBreak
{
public enum TextBreakKind
{
Word,
Sentence,
}
public delegate void OnBreak(BreakBounds breakBounds);
public class BreakBounds
{
public int startIndex;
pu... | bsd-2-clause | C# |
e222547e735008b19474dee07028533016cb80ca | Fix the test | fredericDelaporte/nhibernate-core,gliljas/nhibernate-core,livioc/nhibernate-core,alobakov/nhibernate-core,ngbrown/nhibernate-core,hazzik/nhibernate-core,gliljas/nhibernate-core,gliljas/nhibernate-core,nhibernate/nhibernate-core,ngbrown/nhibernate-core,ManufacturingIntelligence/nhibernate-core,fredericDelaporte/nhiberna... | src/NHibernate.Test/NHSpecificTest/NH739/Fixture.cs | src/NHibernate.Test/NHSpecificTest/NH739/Fixture.cs | using System;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH739
{
[TestFixture]
public class Fixture : BugTestCase
{
[Test]
public void Bug()
{
int catId;
using (ISession sess = OpenSession())
{
Cat c = new Cat();
sess.Save(c);
catId = c.Id;
s... | using System;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH739
{
[TestFixture]
public class Fixture : BugTestCase
{
[Test]
public void Bug()
{
using (ISession sess = OpenSession())
{
Cat c = new Cat();
sess.Save(c);
sess.Clear();
c = (Cat) sess.Get(ty... | lgpl-2.1 | C# |
03bfef60316b8e0e6d02848f4f6185ea81f070a6 | Make hft-server runtime options not based on HFTArgsDirect | greggman/hft-unity3d,greggman/hft-unity3d,greggman/hft-unity3d,greggman/hft-unity3d | hft-server/hft-server/HFTRuntimeOptions.cs | hft-server/hft-server/HFTRuntimeOptions.cs | using System;
namespace HappyFunTimes
{
public class HFTRuntimeOptions
{
public string dataPath = "";
public string url = "";
public string id = "";
public string name = "";
public string gameId = "HFTUnity"; // this is kind of left over from when one server supported ... | using System;
namespace HappyFunTimes
{
public class HFTRuntimeOptions : HFTArgsDirect
{
public HFTRuntimeOptions(string prefix) : base(prefix)
{
}
public string dataPath = "";
public string url = "";
public string id = "";
public string name = "";
... | bsd-3-clause | C# |
eebfcb7ff40ce6240008c22a07eca33eecc88bb5 | Remove superfluous construction of ReadOnlySpan<byte> from byte[ ]. An implicit cast is available in this context, so the same method overload is in fact called, and the implementation of the implicit cast performs the same construction for us. | fixie/fixie | src/Fixie/Internal/Serialization.cs | src/Fixie/Internal/Serialization.cs | namespace Fixie.Internal
{
using System.Text;
using System.Text.Json;
static class Serialization
{
public static string Serialize<TMessage>(TMessage message)
=> Encoding.UTF8.GetString(JsonSerializer.SerializeToUtf8Bytes(message));
public static TMessage Deserialize<TMessa... | namespace Fixie.Internal
{
using System;
using System.Text;
using System.Text.Json;
static class Serialization
{
public static string Serialize<TMessage>(TMessage message)
=> Encoding.UTF8.GetString(JsonSerializer.SerializeToUtf8Bytes(message));
public static TMessage ... | mit | C# |
f3acaafd4539d2bef08e47ee047b77be56c27b1c | Add missing permission registration in OC.ReverseProxy module (#11542) | stevetayloruk/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2 | src/OrchardCore.Modules/OrchardCore.ReverseProxy/Startup.cs | src/OrchardCore.Modules/OrchardCore.ReverseProxy/Startup.cs | using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
using OrchardCore.DisplayManagement.Handlers;
using OrchardCore.Modules;
using OrchardCore.... | using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
using OrchardCore.DisplayManagement.Handlers;
using OrchardCore.Modules;
using OrchardCore.... | bsd-3-clause | C# |
3f8379b86f77a1f3b67658a3cf3f5c17df57fb72 | Fix log message. | aluxnimm/outlookcaldavsynchronizer | CalDavSynchronizer/Implementation/GoogleContacts/GoogleApiOperationExecutor.cs | CalDavSynchronizer/Implementation/GoogleContacts/GoogleApiOperationExecutor.cs | // This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)
// Copyright (c) 2015 Gerhard Zehetbauer
// Copyright (c) 2015 Alexander Nimmervoll
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License a... | // This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)
// Copyright (c) 2015 Gerhard Zehetbauer
// Copyright (c) 2015 Alexander Nimmervoll
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License a... | agpl-3.0 | C# |
be6b731ab49460384d0c26832ceb66db3bf83291 | Support Xamarin.Mac assemblies in MonoMacMainLoopIntegration | mono/guiunit | src/framework/GuiUnit/MonoMacMainLoopIntegration.cs | src/framework/GuiUnit/MonoMacMainLoopIntegration.cs | using System;
using System.Linq;
namespace GuiUnit
{
public class MonoMacMainLoopIntegration : IMainLoopIntegration
{
Type Application {
get; set;
}
object SharedApplication {
get; set;
}
public MonoMacMainLoopIntegration ()
{
Application = Type.GetType ("MonoMac.AppKit.NSApplication, MonoMac"... | using System;
using System.Linq;
namespace GuiUnit
{
public class MonoMacMainLoopIntegration : IMainLoopIntegration
{
Type Application {
get; set;
}
object SharedApplication {
get; set;
}
public MonoMacMainLoopIntegration ()
{
Application = Type.GetType ("MonoMac.AppKit.NSApplication, MonoMac"... | mit | C# |
64014f7f5a3e8b061a6f3d671dda18633ce78184 | use uribuilder | Teleopti/Stardust | Manager/Manager/JobManager.cs | Manager/Manager/JobManager.cs | using System;
using System.Collections.Generic;
using Stardust.Manager.Constants;
using Stardust.Manager.Helpers;
using Stardust.Manager.Interfaces;
using Stardust.Manager.Models;
namespace Stardust.Manager
{
public class JobManager
{
private readonly IJobRepository _jobRepository;
private readonly IWorkerNodeR... | using System;
using System.Collections.Generic;
using Stardust.Manager.Constants;
using Stardust.Manager.Interfaces;
using Stardust.Manager.Models;
namespace Stardust.Manager
{
public class JobManager
{
private readonly IJobRepository _jobRepository;
private readonly IWorkerNodeRepository _nodeRepository;
pri... | mit | C# |
fb3622debd2adf8b107ab79f3a9dffbf8d127baf | Update Index.cshtml | dncuug/dot-net.in.ua,dncuug/dot-net.in.ua,dncuug/dot-net.in.ua | src/WebSite/Views/Home/Index.cshtml | src/WebSite/Views/Home/Index.cshtml | @using X.PagedList;
@using X.PagedList.Mvc.Core;
@model IPagedList<Core.ViewModels.PublicationViewModel>
@{
ViewData["Title"] = "Welcome!";
}
@section head {
<meta property="og:title" content="@Core.Settings.Current.WebSiteTitle" />
<meta property="og:type" content="website" />
<meta property="og:url... | @using X.PagedList;
@using X.PagedList.Mvc.Core;
@model IPagedList<Core.ViewModels.PublicationViewModel>
@{
ViewData["Title"] = "Welcome!";
}
@section head {
<meta property="og:title" content="@Core.Settings.Current.WebSiteTitle" />
<meta property="og:type" content="website" />
<meta property="og:url... | mit | C# |
b35e979ce200e8d5bf5e9bd0e83fd102602410fd | create constructor with validation methods | passenger-stack/Passenger,passenger-stack/Passenger | Passenger.Core/Domain/Node.cs | Passenger.Core/Domain/Node.cs | using System;
using System.Text.RegularExpressions;
namespace Passenger.Core.Domain
{
public class Node
{
private static readonly Regex NameRegex = new Regex("^(?![_.-])(?!.*[_.-]{2})[a-zA-Z0-9._.-]+(?<![_.-])$");
public string Address { get; protected set; }
public double Longitude { g... | namespace Passenger.Core.Domain
{
public class Node
{
public string Address { get; protected set; }
public double Longitude { get; protected set; }
public double Latitude { get; protected set; }
}
} | mit | C# |
6a22a0470fe5cd57aafb018e72fef7cb720afdb5 | Comment on next steps. | mcollier/ServiceFabricPubSub,flyingoverclouds/ServiceFabricPubSub,brentstineman/ServiceFabricPubSub,digimaun/ServiceFabricPubSub | src/ServiceFabricPubSub/RequestRouter/RequestAuthorizationAttribute.cs | src/ServiceFabricPubSub/RequestRouter/RequestAuthorizationAttribute.cs | using System;
using System.Linq;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Controllers;
namespace RequestRouterService
{
public class RequestAuthorizationAttribute : AuthorizeAttribute
{
public override void OnAuthorization(HttpActionContext actionContext)
{
... | using System;
using System.Linq;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Controllers;
namespace RequestRouterService
{
public class RequestAuthorizationAttribute : AuthorizeAttribute
{
public override void OnAuthorization(HttpActionContext actionContext)
{
... | mit | C# |
28e967fbdb240a8e8c16e487b8d4e0e2b48bc2e3 | add null check on tcpClient | Piotrekol/StreamCompanion,Piotrekol/StreamCompanion | osu!StreamCompanion/Code/Modules/MapDataGetters/TcpSocket/TcpSocketManager.cs | osu!StreamCompanion/Code/Modules/MapDataGetters/TcpSocket/TcpSocketManager.cs | using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
namespace osu_StreamCompanion.Code.Modules.MapDataGetters.TcpSocket
{
public class TcpSocketManager : IDisposable
{
private TcpClient _tcpClient;
BinaryWriter _writer = null;
public int ServerPort = 7839;
... | using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
namespace osu_StreamCompanion.Code.Modules.MapDataGetters.TcpSocket
{
public class TcpSocketManager : IDisposable
{
private TcpClient _tcpClient;
BinaryWriter _writer = null;
public int ServerPort = 7839;
... | mit | C# |
f6b50e5fde80dd0fb172f07e958dd4739975be0e | Use StyledWindow services | AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia | tests/Avalonia.Markup.Xaml.UnitTests/SetterTests.cs | tests/Avalonia.Markup.Xaml.UnitTests/SetterTests.cs | using System.Linq;
using Avalonia.Data;
using Avalonia.Styling;
using Avalonia.UnitTests;
using Xunit;
namespace Avalonia.Markup.Xaml.UnitTests
{
public class SetterTests : XamlTestBase
{
[Fact]
public void Setter_Should_Work_Outside_Of_Style_With_SetterTargetType_Attribute()
{
... | using System.Linq;
using Avalonia.Data;
using Avalonia.Styling;
using Avalonia.UnitTests;
using Xunit;
namespace Avalonia.Markup.Xaml.UnitTests
{
public class SetterTests : XamlTestBase
{
[Fact]
public void Setter_Should_Work_Outside_Of_Style_With_SetterTargetType_Attribute()
{
... | mit | C# |
4c42d4031440623a7ac1d62a7b2201691df0c6bb | Correct the comment from explosion to object | smoogipoo/osu,ppy/osu,NeoAdonis/osu,naoey/osu,NeoAdonis/osu,naoey/osu,peppy/osu,peppy/osu,UselessToucan/osu,2yangk23/osu,johnneijzen/osu,ZLima12/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,DrabWeb/osu,NeoAdonis/osu,smoogipooo/osu,naoey/osu,ZLima12/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,EVAST9919/osu,DrabWeb/osu,... | osu.Game.Rulesets.Osu/Mods/OsuModTransform.cs | osu.Game.Rulesets.Osu/Mods/OsuModTransform.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects.Dra... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects.Dra... | mit | C# |
e6d66f8b579e82e05d0ac2863b1e079a74e2df38 | Fix the demo with the last changes | proyecto26/RestClient | demo/Assets/MainScript.cs | demo/Assets/MainScript.cs | using UnityEngine;
using UnityEditor;
using Models;
using Proyecto26;
using System.Collections.Generic;
public class MainScript : MonoBehaviour {
private readonly string basePath = "https://jsonplaceholder.typicode.com";
public void Get(){
// We can add default request headers for all requests
RestClient.Defa... | using UnityEngine;
using UnityEditor;
using Models;
using Proyecto26;
using System.Collections.Generic;
public class MainScript : MonoBehaviour {
private readonly string basePath = "https://jsonplaceholder.typicode.com";
public void Get(){
// We can add default request headers for all requests
RestClient.Defa... | mit | C# |
6c4fb61841271d32baa0096b02533d026c0c7b8f | Add equivalence key to fixer's code actions | natidea/roslyn-analyzers,bkoelman/roslyn-analyzers,Anniepoh/roslyn-analyzers,qinxgit/roslyn-analyzers,pakdev/roslyn-analyzers,jasonmalinowski/roslyn-analyzers,dotnet/roslyn-analyzers,mavasani/roslyn-analyzers,genlu/roslyn-analyzers,mavasani/roslyn-analyzers,pakdev/roslyn-analyzers,srivatsn/roslyn-analyzers,heejaechang/... | src/Microsoft.ApiDesignGuidelines.Analyzers/Core/ExceptionsShouldBePublic.Fixer.cs | src/Microsoft.ApiDesignGuidelines.Analyzers/Core/ExceptionsShouldBePublic.Fixer.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Composition;
using System.Linq;
using System.Threading;
using... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Composition;
using System.Linq;
using System.Threading;
using... | mit | C# |
2a4185186b406a08b1e400c6703c60156f17bfd7 | Update DonationChing.cs | Barleytree/NitoriWare,uulltt/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare,plrusek/NitoriWare,NitorInc/NitoriWare | Assets/Resources/Microgames/_Finished/Donation/Scripts/DonationChing.cs | Assets/Resources/Microgames/_Finished/Donation/Scripts/DonationChing.cs | using UnityEngine;
using System.Collections;
public class DonationChing : MonoBehaviour
{
public ObjectPool pool;
new public AudioSource audio;
public float initialScale, growSpeed, maxScale, fadeStartTime, fadeSpeed, ySpeed;
public Vector2 xBounds, yBounds;
private float scale, time, alpha;
private TextMe... | using UnityEngine;
using System.Collections;
public class DonationChing : MonoBehaviour
{
public ObjectPool pool;
new public AudioSource audio;
public float initialScale, growSpeed, maxScale, fadeStartTime, fadeSpeed, ySpeed;
public Vector2 xBounds, yBounds;
private float scale, time, alpha;
private TextMe... | mit | C# |
de6ffbc95816b636dcb4d81ec310a04e0d940893 | Update EntityFrameworkConvertToDbGeography.cs | GeoJSON-Net/GeoJSON.Net.Contrib | src/GeoJSON.Net.Contrib.EntityFramework/EntityFrameworkConvertToDbGeography.cs | src/GeoJSON.Net.Contrib.EntityFramework/EntityFrameworkConvertToDbGeography.cs | using System.Data.Entity.Spatial;
using GeoJSON.Net.Geometry;
using GeoJSON.Net.Contrib.Wkb.Conversions;
namespace GeoJSON.Net.Contrib.EntityFramework
{
public static partial class EntityFrameworkConvert
{
[Obsolete("This method will be removed in future releases, consider migrating now to the... | using System.Data.Entity.Spatial;
using GeoJSON.Net.Geometry;
using GeoJSON.Net.Contrib.Wkb.Conversions;
namespace GeoJSON.Net.Contrib.EntityFramework
{
public static partial class EntityFrameworkConvert
{
public static DbGeography ToDbGeography(this IGeometryObject geometryObject, int coordin... | mit | C# |
90f38c4cf2de2c0d31e142970298ede915421ebd | Bump version of Amazon.Lambda.APIGatewayEvents | thedevopsmachine/aws-lambda-dotnet,thedevopsmachine/aws-lambda-dotnet,thedevopsmachine/aws-lambda-dotnet,thedevopsmachine/aws-lambda-dotnet | Libraries/src/Amazon.Lambda.APIGatewayEvents/Properties/AssemblyInfo.cs | Libraries/src/Amazon.Lambda.APIGatewayEvents/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Amazon.Lambda.APIGatewayEvents")]
[assembly: AssemblyDescription("Lambda event interfaces for API Gateway event source.")]
[assembly: AssemblyProduct("Amazon Web Services Lambda Interface fo... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Amazon.Lambda.APIGatewayEvents")]
[assembly: AssemblyDescription("Lambda event interfaces for API Gateway event source.")]
[assembly: AssemblyProduct("Amazon Web Services Lambda Interface fo... | apache-2.0 | C# |
8c9ff703dcb1954e5abf00de6c68ece6f3b3fa81 | update block text in markdown. (#1450) | superyyrrzz/docfx,928PJY/docfx,DuncanmaMSFT/docfx,pascalberger/docfx,928PJY/docfx,pascalberger/docfx,hellosnow/docfx,superyyrrzz/docfx,hellosnow/docfx,dotnet/docfx,DuncanmaMSFT/docfx,928PJY/docfx,superyyrrzz/docfx,dotnet/docfx,dotnet/docfx,hellosnow/docfx,pascalberger/docfx | src/Microsoft.DocAsCode.MarkdownLite/Basic/BlockRules/MarkdownTextBlockRule.cs | src/Microsoft.DocAsCode.MarkdownLite/Basic/BlockRules/MarkdownTextBlockRule.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.MarkdownLite
{
using System;
using System.Text.RegularExpressions;
using Microsoft.DocAsCode.MarkdownLite.Matchers;
pub... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.MarkdownLite
{
using System.Text.RegularExpressions;
public class MarkdownTextBlockRule : IMarkdownRule
{
public vir... | mit | C# |
edd0d166b1c774cf102cc83208c52c56d6ab8df4 | Add text transforms to OsuSpriteText | Drezi126/osu,DrabWeb/osu,naoey/osu,EVAST9919/osu,peppy/osu,Frontear/osuKyzer,2yangk23/osu,smoogipoo/osu,NeoAdonis/osu,naoey/osu,UselessToucan/osu,johnneijzen/osu,EVAST9919/osu,DrabWeb/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,DrabWeb/osu,ZLima12/osu,ppy/osu,ZLima12/osu,smoogipoo/osu,peppy/osu-ne... | osu.Game/Graphics/Sprites/OsuSpriteText.cs | osu.Game/Graphics/Sprites/OsuSpriteText.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.MathUtils;
using OpenTK;
using OpenTK.Graphics;
using osu.Framework.Grap... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.MathUtils;
using OpenTK;
using OpenTK.Graphics;
namespace osu.Game.Gra... | mit | C# |
78f03ec6db73f57fe94969d2e6b65cbde59e4da0 | Add missing await | taddison/blog-oms-to-slack | GenericFunctionExternalConfig/OMSToSlack/OMSMetricToSlack.cs | GenericFunctionExternalConfig/OMSToSlack/OMSMetricToSlack.cs | using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
using OMSToSlack;
using OMSToSlack.Models;
using OMSToSlack.Models.OMS;
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
public class OMSMetricToSlack
{
private static AlertProcessor __processo... | using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
using OMSToSlack;
using OMSToSlack.Models;
using OMSToSlack.Models.OMS;
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
public class OMSMetricToSlack
{
private static AlertProcessor __processo... | mit | C# |
3a3bc84865012be90bfd91b7bce382d3c4b6a82a | Undo eicon status fix because it broke things | WreckedAvent/slimCat | slimCat/Utilities/Converters/BbCodeConverter.cs | slimCat/Utilities/Converters/BbCodeConverter.cs | #region Copyright
// <copyright file="BbCodeConverter.cs">
// Copyright (c) 2013-2015, Justin Kadrovach, All rights reserved.
//
// This source is subject to the Simplified BSD License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFO... | #region Copyright
// <copyright file="BbCodeConverter.cs">
// Copyright (c) 2013-2015, Justin Kadrovach, All rights reserved.
//
// This source is subject to the Simplified BSD License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFO... | bsd-2-clause | C# |
2f0c85f1f8307c95e53a6f2a364bca13c22d814c | fix match-matchbox interaction (#8715) | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Server/Light/EntitySystems/MatchboxSystem.cs | Content.Server/Light/EntitySystems/MatchboxSystem.cs | using Content.Server.Light.Components;
using Content.Server.Storage.EntitySystems;
using Content.Shared.Interaction;
using Content.Shared.Smoking;
namespace Content.Server.Light.EntitySystems
{
public sealed class MatchboxSystem : EntitySystem
{
[Dependency] private readonly MatchstickSystem _stickSyst... | using Content.Server.Light.Components;
using Content.Shared.Interaction;
using Content.Shared.Smoking;
namespace Content.Server.Light.EntitySystems
{
public sealed class MatchboxSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocal... | mit | C# |
2de404e877edbe4fcbe8c67cee0a7f213da82be3 | Update GameBinariesHandler | lucasdavid/Gamedalf,lucasdavid/Gamedalf | Gamedalf/Infrastructure/Games/GameBinariesHandler.cs | Gamedalf/Infrastructure/Games/GameBinariesHandler.cs | using Gamedalf.Infrastructure.Exceptions;
using System;
using System.IO;
using System.Web;
namespace Gamedalf.Infrastructure.Games
{
public class GameBinariesHandler : GameFilesHandler
{
private const string BasePath = "~/GamesBinaries";
private HttpPostedFileBase _binary;
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace Gamedalf.Infrastructure.Games
{
public class GameBinariesHandler : GameFilesHandler
{
private const string BasePath = "~/GamesBinaries";
private HttpPostedFile _... | mit | C# |
ff5e5c4e273c126f88b9eea715fc05d2b27d8b64 | Improve _ToolbarButton template. | jtm789/CMS,andyshao/CMS,techwareone/Kooboo-CMS,techwareone/Kooboo-CMS,lingxyd/CMS,Kooboo/CMS,lingxyd/CMS,jtm789/CMS,Kooboo/CMS,lingxyd/CMS,andyshao/CMS,andyshao/CMS,techwareone/Kooboo-CMS,Kooboo/CMS,jtm789/CMS | Kooboo.CMS/Kooboo.CMS.Web/Views/Shared/_ToolbarButton.cshtml | Kooboo.CMS/Kooboo.CMS.Web/Views/Shared/_ToolbarButton.cshtml | @model Kooboo.CMS.Sites.Extension.UI.TopToolbar.ToolbarButton
@{
var routeValues = ViewContext.RequestContext.AllRouteValues().Merge("return", ViewContext.HttpContext.Request.RawUrl);
IDictionary<string, object> htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
if (Model.Co... | @model Kooboo.CMS.Sites.Extension.UI.TopToolbar.ToolbarButton
@{
var routeValues = ViewContext.RequestContext.AllRouteValues().Merge("return", ViewContext.HttpContext.Request.RawUrl);
if (!string.IsNullOrEmpty(Model.CommandTarget.Area))
{
routeValues = routeValues.Merge("area", Model.CommandTarget.... | bsd-3-clause | C# |
1b6746955b8db59ce34791c0f726bee42a4eddf6 | Fix wrong padding value used to calc Descent | prime31/Nez,prime31/Nez,ericmbernier/Nez,prime31/Nez,Blucky87/Nez | Nez.PipelineImporter/BitmapFonts/BitmapFontWriter.cs | Nez.PipelineImporter/BitmapFonts/BitmapFontWriter.cs | using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
using System;
using Nez.PipelineImporter;
namespace Nez.BitmapFontImporter
{
[ContentTypeWriter]
public cl... | using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
using System;
using Nez.PipelineImporter;
namespace Nez.BitmapFontImporter
{
[ContentTypeWriter]
public cl... | mit | C# |
b7d40e795959426c74b9c4ced3ee4e10bd329db5 | Add tests | oledb/PiforatioAlpha | Piforatio.Core/Pifaratio.Test/Core/PTaskModelTest.cs | Piforatio.Core/Pifaratio.Test/Core/PTaskModelTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using Moq;
using Piforatio.Core.ObjectsAbstract;
using Piforatio.Core.DataModel;
using static Piforatio.Test.Core.FakesFabrica;
namespace Piforatio.Test.Core
{
[TestFixture]
public class PTaskModelTest
{
[Tes... | using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using Moq;
using Piforatio.Core.ObjectsAbstract;
using Piforatio.Core.DataModel;
using static Piforatio.Test.Core.FakesFabrica;
namespace Piforatio.Test.Core
{
[TestFixture]
public class PTaskModelTest
{
[Tes... | mit | C# |
49fba553fd6a4ddd203e536b48e0dfab79023c99 | Write to isLatLong property | Esri/coordinate-tool-addin-dotnet | source/CoordinateConversion/CoordinateConversionLibrary/Views/AmbiguousCoordsView.xaml.cs | source/CoordinateConversion/CoordinateConversionLibrary/Views/AmbiguousCoordsView.xaml.cs | using CoordinateConversionLibrary.Models;
using System.Windows;
namespace CoordinateConversionLibrary.Views
{
/// <summary>
/// Interaction logic for AmbiguousCoordsView.xaml
/// </summary>
public partial class AmbiguousCoordsView : Window
{
public bool CheckedLatLon
{
... | using CoordinateConversionLibrary.Models;
using System.Windows;
namespace CoordinateConversionLibrary.Views
{
/// <summary>
/// Interaction logic for AmbiguousCoordsView.xaml
/// </summary>
public partial class AmbiguousCoordsView : Window
{
public bool CheckedLatLon
{
... | apache-2.0 | C# |
0e4065cc1f2dc7cda7a0e6ae30c67729cf4f02c0 | Reorder InMemoryCache.TryGet() | superkarn/RatanaLibrary | src/RatanaLibrary.Common/Cache/InMemoryCache.cs | src/RatanaLibrary.Common/Cache/InMemoryCache.cs | using System;
using System.Runtime.Caching;
namespace RatanaLibrary.Common.Cache
{
/// <summary>
/// An in-memory implementation of the ICache interface.
/// </summary>
public class InMemoryCache : ICache
{
private static Object Lock = new Object();
public InMemoryCache()
... | using System;
using System.Runtime.Caching;
namespace RatanaLibrary.Common.Cache
{
/// <summary>
/// An in-memory implementation of the ICache interface.
/// </summary>
public class InMemoryCache : ICache
{
private static Object Lock = new Object();
public InMemoryCache()
... | apache-2.0 | C# |
11d90471237ce57bc677ce52ddd567bec3dccdba | Update Option.ToString | copygirl/EntitySystem | src/Utility/Option.cs | src/Utility/Option.cs | using System;
using System.Collections.Generic;
namespace EntitySystem.Utility
{
public struct Option<T> : IEquatable<Option<T>>
{
readonly T _value;
public bool HasValue { get; private set; }
public T Value => Expect(() =>
new InvalidOperationException($"Option has no value"));
public Option(... | using System;
using System.Collections.Generic;
namespace EntitySystem.Utility
{
public struct Option<T> : IEquatable<Option<T>>
{
readonly T _value;
public bool HasValue { get; private set; }
public T Value => Expect(() =>
new InvalidOperationException($"Option has no value"));
public Option(... | mit | C# |
429c83d4874bda7f2d9cae4cb12047feaf31cd57 | Remove the obsolete UseTypedRouting method | ivaylokenov/AspNet.Mvc.TypedRouting | src/AspNet.Mvc.TypedRouting/RouteBuilderExtensions.cs | src/AspNet.Mvc.TypedRouting/RouteBuilderExtensions.cs | namespace Microsoft.AspNetCore.Builder
{
using Routing;
using System;
public static class RouteBuilderExtensions
{
}
}
| namespace Microsoft.AspNetCore.Builder
{
using Routing;
using System;
public static class RouteBuilderExtensions
{
/// <summary>
/// Allows using typed expression based link generation in ASP.NET Core MVC application.
/// </summary>
[Obsolete("UseTypedRouting is no long... | mit | C# |
829475c87dd1e057bc89c19ac9535ac71e98082c | Reformat Main method. | kekekeks/PerspexVS,AvaloniaUI/PerspexVS | src/Templates/AvaloniaApplicationTemplate/App.xaml.cs | src/Templates/AvaloniaApplicationTemplate/App.xaml.cs | using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Diagnostics;
using Avalonia.Themes.Default;
using Avalonia.Markup.Xaml;
namespace $safeprojectname$
{
class App : Application
{
public override void Initialize()
{
AvaloniaXamlLoader.Load(this);
base... | using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Diagnostics;
using Avalonia.Themes.Default;
using Avalonia.Markup.Xaml;
namespace $safeprojectname$
{
class App : Application
{
public override void Initialize()
{
AvaloniaXamlLoader.Load(this);
base... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.