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 |
|---|---|---|---|---|---|---|---|---|
5af4f6fc91dd56e7306a19f76ff73cffe132ad1f | Fix merge of error logging for scheduled events | bwatts/Totem,bwatts/Totem | Source/Totem.Runtime/Timeline/TimelineSchedule.cs | Source/Totem.Runtime/Timeline/TimelineSchedule.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Threading.Tasks;
namespace Totem.Runtime.Timeline
{
/// <summary>
/// Sets timers for points which occur in the f... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Threading.Tasks;
namespace Totem.Runtime.Timeline
{
/// <summary>
/// Sets timers for points which occur in the f... | mit | C# |
cfd28c51bbbb827c0394282ec144ebdf3a9557f6 | change block quote backgroudn width | ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,peppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu | osu.Game/Graphics/Containers/Markdown/OsuMarkdownQuoteBlock.cs | osu.Game/Graphics/Containers/Markdown/OsuMarkdownQuoteBlock.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 osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Game.Overlays;
namespace ... | // 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 osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Game.Overlays;
namespace ... | mit | C# |
e6dccf7eaa3c1b22e606bb9e1541f3bba08d1e52 | Fix IDE0079 | meziantou/Meziantou.Framework,meziantou/Meziantou.Framework,meziantou/Meziantou.Framework,meziantou/Meziantou.Framework | tests/Meziantou.Framework.TemporaryDirectory.Tests/TemporaryDirectoryTests.cs | tests/Meziantou.Framework.TemporaryDirectory.Tests/TemporaryDirectoryTests.cs | using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Meziantou.Framework.Tests
{
public class TemporaryDirectoryTests
{
[Fact]
public void CreateInParallel()
{
const int Iterations = 400;
var dirs = new TemporaryDirectory[Iter... | using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Meziantou.Framework.Tests
{
public class TemporaryDirectoryTests
{
[Fact]
public void CreateInParallel()
{
const int Iterations = 400;
var dirs = new TemporaryDirectory[Iter... | mit | C# |
7d8cfaa6c4d0af0df305e94d10758f0624fe8286 | fix version | NeverCL/EntityFramework.Extension | EntityFramework.Extension/EntityFramework.Extension/Properties/AssemblyInfo.cs | EntityFramework.Extension/EntityFramework.Extension/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EntityFramework.Extension")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assemb... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EntityFramework.Extension")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assemb... | mit | C# |
3c7999a00b5e73d227fe4cf96aae09dc9cdeaca1 | 更新2.2.1.31 | Laforeta/KanColleCacher,Gizeta/KanColleCacher,hakuame/KanColleCacher | KanColleCacher/Properties/AssemblyInfo.cs | KanColleCacher/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using d_f_32.KanColleCacher;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle(AssemblyInfo.Title)]
[assembly: AssemblyDescription(AssemblyInfo.Description)]
[assembly: Assembl... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using d_f_32.KanColleCacher;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle(AssemblyInfo.Title)]
[assembly: AssemblyDescription(AssemblyInfo.Description)]
[assembly: Assembl... | mit | C# |
3c45017f27c4865553e261f74dc21a20cfea5cde | Change Sidebar "Shortcut Style" "Height" option name | danielchalmers/DesktopWidgets | DesktopWidgets/Widgets/Sidebar/Settings.cs | DesktopWidgets/Widgets/Sidebar/Settings.cs | using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows;
using System.Windows.Input;
using DesktopWidgets.WidgetBase.Settings;
namespace DesktopWidgets.Widgets.Sidebar
{
public class Settings : WidgetSettingsBase
{
[Browsable(false)]
[DisplayName("Shortcuts")]
... | using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows;
using System.Windows.Input;
using DesktopWidgets.WidgetBase.Settings;
namespace DesktopWidgets.Widgets.Sidebar
{
public class Settings : WidgetSettingsBase
{
[Browsable(false)]
[DisplayName("Shortcuts")]
... | apache-2.0 | C# |
d8282508a4a3047986724865e30bc626ae6e01e6 | fix typo. | cube-soft/Cube.Core,cube-soft/Cube.Core | Libraries/Core/Sources/LoggerSource.cs | Libraries/Core/Sources/LoggerSource.cs | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, 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.... | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, 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-2.0 | C# |
bf612ed40990222ee8b92e417aa0e55a5d42711c | Use UnionStep. | ExRam/ExRam.Gremlinq | ExRam.Gremlinq/Gremlin/Steps/ValuesStep.cs | ExRam.Gremlinq/Gremlin/Steps/ValuesStep.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace ExRam.Gremlinq
{
public sealed class ValuesStep<TSource, TTarget> : NonTerminalStep
{
private readonly Expression<Func<TSource, TTarget>>[] _projections;
public ValuesStep(Expression<Fu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace ExRam.Gremlinq
{
public sealed class ValuesStep<TSource, TTarget> : NonTerminalStep
{
private readonly Expression<Func<TSource, TTarget>>[] _projections;
public ValuesStep(Expression<Fu... | mit | C# |
772f10f743c20bf459e4ef237d94f38064b15b41 | Bump version | muojp/SoraCommonNet,muojp/SoraCommonNet | SoraCommonNet/Properties/AssemblyInfo.cs | SoraCommonNet/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... | apache-2.0 | C# |
2821a97a96879c60293715fcddaba09f0ad9075e | change title on home page and kick off build / release / deploy | nikkh/xekina,nikkh/xekina | Xekina/XekinaWebApp/Views/Home/Index.cshtml | Xekina/XekinaWebApp/Views/Home/Index.cshtml | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>Xekina Sample Web Application</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="https://asp.net" class="btn btn-primary btn-lg">Learn more ... | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="https://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
</div>... | unlicense | C# |
93a1aeb3f8f155921dc8aa3514b7e8065fdfd797 | Support invalid certificates (e.g. if Fiddler is in use) and more security protocols (adds Tls1.1 and Tls1.2) | laingsimon/draw-ship,laingsimon/draw-ship | DrawShip.Viewer/Program.cs | DrawShip.Viewer/Program.cs | using System;
using System.Net;
using System.Windows.Forms;
namespace DrawShip.Viewer
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, ch... | using System;
using System.Windows.Forms;
namespace DrawShip.Viewer
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
var applicationContext = new ApplicationContext();
var runMode = applicationContext.GetRunMode();... | apache-2.0 | C# |
4a837067e95025760a1f07fc7da5215d94ff49b1 | Add regression test for NumberTypes | AkosLukacs/t4ts,AkosLukacs/t4ts,cskeppstedt/t4ts,bazubii/t4ts,dolly22/t4ts,cskeppstedt/t4ts,dolly22/t4ts,bazubii/t4ts | T4TS.Tests/TypeContext/TypeContextTests.cs | T4TS.Tests/TypeContext/TypeContextTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace T4TS.Tests
{
[TestClass]
public class TypeContextTests
{
[TestMethod]
public void ShouldSupportDatetimesAsNativeDates()
{
var context = new TypeContext(new Settings
{
... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace T4TS.Tests
{
[TestClass]
public class TypeContextTests
{
[TestMethod]
public void ShouldSupportDatetimesAsNativeDates()
{
var context = new TypeContext(new Settings
{
... | apache-2.0 | C# |
d7ab964824edd4681dc5fddfdaf78fae592e8053 | Split out package equality comparer | lukedgr/nodejstools,AustinHull/nodejstools,paulvanbrenk/nodejstools,lukedgr/nodejstools,paladique/nodejstools,Microsoft/nodejstools,lukedgr/nodejstools,Microsoft/nodejstools,kant2002/nodejstools,paulvanbrenk/nodejstools,munyirik/nodejstools,avitalb/nodejstools,mousetraps/nodejstools,Microsoft/nodejstools,AustinHull/nod... | Nodejs/Product/Npm/PackageComparer.cs | Nodejs/Product/Npm/PackageComparer.cs | //*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 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 writing,... | //*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 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 writing,... | apache-2.0 | C# |
f05ec79bccf8c5c34d3441c462af83f3cdb67da9 | Make ilpack-tolerable | SaladLab/UniGet | src/MdbTool.cs | src/MdbTool.cs | namespace UniGet
{
internal class MdbTool
{
public static void ConvertPdbToMdb(string dll)
{
Pdb2Mdb.Converter.Convert(dll);
}
}
}
| namespace UniGet
{
internal class MdbTool
{
public static void ConvertPdbToMdb(string dll)
{
RunPdb2Mdb(dll);
}
private static void RunPdb2Mdb(params string[] args)
{
var entryPoint = typeof(Pdb2Mdb.Converter).Assembly.EntryPoint;
ent... | mit | C# |
ec5e571533fd466c3ea865c7d50fc182e19bd46b | Fix soundmanager (forgot to record time) | EusthEnoptEron/Sketchball | Sketchball/GameComponents/SoundManager.cs | Sketchball/GameComponents/SoundManager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading.Tasks;
namespace Sketchball.GameComponents
{
public class SoundManager
{
private SoundPlayer currentPlayer;
private DateTime lastPlay = new DateTime();
/// ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading.Tasks;
namespace Sketchball.GameComponents
{
public class SoundManager
{
private SoundPlayer currentPlayer;
private DateTime lastPlay = new DateTime();
/// ... | mit | C# |
2c1a47552b7a69bd366d32f586a5a68393692623 | Remove trailing .exe in process name. | michaltakac/IronAHK,yatsek/IronAHK,polyethene/IronAHK,michaltakac/IronAHK,michaltakac/IronAHK,michaltakac/IronAHK,polyethene/IronAHK,yatsek/IronAHK,polyethene/IronAHK,polyethene/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,yatsek/IronAHK,yatsek/IronAHK | Rusty/Core/Common/Misc.cs | Rusty/Core/Common/Misc.cs | using System;
using System.Diagnostics;
namespace IronAHK.Rusty
{
partial class Core
{
#region Disk
static string[] Glob(string pattern)
{
return new string[] { };
}
#endregion
#region Process
static Process FindProcess(string name)
... | using System;
using System.Diagnostics;
namespace IronAHK.Rusty
{
partial class Core
{
#region Disk
static string[] Glob(string pattern)
{
return new string[] { };
}
#endregion
#region Process
static Process FindProcess(string name)
... | bsd-2-clause | C# |
dc2f7e503d4a7a2aea8f0e2c140e72882e15635e | debug tumble | GRGSIBERIA/maya-camera | MayaCamera.cs | MayaCamera.cs | using UnityEngine;
using System.Collections;
public class MayaCamera : MonoBehaviour {
Vector3 lookAtPosition;
public float dollySpeed = 0.1f;
public float tumbleSpeed = 1f;
public float trackSpeed = 1f;
Vector3 prevMousePosition;
Vector3 prevMouseSpeed;
public Vector3 mouseSpeed;
public Vector3 mouseAcce... | using UnityEngine;
using System.Collections;
public class MayaCamera : MonoBehaviour {
Vector3 lookAtPosition;
public float dollySpeed = 1f;
public float tumbleSpeed = 1f;
public float trackSpeed = 1f;
Vector3 prevMousePosition;
Vector3 prevMouseSpeed;
public Vector3 mouseSpeed;
public Vector3 mouseAccel;... | bsd-3-clause | C# |
15e8317021fdbbe6278847c1c35b87622c47e979 | Use the term response instead of request. | bigfont/webapi-cors | CORS/Controllers/ValuesController.cs | CORS/Controllers/ValuesController.cs | using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Cors;
namespace CORS.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return new string[] {
"This is... | using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Cors;
namespace CORS.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return new string[] { "This is a CORS request.",... | mit | C# |
00291c07fcfa1199d5346b44fcdbcbdf68cddadc | update token | ethanli83/LinqRunner,ethanli83/LinqRunner,ethanli83/LinqRunner,ethanli83/LinqRunner,ethanli83/LinqRunner | LinqRunner.Server/Api/IssueApi.cs | LinqRunner.Server/Api/IssueApi.cs | using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Nancy;
namespace LinqRunner.Server.Api
{
public class IssueApi : NancyModule
{
// c1e5b9fd11081e5deba... | using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Nancy;
namespace LinqRunner.Server.Api
{
public class IssueApi : NancyModule
{
// c1e5b9fd11081e5deba... | mit | C# |
356e4f3904210149111f49055a802ed6aa73ba6e | Update AssemblyInfo.cs | falahati/LiteDB,RytisLT/LiteDB,89sos98/LiteDB,falahati/LiteDB,RytisLT/LiteDB,89sos98/LiteDB,mbdavid/LiteDB | LiteDB/Properties/AssemblyInfo.cs | LiteDB/Properties/AssemblyInfo.cs | using System.Resources;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("LiteDB")]
[assembly: AssemblyDescription("LiteDB - A lightweight embedded .NET NoSQL document store in a single datafile")]
[assembly: AssemblyConfiguration(""... | using System.Resources;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("LiteDB")]
[assembly: AssemblyDescription("LiteDB - A lightweight embedded .NET NoSQL document store in a single datafile")]
[assembly: AssemblyConfiguration(""... | mit | C# |
c0d9e1891ab392cc80da5e794fdd8fe36d20f12d | Fix spurious 404 response when deep linking to a client route | BrainCrumbz/AWATTS,BrainCrumbz/AWATTS,BrainCrumbz/AWATTS,BrainCrumbz/AWATTS | src/WebPackAngular2TypeScript/Routing/DeepLinkingMiddleware.cs | src/WebPackAngular2TypeScript/Routing/DeepLinkingMiddleware.cs | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.StaticFiles;
using Microsoft.Extensions.Logging;
using System.Threading.Tasks;
namespace WebPackAngular2TypeScript.Routing
{
public class DeepLinkingMiddleware
{
public DeepLinkingMiddle... | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.StaticFiles;
using Microsoft.Extensions.Logging;
using System.Threading.Tasks;
namespace WebPackAngular2TypeScript.Routing
{
public class DeepLinkingMiddleware
{
public DeepLinkingMiddle... | mit | C# |
3838c12ad19b2289456acfc39ed8b9d2272a121b | Fix adding control observers | l8s/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1,PowerOfCode/Eto,l8s/Eto,PowerOfCode/Eto,l8s/Eto,bbqchickenrobot/Eto-1 | Source/Eto.Platform.Mac/Forms/MacObject.cs | Source/Eto.Platform.Mac/Forms/MacObject.cs | using System;
using MonoMac.Foundation;
using System.Collections.Generic;
using MonoMac.ObjCRuntime;
namespace Eto.Platform.Mac.Forms
{
public class MacObject<T, W> : MacBase<T, W>
where T: NSObject
where W: InstanceWidget
{
public virtual object EventObject
{
get { return Control; }
}
public new ... | using System;
using MonoMac.Foundation;
using System.Collections.Generic;
using MonoMac.ObjCRuntime;
namespace Eto.Platform.Mac.Forms
{
public class MacObject<T, W> : MacBase<T, W>
where T: NSObject
where W: InstanceWidget
{
public virtual object EventObject
{
get { return Control; }
}
public new ... | bsd-3-clause | C# |
678ea8a21e6cef5dce988e219ac95261ab9a64bd | fix build | bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1,l8s/Eto,l8s/Eto,PowerOfCode/Eto,l8s/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,PowerOfCode/Eto | Source/Eto.Platform.Mac/Forms/MacObject.cs | Source/Eto.Platform.Mac/Forms/MacObject.cs | using System;
using MonoMac.Foundation;
using System.Collections.Generic;
using MonoMac.ObjCRuntime;
namespace Eto.Platform.Mac
{
public interface IMacControl
{
object Handler { get; }
}
public class MacObject<T, W> : WidgetHandler<T, W>
where T: NSObject
where W: Widget
{
List<NSObject> notifications... | using System;
using MonoMac.Foundation;
using System.Collections.Generic;
using MonoMac.ObjCRuntime;
namespace Eto.Platform.Mac
{
public interface IMacControl
{
object Handler { get; }
}
public class MacObject<T, W> : WidgetHandler<T, W>
where T: NSObject
where W: Widget
{
List<NSObject> notifications... | bsd-3-clause | C# |
e447389da0c244dc9834ab96ec14b9c341138d0b | Update Computer.cs | Vinogradov-Mikhail/semestr3 | workTwo/workTwo/Computer.cs | workTwo/workTwo/Computer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Network
{
/// <summary>
/// class for Сomuter in Local Network
/// </summary>
public class Computer
{
/// <summary>
/// OperatingSystem of this PC
/... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Network
{
/// <summary>
/// class for comuter
/// </summary>
public class Computer
{
/// <summary>
/// OperatingSystem of this PC
/// </summary>
... | apache-2.0 | C# |
0e2cb8f1559eb48ed26b4a8222669004e084cb9d | Move check for recipients to first | mattgwagner/alert-roster | alert-roster.web/Models/EmailSender.cs | alert-roster.web/Models/EmailSender.cs | using NLog;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Web;
namespace alert_roster.web.Models
{
public class EmailSender
{
private static readonly Logger log = LogManager.GetCurrentClassLogger();
... | using NLog;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Web;
namespace alert_roster.web.Models
{
public class EmailSender
{
private static readonly Logger log = LogManager.GetCurrentClassLogger();
... | mit | C# |
3364492a4db766838692819ee9a1db43cfc8ac7e | change CrudService<T> to use Repository<T> | SorenZ/Alamut.DotNet | src/Alamut.Service/CrudService[TEntity].cs | src/Alamut.Service/CrudService[TEntity].cs | using Alamut.Data.Entity;
using Alamut.Data.Repository;
using Alamut.Data.Service;
namespace Alamut.Service
{
public class CrudService<TEntity> : CrudService<TEntity, int>,
ICrudService<TEntity>
where TEntity : IEntity
{
public CrudService(IRepository<TEntity> repository) : base(reposi... | using Alamut.Data.Entity;
using Alamut.Data.Repository;
using Alamut.Data.Service;
namespace Alamut.Service
{
public class CrudService<TEntity> : CrudService<TEntity, int>,
ICrudService<TEntity>
where TEntity : IEntity
{
public CrudService(IRepository<TEntity, int> repository) : base(r... | mit | C# |
8a954d011101e2bf340bfea4a75e370c9f052ed1 | Remove excessive constructor of PSScriptExecutor | Sitecore/Sitecore-Instance-Manager | src/ContainerInstaller/PSScriptExecutor.cs | src/ContainerInstaller/PSScriptExecutor.cs | using Sitecore.Diagnostics.Base;
namespace ContainerInstaller
{
public class PSScriptExecutor : PSExecutor
{
private readonly string _script;
public PSScriptExecutor(string executionDir, string script) : base(executionDir)
{
Assert.ArgumentNotNullOrEmpty(script, "script");
this._script = ... | using Sitecore.Diagnostics.Base;
namespace ContainerInstaller
{
public class PSScriptExecutor : PSExecutor
{
private readonly string _script;
public PSScriptExecutor(string executionDir) : base(executionDir) { }
public PSScriptExecutor(string executionDir, string script) : this(executionDir)
{
... | mit | C# |
f1495864dd489f3dc8cdc118a1f297e3d3c1776a | Update LinkedListDictionary.cs | efruchter/UnityUtilities | MiscDataStructures/LinkedListDictionary.cs | MiscDataStructures/LinkedListDictionary.cs | using System.Collections;
using System.Collections.Generic;
namespace System.Collections.Generic
{
/// <summary>
/// LinkedList/Dictionary combo for constant time add/remove/contains. Memory usage is higher as expected.
/// -kazoo
/// </summary>
/// <typeparam name="TK">key value type. It is recomended that this ... | using System.Collections;
using System.Collections.Generic;
/// <summary>
/// LinkedList/Dictionary combo for constant time add/remove/contains. Memory usage is higher as expected.
/// -kazoo
/// </summary>
/// <typeparam name="TK">key value type. It is recomended that this be "int", for speed purposes.</typeparam>
//... | mit | C# |
69bf905ab7fd223a356a9f80a3280dcb7657bf25 | Fix connectionStrings section attribute in BadConfig doc page | vasanthangel4/azure-webjobs-sdk,Azure/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,Azure/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,shrishrirang/azure-webjobs-... | src/Dashboard/Views/BadConfig/Index.cshtml | src/Dashboard/Views/BadConfig/Index.cshtml | @using Dashboard
@using Microsoft.WindowsAzure.Jobs
@{
ViewBag.Title = "Configuration Error";
}
<h2>Bad Config</h2>
<p>
The configuration is not properly set for the Windows Azure Web Jobs SDK Dashboard.
In your configuration (such as web.config), you must set a connection string named <i>@JobHost.LoggingConnecti... | @using Dashboard
@using Microsoft.WindowsAzure.Jobs
@{
ViewBag.Title = "Configuration Error";
}
<h2>Bad Config</h2>
<p>
The configuration is not properly set for the Windows Azure Web Jobs SDK Dashboard.
In your configuration (such as web.config), you must set a connection string named <i>@JobHost.LoggingConnecti... | mit | C# |
d3d56f47780b1b9316ffe84e356bde9a32615666 | Increment version to v1.1.0.22 | jcvandan/XeroAPI.Net,TDaphneB/XeroAPI.Net,XeroAPI/XeroAPI.Net,MatthewSteeples/XeroAPI.Net | source/XeroApi/Properties/AssemblyInfo.cs | source/XeroApi/Properties/AssemblyInfo.cs | using System.Reflection;
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("XeroApi")]
[assembly: AssemblyDesc... | using System.Reflection;
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("XeroApi")]
[assembly: AssemblyDesc... | mit | C# |
e5207a1d2791312bb7a12bf24a0bf7336d835f75 | Simplify null checks | NuKeeperDotNet/NuKeeper,skolima/NuKeeper,AnthonySteele/NuKeeper,skolima/NuKeeper,NuKeeperDotNet/NuKeeper,NuKeeperDotNet/NuKeeper,AnthonySteele/NuKeeper,AnthonySteele/NuKeeper,skolima/NuKeeper,AnthonySteele/NuKeeper,NuKeeperDotNet/NuKeeper,skolima/NuKeeper | NuKeeper/NuGet/Api/PackageUpdatesLookup.cs | NuKeeper/NuGet/Api/PackageUpdatesLookup.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NuGet.Protocol.Core.Types;
using NuKeeper.RepositoryInspection;
namespace NuKeeper.NuGet.Api
{
public class PackageUpdatesLookup : IPackageUpdatesLookup
{
private readonly IApiPackageLookup _packageL... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NuGet.Protocol.Core.Types;
using NuKeeper.RepositoryInspection;
namespace NuKeeper.NuGet.Api
{
public class PackageUpdatesLookup : IPackageUpdatesLookup
{
private readonly IApiPackageLookup _packageL... | apache-2.0 | C# |
c2aaf77ddba5d49f9253a4f2733df3ed95e55659 | Fix memory leak in timers (#3452) | galvesribeiro/orleans,SoftWar1923/orleans,ashkan-saeedi-mazdeh/orleans,ibondy/orleans,dotnet/orleans,brhinescot/orleans,veikkoeeva/orleans,brhinescot/orleans,ElanHasson/orleans,hoopsomuah/orleans,Liversage/orleans,benjaminpetit/orleans,amccool/orleans,ElanHasson/orleans,dVakulen/orleans,jthelin/orleans,galvesribeiro/or... | src/OrleansRuntime/Timers/TimerRegistry.cs | src/OrleansRuntime/Timers/TimerRegistry.cs | using System;
using System.Threading.Tasks;
using Orleans.Runtime;
using Orleans.Runtime.Scheduler;
namespace Orleans.Timers
{
internal class TimerRegistry : ITimerRegistry
{
private readonly OrleansTaskScheduler scheduler;
public TimerRegistry(OrleansTaskScheduler scheduler)
{
... | using System;
using System.Threading.Tasks;
using Orleans.Runtime;
using Orleans.Runtime.Scheduler;
namespace Orleans.Timers
{
internal class TimerRegistry : ITimerRegistry
{
private readonly OrleansTaskScheduler scheduler;
public TimerRegistry(OrleansTaskScheduler scheduler)
{
... | mit | C# |
a9dfe2065a6fd456e3ffe306b046a3a08890231f | Enhance the Mac command reference text a bit | awaescher/RepoZ,awaescher/RepoZ | RepoZ.UI.Mac.Story/StringCommandHandler.cs | RepoZ.UI.Mac.Story/StringCommandHandler.cs | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
namespace RepoZ.UI.Mac.Story
{
public class StringCommandHandler
{
private Dictionary<string, Action> _commands = new Dictionary<string, Action>();
private StringBuilder _helpBuilder = new StringBuilder();
... | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
namespace RepoZ.UI.Mac.Story
{
public class StringCommandHandler
{
private Dictionary<string, Action> _commands = new Dictionary<string, Action>();
private StringBuilder _helpBuilder = new StringBuilder();
... | mit | C# |
356e0f42d34cd5ff11767f8f584ead235aa8bc0e | Use site title in email subject for exception handler. | IanNorris/RationalVote,IanNorris/RationalVote | Source/Controllers/MailController.cs | Source/Controllers/MailController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ActionMailer.Net.Mvc;
using RationalVote.Models;
using System.Configuration;
namespace RationalVote.Controllers
{
public class MailController : MailerBase
{
public static string GetFromEmail( string purpose )
{
return ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ActionMailer.Net.Mvc;
using RationalVote.Models;
using System.Configuration;
namespace RationalVote.Controllers
{
public class MailController : MailerBase
{
public static string GetFromEmail( string purpose )
{
return ... | mit | C# |
85fcff68b5ee6432e4efb2b7507952071b85dd8b | Write error message in try catch | appharbor/appharbor-cli | src/AppHarbor/ApplicationConfiguration.cs | src/AppHarbor/ApplicationConfiguration.cs | using System;
using System.IO;
using System.Linq;
using AppHarbor.Model;
namespace AppHarbor
{
public class ApplicationConfiguration : IApplicationConfiguration
{
private readonly IFileSystem _fileSystem;
private readonly IGitExecutor _gitExecutor;
public ApplicationConfiguration(IFileSystem fileSystem, IGit... | using System;
using System.IO;
using System.Linq;
using AppHarbor.Model;
namespace AppHarbor
{
public class ApplicationConfiguration : IApplicationConfiguration
{
private readonly IFileSystem _fileSystem;
private readonly IGitExecutor _gitExecutor;
public ApplicationConfiguration(IFileSystem fileSystem, IGit... | mit | C# |
4485c025452cc6879ba2089b99d381460971232c | Handle hyperlinks in Bloom Reader Preview inside Bloom (BL-7569) | gmartin7/myBloomFork,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,Blo... | src/BloomExe/Publish/HtmlPublishPanel.cs | src/BloomExe/Publish/HtmlPublishPanel.cs | using System;
using System.Windows.Forms;
using SIL.PlatformUtilities;
using Gecko;
using Gecko.DOM;
namespace Bloom.Publish
{
/// <summary>
/// This configurable class provides a C# wrapper for several of the publish option
/// panels that appear in the Publish tab, for which the UI is an html component
/// </s... | using System;
using System.Windows.Forms;
using SIL.PlatformUtilities;
namespace Bloom.Publish
{
/// <summary>
/// This configurable class provides a C# wrapper for several of the publish option
/// panels that appear in the Publish tab, for which the UI is an html component
/// </summary>
public partial class ... | mit | C# |
0f76185e9874abe3caff7d9be0f95dde99e0c6a2 | Create obfuscator(fix) | remobjects/Obfuscar | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | #region Copyright (c) 2007 Ryan Williams <drcforbin@gmail.com>
/// <copyright>
/// Copyright (c) 2007 Ryan Williams <drcforbin@gmail.com>
///
/// 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 ... | #region Copyright (c) 2007 Ryan Williams <drcforbin@gmail.com>
/// <copyright>
/// Copyright (c) 2007 Ryan Williams <drcforbin@gmail.com>
///
/// 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 ... | mit | C# |
201fc0fefb8f13eae404f14420f03ed13c65e040 | bump to version 1.2.1.0 | dnauck/AspSQLProvider,dnauck/AspSQLProvider | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | //
// $Id$
//
// Copyright 2006 - 2008 Nauck IT KG http://www.nauck-it.de
//
// Author:
// Daniel Nauck <d.nauck(at)nauck-it.de>
//
// 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 witho... | //
// $Id$
//
// Copyright 2006 - 2008 Nauck IT KG http://www.nauck-it.de
//
// Author:
// Daniel Nauck <d.nauck(at)nauck-it.de>
//
// 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 witho... | mit | C# |
1ab9e35c6ee1de4854a77c34671b16b932d31f11 | Update version to 1.0 | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using TweetDick;
using System.Resources;
// 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(P... | using System.Reflection;
using System.Runtime.InteropServices;
using TweetDick;
using System.Resources;
// 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(P... | mit | C# |
1b4db3ac0b3767711141a410b07442f5b0eacd09 | Implement Load() methods to create a License instance from XML | dnauck/Portable.Licensing,dreamrain21/Portable.Licensing,dreamrain21/Portable.Licensing,dnauck/Portable.Licensing | src/Portable.Licensing/LicenseFactory.cs | src/Portable.Licensing/LicenseFactory.cs | //
// Copyright © 2012 - 2013 Nauck IT KG http://www.nauck-it.de
//
// Author:
// Daniel Nauck <d.nauck(at)nauck-it.de>
//
// 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 wit... | //
// Copyright © 2012 - 2013 Nauck IT KG http://www.nauck-it.de
//
// Author:
// Daniel Nauck <d.nauck(at)nauck-it.de>
//
// 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 wit... | mit | C# |
50e741ea0b59cc94d6e43d4939676906576718a2 | Use SequenceEqual instead of operator== for comparison of arrays in 'Can_perform_query_with_max_length' test | azabluda/InfoCarrier.Core | test/InfoCarrier.Core.EFCore.FunctionalTests/BuiltInDataTypesInfoCarrierTest.cs | test/InfoCarrier.Core.EFCore.FunctionalTests/BuiltInDataTypesInfoCarrierTest.cs | namespace InfoCarrier.Core.EFCore.FunctionalTests
{
using System.Linq;
using Microsoft.EntityFrameworkCore.Specification.Tests;
using Xunit;
public class BuiltInDataTypesInfoCarrierTest : BuiltInDataTypesTestBase<BuiltInDataTypesInfoCarrierFixture>
{
public BuiltInDataTypesInfoCarrierTest(... | namespace InfoCarrier.Core.EFCore.FunctionalTests
{
using Microsoft.EntityFrameworkCore.Specification.Tests;
using Xunit;
public class BuiltInDataTypesInfoCarrierTest : BuiltInDataTypesTestBase<BuiltInDataTypesInfoCarrierFixture>
{
public BuiltInDataTypesInfoCarrierTest(BuiltInDataTypesInfoCar... | mit | C# |
5fd565585d85261888dc8e975fb3230bcecf2485 | Fix !gid command helptext | VoiDeD/steam-irc-bot | SteamIrcBot/IRC/Commands/GID.cs | SteamIrcBot/IRC/Commands/GID.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SteamKit2;
namespace SteamIrcBot
{
class GIDCommand : Command
{
public GIDCommand()
{
Triggers.Add( "!gid" );
Triggers.Add( "!globalid" );
HelpText = "!gid - decompos... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SteamKit2;
namespace SteamIrcBot
{
class GIDCommand : Command
{
public GIDCommand()
{
Triggers.Add( "!gid" );
Triggers.Add( "!globalid" );
HelpText = "!gid - decompos... | mit | C# |
508bf59898fad1c8d930a2d65d1c9c04bf2b5b7d | Revert last commit | jdno/AIChallengeFramework | IO/Logger.cs | IO/Logger.cs | //
// Copyright 2014 jdno
//
// 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... | //
// Copyright 2014 jdno
//
// 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... | apache-2.0 | C# |
764f86b1e04ed59b1bf948ec55cfc42a8922e301 | fix cf | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Tor/Socks5/Models/Messages/TorSocks5Request.cs | WalletWasabi/Tor/Socks5/Models/Messages/TorSocks5Request.cs | using System;
using WalletWasabi.Helpers;
using WalletWasabi.Tor.Socks5.Models.Bases;
using WalletWasabi.Tor.Socks5.Models.Fields.ByteArrayFields;
using WalletWasabi.Tor.Socks5.Models.Fields.OctetFields;
namespace WalletWasabi.Tor.Socks5.Models.Messages
{
public class TorSocks5Request : ByteArraySerializableBase
{
... | using System;
using WalletWasabi.Helpers;
using WalletWasabi.Tor.Socks5.Models.Bases;
using WalletWasabi.Tor.Socks5.Models.Fields.ByteArrayFields;
using WalletWasabi.Tor.Socks5.Models.Fields.OctetFields;
namespace WalletWasabi.Tor.Socks5.Models.Messages
{
public class TorSocks5Request : ByteArraySerializableBase
{
... | mit | C# |
f4092b816b299c6f8109bb6bd9704a79904655c9 | Remove stub information from Error page | diolive/cache,diolive/cache | DioLive.Cache/src/DioLive.Cache.WebUI/Views/Shared/Error.cshtml | DioLive.Cache/src/DioLive.Cache.WebUI/Views/Shared/Error.cshtml | @{
ViewData["PageTitle"] = "Error";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2> | @{
ViewData["PageTitle"] = "Error";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>
<h3>Development Mode</h3>
<p>
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
</p>... | mit | C# |
73d4290426016f6ef58fc59c9746e6953fcc25e6 | fix bootstrap theme | g-stoyanov/InfinysBreakfastOrders,g-stoyanov/InfinysBreakfastOrders | Source/Web/InfinysBreakfastOrders.Web/App_Start/BundleConfig.cs | Source/Web/InfinysBreakfastOrders.Web/App_Start/BundleConfig.cs | using System.Web;
using System.Web.Optimization;
namespace InfinysBreakfastOrders.Web
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundle... | using System.Web;
using System.Web.Optimization;
namespace InfinysBreakfastOrders.Web
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundle... | mit | C# |
c23231b0787fe850aa68c74a25a431005796da6f | Update AttachmentType.cs | smartsheet-platform/smartsheet-csharp-sdk,smartsheet-platform/smartsheet-csharp-sdk | main/Smartsheet/Api/Models/AttachmentType.cs | main/Smartsheet/Api/Models/AttachmentType.cs | // #[license]
// SmartsheetClient SDK for C#
// %%
// Copyright (C) 2014 SmartsheetClient
// %%
// 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
//
// ... | // #[license]
// SmartsheetClient SDK for C#
// %%
// Copyright (C) 2014 SmartsheetClient
// %%
// 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
//
// ... | apache-2.0 | C# |
a10d5c2916c0133be2cda91943ce7b514799e382 | Use lambda for osversion procedure | LibertyLocked/RestRPC,LibertyLocked/RestRPC,LibertyLocked/RestRPC,LibertyLocked/RestRPC | RestRPC.Service/Program.cs | RestRPC.Service/Program.cs | using CommandLine;
using System;
using System.IO;
using System.Threading;
using RestRPC.Framework;
using RestRPC.Framework.Plugins;
using RestRPC.Service.Plugins;
namespace RestRPC.Service
{
class Program
{
static RestRPCComponent wshComponent;
static void Main(string[] args)
{
... | using CommandLine;
using System;
using System.IO;
using System.Threading;
using RestRPC.Framework;
using RestRPC.Framework.Plugins;
using RestRPC.Service.Plugins;
namespace RestRPC.Service
{
class Program
{
static RestRPCComponent wshComponent;
static void Main(string[] args)
{
... | mit | C# |
11ebe62c03b11832e596dc44a66388f3beddf675 | Fix tests. | AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia | tests/Avalonia.Markup.UnitTests/Parsers/ExpressionObserverBuilderTests_Method.cs | tests/Avalonia.Markup.UnitTests/Parsers/ExpressionObserverBuilderTests_Method.cs | using Avalonia.Data;
using Avalonia.Data.Core;
using Avalonia.Markup.Parsers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace Avalonia.Markup.UnitTests.Parsers
{
public class ExpressionObserverBu... | using Avalonia.Data;
using Avalonia.Data.Core;
using Avalonia.Markup.Parsers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace Avalonia.Markup.UnitTests.Parsers
{
public class ExpressionObserverBu... | mit | C# |
bf5b1d4d3485059f38c91710d9f7cc949a1adbb4 | Update version for next release. | Thraka/SadConsole | SadConsole.Platforms/SadConsole.Platforms.Windows.Core/Properties/AssemblyInfo.cs | SadConsole.Platforms/SadConsole.Platforms.Windows.Core/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("Sa... | 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("Sa... | mit | C# |
d5b8ccf222f8bfeb7c9d54a85c4e4f82f949421e | Return JSON object from Values controller | peterblazejewicz/ng-templates,peterblazejewicz/ng-templates,peterblazejewicz/ng-templates,peterblazejewicz/ng-templates | auth0/04-Calling-API/server/src/WebAPIApplication/Controllers/ValuesController.cs | auth0/04-Calling-API/server/src/WebAPIApplication/Controllers/ValuesController.cs | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace WebAPIApplication.Controllers
{
[Route("api/[controller]")]
public class ValuesController : Controller
{
[HttpGet]
[Route("ping")]
public dynamic Ping()
{
return new {
... | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace WebAPIApplication.Controllers
{
[Route("api/[controller]")]
public class ValuesController : Controller
{
[HttpGet]
[Route("ping")]
public string Ping()
{
return "All good. You don... | unlicense | C# |
4b5e4c1534709ecca542dbd72535a7f20c96ad6d | test 16;00 | renyh1013/chord,DigitalPlatform/chord,renyh1013/chord,renyh1013/chord,DigitalPlatform/chord,DigitalPlatform/chord | dp2Tools/Program.cs | dp2Tools/Program.cs | // 20180514 test2
//test juan
//test juan 20180414
//test juan 20180414 16
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace dp2Tools
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summar... | // 20180514 test2
//test juan
//test juan 20180414
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace dp2Tools
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
... | apache-2.0 | C# |
bee34cc0ffca46d1d9432a38823502f2c1ac5a07 | remove redundant word 'create' | svick/cli,dasMulli/cli,dasMulli/cli,blackdwarf/cli,blackdwarf/cli,EdwardBlair/cli,blackdwarf/cli,svick/cli,ravimeda/cli,EdwardBlair/cli,livarcocc/cli-1,Faizan2304/cli,johnbeisner/cli,johnbeisner/cli,dasMulli/cli,EdwardBlair/cli,harshjain2/cli,livarcocc/cli-1,Faizan2304/cli,johnbeisner/cli,livarcocc/cli-1,svick/cli,Faiz... | src/Microsoft.DotNet.Configurer/LocalizableStrings.cs | src/Microsoft.DotNet.Configurer/LocalizableStrings.cs | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DotNet.Configurer
{
internal class LocalizableStrings
{
public const string FirstTimeWelcomeMessage = @"Welco... | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DotNet.Configurer
{
internal class LocalizableStrings
{
public const string FirstTimeWelcomeMessage = @"Welco... | mit | C# |
3634f61f195cb48e6b68665471bf07bfea986c90 | Bump version. | yojimbo87/ArangoDB-NET,kangkot/ArangoDB-NET | src/Arango/Arango.Client/API/ArangoClient.cs | src/Arango/Arango.Client/API/ArangoClient.cs | using System.Collections.Generic;
using System.Linq;
using Arango.Client.Protocol;
namespace Arango.Client
{
public static class ArangoClient
{
private static List<Connection> _connections = new List<Connection>();
public static string DriverName
{
get { return ... | using System.Collections.Generic;
using System.Linq;
using Arango.Client.Protocol;
namespace Arango.Client
{
public static class ArangoClient
{
private static List<Connection> _connections = new List<Connection>();
public static string DriverName
{
get { return ... | mit | C# |
e3bb2763b110eb7119b419574136ac3fc90f6454 | Add ArgumentNullException to WindowsSymlinkFactory | tgstation/tgstation-server-tools,Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server | src/Tgstation.Server.Host/IO/WindowsSymlinkFactory.cs | src/Tgstation.Server.Host/IO/WindowsSymlinkFactory.cs | using System;
using System.ComponentModel;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
namespace Tgstation.Server.Host.IO
{
/// <summary>
/// <see cref="ISymlinkFactory"/> for windows systems
/// </summary>
sealed class WindowsSymlinkFactory : ISyml... | using System.ComponentModel;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
namespace Tgstation.Server.Host.IO
{
/// <summary>
/// <see cref="ISymlinkFactory"/> for windows systems
/// </summary>
sealed class WindowsSymlinkFactory : ISymlinkFactory
{
... | agpl-3.0 | C# |
475fa3e2c59212cad32136e2b945bd95c95ffe59 | Put back Live JanRain URL | NancyFx/DinnerParty,prabirshrestha/DinnerParty,denkhaus/DinnerParty,jchannon/DinnerParty,NancyFx/DinnerParty,davidebbo/DinnerParty,denkhaus/DinnerParty,davidebbo/DinnerParty,prabirshrestha/DinnerParty,jchannon/DinnerParty | Views/Account/LogOn.cshtml | Views/Account/LogOn.cshtml | @inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic>
@{
Layout = "_Layout.cshtml";
}
<h2>@Model.Page.Title</h2>
@section HeadArea {
<script type="text/javascript">
(function () {
if (typeof window.janrain !== 'object') window.janrain = {};
if (typeof window.janrain.settings !== 'ob... | @inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic>
@{
Layout = "_Layout.cshtml";
}
<h2>@Model.Page.Title</h2>
@section HeadArea {
<script type="text/javascript">
(function () {
if (typeof window.janrain !== 'object') window.janrain = {};
if (typeof window.janrain.settings !== 'ob... | mit | C# |
234224e8d93a6c9ebc7e4532206d79677db2de6c | Make sure a capture will not leave the TemplateContext in an unbalanced state if an exception occurs | lunet-io/scriban,textamina/scriban | src/Scriban/Syntax/ScriptCaptureStatement.cs | src/Scriban/Syntax/ScriptCaptureStatement.cs | // Copyright (c) Alexandre Mutel. All rights reserved.
// Licensed under the BSD-Clause 2 license.
// See license.txt file in the project root for full license information.
using Scriban.Runtime;
namespace Scriban.Syntax
{
[ScriptSyntax("capture statement", "capture <variable> ... end")]
public class ScriptC... | // Copyright (c) Alexandre Mutel. All rights reserved.
// Licensed under the BSD-Clause 2 license.
// See license.txt file in the project root for full license information.
using Scriban.Runtime;
namespace Scriban.Syntax
{
[ScriptSyntax("capture statement", "capture <variable> ... end")]
public class ScriptC... | bsd-2-clause | C# |
fa1f7d8f257ae2c5baf2f99933f188926f9c5565 | fix bug in cosine func | dzibma/FuzzyMath | FuzzyMath/Functions/cos.cs | FuzzyMath/Functions/cos.cs | using System;
namespace FuzzyMath
{
public static partial class Functions
{
/// <summary>
/// Calculates cosine of the fuzzy number
/// </summary>
/// <param name="X">Fuzzy angle in radians</param>
public static FuzzyNumber Cos(FuzzyNumber X)
{
... | using System;
namespace FuzzyMath
{
public static partial class Functions
{
/// <summary>
/// Calculates cosine of the fuzzy number
/// </summary>
/// <param name="X">Fuzzy angle in radians</param>
public static FuzzyNumber Cos(FuzzyNumber X)
{
... | mit | C# |
83397d962d8e4d3f6c55a90590df564dc6952171 | Increment version | muntashir/Pingo | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | mit | C# |
7a9fe3554d13c42c5e48b320c7c04cc7228c3d92 | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | jango2015/Autofac.Configuration,autofac/Autofac.Configuration | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Configuration")]
| using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Configuration")]
[assembly: AssemblyDescription("")]
| mit | C# |
b6294b1912f6a5aa14be691e6d0b3c82966f5beb | Bump version | nixxquality/WebMConverter,Yuisbean/WebMConverter,o11c/WebMConverter | 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("We... | 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("We... | mit | C# |
f5900c30be7db6a6b80b0eb1ffad603992e01703 | Update version to 1.2.1 | dylanmei/linqpad-soap-driver,dylanmei/linqpad-soap-driver | Driver/Properties/AssemblyInfo.cs | Driver/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("So... | 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("So... | mit | C# |
e41f4232dfe089d41c768cf68394a561b0c94594 | fix guild members tracking | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Data/GuildInfo.cs | TCC.Core/Data/GuildInfo.cs | using System.Collections.Generic;
using System.Linq;
using FoglioUtils;
using TeraDataLite;
namespace TCC.Data
{
public class GuildInfo
{
public bool InGuild { get; private set; }
public GuildMemberData Master { get; private set; }
public TSObservableCollection<GuildMemberData> Member... | using System.Collections.Generic;
using System.Linq;
using FoglioUtils;
using TeraDataLite;
namespace TCC.Data
{
public class GuildInfo
{
public bool InGuild { get; private set; }
public GuildMemberData Master { get; private set; }
public TSObservableCollection<GuildMemberData> Member... | mit | C# |
47ccf1a8df911bd2fbac458b4354a85654cac98d | update sections add 2 organism | lonelu/MetaMorpheus | Test/XLSearchOutputTest.cs | Test/XLSearchOutputTest.cs | using NUnit.Framework;
using System.Collections.Generic;
using System.IO;
using TaskLayer;
using EngineLayer;
namespace Test
{
[TestFixture]
public static class XLSearchOutputTest
{
[Test]
public static void WriteTsvTest()
{
string outputFolder = Path.Combine(TestContex... | using NUnit.Framework;
using System.Collections.Generic;
using System.IO;
using TaskLayer;
using EngineLayer;
namespace Test
{
[TestFixture]
public static class XLSearchOutputTest
{
[Test]
public static void WriteTsvTest()
{
string outputFolder = Path.Combine(TestContex... | mit | C# |
b0e613f7409b4b5e55c4c49032fa80f837400f1b | Remove unused import | MHeasell/Mappy,MHeasell/Mappy | Mappy/Models/IMainModel.cs | Mappy/Models/IMainModel.cs | namespace Mappy.Models
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Drawing;
using Mappy.Collections;
using Mappy.Data;
public interface IMainModel : INotifyPropertyChanged
{
e... | namespace Mappy.Models
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Drawing;
using Geometry;
using Mappy.Collections;
using Mappy.Data;
public interface IMainModel : INotifyPropertyCh... | mit | C# |
3c19009759bc19fb90dc0af5b8a981d845537c33 | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | dparra0007/Autofac.Mvc,autofac/Autofac.Mvc,jango2015/Autofac.Mvc | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Integration.Mvc")]
| using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Integration.Mvc")]
[assembly: AssemblyDescription("")]
| mit | C# |
6565e8c2295535c0b5b359e19d3b6feb85c567a4 | use dictionary first then check web | yasokada/unity-150825-TELChecker | Assets/CheckButtonControl.cs | Assets/CheckButtonControl.cs | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using System.Linq; // for Where
using System.Collections.Generic;
public class CheckButtonControl : MonoBehaviour {
public Text resText;
public const string kTitle = "<title>";
public InputField IFtelno;
public InputField IFinfo;
private Dictio... | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using System.Linq; // for Where
using System.Collections.Generic;
public class CheckButtonControl : MonoBehaviour {
public Text resText;
public const string kTitle = "<title>";
public InputField IFtelno;
public InputField IFinfo;
private Dictio... | mit | C# |
06430746c7d9ea3d8990020b8bec76e52eb7ca83 | fix copyright | dlmelendez/identityazuretable,dlmelendez/identityazuretable,dlmelendez/identityazuretable | tests/ElCamino.AspNetCore.Identity.AzureTable.Tests/Fakes/HashTestKeyHelperFake.cs | tests/ElCamino.AspNetCore.Identity.AzureTable.Tests/Fakes/HashTestKeyHelperFake.cs | // MIT License Copyright 2022 (c) David Melendez. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using ElCamino.AspNetCore.Identity... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using ElCamino.AspNetCore.Identity.AzureTable.Helpers;
// MIT License Copyright 2022 (c) David Melendez. All rights reserved. See License.txt in the project root for ... | mit | C# |
177935d644be16be513d48b9baa724aaf4b64a10 | Remove unused using | smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,2yangk23/osu,ppy/osu,EVAST9919/osu,UselessToucan/osu,peppy/osu,ppy/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,EVAST9919/osu,smoogipoo/osu,johnneijzen/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,johnneijzen/osu,smoogipooo/osu,ppy/osu,2yangk23/osu | osu.Game.Tests/Visual/Multiplayer/TestSceneOverlinedPlaylist.cs | osu.Game.Tests/Visual/Multiplayer/TestSceneOverlinedPlaylist.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.Graphics;
using osu.Game.Online.Multiplayer;
using osu.Game.Rulesets.Osu;
using osu.Game.Screens.Multi.Components;
using osu.Game.Tests.Beatmaps;
usin... | // 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.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.Multiplayer;
using osu.Game.Rulesets.Osu;
using osu.Game.Screens.Multi.Compon... | mit | C# |
bae88f5ac111dab2ea4f1d330a51ed987171b3d9 | fix sms sender phones string | vkeepe/cordova-sms-plugin,cordova-sms/cordova-sms-plugin,vkeepe/cordova-sms-plugin,Telerik-Verified-Plugins/SMS,cordova-sms/cordova-sms-plugin,cordova-sms/cordova-sms-plugin,Telerik-Verified-Plugins/SMS,Telerik-Verified-Plugins/SMS,vkeepe/cordova-sms-plugin | src/wp8/Sms.cs | src/wp8/Sms.cs | using System;
using Microsoft.Phone.Tasks;
using WPCordovaClassLib.Cordova;
using WPCordovaClassLib.Cordova.Commands;
using WPCordovaClassLib.Cordova.JSON;
namespace WPCordovaClassLib.Cordova.Commands
{
public class Sms : BaseCommand
{
public void send(string options)
{
string[] optValues = JsonHelpe... | using System;
using Microsoft.Phone.Tasks;
using WPCordovaClassLib.Cordova;
using WPCordovaClassLib.Cordova.Commands;
using WPCordovaClassLib.Cordova.JSON;
namespace WPCordovaClassLib.Cordova.Commands
{
public class Sms : BaseCommand
{
public void send(string options)
{
string[] optValues = JsonHelpe... | mit | C# |
891d3eb463b655ca0a1250dc783ffeab60af95b5 | add missing model: DockerBlob | lvermeulen/ProGet.Net | src/ProGet.Net/Native/Models/DockerBlob.cs | src/ProGet.Net/Native/Models/DockerBlob.cs | using System;
// ReSharper disable InconsistentNaming
namespace ProGet.Net.Native.Models
{
public class DockerBlob
{
public int Feed_Id { get; set; }
public string Blob_Digest { get; set; }
public int Download_Count { get; set; }
public DateTime? LastRequested_Date { get; set;... | namespace ProGet.Net.Native.Models
{
public class DockerBlob
{
}
}
| mit | C# |
7b18a4e9e2e7beeee6d08b0420b9afc0867d4d84 | Add xml doc comment for the ClassArgumentExtensions.IsNotNull overload with the custom message | pmacn/Krav,pmacn/Krav | src/RequireThat/ClassArgumentExtensions.cs | src/RequireThat/ClassArgumentExtensions.cs | using RequireThat.Resources;
using System;
using System.Diagnostics;
namespace RequireThat
{
public static class ClassArgumentExtensions
{
/// <summary>
/// Requires that the <paramref name="argument"/> is not null.
/// Throws an exception if the requirement is not met.
/// </su... | using RequireThat.Resources;
using System;
using System.Diagnostics;
namespace RequireThat
{
public static class ClassArgumentExtensions
{
/// <summary>
/// Requires that the <paramref name="argument"/> is not null.
/// Throws an exception if the requirement is not met.
/// </su... | mit | C# |
932d6658a47d4d0926a9219353b090dcbb2a1ff0 | Rename app setting for finance api audiences | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerFinance.Api/Startup.cs | src/SFA.DAS.EmployerFinance.Api/Startup.cs | using System.Configuration;
using Microsoft.Owin;
using Microsoft.Owin.Security.ActiveDirectory;
using Owin;
using SFA.DAS.EmployerFinance.Api;
[assembly: OwinStartup(typeof(Startup))]
namespace SFA.DAS.EmployerFinance.Api
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
... | using System.Configuration;
using Microsoft.Owin;
using Microsoft.Owin.Security.ActiveDirectory;
using Owin;
using SFA.DAS.EmployerFinance.Api;
[assembly: OwinStartup(typeof(Startup))]
namespace SFA.DAS.EmployerFinance.Api
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
... | mit | C# |
3de042ba4214cbb78d79205a1ce10b8c7b7e3560 | Update HtmlSanitizerOptions.cs | mganss/HtmlSanitizer | src/HtmlSanitizer/HtmlSanitizerOptions.cs | src/HtmlSanitizer/HtmlSanitizerOptions.cs | using AngleSharp.Css.Dom;
using System;
using System.Collections.Generic;
namespace Ganss.XSS
{
/// <summary>
/// Provides options to be used with <see cref="HtmlSanitizer"/>.
/// </summary>
public class HtmlSanitizerOptions
{
/// <summary>
/// Gets or sets the allowed tag names suc... | using AngleSharp.Css.Dom;
using System;
using System.Collections.Generic;
namespace Ganss.XSS
{
/// <summary>
/// Provides options to be used with <see cref="HtmlSanitizer"/>.
/// </summary>
public class HtmlSanitizerOptions
{
/// <summary>
/// Gets or sets the allowed tag names suc... | mit | C# |
71c703ad6c1058edf6146a1af5f9f5c655eb7b57 | Add 'Board Meeting Minutes' to navigation bar | croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia.com.au,croquet-australia/website-application,croquet-australia/website-application,croquet-australia/croquet-australia-website,croquet-australia/website-a... | source/CroquetAustraliaWebsite.Application/app/Infrastructure/PublicNavigationBar.cs | source/CroquetAustraliaWebsite.Application/app/Infrastructure/PublicNavigationBar.cs | using System.Collections.Generic;
namespace CroquetAustraliaWebsite.Application.App.Infrastructure
{
public static class PublicNavigationBar
{
public static IEnumerable<NavigationItem> GetNavigationItems()
{
return new[]
{
new NavigationItem("Contact Us"... | using System.Collections.Generic;
namespace CroquetAustraliaWebsite.Application.App.Infrastructure
{
public static class PublicNavigationBar
{
public static IEnumerable<NavigationItem> GetNavigationItems()
{
return new[]
{
new NavigationItem("Contact Us"... | mit | C# |
5d964a0fb8abd58aa30759fc69c391febaf502b2 | Fix answer 28 to include square roots in prime test | Abc-Arbitrage/Abc.NCrafts.AllocationQuiz | Abc.NCrafts.Quizz/Performance/Questions/028/Answer1.cs | Abc.NCrafts.Quizz/Performance/Questions/028/Answer1.cs | using System;
using System.Linq;
namespace Abc.NCrafts.Quizz.Performance.Questions._028
{
[CorrectAnswer(Difficulty = Difficulty.Medium)]
public class Answer1
{
public static void Run()
{
// begin
var primes = Enumerable.Range(0, 10 * 1000)
... | using System;
using System.Linq;
namespace Abc.NCrafts.Quizz.Performance.Questions._028
{
[CorrectAnswer(Difficulty = Difficulty.Medium)]
public class Answer1
{
public static void Run()
{
// begin
var primes = Enumerable.Range(0, 10 * 1000)
... | mit | C# |
182c06a7c2abcedfe76d836f5924c49d1a2a05a3 | Revert accidental change | jherby2k/AudioWorks | AudioWorks/src/Extensions/AudioWorks.Extensions.Mp4/ItunesAudioMetadataDecoder.cs | AudioWorks/src/Extensions/AudioWorks.Extensions.Mp4/ItunesAudioMetadataDecoder.cs | /* Copyright © 2018 Jeremy Herbison
This file is part of AudioWorks.
AudioWorks is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
version.
Au... | /* Copyright © 2018 Jeremy Herbison
This file is part of AudioWorks.
AudioWorks is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
version.
Au... | agpl-3.0 | C# |
65666435cd24af1d84dcca88fc050a2cdaeccef8 | rename vEyeSpaceNormal | bitzhuwei/CSharpGL,bitzhuwei/CSharpGL,bitzhuwei/CSharpGL | Demos/DirectionalLight/DirectionalLightNode.shaders.cs | Demos/DirectionalLight/DirectionalLightNode.shaders.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSharpGL;
namespace DirectionalLight
{
public partial class DirectionalLightNode
{
private const string directionalLightVert = @"#version 330 core
in vec3 " + inPosition + @"; // per-vertex position
in vec3 " ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSharpGL;
namespace DirectionalLight
{
public partial class DirectionalLightNode
{
private const string directionalLightVert = @"#version 330 core
in vec3 " + inPosition + @"; // per-vertex position
in vec3 " ... | mit | C# |
2159defda7aa0d3574b3b9b46585e5c6115f0b65 | add address_importer field | goshippo/shippo-csharp-client | Shippo/CustomsDeclaration.cs | Shippo/CustomsDeclaration.cs | using System;
using Newtonsoft.Json;
namespace Shippo {
[JsonObject(MemberSerialization.OptIn)]
public class CustomsDeclaration : ShippoId {
[JsonProperty(PropertyName = "object_created")]
public object ObjectCreated { get; set; }
[JsonProperty(PropertyName = "object_updated")]
... | using System;
using Newtonsoft.Json;
namespace Shippo {
[JsonObject(MemberSerialization.OptIn)]
public class CustomsDeclaration : ShippoId {
[JsonProperty(PropertyName = "object_created")]
public object ObjectCreated { get; set; }
[JsonProperty(PropertyName = "object_updated")]
... | apache-2.0 | C# |
e6a37028755f1b2a1e26455ad8367b9d498cfad2 | clean up adobe | EricZimmerman/RegistryPlugins | RegistryPlugin.Adobe/ValuesOut.cs | RegistryPlugin.Adobe/ValuesOut.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.Adobe
{
public class ValuesOut:IValueOut
{
public ValuesOut(string productName, string productVersion, string fullPath, Date... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.Adobe
{
public class ValuesOut:IValueOut
{
public ValuesOut(string productName, string productVersion, string fullPath, Date... | mit | C# |
0973c224d643aec9a62213432b83627563d4b12a | Bump to version 2.0 | hispafox/LibLog,BlackFrog1/LibLog,modulexcite/LibLog,damianh/LibLog,leastprivilege/LibLog,darkl/LibLog,khellang/LibLog,adamralph/LibLog,erikvanbrakel/LibLog | src/SharedAssemblyInfo.cs | src/SharedAssemblyInfo.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="SharedAssemblyInfo.cs" company="Damian Hickey">
// Copyright © 2011-2014 Damian Hickey
// </copyright>
// -----------------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="SharedAssemblyInfo.cs" company="Damian Hickey">
// Copyright © 2011-2014 Damian Hickey
// </copyright>
// -----------------------------------------------------------------------... | mit | C# |
313c59c08f5c54cd0b33ed443fd79a72e9c80b74 | Update startup implementation | peterblazejewicz/missing-aspnet5-static-page-template,peterblazejewicz/missing-aspnet5-static-page-template,peterblazejewicz/missing-aspnet5-static-page-template | src/StaticPage/Startup.cs | src/StaticPage/Startup.cs | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.StaticFiles;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace StaticPage
{
public class Startup
{
public Startup(IHost... | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.StaticFiles;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Console;
namespace StaticPage
{
public class Startup
{
// public Startup(IHostingEnvironment env)
... | unlicense | C# |
c775cdbfddc84a25c8198a61348caa44b4c99d71 | Add an async variant of Enqueue | PimDeWitte/UnityMainThreadDispatcher | UnityMainThreadDispatcher.cs | UnityMainThreadDispatcher.cs | /*
Copyright 2015 Pim de Witte 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
Unless required by applicable law or agreed to i... | /*
Copyright 2015 Pim de Witte 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
Unless required by applicable law or agreed to i... | apache-2.0 | C# |
85b6ee2ca8cf5889297c0b3ae0a910bf75df4738 | Fix null reference exception | vostok/core | Vostok.Core/Tracing/Trace.cs | Vostok.Core/Tracing/Trace.cs | using System.Collections.Generic;
using Vostok.Airlock;
using Vostok.Commons.Collections;
namespace Vostok.Tracing
{
public static class Trace
{
private static readonly IPool<Span> spanPool;
private static readonly TraceConfiguration configuration;
static Trace()
{
... | using System.Collections.Generic;
using Vostok.Airlock;
using Vostok.Commons.Collections;
namespace Vostok.Tracing
{
public static class Trace
{
private static readonly IPool<Span> spanPool;
private static readonly TraceConfiguration configuration;
static Trace()
{
... | mit | C# |
46f7d718b0ae2c94169cf67785625b8775a5c81c | fix bug | xuanbg/Utility | WCF/CustomWebHttpBehavior.cs | WCF/CustomWebHttpBehavior.cs | using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;
namespace Insight.WCF
{
public class CustomWebHttpBehavior : WebHttpBehavior
{
public string AllowOrigin { get; set; }
/// <summary>
/// 设置请求消息反序列化器
/// </summary>
/// <param name="operationDe... | using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;
namespace Insight.WCF
{
public class CustomWebHttpBehavior : WebHttpBehavior
{
public string AllowOrigin { get; set; }
/// <summary>
/// 设置请求消息反序列化器
/// </summary>
/// <param name="operationDe... | mit | C# |
8ab76cdf9d5c8ca9c997bba9bb30515e74566fa0 | Use FirstOrDefault rather than First | appharbor/appharbor-cli | src/AppHarbor/Commands/RemoveDrainCommand.cs | src/AppHarbor/Commands/RemoveDrainCommand.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using RestSharp;
namespace AppHarbor.Commands
{
[CommandHelp("Remove a log drain", "[DRAIN URL]")]
public class RemoveDrainCommand : ApplicationCommand
{
private readonly string _accessToken;
private readonly IRestClient _rest... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using RestSharp;
namespace AppHarbor.Commands
{
[CommandHelp("Remove a log drain", "[DRAIN URL]")]
public class RemoveDrainCommand : ApplicationCommand
{
private readonly string _accessToken;
private readonly IRestClient _rest... | mit | C# |
7613712a42d982de38c344665d8ec191bac3f946 | rename test1 | jintiao/SerializationTest | Assets/Editor/Test1-SerializationRule/SerializationRuleWindow.cs | Assets/Editor/Test1-SerializationRule/SerializationRuleWindow.cs | using System;
using UnityEngine;
using UnityEditor;
namespace SerializationTest.Test1
{
public class MyClass {
public string s;
public void OnGUI() {
s = EditorGUILayout.TextField("public string s", s);
}
}
[Serializable]
public class MyClassSerializable {
public float f1;
[NonSerialized]public fl... | using System;
using UnityEngine;
using UnityEditor;
namespace SerializationTest.Test1
{
public class MyClass {
public string s;
public void OnGUI() {
s = EditorGUILayout.TextField("public string s", s);
}
}
[Serializable]
public class MyClassSerializable {
public float f1;
[NonSerialized]public fl... | mit | C# |
76c2d699c4f71e2a3eafa11f8c30749a3bfabefa | Prepare 0.6.0 release | LouisTakePILLz/ArgumentParser | ArgumentParser/Properties/AssemblyInfo.cs | ArgumentParser/Properties/AssemblyInfo.cs | using System.Reflection;
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("ArgumentParser")]
[assembly: AssemblyDescr... | using System.Reflection;
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("ArgumentParser")]
[assembly: AssemblyDescr... | apache-2.0 | C# |
c11ec0e54df7a4d45b710f32b8b372f2f31f5200 | Fix FiddlerProxyUtil.StartAutoRespond to use parameter | sjdirect/commoner | Commoner.Core/Testing/FiddlerProxyUtil.cs | Commoner.Core/Testing/FiddlerProxyUtil.cs | using System.Linq;
using Fiddler;
namespace Commoner.Core.Testing
{
public class FiddlerProxyUtil
{
public static void StartAutoRespond(string p)
{
var importedSessions = SazImporter.ReadSessionArchive(p).ToList();
FiddlerApplication.BeforeRequest += delegate(Session oS... | using System.Linq;
using Fiddler;
namespace Commoner.Core.Testing
{
public class FiddlerProxyUtil
{
public static void StartAutoRespond(string p)
{
var importedSessions = SazImporter.ReadSessionArchive(@"..\..\..\TestResponses.saz").ToList();
FiddlerApplication.BeforeRe... | apache-2.0 | C# |
f1557c04a1004a72c31133f40c4ce1376ebbcd98 | Add all common postfixes. | matkoch/TestLinker,matkoch/TestLinker | src/TestLinker/Options/TestLinkerSettings.cs | src/TestLinker/Options/TestLinkerSettings.cs | // Copyright 2016, 2015, 2014 Matthias Koch
//
// 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... | // Copyright 2016, 2015, 2014 Matthias Koch
//
// 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... | mit | C# |
558f8172e487d62acceca5b87da241bfceb11ea2 | Add base uri to tests | extremecodetv/SocksSharp | tests/SocksSharp.Tests/ProxyClientTests.cs | tests/SocksSharp.Tests/ProxyClientTests.cs | using System;
using System.Diagnostics;
using Microsoft.Extensions.Configuration;
using Xunit;
using SocksSharp;
using SocksSharp.Proxy;
namespace SocksSharp.Tests
{
public class ProxyClientTests
{
private Uri baseUri = new Uri("http://httpbin.org/");
private ProxySettings proxySettings;
... | using System;
using System.Diagnostics;
using Microsoft.Extensions.Configuration;
using Xunit;
using SocksSharp;
using SocksSharp.Proxy;
namespace SocksSharp.Tests
{
public class ProxyClientTests
{
private ProxySettings proxySettings;
private void GatherTestConfiguration()
{
... | mit | C# |
5b176aef41d0e403d5a0afdfb50b78cfa8efa785 | Apply code review | antonba/azure-sdk-tools,johnkors/azure-sdk-tools,johnkors/azure-sdk-tools,markcowl/azure-sdk-tools,DinoV/azure-sdk-tools,DinoV/azure-sdk-tools,DinoV/azure-sdk-tools,antonba/azure-sdk-tools,markcowl/azure-sdk-tools,antonba/azure-sdk-tools,akromm/azure-sdk-tools,akromm/azure-sdk-tools,akromm/azure-sdk-tools,Madhukarc/azu... | WindowsAzurePowershell/src/Management.CloudService/PHP/Cmdlet/AddAzurePHPWorkerRole.cs | WindowsAzurePowershell/src/Management.CloudService/PHP/Cmdlet/AddAzurePHPWorkerRole.cs | // ----------------------------------------------------------------------------------
//
// Copyright 2011 Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://ww... | // ----------------------------------------------------------------------------------
//
// Copyright 2011 Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://ww... | apache-2.0 | C# |
4fcbdfa192c9fbde487d276b9368180695d1fc22 | Update build.cake | xamarin/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents | iOS/JSQMessagesViewController/build.cake | iOS/JSQMessagesViewController/build.cake |
#load "../../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
var IOS_PODS = new List<string> {
"platform :ios, '7.0'",
"install! 'cocoapods', :integrate_targets => false",
"target 'Xamarin' do",
"pod 'JSQMessagesViewController', '7.3.5'",
"end",
};
var buildSpec = new BuildSpec () {
... |
#load "../../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
var IOS_PODS = new List<string> {
"platform :ios, '7.0'",
"install! 'cocoapods', :integrate_targets => false",
"target 'Xamarin' do",
"pod 'JSQMessagesViewController', '~> 7.3'",
"end",
};
var buildSpec = new BuildSpec () {
... | mit | C# |
cab75b4de0a28a59043ee989b6e0f6ebbde50d44 | Check Azure configuration more carefully. Add contracts for some base classes. Fix ExportOrder. | wasabii/Cogito,wasabii/Cogito | Cogito.Composition/ExportOrderAttribute.cs | Cogito.Composition/ExportOrderAttribute.cs | using System;
using System.ComponentModel.Composition;
namespace Cogito.Composition
{
/// <summary>
/// Attaches an Order metadata property to the export.
/// </summary>
[MetadataAttribute]
public class ExportOrderAttribute :
Attribute,
IOrderedExportMetadata
{
/// <s... | using System;
using System.ComponentModel.Composition;
namespace Cogito.Composition
{
/// <summary>
/// Attaches an Order metadata property to the export.
/// </summary>
[MetadataAttribute]
public class ExportOrderAttribute :
Attribute
{
readonly int order;
/// <summ... | mit | C# |
4b440f427cc238b49f794a71b4e3d586f410d83b | increase wait times | bitrise-io/sample-apps-xamarin-android,bitrise-io/sample-apps-xamarin-android | CreditCardValidator.Droid.UITests/Tests.cs | CreditCardValidator.Droid.UITests/Tests.cs | using System;
using System.IO;
using System.Linq;
using System.Reflection;
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.UITest.Android;
using Xamarin.UITest.Queries;
using Xamarin.UITest.Utils;
namespace CreditCardValidator.Droid.UITests
{
// Android emulators are slow, give some time for test.
public... | using System;
using System.IO;
using System.Linq;
using System.Reflection;
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.UITest.Android;
using Xamarin.UITest.Queries;
using Xamarin.UITest.Utils;
namespace CreditCardValidator.Droid.UITests
{
[TestFixture]
public class Tests
{
[SetUp]
public void Be... | mit | C# |
988a11fa8cbe4998f678f957af6516ee93faef6d | Add unit test for empty timezone | amweiss/dark-sky-core | test/UnitTests/LongExtensionsUnitTests.cs | test/UnitTests/LongExtensionsUnitTests.cs | namespace DarkSky.UnitTests.Extensions
{
using System;
using NodaTime;
using Xunit;
using static DarkSky.Extensions.LongExtensions;
public class LongExtensionsUnitTests
{
public static System.Collections.Generic.IEnumerable<object[]> GetDateTimeOffsets()
{
yield return new object[] { DateTimeOffset.MinVa... | namespace DarkSky.UnitTests.Extensions
{
using System;
using NodaTime;
using Xunit;
using static DarkSky.Extensions.LongExtensions;
public class LongExtensionsUnitTests
{
public static System.Collections.Generic.IEnumerable<object[]> GetDateTimeOffsets()
{
yield return new object[] { DateTimeOffset.MinVa... | mit | C# |
7dfc65dacf5e9c8c1902a7a11587f14ab6779ee7 | revert bad commit | mixpanel/mixpanel-unity | Mixpanel/Editor/MixpanelSettingsEditor.cs | Mixpanel/Editor/MixpanelSettingsEditor.cs | using UnityEditor;
namespace mixpanel.editor
{
internal class MixpanelSettingsEditor
{
[SettingsProvider]
internal static SettingsProvider CreateCustomSettingsProvider()
{
// First parameter is the path in the Settings window.
// Second parameter is the scope of ... | using UnityEditor;
namespace mixpanel.editor
{
internal class MixpanelSettingsEditor
{
[SettingsProvider]
internal static SettingsProvider CreateCustomSettingsProvider()
{
// First parameter is the path in the Settings window.
// Second parameter is the scope of ... | apache-2.0 | C# |
82ad0c71469f174df1d4fb99f7535206b26e0478 | Remove unused method | sethreno/schemazen,sethreno/schemazen | Test/Helpers/TestHelper.cs | Test/Helpers/TestHelper.cs | using System.Data.SqlClient;
using SchemaZen.Library;
namespace SchemaZen.Tests;
public class TestHelper {
public static bool EchoSql => true;
public static void ExecSql(string sql, string dbName) {
if (EchoSql) Console.WriteLine(sql);
using (var cn = new SqlConnection(ConfigHelper.TestDB)) {
if (!string.I... | using System.Data.SqlClient;
using SchemaZen.Library;
namespace SchemaZen.Tests;
public class TestHelper {
public static bool EchoSql => true;
public void SetUp() {
var conn = GetConnString("TESTDB");
DBHelper.DropDb(conn);
DBHelper.CreateDb(conn);
SqlConnection.ClearAllPools();
// TODO: verify that dat... | mit | C# |
994979f4adadc8269281dc576382199659fe83ea | Fix SonarCloud issue | awaescher/RepoZ,awaescher/RepoZ | grr/Messages/Filters/IndexMessageFilter.cs | grr/Messages/Filters/IndexMessageFilter.cs | using grr.History;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace grr.Messages.Filters
{
public class IndexMessageFilter : IMessageFilter
{
private readonly IHistoryRepository _historyRepository;
public IndexMessageFilter(IHistoryRe... | using grr.History;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace grr.Messages.Filters
{
public class IndexMessageFilter : IMessageFilter
{
private readonly IHistoryRepository _historyRepository;
public IndexMessageFilter(IHistoryRe... | mit | C# |
6ee1ca21f88931c68389630045e8777d82d267d0 | Make sure conection is encrypted (throw if not) | nE0sIghT/SyslogNet,emertechie/SyslogNet,YallaDotNet/syslog | SyslogNet.Client/Transport/SyslogEncryptedTcpSender.cs | SyslogNet.Client/Transport/SyslogEncryptedTcpSender.cs | using System;
using System.Net.Security;
using System.Net.Sockets;
using System.Security;
using System.Security.Cryptography.X509Certificates;
using SyslogNet.Client.Serialization;
namespace SyslogNet.Client.Transport
{
public class SyslogEncryptedTcpSender : ISyslogMessageSender, IDisposable
{
private ... | using System;
using System.Net.Security;
using System.Net.Sockets;
using System.Security.Cryptography.X509Certificates;
using SyslogNet.Client.Serialization;
namespace SyslogNet.Client.Transport
{
public class SyslogEncryptedTcpSender : ISyslogMessageSender, IDisposable
{
private readonly TcpClient tcpCl... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.