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 |
|---|---|---|---|---|---|---|---|---|
7381399502476ca5813685772fbae22a82d34b64 | Apply expression bodied functions convention | shaynevanasperen/Data.Operations,shaynevanasperen/Magneto | src/Magneto/Dispatcher.cs | src/Magneto/Dispatcher.cs | using System;
using System.Threading.Tasks;
namespace Magneto
{
/// <summary>
/// If using an IoC container, it is highly recommended that this be registered as a scoped service
/// so that the injected <see cref="IServiceProvider"/> is scoped appropriately.
/// </summary>
public class Dispatcher : IDis... | using System;
using System.Threading.Tasks;
namespace Magneto
{
/// <summary>
/// If using an IoC container, it is highly recommended that this be registered as a scoped service
/// so that the injected <see cref="IServiceProvider"/> is scoped appropriately.
/// </summary>
public class Dispatcher : IDis... | mit | C# |
ad54ba3c2264869a73bc743aa07fb134ea36dbb4 | Fix - Modificata notifica delete utente | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf | src/backend/SO115App.SignalR/Sender/GestioneUtenti/NotificationDeleteUtente.cs | src/backend/SO115App.SignalR/Sender/GestioneUtenti/NotificationDeleteUtente.cs | using Microsoft.AspNetCore.SignalR;
using SO115App.Models.Servizi.CQRS.Commands.GestioneUtenti.CancellazioneUtente;
using SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.GetUtenti;
using SO115App.Models.Servizi.Infrastruttura.Notification.GestioneUtenti;
using System;
using System.Threading.Tasks;
namespace SO1... | using Microsoft.AspNetCore.SignalR;
using SO115App.Models.Servizi.CQRS.Commands.GestioneUtenti.CancellazioneUtente;
using SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.GetUtenti;
using SO115App.Models.Servizi.Infrastruttura.Notification.GestioneUtenti;
using System;
using System.Threading.Tasks;
namespace SO1... | agpl-3.0 | C# |
94a94dd954ac6054c72250e6b55464d96bdb1070 | change settings and log dir | stanac/shutdown | ShutDown/Data/DataBase.cs | ShutDown/Data/DataBase.cs | using System;
using System.IO;
namespace ShutDown.Data
{
public abstract class DataBase
{
protected static readonly string FolderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "ShutDown_stanac"); // to avoid collisions
static DataBase()
{
... | using System;
using System.IO;
namespace ShutDown.Data
{
public abstract class DataBase
{
protected static readonly string FolderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "ShutDown_cJ51KAf2ckeBsFCJ2wP3pQ"); // to avoid collisions
static DataBase... | mit | C# |
49fbbafa4683d1763fc228ef0165ee931984bad9 | Add explanation of why having 2 yield return | wangkanai/Detection | src/Hosting/PageLocationExpander.cs | src/Hosting/PageLocationExpander.cs | // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Razor;
using Microsoft.AspNetCore.Mvc.RazorPages;
name... | // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Razor;
using Microsoft.AspNetCore.Mvc.RazorPages;
name... | apache-2.0 | C# |
850d2f22432ebb28a09e425b2d9c329d97bbf684 | Update UTypeCache.cs | KoborSoft/UniversalAgent | USerializer/UTypeCache.cs | USerializer/UTypeCache.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace KS.USerializer
{
public class TypeCacheEntry : ITypeCacheEntry
{
public uint Id { get; protected set; }
public bool IsGeneric { get; protected s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace KS.USerializer
{
public class TypeCacheEntry : ITypeCacheEntry
{
public uint Id { get; protected set; }
public bool IsGeneric { get; protected ... | agpl-3.0 | C# |
4c8057905bfe75753a852bdd634c6d020fdad555 | Remove validation from Speakr Create | DonSchenck/DotNetOnLinux,DonSchenck/DotNetOnLinux,DonSchenck/DotNetOnLinux,DonSchenck/DotNetOnLinux | cli-samples-master/Speakr/Views/Submissions/Create.cshtml | cli-samples-master/Speakr/Views/Submissions/Create.cshtml | @model Speakr.Models.Submission
@{
ViewData["Title"] = "Create";
}
<h2>Create</h2>
<form asp-action="Create">
<div class="form-horizontal">
<h4>Submission</h4>
<hr />
<div class="form-group">
<label asp-for="ConferenceName" class="col-md-2 control-label"></label>
... | @model Speakr.Models.Submission
@{
ViewData["Title"] = "Create";
}
<h2>Create</h2>
<form asp-action="Create">
<div class="form-horizontal">
<h4>Submission</h4>
<hr />
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
<div class="form-group">
... | apache-2.0 | C# |
645542356a4c3863f9f34f211b447593c39f9a7c | Remove Seq compact flag, default now | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Program.cs | Battery-Commander.Web/Program.cs | namespace BatteryCommander.Web
{
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Serilog;
using Serilog.Core;
public class Program
{
public static LoggingLevelSwitch LogLevel { get; } = new LoggingLevelSwitch(Se... | namespace BatteryCommander.Web
{
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Serilog;
using Serilog.Core;
public class Program
{
public static LoggingLevelSwitch LogLevel { get; } = new LoggingLevelSwitch(Se... | mit | C# |
e712075ce95d4ef4505735f506b2ac3920350844 | make serializers protected | BoomaNation/Booma.Client.Network.Common,BoomaNation/Booma.Client.Network.Common | src/Booma.Client.Network.Common/Peer/BoomaNetworkWebPeer.cs | src/Booma.Client.Network.Common/Peer/BoomaNetworkWebPeer.cs | using GladNet.Engine.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using GladNet.Common;
using GladNet.ASP.Client.Lib;
using SceneJect.Common;
using GladNet.ASP.Client.RestSharp;
using GladNet.Message;
using GladNet.Serializer;
using Common.Logging;
us... | using GladNet.Engine.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using GladNet.Common;
using GladNet.ASP.Client.Lib;
using SceneJect.Common;
using GladNet.ASP.Client.RestSharp;
using GladNet.Message;
using GladNet.Serializer;
using Common.Logging;
us... | mit | C# |
0b4c6f4c045580bbfd512bd35e3f0a4522fa36dc | Use var instead. | dlemstra/Magick.NET,dlemstra/Magick.NET | src/Magick.NET/Drawables/Coordinates/DrawableCoordinates.cs | src/Magick.NET/Drawables/Coordinates/DrawableCoordinates.cs | // Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Collections.Generic;
namespace ImageMagick
{
internal abstract class DrawableCoordinates<TCoordinateType>
{
protected DrawableCoordinates(IEnumerable<TCoordi... | // Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Collections.Generic;
namespace ImageMagick
{
internal abstract class DrawableCoordinates<TCoordinateType>
{
protected DrawableCoordinates(IEnumerable<TCoordi... | apache-2.0 | C# |
dc4d9d613892b5d0e7d4dbdbed5acd64869df912 | Update BazaarAccountController.cs | Merchello/Merchello.Bazaar,Merchello/Merchello,clausjensen/Merchello,clausjensen/Merchello,ProNotion/Merchello,Merchello/Merchello,rasmusjp/Merchello,rasmusjp/Merchello,Merchello/Merchello,rasmusjp/Merchello,Merchello/Merchello.Bazaar,ProNotion/Merchello,clausjensen/Merchello,Merchello/Merchello.Bazaar,ProNotion/Merche... | src/Merchello.Bazaar/Controllers/BazaarAccountController.cs | src/Merchello.Bazaar/Controllers/BazaarAccountController.cs | namespace Merchello.Bazaar.Controllers
{
using System;
using System.Web.Mvc;
using Umbraco.Core.Logging;
using Umbraco.Web.Models;
using Umbraco.Web.Mvc;
/// <summary>
/// The bazaar account controller.
/// </summary>
[PluginController("Bazaar")]
[Authorize]
public class B... | namespace Merchello.Bazaar.Controllers
{
using System;
using System.Web.Mvc;
using Umbraco.Core.Logging;
using Umbraco.Web.Models;
using Umbraco.Web.Mvc;
/// <summary>
/// The bazaar account controller.
/// </summary>
[PluginController("Bazaar")]
[Authorize]
public class B... | mit | C# |
1edef94ba563f903acad28b0f91bef9d3e1fefb9 | fix naming | Pondidum/Dashen,Pondidum/Dashen,Pondidum/Dashen,Pondidum/Dashen | Dashen/Components/HeaderModel.cs | Dashen/Components/HeaderModel.cs | namespace Dashen.Components
{
public class HeaderModel : Model
{
public string Name { get; set; }
public string Version { get; set; }
}
}
| namespace Dashen.Components
{
public class HeaderModel : Model
{
public string Name { get; set; }
public string Verison { get; set; }
}
} | lgpl-2.1 | C# |
6e2a9a251d23f0278ba6d15d8d5a4081f2dd920b | 修复随即发生器的名字错误。 :rat: | Zongsoft/Zongsoft.Web.Launcher | DefaultController.cs | DefaultController.cs | using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
namespace Zongsoft.Web.Launcher
{
[HandleError]
public class DefaultController : Controller
{
public ActionResult Index()
{
this.ViewData["Now"] = DateTime.Now;
this.ViewData["Random"] = Z... | using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
namespace Zongsoft.Web.Launcher
{
[HandleError]
public class DefaultController : Controller
{
public ActionResult Index()
{
this.ViewData["Now"] = DateTime.Now;
this.ViewData["Random"] = Z... | mit | C# |
e807da564f5f6de5c43d1ec86b67cde1fc1cc589 | Add closest line to line point | karl-/simple_modeler | Assets/Modeler/Code/Scripts/MathUtility.cs | Assets/Modeler/Code/Scripts/MathUtility.cs | using UnityEngine;
using System;
namespace Modeler
{
public static class MathUtility
{
/**
* Calculate the normal of 3 points: B-A x C-A
*/
public static Vector3 Normal(Vector3 p0, Vector3 p1, Vector3 p2)
{
Vector3 cross = Vector3.Cross(p1 - p0, p2 - p0);
cross.Normalize();
return cross;
}
... | using UnityEngine;
using System;
namespace Modeler
{
public static class MathUtility
{
/**
* Calculate the normal of 3 points: B-A x C-A
*/
public static Vector3 Normal(Vector3 p0, Vector3 p1, Vector3 p2)
{
Vector3 cross = Vector3.Cross(p1 - p0, p2 - p0);
cross.Normalize();
return cross;
}
... | mit | C# |
bae170652c04bbe34dd415243d732d23c62ca006 | Use Event not Item | ucdavis/CRP,ucdavis/CRP,ucdavis/CRP | CRP.Mvc/Views/Payments/Confirmation.cshtml | CRP.Mvc/Views/Payments/Confirmation.cshtml | @using Microsoft.Web.Mvc
@model CRP.Controllers.ViewModels.PaymentConfirmationViewModel
@{
ViewBag.Title = "Confirmation";
}
<div class="boundary">
<h2>Registration Confirmation</h2>
<p>You have successfully registered for the following event:</p>
<div>
<label>Event: </label>
@Model.T... | @using Microsoft.Web.Mvc
@model CRP.Controllers.ViewModels.PaymentConfirmationViewModel
@{
ViewBag.Title = "Confirmation";
}
<div class="boundary">
<h2>Registration Confirmation</h2>
<p>You have successfully registered for the following event:</p>
<div>
<label>Item: </label>
@Model.Tr... | mit | C# |
ad17332723d9da98aba3dc0c5833c89edbef19d0 | refactor the provider cache | HamidMosalla/VisualStudio-ColorCoder | ColorCoder/ColorCoderCore/ProviderCache.cs | ColorCoder/ColorCoderCore/ProviderCache.cs | using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
using Microsoft.VisualStudio.Text;
namespace ColorCoder.ColorCoderCore
{
public class ProviderCache
{
public Workspace Workspace { get; private set; }
public Document Document { get; private set; }
... | using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
using Microsoft.VisualStudio.Text;
namespace ColorCoder.ColorCoderCore
{
public class ProviderCache
{
public Workspace Workspace { get; private set; }
public Document Document { get; private set; }
... | mit | C# |
e67dd103e22a617a64dbc790616f8133f76a80de | Refactor Utf8EncodingGenerator to use ExactTypeSpecification. | hackle/AutoFixture,zvirja/AutoFixture,AutoFixture/AutoFixture,dcastro/AutoFixture,adamchester/AutoFixture,adamchester/AutoFixture,sbrockway/AutoFixture,dcastro/AutoFixture,Pvlerick/AutoFixture,sean-gilliam/AutoFixture,sergeyshushlyapin/AutoFixture,sbrockway/AutoFixture,sergeyshushlyapin/AutoFixture,hackle/AutoFixture | Src/AutoFixture/Utf8EncodingGenerator.cs | Src/AutoFixture/Utf8EncodingGenerator.cs | using Ploeh.AutoFixture.Kernel;
using System.Text;
namespace Ploeh.AutoFixture
{
public class Utf8EncodingGenerator : ISpecimenBuilder
{
private readonly ExactTypeSpecification encodingTypeSpecification = new ExactTypeSpecification(typeof(Encoding));
public object Create(object request, ISpec... | using Ploeh.AutoFixture.Kernel;
using System.Text;
namespace Ploeh.AutoFixture
{
public class Utf8EncodingGenerator : ISpecimenBuilder
{
public object Create(object request, ISpecimenContext context)
{
if (typeof(Encoding).Equals(request))
{
return Encod... | mit | C# |
97f20fe98ac3bf96fc81adb9a27db98962acba87 | fix comment cref | flubu-core/flubu.core,flubu-core/flubu.core,flubu-core/flubu.core,flubu-core/flubu.core | FlubuCore/Tasks/Process/IRunProgramTask.cs | FlubuCore/Tasks/Process/IRunProgramTask.cs | namespace FlubuCore.Tasks.Process
{
/// <inheritdoc cref="ITaskOfT{T, TTask}" />
public interface IRunProgramTask : ITaskOfT<int, IRunProgramTask>, IExternalProcess<IRunProgramTask>
{
/// <summary>
/// Capture output of the running program.
/// </summary>
/// <returns></... | namespace FlubuCore.Tasks.Process
{
/// <inheritdoc cref="ITaskOfT{T}" />
public interface IRunProgramTask : ITaskOfT<int, IRunProgramTask>, IExternalProcess<IRunProgramTask>
{
/// <summary>
/// Capture output of the running program.
/// </summary>
/// <returns></returns... | bsd-2-clause | C# |
4c7a400e5383297c216b2af954fb24cb57fd4dc0 | fix test | huoxudong125/Fody,shanselman/Fody,shanselman/Fody,ichengzi/Fody,Fody/Fody,jasonholloway/Fody,distantcam/Fody,ColinDabritzViewpoint/Fody,GeertvanHorrik/Fody,shanselman/Fody,furesoft/Fody,PKRoma/Fody | Fody.Tests/WeaverProjectFileFinderTests.cs | Fody.Tests/WeaverProjectFileFinderTests.cs | using System.IO;
using Moq;
using NUnit.Framework;
[TestFixture]
public class WeaverProjectFileFinderTests
{
[Test]
public void Found()
{
var currentDirectory = AssemblyLocation.CurrentDirectory();
var combine = Path.Combine(currentDirectory, @"..\..\WeaversProjectFileFinder\WithWeaver");
... | using System.IO;
using Moq;
using NUnit.Framework;
[TestFixture]
public class WeaverProjectFileFinderTests
{
[Test]
public void Found()
{
var currentDirectory = AssemblyLocation.CurrentDirectory();
var combine = Path.Combine(currentDirectory, @"..\..\WeaversProjectFileFinder\WithWeaver");
... | mit | C# |
98ab52f64c352c1de29b180037eccb70c0723f94 | Bump version | InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET | configuration/SharedAssemblyInfo.cs | configuration/SharedAssemblyInfo.cs | using System.Reflection;
// Assembly Info that is shared across the product
[assembly: AssemblyProduct("InEngine.NET")]
[assembly: AssemblyVersion("2.0.0.*")]
[assembly: AssemblyInformationalVersion("2.0.0-beta1")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ethan Hann")]
[assembly: AssemblyCop... | using System.Reflection;
// Assembly Info that is shared across the product
[assembly: AssemblyProduct("InEngine.NET")]
[assembly: AssemblyVersion("2.0.0.*")]
[assembly: AssemblyInformationalVersion("2.0.0-alpha5")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ethan Hann")]
[assembly: AssemblyCo... | mit | C# |
c286fefbc349cd558dbf802679ba95875cfcb7ef | Make ReturnedWhen in BookLoan Class nullable. | Programazing/Open-School-Library,Programazing/Open-School-Library | src/Open-School-Library/Models/DatabaseModels/BookLoan.cs | src/Open-School-Library/Models/DatabaseModels/BookLoan.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Open_School_Library.Models.DatabaseModels
{
public class BookLoan
{
public int BookLoanID { get; set; }
public int BookID { get; set; }
public int StudentID { get; set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Open_School_Library.Models.DatabaseModels
{
public class BookLoan
{
public int BookLoanID { get; set; }
public int BookID { get; set; }
public int StudentID { get; set; }
... | mit | C# |
2e005791b0e5e90c31f35dddfce796390e21375f | rename C# class HelloWorld -> Euler | lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-euler,lunixbochs/project-e... | 01-50/01/1.cs | 01-50/01/1.cs | using System;
public class Euler {
static public void Main() {
int sum = 0;
for (int i = 0; i < 1000; i++) {
if (i % 5 == 0 || i % 3 == 0) {
sum += i;
}
}
Console.Out.WriteLine(sum);
}
}
| using System;
public class HelloWorld {
static public void Main() {
int sum = 0;
for (int i = 0; i < 1000; i++) {
if (i % 5 == 0 || i % 3 == 0) {
sum += i;
}
}
Console.Out.WriteLine(sum);
}
}
| mit | C# |
ad7144eb1a5ae979beaf2097f0e5d333567b247c | bump version and fix description | manesiotise/WebApiContrib.Tracing.NLog,WebApiContrib/WebApiContrib.Tracing.NLog | src/WebApiContrib.Tracing.Nlog/Properties/AssemblyInfo.cs | src/WebApiContrib.Tracing.Nlog/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("Web... | 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("Web... | mit | C# |
51a58269add518f7ea68f590fceeff11612cc5c7 | Fix nullref in case of successfull request but no backgrounds available | smoogipooo/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu | osu.Game/Graphics/Backgrounds/SeasonalBackgroundLoader.cs | osu.Game/Graphics/Backgrounds/SeasonalBackgroundLoader.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using... | mit | C# |
01c9112f82136510ae96dbd918e698ee9623ae81 | Add a null check to prevent NRE when playing the "no video" version of a beatmap. | peppy/osu-new,ppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,EVAST9919/osu,UselessToucan/osu,UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,EVAST9919/osu,NeoAdonis/osu | osu.Game/Storyboards/Drawables/DrawableStoryboardVideo.cs | osu.Game/Storyboards/Drawables/DrawableStoryboardVideo.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.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.G... | // 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.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.G... | mit | C# |
a6c34f9f44d98e71e2418e921ee962bc1378b51b | Change init of lifetime service | danielmundt/csremote | source/Remoting.Service/RemoteMessage.cs | source/Remoting.Service/RemoteMessage.cs | #region Header
// Copyright (C) 2012 Daniel Schubert
//
// 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, ... | #region Header
// Copyright (C) 2012 Daniel Schubert
//
// 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, ... | mit | C# |
0597c119c5a52d077694f0d91813f1d26c22d57a | Fix copy paste misstake | erlingsjostrom/TESS-V2,erlingsjostrom/TESS-V2,erlingsjostrom/TESS-V2,erlingsjostrom/TESS-V2,erlingsjostrom/TESS-V2 | TestRestfulAPI/App_Start/WebApiConfig.cs | TestRestfulAPI/App_Start/WebApiConfig.cs | using System.Web.Http;
using System.Web.OData.Builder;
using System.Web.OData.Extensions;
using Microsoft.OData.Edm;
using TestRestfulAPI.RestApi.odata.v1.Articles.Entities;
using TestRestfulAPI.RestApi.odata.v1.Customers.Entities;
using TestRestfulAPI.RestApi.odata.v1.Users.Entities;
namespace TestRestfulAPI
{
p... | using System.Web.Http;
using System.Web.OData.Builder;
using System.Web.OData.Extensions;
using Microsoft.OData.Edm;
using TestRestfulAPI.RestApi.odata.v1.Articles.Entities;
using TestRestfulAPI.RestApi.odata.v1.Customers.Entities;
using TestRestfulAPI.RestApi.odata.v1.Users.Entities;
namespace TestRestfulAPI
{
p... | mit | C# |
45e30f4e6e9162db7102641dbca4d5131ec07fba | update version to 1.5 | yixiangling/toxy,tonyqus/toxy,yixiangling/toxy | ToxyFramework/Properties/AssemblyInfo.cs | ToxyFramework/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
// 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.
[asse... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security;
// 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.
[asse... | apache-2.0 | C# |
d4085c4040abab9b6482136e76d9113674b8e6c9 | Fix tests | dwragge/memoriser,dwragge/memoriser,dwragge/memoriser | Memoriser.UnitTests/API/Queries/GetWordsQueryHandlerTests.cs | Memoriser.UnitTests/API/Queries/GetWordsQueryHandlerTests.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
using Memoriser.ApplicationCore.Models;
using System.Linq;
using Memoriser.Infrastructure;
using Microsoft.EntityFrameworkCore;
using Memoriser.App.Query.Handlers;
using Memoriser.App.Query.Queries;
using FluentAssertions;
namespace Memorise... | using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
using Memoriser.ApplicationCore.Models;
using System.Linq;
using Memoriser.Infrastructure;
using Microsoft.EntityFrameworkCore;
using Memoriser.App.Query.Handlers;
using Memoriser.App.Query.Queries;
using FluentAssertions;
namespace Memorise... | mit | C# |
a5330ddd3730d799a728009a03667ffb5eab2787 | Set process name to "tripod". | rubenv/tripod,rubenv/tripod | src/Core/Tripod.Core/Tripod.Base/Core.cs | src/Core/Tripod.Core/Tripod.Base/Core.cs | //
// Core.cs
//
// Author:
// Ruben Vermeersch <ruben@savanne.be>
//
// Copyright (c) 2010 Ruben Vermeersch <ruben@savanne.be>
//
// 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 with... | //
// Core.cs
//
// Author:
// Ruben Vermeersch <ruben@savanne.be>
//
// Copyright (c) 2010 Ruben Vermeersch <ruben@savanne.be>
//
// 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 with... | mit | C# |
b46645b9a83c5bf143dcc15e50989eb0229927ec | Allow reading numbers from strings in JSON | henkmollema/Dommel | src/Dommel.Json/JsonObjectTypeHandler.cs | src/Dommel.Json/JsonObjectTypeHandler.cs | using System;
using System.Data;
using System.Text.Json;
using System.Text.Json.Serialization;
using Dapper;
namespace Dommel.Json
{
internal class JsonObjectTypeHandler : SqlMapper.ITypeHandler
{
private static readonly JsonSerializerOptions JsonOptions = new()
{
AllowTrailingComm... | using System;
using System.Data;
using System.Text.Json;
using Dapper;
namespace Dommel.Json
{
internal class JsonObjectTypeHandler : SqlMapper.ITypeHandler
{
private static readonly JsonSerializerOptions JsonOptions = new JsonSerializerOptions
{
AllowTrailingCommas = true,
... | mit | C# |
4953127a43468bb2542297b6339c36ef6973c472 | Fix namespace. | PaulTrampert/PTrampert.Webpack.CacheBuster | PTrampert.Webpack.CacheBuster/ServiceCollectionExtensions.cs | PTrampert.Webpack.CacheBuster/ServiceCollectionExtensions.cs | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AspNetCore.Mvc.Infrastructure;
using Microsoft.Extensions.DependencyInjection.Extensions;
using PTrampert.Webpack.CacheBuster;
namespace Microsoft.Extensions.DependencyInjection
{
public static class ServiceCollectionExtensions
... | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AspNetCore.Mvc.Infrastructure;
using PTrampert.Webpack.CacheBuster;
namespace Microsoft.Extensions.DependencyInjection.Extensions
{
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddC... | mit | C# |
b946e66f0310841ab8aad824d1c4d1cf2005f695 | fix MenuItemExtensions [Wait]ChildByCondition | signumsoftware/framework,MehdyKarimpour/extensions,MehdyKarimpour/extensions,signumsoftware/extensions,signumsoftware/framework,AlejandroCano/extensions,signumsoftware/extensions,AlejandroCano/extensions | Signum.Windows.Extensions.UIAutomation/MenuItemExtensions.cs | Signum.Windows.Extensions.UIAutomation/MenuItemExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Automation;
using Signum.Utilities;
namespace Signum.Windows.UIAutomation
{
public static class MenuItemExtensions
{
public static AutomationElement MenuItemOpenWindow(this AutomationE... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Automation;
using Signum.Utilities;
namespace Signum.Windows.UIAutomation
{
public static class MenuItemExtensions
{
public static AutomationElement MenuItemOpenWindow(this AutomationE... | mit | C# |
a44445cbceb6b70605ac7b8e53c3dd3668a0f576 | Add Set method to SwitchMultiLevel | MiTheFreeman/ZWave4Net,roblans/ZWave4Net | ZWave/CommandClasses/SwitchMultiLevel.cs | ZWave/CommandClasses/SwitchMultiLevel.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using ZWave.Channel;
namespace ZWave.CommandClasses
{
public class SwitchMultiLevel : CommandClassBase
{
enum command : byte
{
Set = 0x01,
Get = 0x02,
Report = 0... | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using ZWave.Channel;
namespace ZWave.CommandClasses
{
public class SwitchMultiLevel : CommandClassBase
{
enum command : byte
{
//SupportedGet = 0x01,
//SupportedReport = 0x0... | mit | C# |
11d65208d1ca471b882562d6ec1e1f2289428b23 | Revert "Remove unnecessary lines" | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/Behaviors/CheckMarkVisibilityBehavior.cs | WalletWasabi.Fluent/Behaviors/CheckMarkVisibilityBehavior.cs | using Avalonia;
using Avalonia.Controls;
using ReactiveUI;
using System;
using System.Reactive.Linq;
namespace WalletWasabi.Fluent.Behaviors
{
public class CheckMarkVisibilityBehavior : AttachedToVisualTreeBehavior<PathIcon>
{
public static readonly StyledProperty<bool> HasErrorsProperty =
AvaloniaProperty.Regi... | using Avalonia;
using Avalonia.Controls;
using ReactiveUI;
using System;
using System.Reactive.Linq;
namespace WalletWasabi.Fluent.Behaviors
{
public class CheckMarkVisibilityBehavior : AttachedToVisualTreeBehavior<PathIcon>
{
public static readonly StyledProperty<bool> HasErrorsProperty =
AvaloniaProperty.Regi... | mit | C# |
f2390728c29c2f683c00f706dc88e01e6d5f4c2f | Save period configuration | vlastikcz/wallpaper-monster,vlastikcz/wallpaper-monster | WallpaperChangerApplication/WallpaperChangerConfiguration.cs | WallpaperChangerApplication/WallpaperChangerConfiguration.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WallpaperMonsterApplication
{
class WallpaperChangerConfiguration
{
public Double findPeriod() {
return Convert.ToDouble(findPeriodDecimal());
}
pu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WallpaperMonsterApplication
{
class WallpaperChangerConfiguration
{
public Double findPeriod() {
return Convert.ToDouble(findPeriodDecimal());
}
pu... | mit | C# |
f1cf53d7a561744cadc8b79e7c32a8445c1f0e2d | Use TLS1.2 for GitHub | projectkudu/TryAppService,projectkudu/SimpleWAWS,projectkudu/TryAppService,projectkudu/SimpleWAWS,projectkudu/SimpleWAWS,projectkudu/SimpleWAWS,projectkudu/TryAppService,projectkudu/TryAppService | SimpleWAWS/Authentication/AuthUtilities.cs | SimpleWAWS/Authentication/AuthUtilities.cs | using System;
using System.IO;
using System.Net;
namespace SimpleWAWS.Authentication
{
public static class AuthUtilities
{
public static string GetContentFromUrl(string url)
{
//specify to use TLS 1.2 as default connection
System.Net.ServicePointManager.SecurityProtocol... | using System;
using System.IO;
using System.Net;
namespace SimpleWAWS.Authentication
{
public static class AuthUtilities
{
public static string GetContentFromUrl(string url)
{
var request = (HttpWebRequest)WebRequest.Create(url);
using (var response = request.GetRespons... | apache-2.0 | C# |
2110ba1eb03de14a6fa2218856c23bb03b8cd163 | remove duplicate | molinch/FFImageLoading,luberda-molinet/FFImageLoading | source/FFImageLoading.Common/Helpers/PreserveAttribute.cs | source/FFImageLoading.Common/Helpers/PreserveAttribute.cs | using System;
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("FFImageLoading.Transformations"), InternalsVisibleTo("FFImageLoading.Svg.Forms")]
namespace FFImageLoading
{
sealed class PreserveAttribute : System.Attribute
{
public bool AllMembers;
public bool Conditional;
}
}
| using System;
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("FFImageLoading.Transformations"),
InternalsVisibleTo("FFImageLoading.Svg.Forms"),
InternalsVisibleTo("FFImageLoading.Transformations")
]
namespace FFImageLoading
{
sealed class PreserveAttribute : System.Attribute
{
... | mit | C# |
83bcdbb4df30f16da764a5da74fd31045c28100f | Fix a new test name generation. | rsdn/nitra,JetBrains/Nitra,rsdn/nitra,JetBrains/Nitra | Nitra.Visualizer/AddTest.xaml.cs | Nitra.Visualizer/AddTest.xaml.cs | using System;
using System.IO;
using System.Linq;
using System.Windows;
using Nitra.Visualizer.Properties;
namespace Nitra.Visualizer
{
/// <summary>
/// Interaction logic for Test.xaml
/// </summary>
public partial class AddTest
{
readonly string _testSuitPath;
readonly string _code;
... | using System;
using System.IO;
using System.Linq;
using System.Windows;
using Nitra.Visualizer.Properties;
namespace Nitra.Visualizer
{
/// <summary>
/// Interaction logic for Test.xaml
/// </summary>
public partial class AddTest
{
readonly string _testSuitPath;
readonly string _code;
... | apache-2.0 | C# |
dc097700e5fed60850e4bfe641f7ae2d87bd9fd0 | add cache for optional conversations. (C# to F#) | Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek,Soluto/tweek | Tweek.JPad.Utils/JPadRulesParserAdapter.cs | Tweek.JPad.Utils/JPadRulesParserAdapter.cs | using Engine.Core.Context;
using Engine.Core.Rules;
using Engine.DataTypes;
using Tweek.JPad;
using System.Collections.Specialized;
using LanguageExt;
using System;
namespace Tweek.JPad.Utils
{
public class AnonymousRule : IRule
{
private readonly Func<GetContextValue, Option<ConfigurationValue>> fn;
... | using Engine.Core.Context;
using Engine.Core.Rules;
using Engine.DataTypes;
using Tweek.JPad;
using LanguageExt;
using System;
namespace Tweek.JPad.Utils
{
public class AnonymousRule : IRule
{
private readonly Func<GetContextValue, Option<ConfigurationValue>> fn;
public AnonymousRule(Func<Get... | mit | C# |
0c1f75f63d25ecfdcfff6492dba34892ff242203 | format OutputWindowHelper | jwldnr/VisualLinter | VisualLinter/Helpers/OutputWindowHelper.cs | VisualLinter/Helpers/OutputWindowHelper.cs | using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
using System;
namespace jwldnr.VisualLinter.Helpers
{
internal static class OutputWindowHelper
{
private static IVsOutputWindowPane OutputWindowPane =>
_outputWindowPane ?? (_outputWindowPane = GetOutputWindowP... | using System;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
namespace jwldnr.VisualLinter.Helpers
{
internal static class OutputWindowHelper
{
private static IVsOutputWindowPane _outputWindowPane;
private static IVsOutputWindowPane OutputWindowPane =>
... | mit | C# |
b51b017005e73e4b5694547631204b74eb8d4d4b | Fix plugin script generator causing JS syntax error | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck | Plugins/PluginScriptGenerator.cs | Plugins/PluginScriptGenerator.cs | using System.Text;
namespace TweetDck.Plugins{
static class PluginScriptGenerator{
public static string GenerateConfig(PluginConfig config){
return config.AnyDisabled ? "window.TD_PLUGINS.disabled = [\""+string.Join("\",\"",config.DisabledPlugins)+"\"];" : string.Empty;
}
publ... | using System.Text;
namespace TweetDck.Plugins{
static class PluginScriptGenerator{
public static string GenerateConfig(PluginConfig config){
return config.AnyDisabled ? "window.TD_PLUGINS.disabled = [\""+string.Join("\",\"",config.DisabledPlugins)+"\"];" : string.Empty;
}
publ... | mit | C# |
37bcf85b7242c5fc2a19d5378eb8dd783786b345 | Add empty to null check | FreecraftCore/FreecraftCore.Payload.Serializer,FreecraftCore/FreecraftCore.Serializer,FreecraftCore/FreecraftCore.Serializer | tests/FreecraftCore.Serializer.Tests/Tests/StringTests.cs | tests/FreecraftCore.Serializer.Tests/Tests/StringTests.cs | using FreecraftCore.Serializer.KnownTypes;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreecraftCore.Serializer.Tests
{
[TestFixture]
public class StringTests
{
[Test]
public static void Test_String_Seriali... | using FreecraftCore.Serializer.KnownTypes;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FreecraftCore.Serializer.Tests
{
[TestFixture]
public class StringTests
{
[Test]
public static void Test_String_Seriali... | agpl-3.0 | C# |
aedb18b9f21e0e98af5f3720369314658565a2aa | Make RulesetID non-nullable | ppy/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,peppy/osu-new,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoomSettings.cs | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoomSettings.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.
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using osu.Game.Online.API;
namespace osu.Game.Online.Re... | // 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.
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using osu.Game.Online.API;
namespace osu.Game.Online.Re... | mit | C# |
82c7018e0e2f6863e50b3a5a3cdd4a7ca6a0387a | Update Patent.cs | whitneyhaddow/cat-patents-v2 | Haddow_Whitney_Lab2_CP3/Haddow_Whitney_Lab2_CP3/Haddow_Whitney_Lab2_CP3/Patent.cs | Haddow_Whitney_Lab2_CP3/Haddow_Whitney_Lab2_CP3/Haddow_Whitney_Lab2_CP3/Patent.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Haddow_Whitney_Lab2_CP3
{
public class Patent
{
public Patent() { }
public Patent(int number, string appNumber, string description, DateTime filingDate, string invent... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Haddow_Whitney_Lab2_CP3
{
public class Patent
{
public Patent() { } //default constructor
public Patent(int number, string appNumber, string description, DateTime fili... | mit | C# |
3088e558474e80ca7ee0e51a9dfdbe44cbb84abf | Update _ZenDeskWidget.cshtml | SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice | src/SFA.DAS.ProviderApprenticeshipsService.Web/Views/Shared/_ZenDeskWidget.cshtml | src/SFA.DAS.ProviderApprenticeshipsService.Web/Views/Shared/_ZenDeskWidget.cshtml | @using SFA.DAS.ProviderApprenticeshipsService.Web.Extensions
@{
var label = !string.IsNullOrEmpty(ViewBag.ZenDeskLabel) ? ViewBag.ZenDeskLabel : ViewBag.PageId;
}
<script type="text/javascript">
window.zESettings = {
webWidget: {
contactForm: {
attachments: false
... | @using SFA.DAS.ProviderApprenticeshipsService.Web.Extensions
@{
var label = !string.IsNullOrEmpty(ViewBag.ZenDeskLabel) ? ViewBag.ZenDeskLabel : ViewBag.Title;
}
<script type="text/javascript">
window.zESettings = {
webWidget: {
contactForm: {
attachments: false
... | mit | C# |
7ddb5346e8632660698a0d0df3e508157554f325 | Resolve binding exception on netfx. | jherby2k/AudioWorks | AudioWorks/AudioWorks.Extensions/ExtensionContainerBase.cs | AudioWorks/AudioWorks.Extensions/ExtensionContainerBase.cs | using System;
using System.Composition.Hosting;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Loader;
namespace AudioWorks.Extensions
{
abstract class ExtensionContainerBase
{
static readonly DirectoryInfo _extensionRoot = new D... | using System;
using System.Composition.Hosting;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Loader;
namespace AudioWorks.Extensions
{
abstract class ExtensionContainerBase
{
static readonly DirectoryInfo _extensionRoot = new DirectoryInfo(Path.Combine(
... | agpl-3.0 | C# |
19ee344a75644b8e84fdd8269436de9d475caf2a | check to avoid tricky redirects | appharbor/AppHarbor.Web.Security | AuthenticationExample.Web/Controllers/SessionController.cs | AuthenticationExample.Web/Controllers/SessionController.cs | using System;
using System.Linq;
using System.Web.Mvc;
using AppHarbor.Web.Security;
using AuthenticationExample.Web.Model;
using AuthenticationExample.Web.PersistenceSupport;
using AuthenticationExample.Web.ViewModels;
namespace AuthenticationExample.Web.Controllers
{
public class SessionController : Controller
{
... | using System.Linq;
using System.Web.Mvc;
using AppHarbor.Web.Security;
using AuthenticationExample.Web.Model;
using AuthenticationExample.Web.PersistenceSupport;
using AuthenticationExample.Web.ViewModels;
namespace AuthenticationExample.Web.Controllers
{
public class SessionController : Controller
{
private read... | mit | C# |
bc6f672f73f6a3b3923b037820fc646a1189cc2e | Add link to Markdown help | leotsarev/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net | Joinrpg/Views/Shared/EditorTemplates/MarkdownString.cshtml | Joinrpg/Views/Shared/EditorTemplates/MarkdownString.cshtml | @model JoinRpg.DataModel.MarkdownString
@{
var requiredMsg = new MvcHtmlString("");
var validation = false;
foreach (var attr in @Html.GetUnobtrusiveValidationAttributes(@ViewData.TemplateInfo.HtmlFieldPrefix, @ViewData.ModelMetadata))
{
if (attr.Key == "data-val-required")
{
requiredMs... | @model JoinRpg.DataModel.MarkdownString
@{
var requiredMsg = new MvcHtmlString("");
var validation = false;
foreach (var attr in @Html.GetUnobtrusiveValidationAttributes(@ViewData.TemplateInfo.HtmlFieldPrefix, @ViewData.ModelMetadata))
{
if (attr.Key == "data-val-required")
{
requiredMs... | mit | C# |
e04340538637eb0332ae80517cbc7055687fd5aa | Fix GTK color | treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk | NET/Apps/TreehopperApp/TreehopperApp/ConnectedPage.xaml.cs | NET/Apps/TreehopperApp/TreehopperApp/ConnectedPage.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Treehopper;
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration;
using Xamarin.Forms.PlatformConfiguration.AndroidSpecific;
using Xamarin.Forms.Xaml;
namespace TreehopperApp
{
[Xaml... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Treehopper;
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration;
using Xamarin.Forms.PlatformConfiguration.AndroidSpecific;
using Xamarin.Forms.Xaml;
namespace TreehopperApp
{
[Xaml... | mit | C# |
1757fae0041d67d5f175ea8da19112bef0f093a3 | Test fixed | dfensgmbh/biz.dfch.CS.Abiquo.Client | src/biz.dfch.CS.Abiquo.Client.Tests/AbiquoClientFactoryTest.cs | src/biz.dfch.CS.Abiquo.Client.Tests/AbiquoClientFactoryTest.cs | /**
* Copyright 2016 d-fens GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | /**
* Copyright 2016 d-fens GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | apache-2.0 | C# |
3274fa439d4240328e0c4db02feaa5e90f2086dc | Format +1 | alvivar/Hasten | Patterns/StateMachine.cs | Patterns/StateMachine.cs | using System;
using System.Collections.Generic;
public class StateMachine<TLabel>
{
private class State
{
public readonly TLabel label;
public readonly Action onStart;
public readonly Action onStop;
public readonly Action onUpdate;
public State(TLabel label, Action onSt... | using System;
using System.Collections.Generic;
public class StateMachine<TLabel>
{
private class State
{
public readonly TLabel label;
public readonly Action onStart;
public readonly Action onStop;
public readonly Action onUpdate;
public State(TLabel label, Action onSt... | mit | C# |
0cdd970f3d3a89f1833dcac477c72a53570d72b2 | add JsonConstructor to ContentEncodedMessage | technicalpoets/producer,technicalpoets/producer | Producer/Producer.Domain/Messages/ContentEncodedMessage.cs | Producer/Producer.Domain/Messages/ContentEncodedMessage.cs | using System;
namespace Producer.Domain
{
public class ContentEncodedMessage : DocumentUpdatedMessage
{
public string RemoteAssetUri { get; private set; }
public ContentEncodedMessage (string documentId, string collectionId)
: base (documentId, collectionId, UserRoles.Producer)
{ }
[Newtonsoft.Json.Jso... | using System;
namespace Producer.Domain
{
public class ContentEncodedMessage : DocumentUpdatedMessage
{
public string RemoteAssetUri { get; private set; }
public ContentEncodedMessage (string documentId, string collectionId)
: base (documentId, collectionId, UserRoles.Producer)
{ }
public void SetRemot... | mit | C# |
93b3d5bc88a161913d36ee5e576b7ef7e080fbac | Fix a typo in comment | Azure/usql | Examples/TweetAnalysis/TweetAnalysisClass/TweetAnalysis.cs | Examples/TweetAnalysis/TweetAnalysisClass/TweetAnalysis.cs | using Microsoft.Analytics.Interfaces;
using Microsoft.Analytics.Types.Sql;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Linq;
// TweetAnalysis Assembly
// Show the use of a U-SQL user-defined function (UDF)
//
// Register this assembly at master.TweetAnalysis either... | using Microsoft.Analytics.Interfaces;
using Microsoft.Analytics.Types.Sql;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Linq;
// TweetAnalysis Assembly
// Show the use of a U-SQL user-defined function (UDF)
//
// Register this assembly at master.TweetAnalysis e`ithe... | mit | C# |
cc8c86e192accc8c8e6cd0ce7e647a941598d4bb | Set version 1.1.0.0 | OELib/ObjectEntanglementLibrary | ObjectEntanglementLibrary/OELib/Properties/AssemblyInfo.cs | ObjectEntanglementLibrary/OELib/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("OE... | 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("OE... | mit | C# |
b1044cb43fedd162374445ca27546ad8013d051b | Update Comment | nuitsjp/PrimerOfPrismForms | 03.NavigationService/NavigationSample/NavigationSample/NotifyNavigationBehavior.cs | 03.NavigationService/NavigationSample/NavigationSample/NotifyNavigationBehavior.cs | using System;
using System.Reflection;
using System.Windows.Input;
using Xamarin.Forms;
namespace NavigationSample
{
public class NotifyNavigationBehavior : BindableBehavior<Page>
{
/// <summary>
/// アタッチ時に、対象のイベントの購読設定を行う
/// </summary>
/// <param name="bindable"></param>
... | using System;
using System.Reflection;
using System.Windows.Input;
using Xamarin.Forms;
namespace NavigationSample
{
/// <summary>
/// アタッチしているオブジェクトで特定のイベントを購読し、イベント発行時にバインドされたコマンドを実行するビヘイビア
/// </summary>
public class NotifyNavigationBehavior : BindableBehavior<Page>
{
/// <summary>
... | mit | C# |
7034137c2739f6130156b77ddb183fd91825ed6b | Remove finished TODO from PlayerFreezeCommand | HelloKitty/Booma.Proxy | src/Booma.Proxy.Packets.BlockServer/Commands/Command60/Sub60PlayerFreezeCommand.cs | src/Booma.Proxy.Packets.BlockServer/Commands/Command60/Sub60PlayerFreezeCommand.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
/// <summary>
/// Command sent by players to the server when the character is entering an operation
/// that requires it to freeze or has a sta... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
/// <summary>
/// Command sent by players to the server when the character is entering an operation
/// that requires it to freeze or has a sta... | agpl-3.0 | C# |
0f744447d0e98c885091d2c5f59f041c565964ab | Remove unused using statements in construction comp | 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/Construction/Components/ConstructionComponent.cs | Content.Server/Construction/Components/ConstructionComponent.cs | using System.Collections.Generic;
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Construction.Components
{
[RegisterComponent, Friend(typeof(ConstructionSystem))]
public class Cons... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Content.Server.DoAfter;
using Content.Server.Stack;
using Content.Server.Tools;
using Content.Server.Tools.Components;
using Content.Shared.Construction;
using Content.Shared.Construction.Prototypes;
... | mit | C# |
d4bb09ece67ec0d6bae3199beca03ffb16aa4721 | Fix mismatching return value | SergeyTeplyakov/CodeContracts,hubuk/CodeContracts,SergeyTeplyakov/CodeContracts,Microsoft/CodeContracts,ndykman/CodeContracts,ndykman/CodeContracts,huoxudong125/CodeContracts,huoxudong125/CodeContracts,huoxudong125/CodeContracts,hubuk/CodeContracts,huoxudong125/CodeContracts,ndykman/CodeContracts,SergeyTeplyakov/CodeCo... | Microsoft.Research/Contracts/MsCorlib/System.OperatingSystem.cs | Microsoft.Research/Contracts/MsCorlib/System.OperatingSystem.cs | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// 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 wit... | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// 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 wit... | mit | C# |
1535aab50608c6b0ecb22da2f5ce7bd3e37b746c | fix path to guiskin | Unity-Technologies/CodeEditor,Unity-Technologies/CodeEditor | src/CodeEditor.Text.UI.Unity.Editor/Implementation/TextViewAppearanceProvider.cs | src/CodeEditor.Text.UI.Unity.Editor/Implementation/TextViewAppearanceProvider.cs | using CodeEditor.Composition;
using CodeEditor.Text.UI.Unity.Engine;
using UnityEngine;
namespace CodeEditor.Text.UI.Unity.Editor.Implementation
{
[Export(typeof(ITextViewAppearanceProvider))]
class TextViewAppearanceProvider : ITextViewAppearanceProvider
{
public ITextViewAppearance AppearanceFor(ITextViewDocum... | using CodeEditor.Composition;
using CodeEditor.Text.UI.Unity.Engine;
using UnityEngine;
namespace CodeEditor.Text.UI.Unity.Editor.Implementation
{
[Export(typeof(ITextViewAppearanceProvider))]
class TextViewAppearanceProvider : ITextViewAppearanceProvider
{
public ITextViewAppearance AppearanceFor(ITextViewDocum... | mit | C# |
50729f1bab989d176019033d88853f53c8a46cde | Switch to OrdinalIgnoreCase comparison for PackageReference deduplication | nkolev92/sdk,nkolev92/sdk | src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs | src/Tasks/Microsoft.NET.Build.Tasks/CheckForImplicitPackageReferenceOverrides.cs | using Microsoft.Build.Framework;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace Microsoft.NET.Build.Tasks
{
public class CheckForImplicitPackageReferenceOverrides : TaskBase
{
const string MetadataKeyForItemsToRemove = "IsImp... | using Microsoft.Build.Framework;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace Microsoft.NET.Build.Tasks
{
public class CheckForImplicitPackageReferenceOverrides : TaskBase
{
const string MetadataKeyForItemsToRemove = "IsImp... | mit | C# |
3338024c17b6febbf5aa47acc41b021e1f25c83c | Fix incorrect whitespace | UselessToucan/osu,DrabWeb/osu,johnneijzen/osu,EVAST9919/osu,naoey/osu,NeoAdonis/osu,ppy/osu,DrabWeb/osu,Frontear/osuKyzer,NeoAdonis/osu,EVAST9919/osu,smoogipoo/osu,smoogipoo/osu,Nabile-Rahmani/osu,johnneijzen/osu,ppy/osu,naoey/osu,ZLima12/osu,smoogipooo/osu,2yangk23/osu,peppy/osu,Drezi126/osu,peppy/osu,ppy/osu,2yangk23... | osu.Game.Rulesets.Catch/Tests/TestCaseCatchPlayer.cs | osu.Game.Rulesets.Catch/Tests/TestCaseCatchPlayer.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 NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Catch.Objects;
namespace osu.Game.Rulesets.Catch.Tests
{
[TestFixture]
public... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Catch.Objects;
namespace osu.Game.Rulesets.Catch.Tests
{
[TestFixture]
public... | mit | C# |
ea2896a7c2a1767a030404bf8078dedab7a92341 | Remove extra tab in the script template. | Damnae/storybrew | editor/Resources/scripttemplate.csx | editor/Resources/scripttemplate.csx | using OpenTK;
using OpenTK.Graphics;
using StorybrewCommon.Mapset;
using StorybrewCommon.Scripting;
using StorybrewCommon.Storyboarding;
using StorybrewCommon.Storyboarding.Util;
using StorybrewCommon.Subtitles;
using StorybrewCommon.Util;
using System;
using System.Collections.Generic;
using System.Linq;
namespace S... | using OpenTK;
using OpenTK.Graphics;
using StorybrewCommon.Mapset;
using StorybrewCommon.Scripting;
using StorybrewCommon.Storyboarding;
using StorybrewCommon.Storyboarding.Util;
using StorybrewCommon.Subtitles;
using StorybrewCommon.Util;
using System;
using System.Collections.Generic;
using System.Linq;
namespace S... | mit | C# |
d3919b1596a3953e8ed2b52146a75d5a9b62ee43 | Fix line sampling (again) | jomar/NGraphics,praeclarum/NGraphics | NGraphics/Line.cs | NGraphics/Line.cs | using System;
using System.Globalization;
namespace NGraphics
{
public class Line : Element
{
protected Point start;
protected Point end;
public Line (Point start, Point end, Pen pen)
: base (pen, null)
{
this.start = start;
this.end = end;
}
protected override void DrawElement (ICanvas canva... | using System;
using System.Globalization;
namespace NGraphics
{
public class Line : Element
{
protected Point start;
protected Point end;
public Line (Point start, Point end, Pen pen)
: base (pen, null)
{
this.start = start;
this.end = end;
}
protected override void DrawElement (ICanvas canva... | mit | C# |
c3ad69bf9f25fde71300e5609381703de75b149c | Make Paid optional | stripe/stripe-dotnet,richardlawley/stripe.net | src/Stripe.net/Services/Invoices/StripeInvoiceListOptions.cs | src/Stripe.net/Services/Invoices/StripeInvoiceListOptions.cs | using Newtonsoft.Json;
namespace Stripe
{
public class StripeInvoiceListOptions : StripeListOptions
{
/// <summary>
/// The billing mode of the invoice to retrieve. One of <see cref="StripeBilling" />.
/// </summary>
[JsonProperty("billing")]
public StripeBilling? Bill... | using Newtonsoft.Json;
namespace Stripe
{
public class StripeInvoiceListOptions : StripeListOptions
{
/// <summary>
/// The billing mode of the invoice to retrieve. One of <see cref="StripeBilling" />.
/// </summary>
[JsonProperty("billing")]
public StripeBilling? Bill... | apache-2.0 | C# |
074a1741392476b62ccdfc8bec91fff09d0dabb9 | Update src/Umbraco.Web.Common/Extensions/LinkGeneratorExtensions.cs | dawoe/Umbraco-CMS,robertjf/Umbraco-CMS,robertjf/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,marcemarc/Umbraco-CMS,marcemarc/Umbraco-CMS,abryukhov/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,robertjf/Umbraco-CMS,arknu/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbrac... | src/Umbraco.Web.Common/Extensions/LinkGeneratorExtensions.cs | src/Umbraco.Web.Common/Extensions/LinkGeneratorExtensions.cs | using System;
using Umbraco.Core;
using Microsoft.AspNetCore.Routing;
using System.Reflection;
using Umbraco.Web.Common.Install;
namespace Umbraco.Extensions
{
public static class LinkGeneratorExtensions
{
/// <summary>
/// Return the back office url if the back office is installed
///... | using System;
using Umbraco.Core;
using Microsoft.AspNetCore.Routing;
using System.Reflection;
using Umbraco.Web.Common.Install;
namespace Umbraco.Extensions
{
public static class LinkGeneratorExtensions
{
/// <summary>
/// Return the back office url if the back office is installed
///... | mit | C# |
849d16f485b67929d05ce528d330b6b59f4b89c1 | Fix closing tag on iframe | praeclarum/Ooui,praeclarum/Ooui,praeclarum/Ooui | Ooui/Iframe.cs | Ooui/Iframe.cs | namespace Ooui
{
public class Iframe : Element
{
public string Source
{
get => GetStringAttribute ("src", null);
set => SetAttributeProperty ("src", value);
}
public Iframe ()
: base ("iframe")
{
}
protected override ... | namespace Ooui
{
public class Iframe : Element
{
public string Source
{
get => GetStringAttribute ("src", null);
set => SetAttributeProperty ("src", value);
}
public Iframe ()
: base ("iframe")
{
}
}
}
| mit | C# |
4b760a978cef517e2f98295c6ba0407c33f040cf | fix SQ issue | steven-r/Oberon0Compiler | oberon0/Expressions/Operations/Internal/ArithmeticOpKey.cs | oberon0/Expressions/Operations/Internal/ArithmeticOpKey.cs | #region copyright
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ArithmeticOpKey.cs" company="Stephen Reindl">
// Copyright (c) Stephen Reindl. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the... | using System;
using Oberon0.Compiler.Types;
namespace Oberon0.Compiler.Expressions.Operations.Internal
{
/// <summary>
/// Helper class to create a dictionary of operations and it's left and right parameters
/// </summary>
internal class ArithmeticOpKey: IArithmeticOpMetadata, IEquatable<ArithmeticOpK... | mit | C# |
0d2ab550dd8c1285d94ae8991e040f06ea9a970a | Update SR values in tests | smoogipoo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,ppy/osu,smoogipooo/osu,peppy/osu-new,peppy/osu,peppy/osu | osu.Game.Rulesets.Osu.Tests/OsuDifficultyCalculatorTest.cs | osu.Game.Rulesets.Osu.Tests/OsuDifficultyCalculatorTest.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 NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Osu.Difficulty;
using osu.Game.Rulesets.Osu.Mods;
using osu.Ga... | // 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 NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Osu.Difficulty;
using osu.Game.Rulesets.Osu.Mods;
using osu.Ga... | mit | C# |
9b0d1435bd72b641c3ad7b38917b47b93abcc281 | Update AdamPedley.cs | beraybentesen/planetxamarin,MabroukENG/planetxamarin,planetxamarin/planetxamarin,stvansolano/planetxamarin,stvansolano/planetxamarin,beraybentesen/planetxamarin,stvansolano/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin,beraybentesen/planetxamarin,planetxamarin/planetxama... | src/Firehose.Web/Authors/AdamPedley.cs | src/Firehose.Web/Authors/AdamPedley.cs | using Firehose.Web.Infrastructure;
using System;
using System.Collections.Generic;
namespace Firehose.Web.Authors
{
public class AdamPedley : IAmAMicrosoftMVP
{
public string FirstName => "Adam";
public string LastName => "Pedley";
public string StateOrRegion => "Melbourne, Australia... | using Firehose.Web.Infrastructure;
using System;
using System.Collections.Generic;
namespace Firehose.Web.Authors
{
public class AdamPedley : IAmAMicrosoftMVP
{
public string FirstName => "Adam";
public string LastName => "Pedley";
public string StateOrRegion => "Melbourne, Australia... | mit | C# |
195a0e50f58c478dfd9327138e1cf5de19071cce | Update src/Bootstrap/Views/Shared/_validationSummary.cshtml | mohamedabdlaal/twitter.bootstrap.mvc,erichexter/twitter.bootstrap.mvc,mohamedabdlaal/twitter.bootstrap.mvc,erichexter/twitter.bootstrap.mvc | src/Bootstrap/Views/Shared/_validationSummary.cshtml | src/Bootstrap/Views/Shared/_validationSummary.cshtml | @if (ViewData.ModelState.Any(x => x.Value.Errors.Any()))
{
<div class="alert alert-error">
<a class="close" data-dismiss="alert">�</a>
@Html.ValidationSummary(true)
</div>
}
| @if (ViewData.ModelState[""] != null && ViewData.ModelState[""].Errors.Any())
{
<div class="alert alert-error">
<a class="close" data-dismiss="alert"></a>
@Html.ValidationSummary(true)
</div>
} | apache-2.0 | C# |
d23e73b4ea123987c5bdf7d723f23515e0fb7265 | Update PointShapeExtensions.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/ViewModels/Shapes/PointShapeExtensions.cs | src/Core2D/ViewModels/Shapes/PointShapeExtensions.cs | #nullable enable
using static System.Math;
namespace Core2D.ViewModels.Shapes
{
public static class PointShapeExtensions
{
public static double DistanceTo(this PointShapeViewModel point, PointShapeViewModel other)
{
var dx = point.X - other.X;
var dy = point.Y - other.Y... | #nullable enable
using static System.Math;
namespace Core2D.ViewModels.Shapes
{
public static class PointShapeExtensions
{
public static double DistanceTo(this PointShapeViewModel point, PointShapeViewModel other)
{
var dx = point.X - other.X;
var dy = point.Y - other.Y... | mit | C# |
3acf8650850e53c8b8a8ce36941a64330b565050 | Fix path for xammac apple-doc-wizard | PlayScriptRedux/monomac,dlech/monomac | samples/macdoc/Product.cs | samples/macdoc/Product.cs | using System;
using System.Linq;
using System.Collections.Generic;
using Monodoc;
namespace macdoc
{
public enum Product
{
MonoTouch,
MonoMac
}
public static class ProductUtils
{
public static string GetFriendlyName (Product product)
{
switch (product) {
case Product.MonoTouch:
return "Xamarin.... | using System;
using System.Linq;
using System.Collections.Generic;
using Monodoc;
namespace macdoc
{
public enum Product
{
MonoTouch,
MonoMac
}
public static class ProductUtils
{
public static string GetFriendlyName (Product product)
{
switch (product) {
case Product.MonoTouch:
return "Xamarin.... | apache-2.0 | C# |
a34ae13aa447e132dab3de8d0cab4fada4075e00 | Fix 'Course' path in Startup | riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy | src/DotvvmAcademy.Web/Startup.cs | src/DotvvmAcademy.Web/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Logging;
namespace DotvvmAcademy.Web
{
public class Startup
{
public void Configure(IApplicationBuilder app, IHos... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Logging;
namespace DotvvmAcademy.Web
{
public class Startup
{
public void Configure(IApplicationBuilder app, IHos... | apache-2.0 | C# |
83dddb0dda1726e56675b12e8152f931e34f36f0 | fix StateContainer test | appccelerate/statemachine | source/Appccelerate.StateMachine/Machine/StateContainer.cs | source/Appccelerate.StateMachine/Machine/StateContainer.cs | namespace Appccelerate.StateMachine.Machine
{
using System;
using System.Collections.Generic;
using Infrastructure;
using States;
public class StateContainer<TState, TEvent> :
IExtensionHost<TState, TEvent>,
IStateMachineInformation<TState, TEvent>,
ILastActiveSta... | namespace Appccelerate.StateMachine.Machine
{
using System;
using System.Collections.Generic;
using Infrastructure;
using States;
public class StateContainer<TState, TEvent> :
IExtensionHost<TState, TEvent>,
IStateMachineInformation<TState, TEvent>,
ILastActiveSta... | apache-2.0 | C# |
cb98bdcfdf91d205738f04267c725d2f319f8513 | Update FrontEndCookieAuthenticationOptions.cs | Shazwazza/UmbracoIdentity,Shazwazza/UmbracoIdentity,Shazwazza/UmbracoIdentity | src/UmbracoIdentity/FrontEndCookieAuthenticationOptions.cs | src/UmbracoIdentity/FrontEndCookieAuthenticationOptions.cs | using Microsoft.AspNet.Identity;
using Microsoft.Owin.Security.Cookies;
using System;
using Umbraco.Core.Configuration;
using Umbraco.Core.Configuration.UmbracoSettings;
namespace UmbracoIdentity
{
/// <summary>
/// Cookie authentication options for Umbraco front-end authentication
/// </summary>
publi... | using Microsoft.AspNet.Identity;
using Microsoft.Owin.Security.Cookies;
using System;
using Umbraco.Core.Configuration;
using Umbraco.Core.Configuration.UmbracoSettings;
namespace UmbracoIdentity
{
/// <summary>
/// Cookie authentication options for Umbraco front-end authentication
/// </summary>
publi... | mit | C# |
523fa51d9598fe02f4034652a05b90067f2a1736 | Remove "broken" tag from CompareTo tests | Ruhrpottpatriot/SemanticVersion | test/SemanticVersionTest/SemanticVersion/CompareToTests.cs | test/SemanticVersionTest/SemanticVersion/CompareToTests.cs | namespace SemanticVersionTest
{
using SemVersion;
using Xunit;
public class CompareToTests
{
[Fact]
public void CompareToInvaildObject()
{
SemanticVersion version = new SemanticVersion(1,0,0);
Assert.Equal(1,version.CompareTo(new object()));
}
... | namespace SemanticVersionTest
{
using SemVersion;
using Xunit;
public class CompareToTests
{
[Fact]
public void CompareToInvaildObject()
{
SemanticVersion version = new SemanticVersion(1,0,0);
Assert.Equal(1,version.CompareTo(new object()));
}
... | mit | C# |
306cf771debe797987d4d6d8f59b763727fbbf48 | build 7.1.15.0 | agileharbor/channelAdvisorAccess | src/Global/GlobalAssemblyInfo.cs | src/Global/GlobalAssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[ assembly : ComVisible( false ) ]
[ assembly : AssemblyProduct( "ChannelAdvisorAccess" ) ]
[ assembly : AssemblyCompany( "Agile Harbor, LLC" ) ]
[ assembly : AssemblyCopyright( "Copyright (C) Agile Harbor, LLC" ) ]
[ assembly : Assem... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[ assembly : ComVisible( false ) ]
[ assembly : AssemblyProduct( "ChannelAdvisorAccess" ) ]
[ assembly : AssemblyCompany( "Agile Harbor, LLC" ) ]
[ assembly : AssemblyCopyright( "Copyright (C) Agile Harbor, LLC" ) ]
[ assembly : Assem... | bsd-3-clause | C# |
9a28a61b165cb0669b04219380ffb5fb63bb23ee | Update AmigoCloudRestSharpOauth2Authenticator.cs | amigocloud/amigocloud_samples,amigocloud/amigocloud_samples,amigocloud/amigocloud_samples,amigocloud/amigocloud_samples,amigocloud/amigocloud_samples | CSharp/AmigoCloudSample/AmigoCloudSample/AmigoCloudRestSharpOauth2Authenticator.cs | CSharp/AmigoCloudSample/AmigoCloudSample/AmigoCloudRestSharpOauth2Authenticator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AmigoCloudSample
{
public class AmigoCloudRestSharpOAuth2Authenticator : RestSharp.Authenticators.OAuth2Authenticator
{
public AmigoCloudRestSharpOAuth2Authenticator(string ac... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AmigoCloudSample
{
public class AmigoCloudRestSharpOAuth2Authenticator : RestSharp.Authenticators.OAuth2Authenticator
{
public AmigoCloudRestSharpOAuth2Authenticator(string ac... | mit | C# |
ba7b36c8bedad937b291aaf112e9cfea84f8e7dd | make sure to flush logs when job is done | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Jobs.Core/Logging/LogHelper.cs | Anlab.Jobs.Core/Logging/LogHelper.cs | using System;
using Microsoft.Extensions.Configuration;
using Serilog;
using StackifyLib;
namespace Anlab.Jobs.Core.Logging
{
public static class LogHelper {
public static LoggerConfiguration LogConfiguration;
public static bool _loggingSetup = false;
public static void ConfigureLogging(I... | using System;
using Microsoft.Extensions.Configuration;
using Serilog;
using StackifyLib;
namespace Anlab.Jobs.Core.Logging
{
public static class LogHelper {
public static LoggerConfiguration LogConfiguration;
public static bool _loggingSetup = false;
public static void ConfigureLogging(I... | mit | C# |
44924e40e4052eb9cdd5939f5ce4dd8aa9f5fa5b | Convert tabs to spaces because, you know, ... | Over17/UnityOBBDownloader,Over17/UnityOBBDownloader | Assets/Scripts/DownloadObbExample.cs | Assets/Scripts/DownloadObbExample.cs | using UnityEngine;
using System.Collections;
public class DownloadObbExample : MonoBehaviour
{
private IGooglePlayObbDownloader m_obbDownloader;
void Start()
{
m_obbDownloader = GooglePlayObbDownloadManager.GetGooglePlayObbDownloader();
m_obbDownloader.PublicKey = "YOUR PUBLIC KEY HERE";
... | using UnityEngine;
using System.Collections;
public class DownloadObbExample : MonoBehaviour
{
private IGooglePlayObbDownloader m_obbDownloader;
void Start()
{
m_obbDownloader = GooglePlayObbDownloadManager.GetGooglePlayObbDownloader();
m_obbDownloader.PublicKey = "YOUR PUBLIC KEY HERE";
... | apache-2.0 | C# |
57041f8c4468a8cdc8ff5dc1fc6e5340c591cd7f | add page for resource detail and partially implement it | anobleperson/allReady,MisterJames/allReady,HTBox/allReady,HamidMosalla/allReady,jonatwabash/allReady,HamidMosalla/allReady,gitChuckD/allReady,dpaquette/allReady,gitChuckD/allReady,gitChuckD/allReady,anobleperson/allReady,binaryjanitor/allReady,VishalMadhvani/allReady,binaryjanitor/allReady,BillWagner/allReady,bcbeatty/... | AllReadyApp/Web-App/AllReady/Areas/Admin/ViewModels/Resource/ResourceEditViewModel.cs | AllReadyApp/Web-App/AllReady/Areas/Admin/ViewModels/Resource/ResourceEditViewModel.cs | using System;
using System.ComponentModel.DataAnnotations;
namespace AllReady.Areas.Admin.ViewModels.Resource
{
public class ResourceEditViewModel
{
public int Id { get; set; }
public int CampaignId { get; set; }
public string CampaignName { get; set; }
[Display(Name = "Resour... | using System;
using System.ComponentModel.DataAnnotations;
namespace AllReady.Areas.Admin.ViewModels.Resource
{
public class ResourceEditViewModel
{
public int Id { get; set; }
public int CampaignId { get; set; }
[Display(Name = "Resource name")]
[Required]
public stri... | mit | C# |
5c02290245cdf8c840a20e60c1f0bcf135c8d7e1 | Bump version to 0.5.2 | quisquous/cactbot,sqt/cactbot,sqt/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,sqt/cactbot | CactbotOverlay/Properties/AssemblyInfo.cs | CactbotOverlay/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CactbotOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CactbotOverlay")]
[assembly: AssemblyC... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CactbotOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CactbotOverlay")]
[assembly: AssemblyC... | apache-2.0 | C# |
92300d011c48b4142c62f5b237812f04c18d31f9 | Make decal on despawn script use void. | fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation | UnityProject/Assets/Scripts/Weapons/Projectiles/Behaviours/ProjectileDecalOnDespawn.cs | UnityProject/Assets/Scripts/Weapons/Projectiles/Behaviours/ProjectileDecalOnDespawn.cs | using UnityEngine;
namespace Weapons.Projectiles.Behaviours
{
/// <summary>
/// Identical to ProjectileDecal.cs, but creates a decal upon despawning instead of on hitting something.
/// </summary>
public class ProjectileDecalOnDespawn : MonoBehaviour, IOnDespawn
{
[SerializeField] private GameObject decal = nu... | using UnityEngine;
namespace Weapons.Projectiles.Behaviours
{
/// <summary>
/// Identical to ProjectileDecal.cs, but creates a decal upon despawning instead of on hitting something.
/// </summary>
public class ProjectileDecalOnDespawn : MonoBehaviour, IOnDespawn
{
[SerializeField] private GameObject decal = nu... | agpl-3.0 | C# |
983c90af5262d9e027f6a26d79c718a4eabec2e7 | Fix harmony ambiguity | DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer | LmpClient/Harmony/ScenarioDiscoverableObjects_SpawnComet.cs | LmpClient/Harmony/ScenarioDiscoverableObjects_SpawnComet.cs | using Harmony;
using LmpClient.Systems.AsteroidComet;
using LmpClient.Systems.Lock;
using LmpClient.Systems.SettingsSys;
using LmpCommon.Enums;
// ReSharper disable All
namespace LmpClient.Harmony
{
/// <summary>
/// This harmony patch is intended to skip the spawn of a comet if we don't have the lock or the... | using Harmony;
using LmpClient.Systems.AsteroidComet;
using LmpClient.Systems.Lock;
using LmpClient.Systems.SettingsSys;
using LmpCommon.Enums;
// ReSharper disable All
namespace LmpClient.Harmony
{
/// <summary>
/// This harmony patch is intended to skip the spawn of a comet if we don't have the lock or the... | mit | C# |
f612700a1ad38bfe1be307408e25cd176c1b8701 | Format changes | castleproject/Castle.Facilities.Wcf-READONLY,castleproject/Castle.Facilities.Wcf-READONLY,castleproject/castle-READONLY-SVN-dump,castleproject/castle-READONLY-SVN-dump,castleproject/Castle.Transactions,castleproject/Castle.Transactions,castleproject/Castle.Transactions,castleproject/castle-READONLY-SVN-dump,codereflect... | ActiveRecord/Castle.ActiveRecord.Tests/NullablesTestCase.cs | ActiveRecord/Castle.ActiveRecord.Tests/NullablesTestCase.cs | // Copyright 2004-2006 Castle Project - http://www.castleproject.org/
//
// 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 2004-2006 Castle Project - http://www.castleproject.org/
//
// 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 ... | apache-2.0 | C# |
e0ec5525bd72d87eb592745ac48dad6b993c73a2 | Fix comparison logic | rvhuang/heuristic-suite | AlgorithmForce.Example.CoinsFlipping/PuzzleStateComparer.cs | AlgorithmForce.Example.CoinsFlipping/PuzzleStateComparer.cs | using System.Linq;
namespace AlgorithmForce.Example.CoinsFlipping
{
using HeuristicSuite;
class PuzzleStateComparer : HeuristicComparer<bool[]>
{
public PuzzleStateComparer()
: base(Estimation)
{
}
private static double Estimation(bool[] coins)
{
... | using System.Linq;
namespace AlgorithmForce.Example.CoinsFlipping
{
using HeuristicSuite;
class PuzzleStateComparer : HeuristicComparer<bool[]>
{
public PuzzleStateComparer()
: base(Estimation)
{
}
private static double Estimation(bool[] coins)
{
... | mit | C# |
968463912ab548808ff87bc58760b2b2bc7bb45e | Include CheckBoxList in ValueListPreValueMigrator | mattbrailsford/Umbraco-CMS,mattbrailsford/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,hfloyd/Umbraco-CMS,tcmorris/Umbraco-CMS,tcmorris/Umbraco-CMS,hfloyd/Umbraco-CMS,hfloyd/Umbraco-CMS,marcemarc/Umbraco-CMS,abryukhov/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,bjarnef/Umbraco-CMS,dawoe/Umbraco-CMS,abryukhov/Umbraco-CMS,Jim... | src/Umbraco.Core/Migrations/Upgrade/V_8_0_0/DataTypes/ValueListPreValueMigrator.cs | src/Umbraco.Core/Migrations/Upgrade/V_8_0_0/DataTypes/ValueListPreValueMigrator.cs | using System.Collections.Generic;
using System.Linq;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes
{
class ValueListPreValueMigrator : IPreValueMigrator
{
private readonly string[] _editors =
{
"Umbraco.RadioButtonList",
... | using System.Collections.Generic;
using System.Linq;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0.DataTypes
{
class ValueListPreValueMigrator : IPreValueMigrator
{
private readonly string[] _editors =
{
"Umbraco.RadioButtonList",
... | mit | C# |
bc3d2378f69eef44ccfd44111ea51faa10e84d7b | Fix uwp comiple. Sample scene passes. | DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MixedRealityToolkit.Examples/Demos/HandTracking/Script/OpenSystemKeyboard.cs | Assets/MixedRealityToolkit.Examples/Demos/HandTracking/Script/OpenSystemKeyboard.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.Experimental.UI;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Examples.Demos
{
public class OpenSystemKeyboa... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.MixedReality.Toolkit.Experimental.UI;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Examples.Demos
{
public class OpenSystemKeyboa... | mit | C# |
bd792bbed35e26c0bed80922753080da250bcefa | Improve tests | carbon/Amazon | src/Amazon.Ssm.Tests/CommandTests.cs | src/Amazon.Ssm.Tests/CommandTests.cs | using System;
using System.Text.Json;
using Xunit;
namespace Amazon.Ssm.Tests
{
public class CommandTests
{
[Fact]
public void ParseCommand()
{
var text = @"{ ""CommandId"":""id"",""Comment"":"""",""CompletedCount"":0,""DocumentName"":""update_app4"",""ErrorCoun... | using System;
using Carbon.Json;
using Xunit;
namespace Amazon.Ssm.Tests
{
public class CommandTests
{
[Fact]
public void ParseCommand()
{
var text = @"{ ""CommandId"":""id"",""Comment"":"""",""CompletedCount"":0,""DocumentName"":""update_app4"",""ErrorCount"":0... | mit | C# |
8f14afc3fb2d0bef209940d27123f42481137b03 | Fix search result when returning multiple results | sboulema/Hops,sboulema/Hops,sboulema/Hops | src/Hops/Views/Search/Results.cshtml | src/Hops/Views/Search/Results.cshtml | @using Hops.Models;
@model ListModel<HopModel>
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
ViewBag.Title = "Search results - Hops";
}
@if (!string.IsNullOrEmpty(Model.Pagination.SearchTerm))
{
<h3>Search results for "@Model.Pagination.SearchTerm":</h3>
}
@Html.Partial("~/Views/Hop/List.cshtml", M... | @using Hops.Models;
@model ListModel<HopModel>
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
ViewBag.Title = "Search results - Hops";
}
@if (!string.IsNullOrEmpty(Model.Pagination.SearchTerm))
{
<h3>Search results for "@Model.Pagination.SearchTerm":</h3>
}
@Html.Partial("~/Views/Hop/List", Model) | mit | C# |
28b53d8acf53a19faca7609e57fb1a46e981bd42 | Add some extensions to ScriptCommand I should get on writing some tests. | PhoenixBound/b2w2-scripts | gen5_parse_compile/ScriptCommand.cs | gen5_parse_compile/ScriptCommand.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace gen5_parse_compile
{
public class ScriptCommand
{
// ID of the command, like 0x0002 or 0x017A
ushort id;
// The name that matches with that ID
string na... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace gen5_parse_compile
{
public class ScriptCommand
{
ushort id;
string name;
public ushort ID
{
get
{
return id;
... | mit | C# |
459cea6a650489f4a917212240a8bbb5049276c2 | Update First Page. | nuitsjp/PrimerOfPrismForms | NavigationEventSequence/NavigationEventSequence/NavigationEventSequence/App.xaml.cs | NavigationEventSequence/NavigationEventSequence/NavigationEventSequence/App.xaml.cs | using Prism.Unity;
using NavigationEventSequence.Views;
using Xamarin.Forms;
namespace NavigationEventSequence
{
public partial class App : PrismApplication
{
public App(IPlatformInitializer initializer = null) : base(initializer) { }
protected override void OnInitialized()
{
... | using Prism.Unity;
using NavigationEventSequence.Views;
using Xamarin.Forms;
namespace NavigationEventSequence
{
public partial class App : PrismApplication
{
public App(IPlatformInitializer initializer = null) : base(initializer) { }
protected override void OnInitialized()
{
... | mit | C# |
c2ee8da283b2d3a6b500059d6a261ffcef0950e3 | Disable 35736 test for Android | Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla35736.cs | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla35736.cs | using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 35736, "[iOS] Editor does not update Text value from autocorrect when losing focu... | using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 35736, "[iOS] Editor does not update Text value from autocorrect when losing focu... | mit | C# |
02d5eed6dcc25e6894837c6c2dfcc3adb9e0ffdd | Update ExceptionlessTraceTelemeter.cs | tiksn/TIKSN-Framework | TIKSN.Core/Analytics/Telemetry/ExceptionlessTraceTelemeter.cs | TIKSN.Core/Analytics/Telemetry/ExceptionlessTraceTelemeter.cs | using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Exceptionless;
namespace TIKSN.Analytics.Telemetry
{
public class ExceptionlessTraceTelemeter : ExceptionlessTelemeterBase, ITraceTelemeter
{
public Task TrackTraceAsync(string message)
{
try
{
... | using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Exceptionless;
namespace TIKSN.Analytics.Telemetry
{
public class ExceptionlessTraceTelemeter : ExceptionlessTelemeterBase, ITraceTelemeter
{
public async Task TrackTrace(string message)
{
try
{
... | mit | C# |
22f8d3ac4af34584f14999e36adcad6270055a94 | Fix warnings. | JohanLarsson/Gu.Localization | Gu.Wpf.Localization/MarkupExtensions/CurrentCultureProxy.cs | Gu.Wpf.Localization/MarkupExtensions/CurrentCultureProxy.cs | namespace Gu.Wpf.Localization
{
using System.ComponentModel;
using System.Globalization;
using Gu.Localization;
internal class CurrentCultureProxy : INotifyPropertyChanged
{
internal static readonly CurrentCultureProxy Instance = new CurrentCultureProxy();
private CurrentCulturePro... | namespace Gu.Wpf.Localization
{
using System.ComponentModel;
using System.Globalization;
using Gu.Localization;
internal class CurrentCultureProxy : INotifyPropertyChanged
{
internal static readonly CurrentCultureProxy Instance = new CurrentCultureProxy();
private CurrentCulturePro... | mit | C# |
d0c50f9d0b3b7b76a0533a3eb181de07980928e2 | Fix description a little | joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,kirillkos/joinrpg-net,joinrpg/joinrpg-net | Joinrpg/Views/Shared/DisplayTemplates/MarkdownString.cshtml | Joinrpg/Views/Shared/DisplayTemplates/MarkdownString.cshtml | @using JoinRpg.Web.Helpers
@model JoinRpg.DataModel.MarkdownString
@Model.ToHtmlString() | @using JoinRpg.Web.Helpers
@model JoinRpg.DataModel.MarkdownString
<p>@Model.ToHtmlString()</p> | mit | C# |
d3ca07c04a7ea74bc76a93c7b55e28207c594bd0 | Fix extra assembly info attributes since they are generated by nuget | kthompson/csharp-glob,kthompson/glob,kthompson/glob | src/Glob/Properties/AssemblyInfo.cs | src/Glob/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("Gl... | 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("Gl... | mit | C# |
6408705f82979db60e2a7d1ec81fb56a2f81c3df | Return an empty string for / on markdig webapi | lunet-io/markdig | src/Markdig.WebApp/ApiController.cs | src/Markdig.WebApp/ApiController.cs | using System;
using System.Text;
using Microsoft.AspNetCore.Mvc;
namespace Markdig.WebApp
{
public class ApiController : Controller
{
[HttpGet()]
[Route("")]
public string Empty()
{
return string.Empty;
}
// GET api/to_html?text=xxx&extensions=advanc... | using System;
using System.Text;
using Microsoft.AspNetCore.Mvc;
namespace Markdig.WebApp
{
public class ApiController : Controller
{
// GET api/to_html?text=xxx&extensions=advanced
[Route("api/to_html")]
[HttpGet()]
public object Get([FromQuery] string text, [FromQuery] string... | bsd-2-clause | C# |
0eaf450204c397fa58c7b310ccefe574f9e851cc | Make field readonly | peppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,peppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu | osu.Game/Beatmaps/Drawables/Cards/Buttons/DownloadButton.cs | osu.Game/Beatmaps/Drawables/Cards/Buttons/DownloadButton.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.
#nullable enable
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Online... | // 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.
#nullable enable
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Online... | mit | C# |
80fbb44ea980d77046904404f4b6758e1350b706 | Fix build (#1447) | space-wizards/space-station-14-content,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Shared/Physics/MoverController.cs | Content.Shared/Physics/MoverController.cs | #nullable enable
using Content.Shared.GameObjects.Components.Movement;
using Robust.Shared.GameObjects.Components;
using Robust.Shared.Interfaces.Physics;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
using Robust.Shared.Physics;
namespace Content.Shared.Physics
{
public class MoverController : VirtualContr... | using Content.Shared.GameObjects.Components.Movement;
using Robust.Shared.GameObjects.Components;
using Robust.Shared.Interfaces.Physics;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
using Robust.Shared.Physics;
namespace Content.Shared.Physics
{
public class MoverController : VirtualController
{
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.