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 |
|---|---|---|---|---|---|---|---|---|
162010bc5e05ae4f1c3fbe93b196ee49635d64fb | Add a couple of apparently missing events | canton7/SyncTrayzor,canton7/SyncTrayzor,canton7/SyncTrayzor | src/SyncTrayzor/Syncthing/ApiClient/EventType.cs | src/SyncTrayzor/Syncthing/ApiClient/EventType.cs | using Newtonsoft.Json;
namespace SyncTrayzor.Syncthing.ApiClient
{
[JsonConverter(typeof(DefaultingStringEnumConverter))]
public enum EventType
{
Unknown,
Starting,
StartupComplete,
Ping,
DeviceDiscovered,
DeviceConnected,
DeviceDisconnected,
... | using Newtonsoft.Json;
namespace SyncTrayzor.Syncthing.ApiClient
{
[JsonConverter(typeof(DefaultingStringEnumConverter))]
public enum EventType
{
Unknown,
Starting,
StartupComplete,
Ping,
DeviceDiscovered,
DeviceConnected,
DeviceDisconnected,
... | mit | C# |
eccb0e2f35629d04b751a621b0d00fdcc88e4096 | Fix the tests build | flagbug/Espera,punker76/Espera | Espera.Core.Tests/YoutubeSongFinderTest.cs | Espera.Core.Tests/YoutubeSongFinderTest.cs | using System;
using System.Reactive.Linq;
using System.Threading.Tasks;
using Akavache;
using Xunit;
namespace Espera.Core.Tests
{
public class YoutubeSongFinderTest
{
public class TheGetSongsAsyncMethod
{
[Fact]
public async Task NullSearchTermDefaultsToEmptyString()
... | using System;
using System.Reactive.Linq;
using System.Threading.Tasks;
using Akavache;
using Xunit;
namespace Espera.Core.Tests
{
public class YoutubeSongFinderTest
{
public class TheGetSongsAsyncMethod
{
[Fact]
public async Task NullSearchTermDefaultsToEmptyString()
... | mit | C# |
fd23a6d2e2d24eeef1c7f8ec731da556772215c9 | Update XMLTests.cs | keith-hall/Extensions,keith-hall/Extensions | tests/XMLTests.cs | tests/XMLTests.cs | using System;
using System.Xml.Linq;
using HallLibrary.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Tests
{
[TestClass]
public class XMLTests
{
[TestMethod]
public void TestToDataTable()
{
var xe = XElement.Parse(@"<root><row><id example='test'>7</id><name><last>Bloggs</last><f... | using System;
using System.Xml.Linq;
using HallLibrary.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Tests
{
[TestClass]
public class XMLTests
{
[TestMethod]
public void TestToDataTable()
{
var xe = XElement.Parse(@"<root><row><id example='test'>7</id><name><last>Bloggs</last><f... | apache-2.0 | C# |
347ddd4a046871bdaf382f91c804bac217a6937a | Update version number | dylanplecki/KeycloakOwinAuthentication,dylanplecki/BasicOidcAuthentication,joelnet/KeycloakOwinAuthentication | src/Owin.Security.Keycloak/Properties/AssemblyInfo.cs | src/Owin.Security.Keycloak/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("Ke... | 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("Ke... | mit | C# |
56c4702824288c74923e7f874b1009be9bd45070 | Update to gov gateway inform content | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EAS.Web/Views/Shared/GatewayInform.cshtml | src/SFA.DAS.EAS.Web/Views/Shared/GatewayInform.cshtml | @model SFA.DAS.EAS.Web.OrchestratorResponse<SFA.DAS.EAS.Web.Models.GatewayInformViewModel>
@{ViewBag.PageID = "page-onboard-gov-gateway-inform"; }
@{ViewBag.Title = "Check details"; }
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-xlarge">Allowing your tax details to be used</... | @model SFA.DAS.EAS.Web.OrchestratorResponse<SFA.DAS.EAS.Web.Models.GatewayInformViewModel>
@{ViewBag.PageID = "page-onboard-gov-gateway-inform"; }
@{ViewBag.Title = "Check details"; }
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-xlarge">Connecting to HMRC</h1>
<p>To ... | mit | C# |
0e1b4c4114f64be5efe506199a579c8c07934b3a | Fix Articles Controller Tests | Kentico/Mvc,Kentico/Mvc,Kentico/Mvc | test/DancingGoat.Tests/Unit/ArticleControllerTests.cs | test/DancingGoat.Tests/Unit/ArticleControllerTests.cs | using System.Net;
using CMS.DataEngine;
using CMS.DocumentEngine;
using CMS.DocumentEngine.Tests;
using CMS.DocumentEngine.Types;
using CMS.Tests;
using DancingGoat.Controllers;
using DancingGoat.Infrastructure;
using DancingGoat.Models.Articles;
using DancingGoat.Repositories;
using DancingGoat.Tests.Extensions;
... | using System.Net;
using CMS.DataEngine;
using CMS.DocumentEngine;
using CMS.DocumentEngine.Tests;
using CMS.DocumentEngine.Types;
using CMS.Tests;
using DancingGoat.Controllers;
using DancingGoat.Infrastructure;
using DancingGoat.Repositories;
using DancingGoat.Tests.Extensions;
using NSubstitute;
using NUnit.Frame... | mit | C# |
9f28631b3be6b6d6953560ac119952280368daff | Update Personalization region (#790) | algolia/algoliasearch-client-csharp | src/Algolia.Search.Test/BaseTest.cs | src/Algolia.Search.Test/BaseTest.cs | /*
* Copyright (c) 2018-2021 Algolia
* http://www.algolia.com/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... | /*
* Copyright (c) 2018-2021 Algolia
* http://www.algolia.com/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... | mit | C# |
7153aafbb4225cd0d3e1d5900b5753be0059ff6a | Handle AddressNotFoundException | zulhilmizainuddin/geoip,zulhilmizainuddin/geoip | src/GeoIP/Executers/MaxMindQuery.cs | src/GeoIP/Executers/MaxMindQuery.cs | using GeoIP.Models;
using MaxMind.GeoIP2;
using MaxMind.GeoIP2.Exceptions;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace GeoIP.Executers
{
public class MaxMindQuery : IQuery
{
public async Task<string> Query(string ipA... | using GeoIP.Models;
using MaxMind.GeoIP2;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace GeoIP.Executers
{
public class MaxMindQuery : IQuery
{
public async Task<string> Query(string ipAddress, string dataSource)
... | mit | C# |
99bf5c0ba43a64b0695e985bc193c54d2055a9a8 | disable v3 compression tests temporarily | elastacloud/parquet-dotnet | src/Parquet.Test/CompressionTest.cs | src/Parquet.Test/CompressionTest.cs | using Parquet.Data;
using System.IO;
using Xunit;
namespace Parquet.Test
{
public class CompressionTest : TestBase
{
[Theory]
[InlineData(CompressionMethod.None)]
[InlineData(CompressionMethod.Gzip)]
[InlineData(CompressionMethod.Snappy)]
public void All_compression_methods_support... | using Parquet.Data;
using System.IO;
using Xunit;
namespace Parquet.Test
{
public class CompressionTest : TestBase
{
[Theory]
[InlineData(CompressionMethod.None)]
[InlineData(CompressionMethod.Gzip)]
[InlineData(CompressionMethod.Snappy)]
public void All_compression_methods_support... | mit | C# |
d69a2a0fab11a47be572bde0775afa1189ae3fa0 | Throw more meaningful exception when trying to access failed volumes. | drebrez/DiscUtils,quamotion/discutils,breezechen/DiscUtils,breezechen/DiscUtils | src/LogicalDiskManager/DynamicVolume.cs | src/LogicalDiskManager/DynamicVolume.cs | //
// Copyright (c) 2008-2011, Kenneth Bell
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, m... | //
// Copyright (c) 2008-2011, Kenneth Bell
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, m... | mit | C# |
b85375575a0090d3a4c4e60807fa46e6fc3c5cd3 | Update comment | martincostello/alexa-london-travel | src/LondonTravel.Skill/AlexaFunction.cs | src/LondonTravel.Skill/AlexaFunction.cs | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
using Alexa.NET.Request;
using Alexa.NET.Response;
using Amazon.Lambda.Core;
namespace MartinCostell... | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
using Alexa.NET.Request;
using Alexa.NET.Response;
using Amazon.Lambda.Core;
namespace MartinCostell... | apache-2.0 | C# |
2f5de263a1c824c89a78e0ead926c9ae9d6b0772 | Add MI debugger working directory to PATH | yazeng/MIEngine,wesrupert/MIEngine,rajkumar42/MIEngine,xincun/MIEngine,chuckries/MIEngine,caslan/MIEngine,enginekit/MIEngine,devilman3d/MIEngine,pieandcakes/MIEngine,wesrupert/MIEngine,caslan/MIEngine,csiusers/MIEngine,devilman3d/MIEngine,yacoder/MIEngine,Microsoft/MIEngine,edumunoz/MIEngine,edumunoz/MIEngine,pieandcak... | src/MICore/Transports/LocalTransport.cs | src/MICore/Transports/LocalTransport.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Diagnostics;
using System.IO;
using System.Collections.Speciali... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Diagnostics;
using System.IO;
using System.Collections.Speciali... | mit | C# |
6ba3d0154d21bfa546204265e8d709314c7afb7d | Update AssemblyInfo.cs | NConsole/NConsole | src/NConsole/Properties/AssemblyInfo.cs | src/NConsole/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("NConsole")]
[assembly: AssemblyDescription("NConsole is a .NET library to parse command line arguments and execute commands.")]
[assembly: AssemblyCompany("Rico Suter")]
[assembly: AssemblyProduct("NConsole")]
[assembly: Assembl... | using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("NConsole")]
[assembly: AssemblyDescription("NConsole is a .NET library to parse command line arguments and execute commands.")]
[assembly: AssemblyCompany("Rico Suter")]
[assembly: AssemblyProduct("NConsole")]
[assembly: Assembl... | mit | C# |
f4e21d24932bce181b8ea204a3aa3f609b9fa7b9 | Rename SELECT * test cases to match naming convention | terrajobst/nquery-vnext | src/NQuery.UnitTests/SelectStarTests.cs | src/NQuery.UnitTests/SelectStarTests.cs | using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace NQuery.UnitTests
{
[TestClass]
public class SelectStarTests
{
[TestMethod]
public void SelectStar_Disallowed_WhenNoTablesSpecified()
{
var syntaxTree = SyntaxTree.ParseQuery(... | using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace NQuery.UnitTests
{
[TestClass]
public class SelectStarTests
{
[TestMethod]
public void Binder_DisallowsSelectStarWithoutTables()
{
var syntaxTree = SyntaxTree.ParseQuery("SEL... | mit | C# |
afdb0f9d0fd3ff9e3fa651492a64976e2096a988 | Implement endpoint for remove instance | mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard | src/Okanshi.Dashboard/SettingsModule.cs | src/Okanshi.Dashboard/SettingsModule.cs | using System;
using System.Linq;
using Nancy;
namespace Okanshi.Dashboard
{
public class SettingsModule : NancyModule
{
public SettingsModule(IConfiguration configuration)
{
Get["/settings"] = p =>
{
var servers = configuration.GetAll().ToArray();
return View["settings.html", servers];
};
Po... | using System;
using System.Linq;
using Nancy;
namespace Okanshi.Dashboard
{
public class SettingsModule : NancyModule
{
public SettingsModule(IConfiguration configuration)
{
Get["/settings"] = p =>
{
var servers = configuration.GetAll().ToArray();
return View["settings.html", servers];
};
Po... | mit | C# |
f25673ede303c1ea6e610d8a48ec514fddf3a0aa | Remove Console.WriteLine from time_to_main. | brianrob/coretests,brianrob/coretests | managed/time_to_main/src/Program.cs | managed/time_to_main/src/Program.cs | using System;
using System.Runtime.InteropServices;
namespace TimeToMain
{
public static class Program
{
[DllImport("libnative.so")]
private static extern void write_marker(string name);
public static void Main(string[] args)
{
write_marker("/function/main");
... | using System;
using System.Runtime.InteropServices;
namespace TimeToMain
{
public static class Program
{
[DllImport("libnative.so")]
private static extern void write_marker(string name);
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
... | mit | C# |
9f9deef438a557254142acb2cb38ec1a96d503c6 | Reword slightly | peppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,ppy/osu | osu.Game/Overlays/Chat/ExternalLinkDialog.cs | osu.Game/Overlays/Chat/ExternalLinkDialog.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.
#nullable disable
using System;
using osu.Framework.Graphics.Sprites;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Overlays.Chat
{
public class ExternalLinkD... | // 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.
#nullable disable
using System;
using osu.Framework.Graphics.Sprites;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Overlays.Chat
{
public class ExternalLinkD... | mit | C# |
b2ef5c2b66951f009749934eadda1b10da60d3e3 | Update AssemblyVersion to 1.0.3 | Shaddix/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet | RealmAssemblyInfo.cs | RealmAssemblyInfo.cs | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... | apache-2.0 | C# |
1aba4d54e1444b9447757a5e9712157e61a3dc14 | Remove hard coded USD dollar symbol and use currency string formatting instead. | bleroy/Nwazet.Commerce,bleroy/Nwazet.Commerce | Views/Price.cshtml | Views/Price.cshtml | @if (Model.DiscountedPrice != Model.Price)
{
<b class="inactive-price" style="text-decoration:line-through" title="@T("Was {0}", Model.Price.ToString("c"))">@Model.Price.ToString("c")</b>
<b class="discounted-price" title="@T("Now {0}", Model.DiscountedPrice.ToString("c"))">@Model.DiscountedPrice.ToString("... | @if (Model.DiscountedPrice != Model.Price) {
<b class="inactive-price" style="text-decoration:line-through" title="@T("Was ${0}", Model.Price)">$@Model.Price</b>
<b class="discounted-price" title="@T("Now ${0}", Model.DiscountedPrice)">$@Model.DiscountedPrice</b>
<span class="discount-comment">@Model.Di... | bsd-3-clause | C# |
5de12e6fd1ad1a72ca3c0dd4984cfef2902c8e68 | fix the aim dir | dmanning23/BulletCircus | Source/BulletBoid.cs | Source/BulletBoid.cs | using FlockBuddy;
using Microsoft.Xna.Framework;
namespace BulletFlockBuddy
{
/// <summary>
/// This class wraps up BulletMLLib.Bullet with the FlockBuddy.Boid and CollisionBuddy.Circle
/// </summary>
public class BulletBoid : SimpleBullet
{
#region Members
/// <summary>
/// The flocking object this dude ... | using FlockBuddy;
using Microsoft.Xna.Framework;
namespace BulletFlockBuddy
{
/// <summary>
/// This class wraps up BulletMLLib.Bullet with the FlockBuddy.Boid and CollisionBuddy.Circle
/// </summary>
public class BulletBoid : SimpleBullet
{
#region Members
/// <summary>
/// The flocking object this dude ... | mit | C# |
5569edccfd1e6bdb2ed410605801a95df3d5ccbe | Update version to 1.0.1. | KirillOsenkov/MSBuildStructuredLog,KirillOsenkov/MSBuildStructuredLog | AssemblyVersion.cs | AssemblyVersion.cs | using System.Reflection;
[assembly: AssemblyVersion("1.0.1")]
[assembly: AssemblyFileVersion("1.0.1")] | using System.Reflection;
[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyFileVersion("1.0.0")] | mit | C# |
9097c10782843db55ab00d0000ac253910ee0210 | Put passwords in startup args | Hitcents/S22.Xmpp | Console/Program.cs | Console/Program.cs | using S22.Xmpp.Client;
using S22.Xmpp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using S22.Xmpp.Im;
namespace XmppConsole
{
class Program
{
static void Main(string[] args)
{
try
{
... | using S22.Xmpp.Client;
using S22.Xmpp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using S22.Xmpp.Im;
namespace XmppConsole
{
class Program
{
static void Main(string[] args)
{
try
{
... | mit | C# |
5bcc11b4b784d6e88cf542ba31e4aaf304f1d58c | modify WXEnum.cs | cuittzq/JCWX,linyujie/JCWX,sitexa/JCWX,lepon/JCWX,crushway/JCWX,JamesYing/JCWX | Business/Model/WXEnum.cs | Business/Model/WXEnum.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WX.Model
{
public enum MsgType
{
Text,
Image,
Voice,
Video,
Location,
Link,
Event,
News,
Music
}
public enum Event
{
Subs... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WX.Model
{
public enum MsgType
{
Text,
Image,
Voice,
Video,
Location,
Link,
Event,
News,
Music
}
public enum Event
{
Subs... | mit | C# |
1bcae8536f1346be2bbce6cb51204faf8ea5e13f | apply global gather multiplier | Notulp/Pluton,Notulp/Pluton | Pluton/Events/GatherEvent.cs | Pluton/Events/GatherEvent.cs | using System;
namespace Pluton.Events
{
public class GatherEvent : CountedInstance
{
public ResourceDispenser resourceDispenser;
public Player Gatherer;
public Entity Resource;
public ItemAmount ItemAmount;
public int Amount;
public readonly int origAmount;
... | using System;
namespace Pluton.Events
{
public class GatherEvent : CountedInstance
{
public ResourceDispenser resourceDispenser;
public Player Gatherer;
public Entity Resource;
public ItemAmount ItemAmount;
public int Amount;
public readonly int origAmount;
... | mit | C# |
cecb7009a79120037b135ba9b730d24a95fd610e | Remove the container class from the header, because it was redundant with its containing div. | bigfont/sweet-water-revolver | mvcWebApp/Views/Home/_Header.cshtml | mvcWebApp/Views/Home/_Header.cshtml |
<div class="container">
<header>
<h1>Sweet Water Revolver</h1>
</header>
</div> |
<div class="container">
<header class="container">
<h1>Sweet Water Revolver</h1>
</header>
</div> | mit | C# |
04882f5ecf15c325f34b74813a0f6e98d4789b67 | build 0.0.4 | rachmann/qboAccess,rachmann/qboAccess,rachmann/qboAccess | src/Global/GlobalAssemblyInfo.cs | src/Global/GlobalAssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[ assembly : ComVisible( false ) ]
[ assembly : AssemblyProduct( "QuickBooksOnlineAccess" ) ]
[ assembly : AssemblyCompany( "Agile Harbor, LLC" ) ]
[ assembly : AssemblyCopyright( "Copyright (C) 2014 Agile Harbor, LLC" ) ]
[ assembly : Assemb... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[ assembly : ComVisible( false ) ]
[ assembly : AssemblyProduct( "QuickBooksOnlineAccess" ) ]
[ assembly : AssemblyCompany( "Agile Harbor, LLC" ) ]
[ assembly : AssemblyCopyright( "Copyright (C) 2014 Agile Harbor, LLC" ) ]
[ assembly : Assemb... | bsd-3-clause | C# |
7bec8226cc515339e4cb1a98a27e62d6bca3c5a4 | Enable migrations on app start | chrisofspades/PickemApp,chrisofspades/PickemApp,chrisofspades/PickemApp | PickemApp/Global.asax.cs | PickemApp/Global.asax.cs | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using PickemApp.Models;
using PickemApp.Migrations;
namespace PickemApp
{
// Note: For instructions o... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace PickemApp
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?L... | isc | C# |
9fdd5f6a760ce3519f9ba7402c364629b663a5cc | Enable CF migrations on restart | dev-academy-phase4/cs-portfolio,dev-academy-phase4/cs-portfolio | Portfolio/Global.asax.cs | Portfolio/Global.asax.cs | using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Portfolio
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(G... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Portfolio
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | isc | C# |
8c8f6edaa48a3802d0ea6db53fd4861cc80f6e9f | add documentation for font base class. | CosmosOS/Cosmos,zarlo/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos | source/Cosmos.System2/Graphics/Fonts/Font.cs | source/Cosmos.System2/Graphics/Fonts/Font.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Cosmos.System.Graphics.Fonts
{
/// <summary>
/// Base class for fonts.
/// </summary>
public abstract class Font
{
/// <summary>
/// Get font pure data.
/// </summary>
public abstract byte... | using System;
using System.Collections.Generic;
using System.Text;
namespace Cosmos.System.Graphics.Fonts
{
public abstract class Font
{
public abstract byte[] Data { get; }
public abstract byte Height { get; }
public abstract byte Width { get; }
public abstract void SetFon... | bsd-3-clause | C# |
7b1ec4101425fd8c50c7114e7fde756025247812 | Improve PortHelper to be faster by giving a larger range | mattolenik/HttpMock,zhdusurfin/HttpMock,hibri/HttpMock,oschwald/HttpMock | src/HttpMock.Integration.Tests/PortHelper.cs | src/HttpMock.Integration.Tests/PortHelper.cs | using System;
using System.Linq;
using System.Net.NetworkInformation;
namespace HttpMock.Integration.Tests
{
internal static class PortHelper
{
internal static int FindLocalAvailablePortForTesting ()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
var activeTcpC... | using System;
using System.Linq;
using System.Net.NetworkInformation;
using System.Security;
namespace HttpMock.Integration.Tests
{
internal static class PortHelper
{
internal static int FindLocalAvailablePortForTesting ()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties(... | mit | C# |
d8163902b02db6e4b6cc23e619055c0f44baaf6a | Bump version to 17.0.0.44222 | 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# |
7162e03f64c1759e2b8f5a2b6f016c012a0c9e2e | Throw exceptions if calling AsXml or Save on the OrphanProject | corngood/omnisharp-server,x335/omnisharp-server,svermeulen/omnisharp-server,syl20bnr/omnisharp-server,corngood/omnisharp-server,OmniSharp/omnisharp-server,mispencer/OmniSharpServer,syl20bnr/omnisharp-server,x335/omnisharp-server | OmniSharp/Solution/OrphanProject.cs | OmniSharp/Solution/OrphanProject.cs | using System;
using System.Collections.Generic;
using System.Xml.Linq;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.TypeSystem;
namespace OmniSharp.Solution
{
/// <summary>
/// Placeholder that can be used for files that don't belong to a project.
/// </summary>
public class Orpha... | using System.Collections.Generic;
using System.Xml.Linq;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.NRefactory.TypeSystem;
namespace OmniSharp.Solution
{
/// <summary>
/// Placeholder that can be used for files that don't belong to a project.
/// </summary>
public class OrphanProject : IPr... | mit | C# |
55358f68a328fd168e30fd509904196e52a44dcc | convert callback to terser method group | Babblesort/GameOfLife | UI/GameForm.cs | UI/GameForm.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 Engine;
using System.Threading;
namespace UI
{
public partial class GameForm : Form
{
... | 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 Engine;
using System.Threading;
namespace UI
{
public partial class GameForm : Form
{
... | mit | C# |
97e78fa0cbf12ccddb7eab26f97d6676eea4bf58 | Clear some unused code. | DragonEyes7/ConcoursUBI17,DragonEyes7/ConcoursUBI17 | Proto/Assets/Scripts/UI/ServerUI.cs | Proto/Assets/Scripts/UI/ServerUI.cs | using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using System.Collections;
public class ServerUI : MonoBehaviour
{
[SerializeField]InputField m_ServerNameField;
[SerializeField]RectTransform m_ServerList;
void Start ()
{
PhotonNetwork.ConnectUsingSettings("Proto v0.1")... | using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using System.Collections;
public class ServerUI : MonoBehaviour
{
[SerializeField]InputField m_ServerNameField;
[SerializeField]RectTransform m_ServerList;
void Start ()
{
PhotonNetwork.ConnectUsingSettings("Proto v0.1")... | mit | C# |
e7732daf154108375fc9a034ef91bee547ad07a9 | Extend license | mrklintscher/libfintx | libfintx/Properties/AssemblyInfo.cs | libfintx/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 einer Assembly zugeordnet sind.
[assembly: Asse... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: Asse... | lgpl-2.1 | C# |
31c2e57dbb93a5095a0da4af5fe6590bf0aed01f | add SafeAdd() | TakeAsh/cs-WpfUtility | WpfUtility/UIElementCollectionExtensionMethods.cs | WpfUtility/UIElementCollectionExtensionMethods.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
namespace WpfUtility {
public static class UIElementCollectionExtensionMethods {
public static void Add(this UIElementCollection items, IEnumerable<UIElem... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
namespace WpfUtility {
public static class UIElementCollectionExtensionMethods {
public static void Add(this UIElementCollection items, IEnumerable<UIElem... | mit | C# |
3673f3581ceeb325362b189312cd4e9876c4757a | Add missing time types | getconnect/connect-net,getconnect/connect-net-sdk | src/ConnectSdk/Querying/TimeType.cs | src/ConnectSdk/Querying/TimeType.cs | namespace ConnectSdk.Querying
{
public enum TimeType
{
Minutes,
Hours,
Days,
Weeks,
Months,
Quarters,
Years,
}
} | namespace ConnectSdk.Querying
{
public enum TimeType
{
Minutes,
Hours,
Days,
Weeks,
Years,
}
} | mit | C# |
e6487d7c1e26f3430c395bef6cfa538518602ef6 | bump Core to v1.3.1 for release | aranasoft/cobweb | src/Core/Properties/AssemblyInfo.cs | src/Core/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("Cobweb")]
[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("Cobweb")]
[assembly: AssemblyDescription(... | bsd-3-clause | C# |
a62770b39df18615939fa7366ff868b0feef2c18 | Fix demo by uncommenting line accidentally left commented | justinjstark/Verdeler,justinjstark/Delivered | src/Demo/DemoDistributor/Program.cs | src/Demo/DemoDistributor/Program.cs | using System;
using DemoDistributor.Endpoints.FileSystem;
using DemoDistributor.Endpoints.Sharepoint;
using Delivered;
namespace DemoDistributor
{
internal class Program
{
private static void Main(string[] args)
{
//Configure the distributor
var distributor = new Distri... | using System;
using DemoDistributor.Endpoints.FileSystem;
using DemoDistributor.Endpoints.Sharepoint;
using Delivered;
namespace DemoDistributor
{
internal class Program
{
private static void Main(string[] args)
{
//Configure the distributor
var distributor = new Distri... | mit | C# |
0b16d77b2d7de12fd5075ca73bf3dd86b8fdcf9a | build version: 3.9.71.7 | wiesel78/Canwell.OrmLite.MSAccess2003 | Source/GlobalAssemblyInfo.cs | Source/GlobalAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Cake.
// </auto-generated>
//------------------------------------------------------------------------------
using System.Reflection;
[assembly: AssemblyCompany("canwell - IT Solutions... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Cake.
// </auto-generated>
//------------------------------------------------------------------------------
using System.Reflection;
[assembly: AssemblyCompany("canwell - IT Solutions... | bsd-3-clause | C# |
bdbfac99aa0cbdba0ae2fd0c6ef7b76aee75c26f | Add FATDS to position | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | BatteryCommander.Common/Models/Position.cs | BatteryCommander.Common/Models/Position.cs | using System.ComponentModel.DataAnnotations;
namespace BatteryCommander.Common.Models
{
//public class Position
//{
// [Key]
// [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
// public int Id { get; set; }
// [Required, StringLength(30)]
// public String Name { get; ... | using System.ComponentModel.DataAnnotations;
namespace BatteryCommander.Common.Models
{
//public class Position
//{
// [Key]
// [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
// public int Id { get; set; }
// [Required, StringLength(30)]
// public String Name { get; ... | mit | C# |
008c65627331c77b0e76a6929a1b0d41c791dfa0 | Fix stylecop issue within Trace | rho24/Glimpse,gabrielweyer/Glimpse,gabrielweyer/Glimpse,dudzon/Glimpse,paynecrl97/Glimpse,Glimpse/Glimpse,dudzon/Glimpse,SusanaL/Glimpse,paynecrl97/Glimpse,elkingtonmcb/Glimpse,SusanaL/Glimpse,paynecrl97/Glimpse,codevlabs/Glimpse,flcdrg/Glimpse,SusanaL/Glimpse,elkingtonmcb/Glimpse,Glimpse/Glimpse,rho24/Glimpse,sorenhl/... | source/Glimpse.AspNet/Tab/Trace.cs | source/Glimpse.AspNet/Tab/Trace.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Glimpse.AspNet.Model;
using Glimpse.AspNet.PipelineInspector;
using Glimpse.Core.Extensibility;
namespace Glimpse.AspNet.Tab
{
public class Trace : ITab, ITabSetup, IDocumentation
{
public const string TraceMe... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Glimpse.AspNet.Model;
using Glimpse.AspNet.PipelineInspector;
using Glimpse.Core.Extensibility;
namespace Glimpse.AspNet.Tab
{
public class Trace : ITab, ITabSetup, IDocumentation
{
public const string TraceMe... | apache-2.0 | C# |
0b7bf5811d894e69b9b392034f8972854b25bed2 | complete XML doc for Elements | OlegKleyman/Omego.Extensions | core/Omego.Extensions/Elements.cs | core/Omego.Extensions/Elements.cs | namespace Omego.Extensions
{
/// <summary>
/// Represents a quantity category of elements.
/// </summary>
public enum Elements
{
/// <summary>
/// Represents no elements.
/// </summary>
None,
/// <summary>
/// Represents one element.
/// </su... | namespace Omego.Extensions
{
public enum Elements
{
None,
One,
Multiple
}
} | unlicense | C# |
81f62b5602058379ae5abf0928617b163abc0d66 | Add null check | mattolenik/winston,mattolenik/winston,mattolenik/winston | Winston/Serialization/Yml.cs | Winston/Serialization/Yml.cs | using System;
using System.IO;
using YamlDotNet.Serialization;
namespace Winston.Serialization
{
public class Yml
{
public static T Load<T>(string path)
{
var deserializer = new Deserializer();
deserializer.RegisterTypeConverter(new YmlUriConverter());
using... | using System;
using System.IO;
using YamlDotNet.Serialization;
namespace Winston.Serialization
{
public class Yml
{
public static T Load<T>(string path)
{
var deserializer = new Deserializer();
deserializer.RegisterTypeConverter(new YmlUriConverter());
using... | mit | C# |
ae97eea7c1b6a90112bf964679378b7840901c7f | Return OBJECTID field | agrc/deq-enviro,agrc/deq-enviro,agrc/deq-enviro,agrc/deq-enviro | api/Deq.Search.Soe/Configuration/DebugConfiguration.cs | api/Deq.Search.Soe/Configuration/DebugConfiguration.cs | using Deq.Search.Soe.Infastructure;
using Deq.Search.Soe.Models.Configuration;
using ESRI.ArcGIS.esriSystem;
namespace Deq.Search.Soe.Configuration {
#region License
//
// Copyright (C) 2012 AGRC
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
//... | using Deq.Search.Soe.Infastructure;
using Deq.Search.Soe.Models.Configuration;
using ESRI.ArcGIS.esriSystem;
namespace Deq.Search.Soe.Configuration {
#region License
//
// Copyright (C) 2012 AGRC
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
//... | mit | C# |
372aec0519399efb6e02c3dcefb0f1864020f12a | Update CharacterController.cs | felladrin/unity3d-mvc | Scripts/Controllers/CharacterController.cs | Scripts/Controllers/CharacterController.cs | public class CharacterController : MvcBehaviour
{
// Implment here all other actions a character
// can pertorm or react. For example:
// ApplyStatsBonus, TakeHit, PlayEmote.
// From the controller you can access
// the CharacterModel through 'App.Model.Character'
// and CharacterView through 'App.View.Characte... | public class CharacterController : MvcBehaviour
{
CharacterModel model;
CharacterView view;
void Start ()
{
model = App.Model.Character;
view = App.View.Character;
}
// Implment here all other actions a character
// can execute or receive, for example:
// ApplyStatsBonus. TakeHit, PlayEmote...
// From ... | mit | C# |
e4717cc92d13870f13037aa318c6b236c61e1483 | Fix test | corstijank/blog-dotnet-jenkins,corstijank/blog-dotnet-jenkins | TodoApi.Test/Models/TodoRepositoryTests.cs | TodoApi.Test/Models/TodoRepositoryTests.cs | using Xunit;
namespace TodoApi.Models
{
public class TodoRepositoryTests
{
private ITodoRepository _repository;
public TodoRepositoryTests()
{
_repository = new TodoRepository();
}
[Fact]
public void CanFindANewlyAddedTodoItem()
{
... | using Xunit;
namespace TodoApi.Models
{
public class TodoRepositoryTests
{
private ITodoRepository _repository;
public TodoRepositoryTests()
{
_repository = new TodoRepository();
}
[Fact]
public void CanFindANewlyAddedTodoItem()
{
... | apache-2.0 | C# |
187b33ab13610189e50740ad61a6da0dd46d98f6 | Fix StyleCop issue. | breezechen/DiscUtils,drebrez/DiscUtils,quamotion/discutils,breezechen/DiscUtils | src/Fat/FatFileSystemOptions.cs | src/Fat/FatFileSystemOptions.cs | //
// Copyright (c) 2008-2011, Kenneth Bell
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, ... | //
// Copyright (c) 2008-2011, Kenneth Bell
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, ... | mit | C# |
9e17c2e50c655d60a0d09d26806c70111e903124 | Allow mac for EncryptedString | bitwarden/core,bitwarden/core,bitwarden/core,bitwarden/core | src/Api/Utilities/EncryptedValueAttribute.cs | src/Api/Utilities/EncryptedValueAttribute.cs | using System;
using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Utilities
{
/// <summary>
/// Validates a string that is in encrypted form: "b64iv=|b64ct="
/// </summary>
public class EncryptedStringAttribute : ValidationAttribute
{
public EncryptedStringAttribute()
... | using System;
using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Utilities
{
/// <summary>
/// Validates a string that is in encrypted form: "b64iv=|b64ct="
/// </summary>
public class EncryptedStringAttribute : ValidationAttribute
{
public EncryptedStringAttribute()
... | agpl-3.0 | C# |
e2ed13b39248d10f52ffae58f4e51ed594a8951e | Trim whitespace | UselessToucan/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,ppy/osu,2yangk23/osu,peppy/osu,peppy/osu,EVAST9919/osu,NeoAdonis/osu,EVAST9919/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu-new,peppy/osu,ppy/osu,2yangk23/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu | osu.Game/Overlays/Changelog/ChangelogUpdateStreamItem.cs | osu.Game/Overlays/Changelog/ChangelogUpdateStreamItem.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 Humanizer;
using osu.Game.Graphics;
using osu.Game.Online.API.Requests.Responses;
using osuTK.Graphics;
namespace osu.Game.Overlays.Changelog
{
public class C... | // 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 Humanizer;
using osu.Game.Graphics;
using osu.Game.Online.API.Requests.Responses;
using osuTK.Graphics;
namespace osu.Game.Overlays.Changelog
{
public class C... | mit | C# |
03b29d1e5f712a6f19089762577990314c72cd66 | Add null checks to Reference | gep13/GitVersion,asbjornu/GitVersion,gep13/GitVersion,asbjornu/GitVersion,GitTools/GitVersion,GitTools/GitVersion | src/GitVersion.LibGit2Sharp/Git/Reference.cs | src/GitVersion.LibGit2Sharp/Git/Reference.cs | using GitVersion.Extensions;
using GitVersion.Helpers;
using LibGit2Sharp;
namespace GitVersion
{
internal sealed class Reference : IReference
{
private static readonly LambdaEqualityHelper<IReference> equalityHelper = new(x => x.Name.Canonical);
private static readonly LambdaKeyComparer<IRefer... | using GitVersion.Helpers;
using LibGit2Sharp;
namespace GitVersion
{
internal sealed class Reference : IReference
{
private static readonly LambdaEqualityHelper<IReference> equalityHelper = new(x => x.Name.Canonical);
private static readonly LambdaKeyComparer<IReference, string> comparerHelper ... | mit | C# |
a3da0bd6210e497f9ec1211ce350bfe6e024aa74 | Add new IsSupported flag | jamesmontemagno/InAppBillingPlugin | src/Plugin.InAppBilling/CrossInAppBilling.cs | src/Plugin.InAppBilling/CrossInAppBilling.cs | using Plugin.InAppBilling.Abstractions;
using System;
namespace Plugin.InAppBilling
{
/// <summary>
/// Cross platform InAppBilling implemenations
/// </summary>
public class CrossInAppBilling
{
static Lazy<IInAppBilling> implementation = new Lazy<IInAppBilling>(() => CreateInAppBilling(),... | using Plugin.InAppBilling.Abstractions;
using System;
namespace Plugin.InAppBilling
{
/// <summary>
/// Cross platform InAppBilling implemenations
/// </summary>
public class CrossInAppBilling
{
static Lazy<IInAppBilling> Implementation = new Lazy<IInAppBilling>(() => CreateInAppBilling(),... | mit | C# |
d6765899f4dea2bbb922d8b5f3c781ac144e0415 | Fix null players in player list. | Mikuz/Battlezeppelins,Mikuz/Battlezeppelins | Battlezeppelins/Controllers/BaseController.cs | Battlezeppelins/Controllers/BaseController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Battlezeppelins.Models;
namespace Battlezeppelins.Controllers
{
public abstract class BaseController : Controller
{
private static List<Player> playerList = new List<Player>();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Battlezeppelins.Models;
namespace Battlezeppelins.Controllers
{
public abstract class BaseController : Controller
{
private static List<Player> playerList = new List<Player>();
... | apache-2.0 | C# |
8d7d13affaa26067862355d495f8def8666a5176 | Fix #125 | tfsaggregator/tfsaggregator-core | Extensions/InvalidValueFieldValueValidator.cs | Extensions/InvalidValueFieldValueValidator.cs | using System.Collections;
using Aggregator.Core.Context;
using Microsoft.TeamFoundation.WorkItemTracking.Client;
namespace Aggregator.Core.Extensions
{
internal class InvalidValueFieldValueValidator : BaseFieldValueValidator
{
internal InvalidValueFieldValueValidator(IRuntimeContext context)
... | using System.Collections;
using Aggregator.Core.Context;
using Microsoft.TeamFoundation.WorkItemTracking.Client;
namespace Aggregator.Core.Extensions
{
internal class InvalidValueFieldValueValidator : BaseFieldValueValidator
{
internal InvalidValueFieldValueValidator(IRuntimeContext context)
... | apache-2.0 | C# |
eeff91de895f68c8217b3ceaad05f2f8ec66c062 | Add return type support for SyncCtxSwitcher.NoContext. | StephenCleary/AsyncEx | src/Nito.AsyncEx.Tasks/SynchronizationContextSwitcher.cs | src/Nito.AsyncEx.Tasks/SynchronizationContextSwitcher.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Nito.AsyncEx
{
/// <summary>
/// Utility class for temporarily switching <see cref="SynchronizationContext"/> implementations.
/// </summary>
public sealed class SynchronizationContextSwitcher : Disposables.SingleDisposable<... | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Nito.AsyncEx
{
/// <summary>
/// Utility class for temporarily switching <see cref="SynchronizationContext"/> implementations.
/// </summary>
public sealed class SynchronizationContextSwitcher : Disposables.SingleDisposable<... | mit | C# |
d8c7d3cbf26286d08f152910c191a636cc451374 | Fix web.config [ci skip] | giacomelli/DevAchievements,giacomelli/DevAchievements,giacomelli/DevAchievements,giacomelli/DevAchievements,giacomelli/DevAchievements | src/DevAchievements.WebApp.FunctionalTests/WebConfigTest.cs | src/DevAchievements.WebApp.FunctionalTests/WebConfigTest.cs | using NUnit.Framework;
using System;
using TestSharp;
using System.Linq;
using System.Web.Configuration;
namespace DevAchievements.WebApp.FunctionalTests
{
#if DEBUG
[TestFixture ()]
public class WebConfigTest
{
[Test ()]
public void Compilaton_Assemlies_HasAllAssemblies ()
{
var conf... | using NUnit.Framework;
using System;
using TestSharp;
using System.Linq;
using System.Web.Configuration;
namespace DevAchievements.WebApp.FunctionalTests
{
[TestFixture ()]
public class WebConfigTest
{
[Test ()]
public void Compilaton_Assemlies_HasAllAssemblies ()
{
var config = Config... | mit | C# |
04831cf309736120d2854167e08930dd71332add | Save Cache | jacksoncougar/Moonfxsh | main.cs | main.cs | using Moonfish.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Moonfish.Compiler;
using System.ComponentModel;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Fasterflect;
using Moonfish.Cache;
us... | using Moonfish.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Moonfish.Compiler;
using System.ComponentModel;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Fasterflect;
using Moonfish.Cache;
us... | mit | C# |
49782ff24e2b187e9f88d16da3470b5fe88873cb | add JsonConverSettings | smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp | src/StockportWebapp/Controllers/HealthcheckController.cs | src/StockportWebapp/Controllers/HealthcheckController.cs | using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using StockportWebapp.Services;
namespace StockportWebapp.Controllers
{
public class HealthcheckController : Controller
{
private readonly IHealthcheckService _healthCheckService;
... | using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using StockportWebapp.Services;
namespace StockportWebapp.Controllers
{
public class HealthcheckController : Controller
{
private readonly IHealthcheckService _healthCheckService;
public HealthcheckController... | mit | C# |
c90f99b45398786805e404f87a54de85fed1e253 | Remove Obsolete attribute from undocumented members | tmds/Tmds.DBus | DBus.cs | DBus.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
//namespace org.freedesktop.DBus
namespace org.freedesktop.DBus
{
/*
//what's this for?
public class DBusException : ApplicationException
{
}
*/
#if U... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
//namespace org.freedesktop.DBus
namespace org.freedesktop.DBus
{
/*
//what's this for?
public class DBusException : ApplicationException
{
}
*/
#if U... | mit | C# |
43475b8bc04240d51f38446416127f6e299ba699 | Add new ListActivatableNames() to org.freedesktop.DBus | tmds/Tmds.DBus | DBus.cs | DBus.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
//namespace org.freedesktop.DBus
namespace org.freedesktop.DBus
{
/*
//what's this for?
public class DBusException : ApplicationException
{
}
*/
#if U... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
//namespace org.freedesktop.DBus
namespace org.freedesktop.DBus
{
/*
//what's this for?
public class DBusException : ApplicationException
{
}
*/
#if U... | mit | C# |
08250621e450c571b848d7e5ca311f14faa55d0b | Add flag serialization marker to CollisionGroup for engine bitmasks | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14 | Content.Shared/Physics/CollisionGroup.cs | Content.Shared/Physics/CollisionGroup.cs | using System;
using JetBrains.Annotations;
using Robust.Shared.Map;
using RobustPhysics = Robust.Shared.Physics;
using Robust.Shared.Serialization;
namespace Content.Shared.Physics
{
/// <summary>
/// Defined collision groups for the physics system.
/// </summary>
[Flags, PublicAPI]
[FlagsFor(... | using System;
using JetBrains.Annotations;
using Robust.Shared.Map;
namespace Content.Shared.Physics
{
/// <summary>
/// Defined collision groups for the physics system.
/// </summary>
[Flags, PublicAPI]
public enum CollisionGroup
{
None = 0,
Opaque = 1 << 0, // 1 ... | mit | C# |
934d41fc92e122ecdfc2bb22e254aca1620809d3 | Maintain focus on the text editor after saving. | mthamil/PlantUMLStudio,mthamil/PlantUMLStudio | PlantUmlEditor/View/DiagramEditorView.xaml.cs | PlantUmlEditor/View/DiagramEditorView.xaml.cs | using System;
using System.Windows.Controls;
namespace PlantUmlEditor.View
{
public partial class DiagramEditorView : UserControl
{
public DiagramEditorView()
{
InitializeComponent();
ContentEditor.IsEnabledChanged += ContentEditor_IsEnabledChanged;
}
void ContentEdi... | using System.Windows.Controls;
namespace PlantUmlEditor.View
{
public partial class DiagramEditorView : UserControl
{
public DiagramEditorView()
{
InitializeComponent();
}
}
}
| apache-2.0 | C# |
606e53c6309a14c14543730d537002c47e4ace31 | Remove unused properties | sebastieno/sebastienollivier.fr,sebastieno/sebastienollivier.fr | Blog.Domain/Queries/GetDraftQuery.cs | Blog.Domain/Queries/GetDraftQuery.cs | using Blog.Data;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace Blog.Domain.Queries
{
public class GetDraftQuery
{
private IBlogContext context;
public GetDraftQuery(IBlogContext context)
{
this.context = context;
}
... | using Blog.Data;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace Blog.Domain.Queries
{
public class GetDraftQuery
{
private IBlogContext context;
private readonly int id;
private readonly string postUrl;
public GetDraftQuery(IBlo... | mit | C# |
8b762e05b247ffe8294b0752a9bbfb89ef63fb23 | Update version | Fody/Equals | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Fody.Equals")]
[assembly: AssemblyProduct("Fody.Equals")]
[assembly: AssemblyVersion("1.4.10")]
[assembly: AssemblyFileVersion("1.4.10")]
| using System.Reflection;
[assembly: AssemblyTitle("Fody.Equals")]
[assembly: AssemblyProduct("Fody.Equals")]
[assembly: AssemblyVersion("1.4.9")]
[assembly: AssemblyFileVersion("1.4.9")]
| mit | C# |
5bbcf3a0979fe91ce759c062f5415e6cb21d3d8e | add option to pause on exploitable exceptions | carterjones/nouzuru,carterjones/nouzuru | Nouzuru/DebuggerSettings.cs | Nouzuru/DebuggerSettings.cs | namespace Nouzuru
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class DebuggerSettings
{
#region Properties
public bool PauseOnSingleStep { get; set; }
public bool PauseOnAccessViolation { get; set; }
public bo... | namespace Nouzuru
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class DebuggerSettings
{
#region Properties
public bool PauseOnSingleStep { get; set; }
public bool PauseOnAccessViolation { get; set; }
public bo... | bsd-2-clause | C# |
74f59987e63577a70d10456ad8a753fb46d895fa | Fix comment | Core2D/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D.UI/Behaviors/DocumentTextBindingBehavior.cs | src/Core2D.UI/Behaviors/DocumentTextBindingBehavior.cs | using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Media;
using Avalonia.Xaml.Interactivity;
using AvaloniaEdit;
namespace Core2D.UI.Behaviors
{
/// <summary>
/// Binds to a document text.
/// </summary>
public class DocumentTextBindingBehavior : Behavior<TextEditor>
{
p... | using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Media;
using Avalonia.Xaml.Interactivity;
using AvaloniaEdit;
namespace Core2D.UI.Behaviors
{
/// <summary>
/// Binds to a document text.
/// </summary>
public class DocumentTextBindingBehavior : Behavior<TextEditor>
{
p... | mit | C# |
803648b1d631523ec1464f27633d342f0a837ee2 | fix mvc template | thepirat000/Audit.NET,thepirat000/Audit.NET,thepirat000/Audit.NET | templates/MVC/content/Audit.Mvc.Template/AuditStartup.cs | templates/MVC/content/Audit.Mvc.Template/AuditStartup.cs | using Audit.Core;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using Audit.Mvc;
namespace Audit.Mvc.Template
{
public static class AuditStartup
{
private const string CorrelationIdField = "Correlati... | using Audit.Core;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
namespace Audit.Mvc.Template
{
public static class AuditStartup
{
private const string CorrelationIdField = "CorrelationId";
/... | mit | C# |
620f55106399ad96f62517659d35a68fa27f8203 | Update version number. | Damnae/storybrew | editor/Properties/AssemblyInfo.cs | editor/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("storybrew editor")]
[assembly: AssemblyDe... | 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("storybrew editor")]
[assembly: AssemblyDe... | mit | C# |
a457b3d8484f3bbcceef453e29c89beb861eec44 | Fix bug: "Copy" button don't show in TextView during saving | AceSkiffer/SharpGraphEditor | src/SharpGraphEditor/ViewModels/TextViewerViewModel.cs | src/SharpGraphEditor/ViewModels/TextViewerViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Caliburn.Micro;
namespace SharpGraphEditor.ViewModels
{
public class TextViewerViewModel : PropertyChangedBase
{
private string _text;
private bool _canCopy;
private bool _... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using Caliburn.Micro;
namespace SharpGraphEditor.ViewModels
{
public class TextViewerViewModel : PropertyChangedBase
{
private string _text;
private bool _canCopy;
private bool _... | apache-2.0 | C# |
ff24a93335a9bd297a9b1b41221d7d83a54cd3f0 | 修改超时时间 捕捉超时异常 | IndieSociety/primer | Sample/SimpleClient/Main.cs | Sample/SimpleClient/Main.cs | using System;
namespace Primer
{
public class SimpleClient
{
static Session s;
public static void Load()
{
Console.WriteLine("load");
var task = Session<UTF8StringRequest>.Connect(new Session.Settings("localhost", 12306), 3000);
try
{
task.Wait();
}
catch (Exception ... | using System;
namespace Primer
{
public class SimpleClient
{
static Session s;
public static void Load()
{
Console.WriteLine("load");
var task = Session<UTF8StringRequest>.Connect(new Session.Settings("localhost", 12306), 0);
task.Wait();
s = task.Result;
UTF8StringRequest re... | mit | C# |
9d583a809a16b31cb1041e6a41ec4911e3114512 | change port to 3002 | MCeddy/IoT-core | IoT-Core/Program.cs | IoT-Core/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
namespace IoT_Core
{
public class Program
{
public static void Main(string[] args)
{
var host = ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
namespace IoT_Core
{
public class Program
{
public static void Main(string[] args)
{
var host = ... | mit | C# |
22dfb8166b285feb5c808a7e3a2346e67dd96e0c | indent away | tugberkugurlu/BonVoyage,tugberkugurlu/BonVoyage | samples/Playground/Program.cs | samples/Playground/Program.cs | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using BonVoyage;
using BonVoyage.Models;
namespace Playground
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("ClientId:");
var clientId = Cons... | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using BonVoyage;
using BonVoyage.Models;
namespace Playground
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("ClientId:");
var clientId = Cons... | mit | C# |
647e2c297cb91288df121bf4577a792537ce4012 | Fix iOS app entry for raw keyboard input | EVAST9919/osu,ZLima12/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,johnneijzen/osu,smoogipoo/osu,ppy/osu,ppy/osu,peppy/osu,2yangk23/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,ZLima12/osu,smoogipooo/osu,EVAST9919/osu,UselessToucan/osu,johnneijzen/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu... | osu.iOS/Application.cs | osu.iOS/Application.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using UIKit;
namespace osu.iOS
{
public class Application
{
public static void Main(string[] args)
{
UIApplication.Main(args, "GameU... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using UIKit;
namespace osu.iOS
{
public class Application
{
public static void Main(string[] args)
{
UIApplication.Main(args, null, ... | mit | C# |
b6a0db1c7180a3e176e7bff8faf44c1be645affb | Update SetTrueTypeFontsFolder.cs | asposewords/Aspose_Words_NET,asposewords/Aspose_Words_NET,aspose-words/Aspose.Words-for-.NET,asposewords/Aspose_Words_NET,aspose-words/Aspose.Words-for-.NET,aspose-words/Aspose.Words-for-.NET,asposewords/Aspose_Words_NET,aspose-words/Aspose.Words-for-.NET | Examples/CSharp/Rendering-Printing/SetTrueTypeFontsFolder.cs | Examples/CSharp/Rendering-Printing/SetTrueTypeFontsFolder.cs | using System;
using System.IO;
using System.Reflection;
using Aspose.Words.Fonts;
using Aspose.Words;
using Aspose.Words.Saving;
namespace Aspose.Words.Examples.CSharp.Rendering_and_Printing
{
class SetTrueTypeFontsFolder
{
public static void Run()
{
// ExStart:SetTrueTypeFontsFolde... | using System;
using System.IO;
using System.Reflection;
using Aspose.Words.Fonts;
using Aspose.Words;
using Aspose.Words.Saving;
namespace Aspose.Words.Examples.CSharp.Rendering_and_Printing
{
class SetTrueTypeFontsFolder
{
public static void Run()
{
// ExStart:SetTrueTypeFontsFolde... | mit | C# |
c30f91aed75f56b7ea3bc4e6b2667fd0129b06c9 | add enum test | dimaaan/NOpt | NOpt.Test/EnumTest.cs | NOpt.Test/EnumTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace NOpt.Test
{
// TODO test with flags and integers
public class EnumTest
{
public class ValueEnumTest
{
public class Options
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace NOpt.Test
{
// TODO test with flags and integers
public class EnumTest
{
public class ValueEnumTest
{
public class Options
{
... | mit | C# |
cc550faef91c77c668cd619a5b475c94002c7b63 | Clarify HelpCommand description | appharbor/appharbor-cli | src/AppHarbor/Commands/HelpCommand.cs | src/AppHarbor/Commands/HelpCommand.cs | using System;
using System.Collections.Generic;
namespace AppHarbor.Commands
{
[CommandHelp("Display help summary")]
public class HelpCommand : ICommand
{
private readonly IEnumerable<Type> _commandTypes;
public HelpCommand(IEnumerable<Type> commandTypes)
{
_commandTypes = commandTypes;
}
public voi... | using System;
using System.Collections.Generic;
namespace AppHarbor.Commands
{
[CommandHelp("Display help summary or help for a specific command", "[COMMAND]")]
public class HelpCommand : ICommand
{
private readonly IEnumerable<Type> _commandTypes;
public HelpCommand(IEnumerable<Type> commandTypes)
{
_co... | mit | C# |
6edf630dd62f5ed879e6f8e6cb695c82b618d755 | Update comment | Kentico/delivery-sdk-net,Kentico/Deliver-.NET-SDK | Kentico.Kontent.Delivery.Abstractions/IDeliveryHttpClient.cs | Kentico.Kontent.Delivery.Abstractions/IDeliveryHttpClient.cs | using System.Net.Http;
using System.Threading.Tasks;
namespace Kentico.Kontent.Delivery.Abstractions
{
/// <summary>
/// Represents a requests operations against Kentico Kontent Delivery API.
/// </summary>
public interface IDeliveryHttpClient
{
/// <summary>
/// Returns a response... | using System.Net.Http;
using System.Threading.Tasks;
namespace Kentico.Kontent.Delivery.Abstractions
{
/// <summary>
/// Represents a requests operations against Kentico Kontent Delivery API.
/// </summary>
public interface IDeliveryHttpClient
{
/// <summary>
/// Returns a response... | mit | C# |
df09518da5c4cf402cdf66cdf3c9e5aa7e3aa727 | Bump dev version to 0.9 | hifi/monodevelop-justenoughvi,fadookie/monodevelop-justenoughvi | JustEnoughVi/Properties/AddinInfo.cs | JustEnoughVi/Properties/AddinInfo.cs | using Mono.Addins;
using Mono.Addins.Description;
[assembly: Addin(
"JustEnoughVi",
Namespace = "JustEnoughVi",
Version = "0.9"
)]
[assembly: AddinName("Just Enough Vi")]
[assembly: AddinCategory("IDE extensions")]
[assembly: AddinDescription("Simplified Vi/Vim mode for MonoDevelop/Xamarin Studio.")]
[as... | using Mono.Addins;
using Mono.Addins.Description;
[assembly: Addin(
"JustEnoughVi",
Namespace = "JustEnoughVi",
Version = "0.8"
)]
[assembly: AddinName("Just Enough Vi")]
[assembly: AddinCategory("IDE extensions")]
[assembly: AddinDescription("Simplified Vi/Vim mode for MonoDevelop/Xamarin Studio.")]
[as... | mit | C# |
154104b5695c1fc975600aefcc2325e6e5f0958e | Use dash as separator | dlidstrom/Snittlistan,dlidstrom/Snittlistan,dlidstrom/Snittlistan | SnittListan/Installers/RavenInstaller.cs | SnittListan/Installers/RavenInstaller.cs | using System;
using Castle.MicroKernel;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Raven.Client;
using Raven.Client.Embedded;
namespace SnittListan.Installers
{
public class RavenInstaller : IWindsorInstaller
{
public void Inst... | using System;
using Castle.MicroKernel;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Raven.Client;
using Raven.Client.Embedded;
namespace SnittListan.Installers
{
public class RavenInstaller : IWindsorInstaller
{
public void Inst... | mit | C# |
73ff772344e5e99ca5b7d5ebd6fffdcbbe06025a | Add follow link | bjornhol/furry-bear,bjornhol/furry-bear,bjornhol/furry-bear | Views/Shared/_Layout.cshtml | Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title - My ASP.NET MVC Application</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
@Styles.Render("~/Content/c... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title - My ASP.NET MVC Application</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
@Styles.Render("~/Content/c... | mit | C# |
6dc1a89cbd9704cd3f56801ded61dbcb3802f7aa | upgrade version to 1.4.3 | Aaron-Liu/equeue,geffzhang/equeue,tangxuehua/equeue,tangxuehua/equeue,tangxuehua/equeue,Aaron-Liu/equeue,geffzhang/equeue | src/EQueue/Properties/AssemblyInfo.cs | src/EQueue/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | mit | C# |
2736a78c2fecb12a1606b584f34cfb0fdf4fb6e4 | Comment for LoadHandlers | benjanderson/WooCode.Slack,WooCode/WooCode.Slack | WooCode.Slack.WooBot/Bot.cs | WooCode.Slack.WooBot/Bot.cs | using System;
using System.Linq;
using Nancy;
using Nancy.TinyIoc;
using WooCode.Slack.WebHooks;
using WooCode.Slack.WooBot.Handlers;
namespace WooCode.Slack.WooBot
{
public class Bot : NancyModule
{
/// <summary>
/// You have to call this when you start your server to load all handlers.
... | using System;
using System.Linq;
using Nancy;
using Nancy.TinyIoc;
using WooCode.Slack.WebHooks;
using WooCode.Slack.WooBot.Handlers;
namespace WooCode.Slack.WooBot
{
public class Bot : NancyModule
{
public static void LoadHandlers()
{
var type = typeof(IHookHandler);
v... | mit | C# |
eeb2f7eb2e927ed6e19d0de66eba0c9c795f334c | move scripts | ucdavis/Namster,ucdavis/Namster,ucdavis/Namster | src/Namster/Views/Search/Index.cshtml | src/Namster/Views/Search/Index.cshtml | @{
ViewData["Title"] = "React Test Page";
}
<div id="search"></div>
@section scripts
{
<environment names="Development">
<script src="https://fb.me/react-0.14.3.js"></script>
<script src="https://fb.me/react-dom-0.14.3.js"></script>
</environment>
<environment names="Staging,Productio... | @{
ViewData["Title"] = "React Test Page";
}
<div id="search"></div>
<environment names="Development">
<script src="https://fb.me/react-0.14.3.js"></script>
<script src="https://fb.me/react-dom-0.14.3.js"></script>
</environment>
<environment names="Staging,Production">
<script src="https://fb.me/reac... | mit | C# |
4cb01d50dc83d7ea1b391c6eaa4d732a7f342159 | add array type kind | Kukkimonsuta/Odachi | src/Odachi.CodeModel/TypeReference.cs | src/Odachi.CodeModel/TypeReference.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Odachi.CodeModel.Mapping;
using System.Reflection;
namespace Odachi.CodeModel
{
public enum TypeKind
{
Array,
Enum,
Primitive,
Interface,
Struct,
Class,
}
public static class TypeK... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Odachi.CodeModel.Mapping;
using System.Reflection;
namespace Odachi.CodeModel
{
public enum TypeKind
{
Primitive,
Interface,
Enum,
Struct,
Class,
}
public static class TypeKindExtens... | apache-2.0 | C# |
b7ef424485baa9467289770434219c4fbd2324da | bump version | Fody/Validar | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Validar")]
[assembly: AssemblyProduct("Validar")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("0.6.0.0")]
[assembly: AssemblyFileVersion("0.6.0.0")]
| using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Validar")]
[assembly: AssemblyProduct("Validar")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("0.5.0.0")]
[assembly: AssemblyFileVersion("0.5.0.0")]
| mit | C# |
de1e11a71660eae39a531b6b30811e67a42a7fca | use native logging in singleton-initializations | Notulp/Pluton,Notulp/Pluton | Pluton/Singleton.cs | Pluton/Singleton.cs | using System;
namespace Pluton
{
public abstract class Singleton<T> : CountedInstance where T : ISingleton
{
protected static T Instance;
public static T GetInstance()
{
return Singleton<T>.Instance;
}
static Singleton()
{
Singleton<T>.... | using System;
namespace Pluton
{
public abstract class Singleton<T> : CountedInstance where T : ISingleton
{
protected static T Instance;
public static T GetInstance()
{
return Singleton<T>.Instance;
}
static Singleton()
{
Singleton<T>.... | mit | C# |
a5ad2acb39f9593b32eb078baf19ae923b6398ec | Fix broken group analysis. | jherby2k/AudioWorks | AudioWorks/AudioWorks.Commands/MeasureAudioFileCommand.cs | AudioWorks/AudioWorks.Commands/MeasureAudioFileCommand.cs | using AudioWorks.Common;
using JetBrains.Annotations;
using System.Collections.Generic;
using System.Management.Automation;
using System.Threading;
using System.Threading.Tasks;
namespace AudioWorks.Commands
{
/// <summary>
/// <para type="synopsis">Analyzes an audio file.</para>
/// <para type="descripti... | using AudioWorks.Common;
using JetBrains.Annotations;
using System.Collections.Generic;
using System.Management.Automation;
using System.Threading;
namespace AudioWorks.Commands
{
/// <summary>
/// <para type="synopsis">Analyzes an audio file.</para>
/// <para type="description">The Measure-AudioFile cmdl... | agpl-3.0 | C# |
f269623214f9acacced05f82118e31251ad14bf9 | build fix | vecta/HackManchester,vecta/HackManchester | Kitbag.HackManchester/Kitbag.Database/PersonRepository.cs | Kitbag.HackManchester/Kitbag.Database/PersonRepository.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Kitbag.Domain;
namespace Kitbag.Database
{
public class PersonRepository : Repository<Person>
{
public PersonRepository(CwonData dbContext) : base(dbContext) { }
//public IEnumerable<Person> GetByGroup(int gro... | using System;
using System.Collections.Generic;
using System.Linq;
using Kitbag.Domain;
namespace Kitbag.Database
{
public class PersonRepository : Repository<Person>
{
public PersonRepository(CwonData dbContext) : base(dbContext) { }
public IEnumerable<Person> GetByGroup(int group... | apache-2.0 | C# |
e05f392d75ff9e7c76ed67b8b8fd07c0fc422f2d | Normalize line endings | rafd123/PowerBridge | src/PowerBridge/Internal/IPowerShellHostOutput.cs | src/PowerBridge/Internal/IPowerShellHostOutput.cs | using System.Management.Automation;
using Microsoft.Build.Framework;
namespace PowerBridge.Internal
{
internal interface IPowerShellHostOutput
{
void WriteDebugLine(string message);
void WriteVerboseLine(string message);
void Write(string message);
void WriteLin... | using System.Management.Automation;
using Microsoft.Build.Framework;
namespace PowerBridge.Internal
{
internal interface IPowerShellHostOutput
{
void WriteDebugLine(string message);
void WriteVerboseLine(string message);
void Write(string message);
void WriteLine(string val... | mit | C# |
3e3b4d8af5fd1302a77add38f262c3c74fb303f7 | Return empty list if HttpContext.Current is null | MindscapeHQ/raygun4net,MindscapeHQ/raygun4net,MindscapeHQ/raygun4net | Mindscape.Raygun4Net/Breadcrumbs/HttpBreadcrumbStorage.cs | Mindscape.Raygun4Net/Breadcrumbs/HttpBreadcrumbStorage.cs | using System.Collections;
using System.Collections.Generic;
using System.Web;
namespace Mindscape.Raygun4Net.Breadcrumbs
{
internal class HttpBreadcrumbStorage : IRaygunBreadcrumbStorage
{
private const string ItemsKey = "Raygun.Breadcrumbs.Storage";
public IEnumerator<RaygunBreadcrumb> GetEnumerator()
... | using System.Collections;
using System.Collections.Generic;
using System.Web;
namespace Mindscape.Raygun4Net.Breadcrumbs
{
internal class HttpBreadcrumbStorage : IRaygunBreadcrumbStorage
{
private const string ItemsKey = "Raygun.Breadcrumbs.Storage";
public IEnumerator<RaygunBreadcrumb> GetEnumerator()
... | mit | C# |
a4d11ef8279f8f45f589e6cd05ad238ed0a26c95 | test commit | alb3ric/NugetReferencesExplorer | NugetReferencesExplorer/ViewModel/ApplicationViewModel.cs | NugetReferencesExplorer/ViewModel/ApplicationViewModel.cs | using GalaSoft.MvvmLight;
using NugetReferencesExplorer.Model.Domain;
using NugetReferencesExplorer.Model.Repository;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NugetReferencesExplorer.ViewModel
{
... | using GalaSoft.MvvmLight;
using NugetReferencesExplorer.Model.Domain;
using NugetReferencesExplorer.Model.Repository;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NugetReferencesExplorer.ViewModel
{
... | mit | C# |
c27c1baa2e9842879fc2edd647e00ee3162c8228 | Make header consistent across samples | reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET | src/React.Sample.Mvc4/Views/Home/Index.cshtml | src/React.Sample.Mvc4/Views/Home/Index.cshtml | @using System.Web.Optimization
@model React.Sample.Mvc4.ViewModels.IndexViewModel
<!DOCTYPE html>
<html>
<head>
<title>ReactJS.NET Sample</title>
<link rel="stylesheet" href="~/Content/Sample.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" />... | @using System.Web.Optimization
@model React.Sample.Mvc4.ViewModels.IndexViewModel
<!DOCTYPE html>
<html>
<head>
<title>ReactJS.NET Sample</title>
<link rel="stylesheet" href="~/Content/Sample.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" />... | mit | C# |
47d5efac3017a7dccdeee646ab168a2f75958242 | Prepare release 4.5.1 - increase CslaGenFork version. Work Item #1907 | CslaGenFork/CslaGenFork,CslaGenFork/CslaGenFork,CslaGenFork/CslaGenFork,CslaGenFork/CslaGenFork | trunk/Solutions/CslaGenFork/Properties/AssemblyInfo.cs | trunk/Solutions/CslaGenFork/Properties/AssemblyInfo.cs | using System;
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("Csla Generato... | using System;
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("Csla Generato... | mit | C# |
e444c823d0e3df30743db5ac112a1e755b61d8b8 | Test of package 2 | hravnx/CliHelpers,hravnx/CliHelpers | build.cake | build.cake | #tool "nuget:?package=GitVersion.CommandLine"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var nuget_push_key = EnvironmentVariable("NUGET_API_KEY");
var packageVersion = EnvironmentVariable("APPVEYOR_BUILD_VERSION");
var outputDir = "./artifacts/";
var solutio... | #tool "nuget:?package=GitVersion.CommandLine"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var nuget_push_key = EnvironmentVariable("NUGET_API_KEY");
var packageVersion = EnvironmentVariable("APPVEYOR_BUILD_VERSION");
var outputDir = "./artifacts/";
var solutio... | mit | C# |
ead2e388823dc8afb8272a972e21e2b1b478030c | Build the projects before testing | peppy/osu,smoogipooo/osu,ppy/osu,EVAST9919/osu,peppy/osu-new,ppy/osu,NeoAdonis/osu,UselessToucan/osu,ZLima12/osu,DrabWeb/osu,DrabWeb/osu,smoogipoo/osu,naoey/osu,DrabWeb/osu,NeoAdonis/osu,EVAST9919/osu,naoey/osu,UselessToucan/osu,naoey/osu,peppy/osu,johnneijzen/osu,NeoAdonis/osu,smoogipoo/osu,johnneijzen/osu,smoogipoo/o... | build.cake | build.cake | #addin "nuget:?package=CodeFileSanity&version=0.0.21"
#addin "nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2018.2.2"
#tool "nuget:?package=NVika.MSBuild&version=1.0.1"
///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
///////////////////////////////////////////... | #addin "nuget:?package=CodeFileSanity&version=0.0.21"
#addin "nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2018.2.2"
#tool "nuget:?package=NVika.MSBuild&version=1.0.1"
///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
///////////////////////////////////////////... | mit | C# |
3418b04cf481ae5ec032f875800e44abcbb1debc | update comments | arnovb-github/CmcLibNet | CmcLibNet.Services/UI/IFilePicker.cs | CmcLibNet.Services/UI/IFilePicker.cs | using System.Runtime.InteropServices;
namespace Vovin.CmcLibNet.Services.UI
{
/// <summary>
/// Interface for FilePicker
/// </summary>
[ComVisible(true)]
[Guid("EB19C890-5EED-4388-80E1-2F0DDA490902")]
public interface IFilePicker
{
/// <summary>
/// Gets or sets the initia... | using System.Runtime.InteropServices;
namespace Vovin.CmcLibNet.Services.UI
{
/// <summary>
/// Interface for FilePicker
/// </summary>
[ComVisible(true)]
[Guid("EB19C890-5EED-4388-80E1-2F0DDA490902")]
public interface IFilePicker
{
/// <summary>
/// Gets or sets the initia... | mit | C# |
5287c833ef93526356df8d55ec83081b253ee879 | Update Program.cs | relianz/s2i-aspnet-example,relianz/s2i-aspnet-example,relianz/s2i-aspnet-example | app/Program.cs | app/Program.cs | // using System;
// using System.Collections.Generic;
// using System.Linq;
// using System.Threading.Tasks;
using System.IO; // Directory.
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace WebApplication
{
public class Program
{
public ... | // using System;
// using System.Collections.Generic;
// using System.IO;
// using System.Linq;
// using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace WebApplication
{
public class Program
{
public static void Main(string[] args)
... | apache-2.0 | C# |
64f32a7e8fa05ed88f83f74eaa03afd5e1f63ca0 | set the alternate email provider if no thunderbird or xdg-email | tombogle/libpalaso,mccarthyrb/libpalaso,andrew-polk/libpalaso,darcywong00/libpalaso,ddaspit/libpalaso,glasseyes/libpalaso,sillsdev/libpalaso,marksvc/libpalaso,JohnThomson/libpalaso,hatton/libpalaso,JohnThomson/libpalaso,mccarthyrb/libpalaso,tombogle/libpalaso,darcywong00/libpalaso,chrisvire/libpalaso,gmartin7/libpalaso... | Palaso/Email/EmailProviderFactory.cs | Palaso/Email/EmailProviderFactory.cs | using System;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace Palaso.Email
{
public class EmailProviderFactory
{
public static IEmailProvider PreferredEmailProvider()
{
if (Environment.OSVersion.Platform == PlatformID.Unix)
{
if (ThunderbirdIsDefault())
{
Console.WriteLine... | using System;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace Palaso.Email
{
public class EmailProviderFactory
{
public static IEmailProvider PreferredEmailProvider()
{
if (Environment.OSVersion.Platform == PlatformID.Unix)
{
if (ThunderbirdIsDefault())
{
Console.WriteLine... | mit | C# |
7effcd611fb7395243f174b0b99598476555c8ca | Update IConfigurableRasterFactory.cs | LANDIS-II-Foundation/Landis-Spatial-Modeling-Library | src/api/IConfigurableRasterFactory.cs | src/api/IConfigurableRasterFactory.cs | // Contributors:
// James Domingo, Green Code LLC
namespace Landis.SpatialModeling
{
/// <summary>
/// A raster factory whose configuration can be changed.
/// </summary>
public interface IConfigurableRasterFactory : IRasterFactory
{
/// <summary>
/// Get information ab... | // Copyright 2011-2012 Green Code LLC
// All rights reserved.
//
// The copyright holders license this file under the New (3-clause) BSD
// License (the "License"). You may not use this file except in
// compliance with the License. A copy of the License is available at
//
// http://www.opensource.org/licens... | apache-2.0 | C# |
9a9e54ddb04624570e5bc175c10148d88e81e4b0 | update import | shinji-yoshida/SharpPhase | src/ObservablePhasedObject.cs | src/ObservablePhasedObject.cs | using System;
using UniRx;
namespace SharpPhase {
public abstract class ObservablePhasedObject<TSelf, TPhase> : PhasedObject<TSelf, TPhase>
where TSelf : IPhasedObject
where TPhase : Phase<TSelf>
{
Subject<PhaseEvent<TPhase>> phaseEventSubject = new Subject<PhaseEvent<TPhase>>();
public ObservablePhasedO... | using UniRx;
namespace SharpPhase {
public abstract class ObservablePhasedObject<TSelf, TPhase> : PhasedObject<TSelf, TPhase>
where TSelf : IPhasedObject
where TPhase : Phase<TSelf>
{
Subject<PhaseEvent<TPhase>> phaseEventSubject = new Subject<PhaseEvent<TPhase>>();
public ObservablePhasedObject (TPhase ... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.