commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
0140a714de533083de1972e65bbb7f615d30e57e | VersionOne.Bugzilla.BugzillaAPI.Testss/BugTests.cs | VersionOne.Bugzilla.BugzillaAPI.Testss/BugTests.cs | using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace VersionOne.Bugzilla.BugzillaAPI.Testss
{
[TestClass()]
public class given_a_Bug
{
private IBug _bug;
private string _expectedReassignToPayload;
[TestInitialize()]
public void Set... | using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace VersionOne.Bugzilla.BugzillaAPI.Testss
{
[TestClass()]
public class given_a_Bug
{
private IBug _bug;
private string _expectedReassignToPayload;
[TestInitialize()]
public void SetContext()
{
_... | Remove no longer needed usings | S-51801: Remove no longer needed usings
| C# | bsd-3-clause | versionone/VersionOne.Integration.Bugzilla,versionone/VersionOne.Integration.Bugzilla,versionone/VersionOne.Integration.Bugzilla |
cfc31fdcec61207af14c3b46130dcf6a7dfc22d0 | src/Glimpse.Common/Internal/Messaging/DefaultMessageTypeProcessor.cs | src/Glimpse.Common/Internal/Messaging/DefaultMessageTypeProcessor.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Glimpse.Extensions;
namespace Glimpse.Internal
{
public class DefaultMessageTypeProcessor : IMessageTypeProcessor
{
private readonly static Type[] _exclusions = { typeof(object) };
public virtual ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Glimpse.Extensions;
namespace Glimpse.Internal
{
public class DefaultMessageTypeProcessor : IMessageTypeProcessor
{
private readonly static Type[] _exclusions = { typeof(object) };
public virtual ... | Drop "-message" from all message names | Drop "-message" from all message names
| C# | mit | mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetd... |
aff981020ece51a678a8589891cfa2916543d538 | src/SFA.DAS.EmployerUsers.Web/Views/Login/AuthorizeResponse.cshtml | src/SFA.DAS.EmployerUsers.Web/Views/Login/AuthorizeResponse.cshtml | @model IdentityServer3.Core.ViewModels.AuthorizeResponseViewModel
@{
ViewBag.PageID = "authorize-response";
ViewBag.Title = "Please wait";
ViewBag.HideSigninLink = "true";
Layout = "~/Views/Shared/_Layout-NoBanner.cshtml";
}
<h1 class="heading-xlarge">You've logged in</h1>
<form id="mainFor... | @model IdentityServer3.Core.ViewModels.AuthorizeResponseViewModel
@{
ViewBag.PageID = "authorize-response";
ViewBag.Title = "Please wait";
ViewBag.HideSigninLink = "true";
Layout = "~/Views/Shared/_Layout-NoBanner.cshtml";
}
<h1 class="heading-xlarge">@ViewBag.Title</h1>
<form id="mainForm"... | Use the viewBag Title rather than the hard coded one. | Use the viewBag Title rather than the hard coded one.
| C# | mit | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers |
a8704d78f49810d7c2addf886cb2d49ae07cca6c | ThinMvvm.WindowsPhone.SampleApp/App.cs | ThinMvvm.WindowsPhone.SampleApp/App.cs | // Copyright (c) Solal Pirelli 2014
// See License.txt file for more details
using ThinMvvm.WindowsPhone.SampleApp.Resources;
using ThinMvvm.WindowsPhone.SampleApp.ViewModels;
namespace ThinMvvm.WindowsPhone.SampleApp
{
public sealed class App : AppBase
{
protected override string Language
{
... | // Copyright (c) Solal Pirelli 2014
// See License.txt file for more details
using ThinMvvm.WindowsPhone.SampleApp.Resources;
using ThinMvvm.WindowsPhone.SampleApp.ViewModels;
namespace ThinMvvm.WindowsPhone.SampleApp
{
public sealed class App : AppBase
{
private readonly IWindowsPhoneNavigationServi... | Fix the sample app following previous changes. | Fix the sample app following previous changes.
| C# | mit | SolalPirelli/ThinMvvm |
59bfb4148adf810ccb61acdceac42d10e104d2fb | src/Bakery/Security/RandomExtensions.cs | src/Bakery/Security/RandomExtensions.cs | namespace Bakery.Security
{
using System;
public static class RandomExtensions
{
public static Byte[] GetBytes(this IRandom random, Int32 count)
{
if (count <= 0)
throw new ArgumentOutOfRangeException(nameof(count));
var buffer = new Byte[count];
for (var i = 0; i < count; i++)
... | namespace Bakery.Security
{
using System;
public static class RandomExtensions
{
public static Byte[] GetBytes(this IRandom random, Int32 count)
{
if (count <= 0)
throw new ArgumentOutOfRangeException(nameof(count));
var buffer = new Byte[count];
for (var i = 0; i < count; i++)
... | Add extension method for IRandom to get an unsigned 64-bit integer. | Add extension method for IRandom to get an unsigned 64-bit integer.
| C# | mit | brendanjbaker/Bakery |
d33ee612e59400706d3cd623ae35a508bf13c810 | tests/Magick.NET.Tests/Shared/MagickImageTests/TheAddNoiseMethod.cs | tests/Magick.NET.Tests/Shared/MagickImageTests/TheAddNoiseMethod.cs | // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
//
// https://www.imagemagick.org/script/license.php
//
// Unless req... | // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
//
// https://www.imagemagick.org/script/license.php
//
// Unless req... | Revert changes to the test. | Revert changes to the test.
| C# | apache-2.0 | dlemstra/Magick.NET,dlemstra/Magick.NET |
584b31d5c8874d96bf8c538b859b254a6d37e21b | IntegrationEngine.Tests/Api/Controllers/CronTriggerControllerTest.cs | IntegrationEngine.Tests/Api/Controllers/CronTriggerControllerTest.cs | using IntegrationEngine.Api.Controllers;
using IntegrationEngine.Core.Storage;
using IntegrationEngine.Model;
using IntegrationEngine.Scheduler;
using Moq;
using NUnit.Framework;
namespace IntegrationEngine.Tests.Api.Controllers
{
public class CronTriggerControllerTest
{
[Test]
public void Sho... | using IntegrationEngine.Api.Controllers;
using IntegrationEngine.Core.Storage;
using IntegrationEngine.Model;
using IntegrationEngine.Scheduler;
using Moq;
using NUnit.Framework;
namespace IntegrationEngine.Tests.Api.Controllers
{
public class CronTriggerControllerTest
{
[Test]
public void Sho... | Add valid cron expression to test | Add valid cron expression to test
| C# | mit | InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET |
a6d664d629f516737ddc1024a61ff9cdfaed035b | Examples/TestHttpCompositionConsoleApp/Program.cs | Examples/TestHttpCompositionConsoleApp/Program.cs |
namespace TestHttpCompositionConsoleApp
{
using Serviceable.Objects.Remote.Composition.Host;
using Serviceable.Objects.Remote.Composition.Host.Commands;
class Program
{
static void Main(string[] args)
{
/*
* Principles:
*
* Testable
... |
namespace TestHttpCompositionConsoleApp
{
using Serviceable.Objects.Remote.Composition.Host;
using Serviceable.Objects.Remote.Composition.Host.Commands;
class Program
{
static void Main(string[] args)
{
/*
* Principles:
*
* Testable
... | Add some comments for the host process | Add some comments for the host process
| C# | mit | phaetto/serviceable-objects |
357f1aa1661ee6e8acbe0232687b4ee20107e063 | src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.Edit.cshtml | src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.Edit.cshtml | @using Orchard.Mvc.Html;
@{
Layout.Title = T("New Blog");
}
<div class="edit-item">
<div class="edit-item-primary">
@if (Model.Content != null) {
<div class="edit-item-content">
@Display(Model.Content)
</div>
}
</div>
<div class="edit-item-secondar... | @using Orchard.Mvc.Html;
<div class="edit-item">
<div class="edit-item-primary">
@if (Model.Content != null) {
<div class="edit-item-content">
@Display(Model.Content)
</div>
}
</div>
<div class="edit-item-secondary group">
@if (Model.Actions !=... | Fix incorrect title on edit page | Fix incorrect title on edit page
Fixes #7142 | C# | bsd-3-clause | Serlead/Orchard,Lombiq/Orchard,Serlead/Orchard,li0803/Orchard,rtpHarry/Orchard,aaronamm/Orchard,jersiovic/Orchard,aaronamm/Orchard,abhishekluv/Orchard,OrchardCMS/Orchard,Dolphinsimon/Orchard,tobydodds/folklife,Codinlab/Orchard,bedegaming-aleksej/Orchard,aaronamm/Orchard,jimasp/Orchard,jimasp/Orchard,abhishekluv/Orchard... |
1e6d29eac62406acbea55e4a222222a09c3d9f9c | SurveyMonkey/Helpers/RequestSettingsHelper.cs | SurveyMonkey/Helpers/RequestSettingsHelper.cs | using System;
using System.Reflection;
using SurveyMonkey.RequestSettings;
namespace SurveyMonkey.Helpers
{
internal class RequestSettingsHelper
{
internal static RequestData GetPopulatedProperties(object obj)
{
var output = new RequestData();
foreach (PropertyInfo prop... | using System;
using System.Reflection;
using SurveyMonkey.RequestSettings;
namespace SurveyMonkey.Helpers
{
internal class RequestSettingsHelper
{
internal static RequestData GetPopulatedProperties(object obj)
{
var output = new RequestData();
foreach (PropertyInfo prop... | Format dates properly for the api | Format dates properly for the api
| C# | mit | bcemmett/SurveyMonkeyApi-v3,davek17/SurveyMonkeyApi-v3 |
d46f8165a9eb6c7fe6f9f292ef04cd65be24e6e6 | src/Raven.Bundles.Contrib.IndexedAttachments/Properties/AssemblyInfo.cs | src/Raven.Bundles.Contrib.IndexedAttachments/Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Raven.Bundles.Contrib.IndexedAttachments")]
[assembly: AssemblyDescription("Plugin for RavenDB that extracts text from attachments so they can be indexed.")]
[assembly: AssemblyVersion("2.0.2.0")]
[assembly: AssemblyFileVersion("2.0.2.0")]
| using System.Reflection;
[assembly: AssemblyTitle("Raven.Bundles.Contrib.IndexedAttachments")]
[assembly: AssemblyDescription("Plugin for RavenDB that extracts text from attachments so they can be indexed.")]
[assembly: AssemblyVersion("2.0.3.0")]
[assembly: AssemblyFileVersion("2.0.3.0")]
| Set IndexedAttachments to version 2.0.3.0 | Set IndexedAttachments to version 2.0.3.0
| C# | mit | ravendb/ravendb.contrib |
6539c204aa30b79c8eecd11c1c069847c7a23e9e | src/Konsola/Metadata/ObjectMetadata.cs | src/Konsola/Metadata/ObjectMetadata.cs | using System;
using System.Collections.Generic;
namespace Konsola.Metadata
{
public class ObjectMetadata
{
public ObjectMetadata(
Type type,
IEnumerable<PropertyMetadata> properties,
IEnumerable<AttributeMetadata> attributes)
{
Type = type;
Properties = properties;
Attributes = attributes;
}... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Konsola.Metadata
{
public class ObjectMetadata
{
public ObjectMetadata(
Type type,
IEnumerable<PropertyMetadata> properties,
IEnumerable<AttributeMetadata> attributes)
{
Type = type;
Properties = properties;
Attribute... | Add helpers for finding attributes | Add helpers for finding attributes
| C# | mit | mrahhal/Konsola |
8541a994600580ecf9eb498c95d8bfacdde84d61 | bigquery/data-transfer/api/QuickStart/QuickStart.cs | bigquery/data-transfer/api/QuickStart/QuickStart.cs | /*
* Copyright (c) 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright (c) 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Use bigquerydatatransfer instead of bigquery_data_transfer in region tags | Use bigquerydatatransfer instead of bigquery_data_transfer in region tags
We are treating BigQuery Data Transfer Service as its own product in the samples tracker. | C# | apache-2.0 | jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples |
fe778f576de801ad1a69879393ae82c99610d733 | src/LiberisLabs.CompaniesHouse/CompaniesHouseCompanyProfileClient.cs | src/LiberisLabs.CompaniesHouse/CompaniesHouseCompanyProfileClient.cs | using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using LiberisLabs.CompaniesHouse.Response.CompanyProfile;
using LiberisLabs.CompaniesHouse.UriBuilders;
namespace LiberisLabs.CompaniesHouse
{
public class CompaniesHouseCompanyProfileClient : ICompaniesHouseCompanyProfileClient
{
... | using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using LiberisLabs.CompaniesHouse.Response.CompanyProfile;
using LiberisLabs.CompaniesHouse.UriBuilders;
namespace LiberisLabs.CompaniesHouse
{
public class CompaniesHouseCompanyProfileClient : ICompaniesHouseCompanyProfileClient
{
... | Raise exceptions on non-404 error codes | Raise exceptions on non-404 error codes
| C# | mit | kevbite/CompaniesHouse.NET,LiberisLabs/CompaniesHouse.NET |
a1b92810641ad47859919cd521e7922061639112 | BundlerTestSite/Startup.cs | BundlerTestSite/Startup.cs | using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;
using BundlerMiddleware;
[assembly: OwinStartup(typeof(BundlerTestSite.Startup))]
namespace BundlerTestSite
{
public class Startup
{
public static BundlerRouteTable MarkdownRoutes = new BundlerRouteTable();
public s... | using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;
using BundlerMiddleware;
[assembly: OwinStartup(typeof(BundlerTestSite.Startup))]
namespace BundlerTestSite
{
public class Startup
{
public static BundlerRouteTable MarkdownRoutes = new BundlerRouteTable();
public s... | Fix tabs/spaces in test site startup | Fix tabs/spaces in test site startup | C# | mit | msarchet/Bundler,msarchet/Bundler |
13d6a501ff247dfa84d67de912468c3585084794 | CorrugatedIron.Tests.Live/RiakDtTests.cs | CorrugatedIron.Tests.Live/RiakDtTests.cs | // Copyright (c) 2011 - OJ Reeves & Jeremiah Peschka
//
// This file is provided to you under the Apache License,
// Version 2.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unle... | // Copyright (c) 2011 - OJ Reeves & Jeremiah Peschka
//
// This file is provided to you under the Apache License,
// Version 2.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unle... | Test commit of new line endings | Test commit of new line endings
Former-commit-id: 26984ece764e524a7745bc91497effde699d4879 | C# | apache-2.0 | rob-somerville/riak-dotnet-client,basho/riak-dotnet-client,basho/riak-dotnet-client,rob-somerville/riak-dotnet-client |
a459f10eea1f72c6d17b750eda87bee6831cc3a5 | Mindscape.Raygun4Net/RaygunClientBase.cs | Mindscape.Raygun4Net/RaygunClientBase.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Mindscape.Raygun4Net
{
public class RaygunClientBase
{
protected internal const string SentKey = "AlreadySentByRaygun";
protected bool CanSend(Exception exception)
{
return exception == null || !exce... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Mindscape.Raygun4Net
{
public class RaygunClientBase
{
protected internal const string SentKey = "AlreadySentByRaygun";
protected bool CanSend(Exception exception)
{
return exception == null || excep... | Check that Data dictionary accepts string keys. | Check that Data dictionary accepts string keys.
| C# | mit | tdiehl/raygun4net,nelsonsar/raygun4net,ddunkin/raygun4net,MindscapeHQ/raygun4net,articulate/raygun4net,articulate/raygun4net,tdiehl/raygun4net,ddunkin/raygun4net,MindscapeHQ/raygun4net,nelsonsar/raygun4net,MindscapeHQ/raygun4net |
bdfeb55dec5614b535737fb22df80c59627973a4 | osu.Game.Tests/Visual/Multiplayer/TestSceneRoomStatus.cs | osu.Game.Tests/Visual/Multiplayer/TestSceneRoomStatus.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.Multiplayer;
using osu.Game.Online.Multiplayer.RoomStatuses;
using osu.Game.S... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.Multiplayer;
using osu.Game.Online.Multiplayer.RoomStatuses;
us... | Fix room status test scene not working | Fix room status test scene not working
| C# | mit | UselessToucan/osu,ppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,NeoAdonis/osu |
65d71b94424ab46a3fa307784a8637334d75f172 | osu.Game/Online/API/Requests/GetBeatmapRequest.cs | osu.Game/Online/API/Requests/GetBeatmapRequest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Beatmaps;
using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetBeatmapRequest : APIRequest<APIBeatm... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Beatmaps;
using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetBeatmapRequest : APIRequest<APIBeatm... | Fix beatmap lookups failing for beatmaps with no local path | Fix beatmap lookups failing for beatmaps with no local path
Turns out the underlying EscapeUriString doesn't like nulls | C# | mit | UselessToucan/osu,2yangk23/osu,smoogipoo/osu,peppy/osu,johnneijzen/osu,NeoAdonis/osu,EVAST9919/osu,UselessToucan/osu,EVAST9919/osu,ppy/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,2yangk23/osu,peppy/osu-new,johnneijzen/osu,ppy/osu,smoogipooo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu |
d4051d7d89e5fef4de5117d4708e39e4515377e1 | Test/AdventureWorksFunctionalModel/Helpers.cs | Test/AdventureWorksFunctionalModel/Helpers.cs | using System.Linq;
using NakedFunctions;
namespace AW
{
public static class Helpers
{
/// <summary>
/// Returns a random instance from the set of all instance of type T
/// </summary>
public static T Random<T>(IContext context) where T : class
{
//The O... | using System;
using System.Linq;
using NakedFunctions;
namespace AW
{
public static class Helpers
{
/// <summary>
/// Returns a random instance from the set of all instance of type T
/// </summary>
public static T Random<T>(IContext context) where T : class
{
... | Add temp dummy impl of IContext.WithDeleted and WithFunction | Add temp dummy impl of IContext.WithDeleted and WithFunction
| C# | apache-2.0 | NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework |
b06294083f4e62a5eb0d4a91b2d4867e2840aa38 | src/Arkivverket.Arkade.GUI/Util/ArkadeProcessingAreaLocationSetting.cs | src/Arkivverket.Arkade.GUI/Util/ArkadeProcessingAreaLocationSetting.cs | using System.IO;
using Arkivverket.Arkade.Core.Base;
using Arkivverket.Arkade.GUI.Properties;
namespace Arkivverket.Arkade.GUI.Util
{
public static class ArkadeProcessingAreaLocationSetting
{
public static string Get()
{
Settings.Default.Reload();
return Set... | using System.IO;
using Arkivverket.Arkade.Core.Base;
using Arkivverket.Arkade.GUI.Properties;
namespace Arkivverket.Arkade.GUI.Util
{
public static class ArkadeProcessingAreaLocationSetting
{
public static string Get()
{
Settings.Default.Reload();
return Set... | Make sure ProcessAreaLocationSetting is set on first start-up | Make sure ProcessAreaLocationSetting is set on first start-up
ARKADE-451 | C# | agpl-3.0 | arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5 |
5310388b0c3813ce214583980b77187fdd6a4b70 | MathSample/RandomWalkConsole/Program.cs | MathSample/RandomWalkConsole/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RandomWalkConsole
{
class Program
{
static void Main(string[] args)
{
}
}
}
| using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace RandomWalkConsole
{
class Program
{
static void Main(string[] args)
{
var unfinished = Enumerable.Range(0, 1000)
.Select(_ => Walk2())
... | Implement random walk for 2D | Implement random walk for 2D
| C# | mit | sakapon/Samples-2016,sakapon/Samples-2016 |
32fcb95d67710f9130a9fa1f43d3b1d5d50a6893 | Dashboard/App_Start/RouteConfig.cs | Dashboard/App_Start/RouteConfig.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace Dashboard
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace Dashboard
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.LowercaseUrls = true;
... | Switch to lower case URLs | Switch to lower case URLs
| C# | apache-2.0 | jaredpar/jenkins,jaredpar/jenkins,jaredpar/jenkins |
4d2f17c2220c4db0ddccddf266948b293933aaf2 | MonoGameUtils/Drawing/Utilities.cs | MonoGameUtils/Drawing/Utilities.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGameUtils.Drawing
{
/// <summary>
/// Various useful utility methods that don't obviously go elsewhere.
/... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGameUtils.Drawing
{
/// <summary>
/// Various useful utility methods that don't obviously go elsewhere.
/... | Make public a method which was accidentally committed as private. | Make public a method which was accidentally committed as private.
| C# | mit | dneelyep/MonoGameUtils |
b31faabff41bb98c8d208d01f2010657edf73e3b | Modules/AppBrix.Events.Schedule/Impl/PriorityQueueItem.cs | Modules/AppBrix.Events.Schedule/Impl/PriorityQueueItem.cs | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using System;
using System.Linq;
namespace AppBrix.Events.Schedule.Impl
{
internal abstract class PriorityQueueItem
{
#region Construction
... | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using System;
using System.Linq;
namespace AppBrix.Events.Schedule.Impl
{
internal abstract class PriorityQueueItem
{
#region Properties
... | Remove unnecessary reference to IScheduledEvent | Remove unnecessary reference to IScheduledEvent
| C# | mit | MarinAtanasov/AppBrix,MarinAtanasov/AppBrix.NetCore |
6908fb27ba3521937837bc0bf32769561f018d8e | RightpointLabs.Pourcast.Web/Controllers/HomeController.cs | RightpointLabs.Pourcast.Web/Controllers/HomeController.cs | using System.Web.Mvc;
namespace RightpointLabs.Pourcast.Web.Controllers
{
using RightpointLabs.Pourcast.Application.Orchestrators.Abstract;
public class HomeController : Controller
{
private readonly ITapOrchestrator _tapOrchestrator;
private readonly IIdentityOrchestrator _identityOrche... | using System.Web.Mvc;
namespace RightpointLabs.Pourcast.Web.Controllers
{
using RightpointLabs.Pourcast.Application.Orchestrators.Abstract;
public class HomeController : Controller
{
private readonly ITapOrchestrator _tapOrchestrator;
private readonly IIdentityOrchestrator _identityOrche... | Kill auto user insertion in non-debug | Kill auto user insertion in non-debug
| C# | mit | RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast |
ab84a734e672c2e3400b815b3284b0bef067fe30 | Verdeler/MultipleConcurrencyLimiter.cs | Verdeler/MultipleConcurrencyLimiter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Verdeler
{
internal class MultipleConcurrencyLimiter<TSubject>
{
private readonly List<ConcurrencyLimiter<TSubject>> _concurrencyLimiters =
new List<ConcurrencyLimiter<TSubject>>();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Verdeler
{
internal class MultipleConcurrencyLimiter<TSubject>
{
private readonly List<ConcurrencyLimiter<TSubject>> _concurrencyLimiters =
new List<ConcurrencyLimiter<TSubject>>();
... | Update comments & variable name | Update comments & variable name
| C# | mit | justinjstark/Verdeler,justinjstark/Delivered |
077d87ffbbbaa90f9f71f2d6e24ba057dc8ac3a1 | src/Proto.Remote/RemotingSystem.cs | src/Proto.Remote/RemotingSystem.cs | // -----------------------------------------------------------------------
// <copyright file="RemotingSystem.cs" company="Asynkron HB">
// Copyright (C) 2015-2017 Asynkron HB All rights reserved
// </copyright>
// -----------------------------------------------------------------------
using System;
usi... | // -----------------------------------------------------------------------
// <copyright file="RemotingSystem.cs" company="Asynkron HB">
// Copyright (C) 2015-2017 Asynkron HB All rights reserved
// </copyright>
// -----------------------------------------------------------------------
using System;
usi... | Support port 0 in remoting | Support port 0 in remoting
| C# | apache-2.0 | raskolnikoov/protoactor-dotnet,Bee-Htcpcp/protoactor-dotnet,AsynkronIT/protoactor-dotnet,tomliversidge/protoactor-dotnet,tomliversidge/protoactor-dotnet,masteryee/protoactor-dotnet,cpx86/protoactor-dotnet,Bee-Htcpcp/protoactor-dotnet,raskolnikoov/protoactor-dotnet,masteryee/protoactor-dotnet,cpx86/protoactor-dotnet |
d89ad7f1acaaf2a12243ffefd8b523ea4c4163f3 | GreekNakamaTorrentUpload/WinClass/Helper/Helper.cs | GreekNakamaTorrentUpload/WinClass/Helper/Helper.cs | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GreekNakamaTorrentUpload.WinClass.Helper
{
static class Helper
{
static public void BrowseFiles(TextBox txt_... | using Newtonsoft.Json;
using System;
using System.IO;
using System.Windows.Forms;
namespace GreekNakamaTorrentUpload.WinClass.Helper
{
static class Helper
{
static public Exception LoadedError = new Exception("Error while load the file. Error code: 0x01.");
static public void BrowseFiles(Tex... | Update the Load & Save Methods with new. | Update the Load & Save Methods with new.
| C# | mit | HaruTzuki/Greek-Nakama-Upload-System,HaruTzuki/Greek-Nakama-Upload-System |
7d301a351c618f5ed107c6a9f5f1bc2836cdec8f | PalasoUIWindowsForms.Tests/WritingSystems/UITests.cs | PalasoUIWindowsForms.Tests/WritingSystems/UITests.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using NUnit.Framework;
using Palaso.TestUtilities;
using Palaso.UI.WindowsForms.WritingSystems;
using Palaso.WritingSystems;
namespace PalasoUIWindowsForms.Tes... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using NUnit.Framework;
using Palaso.TestUtilities;
using Palaso.UI.WindowsForms.WritingSystems;
using Palaso.UI.WindowsForms.WritingSystems.WSTree;
using Palaso... | Add voice option to ui test | Add voice option to ui test
| C# | mit | glasseyes/libpalaso,marksvc/libpalaso,tombogle/libpalaso,glasseyes/libpalaso,tombogle/libpalaso,gtryus/libpalaso,gmartin7/libpalaso,sillsdev/libpalaso,ermshiperete/libpalaso,mccarthyrb/libpalaso,marksvc/libpalaso,ddaspit/libpalaso,chrisvire/libpalaso,andrew-polk/libpalaso,chrisvire/libpalaso,sillsdev/libpalaso,JohnThom... |
0d39ef7c94484f266c7fbee1ae263247f72a0b1e | Framework/Lokad.Cqrs.Portable/Core.Inbox/Events/FailedToAccessStorage.cs | Framework/Lokad.Cqrs.Portable/Core.Inbox/Events/FailedToAccessStorage.cs | #region (c) 2010-2011 Lokad - CQRS for Windows Azure - New BSD License
// Copyright (c) Lokad 2010-2011, http://www.lokad.com
// This code is released as Open Source under the terms of the New BSD Licence
#endregion
using System;
namespace Lokad.Cqrs.Core.Inbox.Events
{
public sealed class FailedTo... | #region (c) 2010-2011 Lokad - CQRS for Windows Azure - New BSD License
// Copyright (c) Lokad 2010-2011, http://www.lokad.com
// This code is released as Open Source under the terms of the New BSD Licence
#endregion
using System;
namespace Lokad.Cqrs.Core.Inbox.Events
{
public sealed class FailedTo... | Access storage failure is readable. | Access storage failure is readable.
| C# | bsd-3-clause | modulexcite/lokad-cqrs |
b511126a775d068e1727c1b56615e52a80195a8d | src/Galaxy/WebEnd/Models/DeploymentListModel.cs | src/Galaxy/WebEnd/Models/DeploymentListModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Codestellation.Galaxy.Domain;
using Codestellation.Quarks.Collections;
using Nejdb.Bson;
namespace Codestellation.Galaxy.WebEnd.Models
{
public class DeploymentListModel
{
public readonly DeploymentModel[] Deployments;
p... | using System;
using System.Collections.Generic;
using System.Linq;
using Codestellation.Galaxy.Domain;
using Codestellation.Quarks.Collections;
using Nejdb.Bson;
namespace Codestellation.Galaxy.WebEnd.Models
{
public class DeploymentListModel
{
public readonly DeploymentModel[] Deployments;
p... | Sort deployment groups in deployment list | Sort deployment groups in deployment list
| C# | apache-2.0 | Codestellation/Galaxy,Codestellation/Galaxy,Codestellation/Galaxy |
3a30117b89160cd5ae287fa2c44650e03d12e5ac | api-example-csharp/Inventory.cs | api-example-csharp/Inventory.cs | using System.Collections.Generic;
namespace ApiTest.InventoryApi
{
public class UnitOfMeasure
{
public int id { get; set; }
public string code { get; set; }
}
public sealed class InventoryStatus
{
public static string Active = "active";
public stat... | using System.Collections.Generic;
namespace ApiTest.InventoryApi
{
public class UnitOfMeasure
{
public int id { get; set; }
public string code { get; set; }
}
public sealed class InventoryStatus
{
public static string Active = 0;
public static stri... | Update inventory type and status mappings | Update inventory type and status mappings
| C# | mit | spiresystems/spire-api-example-csharp |
ad6f418d98d0476892504501074d0ddb78e4c2c5 | Tests/IntegrationTests.Shared/NotificationTests.cs | Tests/IntegrationTests.Shared/NotificationTests.cs | using System;
using NUnit.Framework;
using Realms;
using System.Threading;
namespace IntegrationTests.Shared
{
[TestFixture]
public class NotificationTests
{
private string _databasePath;
private Realm _realm;
private void WriteOnDifferentThread(Action<Realm> action)
{
... | using System;
using NUnit.Framework;
using Realms;
using System.Threading;
using System.IO;
namespace IntegrationTests.Shared
{
[TestFixture]
public class NotificationTests
{
private string _databasePath;
private Realm _realm;
private void WriteOnDifferentThread(Action<Realm> acti... | Add the simples notification test | Add the simples notification test
| C# | apache-2.0 | Shaddix/realm-dotnet,Shaddix/realm-dotnet,realm/realm-dotnet,Shaddix/realm-dotnet,Shaddix/realm-dotnet,realm/realm-dotnet,realm/realm-dotnet |
f3824da64b2596b49fe317fe784b30d831c9cc19 | src/backend/SO115App.FakePersistenceJSon/GestioneIntervento/GetMaxCodice.cs | src/backend/SO115App.FakePersistenceJSon/GestioneIntervento/GetMaxCodice.cs | using Newtonsoft.Json;
using SO115App.API.Models.Classi.Soccorso;
using SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace SO115App.FakePersistenceJSon.GestioneIntervento
{
public class GetMa... | using Newtonsoft.Json;
using SO115App.API.Models.Classi.Soccorso;
using SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace SO115App.FakePersistenceJSon.GestioneIntervento
{
public class GetMa... | Fix - Corretto reperimento codice chiamata | Fix - Corretto reperimento codice chiamata
| C# | agpl-3.0 | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf |
356f37e4fd7cf32b2f596e685d0ce987ebb38bfc | Assetts/Classes/GGProduction/LetterStorm/Data/Collections/LessonBookTests.cs | Assetts/Classes/GGProduction/LetterStorm/Data/Collections/LessonBookTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using GGProductions.LetterStorm.Data.Collections;
namespace Test.GGProductions.LetterStorm.Data.Collections
{
[TestClass]
public class LessonBookTests
{
[TestMethod]
public void CreateSampleLessonTest()
{
... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using GGProductions.LetterStorm.Data.Collections;
namespace Test.GGProductions.LetterStorm.Data.Collections
{
[TestClass]
public class LessonBookTests
{
[TestMethod]
public void CreateSampleLessonTest()
{
... | Update text case for CreateSampleLesson | Update text case for CreateSampleLesson
| C# | mit | GGProductions/LetterStormUnitTests |
5603be33edd2521541c5cffffc0bb5d9f7b07be0 | DesktopWidgets/Widgets/Note/Settings.cs | DesktopWidgets/Widgets/Note/Settings.cs | using System.ComponentModel;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Widgets.Note
{
public class Settings : WidgetSettingsBase
{
public Settings()
{
Width = 160;
Height = 200;
}
[DisplayName("Saved Text")]
public string Text { get... | using System.ComponentModel;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Widgets.Note
{
public class Settings : WidgetSettingsBase
{
public Settings()
{
Width = 160;
Height = 132;
}
[DisplayName("Saved Text")]
public string Text { get... | Change "Note" widget default height | Change "Note" widget default height
| C# | apache-2.0 | danielchalmers/DesktopWidgets |
990ed090f91ac08d096b4f8d918732214d5bf81e | KataPotter/KataPotterPriceCalculator.cs | KataPotter/KataPotterPriceCalculator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KataPotter
{
public class KataPotterPriceCalculator
{
private static readonly double BOOK_UNIT_PRICE = 8;
public double Calculate(Dictionary<string, int> booksToBuy)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KataPotter
{
public class KataPotterPriceCalculator
{
private static readonly double BOOK_UNIT_PRICE = 8;
private static readonly double TWO_BOOKS_DISCOUNT_RATE = 0.95... | Add two book discount scenario | Add two book discount scenario
| C# | mit | kirkchen/KataPotter.CSharp |
f6f1a4359287e94961eb766e744653121a23c266 | src/backend/SO115App.SignalR/Sender/GestioneRuoli/NotificationDeleteRuolo.cs | src/backend/SO115App.SignalR/Sender/GestioneRuoli/NotificationDeleteRuolo.cs | using Microsoft.AspNetCore.SignalR;
using SO115App.Models.Servizi.CQRS.Commands.GestioneUtenti.DeleteRuoliUtente;
using SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.GetUtenti;
using SO115App.Models.Servizi.Infrastruttura.Notification.GestioneUtenti.GestioneRuoli;
using System.Threading.Tasks;
namespace SO115... | using Microsoft.AspNetCore.SignalR;
using SO115App.Models.Servizi.CQRS.Commands.GestioneUtenti.DeleteRuoliUtente;
using SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.GetUtenti;
using SO115App.Models.Servizi.Infrastruttura.Notification.GestioneUtenti.GestioneRuoli;
using System.Threading.Tasks;
namespace SO115... | Fix - Corretta notifica delete utente | Fix - Corretta notifica delete utente
| C# | agpl-3.0 | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf |
b6eb1456b9258bcd462a877b97f58f3687f8fc99 | Oogstplanner.Web/App_Start/IocConfig.cs | Oogstplanner.Web/App_Start/IocConfig.cs | using System.Web.Mvc;
using Autofac;
using Autofac.Integration.Mvc;
using Oogstplanner.Models;
using Oogstplanner.Data;
using Oogstplanner.Services;
namespace Oogstplanner.Web
{
public static class IocConfig
{
public static void RegisterDependencies()
{
var builder = new Containe... | using System.Web.Mvc;
using Autofac;
using Autofac.Integration.Mvc;
using Oogstplanner.Models;
using Oogstplanner.Data;
using Oogstplanner.Services;
namespace Oogstplanner.Web
{
public static class IocConfig
{
public static void RegisterDependencies()
{
var builder = new Containe... | Set lifetime scope of services to instance per request | Set lifetime scope of services to instance per request
| C# | mit | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner |
88bfa0dab7ba9794ea7b7803a123215c82473e57 | src/VisualStudio/Xaml/Impl/Implementation/LanguageClient/XamlLanguageServerClient.cs | src/VisualStudio/Xaml/Impl/Implementation/LanguageClient/XamlLanguageServerClient.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.ComponentModel.Composition;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.Co... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.ComponentModel.Composition;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.Co... | Remove unnecessary fields/methods for lsp push diagnostics | Remove unnecessary fields/methods for lsp push diagnostics
| C# | mit | mavasani/roslyn,gafter/roslyn,ErikSchierboom/roslyn,sharwell/roslyn,CyrusNajmabadi/roslyn,sharwell/roslyn,KevinRansom/roslyn,wvdd007/roslyn,AmadeusW/roslyn,ErikSchierboom/roslyn,stephentoub/roslyn,AmadeusW/roslyn,physhi/roslyn,wvdd007/roslyn,AmadeusW/roslyn,stephentoub/roslyn,tmat/roslyn,shyamnamboodiripad/roslyn,wvdd0... |
451eac594d35fc681e4431e093a0d985e2359626 | src/StreamDeckSharp/Internals/Throttle.cs | src/StreamDeckSharp/Internals/Throttle.cs | using System;
using System.Diagnostics;
using System.Threading;
namespace StreamDeckSharp.Internals
{
internal class Throttle
{
private readonly Stopwatch stopwatch = Stopwatch.StartNew();
private long sumBytesInWindow = 0;
public double BytesPerSecondLimit { get; set; } = double.Posi... | using System;
using System.Diagnostics;
using System.Threading;
namespace StreamDeckSharp.Internals
{
internal class Throttle
{
private readonly Stopwatch stopwatch = Stopwatch.StartNew();
private long sumBytesInWindow = 0;
private int sleepCount = 0;
public double BytesPerSec... | Debug output on throttled throughput | Debug output on throttled throughput
| C# | mit | OpenStreamDeck/StreamDeckSharp |
d5403032a94a956c8d91b934e4f4ef19894960c4 | src/Symbooglix/Solver/CVC4SMTLIBSolver.cs | src/Symbooglix/Solver/CVC4SMTLIBSolver.cs | using System;
using Symbooglix.Solver;
namespace Symbooglix
{
namespace Solver
{
public class CVC4SMTLIBSolver : SimpleSMTLIBSolver
{
SMTLIBQueryPrinter.Logic LogicToUse = SMTLIBQueryPrinter.Logic.ALL_SUPPORTED; // Non standard
public CVC4SMTLIBSolver(bool useNamedAttri... | using System;
using Symbooglix.Solver;
namespace Symbooglix
{
namespace Solver
{
public class CVC4SMTLIBSolver : SimpleSMTLIBSolver
{
SMTLIBQueryPrinter.Logic LogicToUse = SMTLIBQueryPrinter.Logic.ALL_SUPPORTED; // Non standard
public CVC4SMTLIBSolver(bool useNamedAttri... | Fix CVC4 support (requires a new version that supports the reset command). | Fix CVC4 support (requires a new version that supports the reset
command).
| C# | bsd-2-clause | symbooglix/symbooglix,symbooglix/symbooglix,symbooglix/symbooglix |
06ffc916f97dab59ba0aa6c322e805e9b1b0dd93 | Utility.cs | Utility.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Cipher {
class Utility {
public static string directory = @"c:\code\cypher_files";
/// <summary>
/// Allows user to choose to displ... | using System;
using System.IO;
namespace Cipher {
class Utility {
public static string directory = "/Users/emiranda/Documents/code/c#/cipher_files/";
/// <summary>
/// Allows user to choose to display the password on the screen as is being typed.
/// </summary>
... | Remove unused code and updated directory location. | Remove unused code and updated directory location.
| C# | mit | emiranda04/aes |
bab16971ae3fe0d117154ab2697b25b5b2056657 | src/Microsoft.AspNetCore.Authentication.Abstractions/IClaimsTransformation.cs | src/Microsoft.AspNetCore.Authentication.Abstractions/IClaimsTransformation.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Security.Claims;
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.Authentication
{
/// <summary>
/// Used by the <see ... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Security.Claims;
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.Authentication
{
/// <summary>
/// Used by the <see ... | Add comment for claims transform | Add comment for claims transform
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
e7ce6a307e1bdc36b1aff0f72e556e6d369c5cd0 | src/Umbraco.Core/Persistence/Repositories/Implement/UpgradeCheckRepository.cs | src/Umbraco.Core/Persistence/Repositories/Implement/UpgradeCheckRepository.cs | using System.Net.Http;
using System.Net.Http.Formatting;
using System.Threading.Tasks;
using Semver;
using Umbraco.Core.Models;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
internal class UpgradeCheckRepository : IUpgradeCheckRepository
{
private static HttpClient _httpClient;
p... | using System.Net.Http;
using System.Net.Http.Formatting;
using System.Threading.Tasks;
using Semver;
using Umbraco.Core.Models;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
internal class UpgradeCheckRepository : IUpgradeCheckRepository
{
private static HttpClient _httpClient;
p... | Handle Invalid format for Upgrade check | Handle Invalid format for Upgrade check | C# | mit | madsoulswe/Umbraco-CMS,bjarnef/Umbraco-CMS,umbraco/Umbraco-CMS,abryukhov/Umbraco-CMS,KevinJump/Umbraco-CMS,KevinJump/Umbraco-CMS,abjerner/Umbraco-CMS,mattbrailsford/Umbraco-CMS,bjarnef/Umbraco-CMS,abryukhov/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,abryukhov/Umbraco-CMS,robertjf/Umbraco-CMS,dawoe/Umbraco-CMS,umbraco/Um... |
1a761239cbf4f52666327e5b2ce7e62a4cc0f43d | Hello_MultiScreen_iPhone/AppDelegate.cs | Hello_MultiScreen_iPhone/AppDelegate.cs | using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace Hello_MultiScreen_iPhone
{
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
//---- declarations
UIWindow window;
UINavigationController rootNavig... | using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace Hello_MultiScreen_iPhone
{
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
//---- declarations
UIWindow window;
// This method is invoked whe... | Remove class variable declaration for UINavigationController | Remove class variable declaration for UINavigationController
| C# | mit | iFreedive/monotouch-samples,iFreedive/monotouch-samples,robinlaide/monotouch-samples,W3SS/monotouch-samples,labdogg1003/monotouch-samples,haithemaraissia/monotouch-samples,W3SS/monotouch-samples,peteryule/monotouch-samples,peteryule/monotouch-samples,davidrynn/monotouch-samples,nelzomal/monotouch-samples,kingyond/monot... |
03f61e240cd512d69f9248dcb9c475c62430ff48 | LogicalShift.Reason/BasicUnification.cs | LogicalShift.Reason/BasicUnification.cs | using LogicalShift.Reason.Api;
using LogicalShift.Reason.Unification;
using System;
using System.Collections.Generic;
namespace LogicalShift.Reason
{
/// <summary>
/// Helper methods for performing unification
/// </summary>
public static class BasicUnification
{
/// <summary>
/// ... | using LogicalShift.Reason.Api;
using LogicalShift.Reason.Unification;
using System;
using System.Collections.Generic;
namespace LogicalShift.Reason
{
/// <summary>
/// Helper methods for performing unification
/// </summary>
public static class BasicUnification
{
/// <summary>
/// ... | Remove tracing from the unifier | Remove tracing from the unifier
| C# | apache-2.0 | Logicalshift/Reason |
d20a79c3f992261665b41203207621be9aee9100 | TGS.Interface.Bridge/DreamDaemonBridge.cs | TGS.Interface.Bridge/DreamDaemonBridge.cs | using RGiesecke.DllExport;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using TGS.Interface;
using TGS.Interface.Components;
namespace TGS.Interface.Bridge
{
/// <summary>
/// Holds the proc that DD calls to access <see cref="ITGInterop"/>
/// </summary>
public static class... | using RGiesecke.DllExport;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace TGS.Interface.Bridge
{
/// <summary>
/// Holds the proc that DD calls to access <see cref="ITGInterop"/>
/// </summary>
public static class DreamDaemonBridge
{
/// <summary>
/// The proc ... | Update bridge to use new interface | Update bridge to use new interface
| C# | agpl-3.0 | Cyberboss/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server |
6493a4c7d1438c2c2decbd002bc0d28c73db9a86 | OdeToFood/Controllers/HomeController.cs | OdeToFood/Controllers/HomeController.cs | using System.Linq;
using Microsoft.AspNetCore.Mvc;
using OdeToFood.Entities;
using OdeToFood.Services;
using OdeToFood.ViewModels;
namespace OdeToFood.Controllers
{
public class HomeController : Controller
{
private IRestaurantData _restaurantData;
private IGreeter _greeter;
public Ho... | using Microsoft.AspNetCore.Mvc;
using OdeToFood.Entities;
using OdeToFood.Services;
using OdeToFood.ViewModels;
namespace OdeToFood.Controllers
{
public class HomeController : Controller
{
private IRestaurantData _restaurantData;
private IGreeter _greeter;
public HomeController(IResta... | Add POST REDIRECT GET Pattern to controller | Add POST REDIRECT GET Pattern to controller
| C# | mit | IliaAnastassov/OdeToFood,IliaAnastassov/OdeToFood |
acfd4352b5d9a3611666f2f9768526156e27103b | src/NodaTime/Calendars/NamespaceDoc.cs | src/NodaTime/Calendars/NamespaceDoc.cs | #region Copyright and license information
// Copyright 2001-2009 Stephen Colebourne
// Copyright 2009-2011 Jon Skeet
//
// 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
//
// h... | #region Copyright and license information
// Copyright 2001-2009 Stephen Colebourne
// Copyright 2009-2011 Jon Skeet
//
// 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
//
// h... | Fix a typo in the NodaTime.Calendars namespace summary. | Fix a typo in the NodaTime.Calendars namespace summary.
| C# | apache-2.0 | zaccharles/nodatime,BenJenkinson/nodatime,zaccharles/nodatime,malcolmr/nodatime,zaccharles/nodatime,zaccharles/nodatime,nodatime/nodatime,malcolmr/nodatime,nodatime/nodatime,zaccharles/nodatime,jskeet/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,zaccharles/nodatime,malcolmr/nodatime,jskeet/nodatime |
ce603fc99ec9c2b9cc5d233f14878d61930634d0 | build.cake | build.cake | var configuration = Argument("configuration", "Debug");
Task("Clean")
.Does(() =>
{
CleanDirectory("./artifacts/");
});
Task("Restore")
.Does(() =>
{
DotNetCoreRestore();
});
Task("Build")
.Does(() =>
{
DotNetCoreBuild("./src/**/project.json", new DotNetCoreBuildSettings
{
Configuration = co... | var configuration = Argument("configuration", "Debug");
Task("Clean")
.Does(() =>
{
CleanDirectory("./artifacts/");
});
Task("Restore")
.Does(() =>
{
DotNetCoreRestore();
});
Task("Build")
.Does(() =>
{
DotNetCoreBuild("./src/**/*.csproj", new DotNetCoreBuildSettings
{
Configuration = config... | Update cake script to csproj | Update cake script to csproj
| C# | apache-2.0 | stormpath/stormpath-dotnet-owin-middleware |
015f71f35881e721b3d0f6964926fafccd65ea4d | Types/Properties/AssemblyInfo.cs | Types/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Outercurve Foundation")]
[assembly: AssemblyProduct("NuGet Package Explorer")]
[assembly: AssemblyCopyright("\x00a9 Outercurve Foundation. All rights reserved.")]
[assembly: AssemblyTitle("NuGetPackageExplorer.Types")]
[... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Outercurve Foundation")]
[assembly: AssemblyProduct("NuGet Package Explorer")]
[assembly: AssemblyCopyright("\x00a9 Outercurve Foundation. All rights reserved.")]
[assembly: AssemblyTitle("NuGetPackageExplorer.Types")]
[... | Update assembly version of Types.dll to 3.7 | Update assembly version of Types.dll to 3.7
| C# | mit | NuGetPackageExplorer/NuGetPackageExplorer,BreeeZe/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer,campersau/NuGetPackageExplorer,dsplaisted/NuGetPackageExplorer |
c0803ee8f0df48412564af36d5c7d56702b3bf19 | Tests/CSF.Screenplay.Reporting.Tests/JsonReportRendererTests.cs | Tests/CSF.Screenplay.Reporting.Tests/JsonReportRendererTests.cs | using System.IO;
using System.Text;
using CSF.Screenplay.Reporting.Tests;
using CSF.Screenplay.Reporting.Tests.Autofixture;
using CSF.Screenplay.ReportModel;
using NUnit.Framework;
namespace CSF.Screenplay.Reporting.Tests
{
[TestFixture]
public class JsonReportRendererTests
{
[Test,AutoMoqData]
public v... | using System.IO;
using System.Text;
using CSF.Screenplay.Reporting.Tests;
using CSF.Screenplay.Reporting.Tests.Autofixture;
using CSF.Screenplay.ReportModel;
using NUnit.Framework;
namespace CSF.Screenplay.Reporting.Tests
{
[TestFixture]
public class JsonReportRendererTests
{
[Test,AutoMoqData]
public v... | Change test back to using a string builder | Change test back to using a string builder
| C# | mit | csf-dev/CSF.Screenplay,csf-dev/CSF.Screenplay,csf-dev/CSF.Screenplay |
b6d25ed5d740381f4fc2870d13eabcd12096c7fe | Source/EasyNetQ.Hosepipe/QueueRetrieval.cs | Source/EasyNetQ.Hosepipe/QueueRetrieval.cs | using System;
using System.Collections.Generic;
using System.Text;
using RabbitMQ.Client.Exceptions;
namespace EasyNetQ.Hosepipe
{
public interface IQueueRetreival {
IEnumerable<HosepipeMessage> GetMessagesFromQueue(QueueParameters parameters);
}
public class QueueRetreival : IQueueRetreival
... | using System;
using System.Collections.Generic;
using System.Text;
using RabbitMQ.Client.Exceptions;
namespace EasyNetQ.Hosepipe
{
public interface IQueueRetreival {
IEnumerable<HosepipeMessage> GetMessagesFromQueue(QueueParameters parameters);
}
public class QueueRetreival : IQueueRetreival
... | Fix number of messages retrieved. Used to be n-1 | Fix number of messages retrieved. Used to be n-1
| C# | mit | chinaboard/EasyNetQ,Ascendon/EasyNetQ,fpommerening/EasyNetQ,lukasz-lysik/EasyNetQ,ar7z1/EasyNetQ,sanjaysingh/EasyNetQ,nicklv/EasyNetQ,EasyNetQ/EasyNetQ,mleenhardt/EasyNetQ,scratch-net/EasyNetQ,zidad/EasyNetQ,Ascendon/EasyNetQ,fpommerening/EasyNetQ,Pliner/EasyNetQ,EIrwin/EasyNetQ,micdenny/EasyNetQ,tkirill/EasyNetQ,reise... |
182cf2f51700643d9d9e7547d3bd079b7b5b6eb5 | src/Abp.EntityFrameworkCore/EntityFrameworkCore/ValueConverters/AbpDateTimeValueConverter.cs | src/Abp.EntityFrameworkCore/EntityFrameworkCore/ValueConverters/AbpDateTimeValueConverter.cs | using System;
using System.Linq.Expressions;
using Abp.Timing;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Abp.EntityFrameworkCore.ValueConverters
{
public class AbpDateTimeValueConverter : ValueConverter<DateTime?, DateTime?>
{
public AbpDateTim... | using System;
using System.Linq.Expressions;
using Abp.Timing;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Abp.EntityFrameworkCore.ValueConverters
{
public class AbpDateTimeValueConverter : ValueConverter<DateTime?, DateTime?>
{
public AbpDateTim... | Change the default value of the parameter initialization method. | Change the default value of the parameter initialization method.
| C# | mit | luchaoshuai/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,carldai0106/aspnetboilerplate,verdentk/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,ilyhacker/aspnetboilerplate,carldai0106/aspnetboilerplate,verdentk/aspnetboilerplate,ilyhacker/aspnetboilerplate,carlda... |
f72a968ae1808814f49cb3a9cf2c6426be7e7848 | Knapcode.StandardSerializer/Properties/AssemblyInfo.cs | Knapcode.StandardSerializer/Properties/AssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | Change the assembly version to "base" | Change the assembly version to "base"
| C# | unlicense | joelverhagen/StandardSerializer |
354e57418a5cd18e173384eece261b71e8c20b95 | Anlab.Mvc/Views/Admin/ListClients.cshtml | Anlab.Mvc/Views/Admin/ListClients.cshtml | @model IList<User>
@{
ViewData["Title"] = "List Non Admin Users";
}
<div class="col">
<table id="table">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Email</th>
<th>Client Id</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
@foreach (var user in Model)
{
... | @model IList<User>
@{
ViewData["Title"] = "List Non Admin Users";
}
<div class="col">
<table id="table">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Email</th>
<th>Client Id</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
@foreach (var user in Model)
{
... | Fix sorting and searching on table | Fix sorting and searching on table
| C# | mit | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab |
7e826ebd9b914fb8b46bec946c127db4e9b2768f | src/CGO.Web/Views/Shared/_Layout.cshtml | src/CGO.Web/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/themes/base/css", "~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
@RenderBody()
@Scripts.R... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/themes/base/css", "~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
@RenderBody()
@Scripts.Ren... | Set the document language to English | Set the document language to English
| C# | mit | alastairs/cgowebsite,alastairs/cgowebsite |
d6a5743d1b04da99e6e2ae62ee6b6cd2c4201405 | osu.Framework/Platform/Linux/Sdl/SdlClipboard.cs | osu.Framework/Platform/Linux/Sdl/SdlClipboard.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Runtime.InteropServices;
namespace osu.Framework.Platform.Linux.Sdl
{
public class SdlClipboard : Clipboard
{
priva... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Runtime.InteropServices;
namespace osu.Framework.Platform.Linux.Sdl
{
public class SdlClipboard : Clipboard
{
priva... | Add doc for what happens when getting clipboard text fails (SDL) | Add doc for what happens when getting clipboard text fails (SDL)
| C# | mit | peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,Tom94/osu-framework,smoogipooo/osu-framework,DrabWeb/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-frame... |
d030dea1b1b9760c918d1da46aac9dffeb7340e1 | src/Hangfire.Mongo/MongoUtils/MongoExtensions.cs | src/Hangfire.Mongo/MongoUtils/MongoExtensions.cs | using Hangfire.Mongo.Database;
using MongoDB.Driver;
using System;
using Hangfire.Mongo.Helpers;
using MongoDB.Bson;
namespace Hangfire.Mongo.MongoUtils
{
/// <summary>
/// Helper utilities to work with Mongo database
/// </summary>
public static class MongoExtensions
{
/// <s... | using Hangfire.Mongo.Database;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using Hangfire.Mongo.Helpers;
using MongoDB.Bson;
namespace Hangfire.Mongo.MongoUtils
{
/// <summary>
/// Helper utilities to work with Mongo database
/// </summary>
public static class Mon... | Optimize query for server time. (not throwing exception) | Optimize query for server time. (not throwing exception)
| C# | mit | sergeyzwezdin/Hangfire.Mongo,sergeyzwezdin/Hangfire.Mongo,persi12/Hangfire.Mongo,sergun/Hangfire.Mongo,sergeyzwezdin/Hangfire.Mongo,sergun/Hangfire.Mongo,persi12/Hangfire.Mongo |
cd86a29695a8d6afc48d736890cd74211d01f620 | Nilgiri.Tests/Examples/Should/NotBeOk.cs | Nilgiri.Tests/Examples/Should/NotBeOk.cs | namespace Nilgiri.Examples
{
using Xunit;
using Nilgiri.Tests.Common;
using static Nilgiri.ExpectStyle;
public partial class ExampleOf_Should
{
public class Not_Be_Ok
{
[Fact]
public void Int32()
{
_(0).Should.Not.Be.Ok();
_(() => 0).Should.Not.Be.Ok();
}
... | namespace Nilgiri.Examples
{
using Xunit;
using Nilgiri.Tests.Common;
using static Nilgiri.ShouldStyle;
public partial class ExampleOf_Should
{
public class Not_Be_Ok
{
[Fact]
public void Int32()
{
_(0).Should.Not.Be.Ok();
_(() => 0).Should.Not.Be.Ok();
}
... | Fix the using. Sometimes atom can be... | Fix the using. Sometimes atom can be...
| C# | mit | brycekbargar/Nilgiri,brycekbargar/Nilgiri |
15411d9c6d3e8aacb9485d4a0af8b19eeae49fe3 | ProjectTrackercs/PTWpf/RolesEdit.xaml.cs | ProjectTrackercs/PTWpf/RolesEdit.xaml.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
usin... | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
usin... | Use the new Delete command support in CslaDataProvider. | Use the new Delete command support in CslaDataProvider.
| C# | mit | JasonBock/csla,JasonBock/csla,jonnybee/csla,BrettJaner/csla,rockfordlhotka/csla,ronnymgm/csla-light,MarimerLLC/csla,BrettJaner/csla,ronnymgm/csla-light,BrettJaner/csla,JasonBock/csla,MarimerLLC/csla,jonnybee/csla,MarimerLLC/csla,jonnybee/csla,rockfordlhotka/csla,ronnymgm/csla-light,rockfordlhotka/csla |
f06576a15685a9a6417a950aab2980b9829e1435 | nuserv/Utility/HttpRouteDataResolver.cs | nuserv/Utility/HttpRouteDataResolver.cs | namespace nuserv.Utility
{
using System.Net.Http;
using System.Web;
using System.Web.Http.Routing;
public class HttpRouteDataResolver : IHttpRouteDataResolver
{
#region Public Methods and Operators
public IHttpRouteData Resolve()
{
if (HttpContext.Current != nu... | namespace nuserv.Utility
{
#region Usings
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http.Routing;
#endregion
public class HttpRouteDataResolver : IHttpRouteDataResolver
{
#region Public ... | Implement RouteData resolvement while in wcf context | Implement RouteData resolvement while in wcf context
| C# | mit | baseclass/nuserv,baseclass/nuserv,baseclass/nuserv |
256ea0920292077a1547be795cfd1d5507064cb3 | src/SqlPersistence/SqlPersistence.cs | src/SqlPersistence/SqlPersistence.cs | namespace NServiceBus
{
using Settings;
using Features;
using Persistence;
using Persistence.Sql;
/// <summary>
/// The <see cref="PersistenceDefinition"/> for the SQL Persistence.
/// </summary>
public class SqlPersistence : PersistenceDefinition
{
/// <summary>
//... | namespace NServiceBus
{
using Settings;
using Features;
using Persistence;
using Persistence.Sql;
/// <summary>
/// The <see cref="PersistenceDefinition"/> for the SQL Persistence.
/// </summary>
public class SqlPersistence : PersistenceDefinition
{
/// <summary>
//... | Make sure to only invoke defaults once | Make sure to only invoke defaults once
| C# | mit | NServiceBusSqlPersistence/NServiceBus.SqlPersistence |
545c0585e0697190da6b023d5310e17588745c8a | ExpressRunner/TestItem.cs | ExpressRunner/TestItem.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Caliburn.Micro;
using ExpressRunner.Api;
namespace ExpressRunner
{
public class TestItem : PropertyChangedBase, IRunnableTest
{
public string Name
{
get { retur... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Caliburn.Micro;
using ExpressRunner.Api;
namespace ExpressRunner
{
public class TestItem : PropertyChangedBase, IRunnableTest
{
public string Name
{
get { retur... | Change order of update operation in RecordRun | Change order of update operation in RecordRun
| C# | mit | lpatalas/ExpressRunner |
7527730eb521d8c9375eacb8d7257ef7c49c3a61 | src/Fixie/Execution/MethodDiscoverer.cs | src/Fixie/Execution/MethodDiscoverer.cs | namespace Fixie.Execution
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
class MethodDiscoverer
{
readonly Filter filter;
readonly IReadOnlyList<Func<MethodInfo, bool>> testMethodConditions;
public MethodDiscoverer(Filter ... | namespace Fixie.Execution
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
class MethodDiscoverer
{
readonly Filter filter;
readonly IReadOnlyList<Func<MethodInfo, bool>> testMethodConditions;
public MethodDiscoverer(Filter ... | Optimize the detection of IDisposable test classes. Array.Contains performs fewer allocations than the LINQ Any extension method. | Optimize the detection of IDisposable test classes. Array.Contains performs fewer allocations than the LINQ Any extension method.
| C# | mit | fixie/fixie |
bd68ab67e2574353f6fc4486a07b7744dbac72ec | projects/AlertSample/source/AlertSample.App/Program.cs | projects/AlertSample/source/AlertSample.App/Program.cs | //-----------------------------------------------------------------------
// <copyright file="Program.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace AlertSample
{
using Syst... | //-----------------------------------------------------------------------
// <copyright file="Program.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace AlertSample
{
using Syst... | Add parent and child app skeleton | Add parent and child app skeleton
| C# | unlicense | brian-dot-net/writeasync,brian-dot-net/writeasync,brian-dot-net/writeasync |
fbcc612fbdef66a614cb211dccbabf40736ddde6 | TfsHipChat/Program.cs | TfsHipChat/Program.cs | using System.ServiceModel;
namespace TfsHipChat
{
class Program
{
static void Main()
{
using (var host = new ServiceHost(typeof(CheckinEventService)))
{
host.Open();
}
}
}
}
| using System;
using System.ServiceModel;
namespace TfsHipChat
{
class Program
{
static void Main()
{
using (var host = new ServiceHost(typeof(CheckinEventService)))
{
host.Open();
Console.WriteLine("TfsHipChat started!");
... | Add blocking statement to ensure service remains alive | Add blocking statement to ensure service remains alive
| C# | mit | timclipsham/tfs-hipchat |
d5df48be378f9223170106938be75bf04d531b74 | src/Cake.Core/Polyfill/ProcessHelper.cs | src/Cake.Core/Polyfill/ProcessHelper.cs | using System.Diagnostics;
namespace Cake.Core.Polyfill
{
internal static class ProcessHelper
{
public static void SetEnvironmentVariable(ProcessStartInfo info, string key, string value)
{
#if NETCORE
info.Environment[key] = value;
#else
info.EnvironmentVariables[key] = ... | using System;
using System.Diagnostics;
using System.Linq;
namespace Cake.Core.Polyfill
{
internal static class ProcessHelper
{
public static void SetEnvironmentVariable(ProcessStartInfo info, string key, string value)
{
#if NETCORE
var envKey = info.Environment.Keys.FirstOrDefault... | Address ProcessStartInfo envvar case sensitivite issue | Address ProcessStartInfo envvar case sensitivite issue
* Fixes #1326
| C# | mit | mholo65/cake,ferventcoder/cake,daveaglick/cake,daveaglick/cake,Julien-Mialon/cake,devlead/cake,mholo65/cake,Sam13/cake,RehanSaeed/cake,DixonD-git/cake,phenixdotnet/cake,patriksvensson/cake,thomaslevesque/cake,phrusher/cake,phenixdotnet/cake,ferventcoder/cake,gep13/cake,robgha01/cake,vlesierse/cake,Julien-Mialon/cake,ca... |
2638f5dddb08f12655b24dad74a2b0a615031069 | client/BlueMonkey/BlueMonkey/App.xaml.cs | client/BlueMonkey/BlueMonkey/App.xaml.cs | using BlueMonkey.ExpenceServices;
using BlueMonkey.ExpenceServices.Local;
using BlueMonkey.Model;
using Prism.Unity;
using BlueMonkey.Views;
using Xamarin.Forms;
using Microsoft.Practices.Unity;
namespace BlueMonkey
{
public partial class App : PrismApplication
{
public App(IPlatformInitializer initia... | using BlueMonkey.ExpenceServices;
using BlueMonkey.ExpenceServices.Local;
using BlueMonkey.Model;
using Prism.Unity;
using BlueMonkey.Views;
using Xamarin.Forms;
using Microsoft.Practices.Unity;
namespace BlueMonkey
{
public partial class App : PrismApplication
{
public App(IPlatformInitializer initia... | Set initial page to LoginPage | Set initial page to LoginPage
| C# | mit | ProjectBlueMonkey/BlueMonkey,ProjectBlueMonkey/BlueMonkey |
fb5bf5e62b76688b93cb8892ac9cc31bbb5ca3b5 | src/ResourceManager/AzureBatch/Commands.Batch/Locations/GetBatchLocationQuotasCommand.cs | src/ResourceManager/AzureBatch/Commands.Batch/Locations/GetBatchLocationQuotasCommand.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | Add comment to backwards compat alias | Add comment to backwards compat alias
| C# | apache-2.0 | hungmai-msft/azure-powershell,krkhan/azure-powershell,AzureRT/azure-powershell,rohmano/azure-powershell,naveedaz/azure-powershell,krkhan/azure-powershell,jtlibing/azure-powershell,yoavrubin/azure-powershell,zhencui/azure-powershell,AzureAutomationTeam/azure-powershell,rohmano/azure-powershell,atpham256/azure-powershell... |
c0533d2f7623075a1dd5c8a1ab6801af0c16ceed | TicketTimer.Jira/Services/DefaultJiraService.cs | TicketTimer.Jira/Services/DefaultJiraService.cs | using Atlassian.Jira;
using TicketTimer.Core.Infrastructure;
using TicketTimer.Jira.Extensions;
namespace TicketTimer.Jira.Services
{
public class DefaultJiraService : JiraService
{
private readonly WorkItemStore _workItemStore;
// TODO Insert correct parameters
public Atlassian.Jira.... | using Atlassian.Jira;
using TicketTimer.Core.Infrastructure;
using TicketTimer.Jira.Extensions;
namespace TicketTimer.Jira.Services
{
public class DefaultJiraService : JiraService
{
private readonly WorkItemStore _workItemStore;
// TODO Insert correct parameters
public Atlassian.Jira.... | Check if the workitem if a jira issue, before logging time. | [master] Check if the workitem if a jira issue, before logging time.
| C# | mit | n-develop/tickettimer |
f334fd6b7eab616b3a188124a77ff1f791a14509 | TypeCoercion.cs | TypeCoercion.cs | namespace ScriptNET {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
internal class TypeCoercion {
// Handle type coercion to bool for Javascript-style if(foo) statements.
static public object CoerceToBool(object obj) {
if (obj is bool) {
// Do nothing, we're fine.
} el... | namespace ScriptNET {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
internal class TypeCoercion {
// Handle type coercion to bool for Javascript-style if(foo) statements.
static public object CoerceToBool(object obj) {
if (obj is bool) {
// Do nothing, we're fine.
} el... | Make bool type coercion work with arrays, and improve handling of non-null objects as expression arguments to unary ! and such | Make bool type coercion work with arrays, and improve handling of non-null objects as expression arguments to unary ! and such
| C# | mit | kayateia/scriptdotnet,kayateia/scriptdotnet |
5ad122bfec900566a9d3ec1ad5f910d5e77c3528 | osu.Game/Beatmaps/BeatmapSetInfo.cs | osu.Game/Beatmaps/BeatmapSetInfo.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.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using osu.Game.Database;
namespace osu.Game.Beatmaps
{
pub... | // 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.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using osu.Game.Database;
namespace osu.Game.Beatmaps
{
pub... | Fix beatmaps importing with -1 as online set ID | Fix beatmaps importing with -1 as online set ID
| C# | mit | ppy/osu,smoogipoo/osu,DrabWeb/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu,DrabWeb/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,johnneijzen/osu,ZLima12/osu,ZLima12/osu,ppy/osu,NeoAdonis/osu,DrabWeb/osu,peppy/osu,2yangk23/osu,EVAST9919/osu,naoey/osu,2yangk23/osu,peppy/osu,UselessToucan/o... |
ac9bbab618055e15d1ce98af7e998e019ad90595 | Sdl.Community.GroupShareKit.Tests.Integration/Helper.cs | Sdl.Community.GroupShareKit.Tests.Integration/Helper.cs | using System;
using System.Threading.Tasks;
using Sdl.Community.GroupShareKit.Clients;
using Sdl.Community.GroupShareKit.Http;
namespace Sdl.Community.GroupShareKit.Tests.Integration
{
public static class Helper
{
public static async Task<GroupShareClient> GetGroupShareClient()
{
... | using System;
using System.Threading.Tasks;
using Sdl.Community.GroupShareKit.Clients;
using Sdl.Community.GroupShareKit.Http;
namespace Sdl.Community.GroupShareKit.Tests.Integration
{
public static class Helper
{
public static string GetVariable(string key)
{
// by default it get... | Allow getting a user env variable | Allow getting a user env variable
| C# | mit | sdl/groupsharekit.net |
b329becda54800fbdbb7de002cf3f96d2386e033 | Anlab.Mvc/Extensions/StringExtensions.cs | Anlab.Mvc/Extensions/StringExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AnlabMvc.Extensions
{
public static class StringExtensions
{
public static string PaymentMethodDescription(this string value)
{
if (string.Equals(value, "uc", String... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace AnlabMvc.Extensions
{
public static class StringExtensions
{
const string emailRegex = @"^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9... | Add a string extension to validate Email | Add a string extension to validate Email
Regex was from the labworks service which was from the order form
| C# | mit | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab |
cb3512f84af32d1809c1e233e170a21499c0071c | src/VisualStudio/Core/Def/Implementation/Serialization/AssemblySerializationInfoService.cs | src/VisualStudio/Core/Def/Implementation/Serialization/AssemblySerializationInfoService.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Composition;
using System.IO;
using Microsoft.CodeAnalysis.Host.Mef;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.Serialization
{
... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Composition;
using System.IO;
using Microsoft.CodeAnalysis.Host.Mef;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.Serialization
{
... | Allow indices to be stored for .net assemblies. | Allow indices to be stored for .net assemblies.
| C# | mit | sharwell/roslyn,VSadov/roslyn,zooba/roslyn,balajikris/roslyn,Maxwe11/roslyn,mattwar/roslyn,AlekseyTs/roslyn,robinsedlaczek/roslyn,sharadagrawal/Roslyn,jasonmalinowski/roslyn,khyperia/roslyn,lorcanmooney/roslyn,leppie/roslyn,mavasani/roslyn,leppie/roslyn,mmitche/roslyn,xoofx/roslyn,budcribar/roslyn,Pvlerick/roslyn,rgani... |
d8f4b56f0046192dc8c861c278ef7bf5fa44e41f | Kliva/ViewModels/SidePaneViewModel.cs | Kliva/ViewModels/SidePaneViewModel.cs | using Cimbalino.Toolkit.Services;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using Kliva.Models;
using Kliva.Views;
using Windows.UI.Xaml.Controls;
namespace Kliva.ViewModels
{
public class SidePaneViewModel : KlivaBaseViewModel
{
private bool _isPaneOpen = true;
public bool I... | using Cimbalino.Toolkit.Services;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using Kliva.Models;
using Kliva.Views;
using Windows.UI.Xaml.Controls;
namespace Kliva.ViewModels
{
public class SidePaneViewModel : KlivaBaseViewModel
{
private bool _isPaneOpen = false;
public bool ... | Adjust pane when going to inline mode to close it | Adjust pane when going to inline mode to close it
| C# | mit | clarkezone/Kliva,AppCreativity/Kliva,timheuer/Kliva-1,JasterAtMicrosoft/Kliva |
3a5155066012e818f964236a36c927ca7aa3e450 | src/Dnn.PersonaBar.Library/Helper/PortalHelper.cs | src/Dnn.PersonaBar.Library/Helper/PortalHelper.cs | using DotNetNuke.Entities.Portals;
using System;
using System.Linq;
namespace Dnn.PersonaBar.Library.Helper
{
public class PortalHelper
{
private static readonly IContentVerifier _contentVerifier = new ContentVerifier(PortalController.Instance, PortalGroupController.Instance);
[Obsolete("Depr... | using DotNetNuke.Entities.Portals;
using System;
namespace Dnn.PersonaBar.Library.Helper
{
public class PortalHelper
{
private static readonly IContentVerifier _contentVerifier = new ContentVerifier();
[Obsolete("Deprecated in 9.2.1. Use IContentVerifier.IsContentExistsForRequestedPortal")]
... | Use the parameterless contructor from Obselete Portal Helper | DNN-20025: Use the parameterless contructor from Obselete Portal Helper
| C# | mit | robsiera/Dnn.Platform,valadas/Dnn.Platform,EPTamminga/Dnn.Platform,valadas/Dnn.Platform,RichardHowells/Dnn.Platform,valadas/Dnn.Platform,nvisionative/Dnn.Platform,dnnsoftware/Dnn.Platform,dnnsoftware/Dnn.AdminExperience.Library,valadas/Dnn.Platform,dnnsoftware/Dnn.Platform,robsiera/Dnn.Platform,valadas/Dnn.Platform,nvi... |
4124bc7fe28d6c51b72158b7d20f471a1308c110 | src/Fakes.Tests/Specs/FakeWatcher/WatcherSpecs.cs | src/Fakes.Tests/Specs/FakeWatcher/WatcherSpecs.cs | namespace TestableFileSystem.Fakes.Tests.Specs.FakeWatcher
{
public abstract class WatcherSpecs
{
protected const int NotifyWaitTimeoutMilliseconds = 500;
protected const int SleepTimeToEnsureOperationHasArrivedAtWatcherConsumerLoop = 250;
// TODO: Add specs for File.Encrypt/Decrypt, F... | namespace TestableFileSystem.Fakes.Tests.Specs.FakeWatcher
{
public abstract class WatcherSpecs
{
protected const int NotifyWaitTimeoutMilliseconds = 1000;
protected const int SleepTimeToEnsureOperationHasArrivedAtWatcherConsumerLoop = 250;
// TODO: Add specs for File.Encrypt/Decrypt, ... | Increase timeout to prevent cibuild failures | Increase timeout to prevent cibuild failures
| C# | apache-2.0 | bkoelman/TestableFileSystem |
f8bde743dcf8a3180b45df7239d5a7de314de1cc | ExampleWebApp/Views/Examples/Wait.cshtml | ExampleWebApp/Views/Examples/Wait.cshtml | @{
ViewBag.Title = "ComboLoad";
}
<div class="row">
<div class="col-md-12">
<h2>Example page for testing waits</h2>
<p>The following combo starts with a placeholder option and after 3 seconds updates with a new item.</p>
<select id="combo" >
<option>Placeholder</option>
... | @{
ViewBag.Title = "ComboLoad";
}
<div class="row">
<div class="col-md-12">
<h2>Example page for testing waits</h2>
<p class="alert alert-danger" id="message" style="display:none"></p>
<div>
<div class="form-group">
<label for="username">Username</label>
... | Change the wait example to a mock login page. | Change the wait example to a mock login page.
| C# | mit | matthewrwilton/SeleniumExamples,matthewrwilton/SeleniumExamples |
d3be7180fe2bdffe1be6f1034bdfa771ad1a34a7 | GetChanges/Program.cs | GetChanges/Program.cs | using Nito.AsyncEx;
using Octokit;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Alteridem.GetChanges
{
class Program
{
static int Main(string[] args)
{
var options = new Options();
if (!CommandLine.Parser.Default.ParseArguments(args, opti... | using Nito.AsyncEx;
using Octokit;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Alteridem.GetChanges
{
class Program
{
static int Main(string[] args)
{
var options = new Options();
if (!CommandLine.Parser.Default.ParseArguments(args, opti... | Fix bug where repo name was used instead of organization in the links. | Fix bug where repo name was used instead of organization in the links.
| C# | mit | rprouse/GetChanges |
822b6cd015f5c5ebe13bb3b8ea281c0ab68d7199 | Battery-Commander.Web/Models/RequestAccessModel.cs | Battery-Commander.Web/Models/RequestAccessModel.cs | using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace BatteryCommander.Web.Models
{
public class RequestAccessModel
{
public String Name { get; set; }
public String Email { get; set; }
[Display... | using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace BatteryCommander.Web.Models
{
public class RequestAccessModel
{
public String Name { get; set; }
public String Email { get; set; }
[Display... | Add note about what your dod is | Add note about what your dod is
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
0a4757db24e7f3e4e35bc6e4a6707db3fa1bf982 | src/SFA.DAS.EAS.Web/Views/Shared/_SuccessMessage.cshtml | src/SFA.DAS.EAS.Web/Views/Shared/_SuccessMessage.cshtml | @using SFA.DAS.EAS.Web
@using SFA.DAS.EAS.Web.Models
@model dynamic
@{
var viewModel = Model as OrchestratorResponse;
}
@if (!string.IsNullOrEmpty(viewModel?.FlashMessage?.Message) || !string.IsNullOrEmpty(viewModel?.FlashMessage?.SubMessage))
{
<div class="grid-row">
<div class="column-full">
... | @using SFA.DAS.EAS.Web
@using SFA.DAS.EAS.Web.Models
@model dynamic
@{
var viewModel = Model as OrchestratorResponse;
}
@if (!string.IsNullOrEmpty(viewModel?.FlashMessage?.Message) || !string.IsNullOrEmpty(viewModel?.FlashMessage?.SubMessage))
{
<div class="grid-row">
<div class="column-full">
... | Write out raw HTML if SubMessage contains any | Write out raw HTML if SubMessage contains any
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
0161d607e6bb4944c991f39a2e405706efd0ae8d | Settings/LSFSettingsManager.cs | Settings/LSFSettingsManager.cs | using UnityEngine;
using System.Collections; using FastCollections;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace Lockstep
{
public static class LSFSettingsManager
{
public const string DEFAULT_SETTINGS_NAME = "DefaultLockstepFrameworkSettings";
public const string SETTINGS_NAME = "Lock... | using UnityEngine;
using System.Collections; using FastCollections;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace Lockstep
{
public static class LSFSettingsManager
{
public const string DEFAULT_SETTINGS_NAME = "DefaultLockstepFrameworkSettings";
public const string SETTINGS_NAME = "Lock... | Fix handling of deletion of settings file; | Fix handling of deletion of settings file;
| C# | mit | SnpM/Lockstep-Framework |
67ac57f5060232f992d85724e060fdc4e5122755 | Gu.Roslyn.Asserts.Tests.Net472WithAttributes/RoslynAssertTests.cs | Gu.Roslyn.Asserts.Tests.Net472WithAttributes/RoslynAssertTests.cs | namespace Gu.Roslyn.Asserts.Tests.Net472WithAttributes
{
using Gu.Roslyn.Asserts.Tests.Net472WithAttributes.AnalyzersAndFixes;
using NUnit.Framework;
public partial class RoslynAssertTests
{
[Test]
public void ResetMetadataReferences()
{
CollectionAssert.IsNotEmpty(R... | namespace Gu.Roslyn.Asserts.Tests.Net472WithAttributes
{
using Gu.Roslyn.Asserts.Tests.Net472WithAttributes.AnalyzersAndFixes;
using NUnit.Framework;
public partial class RoslynAssertTests
{
[Test]
public void ResetMetadataReferences()
{
CollectionAssert.IsNotEmpty(R... | Rename types in test code. | Rename types in test code.
| C# | mit | JohanLarsson/Gu.Roslyn.Asserts |
f6cf8d71a4f93f12fa66fa5f1e31d819a657b0cf | LmpClient/Windows/Chat/ChatDrawer.cs | LmpClient/Windows/Chat/ChatDrawer.cs | using LmpClient.Localization;
using LmpClient.Systems.Chat;
using UnityEngine;
namespace LmpClient.Windows.Chat
{
public partial class ChatWindow
{
private static string _chatInputText = string.Empty;
protected override void DrawWindowContent(int windowId)
{
var pressedEnt... | using LmpClient.Localization;
using LmpClient.Systems.Chat;
using UnityEngine;
namespace LmpClient.Windows.Chat
{
public partial class ChatWindow
{
private static string _chatInputText = string.Empty;
protected override void DrawWindowContent(int windowId)
{
var pressedEnt... | Make the chat input only update when enter is not pressed | Make the chat input only update when enter is not pressed
| C# | mit | gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer |
32aac83e5fa7ec7df8935cbd2498cd13bdb88554 | Editor/DisableAfterTimeEditor.cs | Editor/DisableAfterTimeEditor.cs | using UnityEngine;
using System.Collections;
using UnityEditor;
using OneDayGame;
namespace DisableAfterTimeEx {
[CustomEditor(typeof (DisableAfterTime))]
public class DisableAfterTimeEditor : Editor {
private SerializedProperty targetGO;
private SerializedProperty delay;
private vo... | using UnityEngine;
using System.Collections;
using UnityEditor;
using OneDayGame;
namespace DisableAfterTimeEx {
[CustomEditor(typeof (DisableAfterTime))]
public class DisableAfterTimeEditor : Editor {
private SerializedProperty targetGO;
private SerializedProperty delay;
private vo... | Add tooltips and extract inspector classes | Add tooltips and extract inspector classes
| C# | mit | bartlomiejwolk/DisableAfterTime |
c9c28603a7f1d0fa01f65782e26108242c0fa2d8 | src/SyncTrayzor/Syncthing/ApiClient/SyncthingHttpClientHandler.cs | src/SyncTrayzor/Syncthing/ApiClient/SyncthingHttpClientHandler.cs | using NLog;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System;
namespace SyncTrayzor.Syncthing.ApiClient
{
public class SyncthingHttpClientHandler : WebRequestHandler
{
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
public S... | using NLog;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System;
namespace SyncTrayzor.Syncthing.ApiClient
{
public class SyncthingHttpClientHandler : WebRequestHandler
{
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
public S... | Remove code which logs empty responses | Remove code which logs empty responses
We solved that issue, and now it just pops up for lots of requests which have geniunely
empty responses.
| C# | mit | canton7/SyncTrayzor,canton7/SyncTrayzor,canton7/SyncTrayzor |
d3541816a637f8ccb105622ac71027a096b9009c | LxRunOffline/Program.cs | LxRunOffline/Program.cs | using System;
using System.Diagnostics;
using EasyHook;
namespace LxRunOffline
{
class Program
{
static void Main(string[] args)
{
int pId = 0;
try
{
RemoteHooking.CreateAndInject(@"C:\Windows\System32\LxRun.exe", string.Join(" ", args), 0, "LxRunHook.dll", "LxRunHook.dll", out pId);
}
catch ... | using System;
using System.Diagnostics;
using EasyHook;
namespace LxRunOffline
{
class Program
{
static void Main(string[] args)
{
int pId = 0;
try
{
RemoteHooking.CreateAndInject(@"C:\Windows\System32\LxRun.exe", string.Join(" ", args), 0, "LxRunHook.dll", "LxRunHook.dll", out pId);
}
catch ... | Reset console color on exit. | Reset console color on exit.
| C# | mit | sqc1999/LxRunOffline |
a0d6e8cb97848c490ca51d802768a68996c3f2ca | QuickFont/QFontGlyph.cs | QuickFont/QFontGlyph.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace QuickFont {
public sealed class QFontGlyph {
/// <summary>
/// Which texture page the glyph is on
/// </summary>
public int Page {
get;
private set;
}... | using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace QuickFont {
public sealed class QFontGlyph {
/// <summary>
/// Which texture page the glyph is on
/// </summary>
public int Page {
get;
private set;
}... | Allow suppression of colour for specific glyphs. | Allow suppression of colour for specific glyphs.
| C# | mit | SirSengir/QuickFont |
58c71090998ae40865ef236c9b570b1f91eb75ea | Rhino.ServiceBus/Hosting/AbstractBootStrapper.cs | Rhino.ServiceBus/Hosting/AbstractBootStrapper.cs | using System;
using System.Reflection;
using Rhino.ServiceBus.Config;
using Rhino.ServiceBus.Impl;
namespace Rhino.ServiceBus.Hosting
{
public abstract class AbstractBootStrapper : IDisposable
{
private AbstractRhinoServiceBusConfiguration config;
public virtual Assembly Assembly
... | using System;
using System.Reflection;
using Rhino.ServiceBus.Config;
using Rhino.ServiceBus.Impl;
namespace Rhino.ServiceBus.Hosting
{
public abstract class AbstractBootStrapper : IDisposable
{
private AbstractRhinoServiceBusConfiguration config;
public virtual Assembly Assembly
... | Move config.Configure to BeforeStart which gives the overloads the chance to change it before it throw because it dose not found an configuration. | Move config.Configure to BeforeStart which gives the overloads the chance to change it before it throw because it dose not found an configuration.
| C# | bsd-3-clause | hibernating-rhinos/rhino-esb,ketiko/rhino-esb |
aea03409a37d3f35379bcbb94d2e68bb5abb6746 | src/BloomTests/web/ReadersApiTests.cs | src/BloomTests/web/ReadersApiTests.cs | using Bloom.Api;
using Bloom.Book;
using Bloom.Collection;
using NUnit.Framework;
namespace BloomTests.web
{
[TestFixture]
public class ReadersApiTests
{
private EnhancedImageServer _server;
[SetUp]
public void Setup()
{
var bookSelection = new BookSelection();
bookSelection.SelectBook(new Bloom.Book... | using Bloom.Api;
using Bloom.Book;
using Bloom.Collection;
using NUnit.Framework;
namespace BloomTests.web
{
[TestFixture]
public class ReadersApiTests
{
private EnhancedImageServer _server;
[SetUp]
public void Setup()
{
var bookSelection = new BookSelection();
bookSelection.SelectBook(new Bloom.Book... | Fix url of api test | Fix url of api test
| C# | mit | andrew-polk/BloomDesktop,JohnThomson/BloomDesktop,StephenMcConnel/BloomDesktop,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,andrew-polk/BloomDesktop,gmartin7/myBloomFork,JohnThomson/BloomDesktop,gmartin7/myBloomFork,gmartin7/myBloomFork,JohnThomson/BloomDesktop,andrew-polk/BloomDesktop,gmar... |
4509c8bcfbcf9fc2a9d6010d707868312fc13cea | osu.Game.Rulesets.Catch/Edit/Blueprints/Components/PlacementEditablePath.cs | osu.Game.Rulesets.Catch/Edit/Blueprints/Components/PlacementEditablePath.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Game.Rulesets.Catch.Objects;
using osuTK;
namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components
{
public class PlacementEditablePath :... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Game.Rulesets.Catch.Objects;
using osuTK;
namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components
{
public class PlacementEditablePath :... | Use the more consistent `lastVertex`, with a comment | Use the more consistent `lastVertex`, with a comment
| C# | mit | peppy/osu-new,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,smoogipooo/osu,peppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu |
6dbdfcc70cd9f228707977e34bb56329e97b867f | osu.Game/Online/Rooms/JoinRoomRequest.cs | osu.Game/Online/Rooms/JoinRoomRequest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Net.Http;
using osu.Framework.IO.Network;
using osu.Game.Online.API;
namespace osu.Game.Online.Rooms
{
public class JoinRoomRequest : APIRequest
{
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Net.Http;
using osu.Framework.IO.Network;
using osu.Game.Online.API;
namespace osu.Game.Online.Rooms
{
public class JoinRoomRequest : APIRequest
{
... | Fix room password not being percent-encoded in join request | Fix room password not being percent-encoded in join request
| C# | mit | UselessToucan/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,smoogipoo/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu |
d44a89e32b735164e38339e7a9fbd5cd60cba8c6 | src/Editor/Editor.Client/Tools/ToolClose.cs | src/Editor/Editor.Client/Tools/ToolClose.cs | using System.ComponentModel.Composition;
namespace Flood.Editor.Controls
{
class ToolClose : EditorTool, BarTool
{
[Import]
DocumentManager docManager;
public void OnSelect()
{
if (docManager.Current != null)
docManager.Close(docManager.Current.Id);... | using System.ComponentModel.Composition;
namespace Flood.Editor.Controls
{
class ToolClose : EditorTool, BarTool
{
[Import]
DocumentManager docManager;
public void OnSelect()
{
//if (docManager.Current != null)
// docManager.Close(docManager.Current.... | Disable document selection by id. | Disable document selection by id.
| C# | bsd-2-clause | FloodProject/flood,FloodProject/flood,FloodProject/flood |
73a2873d760ee61f8a642ceb911c1a2ea079cde0 | GitDataExplorer/Results/ListSimpleCommitsResult.cs | GitDataExplorer/Results/ListSimpleCommitsResult.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using GitDataExplorer.Results.Commits;
namespace GitDataExplorer.Results
{
class ListSimpleCommitsResult : IResult
{
public ExecutionResult ExecutionResult { get; private set; }
public IList<SimpleCommitResult> Comm... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using GitDataExplorer.Results.Commits;
namespace GitDataExplorer.Results
{
class ListSimpleCommitsResult : IResult
{
private char[] statusLetters = { 'M', 'A', 'R', 'C', 'D' };
public ExecutionResult ExecutionResult... | Add deleted and copied to the parsed statuses | Add deleted and copied to the parsed statuses
| C# | apache-2.0 | Thulur/GitStatisticsAnalyzer,Thulur/GitDataExplorer |
35918c9970c1ca98f6ce5d654284c2a44a87b7f1 | Nilgiri.Tests/Examples/Should/NotBeOk.cs | Nilgiri.Tests/Examples/Should/NotBeOk.cs | namespace Nilgiri.Examples
{
using Xunit;
using Nilgiri.Tests.Common;
using static Nilgiri.ShouldStyle;
public partial class ExampleOf_Should
{
public class Not_Be_Ok
{
[Fact]
public void Int32()
{
_(0).Should.Not.Be.Ok();
_(() => 0).Should.Not.Be.Ok();
}
... | namespace Nilgiri.Examples
{
using Xunit;
using Nilgiri.Tests.Common;
using static Nilgiri.ShouldStyle;
public partial class ExampleOf_Should
{
public class Not_Be_Ok
{
[Fact]
public void Int32()
{
_(0).Should.Not.Be.Ok();
_(() => 0).Should.Not.Be.Ok();
}
... | Add missing Nullable example | Add missing Nullable example [ci skip]
| C# | mit | brycekbargar/Nilgiri,brycekbargar/Nilgiri |
fee4986ff8f6c739de7bd82ef2b4374216259095 | Nop.Plugin.Api/Constants/WebHookNames.cs | Nop.Plugin.Api/Constants/WebHookNames.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nop.Plugin.Api.Constants
{
public static class WebHookNames
{
public const string FiltersGetAction = "FiltersGetAction";
public const string GetWebhookByIdAction = "Ge... | namespace Nop.Plugin.Api.Constants
{
public static class WebHookNames
{
public const string FiltersGetAction = "FiltersGetAction";
public const string GetWebhookByIdAction = "GetWebHookByIdAction";
public const string CustomerCreated = "customers/created";
public const string ... | Change the web hook names | Change the web hook names
| C# | mit | SevenSpikes/api-plugin-for-nopcommerce,SevenSpikes/api-plugin-for-nopcommerce |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.