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 |
|---|---|---|---|---|---|---|---|---|
252e8ca17a55d6672e5b4483fc07b287db9dfcb2 | Update Plane.cs | shlee322/openrgss | Runtime/RGSS/Plane.cs | Runtime/RGSS/Plane.cs | namespace OpenRGSS.Runtime.RGSS
{
public class Plane : Entity
{
private Viewport _viewport;
public Viewport viewport
{
get { return _viewport; }
}
public Bitmap bitmap;
public bool visible;
public int z;
public int ox;
public i... | namespace OpenRGSS.Runtime.RGSS
{
public class Plane : Entity
{
public Viewport viewport;
public Bitmap bitmap;
public bool visible;
public int z;
public int ox;
public int oy;
public double zoom_x;
public double zoom_y;
public int opacity... | mit | C# |
cef4ab52270bf68e8c0523f559e18dbbe6b31dbe | Support long | kichristensen/InfluxDB.WriteOnly | InfluxDB.WriteOnly/Field.cs | InfluxDB.WriteOnly/Field.cs | using System;
using System.Globalization;
namespace InfluxDB.WriteOnly {
public class Field : IEquatable<Field> {
public string Key { get; }
public object Value { get; }
private static readonly CultureInfo Culture = CultureInfo.InvariantCulture;
public Field(string key, float valu... | using System;
using System.Globalization;
namespace InfluxDB.WriteOnly {
public class Field : IEquatable<Field> {
public string Key { get; }
public object Value { get; }
private static readonly CultureInfo Culture = CultureInfo.InvariantCulture;
public Field(string key, float valu... | mit | C# |
6818658a5f28f78c72b11982bd46101f6d381267 | Update Index.cshtml | TheScienceOfCode/Sibelius.Web,TheScienceOfCode/Sibelius.Web,TheScienceOfCode/Sibelius.Web | Sibelius.Web/Views/Questions/Index.cshtml | Sibelius.Web/Views/Questions/Index.cshtml |
@{
ViewBag.Title = "Pregúntanos";
ViewBag.ContainerClass = "body-content";
}
<br />
<div class="row">
<div class="col-xs-12">
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Questions -->
<ins class="adsbygoog... |
@{
ViewBag.Title = "Pregúntanos";
ViewBag.ContainerClass = "body-content";
}
<br />
<div class="row">
<div class="col-xs-12">
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Questions -->
- <ins class="adsbygoo... | mit | C# |
ce897e990e1bb23cb7f73065e5db7fd4e45b8831 | Make sure to cleanup after tests. - use XUnit convention of using Dispose for teardown. | driis/git.experiments,driis/git.experiments | test/git.net.test/Integration/GitRepositoryStructureTests.cs | test/git.net.test/Integration/GitRepositoryStructureTests.cs | using System;
using System.IO;
using System.Threading.Tasks;
using Xunit;
using git.net;
namespace git.net.test.Integration
{
public class GitRepositoryStructureTests : IDisposable
{
private readonly NativeGit _nativeGit;
private readonly GitRepository _gitRepository;
public GitReposit... | using System;
using System.IO;
using System.Threading.Tasks;
using Xunit;
using git.net;
namespace git.net.test.Integration
{
public class GitRepositoryStructureTests
{
private readonly NativeGit _nativeGit;
private readonly GitRepository _gitRepository;
public GitRepositoryStructureTe... | mit | C# |
7e89dfae9fdd78bc70593c8cba8b826739d32044 | Move file location. | JornWildt/Xyperico.Discuss | TestServer/Program.cs | TestServer/Program.cs | using System;
using log4net;
using Xyperico.Agres;
using Xyperico.Agres.ProtoBuf;
using Xyperico.Agres.Sql;
using Xyperico.Discuss.Forums;
using Xyperico.Discuss.Forums.Commands;
using Xyperico.Discuss;
using Xyperico.Agres.DocumentStore;
namespace TestServer
{
class Program
{
const string Sql... | using System;
using log4net;
using Xyperico.Agres;
using Xyperico.Agres.ProtoBuf;
using Xyperico.Agres.Sql;
using Xyperico.Discuss.Forums;
using Xyperico.Discuss.Forums.Commands;
using Xyperico.Discuss;
using Xyperico.Agres.DocumentStore;
namespace TestServer
{
class Program
{
const string Sql... | mit | C# |
5652961bf1a9e1b78a76874fb95fd4dd1ba48242 | add break on found proper assembly | Roland0511/slua,Roland0511/slua,luzexi/slua-3rd-lib,yaukeywang/slua,soulgame/slua,luzexi/slua-3rd-lib,yaukeywang/slua,soulgame/slua,Roland0511/slua,soulgame/slua,mr-kelly/slua,luzexi/slua-3rd,pangweiwei/slua,jiangzhhhh/slua,shrimpz/slua,luzexi/slua-3rd,luzexi/slua-3rd,jiangzhhhh/slua,haolly/slua_source_note,soulgame/sl... | Assets/Plugins/Slua_Managed/Lua3rdDLL.cs | Assets/Plugins/Slua_Managed/Lua3rdDLL.cs | using System.Collections.Generic;
using LuaInterface;
using System;
using System.Linq;
using System.Reflection;
namespace SLua{
public static class Lua3rdDLL{
static Dictionary<string, LuaCSFunction> DLLRegFuncs = new Dictionary<string, LuaCSFunction>();
static Lua3rdDLL(){
// LuaSocketDLL.Reg(DL... | using System.Collections.Generic;
using LuaInterface;
using System;
using System.Linq;
using System.Reflection;
using UnityEngine;
namespace SLua{
public static class Lua3rdDLL{
static Dictionary<string, LuaCSFunction> DLLRegFuncs = new Dictionary<string, LuaCSFunction>();
static Lua3rdDLL(){
//... | mit | C# |
a464a4c70e6601599b94b748e3481cbf3ff47326 | add cake.xamarin | Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving | XamarinApp/build.cake | XamarinApp/build.cake | #addin nuget:https://nuget.org/api/v2/?package=Cake.FileHelpers&version=1.0.3.2
#addin nuget:https://nuget.org/api/v2/?package=Cake.Xamarin&version=1.2.3
#addin "Cake.Xamarin"
var username = EnvironmentVariable("XamarinLicenseUser");
var password = EnvironmentVariable("XamarinLicensePassword");
var TARGET = Argument ... | #addin nuget:https://nuget.org/api/v2/?package=Cake.FileHelpers&version=1.0.3.2
#addin nuget:https://nuget.org/api/v2/?package=Cake.Xamarin&version=1.2.3
var username = EnvironmentVariable("XamarinLicenseUser");
var password = EnvironmentVariable("XamarinLicensePassword");
var TARGET = Argument ("target", Argument ("... | mit | C# |
7eb9eb5bdc5531fb5d23fed7da921cc7b1faa8e1 | update addin | Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving | XamarinApp/build.cake | XamarinApp/build.cake | #addin "Cake.Xamarin"
var username = EnvironmentVariable("XamarinLicenseUser");
var password = EnvironmentVariable("XamarinLicensePassword");
var TARGET = Argument ("target", Argument ("t", "Default"));
Task ("Default").Does (() =>
{
RestoreComponents ("./MyTrips.sln", new XamarinComponentRestoreSettings
{
Emai... | #addin nuget:https://nuget.org/api/v2/?package=Cake.FileHelpers&version=1.0.3.2
#addin nuget:https://nuget.org/api/v2/?package=Cake.Xamarin&version=1.2.3
#addin "Cake.Xamarin"
var username = EnvironmentVariable("XamarinLicenseUser");
var password = EnvironmentVariable("XamarinLicensePassword");
var TARGET = Argument ... | mit | C# |
df006163e0314c037e5593c1103c2e8000c64683 | make it into a collection | magoswiat/octokit.net,TattsGroup/octokit.net,Sarmad93/octokit.net,naveensrinivasan/octokit.net,octokit/octokit.net,SamTheDev/octokit.net,chunkychode/octokit.net,khellang/octokit.net,Sarmad93/octokit.net,SamTheDev/octokit.net,gdziadkiewicz/octokit.net,editor-tools/octokit.net,chunkychode/octokit.net,ivandrofly/octokit.n... | Octokit/Models/Request/NewTeam.cs | Octokit/Models/Request/NewTeam.cs | using Octokit.Internal;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
public class NewTeam
{
public NewTeam(string name)
{
Name = name;
RepoNames = new Colle... | using Octokit.Internal;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
namespace Octokit
{
public class NewTeam
{
public NewTeam(string name)
{
Name = name;
}
/// <summary>
/// team name
/// </su... | mit | C# |
a06c2fc96f4fc9f1591d823eecec67bd135a1822 | Fix example that caused exception | oxyplot/documentation-examples | ExampleGenerator/Misc/BindingExamples.cs | ExampleGenerator/Misc/BindingExamples.cs | namespace ExampleGenerator
{
using OxyPlot;
public static class BindingExamples
{
[Export(@"BindingExamples\Example1")]
public static PlotModel Example1()
{
return new PlotModel { Title = "TODO" };
}
}
} | namespace ExampleGenerator
{
using OxyPlot;
public static class BindingExamples
{
[Export(@"BindingExamples\Example1")]
public static PlotModel Example1()
{
return null;
}
}
} | mit | C# |
f2df98c513610fd2089b2f2e5caf68c5b9c1ba4e | Add AsReadOnlyList; Remove obsolete method | SaberSnail/GoldenAnvil.Utility | GoldenAnvil.Utility/EnumerableUtility.cs | GoldenAnvil.Utility/EnumerableUtility.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace GoldenAnvil.Utility
{
public static class EnumerableUtility
{
public static IEnumerable<T> EmptyIfNull<T>(this IEnumerable<T> items)
{
return items ?? Enumerable.Empty<T>();
}
public static IEnumerable... | using System.Collections.Generic;
using System.Linq;
namespace GoldenAnvil.Utility
{
public static class EnumerableUtility
{
public static IEnumerable<T> Append<T>(this IEnumerable<T> items, T value)
{
foreach (T item in items)
yield return item;
yield return value;
}
public static IEnumerable<T>... | mit | C# |
cd2e71e8c576077fac7b9a859fff739c967715f9 | Bump to 1.2.1.0 | chitoku-k/NowPlayingLib | NowPlayingLib/Properties/AssemblyInfo.cs | NowPlayingLib/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("NowPlayingLib")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: ... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("NowPlayingLib")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: ... | mit | C# |
c70609f37eaa175f1b78bdad3888acba74d22622 | set blast to scheduled if schedule_time is set | sailthru/sailthru-net-client | Sailthru/Sailthru.Tests/Mock/BlastApi.cs | Sailthru/Sailthru.Tests/Mock/BlastApi.cs | using System;
using System.Collections.Generic;
using System.Threading;
using Newtonsoft.Json.Linq;
namespace Sailthru.Tests.Mock
{
public static class BlastApi
{
private static int currentId = 1000;
public static object ProcessPost(JObject request)
{
int blastId = Interlo... | using System;
using System.Collections.Generic;
using System.Threading;
using Newtonsoft.Json.Linq;
namespace Sailthru.Tests.Mock
{
public static class BlastApi
{
private static int currentId = 1000;
public static object ProcessPost(JObject request)
{
int blastId = Interlo... | mit | C# |
9a4ff60b007981e9218d273b32efb4d865101641 | Use NpmParsingOptions.Default in all tests | maxhauser/semver | Semver.Test/SemVersionNpmSatisfyTests.cs | Semver.Test/SemVersionNpmSatisfyTests.cs | using Semver.Ranges;
using Semver.Ranges.Comparers.Npm;
using Semver.Test.NpmSatisfyTestData;
using Xunit;
using Xunit.Abstractions;
namespace Semver.Test
{
public class SemVersionNpmSatisfyTests
{
private readonly ITestOutputHelper testOutput;
public SemVersionNpmSatisfyTests(ITestOutputHelpe... | using Semver.Ranges;
using Semver.Ranges.Comparers.Npm;
using Semver.Test.NpmSatisfyTestData;
using Xunit;
using Xunit.Abstractions;
namespace Semver.Test
{
public class SemVersionNpmSatisfyTests
{
private readonly ITestOutputHelper testOutput;
public SemVersionNpmSatisfyTests(ITestOutputHelpe... | mit | C# |
29ada14970632952a846904cd2322e0e4c00fb04 | Fix sound on Switch weenie class (#2729) | LtRipley36706/ACE,ACEmulator/ACE,ACEmulator/ACE,LtRipley36706/ACE,LtRipley36706/ACE,ACEmulator/ACE | Source/ACE.Server/WorldObjects/Switch.cs | Source/ACE.Server/WorldObjects/Switch.cs | using ACE.Database.Models.Shard;
using ACE.Database.Models.World;
using ACE.Entity;
using ACE.Entity.Enum;
using ACE.Entity.Enum.Properties;
using ACE.Server.Entity.Actions;
using ACE.Server.Network.GameMessages.Messages;
namespace ACE.Server.WorldObjects
{
public class Switch : WorldObject
{
/// <summ... | using ACE.Database.Models.Shard;
using ACE.Database.Models.World;
using ACE.Entity;
using ACE.Entity.Enum;
using ACE.Entity.Enum.Properties;
using ACE.Server.Entity.Actions;
using ACE.Server.Network.GameMessages.Messages;
namespace ACE.Server.WorldObjects
{
public class Switch : WorldObject
{
/// <summ... | agpl-3.0 | C# |
726a51018915a55a399e67a573e70aa105b33219 | remove not needed usings | UselessToucan/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,naoey/osu,NeoAdonis/osu,UselessToucan/osu,EVAST9919/osu,johnneijzen/osu,2yangk23/osu,UselessToucan/osu,ZLima12/osu,peppy/osu-new,EVAST9919/osu,peppy/osu,DrabWeb/osu,naoey/osu,naoey/osu,2yangk23/osu,smoogipoo/osu,DrabWeb/osu,peppy/osu,smoogipooo/osu,NeoAdonis/osu,joh... | osu.Game.Rulesets.Osu/Mods/OsuModTransform.cs | osu.Game.Rulesets.Osu/Mods/OsuModTransform.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects.Dra... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Linq;
using System.Collections.Generic;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Graphics;
using osu.Game.Gr... | mit | C# |
bafb30bc4774d118a1cc1f2141a4b9b98e7e40d1 | use task in FileMonitor | poma/HotsStats | StatsFetcher/FileMonitor.cs | StatsFetcher/FileMonitor.cs | using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace StatsFetcher
{
public class FileMonitor
{
public readonly string BattleLobbyPath = Path.Combine(Path.GetTempPath(), @"Heroes of the Storm\TempWriteReplayP1\replay.server.battlelobby");
public readon... | using System;
using System.IO;
using System.Linq;
using System.Threading;
namespace StatsFetcher
{
public class FileMonitor
{
public readonly string BattleLobbyPath = Path.Combine(Path.GetTempPath(), @"Heroes of the Storm\TempWriteReplayP1\replay.server.battlelobby");
public readonly string ProfilePath = Path.C... | mit | C# |
c6947507c674dbcbc77cb42038c45bc78896a009 | Check for empty array on food record | pampersrocker/EvoNet | EvoNet/Forms/MainForm.cs | EvoNet/Forms/MainForm.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using EvoNet.Controls;
using Graph;
using EvoNet.Map;
namespace EvoNet.Forms
{
public partial class ... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using EvoNet.Controls;
using Graph;
using EvoNet.Map;
namespace EvoNet.Forms
{
public partial class ... | mit | C# |
c5517231febe186215a8fd3b1a5e61faa165f447 | Update _Layout.cshtml | CarmelSoftware/Generic-Data-Repository-for-ASP.NET-MVC | Views/Shared/_Layout.cshtml | Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://max... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://max... | mit | C# |
ff5a068e65772e9d81c4970bbf291aec0671c85a | fix error in quest db | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Data/Databases/QuestDatabase.cs | TCC.Core/Data/Databases/QuestDatabase.cs | using System.Collections.Generic;
using System.IO;
namespace TCC.Data.Databases
{
public class QuestDatabase : DatabaseBase
{
public Dictionary<uint, string> Quests { get; }
protected override string FolderName => "quests";
protected override string Extension => "tsv";
public... | using System.Collections.Generic;
using System.IO;
namespace TCC.Data.Databases
{
public class QuestDatabase : DatabaseBase
{
public Dictionary<uint, string> Quests { get; }
protected override string FolderName => "quests";
protected override string Extension => "tsv";
public... | mit | C# |
9822653f73b7affb8a9f560f05d1c494bb9bbf25 | Remove content | It423/todo-list,wrightg42/todo-list | Todo-List/Todo-List/Note.cs | Todo-List/Todo-List/Note.cs | // Note.cs
// <copyright file="Note.cs"> This code is protected under the MIT License. </copyright>
using System.Collections.Generic;
namespace Todo_List
{
/// <summary>
/// A data representation of a note.
/// </summary>
public class Note
{
/// <summary>
/// Initializes a new inst... | // Note.cs
// <copyright file="Note.cs"> This code is protected under the MIT License. </copyright>
using System.Collections.Generic;
namespace Todo_List
{
/// <summary>
/// A data representation of a note.
/// </summary>
public class Note
{
/// <summary>
/// Initializes a new inst... | mit | C# |
bfd25b8a14292c9922cdcf90b0ba694421522fc7 | Improve API keys list view | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer/Views/Manage/APIKeys.cshtml | BTCPayServer/Views/Manage/APIKeys.cshtml | @namespace BTCPayServer.Client
@model BTCPayServer.Controllers.ManageController.ApiKeysViewModel
@{
ViewData.SetActivePageAndTitle(ManageNavPages.APIKeys, "Manage your API Keys");
}
<partial name="_StatusMessage"/>
<table class="table table-lg">
<thead>
<tr>
<th>Label</th>
<th>Key</th>
... | @namespace BTCPayServer.Client
@model BTCPayServer.Controllers.ManageController.ApiKeysViewModel
@{
ViewData.SetActivePageAndTitle(ManageNavPages.APIKeys, "Manage your API Keys");
}
<partial name="_StatusMessage"/>
<h4>API Keys</h4>
<table class="table table-lg">
<thead>
<tr>
<th>Label</th>
... | mit | C# |
cb5bdd3b38d20104eb7b49607099bb72bdfa0860 | Revert "(build) Added ability to generate release notes during packaging" | WormieCorp/Cake.Transifex,WormieCorp/Cake.Transifex | setup.cake | setup.cake | #load "nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease"
Environment.SetVariableNames();
BuildParameters.SetParameters(
context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./src",
title: "Cake.Transifex",
repositoryOwner: "cake-contrib",
repository... | #load "nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease"
Environment.SetVariableNames();
BuildParameters.SetParameters(
context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./src",
title: "Cake.Transifex",
repositoryOwner: "cake-contrib",
repository... | mit | C# |
9fe946516871ac3118c720ccd71d325c9143d3a3 | Apply string interpolation to simplify StubListener. | fixie/fixie | src/Fixie.Tests/StubListener.cs | src/Fixie.Tests/StubListener.cs | namespace Fixie.Tests
{
using System.Collections.Generic;
using System.Text;
using Fixie.Execution;
public class StubListener :
Handler<CaseSkipped>,
Handler<CasePassed>,
Handler<CaseFailed>
{
readonly List<string> log = new List<string>();
public void Hand... | namespace Fixie.Tests
{
using System.Collections.Generic;
using System.Text;
using Fixie.Execution;
public class StubListener :
Handler<CaseSkipped>,
Handler<CasePassed>,
Handler<CaseFailed>
{
readonly List<string> log = new List<string>();
public void Hand... | mit | C# |
dff648155b79937187d83485b1ecedeaef775b4d | Bump to version 1.0.0 | dipeshc/BTDeploy | src/MonoTorrent/AssemblyInfo.cs | src/MonoTorrent/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.IO;
[assembly: InternalsVisibleTo("SampleClient")]
[assembly: InternalsVisibleTo("MonoTorrent.Tests")]
[assembly: AssemblyCopyright("Alan McGovern, Gregor Buguer; MIT X11 Licensed")]
[assembly: AssemblyDescription("MonoTorrent ... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.IO;
[assembly: InternalsVisibleTo("SampleClient")]
[assembly: InternalsVisibleTo("MonoTorrent.Tests")]
[assembly: AssemblyCopyright("Alan McGovern, Gregor Buguer; MIT X11 Licensed")]
[assembly: AssemblyDescription("MonoTorrent ... | mit | C# |
deb065a2bf1d14beba73187917e46e9851363758 | fix task dep names when adding from a module to another. | juankakode/Drone | src/Drone/Drone.Lib/DroneModule.cs | src/Drone/Drone.Lib/DroneModule.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Drone.Lib.Helpers;
namespace Drone.Lib
{
public class DroneModule
{
public static readonly string DefaultTaskName = "def";
public static readonly string MainModuleName = "dronemain";
private readonly IDictionary<string, DroneTask> task... | using System;
using System.Collections.Generic;
using System.Linq;
using Drone.Lib.Helpers;
namespace Drone.Lib
{
public class DroneModule
{
public static readonly string DefaultTaskName = "def";
public static readonly string MainModuleName = "dronemain";
private readonly IDictionary<string, DroneTask> task... | mit | C# |
f07b4c7c10770df9618989a30cdff7794ca4820b | Replace the polling with an event handler | nycdotnet/RedGate.AppHost,red-gate/RedGate.AppHost | RedGate.AppHost.Client/ParentProcessMonitor.cs | RedGate.AppHost.Client/ParentProcessMonitor.cs | using System;
using System.Diagnostics;
using System.Runtime.Remoting.Channels;
using System.Threading;
namespace RedGate.AppHost.Client
{
internal class ParentProcessMonitor
{
private readonly Action m_OnParentMissing;
public ParentProcessMonitor(Action onParentMissing)
{
... | using System;
using System.Diagnostics;
using System.Threading;
namespace RedGate.AppHost.Client
{
internal class ParentProcessMonitor
{
private readonly Action m_OnParentMissing;
private readonly int m_PollingIntervalInSeconds;
private Thread m_PollingThread;
public ParentPro... | apache-2.0 | C# |
fb5d9499870b458e4b20a795ca70d500857cbff5 | refactor fix | Suui/SlothUnit,Suui/SlothUnit,Suui/SlothUnit | SlothUnit/SlothUnit.Parser.Test/ClassShould.cs | SlothUnit/SlothUnit.Parser.Test/ClassShould.cs | using System;
using System.IO;
using FluentAssertions;
using NUnit.Framework;
using SlothUnitParser;
/* TODO
*/
namespace SlothUnit.Parser.Test
{
[TestFixture]
public class ClassShould : FileSystemTest
{
[Test]
public void be_found_in_file()
{
const string className = "ClassShould";
var filePath = ... | using System;
using System.IO;
using FluentAssertions;
using NUnit.Framework;
using SlothUnitParser;
/* TODO
*/
namespace SlothUnit.Parser.Test
{
[TestFixture]
public class ClassShould : FileSystemTest
{
[Test]
public void be_found_in_file()
{
const string className = "ClassShould";
var filePath = ... | mit | C# |
00e0794a1e2ca5dd25d9e09e6bba75962f2f1d71 | Rename Capgemini naar Cg2 | Chirojeugd-Vlaanderen/gap,Chirojeugd-Vlaanderen/gap,Chirojeugd-Vlaanderen/gap | Solution/MvcWebApp2/Models/PersoonInfoModel.cs | Solution/MvcWebApp2/Models/PersoonInfoModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Cg2.Adf.ServiceModel;
using Cg2.Orm;
using Cg2.ServiceContracts;
namespace MvcWebApp2.Models
{
public class PersoonInfoModel : MasterViewModel
{
public IList<PersoonInfo> PersoonInfoLijst { get; se... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Capgemini.Adf.ServiceModel;
using Cg2.Orm;
using Cg2.ServiceContracts;
namespace MvcWebApp2.Models
{
public class PersoonInfoModel : MasterViewModel
{
public IList<PersoonInfo> PersoonInfoLijst { g... | apache-2.0 | C# |
ed9f5221d4a2658fdb38544e2b8aa7e7018550a4 | Add test for device instance ID | emoacht/Monitorian | Source/Monitorian.Test/DeviceConversionTest.cs | Source/Monitorian.Test/DeviceConversionTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using static Monitorian.Core.Models.Monitor.DeviceConversion;
namespace Monitorian.Test
{
[TestClass]
public class DeviceConversionTest
{
#region ConvertToDeviceInstanceId
[TestMethod]
public void TestConvertToDeviceInstanceId1(... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Monitorian.Core.Models.Monitor;
namespace Monitorian.Test
{
[TestClass]
public class DeviceConversionTest
{
[TestMethod]
public void TestGetDeviceInstanceId1()
{
// Surface Display
var source = @"\\?\DISPLAY#SDC3853#... | mit | C# |
cdde8defc8210b78672d1648fd8a5e09f4b91f2e | Update Pettable.cs | krille90/unitystation,Necromunger/unitystation,krille90/unitystation,fomalsd/unitystation,Necromunger/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,Necromunger/unitystation,Necromunger/unitystation,Necromunger/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,fom... | UnityProject/Assets/Scripts/Player/Pettable.cs | UnityProject/Assets/Scripts/Player/Pettable.cs | using UnityEngine;
/// <summary>
/// Allows an object to be pet by a player. Shameless copy of Huggable.cs
/// </summary>
public class Pettable : MonoBehaviour, IClientInteractable<PositionalHandApply>
{
public bool Interact(PositionalHandApply interaction)
{
var targetNPCHealth = interaction.TargetObject.GetComp... | using UnityEngine;
/// <summary>
/// Allows an object to be pet by a player. Shameless copy of Huggable.cs
/// </summary>
public class Pettable : MonoBehaviour, IClientInteractable<PositionalHandApply>
{
public bool Interact(PositionalHandApply interaction)
{
var targetNPCHealth = interaction.TargetObject.GetComp... | agpl-3.0 | C# |
4de965b2a4f919e71ad1537ea238556f7725e1fb | Update ShapeRenderer.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D.Core/Renderers/ShapeRenderer.cs | src/Draw2D.Core/Renderers/ShapeRenderer.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using Draw2D.Core.Shapes;
using Draw2D.Core.Style;
namespace Draw2D.Core.Renderers
{
public abstract class ShapeRenderer : O... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using Draw2D.Core.Shapes;
using Draw2D.Core.Style;
namespace Draw2D.Core.Renderers
{
public abstract class ShapeRenderer : O... | mit | C# |
294a80436e328e23742ad3a50884ef30e9bf89fc | fix walgreens photo mapping | bitwarden/core,bitwarden/core,bitwarden/core,bitwarden/core | src/Icons/Services/DomainMappingService.cs | src/Icons/Services/DomainMappingService.cs | using System.Collections.Generic;
namespace Bit.Icons.Services
{
public class DomainMappingService : IDomainMappingService
{
private readonly Dictionary<string, string> _map = new Dictionary<string, string>
{
["login.yahoo.com"] = "yahoo.com",
["accounts.google.com"] = ... | using System.Collections.Generic;
namespace Bit.Icons.Services
{
public class DomainMappingService : IDomainMappingService
{
private readonly Dictionary<string, string> _map = new Dictionary<string, string>
{
["login.yahoo.com"] = "yahoo.com",
["accounts.google.com"] = ... | agpl-3.0 | C# |
0583733d9a6a31beb16e1c084c02d72e17914fef | Improve naming of tests to clearly indicate the feature to be tested | oliverzick/Delizious-Filtering | src/Library.Test/LessThanOrEqualToTests.cs | src/Library.Test/LessThanOrEqualToTests.cs | #region Copyright and license
// // <copyright file="LessThanOrEqualToTests.cs" company="Oliver Zick">
// // Copyright (c) 2016 Oliver Zick. All rights reserved.
// // </copyright>
// // <author>Oliver Zick</author>
// // <license>
// // Licensed under the Apache License, Version 2.0 (the "License");
// // ... | #region Copyright and license
// // <copyright file="LessThanOrEqualToTests.cs" company="Oliver Zick">
// // Copyright (c) 2016 Oliver Zick. All rights reserved.
// // </copyright>
// // <author>Oliver Zick</author>
// // <license>
// // Licensed under the Apache License, Version 2.0 (the "License");
// // ... | apache-2.0 | C# |
7b8a849deeb021d224d980d626ae5ed4d96a076c | Fix interval check | gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer | Common/Time/TimeUtil.cs | Common/Time/TimeUtil.cs | using System;
namespace LunaCommon.Time
{
/// <summary>
/// TimeSpan class have a very low max value and result in overflows when there are time differences greater than 10,675,199 days.
/// So we use this helper simple class
/// </summary>
public static class TimeUtil
{
public static ... | using System;
namespace LunaCommon.Time
{
/// <summary>
/// TimeSpan class have a very low max value and result in overflows when there are time differences greater than 10,675,199 days.
/// So we use this helper simple class
/// </summary>
public static class TimeUtil
{
public static ... | mit | C# |
420d42d54e844543c40bf41951bd03af7a2b84c4 | Update PostView.cs | vknet/vk,vknet/vk,Soniclev/vk | VkNet.UWP/Model/PostView.cs | VkNet.UWP/Model/PostView.cs | using VkNet.Utils;
namespace VkNet.Model
{
/// <summary>
/// Информация о просмотрах записи.
/// </summary>
public class PostView
{
/// <summary>
/// Число просмотров записи.
/// </summary>
public int Count { get; set; }
/// <summary>
/// Разобрать из json.
/// </summary>
/// <param name="respon... | using VkNet.Utils;
namespace VkNet.Model
{
/// <summary>
/// Информация о просмотрах записи.
/// </summary>
public class PostView
{
/// <summary>
/// Число просмотров записи.
/// </summary>
public int Count { get; set; }
/// <summary>
/// Разобрать из json.
/// </summary>
/// <param name="respon... | mit | C# |
21fbc55b38f26f2d8e72f7729a7b9c1257270557 | Update ANDGate.cs | irtezasyed007/CSC523-Game-Project | Algorithms/ANDGate.cs | Algorithms/ANDGate.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSC_523_Game
{
class ANDGate : Gate
{
public ANDGate(Variable [] vars) : base(vars)
{
}
public override bool getResult()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSC_523_Game
{
class ANDGate
{
}
}
| mit | C# |
1dfa88a8bf4bd55ff4df33c5523806dd5113f49c | Set DefaultConnectionLimit manually | krompaco/cloud-accelerator | Krompaco.CloudAccelerator/Global.asax.cs | Krompaco.CloudAccelerator/Global.asax.cs | namespace Krompaco.CloudAccelerator
{
using System.Net;
using System.Web.Mvc;
using System.Web.Routing;
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
// Indications that this might be a problem have been found, more info... | namespace Krompaco.CloudAccelerator
{
using System.Web.Mvc;
using System.Web.Routing;
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
MvcHandler.DisableMvcResponseHeader = true;
AreaRegistration.RegisterAllAreas();... | mit | C# |
83350116d923f2ed78c84fd1409ebf36970c6ce2 | Tweak some of the list page formatting | mattgwagner/alert-roster | alert-roster.web/Views/Home/Index.cshtml | alert-roster.web/Views/Home/Index.cshtml | @model IEnumerable<alert_roster.web.Models.Message>
@{
ViewBag.Title = "Notices";
}
<h2>@ViewBag.Title</h2>
@foreach (var message in Model)
{
<div class="row">
<div class="col-md-5">
<fieldset>
<legend>
Posted <script>var d = moment.utc('@message.Poste... | @model IEnumerable<alert_roster.web.Models.Message>
@{
ViewBag.Title = "Messages";
}
<div class="jumbotron">
<h1>@ViewBag.Title</h1>
</div>
@foreach (var message in Model)
{
<div class="row">
<div class="col-md-4">
<fieldset>
<legend>
<script>var d... | mit | C# |
c44de25a95fac9a9be7aef99b21b25a9df996798 | add json file creation | KosmoCarrot/tomato-task-master | TomatoTaskMaster/Model/DataRepository.cs | TomatoTaskMaster/Model/DataRepository.cs | using Newtonsoft.Json;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
namespace TomatoTaskMaster.Model
{
class DataRepository
{
public DataRepository()
{
TaskCalendar = LoadTasks() ?? new Dictionary<string, ObservableCollection<Task>>();
... | using Newtonsoft.Json;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
namespace TomatoTaskMaster.Model
{
class DataRepository
{
public DataRepository()
{
TaskCalendar = LoadTasks() ?? new Dictionary<string, ObservableCollection<Task>>();
... | bsd-3-clause | C# |
9b6c4cd08a15c0b7f400116ac72d2909dc990561 | bump version | Fody/Validar | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Validar")]
[assembly: AssemblyProduct("Validar")]
[assembly: AssemblyVersion("1.4.10")]
[assembly: AssemblyFileVersion("1.4.10")]
| using System.Reflection;
[assembly: AssemblyTitle("Validar")]
[assembly: AssemblyProduct("Validar")]
[assembly: AssemblyVersion("1.4.9")]
[assembly: AssemblyFileVersion("1.4.9")]
| mit | C# |
7f61f27be1e3031266110c0f64a812bc2a787829 | Use null-conditional operator when checking against UpdateManager | smoogipoo/osu,UselessToucan/osu,peppy/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu | osu.Game/Overlays/Settings/Sections/General/UpdateSettings.cs | osu.Game/Overlays/Settings/Sections/General/UpdateSettings.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;
using osu.Framework.Allocation;
using osu.Framework.Platform;
using osu.Game.Configuration;
using osu.Game.Updater;
namespace osu.Game.Overlays.Set... | // 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;
using osu.Framework.Allocation;
using osu.Framework.Platform;
using osu.Game.Configuration;
using osu.Game.Updater;
namespace osu.Game.Overlays.Set... | mit | C# |
6230764402df2ac188fef708fa3eb3fc4e6c7da6 | Add a test for text alignment. | zwcloud/ZWCloud.DwriteCairo,zwcloud/ZWCloud.DwriteCairo,zwcloud/ZWCloud.DwriteCairo | DWriteCairoTest/UnitTestTextFromat.cs | DWriteCairoTest/UnitTestTextFromat.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ZWCloud.DWriteCairo;
namespace DWriteCairoTest
{
[TestClass]
public class UnitTestTextFromat
{
[TestMethod]
public void TestTextFormat()
{
const string fontFamilyName = "SimSun";
const ... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ZWCloud.DWriteCairo;
namespace DWriteCairoTest
{
[TestClass]
public class UnitTestTextFromat
{
[TestMethod]
public void TestTextFormat()
{
const string fontFamilyName = "SimSun";
const ... | apache-2.0 | C# |
1f2e4971d796962798e816d69b19e4c633846f75 | test commit | gucunja/PathOfExileNetWorth | PathOfExileNetWorth/DataManagement.cs | PathOfExileNetWorth/DataManagement.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using System.Windows.Forms;
namespace PathOfExileNetWorth
{
class DataManagement
{
//STUPID COMMENT
private static strin... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using System.Windows.Forms;
namespace PathOfExileNetWorth
{
class DataManagement
{
private static string getJSON(string apiAddre... | mit | C# |
9878f5a1c7efcc2a84bcbf9f64ca697f96ba27db | Allow customization of file name extension for babel transpilation (#266) | ShikiGami/React.NET,ShikiGami/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,chriscamplejohn/React.NET,ShikiGami/React.NET,reactjs/React.NET,rickbeerendonk/React.NET,rickbeerendonk/React.NET,reactjs/React.NET,rickbeerendonk/React.NET,chriscamplejohn/React.NET,chriscamplejohn/React.NET,ShikiGami/React.N... | src/React.MSBuild/TransformBabel.cs | src/React.MSBuild/TransformBabel.cs | /*
* Copyright (c) 2014-Present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
usin... | /*
* Copyright (c) 2014-Present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
usin... | bsd-3-clause | C# |
c6a03a320f2e99b91c2f4db6150131c3923b22b4 | Bump to version 0.3 | sbennett1990/libcmdline | libcmdline/Properties/AssemblyInfo.cs | libcmdline/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("li... | 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("li... | isc | C# |
afd5c3d71b946e22753040cebfe17dd95902c538 | Bump version to 0.25 | 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.Version)]
[assembly: AssemblyFileVersion(System.Assembl... | #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.Version)]
[assembly: AssemblyFileVersion(System.Assembl... | mit | C# |
24bd869e76f790d1d48cecb9188c6e80f7088354 | Add ExpirationTime to OverrideValue | NFig/NFig | NFig/OverrideValue.cs | NFig/OverrideValue.cs | using System;
namespace NFig
{
/// <summary>
/// An override is a value defined at runtime which takes precendence over default values.
/// </summary>
public class OverrideValue<TTier, TDataCenter> : ISettingValue<TTier, TDataCenter>
where TTier : struct
where TDataCenter : struct
... | namespace NFig
{
/// <summary>
/// An override is a value defined at runtime which takes precendence over default values.
/// </summary>
public class OverrideValue<TTier, TDataCenter> : ISettingValue<TTier, TDataCenter>
where TTier : struct
where TDataCenter : struct
{
/// <... | mit | C# |
8a4b47a65c089f5613a2bf3d4ffc36bacc5e5291 | fix resolution | Fody/Janitor | Fody/ReferenceFinder.cs | Fody/ReferenceFinder.cs | using System.Collections.Generic;
using System.Linq;
using Mono.Cecil;
public partial class ModuleWeaver
{
public void FindCoreReferences()
{
List<TypeDefinition> types = new List<TypeDefinition>();
AddAssemblyIfExists("mscorlib", types);
AddAssemblyIfExists("System.Runtime", types);
... | using System.Collections.Generic;
using System.Linq;
using Mono.Cecil;
public partial class ModuleWeaver
{
public void FindCoreReferences()
{
List<TypeDefinition> types = new List<TypeDefinition>();
AddAssemblyIfExists("mscorlib", types);
AddAssemblyIfExists("System.Runtime", types);
... | mit | C# |
f8f04a5ec624533063526e3b70fc71fb02090b60 | Use thread | Skalman/svwikt-suite | SvwiktSuite/SvwiktSuite/MainWindow.cs | SvwiktSuite/SvwiktSuite/MainWindow.cs | using System;
using Gtk;
using Mono.Data.Sqlite;
using System.Threading;
public partial class MainWindow: Gtk.Window
{
public MainWindow() : base (Gtk.WindowType.Toplevel)
{
Build();
}
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
{
Application.Quit();
a.Re... | using System;
using Gtk;
using Mono.Data.Sqlite;
public partial class MainWindow: Gtk.Window
{
public MainWindow () : base (Gtk.WindowType.Toplevel)
{
Build ();
}
protected void OnDeleteEvent (object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
}
/// <summary>
/// Testmetod som lä... | mpl-2.0 | C# |
3139238a5e094679668f4bd0061f26143e3022ca | Add missing property to ChangeItem | LordMike/TMDbLib | TMDbLib/Objects/Changes/ChangeItem.cs | TMDbLib/Objects/Changes/ChangeItem.cs | using System;
using Newtonsoft.Json;
using TMDbLib.Helpers;
namespace TMDbLib.Objects.Changes
{
public class ChangeItem
{
[JsonProperty("action")]
public string Action { get; set; }
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("original_value")]
... | using System;
using Newtonsoft.Json;
using TMDbLib.Helpers;
namespace TMDbLib.Objects.Changes
{
public class ChangeItem
{
[JsonProperty("action")]
public string Action { get; set; }
[JsonProperty("id")]
public string Id { get; set; }
/// <summary>
/// A langua... | mit | C# |
313477d33b92a0e4df843d6cec9d01a287ecc177 | Add RepositoryConfigurationException constructor taking a message | appharbor/appharbor-cli | src/AppHarbor/RepositoryConfigurationException.cs | src/AppHarbor/RepositoryConfigurationException.cs | using System;
namespace AppHarbor
{
public class RepositoryConfigurationException : Exception
{
public RepositoryConfigurationException(string message)
: base(message)
{
}
}
}
| using System;
namespace AppHarbor
{
public class RepositoryConfigurationException : Exception
{
}
}
| mit | C# |
dc856bc25865ac85d326b83ccae9ba98dd32e1da | Update home page | Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training | src/ChessVariantsTraining/Views/Home/Index.cshtml | src/ChessVariantsTraining/Views/Home/Index.cshtml | @section Title {Homepage}
@section Description{Chess Variants Training is a website where you can improve at chess variants.}
<h1>Chess Variants Training</h1>
<p>Welcome to Chess Variants Training! Here you can improve at chess variants. We support these variants: Antichess, Atomic chess, King of the Hill, Three-check... | @section Title {Homepage}
@section Description{Chess Variants Training is a website where you can improve at chess variants.}
<h1>Chess Variants Training</h1>
<p>Welcome to Chess Variants Training! Here you can improve at chess variants. We support these variants: Antichess, Atomic chess, King of the Hill, Three-check... | agpl-3.0 | C# |
a4aa8eec0ec7f0c0e5fae40dfe391b9f0c74b958 | Tidy of the login page | spadger/patent-spoiler,spadger/patent-spoiler,spadger/patent-spoiler | src/PatentSpoiler/Views/Account/Login.cshtml | src/PatentSpoiler/Views/Account/Login.cshtml | @model dynamic
@{
ViewBag.Title = "login";
}
<h2>Log in!</h2>
<form method="POST" role="form" id="loginForm" name="loginForm">
@Html.AntiForgeryToken()
<div class="form-group" ng-class="{'has-error': addForm.name.$invalid && addForm.name.$pristine && submitted}">
<label class="col-sm-2 control-l... | @model dynamic
@{
ViewBag.Title = "login";
}
<h2>Log in!</h2>
<form method="POST">
@Html.AntiForgeryToken()
Username: @Html.TextBox("Username")<br/>
Password: @Html.Password("Password")<br/>
Remember me @Html.CheckBox("RememberMe")<br />
<input type="submit" value="Log in"/>
</form> | apache-2.0 | C# |
ef7be48cc5c7ab63607bff225aa6e9818670b1f8 | Fix SqlTemplates concurrency | umbraco/Umbraco-CMS,tcmorris/Umbraco-CMS,madsoulswe/Umbraco-CMS,lars-erik/Umbraco-CMS,robertjf/Umbraco-CMS,tcmorris/Umbraco-CMS,tcmorris/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/Umbraco-CMS,tcmorris/Umbraco-CMS,bjarnef/Umbraco-CMS,tompipe/Umbraco-CMS,madsoulswe/Umbraco-CMS,KevinJump/Umbraco-CMS,umbraco/Umbraco-CMS,rober... | src/Umbraco.Core/Persistence/SqlTemplates.cs | src/Umbraco.Core/Persistence/SqlTemplates.cs | using System;
using System.Collections.Concurrent;
using NPoco;
namespace Umbraco.Core.Persistence
{
public class SqlTemplates
{
private readonly ConcurrentDictionary<string, SqlTemplate> _templates = new ConcurrentDictionary<string, SqlTemplate>();
private readonly ISqlContext _sqlContext;
... | using System;
using System.Collections.Generic;
using NPoco;
namespace Umbraco.Core.Persistence
{
public class SqlTemplates
{
private readonly Dictionary<string, SqlTemplate> _templates = new Dictionary<string, SqlTemplate>();
private readonly ISqlContext _sqlContext;
public SqlTempla... | mit | C# |
2d5b2bb20c37e15cefa706bdf47005ac7cff6524 | Fix unit tests | SeyDutch/Airbrush,SouleDesigns/SouleDesigns.Orchard,dmitry-urenev/extended-orchard-cms-v10.1,xiaobudian/Orchard,omidnasri/Orchard,dcinzona/Orchard,cooclsee/Orchard,vairam-svs/Orchard,Morgma/valleyviewknolls,fassetar/Orchard,AdvantageCS/Orchard,brownjordaninternational/OrchardCMS,xiaobudian/Orchard,luchaoshuai/Orchard,s... | src/Orchard.Tests.Modules/Widgets/WidgetsTests.cs | src/Orchard.Tests.Modules/Widgets/WidgetsTests.cs | using System;
using Autofac;
using NUnit.Framework;
using Orchard.Scripting;
using Orchard.Caching;
using Orchard.Tests.Stubs;
using Orchard.Widgets.RuleEngine;
using Orchard.Widgets.Services;
namespace Orchard.Tests.Modules.Widgets {
[TestFixture]
public class WidgetsTests {
private ICont... | using System;
using Autofac;
using NUnit.Framework;
using Orchard.Scripting.Dlr.Services;
using Orchard.Caching;
using Orchard.Tests.Stubs;
using Orchard.Widgets.RuleEngine;
using Orchard.Widgets.Services;
namespace Orchard.Tests.Modules.Widgets {
[TestFixture]
public class WidgetsTests {
... | bsd-3-clause | C# |
86887df86a447ca2119df102c7d4e2afeb3d92c3 | Update version to 2.8.0 | TheOtherTimDuncan/TOTD | SharedAssemblyInfo.cs | SharedAssemblyInfo.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: AssemblyConfigura... | 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: AssemblyConfigura... | mit | C# |
5b3d3bc18129be7af9874a1d872f16d6b94a7b2f | Update XGroups.cs | wieslawsoltes/Core2D,Core2D/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/Collections/XGroups.cs | src/Core2D/Collections/XGroups.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Immutable;
using Core2D.Attributes;
using Core2D.Shapes;
namespace Core2D.Collections
{
/// <summary>
/// Observabl... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Immutable;
using Core2D.Attributes;
using Core2D.Shapes;
namespace Core2D.Collections
{
/// <summary>
/// Observabl... | mit | C# |
071cc3af3325636dc3c86e332bda0e7a43c712a7 | Change accessibility of AssertionException to internal. | plioi/parsley | src/Parsley/AssertionException.cs | src/Parsley/AssertionException.cs | using System;
namespace Parsley
{
internal class AssertionException : Exception
{
public AssertionException(object expected, object actual)
: base(ExpectationDetails(expected, actual))
{
}
public AssertionException(string message, object expected, object actual)
... | using System;
namespace Parsley
{
public class AssertionException : Exception
{
public AssertionException(object expected, object actual)
: base(ExpectationDetails(expected, actual))
{
}
public AssertionException(string message, object expected, object actual)
... | mit | C# |
b87fec0f42f20e2d51d3a3ffb29d294189c309ec | Make RequestOptionsBuilder public | MattKotsenas/MassTransit.Extras.MessageData.DocumentDb,LeCantaloop/MassTransit.Extras.MessageData.DocumentDb | src/RequestOptionsBuilder.cs | src/RequestOptionsBuilder.cs | using System;
using Microsoft.Azure.Documents.Client;
namespace MassTransit.Extras.MessageData.DocumentDb
{
public class RequestOptionsBuilder
{
public RequestOptions Build(TimeSpan? timeToLive)
{
var options = new RequestOptions();
if (timeToLive.HasValue)
... | using System;
using Microsoft.Azure.Documents.Client;
namespace MassTransit.Extras.MessageData.DocumentDb
{
internal class RequestOptionsBuilder
{
public RequestOptions Build(TimeSpan? timeToLive)
{
var options = new RequestOptions();
if (timeToLive.HasValue)
... | apache-2.0 | C# |
d7afc2753824807caaa9d0412099600852add82d | Use AttributeNullException instead of an InvalidOperationException. | Erikvl87/Premotion-Mansion,devatwork/Premotion-Mansion,devatwork/Premotion-Mansion,devatwork/Premotion-Mansion,Erikvl87/Premotion-Mansion,devatwork/Premotion-Mansion,Erikvl87/Premotion-Mansion,Erikvl87/Premotion-Mansion | src/Premotion.Mansion.Web.Portal/ScriptTags/RenderBlockTag.cs | src/Premotion.Mansion.Web.Portal/ScriptTags/RenderBlockTag.cs | using System;
using Premotion.Mansion.Core;
using Premotion.Mansion.Core.Scripting.TagScript;
using Premotion.Mansion.Web.Portal.Service;
namespace Premotion.Mansion.Web.Portal.ScriptTags
{
/// <summary>
/// Renders the specified block.
/// </summary>
[ScriptTag(Constants.TagNamespaceUri, "renderBlock")]
public ... | using System;
using Premotion.Mansion.Core;
using Premotion.Mansion.Core.Scripting.TagScript;
using Premotion.Mansion.Web.Portal.Service;
namespace Premotion.Mansion.Web.Portal.ScriptTags
{
/// <summary>
/// Renders the specified block.
/// </summary>
[ScriptTag(Constants.TagNamespaceUri, "renderBlock")]
public ... | mit | C# |
bfb4b0b8cdf2e6033cc0bfc15144cfa035b8f0a1 | increment patch version, | jwChung/Experimentalism,jwChung/Experimentalism | build/CommonAssemblyInfo.cs | build/CommonAssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Jin-Wook Chung")]
[assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: Co... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Jin-Wook Chung")]
[assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: Co... | mit | C# |
80406124fd4e8b3d4965b098c2d8ebd8f8000d25 | update samples | dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap | samples/Sample.Kafka/Startup.cs | samples/Sample.Kafka/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace Sample.Kafka
{
public class Startup
{
public Startup(IHostingEnvironment env)
{
... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace Sample.Kafka
{
public class Startup
{
public Startup(IHostingEnvironment env) {
va... | mit | C# |
c718e914154f70f9a0e4a9e679d3f21de0c39c57 | Add AssemblyInformationalVersion. | mthamil/Autofac.Extras.Ordering | Autofac.Extras.Ordering/Properties/AssemblyInfo.cs | Autofac.Extras.Ordering/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("Au... | 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("Au... | apache-2.0 | C# |
640bee1174e0cb6b590c750f449474301051b5de | Fix bug in Bitmap | vazgriz/CSharpGameLibrary,rhynodegreat/CSharpGameLibrary,rhynodegreat/CSharpGameLibrary,vazgriz/CSharpGameLibrary | CSharpGameLibrary/Graphics/Bitmap.cs | CSharpGameLibrary/Graphics/Bitmap.cs | using System;
using System.Collections.Generic;
namespace CSGL.Graphics {
public class Bitmap<T> where T : struct {
public int Width { get; private set; }
public int Height { get; private set; }
public T[] Data { get; private set; }
public Bitmap(int width, int height) {
... | using System;
using System.Collections.Generic;
namespace CSGL.Graphics {
public class Bitmap<T> where T : struct {
public int Width { get; private set; }
public int Height { get; private set; }
public T[] Data { get; private set; }
public Bitmap(int width, int height) {
... | mit | C# |
845a8cf851df446cefcd2b8f265a0afcf9f6bc11 | Update ReceiveLogs.cs | fams/rabbitmq-tutorials,rabbitmq/rabbitmq-tutorials,bwong199/rabbitmq-tutorials,bwong199/rabbitmq-tutorials,AlexandrT/rabbitmq-tutorials,thoven78/rabbitmq-tutorials,AlexandrT/rabbitmq-tutorials,tkssharma/rabbitmq-tutorials,hangshiisi/rabbitmq-tutorials,SaiNadh001/rabbitmq-tutorials,yepesasecas/rabbitmq-tutorials,SaiNad... | dotnet/ReceiveLogs.cs | dotnet/ReceiveLogs.cs | using System;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
using System.Text;
class ReceiveLogs
{
public static void Main()
{
var factory = new ConnectionFactory() { HostName = "localhost" };
using (var connection = factory.CreateConnection())
{
using (var channel = ... | using System;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
class ReceiveLogs {
public static void Main() {
ConnectionFactory factory = new ConnectionFactory();
factory.HostName = "localhost";
using (IConnection connection = factory.CreateConnection())
using (IModel channel =... | apache-2.0 | C# |
889c03461f9c4a5904da26e35d25de2ab94c98b8 | Rewrite to use Dictionary, take advantage of sparseness | futurechris/MIDIM | Assets/Scripts/MarkovChain/StochasticMatrix.cs | Assets/Scripts/MarkovChain/StochasticMatrix.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Text;
public class StochasticMatrix {
////////////////////////////////
#region Bookkeeping
// maps from a :-delimited string of past notes to a list
// of observed frequencies for following notes
// Size of this list is... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class StochasticMatrix {
////////////////////////////////
#region Bookkeeping
// right stochastic matrix, so rows add to 1.0
// probMatrix[row][col]
private float[,] probMatrix;
// once a change has been made, the matrix ro... | mit | C# |
0d786f3ef780e15e2a34285b0cda6240e2e54f0c | add failing test for site name | crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin | SignInCheckIn/SignInCheckIn.Tests/Services/EventServiceTest.cs | SignInCheckIn/SignInCheckIn.Tests/Services/EventServiceTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Castle.Components.DictionaryAdapter;
using MinistryPlatform.Translation.Models.DTO;
using MinistryPlatform.Translation.Repositories.Interfaces;
using Moq;
using NUnit.Framework;
using SignInCheckIn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Castle.Components.DictionaryAdapter;
using MinistryPlatform.Translation.Models.DTO;
using MinistryPlatform.Translation.Repositories.Interfaces;
using Moq;
using NUnit.Framework;
using SignInCheckIn... | bsd-2-clause | C# |
182279f0e22fd522f8229d9f8b7eefd524dcc319 | Improve test. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Tests/UnitTests/Hwi/SerialDefaultResponseTests.cs | WalletWasabi.Tests/UnitTests/Hwi/SerialDefaultResponseTests.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Hwi.ProcessBridge;
using WalletWasabi.Microservices;
using Xunit;
using WalletWasabi.Helpers;
namespace WalletWasabi.Tests.UnitTests.Hwi
{
/// <summary>
/// The tests in this collection are time-sensitive, therefore this test coll... | using System;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Hwi.ProcessBridge;
using WalletWasabi.Microservices;
using Xunit;
namespace WalletWasabi.Tests.UnitTests.Hwi
{
/// <summary>
/// The tests in this collection are time-sensitive, therefore this test collection is run in a special w... | mit | C# |
11b30ad6eaa64d672a4ddab847d1e210ef7996ac | Fix for headers | tronelius/simplereport,tronelius/simplereport,tronelius/simplereport | SimpleReport.SubscriptionService/WorkerApiClient.cs | SimpleReport.SubscriptionService/WorkerApiClient.cs | using System;
using System.Configuration;
using System.Net;
using System.Net.Http.Headers;
using System.Web;
using SimpleReport.Model.Subscriptions;
namespace SimpleReport.SubscriptionService
{
public interface IWorkerApiClient
{
ReportResult GetReport(string url);
}
public class WorkerApiCli... | using System;
using System.Configuration;
using System.Net;
using System.Net.Http.Headers;
using SimpleReport.Model.Subscriptions;
namespace SimpleReport.SubscriptionService
{
public interface IWorkerApiClient
{
ReportResult GetReport(string url);
}
public class WorkerApiClient : IWorkerApiCl... | apache-2.0 | C# |
cd3160fe5e4246ebe5cb6a5105f889d6bb78db6a | Update Computer.cs | jkanchelov/Telerik-OOP-Team-StarFruit | TeamworkStarFruit/CatalogueLib/Products/Computer.cs | TeamworkStarFruit/CatalogueLib/Products/Computer.cs | namespace CatalogueLib
{
using System.Text;
using CatalogueLib.Products.Enumerations;
public abstract class Computer : Product
{
public Computer()
{
}
public Computer(int ID, decimal price, bool isAvailable, Brand brand, string CPU, int DriveMemory, string V... | namespace CatalogueLib
{
using System.Text;
using CatalogueLib.Products.Enumerations;
public abstract class Computer : Product
{
public Computer()
{
}
public Computer(int ID, decimal price, bool isAvailable, Brand brand, string CPU, int DriveMemory, string V... | mit | C# |
f9dc7b1dd8c36d24c1a4928d2dbd9c71b60745b8 | Change back to use EF initializer to drop db | os2kitos/kitos,os2kitos/kitos,os2kitos/kitos,os2kitos/kitos | Tools.Test.Database/Model/Tasks/DropDatabaseTask.cs | Tools.Test.Database/Model/Tasks/DropDatabaseTask.cs | using System.Data.Entity;
using Infrastructure.DataAccess;
namespace Tools.Test.Database.Model.Tasks
{
public class DropDatabaseTask : DatabaseTask
{
private readonly string _connectionString;
public DropDatabaseTask(string connectionString)
: base(connectionString)
{
... | namespace Tools.Test.Database.Model.Tasks
{
public class DropDatabaseTask : DatabaseTask
{
private readonly string _connectionString;
public DropDatabaseTask(string connectionString)
: base(connectionString)
{
_connectionString = connectionString;
}
... | mpl-2.0 | C# |
6eada78d0bc22fcc8f760375bc565f41554bd5dc | Refactor VSConstants, Nemerle constant goes up | mdavid/nuget,mdavid/nuget | src/VisualStudio/VSConstants.cs | src/VisualStudio/VSConstants.cs | namespace NuGet.VisualStudio
{
internal static class VsConstants
{
// Project type guids
internal const string WebApplicationProjectTypeGuid = "{349C5851-65DF-11DA-9384-00065B846F21}";
internal const string WebSiteProjectTypeGuid = "{E24C65DC-7377-472B-9ABA-BC803B73C61A}";
... | namespace NuGet.VisualStudio
{
internal static class VsConstants
{
// Project type guids
internal const string WebApplicationProjectTypeGuid = "{349C5851-65DF-11DA-9384-00065B846F21}";
internal const string WebSiteProjectTypeGuid = "{E24C65DC-7377-472B-9ABA-BC803B73C61A}";
... | apache-2.0 | C# |
52e8df21d9ec34677b7f45abcc8dfe77efa22569 | Add SetTitle to BasicGameWindow | EVAST9919/osu-framework,Nabile-Rahmani/osu-framework,paparony03/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,RedNesto/osu-framework,ppy/osu-framework,default0/osu-framework,Tom94/osu-framework,ppy/osu-framework,naoey/osu-framework,default0/osu-framework,Tom94/osu-framework,EVAST9919/osu-frame... | osu.Framework/Platform/BasicGameWindow.cs | osu.Framework/Platform/BasicGameWindow.cs | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Drawing;
using OpenTK;
namespace osu.Framework.Platform
{
public abstract class BasicGameWindow : GameWindow
{
... | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Drawing;
using OpenTK;
namespace osu.Framework.Platform
{
public abstract class BasicGameWindow : GameWindow
{
... | mit | C# |
8a6ecf1e37fbdac7c23a987b7625b7377b91fd61 | update publisher mapping | WojcikMike/docs.particular.net | Snippets/Snippets_6/PubSub/PublisherMapping.cs | Snippets/Snippets_6/PubSub/PublisherMapping.cs | namespace Snippets6.PubSub
{
using NServiceBus;
class PublisherMapping
{
public void MapPublishers()
{
#region PubSub-CodePublisherMapping
BusConfiguration busConfiguration = new BusConfiguration();
busConfiguration.Pubishers().AddStatic(new Endpoint("Sa... | namespace Snippets6.PubSub
{
using NServiceBus;
class PublisherMapping
{
public void MapPublishers()
{
#region PubSub-CodePublisherMapping
BusConfiguration busConfiguration = new BusConfiguration();
busConfiguration.Pubishers().AddStatic(new EndpointName... | apache-2.0 | C# |
b6e71952281e9a753ccd2c3695929d31ec813d02 | make registry subclass of context | angeldnd/dap.core.csharp | Scripts/DapCore/registry/Registry.cs | Scripts/DapCore/registry/Registry.cs | using System;
using System.Collections.Generic;
namespace ADD.Dap {
public struct RegistryConsts {
public const char Separator = '/';
}
public class Registry : Context {
public override char Separator {
get { return RegistryConsts.Separator; }
}
public static R... | using System;
using System.Collections.Generic;
namespace ADD.Dap {
public struct RegistryConsts {
public const char Separator = '/';
}
public class Registry : Entity {
public override char Separator {
get { return RegistryConsts.Separator; }
}
public static Re... | mit | C# |
0408ec72bb03df0d581f2328fd4ce8086ccb4d5e | Add a stopping state to the yielder | mbenford/EasyAsyncEnumerable | EasyAsyncEnumerable/AsyncYielder.cs | EasyAsyncEnumerable/AsyncYielder.cs | using System;
using System.Collections.Generic;
namespace EasyAsyncEnumerable
{
/// <summary>
/// Controls the flow of the YieldableAsyncEnumerator class.
/// </summary>
/// <typeparam name="T"></typeparam>
public sealed class AsyncYielder<T>
{
private readonly Queue<T> values = new Que... | using System;
using System.Collections.Generic;
namespace EasyAsyncEnumerable
{
/// <summary>
/// Controls the flow of the YieldableAsyncEnumerator class.
/// </summary>
/// <typeparam name="T"></typeparam>
public sealed class AsyncYielder<T>
{
private readonly Queue<T> values = new Que... | mit | C# |
2a46093a5304033dbd89ce06a7a15990522a2395 | update to new config api | Pondidum/Finite,Pondidum/Finite | Finite.Tests/TestData/FirstState.cs | Finite.Tests/TestData/FirstState.cs | namespace Finite.Tests.TestData
{
public class FirstState : State<TestArgs>
{
public FirstState()
{
Configure(state =>
{
state.LinkTo<SecondState>().When(arg => true);
});
}
}
}
| namespace Finite.Tests.TestData
{
public class FirstState : State<TestArgs>
{
public FirstState()
{
LinkTo<SecondState>().When(arg => true);
}
}
}
| lgpl-2.1 | C# |
63d71cd62098420649dc80a029147ac7573437fd | Add road map | fredatgithub/BookRandomGeneration | BookRandomGeneration/FormMain.cs | BookRandomGeneration/FormMain.cs | using System;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;
using BookRandomGeneration.Properties;
namespace BookRandomGeneration
{
public partial class FormMain : Form
{
public FormMain()
{
InitializeComponent();
}
private void QuitToolStripMenuItem_Click(o... | using System;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;
using BookRandomGeneration.Properties;
namespace BookRandomGeneration
{
public partial class FormMain : Form
{
public FormMain()
{
InitializeComponent();
}
private void QuitToolStripMenuItem_Click(o... | mit | C# |
64995d9711ed93a05f95de17adf57fcb54691f08 | Build and publish nuget package | RockFramework/Rock.Core | Rock.Core/Properties/AssemblyInfo.cs | Rock.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("Ro... | 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("Ro... | mit | C# |
0c520fedbe41f4cba5d266c342c00a84fd3e0cc3 | Add new report tags | Kentico/KInspector,Kentico/KInspector,Kentico/KInspector,ChristopherJennings/KInspector,Kentico/KInspector,ChristopherJennings/KInspector,ChristopherJennings/KInspector,ChristopherJennings/KInspector | KenticoInspector.Core/Constants/ReportTags.cs | KenticoInspector.Core/Constants/ReportTags.cs | namespace KenticoInspector.Core.Constants
{
public class ReportTags
{
public const string Consistency = "Consistency";
public const string EventLog = "Event Log";
public const string Health = "Health";
public const string Information = "Information";
public const string ... | namespace KenticoInspector.Core.Constants
{
public class ReportTags
{
public const string Consistency = "Consistency";
public const string EventLog = "Event Log";
public const string Health = "Health";
public const string Information = "Information";
public const string ... | mit | C# |
afd8219c4e42634a3fcd5463094bee3e31f2f9ee | Create client object | prkumari/Schema.N | Schema.N/DocDbDemoClient/Program.cs | Schema.N/DocDbDemoClient/Program.cs | using System.Configuration;
using System.Threading;
using System.Threading.Tasks;
using DocumentDbClientLibrary;
namespace DocDbDemoClient
{
class Program
{
static void Main(string[] args)
{
var endpoint = ConfigurationManager.AppSettings["endpoint"];
var authKey = Conf... | namespace DocDbDemoClient
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
a3dc548600eb808023d5a89125f0d62f9dc02da9 | Add Save method. bugid: 928 | MarimerLLC/csla,MarimerLLC/csla,BrettJaner/csla,JasonBock/csla,JasonBock/csla,BrettJaner/csla,rockfordlhotka/csla,ronnymgm/csla-light,ronnymgm/csla-light,MarimerLLC/csla,BrettJaner/csla,rockfordlhotka/csla,ronnymgm/csla-light,jonnybee/csla,rockfordlhotka/csla,jonnybee/csla,jonnybee/csla,JasonBock/csla | Source/Csla.Web.Mvc/ViewModelBase.cs | Source/Csla.Web.Mvc/ViewModelBase.cs | //-----------------------------------------------------------------------
// <copyright file="ViewModelBase.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: http://www.lhotka.net/cslanet/
// </copyright>
// <summary>Base class used to create ViewModel objects that ... | //-----------------------------------------------------------------------
// <copyright file="ViewModelBase.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: http://www.lhotka.net/cslanet/
// </copyright>
// <summary>Base class used to create ViewModel objects that ... | mit | C# |
4275ca059b6ca57b8675bb85d488ee796d89c250 | Use initialization scope for bitmaps. | mthamil/PlantUMLStudio,mthamil/PlantUMLStudio | PlantUmlStudio.Core/Imaging/BitmapRenderer.cs | PlantUmlStudio.Core/Imaging/BitmapRenderer.cs | // PlantUML Studio
// Copyright 2013 Matthew Hamilton - matthamilton@live.com
// Copyright 2010 Omar Al Zabir - http://omaralzabir.com/ (original author)
//
// 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 c... | // PlantUML Studio
// Copyright 2013 Matthew Hamilton - matthamilton@live.com
// Copyright 2010 Omar Al Zabir - http://omaralzabir.com/ (original author)
//
// 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 c... | apache-2.0 | C# |
4c33f394a8871f48a922f60ee56c50b472d84fcd | Use nameof on argument check in the template project. | jaurenq/XPNet,jaurenq/XPNet,jaurenq/XPNet | XPNet.CLR.Template/content/Plugin.cs | XPNet.CLR.Template/content/Plugin.cs |
using System;
using XPNet;
namespace XPNet.CLR.Template
{
[XPlanePlugin(
name: "My Plugin",
signature: "you.plugins.name",
description: "Describe your plugin here."
)]
public class Plugin : IXPlanePlugin
{
private readonly IXPlaneApi m_api;
publ... |
using System;
using XPNet;
namespace XPNet.CLR.Template
{
[XPlanePlugin(
name: "My Plugin",
signature: "you.plugins.name",
description: "Describe your plugin here."
)]
public class Plugin : IXPlanePlugin
{
private readonly IXPlaneApi m_api;
publ... | mit | C# |
6eebf8e32a25f69b379f7cab82c56914e3903af3 | Bump v1.1.2 | karronoli/tiny-sato | TinySato/Properties/AssemblyInfo.cs | TinySato/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TinySato")]
[assembly: AssemblyDescription("You can construct and send SBPL packet to Sato printer. Sat... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TinySato")]
[assembly: AssemblyDescription("You can construct and send SBPL packet to Sato printer. Sat... | apache-2.0 | C# |
18d0ab09f7501894b60e2181003b8ccb5e12e923 | Update IsValidIpAddress.cs | BlarghLabs/MoarUtils | commands/validation/ipaddresses/IsValidIpAddress.cs | commands/validation/ipaddresses/IsValidIpAddress.cs | using MoarUtils.commands.logging;
using System;
using System.Net;
namespace MoarUtils.commands.validation.ipaddresses {
public class IsValidIpAddress {
public static bool Execute(string input) {
try {
IPAddress address;
if (IPAddress.TryParse(input, out address)) {
switch (addres... | using MoarUtils.commands.logging;
using System;
using System.Net;
namespace MoarUtils.commands.validation.ipaddresses {
public class IsValidIpAddress {
public bool Execute(string input) {
try {
IPAddress address;
if (IPAddress.TryParse(input, out address)) {
switch (address.Addre... | mit | C# |
7bdb63f6e998fa62f783806f85f4fa5236715873 | Fix ios code signing task | Julien-Mialon/Cake.Storm,Julien-Mialon/Cake.Storm | addins/src/Cake.Storm.iOS/Aliases.cs | addins/src/Cake.Storm.iOS/Aliases.cs | using System;
using Cake.Core;
using Cake.Core.Annotations;
using Cake.Core.Diagnostics;
using Cake.Core.IO;
using Cake.Common.Tools;
namespace Cake.Storm.iOS
{
[CakeAliasCategory("Cake.Storm.iOS")]
public static class Aliases
{
[CakeMethodAlias]
public static PList LoadPListFile(this ICakeContext context, Fil... | using System;
using Cake.Core;
using Cake.Core.Annotations;
using Cake.Core.Diagnostics;
using Cake.Core.IO;
using Cake.Common.Tools;
namespace Cake.Storm.iOS
{
[CakeAliasCategory("Cake.Storm.iOS")]
public static class Aliases
{
[CakeMethodAlias]
public static PList LoadPListFile(this ICakeContext context, Fil... | mit | C# |
0d7b47dc60afdc101c8f474c8b54bc56e0b66d05 | fix not found error | flyrpc/flyrpc-csharp | flyrpc/flyrpc/Router.cs | flyrpc/flyrpc/Router.cs | // ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerat... | // ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerat... | apache-2.0 | C# |
6b4b6de5545f16762a8a63fdeb011ed6e95ee093 | Fix test gameplay starting in a hidden state | ppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu | osu.Game/Screens/Edit/GameplayTest/EditorPlayer.cs | osu.Game/Screens/Edit/GameplayTest/EditorPlayer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
using osu.Game.Overlays;
using osu.Game.Screens.Play;
namespace osu.Game.Screens.Ed... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
using osu.Game.Overlays;
using osu.Game.Screens.Play;
namespace osu.Game.Screens.Ed... | mit | C# |
43d7f14204ce60a4987516e01dec15ca9ec2e3f9 | Comment removal in prep for newer commenting | stoiveyp/alexa-skills-dotnet,timheuer/alexa-skills-dotnet | Alexa.NET/Response/PlainTextOutputSpeech.cs | Alexa.NET/Response/PlainTextOutputSpeech.cs | using Newtonsoft.Json;
namespace Alexa.NET.Response
{
public class PlainTextOutputSpeech : IOutputSpeech
{
[JsonProperty("type")]
[JsonRequired]
public string Type
{
get { return "PlainText"; }
}
[JsonRequired]
[JsonProperty("text")]
... | using Newtonsoft.Json;
namespace Alexa.NET.Response
{
public class PlainTextOutputSpeech : IOutputSpeech
{
/// <summary>
/// A string containing the type of output speech to render. Valid types are:
/// - "PlainText" - Indicates that the output speech is defined as plain text.
/... | mit | C# |
ee3838fc2652c0ad275d5ab719438518af741f8c | Remove unused variable | Voxelgon/Voxelgon,Voxelgon/Voxelgon | Assets/Plugins/Voxelgon/CameraController.cs | Assets/Plugins/Voxelgon/CameraController.cs | using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour {
public float panSensitivity = 0.8f;
public float orbitSensitivity = 3f;
public float zoomSensativity = 1f;
public float zoomExpo = 1.1f;
public float minAltitude = 5;
public float maxAltitude = 85;
public float minZ... | using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour {
public float panSensitivity = 0.8f;
public float orbitSensitivity = 3f;
public float zoomSensativity = 1f;
public float zoomExpo = 1.1f;
public float minAltitude = 5;
public float maxAltitude = 85;
public float minZ... | apache-2.0 | C# |
8894653c1b3f55a4d5c9c8ed34cee01ca9103d57 | Fix plot split fail | joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net | JoinRpg.DataModel/PlotElement.cs | JoinRpg.DataModel/PlotElement.cs | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
using JoinRpg.Helpers;
namespace JoinRpg.DataModel
{
// ReSharper disable once ClassWithVirtualMembersNeverInherited.Global required by LINQ
public class PlotElement : IProjectEntity, IDeletableSubEntity
{
public int PlotElementId ... | using System;
using System.Collections.Generic;
using JetBrains.Annotations;
using JoinRpg.Helpers;
namespace JoinRpg.DataModel
{
// ReSharper disable once ClassWithVirtualMembersNeverInherited.Global required by LINQ
public class PlotElement : IProjectEntity, IDeletableSubEntity
{
public int PlotElementId ... | mit | C# |
10a54e4be41fcff0c75e928f17be04e1af1542f6 | Update Assemblyinfo | Impuls-Communicatie/Ogone.NET | Ogone/Properties/AssemblyInfo.cs | Ogone/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("Og... | 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("Og... | mit | C# |
fc852a5ad4a6affac1d474a722297aa8aba18a22 | Change version to 1.9.1 | Seddryck/NBi,Seddryck/NBi | AssemblyInfo.cs | AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyCompany("NBi Team - Cédric L. Charlier")]... | 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: AssemblyCompany("NBi Team - Cédric L. Charlier")]... | apache-2.0 | C# |
a887675e2db4dc4c0ce741b05105ee46ab6e034a | Fix reflection code | johnnyasantoss/hippocampus-sql,johnnyasantoss/hippocampus-sql | src/Hippocampus.SQL/ClassMetadataCache.cs | src/Hippocampus.SQL/ClassMetadataCache.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection;
using Hippocampus.SQL.Interfaces;
using Hippocampus.SQL.Model;
namespace Hippocampus.SQL
{
/// <summary>
/// Stores mapped class info
//... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection;
using Hippocampus.SQL.Interfaces;
using Hippocampus.SQL.Model;
namespace Hippocampus.SQL
{
/// <summary>
/// Stores mapped class info
///... | mit | C# |
dcd22070d94012ac5eea66db71e5aa02adf8593e | allow updates of only the changed elements | GeertBellekens/UML-Tooling-Framework,GeertBellekens/UML-Tooling-Framework | SchemaBuilderFramework/Schema.cs | SchemaBuilderFramework/Schema.cs |
using System;
using System.Collections.Generic;
using TSF.UmlToolingFramework.UML.Classes.Kernel;
using UML=TSF.UmlToolingFramework.UML;
namespace SchemaBuilderFramework
{
/// <summary>
/// A Schema is the represenation of a part of the model that can be used as a message
/// </summary>
public interface Schema
... |
using System;
using System.Collections.Generic;
using TSF.UmlToolingFramework.UML.Classes.Kernel;
using UML=TSF.UmlToolingFramework.UML;
namespace SchemaBuilderFramework
{
/// <summary>
/// A Schema is the represenation of a part of the model that can be used as a message
/// </summary>
public interface Schema
... | bsd-2-clause | C# |
8f9fa16a1eec6d13588ffd06245c93ec43d50f96 | fix max vanguard credits value | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Data/Pc/VanguardInfo.cs | TCC.Core/Data/Pc/VanguardInfo.cs | using FoglioUtils;
using Newtonsoft.Json;
namespace TCC.Data.Pc
{
public class VanguardInfo : TSPropertyChanged
{
public const float MaxCredits = 20000;
public const int MaxDaily = 16;
public const int MaxWeekly = 16;
private int _credits;
private int _dailiesDone;
... | using FoglioUtils;
using Newtonsoft.Json;
namespace TCC.Data.Pc
{
public class VanguardInfo : TSPropertyChanged
{
public const float MaxCredits = 9000;
public const int MaxDaily = 16;
public const int MaxWeekly = 16;
private int _credits;
private int _dailiesDone;
... | mit | C# |
34c2961ae6402a003f5257f795414fbebfdd496b | Use an array of directories instead of just one. | mediafreakch/Nustache,mediafreakch/Nustache,jdiamond/Nustache,jdiamond/Nustache | Nustache.Core/FileSystemTemplateLocator.cs | Nustache.Core/FileSystemTemplateLocator.cs | using System.IO;
namespace Nustache.Core
{
public class FileSystemTemplateLocator
{
private readonly string _extension;
private readonly string[] _directories;
public FileSystemTemplateLocator(string extension, params string[] directories)
{
_extension =... | using System.IO;
namespace Nustache.Core
{
public class FileSystemTemplateLocator
{
private readonly string _extension;
private readonly string _directory;
public FileSystemTemplateLocator(string extension, string directory)
{
_extension = extension;
... | mit | C# |
073abea28c5cbbdec1c4ea9882d9b6d43c6e88da | Throw exception on invalid unary type | steven-r/Oberon0Compiler | oberon0/Expressions/Operations/OpUnaryMinus.cs | oberon0/Expressions/Operations/OpUnaryMinus.cs | #region copyright
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="OpUnaryMinus.cs" company="Stephen Reindl">
// Copyright (c) Stephen Reindl. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the pr... | #region copyright
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="OpUnaryMinus.cs" company="Stephen Reindl">
// Copyright (c) Stephen Reindl. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the pr... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.