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 |
|---|---|---|---|---|---|---|---|---|
6f78e49d4181078706346bf753ef1c29b9508ede | Fix IdentityProvider, CurrentPrincipal can be null | peopleware/net-ppwcode-vernacular-nhibernate | src/III.CastleWindsor/IdentityProvider.cs | src/III.CastleWindsor/IdentityProvider.cs | // Copyright 2018 by PeopleWare n.v..
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writ... | // Copyright 2018 by PeopleWare n.v..
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writ... | apache-2.0 | C# |
b5bedf07b507746e27db21f3411cc28dc81160e1 | Remove setters from IObservable properties | MHeasell/Mappy,MHeasell/Mappy | Mappy/Models/IMapViewSettingsModel.cs | Mappy/Models/IMapViewSettingsModel.cs | namespace Mappy.Models
{
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Mappy.Data;
using Mappy.Database;
public interface IMapViewSettingsModel
{
IObservable<bool> GridVisible { get; }
IObservable... | namespace Mappy.Models
{
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Mappy.Data;
using Mappy.Database;
public interface IMapViewSettingsModel
{
IObservable<bool> GridVisible { get; }
IObservable... | mit | C# |
598655e92f0a795df8f647bd14041d8be17ef56e | Update AssemblyInfo.cs | subterraneanbob/TopMost | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("topmost")]
[assembly: AssemblyDescription("Start application and place it on top of other windows.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: Assembl... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Управление общими сведениями о сборке осуществляется с помощью
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyTitle("topmost")]
[assemb... | mit | C# |
d1b73c112ca670e136c09108e76e2f5118fcd457 | Bump version | transistor1/SQLFormatterPlugin | Properties/AssemblyInfo.cs | 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("SQ... | 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("SQ... | bsd-3-clause | C# |
16180fd5d656c415e5aa01e129e556b1054f9c2d | Update version to 1.1 | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Resources;
using TweetDck;
// 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("T... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Resources;
using TweetDck;
// 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("T... | mit | C# |
b7fe0481f8442dea6528655d9141b0e9623a01d2 | Update UnitOfWorkBase.cs | tiksn/TIKSN-Framework | TIKSN.Core/Data/UnitOfWorkBase.cs | TIKSN.Core/Data/UnitOfWorkBase.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace TIKSN.Data
{
public abstract class UnitOfWorkBase : IUnitOfWork
{
public abstract Task CompleteAsync(CancellationToken cancellationToken);
public abstract Task DiscardAsync(CancellationToken cancellationToken);
... | using System;
using System.Threading;
using System.Threading.Tasks;
namespace TIKSN.Data
{
public abstract class UnitOfWorkBase : IUnitOfWork
{
public abstract Task CompleteAsync(CancellationToken cancellationToken);
public virtual void Dispose()
{
if (IsDirty())
... | mit | C# |
a2a17abbde4b973cc9b810b856fb793a4aa0e9bf | modify BillingFactory. | robertzml/Phoebe | Phoebe.Core/Billing/BillingFactory.cs | Phoebe.Core/Billing/BillingFactory.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Phoebe.Core.Billing
{
using Phoebe.Core.Utility;
/// <summary>
/// 计费方式工厂方法
/// </summary>
public static class BillingFactory
{
#region Method
/// <summary>
/// 创建计费
/// </summary>
... | using System;
using System.Collections.Generic;
using System.Text;
namespace Phoebe.Core.Billing
{
using Phoebe.Core.Utility;
/// <summary>
/// 计费方式工厂方法
/// </summary>
public static class BillingFactory
{
#region Method
/// <summary>
/// 创建计费
/// </summary>
... | mit | C# |
b6afc3767f3326d04af3a9685e1711517c98b0e7 | Modify assembly version | sillsdev/icu-dotnet,sillsdev/icu-dotnet,ermshiperete/icu-dotnet,ermshiperete/icu-dotnet,conniey/icu-dotnet,conniey/icu-dotnet | source/icu.net/Properties/AssemblyInfo.cs | source/icu.net/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("icu.... | 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("icu.... | mit | C# |
48da1a27153befd1ed52c6e1e4a8c7170da0b5ae | bump version | alecgorge/adzerk-dot-net | Adzerk.Api/Properties/AssemblyInfo.cs | Adzerk.Api/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("Ad... | 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("Ad... | mit | C# |
0770951a5eba03550c4b671d35249189c27563a0 | fix platform edit | llafuente/unity-platformer,llafuente/unity-platformer | Assets/Editor/MovingPlatformEditor.cs | Assets/Editor/MovingPlatformEditor.cs | using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityPlatformer.Characters;
namespace UnityPlatformer.Tiles {
[CustomEditor(typeof(MovingPlatform))]
class MovingPlatformEditor : Editor {
/* TODO FIXME i want this to be displayed all the time not just when... | using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityPlatformer.Characters;
namespace UnityPlatformer.Tiles {
[CustomEditor(typeof(MovingPlatform))]
class MovingPlatformEditor : Editor {
/* TODO FIXME i want this to be displayed all the time not just when... | mit | C# |
81e25d2b041fe03cd1ec5a077dc83c1e3fcd819d | Update token TTL when verifying session | returnString/Servya | Samples/AccountBackend/AuthService.cs | Samples/AccountBackend/AuthService.cs | using System;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Servya;
using StackExchange.Redis;
namespace AccountBackend
{
[Service]
public class AuthService
{
private readonly IDatabase m_db;
private readonly TimeSpan m_tokenTTL;
public AuthService(IDatabase db)
... | using System;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Servya;
using StackExchange.Redis;
namespace AccountBackend
{
[Service]
public class AuthService
{
private readonly IDatabase m_db;
private readonly TimeSpan m_tokenTTL;
public AuthService(IDatabase db)
... | mit | C# |
e65f39694bb4df823bf71f9e67213e2a0e18f24b | Include type name in reference error (#1429) | graphql-dotnet/graphql-dotnet,graphql-dotnet/graphql-dotnet,joemcbride/graphql-dotnet,joemcbride/graphql-dotnet,graphql-dotnet/graphql-dotnet | src/GraphQL/Types/GraphQLTypeReference.cs | src/GraphQL/Types/GraphQLTypeReference.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace GraphQL.Types
{
[DebuggerDisplay("ref {TypeName,nq}")]
public class GraphQLTypeReference : InterfaceGraphType, IObjectGraphType
{
public GraphQLTypeReference(string typeName)
{
SetName("__GraphQL... | using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace GraphQL.Types
{
[DebuggerDisplay("ref {TypeName,nq}")]
public class GraphQLTypeReference : InterfaceGraphType, IObjectGraphType
{
public GraphQLTypeReference(string typeName)
{
SetName("__GraphQL... | mit | C# |
c9d28fabe528a7f921493b2dbb16f5174ae99358 | Fix possible NPE | peopleware/net-ppwcode-vernacular-nhibernate | src/III.CastleWindsor/IdentityProvider.cs | src/III.CastleWindsor/IdentityProvider.cs | // Copyright 2018 by PeopleWare n.v..
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writ... | // Copyright 2018 by PeopleWare n.v..
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writ... | apache-2.0 | C# |
574554aae8023acce89af3aedbc3091477752170 | Format example code | dncuug/X.PagedList | examples/X.PagedList.Mvc.Example.Core/Views/Home/_NameListPartial.cshtml | examples/X.PagedList.Mvc.Example.Core/Views/Home/_NameListPartial.cshtml | @*use this for the fake AjaxOptions since ajax helpers were dropped in .net core*@
@model IPagedList<string>
@*import this so we get our HTML Helper*@
@using X.PagedList.Mvc.Core;
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@
@using X.PagedList;
@using X.Paged... | @*use this for the fake AjaxOptions since ajax helpers were dropped in .net core*@
@model IPagedList<string>
@*import this so we get our HTML Helper*@
@using X.PagedList.Mvc.Core;
@*import this so we can cast our list to IPagedList (only necessary because ViewBag is dynamic)*@
@using X.PagedList;
@using X.Paged... | mit | C# |
2e6f7f593d26accf36c99b11ca9e1a7fe175a268 | Bump version to 2.0 | dreamer2908/YAXBPC,dreamer2908/YAXBPC | YAXBPC/Properties/AssemblyInfo.cs | YAXBPC/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... | apache-2.0 | C# |
0cb0edbe9d2876eae3b4fe08f666490a7db317fe | Fix parsedblock representation | puckipedia/StackStream | StackStream.Lib/Tokens/PackedBlock.cs | StackStream.Lib/Tokens/PackedBlock.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StackStream.Tokens
{
public class PackedBlock : IToken
{
public List<IToken> Value
{
get;
private set;
}
public PackedBlock(IEn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StackStream.Tokens
{
public class PackedBlock : IToken
{
public List<IToken> Value
{
get;
private set;
}
public PackedBlock(IEn... | mit | C# |
7391dd11c786c2c66dc765da45d196b8758ff34f | Fix method docs | MindscapeHQ/raygun4net,MindscapeHQ/raygun4net,MindscapeHQ/raygun4net | Mindscape.Raygun4Net/ProfilingSupport/APM.cs | Mindscape.Raygun4Net/ProfilingSupport/APM.cs | using System;
using System.Runtime.CompilerServices;
#if !NETSTANDARD1_6 && !NETSTANDARD2_0
using System.Web;
#endif
namespace Mindscape.Raygun4Net
{
public static class APM
{
[ThreadStatic] private static bool _enabled = false;
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization... | using System;
using System.Runtime.CompilerServices;
#if !NETSTANDARD1_6 && !NETSTANDARD2_0
using System.Web;
#endif
namespace Mindscape.Raygun4Net
{
public static class APM
{
[ThreadStatic] private static bool _enabled = false;
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization... | mit | C# |
d87dca0262705b54e0ffeecf71b93b0843f7ecac | Split responsibility of ConvertMovie() method | milleniumbug/OpeningsMoeDesktop | OpeningsMoeWpfClient/FfmpegMovieConverter.cs | OpeningsMoeWpfClient/FfmpegMovieConverter.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpeningsMoeWpfClient
{
class FfmpegMovieConverter : IMovieConverter
{
private string ffmpegPath;
private Task<int> LaunchPro... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpeningsMoeWpfClient
{
class FfmpegMovieConverter : IMovieConverter
{
private string ffmpegPath;
public Task<string> Convert... | mit | C# |
fa927f09f9f788b1087bf72dbb4f7729b4ae40df | Update XColor.cs | wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D | Test/Core/XColor.cs | Test/Core/XColor.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test.Core
{
public class XColor ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test.Core
{
public class XColor : XObject
{
private byte _a;
private byte _r;
private byte _g;
private byte _b;
public byte A
{
... | mit | C# |
c0fa86b90f46c3395bc77f0e8c38915eea50d8f9 | Update XShape.cs | wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | Test/Core/XShape.cs | Test/Core/XShape.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test.Co... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test.Core
{
public abstract class XShape : XObject
{
public abstract void Draw(object dc, IRenderer renderer, double dx, double dy);
}
}
| mit | C# |
e0d1f5bacff8cdf99c7dec637633adb66c0b3bb5 | Test for at se om build deployer til test | miracle-as/kitos,miracle-as/kitos,os2kitos/kitos,miracle-as/kitos,os2kitos/kitos,os2kitos/kitos,os2kitos/kitos,miracle-as/kitos | Presentation.Web/Views/Shared/_Layout.cshtml | Presentation.Web/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html lang="da">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title data-ng-bind="page.title + ' - KITOS XXXXXXX'">KITOS</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon">
<... | <!DOCTYPE html>
<html lang="da">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title data-ng-bind="page.title + ' - KITOS'">KITOS</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon">
<meta nam... | mpl-2.0 | C# |
0672d2082d88c106cd96c7ab9feab123bed06cd3 | Add resolution deserialization unit test | jameschch/Lean,JKarathiya/Lean,AlexCatarino/Lean,jameschch/Lean,QuantConnect/Lean,jameschch/Lean,AlexCatarino/Lean,jameschch/Lean,QuantConnect/Lean,StefanoRaggi/Lean,JKarathiya/Lean,AlexCatarino/Lean,AlexCatarino/Lean,JKarathiya/Lean,StefanoRaggi/Lean,StefanoRaggi/Lean,QuantConnect/Lean,StefanoRaggi/Lean,StefanoRaggi/L... | Tests/Common/Packets/ControlsTests.cs | Tests/Common/Packets/ControlsTests.cs | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | apache-2.0 | C# |
a14f12537f1af784fb9a874223d9e129887e2cbd | test DisposableStack. | vjacquet/WmcSoft | WmcSoft.Core.Tests/DisposableTests.cs | WmcSoft.Core.Tests/DisposableTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace WmcSoft
{
[TestClass]
public class DisposableTests
{
[TestMethod]
public void CheckDisposableStackDisposeInRever... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace WmcSoft
{
[TestClass]
public class DisposableTests
{
[TestMethod]
public void CanInitializeDisposableBin() {
... | mit | C# |
8f77f22794b96d768c76726cb9b15a801c658614 | Allow .par in auto in case of '(T) expr.par' | controlflow/resharper-postfix | Templates/ParenthesizedExpressionTemplate.cs | Templates/ParenthesizedExpressionTemplate.cs | using System.Linq;
using JetBrains.Annotations;
using JetBrains.ReSharper.Feature.Services.Lookup;
using JetBrains.ReSharper.PostfixTemplates.LookupItems;
using JetBrains.ReSharper.Psi.CSharp;
using JetBrains.ReSharper.Psi.CSharp.Tree;
namespace JetBrains.ReSharper.PostfixTemplates.Templates
{
[PostfixTemplate(
... | using System.Linq;
using JetBrains.Annotations;
using JetBrains.ReSharper.Feature.Services.Lookup;
using JetBrains.ReSharper.PostfixTemplates.LookupItems;
using JetBrains.ReSharper.Psi.CSharp;
using JetBrains.ReSharper.Psi.CSharp.Tree;
namespace JetBrains.ReSharper.PostfixTemplates.Templates
{
// todo: (Bar) foo.pa... | mit | C# |
10625452b8c097cbe2cc9dc99b9d0f2b90c3d6d3 | Update Base62CorrelationServiceOptions.cs | tiksn/TIKSN-Framework | TIKSN.Core/Integration/Correlation/Base62CorrelationServiceOptions.cs | TIKSN.Core/Integration/Correlation/Base62CorrelationServiceOptions.cs | namespace TIKSN.Integration.Correlation
{
public class Base62CorrelationServiceOptions
{
public Base62CorrelationServiceOptions()
{
ByteLength = 16;
}
public int ByteLength { get; set; }
}
} | namespace TIKSN.Integration.Correlation
{
public class Base62CorrelationServiceOptions
{
}
} | mit | C# |
8b080272ef80bfa2537afca5517cdce0ed23d667 | Fix using directive ordering | MHeasell/Mappy,MHeasell/Mappy | Mappy/Models/IMinimapFormViewModel.cs | Mappy/Models/IMinimapFormViewModel.cs | namespace Mappy.Models
{
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Reactive.Subjects;
public interface IMinimapFormViewModel : INotifyPropertyChanged
{
bool MinimapVisible { get; }
Maybe<Bitmap> MinimapImage { ... | namespace Mappy.Models
{
using System.Collections.Generic;
using System.Drawing;
using System.ComponentModel;
using System.Reactive.Subjects;
public interface IMinimapFormViewModel : INotifyPropertyChanged
{
bool MinimapVisible { get; }
Maybe<Bitmap> MinimapImage { ... | mit | C# |
4536113bf5173f9f6461b040e0a7b4fd276c624d | increase version no | gigya/microdot | SolutionVersion.cs | SolutionVersion.cs | #region Copyright
// Copyright 2017 Gigya Inc. 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 copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | #region Copyright
// Copyright 2017 Gigya Inc. 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 copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | apache-2.0 | C# |
8ed13e0cd4b1cc8681721ae59f01075dd81d1dae | add urls to code | corstijank/blog-dotnet-jenkins,corstijank/blog-dotnet-jenkins | TodoApi/Program.cs | TodoApi/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
namespace TodoApi
{
public class Program
{
public static void Main(string[] args)
{
var host = n... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
namespace TodoApi
{
public class Program
{
public static void Main(string[] args)
{
var host = n... | apache-2.0 | C# |
1fed7fb5afb4cd48b73d3478cdd7ea0af35ece3b | fix for sqlite | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer.Data/Migrations/20201208054211_invoicesorderindex.cs | BTCPayServer.Data/Migrations/20201208054211_invoicesorderindex.cs | using BTCPayServer.Data;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
namespace BTCPayServer.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20201208054211_invoicesorderindex")]
public partial class invoicesorderindex : Migration
... | using BTCPayServer.Data;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
namespace BTCPayServer.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20201208054211_invoicesorderindex")]
public partial class invoicesorderindex : Migration
... | mit | C# |
7407b623b596e8764d1acd36c1b709c9fdf80a5d | Fix tiny syntax error... | georgiwe/Selftaught,georgiwe/Selftaught | Code/Selftaught.Web/Views/Languages/_ChangeLanguagePartial.cshtml | Code/Selftaught.Web/Views/Languages/_ChangeLanguagePartial.cshtml | @using System.Collections.Generic;
@model IEnumerable<string>
<ul class="nav navbar-nav pull-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Languages<b class="caret"></b></a>
<ul class="dropdown-menu">
@foreach (var langName in Model)
... | @using System.Collections.Generic;
@model IEnumerable<string>
<ul class="nav navbar-nav pull-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Languages<b class="caret"></b></a>
<ul class="dropdown-menu">
@foreach (var langName in Model)
... | mit | C# |
175377083566e806e85eab86612848990bc3f931 | Add mising namespace to LeapCoreAssetsDetector | killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MRTK/Examples/Demos/HandTracking/Scripts/LeapCoreAssetsDetector.cs | Assets/MRTK/Examples/Demos/HandTracking/Scripts/LeapCoreAssetsDetector.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using UnityEngine;
using UnityEngine.UI;
namespace Microsoft.MixedReality.Toolkit.Examples.Demos
{
/// <summary>
/// Detects if the Leap Motion Data Provid... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// Detects if the Leap Motion Data Provider can be used given the current unity project configuration and d... | mit | C# |
699b16d28ec280bad0e3c1a0a0f31398a0b858e7 | remove unused field of FrameInterval | m-ishikawa/UniRx,neuecc/UniRx,ppcuni/UniRx,endo0407/UniRx,OrangeCube/UniRx,kimsama/UniRx,ufcpp/UniRx,OC-Leon/UniRx,ataihei/UniRx,saruiwa/UniRx,TORISOUP/UniRx | Assets/Plugins/UniRx/Scripts/UnityEngineBridge/Operators/FrameInterval.cs | Assets/Plugins/UniRx/Scripts/UnityEngineBridge/Operators/FrameInterval.cs | using System;
namespace UniRx.Operators
{
internal class FrameIntervalObservable<T> : OperatorObservableBase<UniRx.FrameInterval<T>>
{
readonly IObservable<T> source;
public FrameIntervalObservable(IObservable<T> source)
: base(source.IsRequiredSubscribeOnCurrentThread())
... | using System;
namespace UniRx.Operators
{
internal class FrameIntervalObservable<T> : OperatorObservableBase<UniRx.FrameInterval<T>>
{
readonly IObservable<T> source;
public FrameIntervalObservable(IObservable<T> source)
: base(source.IsRequiredSubscribeOnCurrentThread())
... | mit | C# |
6bb86d08d505fb66dbdd6368127235b674bf9ccb | Update Array HW | owolp/Telerik-Academy,owolp/Telerik-Academy,owolp/Telerik-Academy,owolp/Telerik-Academy | Modul-1/CSharp-Part-2/01-Arrays/03.CompareCharArrays/CompareCharArrays.cs | Modul-1/CSharp-Part-2/01-Arrays/03.CompareCharArrays/CompareCharArrays.cs | using System;
// 80/100 BGCODER
namespace CompareCharArrays
{
class CompareCharArrays
{
static void Main()
{
string firstString = Console.ReadLine();
string secondString = Console.ReadLine();
if (firstString.Length > secondString.Length)
{
... | using System;
namespace CompareCharArrays
{
class CompareCharArrays
{
static void Main()
{
var input = Console.ReadLine();
char[] firstArray = input.ToCharArray();
input = Console.ReadLine();
char[] secondArray = input.ToCharArray();
... | mit | C# |
3e6a6d452d8d3d9019341f123e43d3548b54df75 | Update UnsignedBigIntegerBinaryDeserializer.cs | tiksn/TIKSN-Framework | TIKSN.Core/Serialization/Numerics/UnsignedBigIntegerBinaryDeserializer.cs | TIKSN.Core/Serialization/Numerics/UnsignedBigIntegerBinaryDeserializer.cs | using System.Linq;
using System.Numerics;
namespace TIKSN.Serialization.Numerics
{
/// <summary>
/// Custom (specialized or typed) deserializer for unsigned <see cref="BigInteger"/>
/// </summary>
public class UnsignedBigIntegerBinaryDeserializer : ICustomDeserializer<byte[], BigInteger>
{
... | using System.Linq;
using System.Numerics;
namespace TIKSN.Serialization.Numerics
{
/// <summary>
/// Custom (specialized or typed) deserializer for unsigned <see cref="BigInteger"/>
/// </summary>
public class UnsignedBigIntegerBinaryDeserializer : ICustomDeserializer<byte[], BigInteger>
{
... | mit | C# |
e01daa9ba4a10cdcd34267fcec9bac8d92481b2b | Fix AgileUploader (remove SO image resizer) | planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS | src/Orchard.Web/Modules/LETS/Views/Fields/AgileUploader-Photos.cshtml | src/Orchard.Web/Modules/LETS/Views/Fields/AgileUploader-Photos.cshtml | @{
Style.Include("slimbox2.css");
Script.Require("jQuery").AtFoot();
Script.Include("slimbox2.js").AtFoot();
}
@if (!string.IsNullOrEmpty(Model.ContentField.FileNames))
{
<div class="stripGallery">
@foreach (var fileName in Model.ContentField.FileNames.Split(';'))
{
<a href=... | @using So.ImageResizer.Helpers
@{
Style.Include("slimbox2.css");
Script.Require("jQuery").AtFoot();
Script.Include("slimbox2.js").AtFoot();
}
@if (!string.IsNullOrEmpty(Model.ContentField.FileNames))
{
<div class="stripGallery">
@foreach (var fileName in Model.ContentField.FileNames.Split(';')... | bsd-3-clause | C# |
eeb6647bc50986ff123e483888df59f1af4b721b | remove schedule in set current path | peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,peppy/osu,peppy/osu,smoogipoo/osu | osu.Game/Overlays/Wiki/Markdown/WikiMarkdownContainer.cs | osu.Game/Overlays/Wiki/Markdown/WikiMarkdownContainer.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.Extensions.Yaml;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Containers.Markdo... | // 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.Extensions.Yaml;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Containers.Markdo... | mit | C# |
36a9c6b3ec2a60c70407452fe0ee55926a50be81 | Fix embeddedresource manager | gr8woo/RazorLight,toddams/RazorLight,toddams/RazorLight,gr8woo/RazorLight | src/RazorLight/Templating/Embedded/EmbeddedResourceTemplateManager.cs | src/RazorLight/Templating/Embedded/EmbeddedResourceTemplateManager.cs | using System;
using System.IO;
using System.Reflection;
namespace RazorLight.Templating.Embedded
{
public class EmbeddedResourceTemplateManager : ITemplateManager
{
/// <summary>
/// Initializes a new TemplateManager.
/// </summary>
/// <param name="rootType">The type from the assembly that contains e... | using System;
using System.IO;
using System.Reflection;
namespace RazorLight.Templating.Embedded
{
public class EmbeddedResourceTemplateManager : ITemplateManager
{
/// <summary>
/// Initializes a new TemplateManager.
/// </summary>
/// <param name="rootType">The type from the assembly that contains e... | apache-2.0 | C# |
aaf7202e8f329cd29a0dcd188a08b4d758ddd8fb | Fix typo | Teknikaali/BenchmarkDotNet,Teknikaali/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,Ky7m/BenchmarkDotNet,Ky7m/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,adamsitnik/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,ig... | tests/BenchmarkDotNet.IntegrationTests.Classic/BenchmarkTestRunner.cs | tests/BenchmarkDotNet.IntegrationTests.Classic/BenchmarkTestRunner.cs | using System.Linq;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Tests.Loggers;
using Xunit;
using Xunit.Abstractions;
namespace BenchmarkDotNet.IntegrationTests.Classic
{
internal static class BenchmarkTestRunner
{
internal static void ... | using System.Linq;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Tests.Loggers;
using Xunit;
using Xunit.Abstractions;
namespace BenchmarkDotNet.IntegrationTests.Classic
{
internal static class BenchmarkTestRunner
{
internal static void ... | mit | C# |
fc4dafc4817d4427a039430fad2c405e35fe3174 | Add QueueDataGraphic constructor | 60071jimmy/UartOscilloscope,60071jimmy/UartOscilloscope | QueueDataGraphic/QueueDataGraphic/CSharpFiles/QueueDataGraphic.cs | QueueDataGraphic/QueueDataGraphic/CSharpFiles/QueueDataGraphic.cs | /********************************************************************
* Develop by Jimmy Hu *
* This program is licensed under the Apache License 2.0. *
* QueueDataGraphic.cs *
* 本檔案用於佇列資料繪圖功能 *
********************************************************************
*/
using System... | /********************************************************************
* Develop by Jimmy Hu *
* This program is licensed under the Apache License 2.0. *
* QueueDataGraphic.cs *
* 本檔案用於佇列資料繪圖功能 *
********************************************************************
*/
using System... | apache-2.0 | C# |
583c4546192be4b2538cd7a266f9ba90680c33af | replace email with names of the uploader | SoftwareFans/AstroPhotoGallery,SoftwareFans/AstroPhotoGallery,SoftwareFans/AstroPhotoGallery | AstroPhotoGallery/AstroPhotoGallery/Views/Home/ListPictures.cshtml | AstroPhotoGallery/AstroPhotoGallery/Views/Home/ListPictures.cshtml | @model List<AstroPhotoGallery.Models.Picture>
@{
ViewBag.Title = "List Pictures";
}
<div class="container">
<h2>@TempData["CategoryName"]</h2>
<div class="row">
@foreach (var picture in Model)
{
<div class="col-sm-6 text-center">
<article>
... | @model List<AstroPhotoGallery.Models.Picture>
@{
ViewBag.Title = "List Pictures";
}
<div class="container">
<h2>@TempData["CategoryName"]</h2>
<div class="row">
@foreach (var picture in Model)
{
<div class="col-sm-6 text-center">
<article>
... | mit | C# |
d8f5f3b53692db5bd2a4ec9c5d7066316380b416 | Revert "Fixed Resolve visitor to resolve argument expressions" | dsharlet/ComputerAlgebra | ComputerAlgebra/Extensions/Resolve.cs | ComputerAlgebra/Extensions/Resolve.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ComputerAlgebra
{
/// <summary>
/// Expression visitor for substiting expressions in for other expressions.
/// </summary>
class ResolveVisitor : RecursiveExpressionVisitor
{
protected Namespace... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ComputerAlgebra
{
/// <summary>
/// Expression visitor for substiting expressions in for other expressions.
/// </summary>
class ResolveVisitor : RecursiveExpressionVisitor
{
protected Namespace... | mit | C# |
984f00c02d4b0698a4087e02320ef3e398e31c92 | 升级版本到2.3.5 | geffzhang/equeue,geffzhang/equeue,tangxuehua/equeue,tangxuehua/equeue,tangxuehua/equeue | src/EQueue/Properties/AssemblyInfo.cs | src/EQueue/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("EQueue")]
[assembly: AssemblyCopy... | using System.Reflection;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("EQueue")]
[assembly: AssemblyCopy... | mit | C# |
b26af61a4caa73af4473eaeed1aace5532db39fa | Fix for Binding singleton to instance. | Disturbing/suice | cmn-tools/suice/suice/SingletonProvider.cs | cmn-tools/suice/suice/SingletonProvider.cs | using System;
namespace CmnTools.Suice
{
/// <summary>
/// @author DisTurBinG
/// </summary>
public class SingletonProvider : AbstractProvider
{
internal object Instance;
public SingletonProvider (Type providedType)
: base(providedType)
{
}
internal virtual void CreateSingletonInsta... | using System;
namespace CmnTools.Suice
{
/// <summary>
/// @author DisTurBinG
/// </summary>
public class SingletonProvider : AbstractProvider
{
internal object Instance;
public SingletonProvider (Type providedType)
: base(providedType)
{
}
internal virtual void CreateSingletonInsta... | mit | C# |
c9942a884ef50983e291268ee8775613dc688b14 | add string enum converter. | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Types/ChangeOfPartyRequestType.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Types/ChangeOfPartyRequestType.cs |
using System.Text.Json.Serialization;
namespace SFA.DAS.CommitmentsV2.Types
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum ChangeOfPartyRequestType : byte
{
ChangeEmployer = 0,
ChangeProvider = 1
}
}
| namespace SFA.DAS.CommitmentsV2.Types
{
public enum ChangeOfPartyRequestType : byte
{
ChangeEmployer = 0,
ChangeProvider = 1
}
}
| mit | C# |
f2bdca3b6b01a1f67fd1cb9aa271c8b681893daf | fix metric weight test | jonthysell/Mzinga | src/Mzinga.Test/MetricWeightsTests.cs | src/Mzinga.Test/MetricWeightsTests.cs | // Copyright (c) Jon Thysell <http://jonthysell.com>
// Licensed under the MIT License.
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Mzinga.Core.AI;
namespace Mzinga.Test
{
[TestClass]
public class MetricWeightsTests
{
[TestMethod]
public void MetricWeights_NewTest()
... | // Copyright (c) Jon Thysell <http://jonthysell.com>
// Licensed under the MIT License.
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Mzinga.Core.AI;
namespace Mzinga.Test
{
[TestClass]
public class MetricWeightsTests
{
[TestMethod]
public void MetricWeights_NewTest()
... | mit | C# |
3cc1a5feaaadd7dd8e62334d062f4aab735f9507 | Fix NH-2267 (by Patrick Earl) | fredericDelaporte/nhibernate-core,RogerKratz/nhibernate-core,nkreipke/nhibernate-core,hazzik/nhibernate-core,nhibernate/nhibernate-core,nhibernate/nhibernate-core,RogerKratz/nhibernate-core,fredericDelaporte/nhibernate-core,nhibernate/nhibernate-core,livioc/nhibernate-core,RogerKratz/nhibernate-core,ngbrown/nhibernate-... | src/NHibernate/Driver/NpgsqlDriver.cs | src/NHibernate/Driver/NpgsqlDriver.cs | namespace NHibernate.Driver
{
/// <summary>
/// The PostgreSQL data provider provides a database driver for PostgreSQL.
/// <p>
/// Author: <a href="mailto:oliver@weichhold.com">Oliver Weichhold</a>
/// </p>
/// </summary>
/// <remarks>
/// <p>
/// In order to use this Driver you must have the Npgsql.dll Assem... | namespace NHibernate.Driver
{
/// <summary>
/// The PostgreSQL data provider provides a database driver for PostgreSQL.
/// <p>
/// Author: <a href="mailto:oliver@weichhold.com">Oliver Weichhold</a>
/// </p>
/// </summary>
/// <remarks>
/// <p>
/// In order to use this Driver you must have the Npgsql.dll Assem... | lgpl-2.1 | C# |
817b55f18a34fb5b15cae580369b8236925c8eb6 | Improve puzzle 2 performance | martincostello/project-euler | src/ProjectEuler/Puzzles/Puzzle002.cs | src/ProjectEuler/Puzzles/Puzzle002.cs | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.ProjectEuler.Puzzles
{
using System;
/// <summary>
/// A class representing the solution to <c>https://proj... | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.ProjectEuler.Puzzles
{
using System;
using System.Collections.Generic;
/// <summary>
/// A class repres... | apache-2.0 | C# |
ccb811961a4707d5f56ad16af41c265c1e524756 | Remove realm property | msoler8785/ExoMail | ExoMail.Smtp/Interfaces/IUserStore.cs | ExoMail.Smtp/Interfaces/IUserStore.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExoMail.Smtp.Interfaces
{
public interface IUserStore
{
List<IUserIdentity> Identities { get; set; }
//string Realm { get; set; }
bool IsUserAuthenticated(strin... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExoMail.Smtp.Interfaces
{
public interface IUserStore
{
List<IUserIdentity> Identities { get; set; }
string Realm { get; set; }
bool IsUserAuthenticated(string ... | mit | C# |
220f428a7082a93770ac2ea290300299618d4e9c | Prepare for multiple samples | weblinq/WebLinq,weblinq/WebLinq,atifaziz/WebLinq,atifaziz/WebLinq | eg/Program.cs | eg/Program.cs | namespace WebLinq.Samples
{
#region Imports
using System;
using System.IO;
using static HttpQuery;
using static Html.HtmlQuery;
#endregion
static class Program
{
public static void Main()
{
Sample1();
}
static void Sample1()
{
... | namespace WebLinq.Samples
{
#region Imports
using System;
using static HttpQuery;
using static Html.HtmlQuery;
#endregion
static class Program
{
public static void Main()
{
var q =
from com in Http.UserAgent(@"Mozilla/5.0 (Windows NT 6.1; WOW64;... | apache-2.0 | C# |
d36d9bdba60ce06c1792a1b38a7bae2c76e5e17e | Refactor code in KVO events receiver method. | peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework | osu.Framework.iOS/GameAppDelegate.cs | osu.Framework.iOS/GameAppDelegate.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 UIKit;
using Foundation;
using System.Drawing;
using SixLabors.ImageSharp.PixelFormats;
using AVFoundation;
using System;
namespace osu.Framework.iOS
{
public... | // 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 UIKit;
using Foundation;
using System.Drawing;
using SixLabors.ImageSharp.PixelFormats;
using AVFoundation;
using System;
namespace osu.Framework.iOS
{
public... | mit | C# |
1a02b3e982bdca38908ff6a7200041457d0978c6 | Update Deploy | WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework | Framework.BuildTool/Command/Deploy.cs | Framework.BuildTool/Command/Deploy.cs | using System;
using System.IO;
namespace Framework.BuildTool
{
public class CommandDeploy : Command
{
public CommandDeploy()
: base("deploy", "Deploy to Azure git")
{
this.AzureGitUrl = ArgumentAdd("azureGitUrl", "Azure Git Url");
}
public readonly Argu... | using System;
using System.IO;
namespace Framework.BuildTool
{
public class CommandDeploy : Command
{
public CommandDeploy()
: base("deploy", "Deploy to Azure git")
{
this.AzureGitUrl = ArgumentAdd("azureGitUrl", "Azure Git Url");
}
public readonly Argu... | mit | C# |
3c10db7a7cb6034d9e79d7b950af37d751cdb2b4 | update setup | dkataskin/bstrkr | bstrkr.mobile/bstrkr.android/Setup.cs | bstrkr.mobile/bstrkr.android/Setup.cs | using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Threading;
using Android.Content;
using bstrkr.android.services.resources;
using bstrkr.android.views;
using bstrkr.core;
using bstrkr.core.android.config;
using bstrkr.core.android.presenters;
using bstrkr.core.android.services... | using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Threading;
using Android.Content;
using bstrkr.android.services.resources;
using bstrkr.android.views;
using bstrkr.core;
using bstrkr.core.android.config;
using bstrkr.core.android.presenters;
using bstrkr.core.android.services... | bsd-2-clause | C# |
fa61b08a05211ddcda53dc68a238c68ef703ecdd | Mark LadderTestScene abstract | 2yangk23/osu,2yangk23/osu,peppy/osu-new,johnneijzen/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,ZLima12/osu,peppy/osu,ZLima12/osu,UselessToucan/osu,NeoAdonis/osu,EVAST9919/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu,ppy/osu,ppy/osu,peppy/osu,smoogipoo/osu,peppy/osu,johnn... | osu.Game.Tournament.Tests/LadderTestScene.cs | osu.Game.Tournament.Tests/LadderTestScene.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Game.Tests.Visual;
using osu.Game.Tournament.Models;
namespace osu.Game.Tournament.Tests
{
public abstract class LadderTest... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Game.Tests.Visual;
using osu.Game.Tournament.Models;
namespace osu.Game.Tournament.Tests
{
public class LadderTestScene : O... | mit | C# |
c55580a995f375b07ecbc2a46a3ead38443a1821 | attach spawns to dungeon | YesAndGames/four-friends | Assets/Scripts/Spawner.cs | Assets/Scripts/Spawner.cs | using UnityEngine;
/// <summary>
/// A persistent spawner that spawns things.
/// </summary>
public class Spawner : MonoBehaviour {
/// <summary>
/// The prefab that gets spawned.
/// </summary>
[SerializeField] private GameObject spawnPrefab;
/// <summary>
/// If set to true, spawns the prefabs as long as it... | using UnityEngine;
/// <summary>
/// A persistent spawner that spawns things.
/// </summary>
public class Spawner : MonoBehaviour {
/// <summary>
/// The prefab that gets spawned.
/// </summary>
[SerializeField] private GameObject spawnPrefab;
/// <summary>
/// If set to true, spawns the prefabs as long as it... | mit | C# |
fd1192bdcca7400e2f1f0923f9fbc833a1377d54 | Fix extracting exception type | cezarypiatek/MaintainableSelenium,cezarypiatek/Tellurium,cezarypiatek/Tellurium,cezarypiatek/MaintainableSelenium,cezarypiatek/MaintainableSelenium,cezarypiatek/Tellurium | Src/MvcPages/Utils/ExceptionHelper.cs | Src/MvcPages/Utils/ExceptionHelper.cs | using System;
namespace Tellurium.MvcPages.Utils
{
public static class ExceptionHelper
{
public static string GetFullExceptionMessage(this Exception exception)
{
if (exception == null)
{
return string.Empty;
}
var inn... | using System;
namespace Tellurium.MvcPages.Utils
{
public static class ExceptionHelper
{
public static string GetFullExceptionMessage(this Exception exception)
{
if (exception == null)
{
return string.Empty;
}
var inn... | mit | C# |
2e3c02f57dd28d513790f8378d89ea8cbc09c36a | Add helper method for reading bytes from stream in StreamDecoder | paszczi/MLabs.Ogg | Mlabs.Ogg/src/Streams/StreamDecoder.cs | Mlabs.Ogg/src/Streams/StreamDecoder.cs | using System.Collections.Generic;
using System.IO;
using Mlabs.Ogg.Metadata;
namespace Mlabs.Ogg.Streams
{
public abstract class StreamDecoder
{
private readonly Stream m_stream;
protected StreamDecoder(Stream stream)
{
m_stream = stream;
}
/// <summary>
... | using System.Collections.Generic;
using System.IO;
using Mlabs.Ogg.Metadata;
namespace Mlabs.Ogg.Streams
{
public abstract class StreamDecoder
{
private readonly Stream m_stream;
protected StreamDecoder (Stream stream)
{
m_stream = stream;
}
/// <summary>... | mit | C# |
cceb787db65d50679fd3453171d6b82fe9ec7514 | Remove strict option from LongerThanAttribute | Hammerstad/Moya | Moya/Attributes/LongerThanAttribute.cs | Moya/Attributes/LongerThanAttribute.cs | namespace Moya.Attributes
{
using System;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class LongerThanAttribute : MoyaAttribute
{
public LongerThanAttribute(int seconds)
{
Seconds = seconds;
}
public LongerThanAttribute()
... | namespace Moya.Attributes
{
using System;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class LongerThanAttribute : MoyaAttribute
{
public LongerThanAttribute(int seconds)
{
Seconds = seconds;
}
public LongerThanAttribute()
... | mit | C# |
b2d45c3dd03475f6483adcf323ab6d6d55172269 | Make TestApplicationErrorLogger thread-safe | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/shared/TestApplicationErrorLogger.cs | test/shared/TestApplicationErrorLogger.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Concurrent;
using System.Linq;
using Microsoft.AspNetCore.Server.Kestrel.Internal;
using Microsoft.Extensions.Lo... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Server.Kestrel.Internal;
using Microsoft.Extensions.Loggi... | apache-2.0 | C# |
ad12733b26229789faa13ff4b6694a2e4d2d35c5 | fix background color | marihachi/CrystalResonanceForDesktop | src/Program.cs | src/Program.cs | using DxSharp;
using DxSharp.Data;
using DxSharp.Storage;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace CrystalResonanceDesktop
{
class Program
{
static void Main(string[] args)
{
using (var core = SystemCore.Initialize(new Size(1280, 720), Color.FromArgb(82, 195, 202), "Crystal R... | using DxSharp;
using DxSharp.Data;
using DxSharp.Storage;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace CrystalResonanceDesktop
{
class Program
{
static void Main(string[] args)
{
using (var core = SystemCore.Initialize(new Size(1280, 720), Color.LightSeaGreen, "Crystal Resonance ... | mit | C# |
7efb4da2eb44f8cdb7d1817ef25d600151a3d5bc | remove non-generic IQuery as it's no longer needed | dstockhammer/Darker,BrighterCommand/Darker | src/Darker/IQuery.cs | src/Darker/IQuery.cs | namespace Darker
{
public interface IQuery<TResult>
{
}
} | namespace Darker
{
public interface IQuery
{
}
public interface IQuery<TResult> : IQuery
{
}
} | mit | C# |
9244474adb96e0ac9dc8e5253cffdcd606882d4f | Add helper to QTTrack as well | dlech/monomac,kangaroo/monomac,PlayScriptRedux/monomac | src/QTKit/QTMovie.cs | src/QTKit/QTMovie.cs | //
// Copyright 2010, Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
... | //
// Copyright 2010, Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
... | apache-2.0 | C# |
ec25ad5e274537c9a8a9c4a113672ef9fc1205be | return error | SIROK/growthbeat-unity,growthbeat/growthbeat-unity,growthbeat/growthbeat-unity,SIROK/growthbeat-unity | sample/Assets/GrowthbeatComponent.cs | sample/Assets/GrowthbeatComponent.cs | //
// GrowthbeatComponent.cs
//
// Created by Shigeru Ogawa on 2015/06/15.
// Copyright (c) 2015年 SIROK, Inc. All rights reserved.
//
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
using Growthbeat;
#if UNITY_IPHONE
using NotificationServices = UnityEngine.iOS.N... | //
// GrowthbeatComponent.cs
//
// Created by Shigeru Ogawa on 2015/06/15.
// Copyright (c) 2015年 SIROK, Inc. All rights reserved.
//
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
using growthbeat;
#if UNITY_IPHONE
using NotificationServices = UnityEngine.iOS.N... | apache-2.0 | C# |
4f6786ff916603c60bca8c71461f43f1f6098e4e | remove log hp enemy | AcessDeniedAD/ggj2016,AcessDeniedAD/ggj2016 | Assets/Scripts/EnnemisMain.cs | Assets/Scripts/EnnemisMain.cs | using UnityEngine;
using System.Collections;
public class EnnemisMain : MonoBehaviour {
public float HP ;
public float damage;
public float speed;
protected GameObject tree;
public bool hasReachTheTree = false;
[HideInInspector]public bool isAlive = true;
[HideInInspector]public Animator animator;
[HideInInspe... | using UnityEngine;
using System.Collections;
public class EnnemisMain : MonoBehaviour {
public float HP ;
public float damage;
public float speed;
protected GameObject tree;
public bool hasReachTheTree = false;
[HideInInspector]public bool isAlive = true;
[HideInInspector]public Animator animator;
[HideInInspe... | cc0-1.0 | C# |
0d0b9531222ad90671d89558a3b428b62b7544d8 | Add the ability to create TablePerBoundedContext with BoundedContextName directly. | Elders/Cronus.Persistence.Cassandra,Elders/Cronus.Persistence.Cassandra | src/Elders.Cronus.Persistence.Cassandra/TablePerBoundedContext.cs | src/Elders.Cronus.Persistence.Cassandra/TablePerBoundedContext.cs | using System;
using System.Collections.Concurrent;
using System.Reflection;
using Elders.Cronus.DomainModeling;
using Elders.Cronus.EventStore;
namespace Elders.Cronus.Persistence.Cassandra
{
public class TablePerBoundedContext : ICassandraEventStoreTableNameStrategy
{
private readonly ConcurrentDicti... | using System;
using System.Collections.Concurrent;
using System.Reflection;
using Elders.Cronus.DomainModeling;
using Elders.Cronus.EventStore;
namespace Elders.Cronus.Persistence.Cassandra
{
public class TablePerBoundedContext : ICassandraEventStoreTableNameStrategy
{
private readonly ConcurrentDicti... | apache-2.0 | C# |
c5ea5105f8a99bdba37171b978f73fc1f74e4db6 | bump version | user1568891/PropertyChanged,0x53A/PropertyChanged,Fody/PropertyChanged | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("PropertyChanged")]
[assembly: AssemblyProduct("PropertyChanged")]
[assembly: AssemblyVersion("1.48.0")]
[assembly: AssemblyFileVersion("1.48.0")]
| using System.Reflection;
[assembly: AssemblyTitle("PropertyChanged")]
[assembly: AssemblyProduct("PropertyChanged")]
[assembly: AssemblyVersion("1.47.0")]
[assembly: AssemblyFileVersion("1.47.0")]
| mit | C# |
487410c4139effd16ad58d417a5c6635958ee212 | bump version to v0.7.1 | Dalet/140-speedrun-timer,Dalet/140-speedrun-timer,Dalet/140-speedrun-timer | SharedAssemblyInfo.cs | SharedAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("0.7.1")]
[assembly: AssemblyFileVersion("0.7.1")]
| using System.Reflection;
[assembly: AssemblyVersion("0.7")]
[assembly: AssemblyFileVersion("0.7")]
| unlicense | C# |
bc415c9db0326e53ecaa803cadcf6f166858a6eb | Make SerializableDictionary public | spriest487/spacetrader-utils | SerializableDictionary.cs | SerializableDictionary.cs | using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using UnityEngine;
namespace SpaceTrader.Util {
[Serializable]
public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, ISerializationCallbackReceiver {
[SerializeField]
private List<TKey> ... | using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using UnityEngine;
namespace SpaceTrader.Util {
[Serializable]
internal class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, ISerializationCallbackReceiver {
[SerializeField]
private List<TKey... | mit | C# |
558a860e8b4834c3cee1a632b23b5eab8aea0942 | bump version | Fody/Immutable | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Immutable")]
[assembly: AssemblyProduct("Immutable")]
[assembly: AssemblyVersion("0.1.2.0")]
[assembly: AssemblyFileVersion("0.1.2.0")]
| using System.Reflection;
[assembly: AssemblyTitle("Immutable")]
[assembly: AssemblyProduct("Immutable")]
[assembly: AssemblyVersion("0.1.1.0")]
[assembly: AssemblyFileVersion("0.1.1.0")]
| mit | C# |
8585b96efef0bd80e9d798c5443929154adf1ec9 | Fix NullReference when using T4MVC | IRlyDontKnow/twilio-csharp,mplacona/twilio-csharp,twilio/twilio-csharp | src/Twilio.Mvc/TwiMLResult.cs | src/Twilio.Mvc/TwiMLResult.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Xml.Linq;
namespace Twilio.TwiML.Mvc
{
public class TwiMLResult : ActionResult
{
XDocument data;
public TwiMLResult()
{
}
public TwiMLResul... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Xml.Linq;
namespace Twilio.TwiML.Mvc
{
public class TwiMLResult : ActionResult
{
XDocument data;
public TwiMLResult()
{
}
public TwiMLResul... | mit | C# |
7f34a12378d1b1b3271589fdc4ed591aa93c5bc6 | Change Removed unused code | dacucar/fenixlib | FenixLib/FenixLib/Core/ISprite.cs | FenixLib/FenixLib/Core/ISprite.cs | /* Copyright 2016 Darío Cutillas Carrillo
*
* 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 ... | /* Copyright 2016 Darío Cutillas Carrillo
*
* 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 ... | apache-2.0 | C# |
b492e26a25fd3a0788a4ddae65fcb2c379fb5f38 | Bump version to 2.0.0.0 | CodefoundryDE/LegacyWrapper,CodefoundryDE/LegacyWrapper | GlobalAssemblyInfo.cs | GlobalAssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: Asse... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: Asse... | mit | C# |
1d7e7de1bdee71c0048f673dee33a466d706c7a1 | Fix helloworld | BlackFrog1/PowerArgs,workabyte/PowerArgs,adamabdelhamed/PowerArgs,BlackFrog1/PowerArgs,adamabdelhamed/PowerArgs,workabyte/PowerArgs | HelloWorld/Program.cs | HelloWorld/Program.cs | using ArgsTests;
using PowerArgs.Cli;
using PowerArgs;
using System;
using System.Collections.Generic;
using System.Threading;
namespace HelloWorld
{
class Program
{
[STAThread]
static void Main(string[] args)
{
// Samples.SearchSample.Run();
// Samples.Progress... | using ArgsTests;
using PowerArgs.Cli;
using PowerArgs;
using System;
using System.Collections.Generic;
using System.Threading;
namespace HelloWorld
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Random r = new Random();
ConsoleApp appy = new Con... | mit | C# |
38e539c926fd4eb236602435af24d529c064d5cb | Fix a bug of wrong counting characters with HTTPS URL | fin-alice/Mystique,azyobuzin/Mystique | Inscribe/Text/TweetTextCounter.cs | Inscribe/Text/TweetTextCounter.cs | using System.Linq;
using System.Text.RegularExpressions;
namespace Inscribe.Text
{
public static class TweetTextCounter
{
public static int Count(string input)
{
// URL is MAX 20 Chars (if URL has HTTPS scheme, URL is MAX 21 Chars)
int prevIndex = 0;
int tot... | using System.Linq;
using System.Text.RegularExpressions;
namespace Inscribe.Text
{
public static class TweetTextCounter
{
public static int Count(string input)
{
// URL is MAX 19 Chars.
int prevIndex = 0;
int totalCount = 0;
foreach (var m in Reg... | mit | C# |
678103c4e7d47290a695d536e13c1996672333e5 | Fix typo in Error.cshtml | kirillkos/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net | Joinrpg/Views/Shared/Error.cshtml | Joinrpg/Views/Shared/Error.cshtml | @{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Error</title>
</head>
<body>
<hgroup>
<h1>Error.</h1>
<h2>An error occurred while processing your request.</h2>
</hgroup>
</body>
</html>
| {
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Error</title>
</head>
<body>
<hgroup>
<h1>Error.</h1>
<h2>An error occurred while processing your request.</h2>
</hgroup>
</body>
</html>
| mit | C# |
d04dab6ff07aa483e698a2f851fc678dd6ff7f46 | Disable Auto-Open behavior for Stack Trace Explorer (#59785) | jasonmalinowski/roslyn,dotnet/roslyn,shyamnamboodiripad/roslyn,jasonmalinowski/roslyn,shyamnamboodiripad/roslyn,KevinRansom/roslyn,CyrusNajmabadi/roslyn,shyamnamboodiripad/roslyn,mavasani/roslyn,bartdesmet/roslyn,jasonmalinowski/roslyn,mavasani/roslyn,weltkante/roslyn,mavasani/roslyn,dotnet/roslyn,weltkante/roslyn,bart... | src/Features/Core/Portable/StackTraceExplorer/StackTraceExplorerOptions.cs | src/Features/Core/Portable/StackTraceExplorer/StackTraceExplorerOptions.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 Microsoft.CodeAnalysis.Options;
namespace Microsoft.CodeAnalysis.StackTraceExplorer
{
internal static cl... | // 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 Microsoft.CodeAnalysis.Options;
namespace Microsoft.CodeAnalysis.StackTraceExplorer
{
internal static cl... | mit | C# |
c78ed4943723936a0c4cf0cdfa17d743c01a05ee | Fix Format | StephenBonikowsky/wcf,mconnew/wcf,mconnew/wcf,mconnew/wcf,imcarolwang/wcf,dotnet/wcf,StephenBonikowsky/wcf,imcarolwang/wcf,dotnet/wcf,imcarolwang/wcf,dotnet/wcf | src/System.ServiceModel.Security/tests/ServiceModel/SecurityKeyTypeTest.cs | src/System.ServiceModel.Security/tests/ServiceModel/SecurityKeyTypeTest.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.IdentityModel.Tokens;
using Infrastructure.Common;
using Xunit;
public static class SecurityKeyTypeT... | // 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.IdentityModel.Tokens;
using Infrastructure.Common;
using Xunit;
public static class SecurityKeyTypeT... | mit | C# |
35cb3594d8a86117b6a09f7625654a9522e18dd9 | Update SwaggerResultType.cs | quails4Eva/NSwag,RSuter/NSwag,aelbatal/NSwag,RSuter/NSwag,RSuter/NSwag,quails4Eva/NSwag,aelbatal/NSwag,aelbatal/NSwag,NSwag/NSwag,quails4Eva/NSwag,NSwag/NSwag,NSwag/NSwag,aelbatal/NSwag,NSwag/NSwag,RSuter/NSwag,RSuter/NSwag,quails4Eva/NSwag | src/NSwag.Annotations/SwaggerResultType.cs | src/NSwag.Annotations/SwaggerResultType.cs | //-----------------------------------------------------------------------
// <copyright file="SwaggerResultTypeAttribute.cs" company="NSwag">
// Copyright (c) Rico Suter. All rights reserved.
// </copyright>
// <license>https://github.com/NSwag/NSwag/blob/master/LICENSE.md</license>
// <author>Rico Suter, mail@rsu... | //-----------------------------------------------------------------------
// <copyright file="SwaggerResultTypeAttribute.cs" company="NSwag">
// Copyright (c) Rico Suter. All rights reserved.
// </copyright>
// <license>https://github.com/NSwag/NSwag/blob/master/LICENSE.md</license>
// <author>Rico Suter, mail@rsu... | mit | C# |
357c49d8c8d1f45bcea3fae6fb15f0e8d47cc647 | Remove locks in PointWriter | davidaramant/buddhabrot,davidaramant/buddhabrot | src/Buddhabrot/Points/PointWriter.cs | src/Buddhabrot/Points/PointWriter.cs | using System.Collections.Generic;
using System.IO;
using Buddhabrot.Core;
using Buddhabrot.Extensions;
using log4net;
namespace Buddhabrot.Points
{
sealed class PointWriter
{
private static readonly ILog Log = LogManager.GetLogger(nameof(PointWriter));
private readonly string _filePath;
... | using System.Collections.Generic;
using System.IO;
using Buddhabrot.Core;
using Buddhabrot.Extensions;
using log4net;
namespace Buddhabrot.Points
{
sealed class PointWriter
{
private static readonly ILog Log = LogManager.GetLogger(nameof(PointWriter));
private readonly object _fileLock = new ... | bsd-2-clause | C# |
6ff3f73aa4d0537164dee170164dc89bec9594ee | fix dir for net core | NServiceBusSqlPersistence/NServiceBus.SqlPersistence | src/SqlPersistence/ScriptLocation.cs | src/SqlPersistence/ScriptLocation.cs | using System;
using System.IO;
using System.Reflection;
using NServiceBus;
static class ScriptLocation
{
public static string FindScriptDirectory(SqlDialect dialect)
{
var codeBase = Assembly.GetEntryAssembly().CodeBase;
var currentDirectory = Directory.GetParent(new Uri(codeBase).LocalPath).F... | using System;
using System.IO;
using System.Reflection;
using NServiceBus;
static class ScriptLocation
{
public static string FindScriptDirectory(SqlDialect dialect)
{
var codeBase = Assembly.GetExecutingAssembly().CodeBase;
var currentDirectory = Directory.GetParent(new Uri(codeBase).LocalPat... | mit | C# |
e2c0681287b096e25e0e428c3bf39ca7613230b4 | Add problem function (with IsMacroType=true) | Excel-DNA/Samples | RtdArrayTest/TestFunctions.cs | RtdArrayTest/TestFunctions.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using ExcelDna.Integration;
namespace RtdArrayTest
{
public static class TestFunctions
{
public static object RtdArrayTest(string prefix)
{
object rtdValue = XlCall.RTD("... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using ExcelDna.Integration;
namespace RtdArrayTest
{
public static class TestFunctions
{
public static object RtdArrayTest(string prefix)
{
object rtdValue = XlCall.RTD("... | mit | C# |
30ee8ae5977f688ed9937a36c4394288a3599865 | Fix issue with Dispatcher not initializing queue | rit-sse-mycroft/core | Mycroft/Dispatcher.cs | Mycroft/Dispatcher.cs | using Mycroft.Cmd;
using Mycroft.Server;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mycroft
{
public class Dispatcher
{
private ConcurrentQueue<Command> DispatchQueue;
privat... | using Mycroft.Cmd;
using Mycroft.Server;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mycroft
{
public class Dispatcher
{
private ConcurrentQueue<Command> DispatchQueue;
privat... | bsd-3-clause | C# |
be63103bccf5cb78c1e0ea0f4b66a03e0710684e | rename the picture to logo | YangEricLiu/Pop,YangEricLiu/Pop | src/Web/WebHost/Model/DeviceModel.cs | src/Web/WebHost/Model/DeviceModel.cs | namespace SE.DSP.Pop.Web.WebHost.Model
{
public class DeviceModel : BaseHierarchyModel
{
public string Factory { get; set; }
public string Description { get; set; }
public long? GatewayId { get; set; }
public LogoModel Logo { get; set; }
}
} | namespace SE.DSP.Pop.Web.WebHost.Model
{
public class DeviceModel : BaseHierarchyModel
{
public string Factory { get; set; }
public string Description { get; set; }
public long? GatewayId { get; set; }
public LogoModel Picture { get; set; }
}
} | apache-2.0 | C# |
02ea0fa5667c4b84e8a32da72bae0507ce953745 | Use transform.Find instead of deprecated transform.FindChild | lealeelu/Fungus,snozbot/fungus,inarizushi/Fungus,FungusGames/Fungus | Assets/Tests/Narrative/PortraitFlipTest.cs | Assets/Tests/Narrative/PortraitFlipTest.cs | // This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus).
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEngine;
using System.Collections;
public class PortraitFlipTest... | // This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus).
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEngine;
using System.Collections;
public class PortraitFlipTest... | mit | C# |
b29a4904cbf067ad0dadaa0e0a6d0a2717b555f0 | Remove old UI IDs from android sample | durandt/Xamarin.Auth,xamarin/Xamarin.Auth,severino32/Xamarin.Auth,xamarin/Xamarin.Auth,YoupHulsebos/Xamarin.Auth,nachocove/Xamarin.Auth,xamarin/Xamarin.Auth,ofetisov/Xamarin.Auth,LoQIStar/Xamarin.Auth,jorik041/Xamarin.Auth,dbelcher/Xamarin.Auth | samples/Xamarin.Auth.Sample.Android/Resources/Resource.designer.cs | samples/Xamarin.Auth.Sample.Android/Resources/Resource.designer.cs | // ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerat... | // ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerat... | apache-2.0 | C# |
a34c7a5d3afc10b3716aacf9c6b2874bf3178787 | Add LookupIsoCodeModel.GetExactLanguageMatch() | glasseyes/libpalaso,tombogle/libpalaso,gmartin7/libpalaso,gtryus/libpalaso,JohnThomson/libpalaso,mccarthyrb/libpalaso,chrisvire/libpalaso,glasseyes/libpalaso,glasseyes/libpalaso,tombogle/libpalaso,darcywong00/libpalaso,ddaspit/libpalaso,andrew-polk/libpalaso,marksvc/libpalaso,JohnThomson/libpalaso,hatton/libpalaso,gmar... | PalasoUIWindowsForms/WritingSystems/LookupISOCodeModel.cs | PalasoUIWindowsForms/WritingSystems/LookupISOCodeModel.cs | using System.Collections.Generic;
using System.Linq;
using Palaso.WritingSystems;
namespace Palaso.UI.WindowsForms.WritingSystems
{
///<summary>
/// Basically just handles selecting from likely options, based on what you type
///</summary>
public class LookupIsoCodeModel
{
private readonly IList<Iso639Language... | using System.Collections.Generic;
using Palaso.WritingSystems;
namespace Palaso.UI.WindowsForms.WritingSystems
{
///<summary>
/// Basically just handles selecting from likely options, based on what you type
///</summary>
public class LookupIsoCodeModel
{
private readonly IList<Iso639LanguageCode> _languageCode... | mit | C# |
043d3c99e3a1b9ab3e65f30a0b5f7248c3c812c1 | Make RdKafka.Offset fields const | bjornicus/confluent-kafka-dotnet,MrGlenThomas/confluent-kafka-dotnet,treziac/confluent-kafka-dotnet,bjornicus/confluent-kafka-dotnet,MaximGurschi/rdkafka-dotnet,MrGlenThomas/confluent-kafka-dotnet,ah-/rdkafka-dotnet,treziac/confluent-kafka-dotnet | src/RdKafka/Offset.cs | src/RdKafka/Offset.cs |
namespace RdKafka
{
public static class Offset
{
/// <summary>
/// Start consuming from beginning of kafka partition queue: oldest msg
/// </summary>
public const long Beginning = -2;
/// <summary>
/// Start consuming from end of kafka partition queue: next msg
... |
namespace RdKafka
{
public static class Offset
{
/// <summary>
/// Start consuming from beginning of kafka partition queue: oldest msg
/// </summary>
public static long Beginning = -2;
/// <summary>
/// Start consuming from end of kafka partition queue: next msg... | apache-2.0 | C# |
53ed864513ca058343d7d49a7b5ed200c5a2240a | Add test description and fix param order in Assert call | jacobdufault/fullserializer,zodsoft/fullserializer,nuverian/fullserializer,Ksubaka/fullserializer,lazlo-bonin/fullserializer,caiguihou/myprj_02,jacobdufault/fullserializer,karlgluck/fullserializer,shadowmint/fullserializer,jagt/fullserializer,shadowmint/fullserializer,jacobdufault/fullserializer,darress/fullserializer,... | Testing/Editor/InitialInstanceTests.cs | Testing/Editor/InitialInstanceTests.cs | using NUnit.Framework;
namespace FullSerializer.Tests.InitialInstance {
public class SimpleModel {
public int A;
}
public class InitialInstanceTests {
[Test]
public void TestPopulateObject() {
// This test verifies that when we pass in an existing object
//... | using NUnit.Framework;
namespace FullSerializer.Tests.InitialInstance {
public class SimpleModel {
public int A;
}
public class InitialInstanceTests {
[Test]
public void TestInitialInstance() {
SimpleModel model1 = new SimpleModel { A = 3 };
fsData data;
... | mit | C# |
796a6aeecb1a297144999d5951cda9ff50b11152 | Comment fix. | MindscapeHQ/raygun4net,ddunkin/raygun4net,nelsonsar/raygun4net,ddunkin/raygun4net,tdiehl/raygun4net,articulate/raygun4net,MindscapeHQ/raygun4net,nelsonsar/raygun4net,articulate/raygun4net,MindscapeHQ/raygun4net,tdiehl/raygun4net | Mindscape.Raygun4Net/IRaygunApplication.cs | Mindscape.Raygun4Net/IRaygunApplication.cs | namespace Mindscape.Raygun4Net
{
/// <summary>
/// This is used by the HttpModule to generate RaygunClients. If you wish to use the HttpModule but need to make customizations
/// to the RaygunClient, then implement this interface with your HttpApplication.
/// </summary>
public interface IRaygunApplication
... | namespace Mindscape.Raygun4Net
{
/// <summary>
/// This is used by the HttpModule to generate RaygunClients. If you wish to
/// use it then, implement this interface with your HttpApplication.
/// </summary>
public interface IRaygunApplication
{
/// <summary>
/// This is called by the HttpModule to... | mit | C# |
c7e0fd68417d637bcc6a86731e98f8201091d4b7 | Use `var` | 12joan/hangman | table.cs | table.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Hangman {
public class Table {
public int Width;
public int Spacing;
public Row[] Rows;
public Table(int width, int spacing, Row[] rows) {
Width = width;
Spacing = spacing;
Rows = rows;
}
public s... | using System;
using System.Collections.Generic;
using System.Text;
namespace Hangman {
public class Table {
public int Width;
public int Spacing;
public Row[] Rows;
public Table(int width, int spacing, Row[] rows) {
Width = width;
Spacing = spacing;
Rows = rows;
}
public s... | unlicense | C# |
d43741127af82d2c875e4f1af5ac50060befaa1f | make hosting file optional | 0xFireball/PenguinUpload,0xFireball/PenguinUpload,0xFireball/PenguinUpload,0xFireball/PenguinUpload | PenguinUpload/src/PenguinUpload/Program.cs | PenguinUpload/src/PenguinUpload/Program.cs | using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
namespace PenguinUpload
{
public class Program
{
public static void Main(string[] args)
{
// Load PenguinUpload Config
if (File.Exists(PenguinUploadRegi... | using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
namespace PenguinUpload
{
public class Program
{
public static void Main(string[] args)
{
// Load PenguinUpload Config
if (File.Exists(PenguinUploadRegi... | apache-2.0 | C# |
4e1b2c87d7c0975406bf0692ebbbcb9200feb2f2 | Change assembly version from 2.0.0.0 to 2.0.* | arthurrump/Zermelo.API | Zermelo.API/Properties/AssemblyInfo.cs | Zermelo.API/Properties/AssemblyInfo.cs | using System.Resources;
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.
[ass... | using System.Resources;
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.
[ass... | mit | C# |
9fe0ccf79deb3a78318ad8814ea6344b01020703 | Use empty stopwords set when the default stopwords file is missing. | anderscui/jieba.NET | src/Analyser/KeywordExtractor.cs | src/Analyser/KeywordExtractor.cs | using System.Collections.Generic;
using System.IO;
namespace JiebaNet.Analyser
{
public abstract class KeywordExtractor
{
protected static readonly List<string> DefaultStopWords = new List<string>()
{
"the", "of", "is", "and", "to", "in", "that", "we", "for", "an", "are",
... | using System.Collections.Generic;
using System.IO;
namespace JiebaNet.Analyser
{
public abstract class KeywordExtractor
{
protected static readonly List<string> DefaultStopWords = new List<string>()
{
"the", "of", "is", "and", "to", "in", "that", "we", "for", "an", "are",
... | mit | C# |
fabacd2f311b7d85c76c806fe55a7fd99dd64ea3 | Update ValuesController.cs | cayodonatti/TopGearApi | TopGearApi/Controllers/ValuesController.cs | TopGearApi/Controllers/ValuesController.cs | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace TopGearApi.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
... | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace TopGearApi.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
... | mit | C# |
8e21f1cd345f0ffbcfcd5e7c22f30beb0f2f452a | Fix up InternalsVisibleTo to new name | octokit/octokit.net,cH40z-Lord/octokit.net,Sarmad93/octokit.net,SLdragon1989/octokit.net,thedillonb/octokit.net,editor-tools/octokit.net,octokit-net-test-org/octokit.net,kdolan/octokit.net,shiftkey/octokit.net,rlugojr/octokit.net,TattsGroup/octokit.net,shiftkey-tester/octokit.net,thedillonb/octokit.net,M-Zuber/octokit.... | SolutionInfo.cs | SolutionInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion(SolutionInfo.Version + ".0")]
[assembly: AssemblyInformationalVersion(SolutionInfo.Version)]
[assembly: AssemblyFileVersion(SolutionInfo.Version + ".0")]
[assembly: ComVisible... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion(SolutionInfo.Version + ".0")]
[assembly: AssemblyInformationalVersion(SolutionInfo.Version)]
[assembly: AssemblyFileVersion(SolutionInfo.Version + ".0")]
[assembly: ComVisible... | mit | C# |
b32ff16a8691b2b06cb7a493fda810d53e1229b1 | add analyze ILoopStatement when elide await | BigBabay/AsyncConverter,BigBabay/AsyncConverter | AsyncConverter/AsyncHelpers/AwaitElideChecker/AwaitElideChecker.cs | AsyncConverter/AsyncHelpers/AwaitElideChecker/AwaitElideChecker.cs | using JetBrains.Annotations;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Psi.CSharp.Tree;
using JetBrains.ReSharper.Psi.CSharp.Util;
namespace AsyncConverter.AsyncHelpers.AwaitElideChecker
{
[SolutionComponent]
internal class AwaitElideChecker : IAwaitElideChecker
{
public bool MayBeEl... | using JetBrains.Annotations;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Psi.CSharp.Tree;
using JetBrains.ReSharper.Psi.CSharp.Util;
namespace AsyncConverter.AsyncHelpers.AwaitElideChecker
{
[SolutionComponent]
internal class AwaitElideChecker : IAwaitElideChecker
{
public bool MayBeEl... | mit | C# |
3c417dc59e4fc1c80f650fac831766a6b21e3753 | Split time delay in between high and low states for a more even pulse | benbrandt22/PBJJ,benbrandt22/PBJJ,benbrandt22/PBJJ | PBJJ/Core/CarriageStepperMotor.cs | PBJJ/Core/CarriageStepperMotor.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Gpio;
namespace PBJJ.Core
{
public class CarriageStepperMotor
{
private readonly Stopwatch _sw;
public CarriageStepperMotor()
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Gpio;
namespace PBJJ.Core
{
public class CarriageStepperMotor
{
private readonly Stopwatch _sw;
public CarriageStepperMotor()
... | mit | C# |
a9c574ae9b46099905be5f444479e24185bbd82d | Improve xmldoc for SerialCollectionDefinition. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Tests/XunitConfiguration/SerialCollectionDefinition.cs | WalletWasabi.Tests/XunitConfiguration/SerialCollectionDefinition.cs | using Xunit;
namespace WalletWasabi.Tests.XunitConfiguration
{
/// <summary>
/// The tests in a test collection denoted using this collection definition are time-sensitive, therefore the test collection is run in a special way:
/// Parallel-capable test collections will be run first (in parallel), followed by paral... | using Xunit;
namespace WalletWasabi.Tests.XunitConfiguration
{
/// <summary>
/// This class has no code, and is never created. Its purpose is simply
// to be the place to apply [CollectionDefinition].
/// </summary>
/// <seealso href="https://xunit.net/docs/shared-context#collection-fixture"/>
[CollectionDefini... | mit | C# |
a91c32a5e7a1156850d30dd8999cd282426b3865 | Fix PDA ID light (#9938) | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Shared/PDA/SharedPDASystem.cs | Content.Shared/PDA/SharedPDASystem.cs | using Content.Shared.Access.Components;
using Content.Shared.Containers.ItemSlots;
using Robust.Shared.Containers;
namespace Content.Shared.PDA
{
public abstract class SharedPDASystem : EntitySystem
{
[Dependency] protected readonly ItemSlotsSystem ItemSlotsSystem = default!;
public override v... | using Content.Shared.Access.Components;
using Content.Shared.Containers.ItemSlots;
using Robust.Shared.Containers;
namespace Content.Shared.PDA
{
public abstract class SharedPDASystem : EntitySystem
{
[Dependency] protected readonly ItemSlotsSystem ItemSlotsSystem = default!;
public override v... | mit | C# |
f958b33ca9b570c67a7aa3980c699107f170e60d | Bump version to 0.4.3 | NJAldwin/Pequot | Pequot/Properties/AssemblyInfo.cs | Pequot/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("Pe... | 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("Pe... | mit | C# |
725b6e35d6f6deaf508e098216771d89b91597b4 | change image display size | marieeriksson/Ecommerce,marieeriksson/Ecommerce,marieeriksson/Ecommerce | Ecommerce/Views/Products/Index.cshtml | Ecommerce/Views/Products/Index.cshtml | @model List<Ecommerce.Models.ProductsViewModel>
@{
ViewBag.Title = "All Records";
}
<h2>All Records</h2>
@foreach (var record in Model)
{
<img src="@Url.Content("~/Content/" + record.ImgUrl)" alt="@record.Title" width="100" />
<a href="/products/details/@(record.Id)">@(record.Title)</a> <br />
}
| @model List<Ecommerce.Models.ProductsViewModel>
@{
ViewBag.Title = "All Records";
}
<h2>All Records</h2>
@foreach (var record in Model)
{
<img src="@Url.Content("~/Content/" + record.ImgUrl)" alt="@record.Title" />
<a href="/products/details/@(record.Id)">@(record.Title)</a> <br />
}
| mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.