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 |
|---|---|---|---|---|---|---|---|---|
86108438ceea1797d04cad28b0a5fc78e91b9003 | Use exception assertion instead of deprecated attribute | rexm/Handlebars.Net,esskar/handlebars-core,rexm/Handlebars.Net | source/Handlebars.Test/ExceptionTests.cs | source/Handlebars.Test/ExceptionTests.cs | using NUnit.Framework;
namespace HandlebarsDotNet.Test
{
[TestFixture]
public class ExceptionTests
{
[Test]
public void TestNonClosingBlockExpressionException()
{
Assert.Throws<HandlebarsCompilerException>(() =>
{
Handlebars.Compile("{{#if 0}... | using NUnit.Framework;
namespace HandlebarsDotNet.Test
{
[TestFixture]
public class ExceptionTests
{
[Test]
[ExpectedException("HandlebarsDotNet.HandlebarsCompilerException", ExpectedMessage = "Reached end of template before block expression 'if' was closed")]
public void TestNonCl... | mit | C# |
993375ce0c60da0c3aa4af2f008dd405c9db8f80 | remove _invalid check on calculated property | rusergeev/DynamicProperty | DynamicProperty/CalculatedProperty.cs | DynamicProperty/CalculatedProperty.cs | using System;
namespace Developer.Test
{
class CalculatedProperty<T> : Wrapper<T>
{
public CalculatedProperty(Func<T> read, Action<T> write) : base(new SubscribableProperty<T>(read()))
{
_read = read;
_write = write;
}
public override T Value
{
... | using System;
namespace Developer.Test
{
class CalculatedProperty<T> : Wrapper<T>
{
public CalculatedProperty(Func<T> read, Action<T> write) : base(new SubscribableProperty<T>(read()))
{
_read = read;
_write = write;
}
public override T Value
{
... | bsd-3-clause | C# |
9b3c8d56e134ca15db08bc6a910298d982d7190b | Use only 1 thread otherwise the integration tests failed :( | vzabavnov/git-tfs,PKRoma/git-tfs,pmiossec/git-tfs,andyrooger/git-tfs,git-tfs/git-tfs | GitTfsTest/Properties/AssemblyInfo.cs | GitTfsTest/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Xunit;
// 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: Asse... | 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("Gi... | apache-2.0 | C# |
d864d936b002d99ac78faa295e8197f1a3fcc97e | add concat operator to JoinHtmlString | leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net | JoinRpg.Helpers.Web/JoinHtmlString.cs | JoinRpg.Helpers.Web/JoinHtmlString.cs | using System.IO;
using System.Text.Encodings.Web;
using System.Web;
using Microsoft.AspNetCore.Html;
using CoreHtmlString = Microsoft.AspNetCore.Html.HtmlString;
using WebHtmlString = System.Web.HtmlString;
namespace JoinRpg.Helpers.Web
{
/// <inheritdoc cref="System.Web.IHtmlString" />
/// <inheritdoc cref="M... | using System.IO;
using System.Text.Encodings.Web;
using CoreHtmlString = Microsoft.AspNetCore.Html.HtmlString;
using WebHtmlString = System.Web.HtmlString;
namespace JoinRpg.Helpers.Web
{
/// <inheritdoc cref="System.Web.IHtmlString" />
/// <inheritdoc cref="Microsoft.AspNetCore.Html.IHtmlContent" />
/// <... | mit | C# |
880231e5105c3f0de4b7490b24b7f6e3a28155fc | fix CraigGumbley | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/CraigGumbley.cs | src/Firehose.Web/Authors/CraigGumbley.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class CraigGumbley : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Craig";
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class CraigGumbley : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Craig";
... | mit | C# |
7feb39b039fd397cb12ed2d5b8234346b2b01a86 | Add for mysql GetDbTransaction extension method of EF work. #867 | dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP | src/DotNetCore.CAP.MySql/IDbContextTransaction.CAP.cs | src/DotNetCore.CAP.MySql/IDbContextTransaction.CAP.cs | // Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Data.Common;
using System.Threading;
using System.Threading.Tasks;
using DotNetCore.CAP;
using Microsoft.EntityFrameworkCore.Infrastruct... | // Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Threading;
using System.Threading.Tasks;
using DotNetCore.CAP;
// ReSharper disable once CheckNamespace
namespace Microsoft.EntityFrame... | mit | C# |
1e89b911480361c00fff05897c2351f2841841de | Fix failing exception integration tests | elastic/elasticsearch-net,elastic/elasticsearch-net,RossLieberman/NEST,adam-mccoy/elasticsearch-net,TheFireCookie/elasticsearch-net,CSGOpenSource/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/elasticsearch-net,UdiBen/elasticsearch-net,UdiBen/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/el... | src/Tests/ClientConcepts/Exceptions/ExceptionTests.cs | src/Tests/ClientConcepts/Exceptions/ExceptionTests.cs | using Elasticsearch.Net;
using FluentAssertions;
using Nest;
using System;
using Tests.Framework;
using Tests.Framework.Integration;
using Tests.Framework.MockData;
using Xunit;
namespace Tests.ClientConcepts.Exceptions
{
[Collection(IntegrationContext.Indexing)]
public class ExceptionTests
{
private readonly in... | using Elasticsearch.Net;
using FluentAssertions;
using Nest;
using System;
using Tests.Framework;
using Tests.Framework.Integration;
using Tests.Framework.MockData;
using Xunit;
namespace Tests.ClientConcepts.Exceptions
{
[Collection(IntegrationContext.Indexing)]
public class ExceptionTests
{
private readonly in... | apache-2.0 | C# |
fdd5780fb86cddf85b6e204f8d2504420e402aad | Reduce theortical lock contention in RSImageProducer | HelloKitty/317refactor | src/Rs317.Client.WF/RSImageProducer.cs | src/Rs317.Client.WF/RSImageProducer.cs |
using System;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
namespace Rs317.Sharp
{
public sealed class RSImageProducer
{
public int[] pixels;
public int width;
public int height;
private Bitmap image;
private FastPixel fastPixel;
public RSImageProducer(in... |
using System;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
namespace Rs317.Sharp
{
public sealed class RSImageProducer
{
public int[] pixels;
public int width;
public int height;
private Bitmap image;
private FastPixel fastPixel;
public RSImageProducer(in... | mit | C# |
72b1b616195dcedae6c8e7bac55bf503ae2ad15d | Update license header (#5643) (#5645) | elastic/elasticsearch-net,elastic/elasticsearch-net | src/ApiGenerator/Views/GeneratorNotice.cshtml | src/ApiGenerator/Views/GeneratorNotice.cshtml | @using ApiGenerator
@inherits CodeTemplatePage<object>
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache... | @using ApiGenerator
@inherits CodeTemplatePage<object>
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
// ╚═╝ ╚═... | apache-2.0 | C# |
f0768b7e8cc228db1ca82530fc21f43ffaa76565 | Remove unused method | lnu/nhibernate-core,fredericDelaporte/nhibernate-core,hazzik/nhibernate-core,livioc/nhibernate-core,alobakov/nhibernate-core,nhibernate/nhibernate-core,ManufacturingIntelligence/nhibernate-core,livioc/nhibernate-core,ManufacturingIntelligence/nhibernate-core,RogerKratz/nhibernate-core,ManufacturingIntelligence/nhiberna... | src/NHibernate/Proxy/NHibernateProxyHelper.cs | src/NHibernate/Proxy/NHibernateProxyHelper.cs | using NHibernate.Persister.Entity;
namespace NHibernate.Proxy
{
/// <summary>
/// NHibernateProxyHelper provides convenience methods for working with
/// objects that might be instances of Classes or the Proxied version of
/// the Class.
/// </summary>
public sealed class NHibernateProxyHelper
{
private NHib... | using NHibernate.Persister.Entity;
namespace NHibernate.Proxy
{
/// <summary>
/// NHibernateProxyHelper provides convenience methods for working with
/// objects that might be instances of Classes or the Proxied version of
/// the Class.
/// </summary>
public sealed class NHibernateProxyHelper
{
private NHib... | lgpl-2.1 | C# |
4200177af3d239694bbe8467618fc56e9ea69dba | fix outbox diagnostics | NServiceBusSqlPersistence/NServiceBus.SqlPersistence | src/SqlPersistence/Outbox/SqlOutboxFeature.cs | src/SqlPersistence/Outbox/SqlOutboxFeature.cs | using System;
using NServiceBus;
using NServiceBus.Features;
class SqlOutboxFeature : Feature
{
SqlOutboxFeature()
{
DependsOn<Outbox>();
}
protected override void Setup(FeatureConfigurationContext context)
{
var settings = context.Settings;
var connectionBuilder = setting... | using System;
using NServiceBus;
using NServiceBus.Features;
class SqlOutboxFeature : Feature
{
SqlOutboxFeature()
{
DependsOn<Outbox>();
}
protected override void Setup(FeatureConfigurationContext context)
{
var settings = context.Settings;
var connectionBuilder = setting... | mit | C# |
a8142b8858f0cd6fc1b55efca606f41213e57a0f | Fix #4614 - update IModelBinder docs | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.Mvc.Abstractions/ModelBinding/IModelBinder.cs | src/Microsoft.AspNetCore.Mvc.Abstractions/ModelBinding/IModelBinder.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.Mvc.ModelBinding
{
/// <summary>
/// Defines an interface for model binders.
/... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.Mvc.ModelBinding
{
/// <summary>
/// Defines an interface for model binders.
/... | apache-2.0 | C# |
e55234db96c14d1f110fab0a1a7439761f3e6f37 | change letters to uppercase | neaorin/service-fabric-dotnet-getting-started,neaorin/service-fabric-dotnet-getting-started,neaorin/service-fabric-dotnet-getting-started | Services/Chatter/Chat.Domain/Utils.cs | Services/Chatter/Chat.Domain/Utils.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Chat.Domain
{
public class Utils
{
static Random rand = new Random();
static char[] Consonants = { 'B', 'C', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R',... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Chat.Domain
{
public class Utils
{
static Random rand = new Random();
static char[] Consonants = { 'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r',... | mit | C# |
729cd9ffc36efc780826db15202eafd82e512944 | Make the tests green | picklesdoc/pickles,picklesdoc/pickles,ludwigjossieaux/pickles,dirkrombauts/pickles,magicmonty/pickles,magicmonty/pickles,picklesdoc/pickles,ludwigjossieaux/pickles,ludwigjossieaux/pickles,dirkrombauts/pickles,magicmonty/pickles,magicmonty/pickles,picklesdoc/pickles,dirkrombauts/pickles,dirkrombauts/pickles | src/Pickles/Pickles/DocumentationBuilders/Word/WordDescriptionFormatter.cs | src/Pickles/Pickles/DocumentationBuilders/Word/WordDescriptionFormatter.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="WordDescriptionFormatter.cs" company="PicklesDoc">
// Copyright 2011 Jeffrey Cameron
// Copyright 2012-present PicklesDoc team and community contributors
//
//
// Licensed un... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="WordDescriptionFormatter.cs" company="PicklesDoc">
// Copyright 2011 Jeffrey Cameron
// Copyright 2012-present PicklesDoc team and community contributors
//
//
// Licensed un... | apache-2.0 | C# |
6619aac9bb0a41560b21a76fa9d4c4f2a51a0c10 | Add SetDialectIfNeeded | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Repo/RepositorySaveOrUpdate.cs | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Repo/RepositorySaveOrUpdate.cs | using System.Threading.Tasks;
using Dapper.FastCrud;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo
{
public abstract partial class Repository<TSession, TEntity, TPk>
where TEntity : class, IEntity<TPk>
where TSession : ISession
{
... | using System.Threading.Tasks;
using Dapper.FastCrud;
using Smooth.IoC.Dapper.Repository.UnitOfWork.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo
{
public abstract partial class Repository<TSession, TEntity, TPk>
where TEntity : class, IEntity<TPk>
where TSession : ISession
{
... | mit | C# |
1dec65f410a233467592713342cd18d0b33ee84f | Update TelemetryLogger.cs | tiksn/TIKSN-Framework | TIKSN.Core/Analytics/Telemetry/TelemetryLogger.cs | TIKSN.Core/Analytics/Telemetry/TelemetryLogger.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace TIKSN.Analytics.Telemetry
{
public class TelemetryLogger : IEventTelemeter, IExceptionTelemeter, IMetricTelemeter, ITraceTelemeter
{
private readonly ILogger<Te... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace TIKSN.Analytics.Telemetry
{
public class TelemetryLogger : IEventTelemeter, IExceptionTelemeter, IMetricTelemeter, ITraceTelemeter
{
private readonly ILogger<Te... | mit | C# |
20d64901ac5eb135acaa1e51bd117f12f0d1789c | Update example project | fedoaa/SimpleTwitchBot | SimpleTwitchBot.ConsoleApp/Program.cs | SimpleTwitchBot.ConsoleApp/Program.cs | using SimpleTwitchBot.Lib;
using SimpleTwitchBot.Lib.Events;
using System;
using System.Threading.Tasks;
namespace SimpleTwitchBot.ConsoleApp
{
class Program
{
private static string channelName = "#channelName";
private static TwitchIrcClient _client;
static void Main(string[] args)
... | using SimpleTwitchBot.Lib;
using SimpleTwitchBot.Lib.Events;
using System;
using System.Threading.Tasks;
namespace SimpleTwitchBot.ConsoleApp
{
class Program
{
private static string channelName = "#channelName";
private static TwitchIrcClient _client;
static void Main(string[] args) ... | mit | C# |
cd019565db530ed391946f43db22874af86ae8aa | change enum (#9644) | brjohnstmsft/azure-sdk-for-net,ayeletshpigelman/azure-sdk-for-net,yugangw-msft/azure-sdk-for-net,brjohnstmsft/azure-sdk-for-net,hyonholee/azure-sdk-for-net,ayeletshpigelman/azure-sdk-for-net,AsrOneSdk/azure-sdk-for-net,AsrOneSdk/azure-sdk-for-net,jackmagic313/azure-sdk-for-net,yugangw-msft/azure-sdk-for-net,jackmagic31... | sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClientOptions.cs | sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClientOptions.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core;
using System;
namespace Azure.AI.TextAnalytics
{
/// <summary>
/// Options that allow to configure the management of the request sent to the service.
/// </summary>
public class TextAnaly... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core;
using System;
namespace Azure.AI.TextAnalytics
{
/// <summary>
/// Options that allow to configure the management of the request sent to the service.
/// </summary>
public class TextAnaly... | mit | C# |
bb409c08b4626d39abc601565c76a6a07acf4662 | Fix custom culture throws ArgumentException on .NET 3.5 unit tests. | msgpack/msgpack-cli,msgpack/msgpack-cli | test/MsgPack.UnitTest/LegacyJapaneseCultureInfo.cs | test/MsgPack.UnitTest/LegacyJapaneseCultureInfo.cs | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2017 FUJIWARA, Yusuke
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org... | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2017 FUJIWARA, Yusuke
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org... | apache-2.0 | C# |
7b9a75d52ee85747ae04f9f915d7da6d97e01c49 | work on services section of details page | camd67/stream-surfer,camd67/stream-surfer | StreamSurfer/Views/Show/Detail.cshtml | StreamSurfer/Views/Show/Detail.cshtml | @model StreamSurfer.Models.Show
@{
ViewData["Title"] = "Detail";
}
<div>
<div>
<img src=@Html.DisplayFor(model => model.Picture)/>
</div>
<div>
<h2>@Html.DisplayFor(model => model.Title)</h2>
<h3>Description</h3>
<p>@Html.DisplayFor(model => model.Desc)</p>
</div>
... | @model StreamSurfer.Models.Show
@{
ViewData["Title"] = "Detail";
}
<div>
<div>
<img src=@Html.DisplayFor(model => model.Picture)/>
</div>
<div>
<h2>@Html.DisplayFor(model => model.Title)</h2>
<h3>Description</h3>
<p>@Html.DisplayFor(model => model.Desc)</p>
</div>
... | mit | C# |
c10cac7335dab8eaedf0eca507dfec37eaf3a19a | 同步 .net 4.5 sample 版本号 | JeffreySu/WxOpen,JeffreySu/WxOpen | src/Senparc.Weixin.WxOpen/Senparc.Weixin.WxOpen/Properties/AssemblyInfo.cs | src/Senparc.Weixin.WxOpen/Senparc.Weixin.WxOpen/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Senparc.Weixin.WxOpen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: ... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Senparc.Weixin.WxOpen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: ... | apache-2.0 | C# |
3140372dfb84c02905aa7cb4a9a9f59b15837b07 | Update Program.cs | Vinogradov-Mikhail/University-part2 | 1-3/1-3/Program.cs | 1-3/1-3/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _1_3
{
class Program
{
// bubble sort
public static void Bubble(int[] array)
{
for (int i = 0; i < array.Length; ++i)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _1_3
{
class Program
{
// bubble sort
public static void bubble(int[] array)
{
for (int i = 0; i < array.Length; ++i)
{
... | apache-2.0 | C# |
324a3723a5dbba4b85f6d39617028acef7af005a | Rewrite DMD | ppy/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu,ppy/osu | osu.Game/Overlays/Mods/DifficultyMultiplierDisplay.cs | osu.Game/Overlays/Mods/DifficultyMultiplierDisplay.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 disable
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Localisation;
using osuTK;
using osu.Game.Localisation;
namesp... | // 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 disable
using osu.Framework.Extensions.LocalisationExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graph... | mit | C# |
1bd15031d480479eed262ece4ef45e9a26430027 | Fix Bug in InputManager | patrickpissurno/samecitysameshit | GGJ2016/Assets/InputManager.cs | GGJ2016/Assets/InputManager.cs | using UnityEngine;
using System;
using System.Collections;
public class InputManager : MonoBehaviour {
public static Action<GameObject> onClickListener;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetMouseButtonDown(0)){
... | using UnityEngine;
using System;
using System.Collections;
public class InputManager : MonoBehaviour {
public static Action<GameObject> onClickListener;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetMouseButtonDown(0)){
... | cc0-1.0 | C# |
00088fa28098036054ac3560de9ebf874c1396d6 | Update PackageSearcher.cs | Bjornej/Bazooka,Bjornej/Bazooka,BazookaDeploy/Bazooka,BazookaDeploy/Bazooka,Bjornej/Bazooka,BazookaDeploy/Bazooka | Sources/Core/PackageSearcher.cs | Sources/Core/PackageSearcher.cs | namespace Bazooka.Core
{
using NuGet;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Helpers to search packages list
/// </summary>
public static class PackageSearcher
{
/// <summary>
/// Searches all available versions of a package in a ... | namespace Bazooka.Core
{
using NuGet;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Helpers to search packages list
/// </summary>
public static class PackageSearcher
{
/// <summary>
/// Searches all available versions of a package in a ... | mit | C# |
b97fc67e305f4e3155def17a95d696635e038d15 | remove writelines | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/ProxyPacketSplitter.cs | TCC.Core/ProxyPacketSplitter.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TCC.Parsing;
using TCC.TeraCommon;
using Console = System.Console;
namespace TCC
{
public class ProxyPacketSplitter
{
private const string Star... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TCC.Parsing;
using TCC.TeraCommon;
using Console = System.Console;
namespace TCC
{
public class ProxyPacketSplitter
{
private const string Star... | mit | C# |
20273d25fa02e2afb74b5047aaf23d2bd1e0a54f | Correct typo | ithielnor/harvest.net | Harvest.Net/Models/DayEntry.cs | Harvest.Net/Models/DayEntry.cs | using RestSharp.Serializers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Harvest.Net.Models
{
[SerializeAs(Name = "day-entry")]
public class DayEntry : Harvest.Net.Models.IModel
{
public long Id { get; set; }
... | using RestSharp.Serializers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Harvest.Net.Models
{
[SerializeAs(Name = "day-entry")]
public class DayEntry : Harvest.Net.Models.IModel
{
public long Id { get; set; }
... | mit | C# |
8b5285116be5c77d33de8a3c0f0fd6cbc2e02624 | Add NameFrom method to avoid empty names | Curdflappers/UltimateTicTacToe | Assets/Resources/Scripts/settings/PlayController.cs | Assets/Resources/Scripts/settings/PlayController.cs | using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class PlayController : MonoBehaviour
{
public InputField p1Name, p2Name;
public ToggleGroup p1Toggle, p2Toggle;
public Slider p1Difficulty, p2Difficulty;
public void PlayGame()
{
... | using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class PlayController : MonoBehaviour
{
public InputField p1Name, p2Name;
public ToggleGroup p1Toggle, p2Toggle;
public Slider p1Difficulty, p2Difficulty;
public void PlayGame()
{
... | mit | C# |
677cb6ca40f1c1c86bb5d8efc1e8b61230ff17ac | Correct issue with metric units. | VoiDeD/copperegg-metrics-windows | CopperEggLib/CopperEgg/RevealMetrics/MetricGroup.cs | CopperEggLib/CopperEgg/RevealMetrics/MetricGroup.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace CopperEggLib
{
public class MetricGroup
{
internal CopperEgg Client { get; set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace CopperEggLib
{
public class MetricGroup
{
internal CopperEgg Client { get; set; }
... | mit | C# |
47c0e051519fa26deaa61ab6811de889d251b946 | Fix typo on depot data set. | nfleet/.net-sdk | NFleetSDK/Data/DepotDataSet.cs | NFleetSDK/Data/DepotDataSet.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NFleet.Data
{
public class DepotDataSet : IResponseData, IVersioned
{
public static string MIMEType = "application/vnd.jyu.nfleet.depotset";
public static string MIMEVersion = "2.2";
int IV... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NFleet.Data
{
public class DepotDataSet : IResponseData, IVersioned
{
public static string MIMEType = "application/vnd.jyu.nfleet.depotset";
public static string MIMEVersion = "2.2";
int IV... | mit | C# |
8d254aebdf0aa9d27a2672a86cc67dd8c4a8a117 | Fix OracleQuoterTest | mstancombe/fluentmigrator,modulexcite/fluentmigrator,wolfascu/fluentmigrator,akema-fr/fluentmigrator,modulexcite/fluentmigrator,mstancombe/fluentmig,tommarien/fluentmigrator,bluefalcon/fluentmigrator,jogibear9988/fluentmigrator,itn3000/fluentmigrator,dealproc/fluentmigrator,barser/fluentmigrator,drmohundro/fluentmigrat... | src/FluentMigrator.Tests/Unit/Generators/Oracle/OracleQuoterTest.cs | src/FluentMigrator.Tests/Unit/Generators/Oracle/OracleQuoterTest.cs | using System;
using System.Globalization;
using System.Threading;
using FluentMigrator.Model;
using FluentMigrator.Runner.Generators;
using FluentMigrator.Runner.Generators.Generic;
using FluentMigrator.Runner.Generators.Jet;
using FluentMigrator.Runner.Generators.MySql;
using FluentMigrator.Runner.Generators.Oracle;
... | using System;
using System.Globalization;
using System.Threading;
using FluentMigrator.Model;
using FluentMigrator.Runner.Generators;
using FluentMigrator.Runner.Generators.Generic;
using FluentMigrator.Runner.Generators.Jet;
using FluentMigrator.Runner.Generators.MySql;
using FluentMigrator.Runner.Generators.Oracle;
... | apache-2.0 | C# |
9f04e58e657d16360ff03e635ec945ea9e63ebf4 | Align character skin for ranged attacks | ethanmoffat/EndlessClient | EndlessClient/Rendering/CharacterProperties/SkinRenderLocationCalculator.cs | EndlessClient/Rendering/CharacterProperties/SkinRenderLocationCalculator.cs | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System;
using EOLib;
using EOLib.Domain.Character;
using EOLib.Domain.Extensions;
using Microsoft.Xna.Framework;
namespace EndlessClient.Rendering.CharacterPropert... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using System;
using EOLib;
using EOLib.Domain.Character;
using EOLib.Domain.Extensions;
using Microsoft.Xna.Framework;
namespace EndlessClient.Rendering.CharacterPropert... | mit | C# |
77d45459acdfb19c91310275104972fe8a1f2a7d | Add explanatory comment to unclear use of rotation. | thijser/ARGAME,thijser/ARGAME,thijser/ARGAME | ARGame/Assets/Scripts/Projection/RemotePlayerMarker.cs | ARGame/Assets/Scripts/Projection/RemotePlayerMarker.cs | //----------------------------------------------------------------------------
// <copyright file="RemotePlayerMarker.cs" company="Delft University of Technology">
// Copyright 2015, Delft University of Technology
//
// This software is licensed under the terms of the MIT License.
// A copy of the lic... | //----------------------------------------------------------------------------
// <copyright file="RemotePlayerMarker.cs" company="Delft University of Technology">
// Copyright 2015, Delft University of Technology
//
// This software is licensed under the terms of the MIT License.
// A copy of the lic... | mit | C# |
034de3b8de1a6d88a27610ce38779429d3570151 | Update ForeignExchangeRepository.cs | tiksn/TIKSN-Framework | TIKSN.Core/Finance/ForeignExchange/Data/LiteDB/ForeignExchangeRepository.cs | TIKSN.Core/Finance/ForeignExchange/Data/LiteDB/ForeignExchangeRepository.cs | using LiteDB;
using TIKSN.Data.LiteDB;
namespace TIKSN.Finance.ForeignExchange.Data.LiteDB
{
public class ForeignExchangeRepository : LiteDbRepository<ForeignExchangeEntity, int>, IForeignExchangeRepository
{
public ForeignExchangeRepository(ILiteDbDatabaseProvider databaseProvider) : base(databasePro... | using TIKSN.Data.LiteDB;
namespace TIKSN.Finance.ForeignExchange.Data.LiteDB
{
public class ForeignExchangeRepository : LiteDbRepository<ForeignExchangeEntity, int>, IForeignExchangeRepository
{
public ForeignExchangeRepository(ILiteDbDatabaseProvider databaseProvider) : base(databaseProvider, "Foreig... | mit | C# |
40eb91787dcf4d5c89749f7f8ffb58370fa891ae | Use var instead. | dlemstra/Magick.NET,dlemstra/Magick.NET | tests/Magick.NET.Tests/Colors/ColorHSLTests/TheGetHashCodeMethod.cs | tests/Magick.NET.Tests/Colors/ColorHSLTests/TheGetHashCodeMethod.cs | // Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
// Licensed under the Apache License, Version 2.0.
using ImageMagick;
using Xunit;
namespace Magick.NET.Tests
{
public partial class ColorHSLTests : ColorBaseTests<ColorHSL>
{
public class TheGetHashCodeMethod
{
[Fa... | // Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
// Licensed under the Apache License, Version 2.0.
using ImageMagick;
using Xunit;
namespace Magick.NET.Tests
{
public partial class ColorHSLTests : ColorBaseTests<ColorHSL>
{
public class TheGetHashCodeMethod
{
[Fa... | apache-2.0 | C# |
b10c458ce20ed0cf10c39eac1bce57b74a7954c9 | Fix analysis warning for ServiceLocatorTests | thomaslevesque/FakeItEasy,FakeItEasy/FakeItEasy,thomaslevesque/FakeItEasy,adamralph/FakeItEasy,adamralph/FakeItEasy,blairconrad/FakeItEasy,FakeItEasy/FakeItEasy,blairconrad/FakeItEasy | tests/FakeItEasy.Tests/ServiceLocatorTests.cs | tests/FakeItEasy.Tests/ServiceLocatorTests.cs | namespace FakeItEasy.Tests
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using FakeItEasy.Core;
using FakeItEasy.Creation;
using FakeItEasy.Expressions;
using FluentAssertions;
using NUnit.Framework;
[TestFixture]
public cla... | namespace FakeItEasy.Tests
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using FakeItEasy.Core;
using FakeItEasy.Creation;
using FakeItEasy.Expressions;
using FluentAssertions;
using NUnit.Framework;
[TestFixture]
public cla... | mit | C# |
e769c3a0047bdd66a0e975c74c19815047d1581f | Fix route to homepage. | strayfatty/ShowFeed,strayfatty/ShowFeed | src/ShowFeed/App_Start/RouteConfig.cs | src/ShowFeed/App_Start/RouteConfig.cs | namespace ShowFeed.App_Start
{
using System.Web.Mvc;
using System.Web.Routing;
/// <summary>
/// The route configuration class.
/// </summary>
public static class RouteConfig
{
/// <summary>
/// Registers all routes.
/// </summary>
/// <param name="routes">T... | namespace ShowFeed.App_Start
{
using System.Web.Mvc;
using System.Web.Routing;
/// <summary>
/// The route configuration class.
/// </summary>
public static class RouteConfig
{
/// <summary>
/// Registers all routes.
/// </summary>
/// <param name="routes">T... | mit | C# |
a1a7222d3883f81b4ba85e95c8219f32ea9a6f71 | support encoded return url in localization controller for aspnetcore | luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate | src/Abp.AspNetCore/AspNetCore/Mvc/Controllers/AbpLocalizationController.cs | src/Abp.AspNetCore/AspNetCore/Mvc/Controllers/AbpLocalizationController.cs | using System;
using Abp.AspNetCore.Mvc.Extensions;
using Abp.Auditing;
using Abp.Localization;
using Abp.Runtime.Session;
using Abp.Timing;
using Abp.Web.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore.Mvc;
using IUrlHelper = Abp.Web.Http.IUrlHelper;
namesp... | using Abp.AspNetCore.Mvc.Extensions;
using Abp.Auditing;
using Abp.Configuration;
using Abp.Localization;
using Abp.Runtime.Session;
using Abp.Timing;
using Abp.Web.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore.Mvc;
namespace Abp.AspNetCore.Mvc.Controller... | mit | C# |
4c52d46e55202de411715eb2231e58fa1911d4ab | Change trace level for netmf test | ChugR/amqpnetlite,Azure/amqpnetlite,mbroadst/amqpnetlite | test/Test.Amqp.NetMF/Program.cs | test/Test.Amqp.NetMF/Program.cs | // ------------------------------------------------------------------------------------
// Copyright (c) Microsoft 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. You may obtain a co... | // ------------------------------------------------------------------------------------
// Copyright (c) Microsoft 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. You may obtain a co... | apache-2.0 | C# |
88c21ab3b3822baff6b5702e2e41368d6beb4ec8 | Update OrganizeModifiersTests.cs | CyrusNajmabadi/roslyn,AmadeusW/roslyn,physhi/roslyn,eriawan/roslyn,tmat/roslyn,wvdd007/roslyn,mgoertz-msft/roslyn,tannergooding/roslyn,AmadeusW/roslyn,mgoertz-msft/roslyn,mavasani/roslyn,physhi/roslyn,bartdesmet/roslyn,jasonmalinowski/roslyn,shyamnamboodiripad/roslyn,diryboy/roslyn,dotnet/roslyn,mavasani/roslyn,diryboy... | src/EditorFeatures/CSharpTest/Organizing/OrganizeModifiersTests.cs | src/EditorFeatures/CSharpTest/Organizing/OrganizeModifiersTests.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Test.Utilities;
using Xunit;
namespace Microsoft.CodeAn... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Test.Utilities;
using Xunit;
namespace Microsoft.CodeAn... | mit | C# |
85a50dac978c1708c48654fccf8dbb0c7d20f6b6 | Bump version # | Deadpikle/NetSparkle,Deadpikle/NetSparkle | AssemblyInfo.cs | AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | mit | C# |
313d1440e99363ac5fc09a5e85df54bd29792b97 | Update LocalizationServiceFactory.cs | johnkors/IdentityServer3.Contrib.Localization,IdentityServer/IdentityServer3.Contrib.Localization,totpero/IdentityServer3.Contrib.Localization,Utdanningsdirektoratet/IdentityServer3.Contrib.Localization,darkestspirit/IdentityServer3.Contrib.Localization | source/IdentityServer3.Localization/Internals/LocalizationServiceFactory.cs | source/IdentityServer3.Localization/Internals/LocalizationServiceFactory.cs | using System.Collections.Generic;
using System.Globalization;
using Thinktecture.IdentityServer.Core.Services.Default;
namespace Thinktecture.IdentityServer.Core.Services.Contrib.Internals
{
internal static class LocalizationServiceFactory
{
public static readonly IDictionary<string, ILocalizationServ... | using System.Collections.Generic;
using System.Globalization;
using Thinktecture.IdentityServer.Core.Services.Default;
namespace Thinktecture.IdentityServer.Core.Services.Contrib.Internals
{
internal static class LocalizationServiceFactory
{
public static readonly IDictionary<string, ILocalizationServ... | mit | C# |
c0094f2c7a8a935a02c35cd8925fb1278a2b7c70 | Make the Xmas Tree move randomly on its first pattern. | Noxalus/Xmas-Hell | Xmas-Hell/Xmas-Hell-Core/Entities/Bosses/XmasTree/XmasTreeBehaviour1.cs | Xmas-Hell/Xmas-Hell-Core/Entities/Bosses/XmasTree/XmasTreeBehaviour1.cs | using System;
using Microsoft.Xna.Framework;
using MonoGame.Extended.Timers;
using XmasHell.BulletML;
namespace XmasHell.Entities.Bosses.XmasTree
{
class XmasTreeBehaviour1 : AbstractBossBehaviour
{
public XmasTreeBehaviour1(Boss boss) : base(boss)
{
InitialBehaviourLife = GameConfi... | using System;
using Microsoft.Xna.Framework;
using MonoGame.Extended.Timers;
using XmasHell.BulletML;
namespace XmasHell.Entities.Bosses.XmasTree
{
class XmasTreeBehaviour1 : AbstractBossBehaviour
{
public XmasTreeBehaviour1(Boss boss) : base(boss)
{
InitialBehaviourLife = GameConfi... | mit | C# |
1a741aaf9a0ae01ee1cc7325a7229daa9ad78221 | Create default constructor | SICU-Stress-Measurement-System/frontend-cs | StressMeasurementSystem/ViewModels/PatientViewModel.cs | StressMeasurementSystem/ViewModels/PatientViewModel.cs | using System.Collections.Generic;
using StressMeasurementSystem.Models;
namespace StressMeasurementSystem.ViewModels
{
public class PatientViewModel
{
private Patient _patient;
public PatientViewModel()
{
_patient = new Patient(
new Patient.Name(), 0,
... | namespace StressMeasurementSystem.ViewModels
{
public class PatientViewModel
{
}
} | apache-2.0 | C# |
ad2b88642494a5fa1371faabb7c0c0faaec19245 | Implement GetComputerName of HttpContextClientInfoProvider, which is being used to populate the ClientName property of the AuditInfo Class | aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate | src/Abp.AspNetCore/AspNetCore/Mvc/Auditing/HttpContextClientInfoProvider.cs | src/Abp.AspNetCore/AspNetCore/Mvc/Auditing/HttpContextClientInfoProvider.cs | using System;
using Abp.Auditing;
using Castle.Core.Logging;
using Microsoft.AspNetCore.Http;
using Abp.Extensions;
using System.Net;
namespace Abp.AspNetCore.Mvc.Auditing
{
public class HttpContextClientInfoProvider : IClientInfoProvider
{
public string BrowserInfo => GetBrowserInfo();
publi... | using System;
using Abp.Auditing;
using Castle.Core.Logging;
using Microsoft.AspNetCore.Http;
using Abp.Extensions;
namespace Abp.AspNetCore.Mvc.Auditing
{
public class HttpContextClientInfoProvider : IClientInfoProvider
{
public string BrowserInfo => GetBrowserInfo();
public string ClientIpA... | mit | C# |
3820ac8c24b488e1ae979bed22a5e4af8c70b716 | Fix - Corretta l'Aggiunta di una seconda partenza | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf | src/backend/SO115App.Persistence.MongoDB/GestioneMezzi/SetMezzoPrenotato.cs | src/backend/SO115App.Persistence.MongoDB/GestioneMezzi/SetMezzoPrenotato.cs | using MongoDB.Driver;
using Persistence.MongoDB;
using SO115App.Models.Classi.Condivise;
using SO115App.Models.Servizi.CQRS.Commands.GestioneSoccorso.GestionePartenza.SetMezzoPrenotato;
using SO115App.Models.Servizi.Infrastruttura.Composizione;
using SO115App.Models.Servizi.Infrastruttura.SistemiEsterni.Gac;
using Sys... | using MongoDB.Driver;
using Persistence.MongoDB;
using SO115App.Models.Classi.Condivise;
using SO115App.Models.Servizi.CQRS.Commands.GestioneSoccorso.GestionePartenza.SetMezzoPrenotato;
using SO115App.Models.Servizi.Infrastruttura.Composizione;
using SO115App.Models.Servizi.Infrastruttura.SistemiEsterni.Gac;
using Sys... | agpl-3.0 | C# |
115a62eda2a2304e418210a983cc07075beea110 | Fix spelling in readme | ethanli83/EFSqlTranslator | EFSqlTranslator.Tests/TranslatorTests/ManualJoinTranslationTests.cs | EFSqlTranslator.Tests/TranslatorTests/ManualJoinTranslationTests.cs | using System.Linq;
using EFSqlTranslator.EFModels;
using EFSqlTranslator.Translation;
using EFSqlTranslator.Translation.DbObjects;
using EFSqlTranslator.Translation.DbObjects.SqlObjects;
using NUnit.Framework;
namespace EFSqlTranslator.Tests.TranslatorTests
{
[TestFixture]
[CategoryReadMe(
Index = 5,
... | using System.Linq;
using EFSqlTranslator.EFModels;
using EFSqlTranslator.Translation;
using EFSqlTranslator.Translation.DbObjects;
using EFSqlTranslator.Translation.DbObjects.SqlObjects;
using NUnit.Framework;
namespace EFSqlTranslator.Tests.TranslatorTests
{
[TestFixture]
[CategoryReadMe(
Index = 5,
... | apache-2.0 | C# |
a99a63eb548e7a07136ae3973fa4ee2d74dec5ed | add test for try get delegate | ColinDabritzViewpoint/Fody,distantcam/Fody,ichengzi/Fody,furesoft/Fody,jasonholloway/Fody,GeertvanHorrik/Fody,huoxudong125/Fody,Fody/Fody | FodyIsolated.Tests/DelegateBuilders/PropertyDelegateBuilderTests.cs | FodyIsolated.Tests/DelegateBuilders/PropertyDelegateBuilderTests.cs | using System;
using NUnit.Framework;
[TestFixture]
public class PropertyDelegateBuilderTests
{
public string Property { get; set; }
#pragma warning disable 169
string privateField;
#pragma warning restore 169
// ReSharper disable UnusedMember.Local
string PrivateProperty { get; set; }
// ReSharper restore ... | using NUnit.Framework;
[TestFixture]
public class PropertyDelegateBuilderTests
{
public string Property { get; set; }
#pragma warning disable 169
string privateField;
#pragma warning restore 169
// ReSharper disable UnusedMember.Local
string PrivateProperty { get; set; }
// ReSharper restore UnusedMember.L... | mit | C# |
fe0a1eefdf21fdfeaac2ebb038a03d98cf7af836 | Use common delimiter | nbarbettini/FlexibleConfiguration | src/FlexibleConfiguration/Providers/YamlEnumerator.cs | src/FlexibleConfiguration/Providers/YamlEnumerator.cs | // <copyright file="YamlEnumerator.cs" company="Nate Barbettini">
// Copyright (c) Nate Barbettini. All rights reserved.
// </copyright>
using System.Collections.Generic;
using FlexibleConfiguration.Abstractions;
namespace FlexibleConfiguration.Providers
{
public sealed class YamlEnumerator
{
private... | // <copyright file="YamlEnumerator.cs" company="Nate Barbettini">
// Copyright (c) Nate Barbettini. All rights reserved.
// </copyright>
using System.Collections.Generic;
namespace FlexibleConfiguration.Providers
{
public sealed class YamlEnumerator
{
private readonly IDictionary<object, object> map;... | apache-2.0 | C# |
cece70768cde0f1dfd676acc5e46c4a42b0b0769 | Add Font Awesome | martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site | src/LondonTravel.Site/Views/Shared/_StylesBody.cshtml | src/LondonTravel.Site/Views/Shared/_StylesBody.cshtml | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/flatly/bootstrap.min.css" integrity="sha384-+ENW/yibaokMnme+vBLnHMphUYxHs34h9lpdbSLuAwGkOKFRl4C34WkjazBtb7eT" crossorigin="anonymous" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css... | <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/flatly/bootstrap.min.css" integrity="sha384-+ENW/yibaokMnme+vBLnHMphUYxHs34h9lpdbSLuAwGkOKFRl4C34WkjazBtb7eT" crossorigin="anonymous" />
| apache-2.0 | C# |
c2bc806180d0e7fc345bc72249592dfa6ef4f74f | Add message parameter to Or method | DaveSenn/Extend | PortableExtensions/PortableExtensions.ISpecification[T]/ISpecification.Or.cs | PortableExtensions/PortableExtensions.ISpecification[T]/ISpecification.Or.cs | #region Usings
using System;
using System.Collections.Generic;
using System.Linq;
#endregion
namespace PortableExtensions
{
/// <summary>
/// Class containing some extension methods for <see cref="ISpecification{T}"/>.
/// </summary>
public static partial class SpecificationEx
{
/// ... | #region Usings
using System;
using System.Collections.Generic;
using System.Linq;
#endregion
namespace PortableExtensions
{
/// <summary>
/// Class containing some extension methods for <see cref="ISpecification{T}"/>.
/// </summary>
public static partial class SpecificationEx
{
/// ... | mit | C# |
a6a159b74e688f06fcf6283519f4a6fd98366866 | add produces attribute to ListsController | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Api/Controllers/ListsController.cs | src/FilterLists.Api/Controllers/ListsController.cs | using FilterLists.Services.Contracts;
using Microsoft.AspNetCore.Mvc;
namespace FilterLists.Api.Controllers
{
//TODO: migrate controllers to separate projects by version, use dependency injection
//TODO: automate URL versioning
[Route("v1/[controller]")]
[Produces("application/json")]
public class... | using FilterLists.Services.Contracts;
using Microsoft.AspNetCore.Mvc;
namespace FilterLists.Api.Controllers
{
//TODO: migrate controllers to separate projects by version, use dependency injection
//TODO: automate URL versioning
[Route("v1/[controller]")]
public class ListsController : Controller
{... | mit | C# |
fc169893581a7625e8a565eb87419d1a260b6ab3 | Remove TaskQueue options | exceptionless/Foundatio,FoundatioFx/Foundatio | src/Foundatio/Messaging/SharedMessageBusOptions.cs | src/Foundatio/Messaging/SharedMessageBusOptions.cs | using System;
using System.Collections.Generic;
namespace Foundatio.Messaging {
public class SharedMessageBusOptions : SharedOptions {
/// <summary>
/// The topic name
/// </summary>
public string Topic { get; set; } = "messages";
/// <summary>
/// Controls which ty... | using System;
using System.Collections.Generic;
namespace Foundatio.Messaging {
public class SharedMessageBusOptions : SharedOptions {
/// <summary>
/// The topic name
/// </summary>
public string Topic { get; set; } = "messages";
/// <summary>
/// Controls the maxi... | apache-2.0 | C# |
d4e9306c4096254a86564d49e4a4346bd48986a3 | Add MethodImplOptions.AggressiveOptimization and use it for tiering (#20009) | ptoonen/corefx,Jiayili1/corefx,mmitche/corefx,ViktorHofer/corefx,ViktorHofer/corefx,ericstj/corefx,shimingsg/corefx,wtgodbe/corefx,ptoonen/corefx,mmitche/corefx,wtgodbe/corefx,ViktorHofer/corefx,shimingsg/corefx,ericstj/corefx,wtgodbe/corefx,ericstj/corefx,ericstj/corefx,wtgodbe/corefx,mmitche/corefx,BrennanConroy/core... | src/Common/src/CoreLib/System/Runtime/CompilerServices/MethodImplOptions.cs | src/Common/src/CoreLib/System/Runtime/CompilerServices/MethodImplOptions.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Runtime.CompilerServices
{
// This Enum matchs the miImpl flags defined in corhdr.h. It is used... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Runtime.CompilerServices
{
// This Enum matchs the miImpl flags defined in corhdr.h. It is used... | mit | C# |
830c354794e316923e0b8de5e0d9ccba0ae81554 | Add Entity.User class | Mahifernando/GaugesNet | GaugesNet/Entity/Me.cs | GaugesNet/Entity/Me.cs | // ------------------------------------------------------------------------------
// |
// Copyright 2012 Mahi Fernando. |
// ... | // ------------------------------------------------------------------------------
// |
// Copyright 2012 Mahi Fernando. |
// ... | apache-2.0 | C# |
6da1b4d0120317643473c61c4e9e9ce6f34f6784 | Fix incorrect current directory that accours on some devices on android. | ppy/osu,ppy/osu,peppy/osu,johnneijzen/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,UselessToucan/osu,NeoAdonis/osu,peppy/osu,EVAST9919/osu,UselessToucan/osu,johnneijzen/osu,smoogipoo/osu,EVAST9919/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,2yangk23/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,2yangk23/osu | osu.Android/OsuGameActivity.cs | osu.Android/OsuGameActivity.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 Android.App;
using Android.Content.PM;
using Android.OS;
using Android.Views;
using osu.Framework.Android;
namespace osu.Android
{
[Activity(Theme = "@android... | // 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 Android.App;
using Android.Content.PM;
using Android.OS;
using Android.Views;
using osu.Framework.Android;
namespace osu.Android
{
[Activity(Theme = "@android... | mit | C# |
40ab860ab56f7b89264c0c7c3475d680a09c0951 | Remove unused using | EVAST9919/osu,smoogipooo/osu,peppy/osu,EVAST9919/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu | osu.Game/Beatmaps/Formats/LegacyDifficultyCalculatorBeatmapDecoder.cs | osu.Game/Beatmaps/Formats/LegacyDifficultyCalculatorBeatmapDecoder.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;
namespace osu.Game.Beatmaps.Formats
{
/// <summary>
/// A <see cref="LegacyBeatmapDecoder"/> built for difficulty calculation of legacy <see c... | // 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 osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Beatmaps.Formats
{
/// <summary>
/// A <see cref="LegacyBeatmapDecoder"/> built for ... | mit | C# |
b7f5222592bea259a8549dd3538af2c1f2e92598 | Update InputBand.cs | LANDIS-II-Foundation/Landis-Spatial-Modeling-Library | src/RasterIO.Gdal/InputBand.cs | src/RasterIO.Gdal/InputBand.cs | // Contributors:
// James Domingo, Green Code LLC
using Landis.SpatialModeling;
using System;
namespace Landis.RasterIO.Gdal
{
public class InputBand<T> : IInputBand
where T : struct
{
private RasterBandReader<T> rasterBandReader;
private IPixelBandSetter<T> pixelBandSett... | // Copyright 2010 Green Code LLC
// All rights reserved.
//
// The copyright holders license this file under the New (3-clause) BSD
// License (the "License"). You may not use this file except in
// compliance with the License. A copy of the License is available at
//
// http://www.opensource.org/licenses/BSD-3-Cla... | apache-2.0 | C# |
ddea8ce6bfa7dbad444b9d9be54611a9b4820a14 | Exclude trailing zero byte in GetStringByIndex | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | src/AsmResolver.PE/DotNet/Metadata/Strings/SerializedStringsStream.cs | src/AsmResolver.PE/DotNet/Metadata/Strings/SerializedStringsStream.cs | // AsmResolver - Executable file format inspection library
// Copyright (C) 2016-2019 Washi
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 3.0 of the License, o... | // AsmResolver - Executable file format inspection library
// Copyright (C) 2016-2019 Washi
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 3.0 of the License, o... | mit | C# |
d7b0d0bd42962cc794a923fadc93e084e73f2084 | Bump version to 0.3.0 | sqt/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/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# |
24b01647344f8608b7524264103cf1e7e467aab9 | Check for single click each time | gldraphael/mg-ttt | TicTacToe/TicTacToe.cs | TicTacToe/TicTacToe.cs | using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;
namespace TicTacToe
{
/// <summary>
/// This... | using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;
namespace TicTacToe
{
/// <summary>
/// This... | mit | C# |
dde706cbbaeb86335ff3a951a4ceb32c989e9da5 | Use inline variables. | orthoxerox/roslyn,drognanar/roslyn,brettfo/roslyn,swaroop-sridhar/roslyn,mattscheffer/roslyn,wvdd007/roslyn,CaptainHayashi/roslyn,AArnott/roslyn,abock/roslyn,KirillOsenkov/roslyn,jcouv/roslyn,Giftednewt/roslyn,MattWindsor91/roslyn,mgoertz-msft/roslyn,xasx/roslyn,AmadeusW/roslyn,aelij/roslyn,AmadeusW/roslyn,jeffanders/r... | src/Workspaces/Core/Portable/Utilities/IReadOnlyDictionaryExtensions.cs | src/Workspaces/Core/Portable/Utilities/IReadOnlyDictionaryExtensions.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.CodeAnalysis.Shared.Extensions;
namespace Roslyn.Utilities
{
internal static class IReadOnlyDictionary... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.CodeAnalysis.Shared.Extensions;
namespace Roslyn.Utilities
{
internal static class IReadOnlyDictionary... | apache-2.0 | C# |
014c840d807e00ff2b35bcce9d096c0396d309a9 | Fix incorrect thread usage of ruleset in tournament `DataLoadTest` | NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu | osu.Game.Tournament.Tests/NonVisual/DataLoadTest.cs | osu.Game.Tournament.Tests/NonVisual/DataLoadTest.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.IO;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Platform;
using osu.Game.Rulesets;
using osu.Game.Tests;
namespace osu.Game.T... | // 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.IO;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Platform;
using osu.Game.Rulesets;
using osu.Game.Tests;
namespace osu.Game.T... | mit | C# |
7fd8c26cc0d7518f5ba0fb1d57ddcecf3bf3d839 | Allow Manager construct | alesliehughes/monoDX,alesliehughes/monoDX | Microsoft.DirectX.DirectInput/Microsoft.DirectX.DirectInput/Manager.cs | Microsoft.DirectX.DirectInput/Microsoft.DirectX.DirectInput/Manager.cs | /*
* The MIT License (MIT)
*
* Copyright (c) 2013 Alistair Leslie-Hughes
*
* 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 ... | /*
* The MIT License (MIT)
*
* Copyright (c) 2013 Alistair Leslie-Hughes
*
* 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 ... | mit | C# |
07cae9cbb002d6825d5e7afef3e5af28afe534c6 | remove assembly version in AssemblyInfo (seems to create duplicate with appveyor assembly patching | jdevillard/JmesPath.Net | src/jmespath.net.signed/Properties/AssemblyInfo.cs | src/jmespath.net.signed/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: AssemblyCon... | 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: AssemblyCon... | apache-2.0 | C# |
42b1e9d6a4185cea488227a159de1d256456bb4b | Add xmldoc coverage of MultiplayerRoom | ppy/osu,peppy/osu,peppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.cs | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.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.Collections.Generic;
namespace osu.Game.Online.RealtimeMultiplayer
{
[Serializable]
public class MultiplayerRoom
{
/// <su... | // 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.Collections.Generic;
namespace osu.Game.Online.RealtimeMultiplayer
{
[Serializable]
public class MultiplayerRoom
{
public ... | mit | C# |
eff6b1710392d8477192c64304aaaa812e11ea2b | Test commit to experiment with the behaviour on Teamcity with integration tests against 4.1 server on windows. | neo4j/neo4j-dotnet-driver,neo4j/neo4j-dotnet-driver | Neo4j.Driver/Neo4j.Driver.Tests.Integration/Extensions/DatabaseExtensions.cs | Neo4j.Driver/Neo4j.Driver.Tests.Integration/Extensions/DatabaseExtensions.cs | // Copyright (c) 2002-2020 "Neo4j,"
// Neo4j Sweden AB [http://neo4j.com]
//
// This file is part of Neo4j.
//
// 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.... | // Copyright (c) 2002-2020 "Neo4j,"
// Neo4j Sweden AB [http://neo4j.com]
//
// This file is part of Neo4j.
//
// 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.... | apache-2.0 | C# |
ff830707e05ca0ce8638c2d35db441cca7b5e743 | Implement constructor for Leather Backpack (Lettered) | LambdaSix/SimpleInventory | SimpleInventory/SimpleInventory.Examples/InventoryLetters/LeatherBackpack.cs | SimpleInventory/SimpleInventory.Examples/InventoryLetters/LeatherBackpack.cs | using SimpleInventory.Examples.Common;
namespace SimpleInventory.Examples.InventoryLetters
{
public class LeatherBackpack : InventoryLetterBag<Item>
{
/// <inheritdoc />
public LeatherBackpack() : base("Leather Backpack (Lettered)", Volumes.Litres(25), Weights.Kilograms(1))
{ }
}
} | using SimpleInventory.Examples.Common;
namespace SimpleInventory.Examples.InventoryLetters
{
public class LeatherBackpack : InventoryLetterBag<Item>
{
}
} | mit | C# |
bfb9fd97804cb032c24e6652e80f8bf7c8b55e6e | Fix broken results of rebase | joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,kirillkos/joinrpg-net | Joinrpg/Models/PrintCharacterViewModel.cs | Joinrpg/Models/PrintCharacterViewModel.cs | using System.Collections.Generic;
using System.Linq;
using JoinRpg.DataModel;
using JoinRpg.Domain;
using JoinRpg.Web.Models.Plot;
namespace JoinRpg.Web.Models
{
public class PrintCharacterViewModel
{
public string ProjectName { get; }
public string CharacterName { get; }
public int FeeDue { get; }
... | using System.Collections.Generic;
using System.Linq;
using JoinRpg.DataModel;
using JoinRpg.Domain;
using JoinRpg.Web.Models.Plot;
namespace JoinRpg.Web.Models
{
public class PrintCharacterViewModel
{
public string ProjectName { get; }
public string CharacterName { get; }
public int FeeDue { get; }
... | mit | C# |
4fdd6ad7198dd8eb62427309e81f08e44417f58b | Use ForProject method | Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | Dependencies/Serializer.ProtoBuf/ProtoBufSerializer.cs | Dependencies/Serializer.ProtoBuf/ProtoBufSerializer.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.IO;
using ProtoBuf.Meta;
using Core2D;
namespace Dependencies
{
/// <summary>
/// ProtoBuf serializer.
/// </summary>
public class Pr... | // 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.IO;
using ProtoBuf.Meta;
using Core2D;
namespace Dependencies
{
/// <summary>
/// ProtoBuf serializer.
/// </summary>
public class Pr... | mit | C# |
6b8eff1ab7d14b972984576b7571305ba1014ce9 | make AuthLogAttribute more pretty and translate to Russian | ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth | GalleryMVC_With_Auth/CustomFilters/AuthLogAttribute.cs | GalleryMVC_With_Auth/CustomFilters/AuthLogAttribute.cs | using System.Web.Mvc;
namespace GalleryMVC_With_Auth.CustomFilters
{
public class AuthLogAttribute : AuthorizeAttribute
{
public AuthLogAttribute()
{
View = "AuthorizeFailed";
}
public string View { get; set; }
/// <summary>
/// Check for Autho... | using System.Web.Mvc;
namespace GalleryMVC_With_Auth.CustomFilters
{
public class AuthLogAttribute : AuthorizeAttribute
{
public AuthLogAttribute()
{
View = "AuthorizeFailed";
}
public string View { get; set; }
/// <summary>
/// Check for Autho... | apache-2.0 | C# |
ec8057f333e083a1a20b89ee42eed6cafb0eead3 | Update IV2EventsPublisher.cs | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/SFA.DAS.Commitments.Application/Interfaces/IV2EventsPublisher.cs | src/SFA.DAS.Commitments.Application/Interfaces/IV2EventsPublisher.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using SFA.DAS.Commitments.Application.Interfaces.ApprenticeshipEvents;
using SFA.DAS.Commitments.Domain.Entities;
using SFA.DAS.CommitmentsV2.Types;
namespace SFA.DAS.Commitments.Application.Interfaces
{
/// <summary>
/// This represents a se... | using System.Collections.Generic;
using System.Threading.Tasks;
using SFA.DAS.Commitments.Application.Interfaces.ApprenticeshipEvents;
using SFA.DAS.Commitments.Domain.Entities;
using SFA.DAS.CommitmentsV2.Types;
namespace SFA.DAS.Commitments.Application.Interfaces
{
/// <summary>
/// This represents a se... | mit | C# |
35ddcc4c2c31554cacf93480221adb38006d1009 | Add H1 back into profiles | smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp | src/StockportWebapp/Views/stockportgov/Profile/Semantic/index.cshtml | src/StockportWebapp/Views/stockportgov/Profile/Semantic/index.cshtml | @using StockportWebapp.Enums
@using StockportWebapp.Models
@model Profile
@{
ViewData["Title"] = Model.Title;
var articleTitle = Model.Breadcrumbs.LastOrDefault() != null ? Model.Breadcrumbs.LastOrDefault().Title + " - " : string.Empty;
ViewData["og:title"] = articleTitle + Model.Title;
Layout = "../.... | @using StockportWebapp.Enums
@using StockportWebapp.Models
@model Profile
@{
ViewData["Title"] = Model.Title;
var articleTitle = Model.Breadcrumbs.LastOrDefault() != null ? Model.Breadcrumbs.LastOrDefault().Title + " - " : string.Empty;
ViewData["og:title"] = articleTitle + Model.Title;
Layout = "../.... | mit | C# |
67ec0fd3351cb7bbafb2c7a4ca6df5b4b11eb6c6 | Update Index.cshtml | TheScienceOfCode/Sibelius.Web,TheScienceOfCode/Sibelius.Web,TheScienceOfCode/Sibelius.Web | Sibelius.Web/Views/Questions/Index.cshtml | Sibelius.Web/Views/Questions/Index.cshtml |
@{
ViewBag.Title = "Pregúntanos";
ViewBag.ContainerClass = "body-content";
}
<br />
<div class="row">
<div class="col-xs-12">
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsb... |
@{
ViewBag.Title = "Pregúntanos";
ViewBag.ContainerClass = "body-content";
}
<br />
<div class="row">
<div class="col-xs-12">
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Questions -->
<ins class="adsbygoog... | mit | C# |
22a5245968b70fdefe0e116fc664350f19169a40 | Fix silly whitespace. | patridge/XamarinForms-Tabs-Demo | SwitchingTabbedPageDemo/SwitchingTabbedPageDemo/App.cs | SwitchingTabbedPageDemo/SwitchingTabbedPageDemo/App.cs | using Xamarin.Forms;
namespace SwitchingTabbedPageDemo {
public class App : Application {
public App() {
MainPage = new MainTabbedPage();
}
protected override void OnStart() {
// Handle when your app starts
}
protected override void OnSleep() {
// Handle when your app sleeps
}
protected ove... | using Xamarin.Forms;
namespace SwitchingTabbedPageDemo {
public class App : Application {
public App() {
MainPage = new MainTabbedPage();
}
protected override void OnStart() {
// Handle when your app starts
}
protected override void OnSleep() {
// Handle when your app sleeps
}
p... | mit | C# |
0f15fb33486dd89d01778aa7538b886b3f642c95 | update language init | dreign/ComBoost,dreign/ComBoost | Wodsoft.ComBoost.Website/Controllers/HomeController.cs | Wodsoft.ComBoost.Website/Controllers/HomeController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Wodsoft.ComBoost.Website.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
private string[] _S... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Wodsoft.ComBoost.Website.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
private string[] _S... | mit | C# |
d5ab5337e2cb9a6e7492152f676b66800d6ebac9 | Add using statement | faithword/IdentityServer3.EntityFramework,buybackoff/IdentityServer3.EntityFramework,IdentityServer/IdentityServer3.EntityFramework | Source/Core.EntityFramework/Serialization/ClaimsPrincipalConverter.cs | Source/Core.EntityFramework/Serialization/ClaimsPrincipalConverter.cs | /*
* Copyright 2014 Dominick Baier, Brock Allen
*
* 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 la... | /*
* Copyright 2014 Dominick Baier, Brock Allen
*
* 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 la... | apache-2.0 | C# |
091ac83488581bf3d87fda7a58963ef8791979ff | Fix crash when bruiser monster can see player but can't path. | AndrewBaker/magecrawl,jeongroseok/magecrawl | Trunk/GameEngine/Actors/BruiserMonster.cs | Trunk/GameEngine/Actors/BruiserMonster.cs | using System;
using System.Collections.Generic;
using Magecrawl.Utilities;
namespace Magecrawl.GameEngine.Actors
{
internal class BruiserMonster : Monster
{
public BruiserMonster(string name, Point p, int maxHP, int vision, DiceRoll damage, double defense, double evade, double ctIncreaseModife... | using System;
using System.Collections.Generic;
using Magecrawl.Utilities;
namespace Magecrawl.GameEngine.Actors
{
internal class BruiserMonster : Monster
{
public BruiserMonster(string name, Point p, int maxHP, int vision, DiceRoll damage, double defense, double evade, double ctIncreaseModife... | bsd-2-clause | C# |
87faf8644b574d616c6f816477bf3758897b79df | Update grammar in AbstractClassShouldNotHavePublicCtorsAnalyzer | jwooley/code-cracker,giggio/code-cracker,code-cracker/code-cracker,code-cracker/code-cracker,carloscds/code-cracker,carloscds/code-cracker,eriawan/code-cracker | src/CSharp/CodeCracker/Usage/AbstractClassShouldNotHavePublicCtorsAnalyzer.cs | src/CSharp/CodeCracker/Usage/AbstractClassShouldNotHavePublicCtorsAnalyzer.cs | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using System.Collections.Immutable;
using System.Linq;
namespace CodeCracker.CSharp.Usage
{
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class AbstractC... | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using System.Collections.Immutable;
using System.Linq;
namespace CodeCracker.CSharp.Usage
{
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class AbstractC... | apache-2.0 | C# |
20b6a7033aacde36707cacd08f7821857adc4635 | Add Azure Function that updates the system status avg temp | vunvulear/IoTHomeProject,vunvulear/IoTHomeProject,vunvulear/IoTHomeProject | webapp-iot-dashboard/webapp-iot-dashboard/vunvulea-iot-core/SystemStatus.cs | webapp-iot-dashboard/webapp-iot-dashboard/vunvulea-iot-core/SystemStatus.cs | //using Microsoft.Framework.Configuration;
//using Microsoft.WindowsAzure.Storage;
//using Microsoft.WindowsAzure.Storage.Table;
//using System.Threading.Tasks;
//using LogLevel = Microsoft.Framework.Logging.LogLevel;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using System;
usin... | //using Microsoft.Framework.Configuration;
//using Microsoft.WindowsAzure.Storage;
//using Microsoft.WindowsAzure.Storage.Table;
//using System.Threading.Tasks;
//using LogLevel = Microsoft.Framework.Logging.LogLevel;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using System;
usin... | bsd-2-clause | C# |
a3310a0b265b9edbae606ca9c4f2a019aa114493 | Update TokenType's visibility | BERef/BibTeXLibrary | BibTeXLibrary/Token.cs | BibTeXLibrary/Token.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BibTeXLibrary
{
internal struct Token
{
public TokenType Type;
public string Value;
public Token(TokenType type, string value = "")
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BibTeXLibrary
{
internal struct Token
{
public TokenType Type;
public string Value;
public Token(TokenType type, string value = "")
... | mit | C# |
e1c80ecd204f6105a0c9cedbb56f2cf2409169c0 | Add RuntimeModeValidators() extension method | umbraco/Umbraco-CMS,abjerner/Umbraco-CMS,umbraco/Umbraco-CMS,arknu/Umbraco-CMS,arknu/Umbraco-CMS,abjerner/Umbraco-CMS,marcemarc/Umbraco-CMS,abryukhov/Umbraco-CMS,marcemarc/Umbraco-CMS,abryukhov/Umbraco-CMS,marcemarc/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,umbraco/Umbraco-CMS,abryukhov/Umbraco-CMS,arknu/U... | src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Collections.cs | src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Collections.cs | using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Packaging;
using Umbraco.Cms.Infrastructure.Persistence;
using Umbraco.Cms.Infrastructure.Persistence.Mappers;
using Umbraco.Cms.Infrastructure.Runtime;
namespace Umbraco.Extensions;
/// <summary>
/// Provides extension methods to the <see cref="I... | using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Packaging;
using Umbraco.Cms.Infrastructure.Persistence;
using Umbraco.Cms.Infrastructure.Persistence.Mappers;
namespace Umbraco.Extensions;
/// <summary>
/// Provides extension methods to the <see cref="IUmbracoBuilder" /> class.
/// </summary>
p... | mit | C# |
b581a45e053a306608b9b86ac1fe86a2a9b03835 | Fix for rooted UNC paths (#11982) | robertjf/Umbraco-CMS,arknu/Umbraco-CMS,marcemarc/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,marcemarc/Umbraco-CMS,robertjf/Umbraco-CMS,abryukhov/Umbraco-CMS,marcemarc/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/Umbraco-CMS,abjerner/Umbraco-CMS,arknu/Umbraco-CMS,umbraco/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/U... | src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.FileSystems.cs | src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.FileSystems.cs | using System.IO;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Hosting;
using Umbraco.Cms.Core.IO;
using Umbraco.Cms.Core.IO.MediaPath... | using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Umbraco.Cms.Core.Configuration.Models;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Hosting;
using Umbraco.Cms.Core.IO;
using Umbraco.Cms.Core.IO.MediaPathSchemes;
using Um... | mit | C# |
4b54fe2d24964a0a55cfaa37f996d9c9aac5643d | Fix reflection type handling of out parameters | IntelliTect/Coalesce,IntelliTect/Coalesce,IntelliTect/Coalesce,IntelliTect/Coalesce | src/IntelliTect.Coalesce/TypeDefinition/Wrappers/ReflectionParameterWrapper.cs | src/IntelliTect.Coalesce/TypeDefinition/Wrappers/ReflectionParameterWrapper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using System.Reflection;
namespace IntelliTect.Coalesce.TypeDefinition.Wrappers
{
internal class ReflectionParameterWrapper : ParameterWrapper
{
public ReflectionParameterWrap... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using System.Reflection;
namespace IntelliTect.Coalesce.TypeDefinition.Wrappers
{
internal class ReflectionParameterWrapper : ParameterWrapper
{
public ReflectionParameterWrap... | apache-2.0 | C# |
51497f72a6ec933a82139a0f1886fec7c1f02eb8 | Check length for pipe test rather than byte content (#12612) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/ResponseBodyTests.cs | src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/ResponseBodyTests.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.AspNetCore.Testing.xunit;
using Xunit;
namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests.InProces... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.AspNetCore.Testing.xunit;
using Xunit;
namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests.InProces... | apache-2.0 | C# |
86e2b63dac5fc981d67292e0d5333e2b0ff8f880 | correct class name | fillmember/ReactiveDiffusionEffects | Assets/FillMember/Editor/ReactiveDiffusionDisplacementWithDepthEditor.cs | Assets/FillMember/Editor/ReactiveDiffusionDisplacementWithDepthEditor.cs | using UnityEngine;
using UnityEditor;
namespace FillMember {
[CanEditMultipleObjects]
[CustomEditor(typeof(ReactiveDiffusionDisplacementWithDepth))]
public class ReactiveDiffusionDisplacementWithDepthEditor : Editor {
SerializedProperty iterations;
SerializedProperty feedRate;
SerializedProperty killR... | using UnityEngine;
using UnityEditor;
namespace FillMember {
[CanEditMultipleObjects]
[CustomEditor(typeof(ReactiveDiffusionDisplacementWithDepth))]
public class ReactiveDiffusionDisplacementEditor : Editor {
SerializedProperty iterations;
SerializedProperty feedRate;
SerializedProperty killRate;
S... | mit | C# |
e7f3af0be643e040d0b10f350df78a948ac93bd2 | Stop gazing at last gazed object if looking at nothing | PearMed/Pear-Interaction-Engine | Assets/Pear.InteractionEngine/Scripts/Controllers/Behaviors/GazeHover.cs | Assets/Pear.InteractionEngine/Scripts/Controllers/Behaviors/GazeHover.cs | using System;
using Pear.InteractionEngine.Interactables;
using Pear.InteractionEngine.Properties;
using Pear.InteractionEngine.Utils;
using UnityEngine;
namespace Pear.InteractionEngine.Controllers.Behaviors
{
/// <summary>
/// Update the interactable object's state when we hover over it
/// </summary>
... | using System;
using Pear.InteractionEngine.Interactables;
using Pear.InteractionEngine.Properties;
using Pear.InteractionEngine.Utils;
using UnityEngine;
namespace Pear.InteractionEngine.Controllers.Behaviors
{
/// <summary>
/// Update the interactable object's state when we hover over it
/// </summary>
... | mit | C# |
f767619fdc20e39600dcb9b1701877acf59d468d | Add TODO | terrajobst/apiporter | src/ApiPorter.Patterns/PatternVariable.Factories.cs | src/ApiPorter.Patterns/PatternVariable.Factories.cs | using System;
using System.Text.RegularExpressions;
namespace ApiPorter.Patterns
{
// TODO: new $type$<BoundExpression>()
//
// The type variable should match identifier in the generic name.
// Of course, we still need to create matchers for generic name.
// That's interesting because ArgumentVaria... | using System;
using System.Text.RegularExpressions;
namespace ApiPorter.Patterns
{
// Statement (optional limit n...m statements)
// MemberAccess
partial class PatternVariable
{
public static ExpressionVariable Expression(string name, string typeName = null, bool allowDerivedTypes = true)
... | mit | C# |
e72781230dcc706321dc92f5b34c4588613937d8 | Test not likely to pass most of the time | lahma/MassTransit,ccellar/MassTransit,D3-LucaPiombino/MassTransit,ccellar/MassTransit,vebin/MassTransit,jsmale/MassTransit,lahma/MassTransit,lahma/MassTransit,lahma/MassTransit,lahma/MassTransit,ccellar/MassTransit,vebin/MassTransit,ccellar/MassTransit,petedavis/MassTransit,abombss/MassTransit,petedavis/MassTransit,abo... | src/MassTransit.Tests/Transports/Multicast_Specs.cs | src/MassTransit.Tests/Transports/Multicast_Specs.cs | // Copyright 2007-2008 The Apache Software Foundation.
//
// 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 b... | // Copyright 2007-2008 The Apache Software Foundation.
//
// 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 re... | apache-2.0 | C# |
821a0ec0d217c3763d4d3e8bfeef457fc8973252 | simplify prop value extraction | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Agent/Infrastructure/Repositories/UrlsRepository.cs | src/FilterLists.Agent/Infrastructure/Repositories/UrlsRepository.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FilterLists.Agent.Core.Interfaces;
using FilterLists.Agent.Features.Urls.Models;
using FilterLists.Agent.Infrastructure.Clients;
using RestSharp;
namespace FilterLists.Agent.Infrastructure.Repositories
{
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FilterLists.Agent.Core.Interfaces;
using FilterLists.Agent.Features.Urls.Models;
using FilterLists.Agent.Infrastructure.Clients;
using RestSharp;
namespace FilterLists.Agent.Infrastructure.Repositories
{
public ... | mit | C# |
82512ad3eb42529c5bd8e20062837ae3c19683a4 | use FormatSize | scouter-project/sigar,hyperic/sigar,abhinavmishra14/sigar,OlegYch/sigar,lsjeng/sigar,monicasarbu/sigar,OlegYch/sigar,formicary/sigar,formicary/sigar,ChunPIG/sigar,cit-lab/sigar,kaustavha/sigar,ruleless/sigar,racker/sigar,monicasarbu/sigar,cit-lab/sigar,scouter-project/sigar,scouter-project/sigar,cit-lab/sigar,scouter-p... | bindings/dotnet/examples/Df.cs | bindings/dotnet/examples/Df.cs | using System;
using Hyperic.Sigar;
public class Df {
private static String FormatSize(ulong value) {
return Sigar.FormatSize(value * 1024);
}
public static void Main() {
Sigar sigar = new Sigar();
foreach (FileSystem fs in sigar.FileSystemList()) {
FileSystemUsage usa... | using System;
using Hyperic.Sigar;
public class Df {
public static void Main() {
Sigar sigar = new Sigar();
foreach (FileSystem fs in sigar.FileSystemList()) {
FileSystemUsage usage;
ulong used, avail, total, pct;
try {
usage = sigar.FileSystem... | apache-2.0 | C# |
be2ea7de3fc2d28a5b1dbfdbba350a8068b38799 | Update RendererBoundsGizmo.cs | UnityCommunity/UnityLibrary | Assets/Scripts/Editor/Gizmos/RendererBoundsGizmo.cs | Assets/Scripts/Editor/Gizmos/RendererBoundsGizmo.cs | // attach this to mesh, draws renderer bounds when gameobject is selected
// original source: http://answers.unity.com/answers/137475/view.html
using UnityEngine;
namespace UnityLibrary
{
public class RendererBoundsGizmo : MonoBehaviour
{
void OnDrawGizmosSelected()
{
Gizmos.color ... | // attach this to mesh, draws renderer bounds when gameobject is selected
// original source: http://answers.unity.com/answers/137475/view.html
using UnityEngine;
namespace UnityLibrary
{
public class RendererBoundsGizmo : MonoBehaviour
{
void OnDrawGizmos()
{
OnDrawGizmosSelected(... | mit | C# |
1890e459bb27ebd92edad91e7a77a38ebaec41af | Rename twilioService to notificationService | TwilioDevEd/clicktocall-csharp,TwilioDevEd/clicktocall-mvc4,TwilioDevEd/clicktocall-mvc4,TwilioDevEd/clicktocall-csharp,TwilioDevEd/clicktocall-csharp | ClickToCall.Web/Controllers/CallCenterController.cs | ClickToCall.Web/Controllers/CallCenterController.cs | using System.Configuration;
using System.Linq;
using System.Web.Mvc;
using ClickToCall.Web.Services;
using Twilio.TwiML.Mvc;
namespace ClickToCall.Web.Controllers
{
public class CallCenterController : TwilioController
{
private readonly INotificationService _notificationService;
public CallCe... | using System.Configuration;
using System.Linq;
using System.Web.Mvc;
using ClickToCall.Web.Services;
using Twilio.TwiML.Mvc;
namespace ClickToCall.Web.Controllers
{
public class CallCenterController : TwilioController
{
private readonly INotificationService _twilioService;
public CallCenterCo... | mit | C# |
e41764c161574983c49362cfb29ce23eb5941b74 | Update AddSignalRCore to respect user registered services (#2434) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.SignalR.Core/SignalRDependencyInjectionExtensions.cs | src/Microsoft.AspNetCore.SignalR.Core/SignalRDependencyInjectionExtensions.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 Microsoft.AspNetCore.SignalR;
using Microsoft.AspNetCore.SignalR.Internal;
using Microsoft.Extensions.DependencyInjection.Extensions;
namespace M... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.SignalR;
using Microsoft.AspNetCore.SignalR.Internal;
namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>... | apache-2.0 | C# |
87efc21c1f278c46883599eb38822a03d8cf9d39 | fix for GA | autumn009/TanoCSharpSamples | chap36/TargetTypedConditionalOperator/TargetTypedConditionalOperator/Program.cs | chap36/TargetTypedConditionalOperator/TargetTypedConditionalOperator/Program.cs | using System;
class A { };
class B: A { };
class Program
{
static void Main()
{
var b = true;
int? x = b ? 1 : null;
A y = new A() ?? new B();
Console.WriteLine($"{x} {y}");
}
}
| using System;
class A { };
class B: A { };
class C : A { };
class Program
{
static void Main()
{
var b = false;
int? x = b ? 1 : null;
A y = new B() ?? new C();
Console.WriteLine($"{x} {y}");
}
}
| mit | C# |
da8b49cd1de292c43a7ae85cc26e91be7d399ae3 | clean up AuthorizeController in anticipation of API refactor | solomobro/Instagram,solomobro/Instagram,solomobro/Instagram | src/Solomobro.Instagram.WebApiDemo/Controllers/AuthorizeController.cs | src/Solomobro.Instagram.WebApiDemo/Controllers/AuthorizeController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Results;
using Solomobro.Instagram.Interfaces;
using Solomobro.Instagram.WebApiDemo.Settings;
namespace Solomob... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Results;
using Solomobro.Instagram.Interfaces;
using Solomobro.Instagram.WebApiDemo.Settings;
namespace Solomob... | apache-2.0 | C# |
8696f01076245e648567f5eb4f1cf40289ff277d | Fix unit tests | quartz-software/kephas,quartz-software/kephas | src/Tests/Kephas.Messaging.Tests/DefaultMessageHandlerRegistryTest.cs | src/Tests/Kephas.Messaging.Tests/DefaultMessageHandlerRegistryTest.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DefaultMessageHandlerRegistryTest.cs" company="Kephas Software SRL">
// Copyright (c) Kephas Software SRL. All rights reserved.
// Licensed under the MIT license. See LICENSE ... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DefaultMessageHandlerRegistryTest.cs" company="Kephas Software SRL">
// Copyright (c) Kephas Software SRL. All rights reserved.
// Licensed under the MIT license. See LICENSE ... | mit | C# |
bca36123ad00d0840af90e9083f20e4e023ab181 | Fix webapi bootstrapper | ezekielthao/mozu-dotnet,Mozu/mozu-dotnet,rocky0904/mozu-dotnet,sanjaymandadi/mozu-dotnet | Libraries/Mozu.Api.WebToolKit/Mozu.Api.WebToolKit/AbstractWebApiBootstrapper.cs | Libraries/Mozu.Api.WebToolKit/Mozu.Api.WebToolKit/AbstractWebApiBootstrapper.cs | using System;
using System.Collections.Generic;
using System.Web.Http;
using System.Web.Mvc;
using Autofac;
using Autofac.Integration.WebApi;
using Mozu.Api.Logging;
using Mozu.Api.ToolKit;
using Mozu.Api.WebToolKit.Events;
using Mozu.Api.WebToolKit.Logging;
using Mozu.Api.WebToolKit.Controllers;
namespace Mozu.Api.W... | using System;
using System.Collections.Generic;
using System.Web.Http;
using System.Web.Mvc;
using Autofac;
using Autofac.Integration.WebApi;
using Mozu.Api.Logging;
using Mozu.Api.ToolKit;
using Mozu.Api.WebToolKit.Events;
using Mozu.Api.WebToolKit.Logging;
using Mozu.Api.WebToolKit.Controllers;
namespace Mozu.Api.W... | mit | C# |
943840eba8e5ec924fa2b26f287e952296a071f8 | Improve rendering speed for Gtk#'s SKWidget | mono/SkiaSharp,mono/SkiaSharp,mono/SkiaSharp,mono/SkiaSharp,mono/SkiaSharp,mono/SkiaSharp,mono/SkiaSharp | source/SkiaSharp.Views/SkiaSharp.Views.Gtk/SKWidget.cs | source/SkiaSharp.Views/SkiaSharp.Views.Gtk/SKWidget.cs | using System;
using System.ComponentModel;
using SkiaSharp.Views.Desktop;
namespace SkiaSharp.Views.Gtk
{
[ToolboxItem(true)]
public class SKWidget : global::Gtk.DrawingArea
{
private Gdk.Pixbuf pix;
private SKImageInfo imgInfo;
private SKSurface surface;
public SKWidget()
{
}
public SKSize CanvasS... | using System;
using System.ComponentModel;
using SkiaSharp.Views.Desktop;
namespace SkiaSharp.Views.Gtk
{
[ToolboxItem(true)]
public class SKWidget : global::Gtk.DrawingArea
{
private Gdk.Pixbuf pix;
public SKWidget()
{
DoubleBuffered = false;
}
public SKSize CanvasSize => pix == null ? SKSize.Empty... | mit | C# |
b486112d296354f0d9d46f4fea72ea8bdb5c2bef | Use null propagation | jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,Perspex/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,grokys/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia... | src/Avalonia.ReactiveUI/AutoDataTemplateBindingHook.cs | src/Avalonia.ReactiveUI/AutoDataTemplateBindingHook.cs | using System;
using System.Linq;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using Avalonia.Markup.Xaml.Templates;
using ReactiveUI;
namespace Avalonia.ReactiveUI
{
/// <summary>
/// AutoDataTemplateBindingHook is a binding hook that checks ItemsControls
/// that don't have DataTemplates, and assi... | using System;
using System.Linq;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using Avalonia.Markup.Xaml.Templates;
using ReactiveUI;
namespace Avalonia.ReactiveUI
{
/// <summary>
/// AutoDataTemplateBindingHook is a binding hook that checks ItemsControls
/// that don't have DataTemplates, and assi... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.