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 |
|---|---|---|---|---|---|---|---|---|
6d0e46134919956ba20a115218b5ba7f43fa933c | Throw if no matching property accessor found. | AvaloniaUI/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,Perspex/Perspex,jkoritzinsky/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,akrisiun/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Av... | src/Avalonia.Base/Data/Core/PropertyAccessorNode.cs | src/Avalonia.Base/Data/Core/PropertyAccessorNode.cs | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Linq;
using System.Reactive.Linq;
using Avalonia.Data.Core.Plugins;
namespace Avalonia.Data.Core
{
internal class Property... | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Linq;
using System.Reactive.Linq;
using Avalonia.Data.Core.Plugins;
namespace Avalonia.Data.Core
{
internal class Property... | mit | C# |
4dbb5ad3fa020e416ffc183010003b8d858756ae | Add test for non repo directory | AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning | src/NerdBank.GitVersioning.Tests/RepoFinderTests.cs | src/NerdBank.GitVersioning.Tests/RepoFinderTests.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace Nerdbank.GitVersioning.Tests
{
public class RepoFinderTests : RepoTestBase
{
private MethodInfo... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace Nerdbank.GitVersioning.Tests
{
public class RepoFinderTests : RepoTestBase
{
private MethodInfo... | mit | C# |
629aa6ecfe779f02155810f9d161750d49ec0925 | add bitmap to texture conversion method | TarasOsiris/Unity-Android-JNI-Toolkit | Scripts/BitmapUtils.cs | Scripts/BitmapUtils.cs | using UnityEngine;
namespace DeadMosquito.JniToolkit
{
public static class BitmapUtils
{
const string AndroidGraphicsBitmapFactory = "android.graphics.BitmapFactory";
public static AndroidJavaObject Texture2DToAndroidBitmap(this Texture2D tex2D, bool isPng = true)
{
var encoded = isPng ? tex2D.EncodeToP... | using UnityEngine;
namespace DeadMosquito.JniToolkit
{
public static class BitmapUtils
{
const string AndroidGraphicsBitmapFactory = "android.graphics.BitmapFactory";
public static AndroidJavaObject Texture2DToAndroidBitmap(this Texture2D tex2D, bool isPng = true)
{
var encoded = isPng ? tex2D.EncodeToP... | apache-2.0 | C# |
e543efe16e92b8b756f5a4ed6b72194602ba95c8 | Add ErrorMessage property | dsteinweg/TeacherPouch,dsteinweg/TeacherPouch,dsteinweg/TeacherPouch,dsteinweg/TeacherPouch | src/TeacherPouch/ViewModels/PhotoCreateViewModel.cs | src/TeacherPouch/ViewModels/PhotoCreateViewModel.cs | namespace TeacherPouch.ViewModels
{
public class PhotoCreateViewModel
{
public PhotoCreateViewModel(string pendingPhotoPath)
{
PendingPhotoPath = pendingPhotoPath;
}
public string PendingPhotoPath { get; set; }
public string PhotoName { get; set; }
p... | namespace TeacherPouch.ViewModels
{
public class PhotoCreateViewModel
{
public PhotoCreateViewModel(string pendingPhotoPath)
{
PendingPhotoPath = pendingPhotoPath;
}
public string PendingPhotoPath { get; set; }
public string PhotoName { get; set; }
p... | mit | C# |
fc300a6fb6065ee452e685165a25f91dae3f86fc | Fix #2 - by updating to .netcore 3.0 | springcomp/HttpTrackingMiddleware | src/WebApi/Controllers/WeatherForecastController.cs | src/WebApi/Controllers/WeatherForecastController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace HttpTracking.Controllers
{
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace HttpTracking.Controllers
{
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBa... | apache-2.0 | C# |
83cecb274aed3a1c002862b806d6e0d92e45463e | Use First() instead of FirstOrDefault() in InstalledFilesTestData | feliwir/openSage,feliwir/openSage | src/OpenSage.Game.Tests/InstalledFilesTestData.cs | src/OpenSage.Game.Tests/InstalledFilesTestData.cs | using System;
using System.IO;
using System.Linq;
using Xunit.Abstractions;
namespace OpenSage.Data.Tests
{
internal static class InstalledFilesTestData
{
private static readonly IInstallationLocator Locator;
static InstalledFilesTestData()
{
Locator = new RegistryInstalla... | using System;
using System.IO;
using System.Linq;
using Xunit.Abstractions;
namespace OpenSage.Data.Tests
{
internal static class InstalledFilesTestData
{
private static readonly IInstallationLocator Locator;
static InstalledFilesTestData()
{
Locator = new RegistryInstalla... | mit | C# |
44eb749652e7601f996b83392241f8e2622fe35a | add max files count check | Borayvor/ASP.NET-MVC-CourseProject-2017,Borayvor/ASP.NET-MVC-CourseProject-2017,Borayvor/ASP.NET-MVC-CourseProject-2017 | PhotoArtSystem/Web/PhotoArtSystem.Web.Infrastructure/Filters/BaseValidateFileAttribute.cs | PhotoArtSystem/Web/PhotoArtSystem.Web.Infrastructure/Filters/BaseValidateFileAttribute.cs | namespace PhotoArtSystem.Web.Infrastructure.Filters
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web;
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class BaseValidateFileAttribute : Val... | namespace PhotoArtSystem.Web.Infrastructure.Filters
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web;
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class BaseValidateFileAttribute : Val... | mit | C# |
6b8f04ba8f472257030e3ead1b34a6192ce695cb | fix #81 | AntShares/AntSharesCore | neo-gui/BigDecimal.cs | neo-gui/BigDecimal.cs | using System.Numerics;
namespace Neo
{
internal struct BigDecimal
{
private readonly BigInteger value;
private readonly byte decimals;
public BigInteger Value => value;
public byte Decimals => decimals;
public BigDecimal(BigInteger value, byte decimals)
{
... | using System.Numerics;
namespace Neo
{
internal struct BigDecimal
{
private readonly BigInteger value;
private readonly byte decimals;
public BigInteger Value => value;
public byte Decimals => decimals;
public BigDecimal(BigInteger value, byte decimals)
{
... | mit | C# |
8333c2bce1cd3f83667ad29c5a905e0975c2575f | update output with Sir Bot | ryanswanstrom/topicnew2 | messages/EchoDialog.csx | messages/EchoDialog.csx | using System;
using System.Threading.Tasks;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Connector;
// For more information about this template visit http://aka.ms/azurebots-csharp-basic
[Serializable]
public class EchoDialog : IDialog<object>
{
protected int count = 1;
public Task StartAsync(IDia... | using System;
using System.Threading.Tasks;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Connector;
// For more information about this template visit http://aka.ms/azurebots-csharp-basic
[Serializable]
public class EchoDialog : IDialog<object>
{
protected int count = 1;
public Task StartAsync(IDia... | mit | C# |
cdcdacb76a947a1d6427eebe20460272e8ffc2a2 | Update comments | sonvister/Binance | src/Binance/WebSocket/IWebSocketStream.cs | src/Binance/WebSocket/IWebSocketStream.cs | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Binance.WebSocket.Events;
namespace Binance.WebSocket
{
/// <summary>
/// WebSocket layer to add support for combined streams.
/// </summary>
public interface IWebSocketStream
{
/// ... | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Binance.WebSocket.Events;
namespace Binance.WebSocket
{
/// <summary>
/// WebSocket layer to add support for combined streams.
/// </summary>
public interface IWebSocketStream
{
/// ... | mit | C# |
7cbc835a04cb63d2aa4e4615c0358e4fc3fdb9c6 | Tidy VirtualDirectoryPrepender. | BluewireTechnologies/cassette,andrewdavey/cassette,damiensawyer/cassette,BluewireTechnologies/cassette,andrewdavey/cassette,damiensawyer/cassette,honestegg/cassette,damiensawyer/cassette,andrewdavey/cassette,honestegg/cassette,honestegg/cassette | src/Cassette/VirtualDirectoryPrepender.cs | src/Cassette/VirtualDirectoryPrepender.cs | using System;
namespace Cassette
{
/// <summary>
/// Prepends the virtual directory to the beginning of application relative URL paths.
/// </summary>
class VirtualDirectoryPrepender : IUrlModifier
{
readonly string virtualDirectory;
public VirtualDirectoryPrepender(stri... | namespace Cassette
{
/// <summary>
/// Prepends the virtual directory to the beginning of relative URLs.
/// </summary>
public class VirtualDirectoryPrepender : IUrlModifier
{
readonly string virtualDirectory;
public VirtualDirectoryPrepender(string virtualDirectory)
... | mit | C# |
779dc83d4443b920ad14341b5baf83f1e6cdc23c | Allow test.exe to connect to arbitrary buses | mono/dbus-sharp,Tragetaschen/dbus-sharp,arfbtwn/dbus-sharp,openmedicus/dbus-sharp,openmedicus/dbus-sharp,arfbtwn/dbus-sharp,mono/dbus-sharp,Tragetaschen/dbus-sharp | examples/Test.cs | examples/Test.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
using org.freedesktop.DBus;
public class ManagedDBusTest
{
public static void Main (string[] args)
{
string addr;
if (args.Length == 0)
addr = Addre... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
using org.freedesktop.DBus;
public class ManagedDBusTest
{
public static void Main ()
{
Connection conn = Connection.Open (Address.Session);
ObjectPat... | mit | C# |
fc6e203e0196d085055600774212f4d84a019217 | make sure avatar precisely follows camera | quinkennedy/unity-yellow-sub | Assets/Scripts/FollowCam.cs | Assets/Scripts/FollowCam.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class FollowCam : NetworkBehaviour {
// Use this for initialization
void Start () {
Debug.Log("[FollowCam:Start]");
if (isLocalPlayer && Camera.main != null)
{
transform... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class FollowCam : NetworkBehaviour {
// Use this for initialization
void Start () {
Debug.Log("[FollowCam:Start]");
if (isLocalPlayer && Camera.main != null)
{
transform... | isc | C# |
1ef6b9416f678ba5d3c54abc64b7355f29276dc4 | Remove trailing whitespace | khellang/nancy-bootstrapper-prototype | src/Nancy.Core/DefaultPlatformServices.cs | src/Nancy.Core/DefaultPlatformServices.cs | using System;
using Microsoft.Extensions.PlatformAbstractions;
using Nancy.Core.Scanning;
namespace Nancy.Core
{
public class DefaultPlatformServices : IPlatformServices
{
private static readonly Lazy<IPlatformServices> DefaultInstance =
new Lazy<IPlatformServices>(() => new DefaultPlatfor... | using System;
using Microsoft.Extensions.PlatformAbstractions;
using Nancy.Core.Scanning;
namespace Nancy.Core
{
public class DefaultPlatformServices : IPlatformServices
{
private static readonly Lazy<IPlatformServices> DefaultInstance =
new Lazy<IPlatformServices>(() => new DefaultPlatfor... | apache-2.0 | C# |
84bf3872549da6dbfd1f27587300b89eed0e0b29 | Handle correctly invalid public keys | openchain/openchain | src/Openchain.Ledger/SignatureEvidence.cs | src/Openchain.Ledger/SignatureEvidence.cs | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# |
c276de7ad69156985e2958bb7e0693f204f70588 | Update NetDesktopWinFormsWAM Program.cs add missing required header (#3592) | AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet | tests/devapps/WAM/NetFrameworkWam/Program.cs | tests/devapps/WAM/NetFrameworkWam/Program.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Windows.Forms;
using Microsoft.Identity.Client.NativeInterop;
namespace NetDesktopWinForms
{
static class Program
{
/// <summary>
/// The main entry point for the applicat... | using System;
using System.Windows.Forms;
using Microsoft.Identity.Client.NativeInterop;
namespace NetDesktopWinForms
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
... | mit | C# |
401c813209139a7716cb6dffc1b64f44dcc0137e | fix serialization error | DuncanmaMSFT/docfx,pascalberger/docfx,LordZoltan/docfx,superyyrrzz/docfx,928PJY/docfx,sergey-vershinin/docfx,928PJY/docfx,DuncanmaMSFT/docfx,LordZoltan/docfx,dotnet/docfx,LordZoltan/docfx,928PJY/docfx,sergey-vershinin/docfx,hellosnow/docfx,hellosnow/docfx,superyyrrzz/docfx,superyyrrzz/docfx,dotnet/docfx,sergey-vershini... | src/docfx/Models/FileMetadataPairsItem.cs | src/docfx/Models/FileMetadataPairsItem.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode
{
using System;
using Microsoft.DocAsCode.Glob;
using Microsoft.DocAsCode.Utility;
[Serializable]
public class FileM... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode
{
using System;
using Microsoft.DocAsCode.Glob;
[Serializable]
public class FileMetadataPairsItem
{
public G... | mit | C# |
79247798a3f970f46e94641da742c65a85d92afc | Fix a silly copy-paste error in ZooKeeper | mooso/BlueCoffee,mooso/BlueCoffee,mooso/BlueCoffee,mooso/BlueCoffee | Libraries/Microsoft.Experimental.Azure.ZooKeeper/ZooKeeperNodeBase.cs | Libraries/Microsoft.Experimental.Azure.ZooKeeper/ZooKeeperNodeBase.cs | using Microsoft.Experimental.Azure.JavaPlatform;
using Microsoft.WindowsAzure.ServiceRuntime;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Microsoft.Experimental.Azure.ZooKeeper
{
/// <summary>
/// The base class for a typical Azure Zoo Keeper node.
/// </summary>
public abstrac... | using Microsoft.Experimental.Azure.JavaPlatform;
using Microsoft.WindowsAzure.ServiceRuntime;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Microsoft.Experimental.Azure.ZooKeeper
{
/// <summary>
/// The base class for a typical Azure Zoo Keeper node.
/// </summary>
public abstrac... | mit | C# |
0a8eeff2955e57895ee5f90eda6db8d6b947a396 | Add a stronger dependency on UnityEngine for testing. | PrecisionMojo/Unity3D.DLLs | PluginTest/TestPlugin.cs | PluginTest/TestPlugin.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace PluginTest
{
public class TestPlugin : MonoBehaviour
{
private void Start()
{
Debug.Log("Start called");
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PluginTest
{
public class TestPlugin
{
}
}
| mit | C# |
771d6f8074051e4fe3d21ed1b28169ffa7b6c3bb | Update test entity with attribute to denote partition/row key | dontjee/hyde | src/Hyde.IntegrationTest/DecoratedItem.cs | src/Hyde.IntegrationTest/DecoratedItem.cs | using System.Data.Services.Common;
using TechSmith.Hyde.Common.DataAnnotations;
namespace TechSmith.Hyde.IntegrationTest
{
/// <summary>
/// Class with decorated partition and row key properties, for testing purposes.
/// </summary>
class DecoratedItem
{
[PartitionKey]
public string Id
... | using TechSmith.Hyde.Common.DataAnnotations;
namespace TechSmith.Hyde.IntegrationTest
{
/// <summary>
/// Class with decorated partition and row key properties, for testing purposes.
/// </summary>
class DecoratedItem
{
[PartitionKey]
public string Id
{
get;
set;
... | bsd-3-clause | C# |
16404ee7d22af5dcf8ac98bfc6441e657cb0e69b | Update Program.cs | bugrooter/UMengPush | UMengPushTest/Program.cs | UMengPushTest/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using UMengPush;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Push app = new Push("xxx", "xxx");
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using UMengPush;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Push app = new Push("59a40c13310c931fdb... | apache-2.0 | C# |
7f86dd2f680d9f1a84aaf0a971eaf62fb99d2afa | Fix namespace | AlexGhiondea/Fitbit.NET,WestDiscGolf/Fitbit.NET,aarondcoleman/Fitbit.NET,WestDiscGolf/Fitbit.NET,amammay/Fitbit.NET,AlexGhiondea/Fitbit.NET,amammay/Fitbit.NET,aarondcoleman/Fitbit.NET,WestDiscGolf/Fitbit.NET,aarondcoleman/Fitbit.NET,AlexGhiondea/Fitbit.NET,amammay/Fitbit.NET | Fitbit.Portable.Tests/JsonDotNetSerializerTests.cs | Fitbit.Portable.Tests/JsonDotNetSerializerTests.cs | using Fitbit.Api.Portable;
using Newtonsoft.Json;
using NUnit.Framework;
namespace Fitbit.Portable.Tests
{
[TestFixture]
public class JsonDotNetSerializerTests
{
public class TestClass
{
[JsonProperty("testproperty")]
public string TestProperty { get; set; }
... | using Fitbit.Api.Portable;
using Newtonsoft.Json;
using NUnit.Framework;
namespace Fitbit.Tests
{
[TestFixture]
public class JsonDotNetSerializerTests
{
public class TestClass
{
[JsonProperty("testproperty")]
public string TestProperty { get; set; }
// ... | mit | C# |
58f83701b1aacd022dff7257dde9e246f95b97eb | Order usings | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.InlineReviews/Commands/ToggleInlineCommentMarginCommand.cs | src/GitHub.InlineReviews/Commands/ToggleInlineCommentMarginCommand.cs | using System;
using System.Threading.Tasks;
using System.ComponentModel.Composition;
using GitHub.Commands;
using GitHub.Services;
using GitHub.Extensions;
using GitHub.VisualStudio;
using GitHub.InlineReviews.Margins;
using GitHub.Services.Vssdk.Commands;
using Microsoft.VisualStudio.TextManager.Interop;
using Micros... | using System;
using System.Threading.Tasks;
using System.ComponentModel.Composition;
using GitHub.Commands;
using GitHub.Services;
using GitHub.VisualStudio;
using GitHub.InlineReviews.Margins;
using GitHub.Services.Vssdk.Commands;
using Microsoft.VisualStudio.TextManager.Interop;
using Microsoft.VisualStudio;
using M... | mit | C# |
c25cd66dc18783e2374e1d0781f97827051ae81a | modify the link to point to Link.To(api, parameters) | 2sic/app-blog,2sic/app-blog,2sic/app-blog | api/BlogController.cs | api/BlogController.cs | // Add namespaces to enable security in Oqtane & Dnn despite the differences
#if NETCOREAPP
using Microsoft.AspNetCore.Authorization; // .net core [AllowAnonymous] & [Authorize]
using Microsoft.AspNetCore.Mvc; // .net core [HttpGet] / [HttpPost] etc.
#else
using System.Web.Http; // this enables [HttpGet] and... | // Add namespaces to enable security in Oqtane & Dnn despite the differences
#if NETCOREAPP
using Microsoft.AspNetCore.Authorization; // .net core [AllowAnonymous] & [Authorize]
using Microsoft.AspNetCore.Mvc; // .net core [HttpGet] / [HttpPost] etc.
#else
using System.Web.Http; // this enables [HttpGet] and... | mit | C# |
e946886a0033b5d81b68a206e513cc85667fdcf4 | Update copyright year | codingteam/codingteam.org.ru,codingteam/codingteam.org.ru | Views/Shared/_Layout.cshtml | Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<title>@ViewData["Title"]</title>
<link rel="icon" type="image/png" href="favicon.png">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="~/style.css"/>
</head>
<body>
<div class="container">... | <!DOCTYPE html>
<html>
<head>
<title>@ViewData["Title"]</title>
<link rel="icon" type="image/png" href="favicon.png">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="~/style.css"/>
</head>
<body>
<div class="container">... | mit | C# |
8253aa43b714f26d2532b11545151c87a4ba0bb6 | Update MaciejHorbacz.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/MaciejHorbacz.cs | src/Firehose.Web/Authors/MaciejHorbacz.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 MaciejHorbacz : IAmACommunityMember
{
public string FirstName => "Maciej";
public string L... | 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 MateuszCzerniawski : IAmACommunityMember
{
public string FirstName => "Maciej";
public str... | mit | C# |
73b9a8a4326f1fc6cb5b52ed9cfd0114a7138c4c | Add index action stub | appharbor/foo,appharbor/foo | src/Foo.Web/Controllers/HomeController.cs | src/Foo.Web/Controllers/HomeController.cs | using System;
using System.Web.Mvc;
namespace Foo.Web.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
throw new NotImplementedException();
}
}
}
| using System.Web.Mvc;
namespace Foo.Web.Controllers
{
public class HomeController : Controller
{
}
}
| mit | C# |
b8dbfa31045f3e801918e512118c2f094daf2b4b | move model declaration outside of clode block | albertodall/eShopOnContainers,albertodall/eShopOnContainers,dotnet-architecture/eShopOnContainers,albertodall/eShopOnContainers,skynode/eShopOnContainers,skynode/eShopOnContainers,dotnet-architecture/eShopOnContainers,skynode/eShopOnContainers,dotnet-architecture/eShopOnContainers,albertodall/eShopOnContainers,dotnet-a... | src/Web/WebMVC/Views/Catalog/Index.cshtml | src/Web/WebMVC/Views/Catalog/Index.cshtml | @model Microsoft.eShopOnContainers.WebMVC.ViewModels.CatalogViewModels.IndexViewModel
@{
ViewData["Title"] = "Catalog";
}
<section class="esh-catalog-hero">
<div class="container">
<img class="esh-catalog-title" src="~/images/main_banner_text.png" />
</div>
</section>
<section class="esh-catalog-... | @{
ViewData["Title"] = "Catalog";
@model Microsoft.eShopOnContainers.WebMVC.ViewModels.CatalogViewModels.IndexViewModel
}
<section class="esh-catalog-hero">
<div class="container">
<img class="esh-catalog-title" src="~/images/main_banner_text.png" />
</div>
</section>
<section class="esh-catal... | mit | C# |
bcea41c3afffb470319bbbf58d7a7d749e59c10d | Make View a sealed, internal class. ViewResult should be used if returning an explicit representation. | WebApiContrib/WebApiContrib.Formatting.Html,WebApiContrib/WebApiContrib.Formatting.Html | src/WebApiContrib.Formatting.Html/View.cs | src/WebApiContrib.Formatting.Html/View.cs | using System;
namespace WebApiContrib.Formatting.Html
{
/// <summary>
/// Represents default implementation of <see cref="IView"/> interface.
/// </summary>
internal sealed class View : IView
{
/// <summary>
/// Creates a new <see cref="View"/> instance.
/// </summary>
... | using System;
namespace WebApiContrib.Formatting.Html
{
/// <summary>
/// Represents default implementation of <see cref="IView"/> interface.
/// </summary>
public class View : IView
{
/// <summary>
/// Creates a new <see cref="View"/> instance.
/// </summary>
/// <... | mit | C# |
54bfbef485f84b5886c10209fe9e8adaf34b7754 | add stacktrace to the error message | ucdavis/Purchasing,ucdavis/Purchasing,ucdavis/Purchasing | Purchasing.Web/App_Start/VerifyIndexesRole.cs | Purchasing.Web/App_Start/VerifyIndexesRole.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using Microsoft.WindowsAzure.ServiceRuntime;
using Purchasing.Web.Services;
namespace Purchasing.Web.App_Start
{
public class VerifyIndexesRole : RoleEntryPoint
{
private static readonly IIndex... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using Microsoft.WindowsAzure.ServiceRuntime;
using Purchasing.Web.Services;
namespace Purchasing.Web.App_Start
{
public class VerifyIndexesRole : RoleEntryPoint
{
private static readonly IIndex... | mit | C# |
fe27f1d628ef82d07b789e814dc913e9b09be3df | delete comment | damianrusinek/classes-pas,damianrusinek/classes-pas,damianrusinek/classes-pas,damianrusinek/classes-pas,damianrusinek/classes-pas,damianrusinek/classes-pas | dns_client/dns_client.cs | dns_client/dns_client.cs | using System;
using System.Linq;
using System.Net;
using static System.Net.Dns;
namespace DnsClient
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 1)
{
Console.Error.WriteLine("Usage: run with parameter <host-name>");
... | using System;
using System.Linq;
using System.Net;
using static System.Net.Dns;
namespace DnsClient
{
class Program
{
static void Main(string[] args)
{
// c# 7.0 tinkering, use this version of input error handling if you want
if (args.Length != 1)
{
... | mit | C# |
d49b7350f20ce27aab8184e8b6f9ea2a70006479 | Use ConfigureAwait in Venue | leddt/Stockfighter | Stockfighter/Venue.cs | Stockfighter/Venue.cs | using System.Threading.Tasks;
using Stockfighter.Helpers;
namespace Stockfighter
{
public class Venue
{
public string Symbol { get; private set; }
public Venue(string symbol)
{
Symbol = symbol;
}
public async Task<bool> IsUp()
{
using (... | using System.Threading.Tasks;
using Stockfighter.Helpers;
namespace Stockfighter
{
public class Venue
{
public string Symbol { get; private set; }
public Venue(string symbol)
{
Symbol = symbol;
}
public async Task<bool> IsUp()
{
using (... | mit | C# |
55567d498b037dbfd9887bc231d8aff12519a15b | Add handling for missing / | Wyamio/Wyam,Wyamio/Wyam,Wyamio/Wyam | themes/Docs/Samson/Shared/_Infobar.cshtml | themes/Docs/Samson/Shared/_Infobar.cshtml | @{
string baseEditUrl = Context.String(DocsKeys.BaseEditUrl);
FilePath editFilePath = Model.FilePath(Wyam.Web.WebKeys.EditFilePath);
if(!string.IsNullOrWhiteSpace(baseEditUrl) && editFilePath != null)
{
if (!baseEditUrl[baseEditUrl.Length - 1].equals('/'))
{
baseEditUrl += "/... | @{
string baseEditUrl = Context.String(DocsKeys.BaseEditUrl);
FilePath editFilePath = Model.FilePath(Wyam.Web.WebKeys.EditFilePath);
if(!string.IsNullOrWhiteSpace(baseEditUrl) && editFilePath != null)
{
string editUrl = baseEditUrl + editFilePath.FullPath;
<div><p><a href="@editUrl"><i c... | mit | C# |
288a14d79886f135edcec5060bbd0df26f2aad2c | Hide results icon on small devices | tpkelly/voting-application,tpkelly/voting-application,stevenhillcox/voting-application,Generic-Voting-Application/voting-application,Generic-Voting-Application/voting-application,JDawes-ScottLogic/voting-application,tpkelly/voting-application,stevenhillcox/voting-application,JDawes-ScottLogic/voting-application,JDawes-... | VotingApplication/VotingApplication.Web/Views/Dashboard/MyPolls.cshtml | VotingApplication/VotingApplication.Web/Views/Dashboard/MyPolls.cshtml | <div layout="row" ng-controller="MyPollsController">
<div flex-gt-md="50" flex-md="80" flex-sm="90"
offset-gt-md="25" offset-md="10" offset-sm="5">
<h1 class="md-display-3">My Polls</h1>
<md-content>
<loading-spinner loaded="loaded"></loading-spinner>
<div ng-s... | <div layout="row" ng-controller="MyPollsController">
<div flex-gt-md="50" flex-md="80" flex-sm="90"
offset-gt-md="25" offset-md="10" offset-sm="5">
<h1 class="md-display-3">My Polls</h1>
<md-content>
<loading-spinner loaded="loaded"></loading-spinner>
<div ng-s... | apache-2.0 | C# |
516f06bbe5f99ca52bfa29e4ff393db941f2e941 | Fix nonce calculation | LykkeCity/EthereumApiDotNetCore,LykkeCity/EthereumApiDotNetCore,LykkeCity/EthereumApiDotNetCore | src/Services/Signature/NonceCalculator.cs | src/Services/Signature/NonceCalculator.cs | using System;
using System.Linq;
using System.Numerics;
using Nethereum.Hex.HexTypes;
using Nethereum.RPC.Eth.DTOs;
using Nethereum.RPC.Eth.Transactions;
using Nethereum.Web3;
using System.Threading.Tasks;
using Nethereum.JsonRpc.Client;
using Newtonsoft.Json.Linq;
namespace Lykke.Service.EthereumCore.Services.Signat... | using System;
using System.Linq;
using System.Numerics;
using Nethereum.Hex.HexTypes;
using Nethereum.RPC.Eth.DTOs;
using Nethereum.RPC.Eth.Transactions;
using Nethereum.Web3;
using System.Threading.Tasks;
using Nethereum.JsonRpc.Client;
using Newtonsoft.Json.Linq;
namespace Lykke.Service.EthereumCore.Services.Signat... | mit | C# |
96abbe975d6c81ce8fb3eb1055f5929704cfdae3 | Update version to 2.0.4.2. | askeladdk/aiedit,askeladdk/aiedit | AssemblyInfo.cs | AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("C&C AI Editor")]
[assembly: Assembl... | using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("C&C AI Editor")]
[assembly: Assembl... | isc | C# |
6f293f6bfcade99bcc53b33d8c2678c07c2e893c | order and add attributes for developing | mika-f/Sagitta | Source/PixivNet/Models/ApplicationInfo.cs | Source/PixivNet/Models/ApplicationInfo.cs | using Newtonsoft.Json;
using Pixiv.Attributes;
namespace Pixiv.Models
{
public class ApplicationInfo : ApiResponse
{
[ApiVersion]
[MarkedAs("7.7.7")]
[JsonProperty("latest_version")]
public string LatestVersion { get; set; }
[ApiVersion]
[MarkedAs("7.7.7")]
... | using Newtonsoft.Json;
namespace Pixiv.Models
{
/// <summary>
/// アプリケーション情報
/// </summary>
public class ApplicationInfo : ApiResponse
{
/// <summary>
/// リリースされている最新バージョンの番号
/// </summary>
[JsonProperty("latest_version")]
public string LatestVersion... | mit | C# |
676d2ab45070fe1d2ac3c784277edb20a9f6284a | Bump to 3.2.0 | SnowflakePowered/michi | Michi/Properties/AssemblyInfo.cs | Michi/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mi... | 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("Mi... | mit | C# |
b1a67651b4d4343bfe029cd9a9eb4406a4d88c35 | Remove unnecessary async/await | Krusen/PinSharp | PinSharp/UrlEncodedHttpClient.cs | PinSharp/UrlEncodedHttpClient.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace PinSharp
{
internal class UrlEncodedHttpClient : IHttpClient
{
private HttpClient Client { get; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace PinSharp
{
internal class UrlEncodedHttpClient : IHttpClient
{
private HttpClient Client { get; }
... | unlicense | C# |
0486c1ba202b437f1921af2e86e1b85d42c5ef24 | fix culture | klinkby/klinkby.security | Properties/CommonAssemblyInfo.cs | Properties/CommonAssemblyInfo.cs | using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#endif
[assembly: AssemblyCompany("Mads Klinkby")]
[assembly: AssemblyProduct("Klinkby")]
[assembly: AssemblyCo... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#endif
[assembly: AssemblyCompany("Mads Klinkby")]
[assembly: AssemblyProduct("Klinkby")]
[assembly: AssemblyCopyright("Copyright © Mad... | mit | C# |
2bd5e39fe15c759815e8ad27f6f4847876b39202 | Add Color | nicogiddev/myFirstProgramCSharp | myFirstProgramCSharp/myFirstProgramCSharp/Program.cs | myFirstProgramCSharp/myFirstProgramCSharp/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace myFirstProgramCSharp
{
class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Blue;
Console.BackgroundColor = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace myFirstProgramCSharp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World !");
Console.Read();
}
}
}
| mit | C# |
e94ccc44d286887d6b6ac675f45d7efc4cdf32ed | add of product code /desc | Appleseed/base,Appleseed/base | Applications/Appleseed.Base.Alerts.Console/Appleseed.Base.Alerts/Model/SolrResponseItem.cs | Applications/Appleseed.Base.Alerts.Console/Appleseed.Base.Alerts/Model/SolrResponseItem.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Appleseed.Base.Alerts.Model
{
class SolrResponseItem
{
public string id { get; set; }
public string item_type { get; set; }
public string address_1 { get; set;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Appleseed.Base.Alerts.Model
{
class SolrResponseItem
{
public string id { get; set; }
public string item_type { get; set; }
public string address_1 { get; set;... | apache-2.0 | C# |
77b67a3ed6ec6dd0ae4356b852379960d3f7585f | Clarify definition of success | DasAllFolks/SharpGraphs | Graph/IGraph.cs | Graph/IGraph.cs | using System;
using System.Collections.Generic;
namespace Graph
{
/// <summary>
/// Represents a graph.
/// </summary>
/// <typeparam name="V">The vertex type.</typeparam>
/// <typeparam name="E">The edge type.</typeparam>
public interface IGraph<V, E> : IEquatable<IGraph<V, E>> where E: IEdge... | using System;
using System.Collections.Generic;
namespace Graph
{
/// <summary>
/// Represents a graph.
/// </summary>
/// <typeparam name="V">The vertex type.</typeparam>
/// <typeparam name="E">The edge type.</typeparam>
public interface IGraph<V, E> : IEquatable<IGraph<V, E>> where E: IEdge... | apache-2.0 | C# |
2b5b000bfb3a22e798956ec3a51e3d6920fa6479 | Remove unused usings | AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,AvaloniaUI/AvaloniaEdit,Avalonia... | src/AvaloniaEdit/Rendering/TextViewCachedElements.cs | src/AvaloniaEdit/Rendering/TextViewCachedElements.cs | // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, co... | // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, co... | mit | C# |
a0adf52659452e44203cdc3f34e9d835bb25c6e8 | Revert "Allowing to use multiple instance of StartableAttribute" | clariuslabs/clide,clariuslabs/clide,clariuslabs/clide | src/Clide.Interfaces/Startable/StartableAttribute.cs | src/Clide.Interfaces/Startable/StartableAttribute.cs | using System;
using System.ComponentModel.Composition;
namespace Clide
{
/// <summary>
/// Provides the metadata attriute to export a component that needs to be started
/// </summary>
[MetadataAttribute]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class StartableAttr... | using System;
using System.ComponentModel.Composition;
namespace Clide
{
/// <summary>
/// Provides the metadata attriute to export a component that needs to be started
/// </summary>
[MetadataAttribute]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class StartableAttri... | mit | C# |
0de9430661cd30292ccada345d90c83b28f652f7 | Fix non-collection formatting regression w/ refactoring. | yfakariya/NLiblet,yfakariya/NLiblet | src/CoreUtilities/Text/Formatters/ObjectFormatter.cs | src/CoreUtilities/Text/Formatters/ObjectFormatter.cs | #region -- License Terms --
//
// NLiblet
//
// Copyright (C) 2011 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/licenses/LI... | #region -- License Terms --
//
// NLiblet
//
// Copyright (C) 2011 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/licenses/LI... | apache-2.0 | C# |
3323449a7a3680adf6a14d1e2700016d53a78063 | Use config from current working dir (#1622) | AntShares/AntShares | src/neo/Utility.cs | src/neo/Utility.cs | using Akka.Actor;
using Akka.Event;
using Microsoft.Extensions.Configuration;
using Neo.Plugins;
using System;
using System.IO;
using System.Reflection;
namespace Neo
{
public static class Utility
{
internal class Logger : ReceiveActor
{
public Logger()
{
... | using Akka.Actor;
using Akka.Event;
using Microsoft.Extensions.Configuration;
using Neo.Plugins;
using System;
namespace Neo
{
public static class Utility
{
internal class Logger : ReceiveActor
{
public Logger()
{
Receive<InitializeLogger>(_ => Sender.Tel... | mit | C# |
fe7191c0cbb8bf253a95fb78abbbd96224edd9e9 | Increase version number | ermshiperete/BuildTasks.TextTemplating | BuildTasks.TextTemplating/Properties/AssemblyInfo.cs | BuildTasks.TextTemplating/Properties/AssemblyInfo.cs | // Copyright (c) 2015 SIL International
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your proje... | // Copyright (c) 2015 SIL International
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your proje... | mit | C# |
2b67beddea156f36708098682e5cd91fd632bc0a | Implement PV in Monitor Controller | cmoussalli/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,MagedAlNaamani/DynThings | DynThings.WebPortal/Controllers/MonitorController.cs | DynThings.WebPortal/Controllers/MonitorController.cs | /////////////////////////////////////////////////////////////////
// Created by : Caesar Moussalli //
// TimeStamp : 31-1-2016 //
// Content : Handel the Monitor Actions //
// Notes : ... | /////////////////////////////////////////////////////////////////
// Created by : Caesar Moussalli //
// TimeStamp : 31-1-2016 //
// Content : Handel the Monitor Actions //
// Notes : ... | mit | C# |
915d0afb898e56bc56e6ecd6f693296be6c29e1f | Fix problems with launching and exiting the app | ParriauxMaxime/assignement3 | a/Program.cs | a/Program.cs | using System;
using System.Net;
namespace a
{
class Program
{
//Code is dirty, who cares, it's C#.
static void Main(string[] args)
{
Server server = new Server(IPAddress.Any, 5000);
server.Start();
Console.WriteLine("Press q to exit");
... | using System;
using System.Net;
namespace a
{
class Program
{
//Code is dirty, who cares, it's C#.
static void Main(string[] args)
{
//IPHostEntry heserver = Dns.GetHostEntry(Dns.GetHostName());
//foreach (IPAddress curAdd in heserver.AddressList)
... | mit | C# |
231d82ada90d78b77792f2c0efaa2b77f809884a | Drop out-of-date field | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | unity/EditorPlugin/Utils/RiderScriptableSingleton.cs | unity/EditorPlugin/Utils/RiderScriptableSingleton.cs | using UnityEngine;
namespace JetBrains.Rider.Unity.Editor.Utils
{
// no need to set cache, because otherwise new Unity process will restore the value from the file cache.
//[Location("JetBrainsRiderPluginCache.txt", LocationAttribute.Location.LibraryFolder)]
internal class RiderScriptableSingleton: ScriptObjec... | using UnityEngine;
namespace JetBrains.Rider.Unity.Editor.Utils
{
// no need to set cache, because otherwise new Unity process will restore the value from the file cache.
//[Location("JetBrainsRiderPluginCache.txt", LocationAttribute.Location.LibraryFolder)]
internal class RiderScriptableSingleton: ScriptObjec... | apache-2.0 | C# |
99282dbb2a43760596e68eeaf575fbff9bd221e6 | Bump version to 1.0.2 | github-for-unity/Unity,github-for-unity/Unity,github-for-unity/Unity | common/SolutionInfo.cs | common/SolutionInfo.cs | #pragma warning disable 436
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("GitHub for Unity")]
[assembly: AssemblyVersion(System.AssemblyVersionInformation.VersionForAssembly)]
[assembly: AssemblyFileVersion(Sys... | #pragma warning disable 436
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("GitHub for Unity")]
[assembly: AssemblyVersion(System.AssemblyVersionInformation.VersionForAssembly)]
[assembly: AssemblyFileVersion(Sys... | mit | C# |
c3350a792369347731e7ed4829f5c2dc9ae85c19 | add setters to RotateAroundBy properties | florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho | Bindings/Portable/Actions/Intervals/RotateAroundBy.cs | Bindings/Portable/Actions/Intervals/RotateAroundBy.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Urho.Actions
{
public class RotateAroundBy : FiniteTimeAction
{
public Vector3 Point { get; set; }
public float DeltaX { get; set; }
public float DeltaY { get; set; }
public float De... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Urho.Actions
{
public class RotateAroundBy : FiniteTimeAction
{
#region Constructors
public RotateAroundBy(float duration, Vector3 point, float deltaX, float deltaY, float deltaZ, Trans... | mit | C# |
fd43d2f982b6dea6a227681449f9d05362dc8326 | Update ApplicationInsightsExceptionTelemeter.cs | tiksn/TIKSN-Framework | TIKSN.Core/Analytics/Telemetry/ApplicationInsightsExceptionTelemeter.cs | TIKSN.Core/Analytics/Telemetry/ApplicationInsightsExceptionTelemeter.cs | using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights.DataContracts;
namespace TIKSN.Analytics.Telemetry
{
public class ApplicationInsightsExceptionTelemeter : IExceptionTelemeter
{
[Obsolete]
public async Task TrackExceptionAsync(Exception ex... | using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights.DataContracts;
namespace TIKSN.Analytics.Telemetry
{
public class ApplicationInsightsExceptionTelemeter : IExceptionTelemeter
{
public async Task TrackException(Exception exception) => await this.T... | mit | C# |
6631f0de1958755724c8f5c375b544e79def2ec6 | add CommentMarkdownHeading | smoogipoo/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu,peppy/osu,peppy/osu-new,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu | osu.Game/Overlays/Comments/CommentMarkdownContainer.cs | osu.Game/Overlays/Comments/CommentMarkdownContainer.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 Markdig.Syntax;
using Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Game.Graphics.Containers.Markdown;
namespace osu.Game.Ove... | // 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 Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Game.Graphics.Containers.Markdown;
namespace osu.Game.Overlays.Comments
{
p... | mit | C# |
6c4586876aa913947babf3e87b64508b7f6e0d18 | Revert "Added revision to version" | MatthiasKainer/DotNetRules.Events,MatthiasKainer/DotNetRules.Events,MatthiasKainer/DotNetRules.Events | Sources/DotNetRules.Events/Properties/AssemblyInfo.cs | Sources/DotNetRules.Events/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | mit | C# |
fdca5b8bb9f25c8edec115fd63ad3a7da5116290 | Fix NullReferenceException | setchi/NoteEditor,setchi/NotesEditor | Assets/Scripts/NotesEditor/CanvasEvents.cs | Assets/Scripts/NotesEditor/CanvasEvents.cs | using UniRx;
using UniRx.Triggers;
using UnityEngine;
public class CanvasEvents : MonoBehaviour
{
public Subject<Vector3> VerticalLineOnMouseDownObservable = new Subject<Vector3>();
public Subject<Vector3> ScrollPadOnMouseEnterObservable = new Subject<Vector3>();
public Subject<Vector3> ScrollPadOnMouseDo... | using UniRx;
using UniRx.Triggers;
using UnityEngine;
public class CanvasEvents : MonoBehaviour
{
public Subject<Vector3> VerticalLineOnMouseDownObservable = new Subject<Vector3>();
public Subject<Vector3> ScrollPadOnMouseEnterObservable = new Subject<Vector3>();
public Subject<Vector3> ScrollPadOnMouseDo... | mit | C# |
07f85790f1f49ebf6edffefa1e8cb3ae26096dfe | Remove warning on Location, override GetHashcode() | Curdflappers/UltimateTicTacToe | Assets/Resources/Scripts/Location.cs | Assets/Resources/Scripts/Location.cs |
public class Location
{
int row, col;
public int Row { get { return row; } }
public int Col { get { return col; } }
public Location(int r, int c)
{
row = r;
col = c;
}
public override bool Equals(object obj)
{
if(obj is Location)
{
Location... | public class Location {
int row, col;
public int Row { get { return row; } }
public int Col { get { return col; } }
public Location(int r, int c)
{
row = r;
col = c;
}
public override bool Equals(object obj)
{
if(obj is Location)
{
Location ... | mit | C# |
002b1721d8da891e097663c17e97b74bc1aaa107 | update dependency nuget.commandline to v6.1.0 | FantasticFiasco/mvvm-dialogs | build/build.cake | build/build.cake | #tool nuget:?package=NuGet.CommandLine&version=6.1.0
#load utils.cake
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Re... | #tool nuget:?package=NuGet.CommandLine&version=6.0.0
#load utils.cake
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Re... | apache-2.0 | C# |
08e5de11b7426a4ee330313936f30e725f816651 | Update HttpPoller.cs | keith-hall/Extensions,keith-hall/Extensions | src/HttpPoller.cs | src/HttpPoller.cs | using System;
using System.Net;
using System.Reactive.Linq;
namespace HallLibrary.Extensions
{
public static class HttpPoller
{
public struct ResponseDetails
{
public WebHeaderCollection Headers;
public string Text;
}
/// <summary>
/// Poll a <paramref name="url"/> at the specified <paramref name=... | using System;
using System.Net;
using System.Reactive.Linq;
namespace HallLibrary.Extensions
{
public static class HttpPoller
{
public struct ResponseDetails
{
public WebHeaderCollection Headers;
public string Text;
}
public static IObservable<ResponseDetails> PollURL(string url, TimeSpan frequency, ... | apache-2.0 | C# |
8040c91956d62f6a5153ead77f0e1bbacaa51df6 | Update index.cshtml | Aleksandrovskaya/apmathclouddif | site/index.cshtml | site/index.cshtml | @{
double t_0 = 0;
double t_end = 150;
double step = 0.1;
int N = Convert.ToInt32((t_end-t_0)/step) + 1;
String data = "";
bool show_chart = false;
if (IsPost){
show_chart = true;
var number = Request["text1"];
double xd = number.AsInt();
double t = 0;
double x1 = 0;
double x2 = 0;
d... | @{
double t_0 = 0;
double t_end = 150;
double step = 0.1;
int N = Convert.ToInt32((t_end-t_0)/step) + 1;
String data = "";
bool show_chart = false;
if (IsPost){
show_chart = true;
var number = Request["text1"];
double xd = number.AsInt();
double t = 0;
double x1 = 0;
double x2 = 0;
d... | mit | C# |
07194f785eb59dcec514b1dbfa23a822667cc535 | change color scheme | takenet/lime-csharp | src/Lime.Client.TestConsole/Converters/DataOperationToBrushConverter.cs | src/Lime.Client.TestConsole/Converters/DataOperationToBrushConverter.cs | using Lime.Protocol.Network;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
namespace Lime.Client.TestConsole.Converters
{
public class DataOperationToBrushConverter : ... | using Lime.Protocol.Network;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
namespace Lime.Client.TestConsole.Converters
{
public class DataOperationToBrushConverter : ... | apache-2.0 | C# |
284e8d55216db65c6b0e9fc795eb127789a29cce | Update HttpPoller.cs | keith-hall/Extensions,keith-hall/Extensions | src/HttpPoller.cs | src/HttpPoller.cs | using System;
using System.Net;
using System.Reactive.Linq;
namespace HallLibrary.Extensions
{
/// <summary>
/// Contains static methods useful for polling a REST/HTTP server's resources.
/// </summary>
public static class HttpPoller
{
/// <summary>
/// Contains the response headers and plain text content fro... | using System;
using System.Net;
using System.Reactive.Linq;
namespace HallLibrary.Extensions
{
/// <summary>
/// Contains static methods useful for polling a REST/HTTP server's resources.
/// </summary>
public static class HttpPoller
{
/// <summary>
/// Contains the response headers and plain text content fro... | apache-2.0 | C# |
624c4c7bd50fe0edb2c063aa766aebc600846c1a | Fix for missing toolsVersion | pvcbuild/pvc-msbuild | src/PvcMSBuild.cs | src/PvcMSBuild.cs | using Microsoft.Build.Evaluation;
using Microsoft.Build.Utilities;
using PvcCore;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Xml;
namespace PvcPlugins
{
public class PvcMSBu... | using Microsoft.Build.Evaluation;
using Microsoft.Build.Utilities;
using PvcCore;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Xml;
namespace PvcPlugins
{
public class PvcMSBu... | mit | C# |
b98f655eca1b80c9926b0ba11cb19708443a2ece | Add unit test for complex types. | alastairs/BobTheBuilder,fffej/BobTheBuilder | BobTheBuilder.Tests/BuildFacts.cs | BobTheBuilder.Tests/BuildFacts.cs | using System;
using Ploeh.AutoFixture.Xunit;
using Xunit;
using Xunit.Extensions;
namespace BobTheBuilder.Tests
{
public class BuildFacts
{
[Fact]
public void CreateADynamicInstanceOfTheRequestedType()
{
var sut = A.BuilderFor<SampleType>();
var result = sut.B... | using Ploeh.AutoFixture.Xunit;
using Xunit;
using Xunit.Extensions;
namespace BobTheBuilder.Tests
{
public class BuildFacts
{
[Fact]
public void CreateADynamicInstanceOfTheRequestedType()
{
var sut = A.BuilderFor<SampleType>();
var result = sut.Build();
... | apache-2.0 | C# |
c28adfcbf1e3b3cb1afa9a5b0940156f05c75a7b | Add additional script languages which use the arabic shaper | SixLabors/Fonts | src/SixLabors.Fonts/Tables/AdvancedTypographic/Shapers/ShaperFactory.cs | src/SixLabors.Fonts/Tables/AdvancedTypographic/Shapers/ShaperFactory.cs | // Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.Fonts.Unicode;
namespace SixLabors.Fonts.Tables.AdvancedTypographic.Shapers
{
internal static class ShaperFactory
{
/// <summary>
/// Creates a Shaper based on the given script language.
///... | // Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.Fonts.Unicode;
namespace SixLabors.Fonts.Tables.AdvancedTypographic.Shapers
{
internal static class ShaperFactory
{
/// <summary>
/// Creates a Shaper based on the given script language.
///... | apache-2.0 | C# |
019160398ae26aa3a48ffefb6ae03f8d2ed6bfb7 | Fix a bug: When clean up disused images, the DefaultThumbnail.jpg could be removed by mistake if all books have their own images. | allenlooplee/Lbookshelf | Lbookshelf/ViewModels/SettingsFileSystemViewModel.cs | Lbookshelf/ViewModels/SettingsFileSystemViewModel.cs | using Lbookshelf.Business;
using Microsoft.Expression.Interactivity.Core;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using System.Configuration;
using Lbookshelf.Utils;
using Lbookshelf.Models;
using L... | using Lbookshelf.Business;
using Microsoft.Expression.Interactivity.Core;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using System.Configuration;
using Lbookshelf.Utils;
using Lbookshelf.Models;
using L... | mit | C# |
80400ceb031a9e46004c46388cb64a65fadf6770 | fix IgnoreFromJava attribute on ThreadPoolExecutor | dot42/api | Java/Util/Concurrent/ThreadPoolExecutor.cs | Java/Util/Concurrent/ThreadPoolExecutor.cs | // Copyright (C) 2014 dot42
//
// Original filename: ThreadPoolExecutor.cs
//
// 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
/... | // Copyright (C) 2014 dot42
//
// Original filename: ThreadPoolExecutor.cs
//
// 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
/... | apache-2.0 | C# |
85a6a284623bd69fe161ced83d9b402eb6afa0ce | return value of ToConsole() method | xappido/ConsoleUtils.Net | ConsoleUtils.Net/OutputExtensions.cs | ConsoleUtils.Net/OutputExtensions.cs | using System;
namespace ConsoleUtils.Net
{
public static class OutputExtensions
{
public static string ToConsole(this string output, ConsoleColor color = ConsoleColor.Gray, bool asLine = true)
{
var prevColor = Console.ForegroundColor;
Console.ForegroundColor = color;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleUtils.Net
{
public static class OutputExtensions
{
public static void ToConsole(this string output, ConsoleColor color = ConsoleColor.Gray, bool asLine = true)
{... | mit | C# |
94fad1b9bf7257a7de75ceb3b53515327a0bbb5c | Update StructuredLoggerCheckerUtil.cs | bartdesmet/roslyn,jasonmalinowski/roslyn,jasonmalinowski/roslyn,mavasani/roslyn,bartdesmet/roslyn,shyamnamboodiripad/roslyn,CyrusNajmabadi/roslyn,shyamnamboodiripad/roslyn,shyamnamboodiripad/roslyn,bartdesmet/roslyn,jasonmalinowski/roslyn,mavasani/roslyn,CyrusNajmabadi/roslyn,CyrusNajmabadi/roslyn,mavasani/roslyn,dotne... | src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs | src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System;
using System.IO;
using System.Linq;
using Microsoft.Build.Logging.StructuredLogger... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System;
using System.IO;
using System.Linq;
using Microsoft.Build.Logging.StructuredLogger... | mit | C# |
dc14cc14cf7b37097785a327fb24603e332b7dd9 | Create server side API for single multiple answer question | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRepository
{
private readonly TrappistDbContext _dbContext... | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRepository
{
private readonly TrappistDbContext _dbContext... | mit | C# |
6e21c36ef373b14f7bd882f5de78861aa1ee4f7c | Update server side API for single multiple answer question | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | mit | C# |
037f58920736d2133b63d205284da1dc418ebe18 | remove the gateway from the building | YangEricLiu/Pop,YangEricLiu/Pop | src/BL/API/DataContract/BuildingDto.cs | src/BL/API/DataContract/BuildingDto.cs | using System;
using System.Runtime.Serialization;
namespace SE.DSP.Pop.BL.API.DataContract
{
[DataContract]
public class BuildingDto
{
[DataMember]
public long? HierarchyId { get; set; }
[DataMember]
public string Name { get; set; }
[DataMember]
public lon... | using System;
using System.Runtime.Serialization;
namespace SE.DSP.Pop.BL.API.DataContract
{
[DataContract]
public class BuildingDto
{
[DataMember]
public long? HierarchyId { get; set; }
[DataMember]
public string Name { get; set; }
[DataMember]
public lon... | apache-2.0 | C# |
0c66b50fb3e2907d99443266863be44ce4e56c1e | fix IsSerializable in DN | MehdyKarimpour/extensions,AlejandroCano/extensions,signumsoftware/framework,signumsoftware/framework,MehdyKarimpour/extensions,AlejandroCano/extensions,signumsoftware/extensions,signumsoftware/extensions | Signum.Entities.Extensions/Basics/PropertyRouteDN.cs | Signum.Entities.Extensions/Basics/PropertyRouteDN.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Signum.Utilities;
using System.Reflection;
using System.Linq.Expressions;
namespace Signum.Entities.Basics
{
[Serializable, EntityKind(EntityKind.SystemString, EntityData.Master)]
public class PropertyRouteD... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Signum.Utilities;
using System.Reflection;
using System.Linq.Expressions;
namespace Signum.Entities.Basics
{
[EntityKind(EntityKind.SystemString, EntityData.Master)]
public class PropertyRouteDN : Identifiab... | mit | C# |
eb91c9ca1de192be6e3df3661238c49266c56a67 | 更新Demo,避免在某些特殊情况下MessageHandler日志记录过程异常 | JeffreySu/WxOpen,JeffreySu/WxOpen | src/Senparc.Weixin.WxOpen/Senparc.Weixin.WxOpen/MessageHandlers/WxOpenMessageHandler.Message.cs | src/Senparc.Weixin.WxOpen/Senparc.Weixin.WxOpen/MessageHandlers/WxOpenMessageHandler.Message.cs | #region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2018 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain ... | #region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2018 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain ... | apache-2.0 | C# |
dca96e519b975162bec46762864676401465ea21 | Allow bind interface to be customized. | Silvenga/MailTrace,Silvenga/MailTrace,Silvenga/MailTrace | src/MailTrace.Host.Selfhost/Program.cs | src/MailTrace.Host.Selfhost/Program.cs | namespace MailTrace.Host.Selfhost
{
using System;
using System.Linq;
using MailTrace.Data.Postgresql;
using MailTrace.Host.Data;
using Microsoft.Owin.Hosting;
internal static class Program
{
private static void Main(string[] args)
{
var baseAddress = args.Firs... | namespace MailTrace.Host.Selfhost
{
using System;
using MailTrace.Data.Postgresql;
using MailTrace.Host;
using MailTrace.Host.Data;
using Microsoft.Owin.Hosting;
internal static class Program
{
private static void Main(string[] args)
{
const string baseAddress... | mit | C# |
e04c7c5b91f39221bbf8c11f31e984ef2a9a50d3 | Bump Spatialite too, 1.0.1 | Smartrak/TileSharp,Smartrak/TileSharp | TileSharp.Data.Spatialite/Properties/AssemblyInfo.cs | TileSharp.Data.Spatialite/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ti... | 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("Ti... | bsd-2-clause | C# |
a1156a328e5346fb8b0a63a1b3e9808de33f3009 | undo inappropriate recapitalization by sergey | smoothdeveloper/SimpleScene,RealRui/SimpleScene,jeske/SimpleScene | SimpleScene/Cameras/SSCameraThirdPerson.cs | SimpleScene/Cameras/SSCameraThirdPerson.cs | // Copyright(C) David W. Jeske, 2013
// Released to the public domain. Use, modify and relicense at will.
using System;
using OpenTK;
namespace SimpleScene
{
public class SSCameraThirdPerson : SSCamera
{
public SSObject FollowTarget;
public float followDistance = 10.0f;
public float minFollowDistance = 0.5f;... | // Copyright(C) David W. Jeske, 2013
// Released to the public domain. Use, modify and relicense at will.
using System;
using OpenTK;
namespace SimpleScene
{
public class SSCameraThirdPerson : SSCamera
{
public SSObject FollowTarget;
public float FollowDistance = 10.0f;
public float minFollowDistance = 0.5f;... | apache-2.0 | C# |
f9e2de33fbe54fc639c2de8017183b689c4bd665 | update email type enum to allow for flags | bolorundurowb/vCardLib | vCardLib/Enums/EmailType.cs | vCardLib/Enums/EmailType.cs | using System;
namespace vCardLib.Enums
{
/// <summary>
/// Various email address types in a vCard
/// </summary>
[Flags]
public enum EmailType
{
None = 0,
Work = 1,
Internet = 2,
Home = 4,
AOL = 8,
Applelink = 16,
IBMMail = 32
}... | namespace vCardLib.Enums
{
/// <summary>
/// Various email address types in a vCard
/// </summary>
public enum EmailType
{
Work,
Internet,
Home,
AOL,
Applelink,
IBMMail,
None
}
}
| mit | C# |
caa19029e36262f61bb9bdc6d4403b2b1815937d | remove moq | guitarrapc/AWSLambdaCSharpIntroduction | AWSLambdaCSharpIntroduction/SlackSlashCommandWebhook/SlackSlashCommandWebhook.Tests/FunctionTest.cs | AWSLambdaCSharpIntroduction/SlackSlashCommandWebhook/SlackSlashCommandWebhook.Tests/FunctionTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
using Amazon.Lambda.Core;
using Amazon.Lambda.TestUtilities;
using Newtonsoft.Json;
using SlackSlashCommandWebhook;
namespace SlackSlashCommandWebhook.Tests
{
public class FunctionTest
{
[Fact... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
using Amazon.Lambda.Core;
using Amazon.Lambda.TestUtilities;
using Moq;
using Newtonsoft.Json;
using SlackSlashCommandWebhook;
namespace SlackSlashCommandWebhook.Tests
{
public class FunctionTest
{
... | mit | C# |
34d62183c36870965d89b13d9640b58eb3a51d65 | Fix autoAck when BasicGet throws exception | EasyNetQ/EasyNetQ,micdenny/EasyNetQ | Source/EasyNetQ.Hosepipe/QueueRetrieval.cs | Source/EasyNetQ.Hosepipe/QueueRetrieval.cs | using System;
using System.Collections.Generic;
using EasyNetQ.Consumer;
using RabbitMQ.Client;
using RabbitMQ.Client.Exceptions;
namespace EasyNetQ.Hosepipe;
public interface IQueueRetrieval
{
IEnumerable<HosepipeMessage> GetMessagesFromQueue(QueueParameters parameters);
}
public class QueueRetrieval : IQueueRe... | using System;
using System.Collections.Generic;
using EasyNetQ.Consumer;
using RabbitMQ.Client.Exceptions;
namespace EasyNetQ.Hosepipe;
public interface IQueueRetrieval
{
IEnumerable<HosepipeMessage> GetMessagesFromQueue(QueueParameters parameters);
}
public class QueueRetrieval : IQueueRetrieval
{
private r... | mit | C# |
5f144409951a29f9df8bd1f3a8373d39d8135b06 | Increase dll version | GAnatoliy/ViewModelLoader | ViewModelLoader/Properties/AssemblyInfo.cs | ViewModelLoader/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Vi... | 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("Vi... | mit | C# |
4307704e6d8f6b4c8a781a936cd2725e148a7954 | Switch to auto assembly numbering | amweiss/vigilant-cupcake | VigilantCupcake/Properties/AssemblyInfo.cs | VigilantCupcake/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Resources;
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("Vigi... | using System;
using System.Reflection;
using System.Resources;
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("Vigi... | mit | C# |
776ffbcbdcb6eaa8e32f989a7527bc8a201362dc | Add documentation for alpha format. | SuperJMN/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,akrisiun/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,SuperJMN/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,Av... | src/Avalonia.Visuals/Platform/AlphaFormat.cs | src/Avalonia.Visuals/Platform/AlphaFormat.cs | namespace Avalonia.Platform
{
/// <summary>
/// Describes how to interpret the alpha component of a pixel.
/// </summary>
public enum AlphaFormat
{
/// <summary>
/// All pixels have their alpha premultiplied in their color components.
/// </summary>
Premul,
/... | namespace Avalonia.Platform
{
public enum AlphaFormat
{
Premul,
Unpremul,
Opaque
}
}
| mit | C# |
2e73af68a2ce966882c8247cd3629520e0e29684 | Update Startup.Auth.Salesforce.cs | wadewegner/Salesforce.Owin.Security.Provider,wadewegner/Salesforce.Owin.Security.Provider,wadewegner/Salesforce.Owin.Security.Provider | src/Web/App_Start/Startup.Auth.Salesforce.cs | src/Web/App_Start/Startup.Auth.Salesforce.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Web;
using Owin;
using Salesforce.Owin.Security.Provider;
namespace Web
{
public partial class Startup
{
public void ConfigureSalesforce(IAppBuilder app)
{
app.UseSalesforc... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Web;
using Owin;
using Salesforce.Owin.Security.Provider;
namespace Web
{
public partial class Startup
{
public void ConfigureSalesforce(IAppBuilder app)
{
app.UseSalesforc... | apache-2.0 | C# |
9e33face791c92f4281f5bd74a6f1735aa6b08d0 | Add test for authorization requirement in TraktUserCustomListItemsRemoveRequest | henrikfroehling/TraktApiSharp | Source/Tests/TraktApiSharp.Tests/Experimental/Requests/Users/OAuth/TraktUserCustomListItemsRemoveRequestTests.cs | Source/Tests/TraktApiSharp.Tests/Experimental/Requests/Users/OAuth/TraktUserCustomListItemsRemoveRequestTests.cs | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
using TraktApiSharp.Objects.Post.Users.CustomListItems;
using TraktApiSharp.Objects.Post.Users.CustomL... | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
using TraktApiSharp.Objects.Post.Users.CustomListItems;
using TraktApiSharp.Objects.Post.Users.CustomL... | mit | C# |
cb23202a308041d4f0dcdf95bc466ab548c695c6 | Revert "Change controller action to debug Kudu issue .." | ShamsulAmry/Malaysia-GST-Checker | Amry.Gst.Web/Controllers/HomeController.cs | Amry.Gst.Web/Controllers/HomeController.cs | using System.Web.Mvc;
using Amry.Gst.Properties;
using WebMarkupMin.Mvc.ActionFilters;
namespace Amry.Gst.Web.Controllers
{
public class HomeController : Controller
{
const int OneWeek = 604800;
const int OneYear = 31536000;
[Route, MinifyHtml, OutputCache(Duration = OneWeek)]
... | using System.Web.Mvc;
using Amry.Gst.Properties;
using WebMarkupMin.Mvc.ActionFilters;
namespace Amry.Gst.Web.Controllers
{
public class HomeController : Controller
{
const int OneWeek = 604800;
const int OneYear = 31536000;
[Route, MinifyHtml, OutputCache(Duration = OneWeek)]
... | mit | C# |
820ce9e8455feb15c8114457f82cf9fa9cf74461 | Fix uploading files with uppercase extensions | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck | Core/Handling/General/FileDialogHandler.cs | Core/Handling/General/FileDialogHandler.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using CefSharp;
namespace TweetDuck.Core.Handling.General{
sealed class FileDialogHandler : IDialogHandler{
public bool OnFileDialog(IWebBrowser browserControl, IBrowser browser, CefFileDialogMo... | using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using CefSharp;
namespace TweetDuck.Core.Handling.General{
sealed class FileDialogHandler : IDialogHandler{
public bool OnFileDialog(IWebBrowser browserControl, IBrowser browser, CefFileDialogMode mode, strin... | mit | C# |
5c1211df65d2662184743eb5306c81ef8af6bb81 | Use 'container' instead of 'container-fluid'. | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW | MitternachtWeb/Views/Shared/_Layout.cshtml | MitternachtWeb/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] | MitternachtWeb</title>
<link rel="stylesheet" href="~/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" />
</head>
<body>
<hea... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] | MitternachtWeb</title>
<link rel="stylesheet" href="~/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" />
</head>
<body>
<hea... | mit | C# |
e1b1e2561de2abaa3c738a6d00777924778ae4a3 | mark EmptyPosition as sealed | acple/ParsecSharp | ParsecSharp/Data/Internal/EmptyPosition.cs | ParsecSharp/Data/Internal/EmptyPosition.cs | namespace ParsecSharp.Internal
{
public sealed class EmptyPosition : IPosition
{
public static IPosition Initial { get; } = new EmptyPosition();
public int Line => 0;
public int Column => -1;
private EmptyPosition()
{ }
public int CompareTo(IPosition other)
... | namespace ParsecSharp.Internal
{
public class EmptyPosition : IPosition
{
public static IPosition Initial { get; } = new EmptyPosition();
public int Line => 0;
public int Column => -1;
private EmptyPosition()
{ }
public int CompareTo(IPosition other)
... | mit | C# |
13dc9f0a4c2f0ba14fecb6245ed36908fcccf032 | Configure the FolderPicker | minidfx/BulkRename | Solution/App/Services/OpenFolderService.cs | Solution/App/Services/OpenFolderService.cs | using System;
using System.Threading.Tasks;
using Windows.Storage;
using Windows.Storage.Pickers;
using App.Services.Contracts;
namespace App.Services
{
public class OpenFolderService : IOpenFolderService
{
public async Task<StorageFolder> PromptAsync()
{
var folderPicker = new Fol... | using System;
using System.Threading.Tasks;
using Windows.Storage;
using Windows.Storage.Pickers;
using App.Services.Contracts;
namespace App.Services
{
public class OpenFolderService : IOpenFolderService
{
public async Task<StorageFolder> PromptAsync()
{
var folderPicker = new Fol... | mit | C# |
1d2e5ed065a4cf5c40bcff35e2ff7e2c635c238e | Expand docs to match | KirillOsenkov/roslyn,KirillOsenkov/roslyn,dotnet/roslyn,physhi/roslyn,ErikSchierboom/roslyn,weltkante/roslyn,bartdesmet/roslyn,mgoertz-msft/roslyn,aelij/roslyn,eriawan/roslyn,physhi/roslyn,ErikSchierboom/roslyn,KevinRansom/roslyn,dotnet/roslyn,tmat/roslyn,stephentoub/roslyn,mgoertz-msft/roslyn,KevinRansom/roslyn,ErikSc... | src/Features/LanguageServer/Protocol/Handler/ExportLspMethodAttribute.cs | src/Features/LanguageServer/Protocol/Handler/ExportLspMethodAttribute.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
using System;
using System.Composition;
namespace Microsoft.CodeAnalysis.LanguageServer.Handler
... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
using System;
using System.Composition;
namespace Microsoft.CodeAnalysis.LanguageServer.Handler
... | mit | C# |
38e27743c4e986ac47a037c2b1f6abf5852e27ae | fix syntax error, html title | mperdeck/jsnlog.SimpleWorkingDemoGenerator,mperdeck/jsnlog.SimpleWorkingDemoGenerator,mperdeck/jsnlog.SimpleWorkingDemoGenerator | TemplateFiles/Base/Views/Home/Index.cshtml | TemplateFiles/Base/Views/Home/Index.cshtml | @{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>{{Project}}</title>
@Html.Raw(JSNLog.JavascriptLogging.Configure())
</head>
<body>
<h1>{{Project}}</h1>
<p>
Log messages are sent to server the moment this page is opened.
</p>
... | @{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>EmptySerilog</title>
@Html.Raw(JSNLog.JavascriptLogging.Configure())
</head>
<body>
<h1>{{Project}}</h1>
<p>
Log messages are sent to server the moment this page is opened.
</p>
... | mit | C# |
b522d80c8f237e26b17735b4ec13ed1020f8ef0f | Update PowerShellModule.cs | tiksn/TIKSN-Framework | TIKSN.Core/PowerShell/PowerShellModule.cs | TIKSN.Core/PowerShell/PowerShellModule.cs | using Autofac;
namespace TIKSN.PowerShell
{
public class PowerShellModule : Module
{
protected override void Load(ContainerBuilder builder)
{
base.Load(builder);
_ = builder.RegisterType<CurrentCommandContext>().As<ICurrentCommandStore>().As<ICurrentCommandProvider>()
... | using Autofac;
namespace TIKSN.PowerShell
{
public class PowerShellModule : Module
{
protected override void Load(ContainerBuilder builder)
{
base.Load(builder);
builder.RegisterType<CurrentCommandContext>().As<ICurrentCommandStore>().As<ICurrentCommandProvider>()
... | mit | C# |
512bbb471283fa63e98f33a6e22c0c77413e6cbb | bump version | GeertvanHorrik/MethodTimer,Fody/MethodTimer | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("MethodTimer")]
[assembly: AssemblyProduct("MethodTimer")]
[assembly: AssemblyVersion("1.15.8")]
[assembly: AssemblyFileVersion("1.15.8")]
| using System.Reflection;
[assembly: AssemblyTitle("MethodTimer")]
[assembly: AssemblyProduct("MethodTimer")]
[assembly: AssemblyVersion("1.15.7")]
[assembly: AssemblyFileVersion("1.15.7")]
| mit | C# |
e4633dbcf7ded8af8864055f5300c691eb22a0bb | Remove useless case clause | xavierfoucrier/gmail-notifier,xavierfoucrier/gmail-notifier | code/Program.cs | code/Program.cs | using System;
using System.Diagnostics;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;
using notifier.Languages;
using notifier.Properties;
namespace notifier {
static class Program {
#region #attributes
/// <summary>
/// Mutex associated to the application instance
/// </su... | using System;
using System.Diagnostics;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;
using notifier.Languages;
using notifier.Properties;
namespace notifier {
static class Program {
#region #attributes
/// <summary>
/// Mutex associated to the application instance
/// </su... | mit | C# |
7f38dca1abe2a14c183f81b931cd63a550214865 | Correct builder path - .Net Framework folder starts from "v" | AndreyZM/Bridge,AndreyZM/Bridge,AndreyZM/Bridge,bridgedotnet/Bridge,bridgedotnet/Bridge,bridgedotnet/Bridge,bridgedotnet/Bridge,AndreyZM/Bridge | Translator/Translator/Translator.Build.cs | Translator/Translator/Translator.Build.cs | using System;
using System.Diagnostics;
namespace Bridge.Translator
{
public partial class Translator
{
protected static readonly char ps = System.IO.Path.DirectorySeparatorChar;
protected virtual string GetBuilderPath()
{
switch (Environment.OSVersion.Platform)
... | using System;
using System.Diagnostics;
namespace Bridge.Translator
{
public partial class Translator
{
protected static readonly char ps = System.IO.Path.DirectorySeparatorChar;
protected virtual string GetBuilderPath()
{
switch (Environment.OSVersion.Platform)
... | apache-2.0 | C# |
dc7ec68b7d062a0791b215e558a10f3936111127 | Rewrite Problem: WordInPlural | DannyBerova/Exercises-Programming-Fundamentals-Extended-May-2017 | ConditionalStatementsAndLoopsExercises/05.WordInPlural/05.WordInPlural.cs | ConditionalStatementsAndLoopsExercises/05.WordInPlural/05.WordInPlural.cs |
namespace _05.WordInPlural
{
using System;
public class Program
{
public static void Main()
{
string input = Console.ReadLine();
if (input.EndsWith("o")
|| input.EndsWith("ch")
|| input.EndsWith("s")
|| input.End... |
namespace _05.WordInPlural
{
using System;
public class Program
{
public static void Main()
{
string input = Console.ReadLine();
if (input.EndsWith("o"))
{
Console.WriteLine(input + "es");
}
else if (input.EndsW... | mit | C# |
ba345892043b87225d5daea9478e1c1c34c4dca9 | add optional activity description to UiState() for failure reporting | mvbalaw/FluentBrowserAutomation | src/FluentBrowserAutomation/Extensions/IPageWrapper.cs | src/FluentBrowserAutomation/Extensions/IPageWrapper.cs | using System;
// ReSharper disable once CheckNamespace
namespace FluentBrowserAutomation
{
public interface IPageWrapper
{
IBrowserContext BrowserContext { get; }
}
public static class IPageWrapperExtensions
{
public static T UiState<T>(this T pageWrapper, params Action<IBrowserContext>[] funcs) where T : I... | using System;
// ReSharper disable once CheckNamespace
namespace FluentBrowserAutomation
{
public interface IPageWrapper
{
IBrowserContext BrowserContext { get; }
}
public static class IPageWrapperExtensions
{
public static T UiState<T>(this T pageWrapper, params Action<IBrowserContext>[] funcs) where T : I... | mit | C# |
70aa5eedf71b7d54b8bcef50ad26007cac9678f7 | Fix issue #172 UserTypeConvention does not apply to nullable types | oceanho/fluent-nhibernate,HermanSchoenfeld/fluent-nhibernate,chester89/fluent-nhibernate,chester89/fluent-nhibernate,lingxyd/fluent-nhibernate,owerkop/fluent-nhibernate,chester89/fluent-nhibernate,hzhgis/ss,lingxyd/fluent-nhibernate,owerkop/fluent-nhibernate,narnau/fluent-nhibernate,HermanSchoenfeld/fluent-nhibernate,b... | src/FluentNHibernate/Conventions/UserTypeConvention.cs | src/FluentNHibernate/Conventions/UserTypeConvention.cs | using System;
using FluentNHibernate.Conventions.AcceptanceCriteria;
using FluentNHibernate.Conventions.Instances;
using FluentNHibernate.Conventions.Inspections;
using NHibernate.UserTypes;
namespace FluentNHibernate.Conventions
{
/// <summary>
/// Base class for user type conventions. Create a subcl... | using System;
using FluentNHibernate.Conventions.AcceptanceCriteria;
using FluentNHibernate.Conventions.Instances;
using FluentNHibernate.Conventions.Inspections;
using NHibernate.UserTypes;
namespace FluentNHibernate.Conventions
{
/// <summary>
/// Base class for user type conventions. Create a subcl... | bsd-3-clause | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.