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 |
|---|---|---|---|---|---|---|---|---|
f90397a8d39873987669e7950d45116513e4c9d2 | throw if member name stack empty, it's never null | HarshPoint/HarshPoint,NaseUkolyCZ/HarshPoint,the-ress/HarshPoint | HarshPoint/ExpressionExtensions.cs | HarshPoint/ExpressionExtensions.cs | using System;
using System.Collections.Immutable;
using System.Linq.Expressions;
namespace HarshPoint
{
public static class ExpressionExtensions
{
public static String GetMemberName<T, TResult>(this Expression<Func<T, TResult>> expression)
{
return GetMemberNameCore(expression);
... | using System;
using System.Collections.Immutable;
using System.Linq.Expressions;
namespace HarshPoint
{
public static class ExpressionExtensions
{
public static String GetMemberName<T, TResult>(this Expression<Func<T, TResult>> expression)
{
return GetMemberNameCore(expression);
... | bsd-2-clause | C# |
0266f255af05effb4191a322ddde5488a1da27ed | Add missing XML comment | jamill/libgit2sharp,ethomson/libgit2sharp,libgit2/libgit2sharp,nulltoken/libgit2sharp,GeertvanHorrik/libgit2sharp,xoofx/libgit2sharp,red-gate/libgit2sharp,xoofx/libgit2sharp,jamill/libgit2sharp,AMSadek/libgit2sharp,Zoxive/libgit2sharp,AArnott/libgit2sharp,psawey/libgit2sharp,mono/libgit2sharp,ethomson/libgit2sharp,Oida... | LibGit2Sharp/Stash.cs | LibGit2Sharp/Stash.cs | namespace LibGit2Sharp
{
///<summary>
/// A Stash
/// <para>A stash is a snapshot of the dirty state of the working directory (i.e. the modified tracked files and staged changes)</para>
///</summary>
public class Stash : ReferenceWrapper<Commit>
{
/// <summary>
/// Needed ... | namespace LibGit2Sharp
{
///<summary>
/// A Stash
/// <para>A stash is a snapshot of the dirty state of the working directory (i.e. the modified tracked files and staged changes)</para>
///</summary>
public class Stash : ReferenceWrapper<Commit>
{
/// <summary>
/// Needed ... | mit | C# |
b6c9cc5aad00c44f1d83990c8310b8ebc27dc87b | Fix Autofac registration. | xjpeter/Naru | Naru.WPF/WPFModule.cs | Naru.WPF/WPFModule.cs | using Autofac;
using Naru.WPF.Dialog;
using Naru.WPF.Menu;
using Naru.WPF.MVVM;
using Naru.WPF.Scheduler;
using Naru.WPF.ToolBar;
using Naru.WPF.ViewModel;
namespace Naru.WPF
{
public class WPFModule : Module
{
protected override void Load(ContainerBuilder builder)
{
builder.Regis... | using Autofac;
using Naru.WPF.Dialog;
using Naru.WPF.Menu;
using Naru.WPF.MVVM;
using Naru.WPF.Scheduler;
using Naru.WPF.ToolBar;
using Naru.WPF.ViewModel;
namespace Naru.WPF
{
public class WPFModule : Module
{
protected override void Load(ContainerBuilder builder)
{
builder.Regis... | mit | C# |
e86fcbf41337db7905ee3665aa08d1b2261b59bd | Update 批量合并同名文档:format code && fix IndexOutOfRangeException | imba-tjd/CSharp-Code-Repository | 单个文件的程序/批量合并同名文档.cs | 单个文件的程序/批量合并同名文档.cs | // https://www.zhihu.com/question/284015230
using System;
// using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
namespace DotNet
{
class Program
{
static void Main(string[] args)
{
Directory.GetFiles(
args.Length > 0 ? args[1] :... | // https://www.zhihu.com/question/284015230
using System;
// using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
namespace DotNet
{
class Program
{
static void Main(string[] args)
{
Directory.GetFiles(
args?[1] ?? Environment.Cur... | mit | C# |
1676df4f4c706e6b01efc7a5f173e316598955d8 | fix and rename GetCurrent to TryGetCurrent in AdoNetUnitOfWorkManager | evicertia/Rebus.AdoNet | Rebus.AdoNet/AdoNetUnitOfWorkManager.cs | Rebus.AdoNet/AdoNetUnitOfWorkManager.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Rebus;
using Rebus.Bus;
using Rebus.AdoNet.Dialects;
namespace Rebus.AdoNet
{
public class AdoNetUnitOfWorkManager : IUnitOfWorkManager
... | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Rebus;
using Rebus.Bus;
using Rebus.AdoNet.Dialects;
namespace Rebus.AdoNet
{
public class AdoNetUnitOfWorkManager : IUnitOfWorkManager
... | mit | C# |
aa1fc5a79915d0fa49d30356d7f4c9a46b23acbb | Update AssemblyInfo. | addsb/ShopifySharp | ShopifySharp/Properties/AssemblyInfo.cs | ShopifySharp/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("Sh... | 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("Sh... | mit | C# |
ac81e730e45616d9de31c8c75ddead61fcb81b56 | Support Qiitadon <https://qiitadon.com> | OrionDevelop/Orion,mika-f/Orion | Source/Orion.Shared/ProviderRedirect.cs | Source/Orion.Shared/ProviderRedirect.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Orion.Shared
{
// F**king mstdn.jp
internal static class ProviderRedirect
{
private static readonly List<Tuple<string, string>> RedirectHosts = new List<Tuple<string, string>>
{
new Tuple<string, strin... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Orion.Shared
{
// F**king mstdn.jp
internal static class ProviderRedirect
{
private static readonly List<Tuple<string, string>> RedirectHosts = new List<Tuple<string, string>>
{
new Tuple<string, strin... | mit | C# |
043f68c23dd808fc0d1909bd0139bec46ea7e358 | Update assembly | bringking/mailgun_csharp | Mailgun.AspNet.Identity/Properties/AssemblyInfo.cs | Mailgun.AspNet.Identity/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("Mailgun API Wrapper- ASP.net Identity ser... | 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("Mailgun API Wrapper- ASP.net Identity ser... | mit | C# |
13a33a3274d8935a881b6baa0c68e4edb89bf089 | Refactor or expression | ajlopez/BScript | Src/BScript/Expressions/OrExpression.cs | Src/BScript/Expressions/OrExpression.cs | namespace BScript.Expressions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualBasic.CompilerServices;
public class OrExpression : IExpression
{
private IExpression left;
private IExpression right;
... | namespace BScript.Expressions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualBasic.CompilerServices;
public class OrExpression : IExpression
{
private IExpression left;
private IExpression right;
... | mit | C# |
9f31b559718b8fa1d8161ecff25c0b0804603647 | Update middleware | ZyshchykMaksim/NLayer.NET,ZyshchykMaksim/NLayer.NET | NLayer.NET.PL.API/Middlewares/LoggingMiddleware.cs | NLayer.NET.PL.API/Middlewares/LoggingMiddleware.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using Microsoft.Owin;
using NLayer.NET.BLL.Logger;
using NLayer.NET.PL.API.Extensions;
namespace NLayer.NET.PL.API.Middlewares
{
/// <summary>
///
/// </summary>
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using Microsoft.Owin;
using NLayer.NET.BLL.Logger;
using NLayer.NET.PL.API.Extensions;
namespace NLayer.NET.PL.API.Middlewares
{
/// <summary>
///
/// </summary>
... | apache-2.0 | C# |
e86e44686ddffbfb2c165997b633c05c4c8eb153 | Remove un-used search code | lukecahill/notepad | notepad/Utilities.cs | notepad/Utilities.cs | using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace notepad {
/// <summary>
/// Static class of text utilities such as word count, line count, set up font dialog, return time, and search the text.
/// </summary>
public static class Utilities {
... | using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace notepad {
/// <summary>
/// Static class of text utilities such as word count, line count, set up font dialog, return time, and search the text.
/// </summary>
public static class Utilities {
... | mit | C# |
a7957298c1de4cab445ca204ff23055994bd09fb | Add (temporary) event handler delegate. | jcheng31/IntervalTimer | IntervalTimer.cs | IntervalTimer.cs | using System;
using Microsoft.SPOT;
namespace IntervalTimer
{
public delegate void IntervalEventHandler(object sender, EventArgs e);
public class IntervalTimer
{
public TimeSpan ShortDuration { get; set; }
public TimeSpan LongDuration { get; set; }
public IntervalTime... | using System;
using Microsoft.SPOT;
namespace IntervalTimer
{
public class IntervalTimer
{
public TimeSpan ShortDuration { get; set; }
public TimeSpan LongDuration { get; set; }
public IntervalTimer(TimeSpan shortDuration, TimeSpan longDuration)
{
Short... | mit | C# |
2913f57d2f68a7bbd4697b3f30a90fa94a6f12b2 | Add FuzzyEquals extension method to double and float. | mcneel/RhinoCycles | ExtensionMethods/RhinoCyclesExtensions.cs | ExtensionMethods/RhinoCyclesExtensions.cs | using System;
using System.Drawing;
using Rhino.Geometry.Collections;
namespace RhinoCyclesCore.ExtensionMethods
{
public static class NumericExtensions
{
public static bool FuzzyEquals(this double orig, double test)
{
var rc = false;
rc = Math.Abs(orig - test) < 0.000001;
return rc;
}
public static... | using System;
using System.Drawing;
using Rhino.Geometry.Collections;
namespace RhinoCyclesCore.ExtensionMethods
{
public static class SizeExtensions
{
public static void Deconstruct(this Size size, out int x, out int y)
{
x = size.Width;
y = size.Height;
}
}
public static class MeshVertexColorListExt... | apache-2.0 | C# |
9f927daf453041b8955e372506943a2c80c198d9 | revert logging config causing bug | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | api/src/FilterLists.Api/Startup.cs | api/src/FilterLists.Api/Startup.cs | using FilterLists.Api.DependencyInjection.Extensions;
using FilterLists.Data.DependencyInjection.Extensions;
using FilterLists.Services.DependencyInjection.Extensions;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Dependency... | using FilterLists.Api.DependencyInjection.Extensions;
using FilterLists.Data.DependencyInjection.Extensions;
using FilterLists.Services.DependencyInjection.Extensions;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Dependency... | mit | C# |
4ba2ed3e6494b002bf29fb2447e73fb78fccf763 | fix exposing ApiDocumentation's @context | wikibus/Argolis | src/Hydra/ApiDocumentation.cs | src/Hydra/ApiDocumentation.cs | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Hydra
{
/// <summary>
/// Base class for Hydra API documentation
/// </summary>
public abstract class ApiDocumentation
{
/// <summary>
/// Initi... | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Hydra
{
/// <summary>
/// Base class for Hydra API documentation
/// </summary>
public abstract class ApiDocumentation
{
/// <summary>
/// Initi... | mit | C# |
081595cd0726e17a4ff88bc4454050e4a8b51886 | Make structs public | SICU-Stress-Measurement-System/frontend-cs | StressMeasurementSystem/Models/Patient.cs | StressMeasurementSystem/Models/Patient.cs | using System.Net.Mail;
namespace StressMeasurementSystem.Models
{
public class Patient
{
#region Structs
public struct Name
{
public string Prefix { get; set; }
public string First { get; set; }
public string Middle { get; set; }
public ... | using System.Net.Mail;
namespace StressMeasurementSystem.Models
{
public class Patient
{
#region Structs
struct Name
{
public string Prefix { get; set; }
public string First { get; set; }
public string Middle { get; set; }
public string ... | apache-2.0 | C# |
989add482a28fdf026665f8a71cbfbef7015cbfd | Document PoEStashRequestError | jcmoyer/Yeena | Yeena/PathOfExile/PoEStashRequestError.cs | Yeena/PathOfExile/PoEStashRequestError.cs | // Copyright 2013 J.C. Moyer
//
// 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 ... | // Copyright 2013 J.C. Moyer
//
// 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 ... | apache-2.0 | C# |
fc2bda0a96afffababadd697341a4cf46847d3c9 | Add double click to copy functionality | Schlechtwetterfront/snipp | Views/ClipList.xaml.cs | Views/ClipList.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | apache-2.0 | C# |
5de6ab8b20df0e5b8325f94fc3120e7debb5e5ff | Use different dictionaries and make fastactivator threadsafe | sillsdev/gtk-sharp,sillsdev/gtk-sharp,sillsdev/gtk-sharp,sillsdev/gtk-sharp,sillsdev/gtk-sharp | glib/FastActivator.cs | glib/FastActivator.cs | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
namespace GLib
{
static class FastActivator
{
const BindingFlags flags = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance;
delegate object FastCreateObjectPt... | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
namespace GLib
{
static class FastActivator
{
const BindingFlags flags = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance;
static readonly Dictionary<Type, D... | lgpl-2.1 | C# |
03b8bd0c025ba4926a6fb69737017d7a36ff155f | make proxy generator a static variable of create task | ResourceDataInc/Simpler.Data,gregoryjscott/Simpler,ResourceDataInc/Simpler.Data,gregoryjscott/Simpler,ResourceDataInc/Simpler.Data | Simpler/Construction/Tasks/CreateTask.cs | Simpler/Construction/Tasks/CreateTask.cs | using Castle.DynamicProxy;
using System;
using Simpler.Construction.Interceptors;
namespace Simpler.Construction.Tasks
{
public class CreateTask : Task
{
static readonly ProxyGenerator ProxyGenerator = new ProxyGenerator();
// Inputs
public virtual Type TaskType { get; set; }
... | using Castle.DynamicProxy;
using System;
using Simpler.Construction.Interceptors;
namespace Simpler.Construction.Tasks
{
public class CreateTask : Task
{
// Inputs
public virtual Type TaskType { get; set; }
// Outputs
public virtual object TaskInstance { get; private set; }
... | mit | C# |
9f35d48f4e8b1982c2cad5309dd72b64e59233f8 | Update to release 4.5.50 Work Item #34097 | tfreitasleal/cslacontrib,MarimerLLC/cslacontrib,tfreitasleal/cslacontrib,tfreitasleal/cslacontrib,MarimerLLC/cslacontrib,MarimerLLC/cslacontrib,MarimerLLC/cslacontrib | trunk/Source/GlobalAssemblyInfo.cs | trunk/Source/GlobalAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("CslaContrib project")]
[assembly: AssemblyCopyright("Copyright CslaContrib 2009-2013")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("4.5.50")]
[assembly: AssemblyFileVersio... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("CslaContrib project")]
[assembly: AssemblyCopyright("Copyright CslaContrib 2009-2013")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("4.5.31")]
[assembly: AssemblyFileVersio... | mit | C# |
10d709dd6c6b942837de1723299768ef079bd1b3 | create a PersonChange using a Person object | jgraber/atom_exchange,jgraber/atom_exchange,jgraber/atom_exchange | AtomProducer/Models/PersonChange.cs | AtomProducer/Models/PersonChange.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.ServiceModel.Syndication;
using System.Web;
using System.Xml;
namespace AtomProducer.Models
{
public class PersonChange : SyndicationItem
{
private string _personNamespace = "AtomExchan... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.ServiceModel.Syndication;
using System.Web;
using System.Xml;
namespace AtomProducer.Models
{
public class PersonChange : SyndicationItem
{
private string _personNamespace = "AtomExchan... | apache-2.0 | C# |
65f04f4158843f9404a963d9d86b5ac7058b5308 | Change invalid character enum to make more send (None becomes Error) | mediaburst/clockwork-dotnet | Clockwork/InvalidCharacterAction.cs | Clockwork/InvalidCharacterAction.cs |
/// <summary>
/// Action to take if the message text contains an invalid character
/// Valid characters are defined in the GSM 03.38 character set
/// </summary>
public enum InvalidCharacterAction
{
/// <summary>
/// Use the default setting from your account
/// </summary>
AccountDefault = 0,
/// ... |
/// <summary>
/// Action to take if the message text contains an invalid character
/// Valid characters are defined in the GSM 03.38 character set
/// </summary>
public enum InvalidCharacterAction
{
/// <summary>
/// Use the default setting from your account
/// </summary>
AccountDefault = 0,
/// ... | mit | C# |
39614a3b8dabc0c5fb1705d7791e770c4a6cfd15 | Bump version to 16.6.0.43246 | HearthSim/HearthDb | HearthDb/Properties/AssemblyInfo.cs | HearthDb/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("Hea... | 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("Hea... | mit | C# |
99c72af80e3ee112cd7f3a2030e65f1ff15eaa31 | Bump version to 16.0.0.37060 | HearthSim/HearthDb | HearthDb/Properties/AssemblyInfo.cs | HearthDb/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("Hea... | 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("Hea... | mit | C# |
f29e66141cb704bfa75b487fbf1be23ca68552c5 | Update Index.cshtml | tolu/tobiaslundin.se | ItsPersonal/Views/Home/Index.cshtml | ItsPersonal/Views/Home/Index.cshtml | @{
ViewBag.Title = "Tobias Lundin";
}
<div class="jumbotron">
<h1>Welcome!</h1>
<p class="lead">Snick snack on track</p>
</div>
<div class="row">
<div class="col-md-4">
<h2>Sweet binary home</h2>
<p>
This is where I put things I cant fit into my apartment.
</p>
... | @{
ViewBag.Title = "Tobias Lundin";
}
<div class="jumbotron">
<h1>Welcome</h1>
<p class="lead">Snick snack on track</p>
</div>
<div class="row">
<div class="col-md-4">
<h2>Sweet binary home</h2>
<p>
This is where I put things I cant fit into my apartment.
</p>
... | mit | C# |
7121256795677d44283bb67230579a3f28c41433 | Make -Context positional. | sharpjs/PSql,sharpjs/PSql | PSql/_Commands/ConnectSqlCommand.cs | PSql/_Commands/ConnectSqlCommand.cs | using System.Management.Automation;
using Microsoft.Data.SqlClient;
namespace PSql
{
[Cmdlet(VerbsCommunications.Connect, "Sql")]
[OutputType(typeof(SqlConnection))]
public class ConnectSqlCommand : Cmdlet
{
// -Context
[Parameter(Position = 0, ValueFromPipeline = true)]
public... | using System.Management.Automation;
using Microsoft.Data.SqlClient;
namespace PSql
{
[Cmdlet(VerbsCommunications.Connect, "Sql")]
[OutputType(typeof(SqlConnection))]
public class ConnectSqlCommand : Cmdlet
{
// -Context
[Parameter(ValueFromPipeline = true)]
public SqlContext Co... | isc | C# |
0a932842465a13dbbfc133a3a2ec5d1fc912045c | Fix MailToEmailProvider recipients list | marksvc/libpalaso,gmartin7/libpalaso,gmartin7/libpalaso,sillsdev/libpalaso,tombogle/libpalaso,gtryus/libpalaso,mccarthyrb/libpalaso,hatton/libpalaso,gtryus/libpalaso,tombogle/libpalaso,ddaspit/libpalaso,JohnThomson/libpalaso,mccarthyrb/libpalaso,glasseyes/libpalaso,gmartin7/libpalaso,darcywong00/libpalaso,sillsdev/libp... | Palaso/Email/MailToEmailProvider.cs | Palaso/Email/MailToEmailProvider.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace Palaso.Email
{
public class MailToEmailProvider : IEmailProvider
{
public IEmailMessage CreateMessage()
{
return new EmailMessage();
}
public bool SendMessage(IEmailMessage message)
{
//string body... | using System;
using System.Diagnostics;
namespace Palaso.Email
{
public class MailToEmailProvider : IEmailProvider
{
public IEmailMessage CreateMessage()
{
return new EmailMessage();
}
public bool SendMessage(IEmailMessage message)
{
//string body = _body.Replace(System.Environment.NewLine, "%0A").R... | mit | C# |
ed8fe966cc2995e46f19d82b9ee301521550dd03 | remove redundant versions | pashute/docs.particular.net,yuxuac/docs.particular.net,SzymonPobiega/docs.particular.net,WojcikMike/docs.particular.net,pedroreys/docs.particular.net,eclaus/docs.particular.net | Snippets/Snippets_4/EndpointName.cs | Snippets/Snippets_4/EndpointName.cs | using NServiceBus;
public class EndpointName
{
public void Simple()
{
#region EndpointNameFluent
Configure.With()
.DefineEndpointName("MyEndpoint");
#endregion
}
}
// startcode EndpointNameByAttribute
[EndpointName("MyEndpointName")]
public class EndpointConf... | using NServiceBus;
public class EndpointName
{
public void Simple()
{
#region EndpointNameFluent 4
Configure.With()
.DefineEndpointName("MyEndpoint");
#endregion
}
}
// startcode EndpointNameByAttribute 4
[EndpointName("MyEndpointName")]
public class Endpoint... | apache-2.0 | C# |
1526819afc00be0af3b6f02de3d61b899a29b45f | Update version number to 0.3.0.0. | beppler/trayleds | TrayLeds/Properties/AssemblyInfo.cs | TrayLeds/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("TrayLeds")]
[assembly: AssemblyDescription... | 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("TrayLeds")]
[assembly: AssemblyDescription... | mit | C# |
ec53343dea87a9cab677329d696579d250d59ba8 | Package Update #CHANGE: Pushed AdamsLair.WinForms 1.0.10 | windygu/winforms,AdamsLair/winforms | WinForms/Properties/AssemblyInfo.cs | WinForms/Properties/AssemblyInfo.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 mit einer Assembly verknüpft sind.
[assembly: A... | 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 mit einer Assembly verknüpft sind.
[assembly: A... | mit | C# |
80c3def78dd128a24dffe0eb104cd811c708d792 | Package Update #CHANGE: Pushed AdamsLair.WinForms 1.0.12 | windygu/winforms,AdamsLair/winforms | WinForms/Properties/AssemblyInfo.cs | WinForms/Properties/AssemblyInfo.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 mit einer Assembly verknüpft sind.
[assembly: A... | 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 mit einer Assembly verknüpft sind.
[assembly: A... | mit | C# |
8e6af714aaf9c40a9c4b6d571fb7ffe179777092 | debug info | kboronka/win-service-launcher | WinServiceLauncherTester/Program.cs | WinServiceLauncherTester/Program.cs | /* Copyright (C) 2013 Kevin Boronka
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE ... | /* Copyright (C) 2013 Kevin Boronka
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE ... | bsd-2-clause | C# |
a53c26aa16a09535c780b55c83a0af43691abe73 | set server's current directory to the one where server.exe is | AlonAmsalem/quartznet,RafalSladek/quartznet,zhangjunhao/quartznet,sean-gilliam/quartznet,AndreGleichner/quartznet,quartznet/quartznet,quartznet/quartznet,huoxudong125/quartznet,sean-gilliam/quartznet,andyshao/quartznet,quartznet/quartznet,sean-gilliam/quartznet,quartznet/quartznet,neuronesb/quartznet,quartznet/quartzne... | server/Quartz.Server/Program.cs | server/Quartz.Server/Program.cs | using System.IO;
using Topshelf;
namespace Quartz.Server
{
/// <summary>
/// The server's main entry point.
/// </summary>
public static class Program
{
/// <summary>
/// Main.
/// </summary>
public static void Main()
{
// change from service acc... | using Topshelf;
namespace Quartz.Server
{
/// <summary>
/// The server's main entry point.
/// </summary>
public static class Program
{
/// <summary>
/// Main.
/// </summary>
public static void Main()
{
HostFactory.Run(x =>
... | apache-2.0 | C# |
ab3c1b3dddfa86e759eadb8e8c45905d61216e16 | Set title for console window. | mitchfizz05/DangerousPanel,mitchfizz05/DangerousPanel,mitchfizz05/DangerousPanel | Program.cs | Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DangerousPanel_Server
{
class Program
{
static void Log(string text, ConsoleColor color)
{
ConsoleColor oldColor = Console.ForegroundColor;
Cons... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DangerousPanel_Server
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
42460b46ad06eb7c3ceb3be9f6c66ccb594e795a | Allow building this | mono/maccore,jorik041/maccore,cwensley/maccore,beni55/maccore | src/CoreGraphics/CGPDFPage-2.cs | src/CoreGraphics/CGPDFPage-2.cs | //
// CGPDFPage.cs: Implements the managed CGPDFPage
//
// Authors: Mono Team
//
// Copyright 2009 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,... | //
// CGPDFPage.cs: Implements the managed CGPDFPage
//
// Authors: Mono Team
//
// Copyright 2009 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,... | apache-2.0 | C# |
a66bac967659f300292f73060c51f007210d770c | update script var to 0.1.2-a | austinlparker/Cake.ISO,austinlparker/Cake.ISO | build.cake | build.cake | #tool "nuget:?package=xunit.runner.console&version=2.2.0"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
// vars
var isLocalBuild = !AppVeyor.IsRunningOnAppVeyor;
var version = "0.1.2-alpha";
var semVersion = isLocalBuild ? version : string.Concat(version, "-buil... | #tool "nuget:?package=xunit.runner.console&version=2.2.0"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
// vars
var isLocalBuild = !AppVeyor.IsRunningOnAppVeyor;
var version = "0.1.1-alpha";
var semVersion = isLocalBuild ? version : string.Concat(version, "-buil... | mit | C# |
80f9b4960aaae298c0b2ba88a10781925a218330 | Update HeartBeat.cs | cfairchi/MulticastUDP | udp/HeartBeat.cs | udp/HeartBeat.cs | using System.ComponentModel;
using com.csf.netutils.packets;
namespace com.csf.NetUtils.udp {
// The HeartBeat class os responsible for sending out periodic "HeartBeat" packets.
// Currently configured to send heartbeat every 10 seconds. Allows clients to
// detect servers that exist on the the same... | using System.ComponentModel;
using com.csf.netutils.packets;
namespace com.csf.NetUtils.udp {
public class HeartBeat {
private Packet.PACKETTYPE thePacketType, UDPMultiCastServer theUDPServer);
private BackgroundWorker m_HeartBeatWorker;
private UDPMultiCastServer m_Server;
... | mit | C# |
25d5a4b85753fe28579f25aa169d1b7c411aeaf1 | Use shorter notation. | jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr | test/ActionFactoryTest.cs | test/ActionFactoryTest.cs | using FluentAssertions;
using Moq;
using Xunit;
namespace HelloWorldApp
{
public class ActionFactoryTest
{
[Fact]
public void CreateGetHelloWorldActionTest()
{
var getHelloWorldAction = Mock.Of<IGetHelloWorldAction>();
var resourceProvider = Mock.Of<IResourceProv... | using FluentAssertions;
using Moq;
using Xunit;
namespace HelloWorldApp
{
public class ActionFactoryTest
{
[Fact]
public void CreateGetHelloWorldActionTest()
{
var getHelloWorldAction = new Mock<IGetHelloWorldAction>();
var resourceProvider = new Mock<IResourcePr... | mit | C# |
0aa40cba58aa45fe9833f2c3543a6da3a821486a | Bump version to 1.0.0rc3 | github-for-unity/Unity,github-for-unity/Unity,github-for-unity/Unity | common/SolutionInfo.cs | common/SolutionInfo.cs | #pragma warning disable 436
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("GitHub for Unity")]
[assembly: AssemblyVersion(System.AssemblyVersionInformation.VersionForAssembly)]
[assembly: AssemblyFileVersion(Sys... | #pragma warning disable 436
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("GitHub for Unity")]
[assembly: AssemblyVersion(System.AssemblyVersionInformation.VersionForAssembly)]
[assembly: AssemblyFileVersion(Sys... | mit | C# |
b5cac62f81af51bd9f531c1d374dace684c72adb | Fix - WIP | Red-Folder/WebCrawl-Functions | WebCrawlProcess/run.csx | WebCrawlProcess/run.csx | #r "Newtonsoft.Json"
using System;
using Red_Folder.WebCrawl;
using Red_Folder.WebCrawl.Data;
using Red_Folder.Logging;
using Newtonsoft.Json;
public static void Run(string request, out object outputDocument, TraceWriter log)
{
log.Info($"Started");
CrawlRequest crawlRequest = null;
try
{
crawlRequest = Js... | #r "Newtonsoft.Json"
using System;
using Red_Folder.WebCrawl;
using Red_Folder.WebCrawl.Data;
using Red_Folder.Logging;
using Newtonsoft.Json;
public static void Run(string request, out object outputDocument, TraceWriter log)
{
log.Info($"Started");
try
{
var crawlRequest = JsonConvert.DeserializeObject<Cra... | mit | C# |
960bbae87f84e588f3300ea9e872ee4cd99a2b23 | Update osu.Game/Users/UserActivity.cs | NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,EVAST9919/osu,ppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,johnneijzen/osu,UselessToucan/osu,smoogipooo/osu,ppy/osu,2yangk23/osu,peppy/osu,EVAST9919/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,johnneijzen/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,2yangk23/osu | osu.Game/Users/UserActivity.cs | osu.Game/Users/UserActivity.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.Game.Beatmaps;
using osu.Game.Graphics;
using osuTK.Graphics;
namespace osu.Game.Users
{
public abstract class UserActivity
{
public abstract ... | // 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.Game.Beatmaps;
using osu.Game.Graphics;
using osuTK.Graphics;
namespace osu.Game.Users
{
public abstract class UserActivity
{
public abstract ... | mit | C# |
fa7ac5b2640f48dcd9c47e3bb98467fffae59835 | Rewrite request path to serve up index instead of sending it without content type | Nemo157/DocNuget,Nemo157/DocNuget,Nemo157/DocNuget,Nemo157/DocNuget,Nemo157/DocNuget | src/DocNuget/Startup.cs | src/DocNuget/Startup.cs | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.StaticFiles;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Logging;
namespace DocNuget {
public class Startup {
public void ConfigureServices(IServiceCollection services) {
services.Ad... | using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.StaticFiles;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.Logging;
namespace DocNuget {
public class Startup {
public void ConfigureServices(IServiceCollection services) {
services.Ad... | mit | C# |
ff47b0116b4049898a4c6930488521eb7f56168d | remove hardcoded device name. | salfab/Plexito,salfab/Plexito | src/Plexito/App.xaml.cs | src/Plexito/App.xaml.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Plexito
{
using SandboxConsole.Services;
using System.Threading;
using System.Windows.Navigation;
/// <summary>
/// Inter... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Plexito
{
using SandboxConsole.Services;
using System.Threading;
using System.Windows.Navigation;
/// <summary>
/// Inter... | mit | C# |
a8ff714e59c3b93421a1dd67cb4153d6504502db | Add a GetRootNode method, to match the interface of the sdk. | izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp,izrik/FbxSharp | Scene.cs | Scene.cs | using System;
using System.Collections.Generic;
namespace FbxSharp
{
public class Scene : Document
{
public Scene(string name="")
{
RootNode = new Node();
Nodes.Add(RootNode);
}
public List<Node> Nodes = new List<Node>();
public Node RootNode { ... | using System;
using System.Collections.Generic;
namespace FbxSharp
{
public class Scene : Document
{
public Scene(string name="")
{
RootNode = new Node();
Nodes.Add(RootNode);
}
public List<Node> Nodes = new List<Node>();
public Node RootNode { ... | lgpl-2.1 | C# |
76618d1d8e4632deb5cf96fe8c0803d8dec744e9 | Update RegionFixAllProvider | DotNetAnalyzers/StyleCopAnalyzers | StyleCop.Analyzers/StyleCop.Analyzers/ReadabilityRules/RemoveRegionFixAllProvider.cs | StyleCop.Analyzers/StyleCop.Analyzers/ReadabilityRules/RemoveRegionFixAllProvider.cs | namespace StyleCop.Analyzers.ReadabilityRules
{
using System.Linq;
using System.Threading.Tasks;
using Helpers;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp.Syntax;
internal sealed class RemoveRegionFixAllProvider : DocumentBased... | namespace StyleCop.Analyzers.ReadabilityRules
{
using System.Linq;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Helpers;
internal sealed class RemoveRegionFixAllProvider : DocumentBased... | mit | C# |
8da5f45b776008fdcc32aca423fc52e3fc14ffb1 | Add GameRepoForSocketHandlers.RegisterChatMessage | Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training | src/ChessVariantsTraining/MemoryRepositories/Variant960/GameRepoForSocketHandlers.cs | src/ChessVariantsTraining/MemoryRepositories/Variant960/GameRepoForSocketHandlers.cs | using ChessDotNet;
using ChessVariantsTraining.DbRepositories.Variant960;
using ChessVariantsTraining.Models.Variant960;
using ChessVariantsTraining.Services;
using System.Collections.Generic;
namespace ChessVariantsTraining.MemoryRepositories.Variant960
{
public class GameRepoForSocketHandlers : IGameRepoForSock... | using ChessDotNet;
using ChessVariantsTraining.DbRepositories.Variant960;
using ChessVariantsTraining.Models.Variant960;
using ChessVariantsTraining.Services;
using System.Collections.Generic;
namespace ChessVariantsTraining.MemoryRepositories.Variant960
{
public class GameRepoForSocketHandlers : IGameRepoForSock... | agpl-3.0 | C# |
4baeb11badce77d7df525243f4b6d26e95f3afeb | Fix typo: ouath -> oauth | chunkychode/octokit.net,Sarmad93/octokit.net,shiftkey-tester/octokit.net,devkhan/octokit.net,octokit-net-test/octokit.net,editor-tools/octokit.net,M-Zuber/octokit.net,SmithAndr/octokit.net,ivandrofly/octokit.net,fake-organization/octokit.net,shiftkey/octokit.net,shana/octokit.net,TattsGroup/octokit.net,octokit-net-test... | Octokit/Http/ApiInfo.cs | Octokit/Http/ApiInfo.cs | using System;
using System.Collections.Generic;
#if NET_45
using System.Collections.ObjectModel;
#endif
namespace Octokit
{
/// <summary>
/// Extra information returned as part of each api response.
/// </summary>
public class ApiInfo
{
public ApiInfo(IDictionary<string, Uri> links,
... | using System;
using System.Collections.Generic;
#if NET_45
using System.Collections.ObjectModel;
#endif
namespace Octokit
{
/// <summary>
/// Extra information returned as part of each api response.
/// </summary>
public class ApiInfo
{
public ApiInfo(IDictionary<string, Uri> links,
... | mit | C# |
59df84caea6e0c80092428719afae4491f9cb4f8 | Fix template build failure | smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework | osu.Framework.Templates/templates/template-flappy/FlappyDon.Game/FlappyDonGameBase.cs | osu.Framework.Templates/templates/template-flappy/FlappyDon.Game/FlappyDonGameBase.cs | using FlappyDon.Resources;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Textures;
using osu.Framework.IO.Stores;
using osuTK.Graphics.ES30;
namespace FlappyDon.Game
{
/// <summary>
/// Set up the relevant resource stores and texture settings.
/// </summary>
public abstract class Flappy... | using FlappyDon.Resources;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Textures;
using osu.Framework.IO.Stores;
using osuTK.Graphics.ES30;
namespace FlappyDon.Game
{
/// <summary>
/// Set up the relevant resource stores and texture settings.
/// </summary>
public abstract class Flappy... | mit | C# |
dbe5a9d2065c437d0c0cd83909fd9695ecb985db | Implement 3-ways quick sort | cschen1205/cs-algorithms,cschen1205/cs-algorithms | Algorithms/Sorting/ThreeWayQuickSort.cs | Algorithms/Sorting/ThreeWayQuickSort.cs | using System;
using Algorithms.Utils;
namespace Algorithms.Sorting
{
public class ThreeWayQuickSort
{
public static void Sort<T>(T[] a) where T : IComparable<T>
{
Sort(a, 0, a.Length-1, (a1, a2) => a1.CompareTo(a2));
}
public static void Sort<T>(T[] a, int lo, int ... | using System;
using Algorithms.Utils;
namespace Algorithms.Sorting
{
public class ThreeWayQuickSort
{
public static void Sort<T>(T[] a) where T : IComparable<T>
{
Sort(a, 0, a.Length-1, (a1, a2) => a1.CompareTo(a2));
}
public static void Sort<T>(T[] a, int ... | mit | C# |
7db148b820e178cf79ce4d4e921856a5c94d10b2 | Bump version | nixxquality/GitHubUpdate | GitHubUpdate/Properties/AssemblyInfo.cs | GitHubUpdate/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
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.
[ass... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
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.
[ass... | mit | C# |
e850d63ac1a45312bc71a180a18119b823f9c54e | modify home/index with day3 homework rule | hatelove/MyMvcHomework,hatelove/MyMvcHomework,hatelove/MyMvcHomework | MyMoney/MyMoney/Views/Home/Index.cshtml | MyMoney/MyMoney/Views/Home/Index.cshtml | @{
ViewBag.Title = "Home Page";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<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="http://asp.net" class="btn btn-prim... | @{
ViewBag.Title = "Home Page";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<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="http://asp.net" class="btn btn-prim... | mit | C# |
128118cd783b070a03fcce4b9832ac85df20b5ed | Use linq expression to create dictionary | TattsGroup/octokit.net,rlugojr/octokit.net,shana/octokit.net,eriawan/octokit.net,shana/octokit.net,khellang/octokit.net,Sarmad93/octokit.net,octokit/octokit.net,dampir/octokit.net,rlugojr/octokit.net,gabrielweyer/octokit.net,alfhenrik/octokit.net,SamTheDev/octokit.net,thedillonb/octokit.net,khellang/octokit.net,octokit... | Octokit/Helpers/CollectionExtensions.cs | Octokit/Helpers/CollectionExtensions.cs | using System;
using System.Linq;
using System.Collections.Generic;
namespace Octokit
{
internal static class CollectionExtensions
{
public static TValue SafeGet<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> dictionary, TKey key)
{
Ensure.ArgumentNotNull(dictionary, "dictiona... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Octokit
{
internal static class CollectionExtensions
{
public static TValue SafeGet<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> dictionary, TKey key)
{
Ensure.ArgumentNotNull(dictionary, "dictiona... | mit | C# |
a33ea0a50bf4c830bf15a2bf6c8b5c575f290366 | bump version number | martin2250/OpenCNCPilot | OpenCNCPilot/Properties/AssemblyInfo.cs | OpenCNCPilot/Properties/AssemblyInfo.cs | using System.Reflection;
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 with an assembly.
[assembly: AssemblyTitle("OpenCNCPilot")]
[as... | using System.Reflection;
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 with an assembly.
[assembly: AssemblyTitle("OpenCNCPilot")]
[as... | mit | C# |
29bc3d08d8ef30970945e65e97a4922ffd7c3e0f | Use String.IsNullOrEmpty | mono/dbus-sharp,openmedicus/dbus-sharp,mono/dbus-sharp,arfbtwn/dbus-sharp,openmedicus/dbus-sharp,arfbtwn/dbus-sharp,Tragetaschen/dbus-sharp,Tragetaschen/dbus-sharp | src/Address.cs | src/Address.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
namespace NDesk.DBus
{
public class Address
{
//this method is not pretty
//not worth improving until there is a spec for this format
//TODO: confirm that return value... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
namespace NDesk.DBus
{
public class Address
{
//this method is not pretty
//not worth improving until there is a spec for this format
//TODO: confirm that return value... | mit | C# |
7eac001dcdaf7d595808699b1491e45f5992bf63 | bump version | Dalet/140-speedrun-timer,Dalet/140-speedrun-timer,Dalet/140-speedrun-timer | SharedAssemblyInfo.cs | SharedAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("0.7.3.6")]
[assembly: AssemblyFileVersion("0.7.3.6")]
| using System.Reflection;
[assembly: AssemblyVersion("0.7.3.5")]
[assembly: AssemblyFileVersion("0.7.3.5")]
| unlicense | C# |
900ca8f5ed955edfb991b0c7c0c518f1785618d8 | Fix for OrderedEnumerable null comparer | theraot/Theraot | Core/Theraot/Core/OrderedEnumerable.cs | Core/Theraot/Core/OrderedEnumerable.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Theraot.Collections;
namespace Theraot.Core
{
public class OrderedEnumerable<TElement, TKey> : IOrderedEnumerable<TElement>
{
private readonly IComparer<TKey> _comparer;
private readonly Func<TE... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Theraot.Collections;
namespace Theraot.Core
{
public class OrderedEnumerable<TElement, TKey> : IOrderedEnumerable<TElement>
{
private readonly IComparer<TKey> _comparer;
private readonly Func<TE... | mit | C# |
1e579aacedc3d81a7e537f23f71986cbb7974f95 | Update TermsViewModels | lucasdavid/Gamedalf,lucasdavid/Gamedalf | Gamedalf/ViewModels/TermsViewModels.cs | Gamedalf/ViewModels/TermsViewModels.cs | using Gamedalf.Core.Attributes;
using System.ComponentModel.DataAnnotations;
namespace Gamedalf.ViewModels
{
public class TermsCreateViewModel
{
[Required]
[StringLength(100, MinimumLength = 1)]
public string Title { get; set; }
[Required]
public string Con... | using System.ComponentModel.DataAnnotations;
namespace Gamedalf.ViewModels
{
public class TermsCreateViewModel
{
[Required]
[StringLength(100, MinimumLength = 1)]
public string Title { get; set; }
[Required]
public string Content { get; set; }
}
... | mit | C# |
3d093e80d4ee21acb1c7e0956f981f75ce25274c | Fix the type returned by project.Properties. | srivatsn/MSBuildSdkDiffer | MSBuildSdkDiffer/src/MSBuildProject.cs | MSBuildSdkDiffer/src/MSBuildProject.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Build.Evaluation;
namespace MSBuildSdkDiffer
{
/// <summary>
/// Interface used to Mock access to MSBuild's Project apis.
/// </summary>
public interface IProject
{
ICollection<IProjectProperty> Properties {... | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Build.Evaluation;
namespace MSBuildSdkDiffer
{
/// <summary>
/// Interface used to Mock access to MSBuild's Project apis.
/// </summary>
public interface IProject
{
ICollection<ProjectProperty> Properties { ... | mit | C# |
24dd60127b91b07d64920ab0e63cf7bd439ec0be | Fix build for Net 4.0 | Oceanswave/NiL.JS,nilproject/NiL.JS,nilproject/NiL.JS,Oceanswave/NiL.JS,nilproject/NiL.JS,Oceanswave/NiL.JS | NiL.JS/Expressions/ConvertToInteger.cs | NiL.JS/Expressions/ConvertToInteger.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using NiL.JS.Core;
#if NET40
using NiL.JS.Backward;
#endif
namespace NiL.JS.Expressions
{
#if !(PORTABLE || NETCORE)
[Serializable]
#endif
public sealed class ConvertToInteger : Expression
{
protected internal override Predi... | using System;
using System.Collections.Generic;
using NiL.JS.Core;
using System.Reflection;
namespace NiL.JS.Expressions
{
#if !(PORTABLE || NETCORE)
[Serializable]
#endif
public sealed class ConvertToInteger : Expression
{
protected internal override PredictedType ResultType
{
... | bsd-3-clause | C# |
c32a606a7064aef784f9042604b0af16d5d3e8b1 | add memory diagnoser | JTrotta/MQTTnet,JTrotta/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,JTrotta/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,JTrotta/MQTTnet | Tests/MQTTnet.Benchmarks/MessageProcessingBenchmark.cs | Tests/MQTTnet.Benchmarks/MessageProcessingBenchmark.cs | using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Columns;
using BenchmarkDotNet.Attributes.Exporters;
using BenchmarkDotNet.Attributes.Jobs;
using MQTTnet.Client;
using MQTTnet.Server;
namespace MQTTnet.Benchmarks
{
[ClrJob]
[RPlotExporter, RankColumn]
[MemoryDiagnoser]
public class ... | using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Columns;
using BenchmarkDotNet.Attributes.Exporters;
using BenchmarkDotNet.Attributes.Jobs;
using MQTTnet.Client;
using MQTTnet.Server;
namespace MQTTnet.Benchmarks
{
[ClrJob]
[RPlotExporter, RankColumn]
public class MessageProcessingBench... | mit | C# |
c27a08792ef78571ff2be080445feb0c2ef40880 | Update Configuration.cs | dlidstrom/Tasks,dlidstrom/Tasks,dlidstrom/Tasks | Tasks/Data/Migrations/Configuration.cs | Tasks/Data/Migrations/Configuration.cs | using System.Data.Entity.Migrations;
using Tasks.Data.Models;
namespace Tasks.Data.Migrations
{
internal sealed class Configuration : DbMigrationsConfiguration<Context>
{
public Configuration()
{
AutomaticMigrationsEnabled = true;
}
protected override vo... | using System.Data.Entity.Migrations;
using Tasks.Data.Models;
namespace Tasks.Data.Migrations
{
internal sealed class Configuration : DbMigrationsConfiguration<Context>
{
public Configuration()
{
AutomaticMigrationsEnabled = true;
}
protected override vo... | mit | C# |
efe250f5a2fd45ad96f3dca4be0cd092433b057b | Remove redundant 1* multiplier | BrandonLWhite/UnitsNet,anjdreas/UnitsNet,neutmute/UnitsNet,BoGrevyDynatest/UnitsNet,BrandonLWhite/UnitsNet,anjdreas/UnitsNet | UnitsNet.Tests/CustomCode/FlowTests.cs | UnitsNet.Tests/CustomCode/FlowTests.cs | // Copyright © 2007 by Initial Force AS. All rights reserved.
// https://github.com/InitialForce/UnitsNet
//
// 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, includi... | // Copyright © 2007 by Initial Force AS. All rights reserved.
// https://github.com/InitialForce/UnitsNet
//
// 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, includi... | mit | C# |
bb95aae027e8d5286d3841876f369a3813331053 | Update WalletWasabi.Packager/ArgsProcessor.cs | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Packager/ArgsProcessor.cs | WalletWasabi.Packager/ArgsProcessor.cs | #nullable enable
using System;
namespace WalletWasabi.Packager
{
/// <summary>
/// Class for processing program's command line arguments.
/// </summary>
public class ArgsProcessor
{
public ArgsProcessor(string[]? args)
{
if (args is null)
{
throw new ArgumentNullException(nameof(args));
}
Ar... | #nullable enable
using System;
namespace WalletWasabi.Packager
{
/// <summary>
/// Class for processing program's command line arguments.
/// </summary>
public class ArgsProcessor
{
public ArgsProcessor(string[]? args)
{
if (args == null)
{
throw new ArgumentNullException(nameof(args));
}
Ar... | mit | C# |
ba748f9982f28908edb83f11526e739a0603badb | Make it static | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Wallets/PasswordFinder.cs | WalletWasabi/Wallets/PasswordFinder.cs | using NBitcoin;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Security;
using System.Threading;
namespace WalletWasabi.Wallets
{
public static class PasswordFinder
{
public static readonly Dictionary<string, string> Charsets = new Dictionary<string, strin... | using NBitcoin;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Security;
using System.Threading;
namespace WalletWasabi.Wallets
{
public class PasswordFinder
{
public static readonly Dictionary<string, string> Charsets = new Dictionary<string, string>
{
... | mit | C# |
09704d8e5f2f65f301ea63042de0f51247665c20 | Make internals visible to test assembly | MSayfullin/Basics | Basics.Algorithms/Properties/AssemblyInfo.cs | Basics.Algorithms/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Basics Algorithms")]
[assembly: Assembly... | using System.Reflection;
// 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("Basics Algorithms")]
[assembly: AssemblyCulture("")]
| mit | C# |
8a6b3327e3e637170ce3a7812868fbf2a3864181 | Use prepared http client to build odata client. | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework | src/CSharpClient/Bit.CSharpClient.OData/ViewModel/Extensions/ContainerBuilderExtensions.cs | src/CSharpClient/Bit.CSharpClient.OData/ViewModel/Extensions/ContainerBuilderExtensions.cs | using Autofac;
using Bit.ViewModel.Contracts;
using Simple.OData.Client;
using System;
using System.Net.Http;
namespace Prism.Ioc
{
public static class ContainerBuilderExtensions
{
public static ContainerBuilder RegisterODataClient(this ContainerBuilder containerBuilder)
{
if (cont... | using Autofac;
using Bit.ViewModel.Contracts;
using Simple.OData.Client;
using System;
using System.Net.Http;
namespace Prism.Ioc
{
public static class ContainerBuilderExtensions
{
public static ContainerBuilder RegisterODataClient(this ContainerBuilder containerBuilder)
{
if (cont... | mit | C# |
6ea6c55f133f7f62c186a82ba5d8486c4a392f03 | Update Home.cs | NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework | Test/NakedObjects.Rest.Test.EndToEnd/Home.cs | Test/NakedObjects.Rest.Test.EndToEnd/Home.cs | // Copyright © Naked Objects Group Ltd ( http://www.nakedobjects.net).
// All Rights Reserved. This code released under the terms of the
// Microsoft Public License (MS-PL) ( http://opensource.org/licenses/ms-pl.html)
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace RestfulObjects.Test.EndToEnd {
... | // Copyright © Naked Objects Group Ltd ( http://www.nakedobjects.net).
// All Rights Reserved. This code released under the terms of the
// Microsoft Public License (MS-PL) ( http://opensource.org/licenses/ms-pl.html)
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace RestfulObjects.Test.EndToEnd {
... | apache-2.0 | C# |
c903c6b28e0da86e344ef125a43da6bc1d17a8d8 | add interface implmentation. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/ViewModels/ViewModelBase.cs | WalletWasabi.Gui/ViewModels/ViewModelBase.cs | using ReactiveUI;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using WalletWasabi.Gui.ViewModels.Validation;
using WalletWasabi.Models;
namespace WalletWasabi.Gui.ViewModels
{
public class ViewModelBase : ReactiveObj... | using ReactiveUI;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using WalletWasabi.Gui.ViewModels.Validation;
using WalletWasabi.Models;
namespace WalletWasabi.Gui.ViewModels
{
public class ViewModelBase : ReactiveObj... | mit | C# |
fb844edf00f71c6ca8d064c3761ba2e72a2cc7ce | Add alpha channel support | tobyclh/UnityCNTK,tobyclh/UnityCNTK | Assets/Extensions.cs | Assets/Extensions.cs | using UnityEngine;
using CNTK;
using System;
using System.Linq;
using System.Collections.Generic;
using System;
namespace DeepUnity
{
public static class Extensionas
{
public static Value Create(this Value value, Texture2D texture, bool useAlpha = false)
{
var shape = NDShape.CreateN... | using UnityEngine;
using CNTK;
using System;
using System.Linq;
using System.Collections.Generic;
using System;
namespace DeepUnity
{
public static class Extensionas
{
public static Value Create(this Value value, Texture2D texture)
{
var shape = NDShape.CreateNDShape(new int[] { text... | mit | C# |
02f26e4a4d02a1aba90aa88829d694631aba4cce | Update comment | johnneijzen/osu,ppy/osu,johnneijzen/osu,EVAST9919/osu,ppy/osu,UselessToucan/osu,2yangk23/osu,peppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,EVAST9919/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu,2yangk23/osu,ppy/osu,peppy/osu-new,smoogipoo/osu | osu.Game/Rulesets/Mods/Mod.cs | osu.Game/Rulesets/Mods/Mod.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using Newtonsoft.Json;
using osu.Framework.Graphics.Sprites;
using osu.Game.IO.Serialization;
namespace osu.Game.Rulesets.Mods
{
/// <summary>
///... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using Newtonsoft.Json;
using osu.Framework.Graphics.Sprites;
using osu.Game.IO.Serialization;
namespace osu.Game.Rulesets.Mods
{
/// <summary>
///... | mit | C# |
947b8c67053f7a1ab523c04c072074e8679c91d3 | add new skip data | jasarsoft/mmrtw | Class/Mod/ModSkip.cs | Class/Mod/ModSkip.cs |
namespace Jasarsoft.ModManager.RTW
{
public sealed class ModSkip
{
//field
private string[] names;
//constructor
public ModSkip()
{
names = new string[]
{
"alexander",
"bi",
"custom",
... |
namespace Jasarsoft.ModManager.RTW
{
public sealed class ModSkip
{
string[] names;
//constructor
public ModSkip()
{
names = new string[]
{
"alexander",
"bi",
"data",
"manager",
... | apache-2.0 | C# |
d5d52012eb1e2655bfbf72d6db72efc98c76302f | Increment minor -> 0.2.0 | awseward/restivus | AssemblyInfo.sln.cs | AssemblyInfo.sln.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("0.2.0.0")]
[assembly: AssemblyFileVers... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("0.1.1.0")]
[assembly: AssemblyFileVers... | mit | C# |
26fba6585ccf238958f5d2f28715eb53b06a8ae1 | Update css reference for site.css in Blazor Server templates (#34113) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/Pages/Error.cshtml | src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/Pages/Error.cshtml | @page
@model BlazorServerWeb_CSharp.Pages.ErrorModel
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Error</title>
<link href="~/css/bootstrap/bootstrap.min.css" rel="stylesheet... | @page
@model BlazorServerWeb_CSharp.Pages.ErrorModel
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Error</title>
<link href="~/css/bootstrap/bootstrap.min.css" rel="stylesheet... | apache-2.0 | C# |
d27907f9a9c4808dcdc392f9cd1a6313967d93c7 | Add xml comments to Helper class | nathanpjones/DecimalMath | DecimalEx/Helper.cs | DecimalEx/Helper.cs | namespace DecimalMath
{
/// <summary>
/// Helper functions.
/// </summary>
public static class Helper
{
/// <summary>
/// Swaps the value between two variables.
/// </summary>
public static void Swap<T>(ref T lhs, ref T rhs)
{
var temp = lhs;
... | namespace DecimalMath
{
public static class Helper
{
public static void Swap<T>(ref T lhs, ref T rhs)
{
var temp = lhs;
lhs = rhs;
rhs = temp;
}
// See: http://stackoverflow.com/questions/263400
public const int HashStart = 17;
... | mit | C# |
37135d5e065199a8ac83d960fa7f93034ff1ef7d | Make our simple Contract class throw an exception. | SuperJMN/Avalonia,wieslawsoltes/Perspex,MrDaedra/Avalonia,SuperJMN/Avalonia,Perspex/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,susloparovdenis/Avalonia,susloparovdenis/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,jkoritzinsky... | Perspex/Contract.cs | Perspex/Contract.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Perspex
{
internal static class Contract
{
public static void Requires<TException>(bool condition) where TException : Exception, new()
{
#if DEBUG
if (!cond... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Perspex
{
internal static class Contract
{
public static void Requires<TException>(bool condition) where TException : Exception
{
}
}
}
| mit | C# |
0a0f182797d00cd998220fd0eac556aabe5be026 | Add support for ReactDOM.unmountComponentAtNode | ProductiveRage/Bridge.React,ProductiveRage/Bridge.React | Bridge.React/React.cs | Bridge.React/React.cs | using System;
using Bridge.Html5;
namespace Bridge.React
{
[Name("ReactDOM")]
[External]
public static class React
{
/// <summary>
/// Render a React element into the DOM in the supplied container.
///
/// If the React element was previously rendered into container, this will perform an update on it and
... | using Bridge.Html5;
namespace Bridge.React
{
[Name("ReactDOM")]
[External]
public static class React
{
[Name("render")]
public extern static void Render(ReactElement element, Element container);
}
} | mit | C# |
542df64f2e1aec4d6d0e645d5b39dff44c2c7f40 | Set status code for not found servlet | Metapyziks/WebServer | Default404Servlet.cs | Default404Servlet.cs |
namespace WebServer
{
public class Default404Servlet : HTMLServlet
{
protected override void OnService()
{
Response.StatusCode = 404;
Write(
DocType("html"),
Tag("html", lang => "en", another => "blah")(
Tag("head")(
... |
namespace WebServer
{
public class Default404Servlet : HTMLServlet
{
protected override void OnService()
{
Write(
DocType("html"),
Tag("html", lang => "en", another => "blah")(
Tag("head")(
Tag("title")("Er... | mit | C# |
31d2c7fb1bf6a722a3938befbde83600ebeee20e | Make CharacterGuildCardDataHeaderResponsePayload constructable | HelloKitty/Booma.Proxy | src/Booma.Packet.Game/Character/Payloads/Server/CharacterGuildCardDataHeaderResponsePayload.cs | src/Booma.Packet.Game/Character/Payloads/Server/CharacterGuildCardDataHeaderResponsePayload.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
/* Blue Burst packet that acts as a header for the client's guildcard data.
typedef struct bb_guildcard_hdr
{
bb_pkt_hdr_t hdr;
uint8_t one;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
/* Blue Burst packet that acts as a header for the client's guildcard data.
typedef struct bb_guildcard_hdr
{
bb_pkt_hdr_t hdr;
uint8_t one;... | agpl-3.0 | C# |
421e1451278aefa785b65117a0696fa93d56cd9b | Fix build break | MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhip... | src/Package/Test/Utility/RHostScript.cs | src/Package/Test/Utility/RHostScript.cs | using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.R.Host.Client;
using Microsoft.VisualStudio.R.Package.Repl;
using Microsoft.VisualStudio.R.Package.Shell;
namespace Microsoft.VisualStudio.R.Package.Test.Utility {
[ExcludeFromCodeCoverage]
public sealed class RHostScript : IDisposable {
... | using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.R.Host.Client;
using Microsoft.VisualStudio.R.Package.Repl;
using Microsoft.VisualStudio.R.Package.Shell;
namespace Microsoft.VisualStudio.R.Package.Test.Utility {
[ExcludeFromCodeCoverage]
public sealed class RHostScript : IDisposable {
... | mit | C# |
3cbbe1d198d943d2125596cb95aebedf6e6930f2 | Fix the Limits to also handle "-infinity" | AlexGhiondea/SmugMug.NET | src/SmugMugShared/Descriptors/Limits.cs | src/SmugMugShared/Descriptors/Limits.cs | // Copyright (c) Alex Ghiondea. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace SmugMug.Shared.Descriptors
{
public class Limits
{
// INFINITY, NEGATIVE_INFINITY, POSITIVE_INFINITY, and numbers
... | // Copyright (c) Alex Ghiondea. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace SmugMug.Shared.Descriptors
{
public class Limits
{
// INFINITY, NEGATIVE_INFINITY, POSITIVE_INFINITY, and numbers
... | mit | C# |
ecee4d4bca1d58216b68fb55c19f53ab824f3ba6 | Check if initialize string is available before setting it | ADAPT/ADAPT,tarakreddy/ADAPT | source/Visualizer/DataProvider.cs | source/Visualizer/DataProvider.cs | using System.Collections.Generic;
using AgGateway.ADAPT.ApplicationDataModel;
using AgGateway.ADAPT.PluginManager;
namespace AgGateway.ADAPT.Visualizer
{
public class DataProvider
{
private PluginFactory _pluginFactory;
public void Initialize(string pluginsPath)
{
_pluginF... | using System.Collections.Generic;
using AgGateway.ADAPT.ApplicationDataModel;
using AgGateway.ADAPT.PluginManager;
namespace AgGateway.ADAPT.Visualizer
{
public class DataProvider
{
private PluginFactory _pluginFactory;
public void Initialize(string pluginsPath)
{
_pluginF... | epl-1.0 | C# |
46e71e9ead75227f63080ed4751e3f61228d1f40 | Add missing licence header | peppy/osu,UselessToucan/osu,johnneijzen/osu,ppy/osu,peppy/osu,2yangk23/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,EVAST9919/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,UselessToucan/osu,2yangk23/osu,EVAST9919/osu,peppy/osu,smoogipoo/osu,johnneijzen/osu,ppy/osu,NeoAdonis/osu | osu.Game/Overlays/News/NewsContent.cs | osu.Game/Overlays/News/NewsContent.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.Framework.Graphics.Containers;
namespace osu.Game.Overlays.News
{
public abstract class NewsContent : FillFlowContainer
... | using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Overlays.News
{
public abstract class NewsContent : FillFlowContainer
{
public NewsContent()
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Direction = FillDirecti... | mit | C# |
b434f4072e5777cbf6412f2c78fefb732b623e38 | Update Mvc.cs | dd4t/DD4T.DI.Autofac,dd4t/dd4t-di-autofac | source/DD4T.DI.Autofac/Mvc.cs | source/DD4T.DI.Autofac/Mvc.cs | using System;
using System.IO;
using System.Linq;
using System.Reflection;
using Autofac;
namespace DD4T.DI.Autofac
{
public static class Mvc
{
public static void RegisterMvc(this ContainerBuilder builder)
{
var location = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin");
... | using System;
using System.IO;
using System.Linq;
using System.Reflection;
using Autofac;
namespace DD4T.DI.Autofac
{
public static class Mvc
{
public static void RegisterMvc(this ContainerBuilder builder)
{
var location = string.Format(@"{0}\bin\", AppDomain.CurrentDomain.BaseDirec... | apache-2.0 | C# |
b34a12e71dfc15f415fe876c80c0891e3cd50133 | Add boxed default structure | KodamaSakuno/Sakuno.Base | src/Sakuno.Base/BoxedConstants.cs | src/Sakuno.Base/BoxedConstants.cs | namespace Sakuno
{
public static class BoxedConstants
{
public static class Boolean
{
public static readonly object True = true;
public static readonly object False = false;
}
public static class Int32
{
public static readonly object ... | namespace Sakuno
{
public static class BoxedConstants
{
public static class Boolean
{
public static readonly object True = true;
public static readonly object False = false;
}
public static class Int32
{
public static readonly object ... | mit | C# |
6a5beeb3d7fd896ea35625813e77a53d6f8fb2d4 | clean imports | gleroi/selfnet,gleroi/selfnet | Selfnet/Status.cs | Selfnet/Status.cs | namespace Selfnet
{
public enum Status
{
Any,
Unread,
Starred
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Selfnet
{
public enum Status
{
Any,
Unread,
Starred
}
}
| mit | C# |
0f3197944240439ba49b7c5d6ba2d82931a7aefa | Update ShortYear.cs | maniero/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,maniero/SOpt,maniero/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,maniero/SOpt,maniero/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,bigown/SOpt,maniero/SOpt,bigown/SOpt,bigown/SOpt,maniero/SOpt,bigown/SOpt,bigo... | CSharp/Struct/ShortYear.cs | CSharp/Struct/ShortYear.cs | using System;
using System.Diagnostics.Contracts;
public struct Program {
public static void Main() {
short numero = 2017;
var m = new ShortYear(numero);
Console.WriteLine(m);
}
}
//provavelmente teria implemnetações de operadores, outros métodos e das interfaces
//IFormattable, IConvertible, IComparable<Short... | using System;
using System.Diagnostics.Contracts;
public class Program {
public static void Main() {
short numero = 2017;
var m = new ShortYear(numero);
Console.WriteLine(m);
}
}
public class ShortYear { //provavelmente teria implemnetações de IFormattable, IConvertible, IComparable<ShortYear>, IEquatable<Sho... | mit | C# |
25e40da1a8eabd48063296b760a56735e5114e1a | Make EventArgs base class serializable (#15541) | ruben-ayrapetyan/coreclr,wtgodbe/coreclr,cshung/coreclr,poizan42/coreclr,JosephTremoulet/coreclr,ruben-ayrapetyan/coreclr,cshung/coreclr,yizhang82/coreclr,mmitche/coreclr,cshung/coreclr,JosephTremoulet/coreclr,wtgodbe/coreclr,ruben-ayrapetyan/coreclr,yizhang82/coreclr,JosephTremoulet/coreclr,cshung/coreclr,JosephTremou... | src/mscorlib/shared/System/EventArgs.cs | src/mscorlib/shared/System/EventArgs.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;
namespace System
{
// The base class for all event classes.
[Serializable]
[System.Runtim... | // 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;
namespace System
{
// The base class for all event classes.
public class EventArgs
{
... | mit | C# |
5cb9d1e2af55da5db7939752684552e165f7c8f2 | Attach dev tools only in debug builds | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Core2D.Avalonia/MainWindow.xaml.cs | src/Core2D.Avalonia/MainWindow.xaml.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 Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace Core2D.Avalonia
{
public class MainWindow : Window
{
public MainWin... | // 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 Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace Core2D.Avalonia
{
public class MainWindow : Window
{
public MainWin... | mit | C# |
f4f63cbc8ffb533ab59fab3366d773ba73e3f1c5 | Update AssemblyInfo | ryans610/CSharp-SurveyCount | SurveyCount/Properties/AssemblyInfo.cs | SurveyCount/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 組件的一般資訊是由下列的屬性集控制。
// 變更這些屬性的值即可修改組件的相關
// 資訊。
[assembly: AssemblyTitle("SurveyCount")]
[assembly: AssemblyDescription("Calculate the repeat time of each words.")]
[assembly: AssemblyConfiguration("")]
[assembly: ... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 組件的一般資訊是由下列的屬性集控制。
// 變更這些屬性的值即可修改組件的相關
// 資訊。
[assembly: AssemblyTitle("SurveyCount")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: Assembly... | mit | C# |
ddc659276bf2759277bb14b0775170dd8fec9840 | Add default value | loicteixeira/gj-unity-api | Assets/Plugins/GameJolt/Core/Response.cs | Assets/Plugins/GameJolt/Core/Response.cs | using System.Collections.Generic;
using System.Linq;
using GJAPI.External.SimpleJSON;
namespace GJAPI.Core
{
public enum ResponseFormat { KeyPair, Json, Dump }
public class Response
{
public readonly ResponseFormat format;
public readonly bool success = false;
public readonly string raw = null;
public ... | using System.Collections.Generic;
using System.Linq;
using GJAPI.External.SimpleJSON;
namespace GJAPI.Core
{
public enum ResponseFormat { KeyPair, Json, Dump }
public class Response
{
public readonly ResponseFormat format;
public readonly bool success;
public readonly string raw;
public readonly string... | mit | C# |
4eac89daf06fb83f574ec71809d432c1b86a1778 | Add reading event positions. | roblillack/monoberry,roblillack/monoberry,roblillack/monoberry,roblillack/monoberry | libblackberry/screen/ScreenEvent.cs | libblackberry/screen/ScreenEvent.cs | using System;
using System.Runtime.InteropServices;
namespace BlackBerry.Screen
{
public class ScreenEvent
{
[DllImport ("screen")]
static extern IntPtr screen_event_get_event (IntPtr bps_event);
[DllImport ("screen")]
static extern int screen_get_event_property_iv (IntPtr handle, Property prop, out int val... | using System;
using System.Runtime.InteropServices;
namespace BlackBerry.Screen
{
public class ScreenEvent
{
[DllImport ("screen")]
static extern IntPtr screen_event_get_event (IntPtr bps_event);
[DllImport ("screen")]
static extern IntPtr screen_get_event_property_iv (IntPtr handle, Property prop, out int ... | mit | C# |
f2139b95c4e0c238fb62fefd38ed17ff028eb064 | remove build optimization | ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET | ElectronNET.CLI/Commands/BuildCommand.cs | ElectronNET.CLI/Commands/BuildCommand.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
namespace ElectronNET.CLI.Commands
{
public class BuildCommand : ICommand
{
public const string COMMAND_NAME = "build";
public const string COMMAND_DESCRIPTION = "Build your Electron Application.";
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
namespace ElectronNET.CLI.Commands
{
public class BuildCommand : ICommand
{
public const string COMMAND_NAME = "build";
public const string COMMAND_DESCRIPTION = "Build your Electron Application.";
... | mit | C# |
eb713a24cbcaf77a15ce550b3f974544015a4abb | Fix spelling mistake | gpvigano/AsImpL | Assets/AsImpL/Scripts/IO/IFilesystem.cs | Assets/AsImpL/Scripts/IO/IFilesystem.cs | using System.Collections;
using System.IO;
namespace AsImpL
{
/// <summary>
/// Interface for classes that access the filesystem.
/// </summary>
public interface IFilesystem
{
/// <summary>
/// Reads all data from the specified path into a byte array.
/// </summary>
... | using System.Collections;
using System.IO;
namespace AsImpL
{
/// <summary>
/// Interface for classes that access the filesystem.
/// </summary>
public interface IFilesystem
{
/// <summary>
/// Reads all data from the specified path into a byte array.
/// </summary>
... | mit | C# |
4d19da3e9793405ae7e87dc557320804dbd0e24f | remove unused using | rebuy-de/xamarin-webtrekk-bindings | IOS.Libraries/Properties/AssemblyInfo.cs | IOS.Libraries/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using Foundation;
// This attribute allows you to mark your assemblies as “safe to link”.
// When the attribute is present, the linker—if enabled—will process the assembly
// even if you’re using the “Link SDK assemblies only” option, which is the defau... | using System.Reflection;
using System.Runtime.CompilerServices;
using Foundation;
// This attribute allows you to mark your assemblies as “safe to link”.
// When the attribute is present, the linker—if enabled—will process the assembly
// even if you’re using the “Link SDK assemblies only” option, which is the defau... | mit | C# |
c2f63efea993b01d0f918268ea8b687a18adacc0 | Revert "test" | NiallHow/Software-Eng,qchouleur/MyHome,M-Zuber/MyHome | BusinessLogic/GeneralCategoryHandler.cs | BusinessLogic/GeneralCategoryHandler.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BusinessLogic
{
public static class GeneralCategoryHandler
{
public static List<string> GetAllCategoryNames()
{
List<string> allCategoryNames = new List<string>();
allCatego... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BusinessLogic
{
public static class GeneralCategoryHandler
{
public static List<string> GetAllCategoryNames()
{
List<string> allCategoryNames = new List<string>();
allCatego... | mit | C# |
884a5c5f7efd5a5bbf89388be40717a2f9235c70 | Make SetUp test pass | yawaramin/TDDUnit | TestCase.cs | TestCase.cs | using System;
namespace TDDUnit {
class TestCase {
public TestCase(string name) {
m_name = name;
}
public virtual void SetUp() {
}
public TestResult Run() {
TestResult result = new TestResult();
result.TestStarted();
try {
SetUp();
GetType().GetMethod(... | using System;
namespace TDDUnit {
class TestCase {
public TestCase(string name) {
m_name = name;
}
public virtual void SetUp() {
}
public TestResult Run() {
TestResult result = new TestResult();
result.TestStarted();
SetUp();
try {
GetType().GetMethod(m_... | apache-2.0 | C# |
a428b01a5299ac79624a0ee2e3304ec6ce28be75 | bump version to 2.1.0 | piwik/piwik-dotnet-tracker,piwik/piwik-dotnet-tracker,piwik/piwik-dotnet-tracker | Piwik.Tracker/Properties/AssemblyInfo.cs | Piwik.Tracker/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("PiwikTracker")]
[assembly: Assembl... | 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("PiwikTracker")]
[assembly: Assembl... | bsd-3-clause | C# |
99f6af0d61cd7c66ed3bc8e69c7457447a57d3b0 | Test folder change | rdadbhawala-cmspl/Workspace | Product/Src/Jenkins/GitRegions/Class1.cs | Product/Src/Jenkins/GitRegions/Class1.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GitRegions
{
public class Class1
{
public string TestProp { get; set; }
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GitRegions
{
public class Class1
{
}
}
| mit | C# |
679a7d9f5f54dc02bf6d982174cb71b05026de34 | Fix visibility | cra0zy/xwt,hamekoz/xwt,antmicro/xwt,directhex/xwt,lytico/xwt,akrisiun/xwt,mminns/xwt,sevoku/xwt,TheBrainTech/xwt,steffenWi/xwt,residuum/xwt,hwthomas/xwt,mono/xwt,iainx/xwt,mminns/xwt | Xwt/Xwt.Backends/IMarkdownViewBackend.cs | Xwt/Xwt.Backends/IMarkdownViewBackend.cs | //
// IMarkdownViewBackend.cs
//
// Author:
// Jérémie Laval <jeremie.laval@xamarin.com>
//
// Copyright (c) 2012 Xamarin, Inc.
using System;
namespace Xwt.Backends
{
[Flags]
public enum MarkdownInlineStyle
{
Italic,
Bold,
Monospace
}
public interface IMarkdownViewBackend : IWidgetBackend
{
object... | //
// IMarkdownViewBackend.cs
//
// Author:
// Jérémie Laval <jeremie.laval@xamarin.com>
//
// Copyright (c) 2012 Xamarin, Inc.
using System;
namespace Xwt.Backends
{
[Flags]
enum MarkdownInlineStyle
{
Italic,
Bold,
Monospace
}
public interface IMarkdownViewBackend : IWidgetBackend
{
object Create... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.