commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
f72bab4960ef73e37dfa3109bd88d8b65b7e1563 | make other invocations async | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Controls/TccPopup.cs | TCC.Core/Controls/TccPopup.cs | using System;
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
namespace TCC.Controls
{
public class TccPopup : Popup
{
public double MouseLeaveTolerance
{
get => (double)GetValue(MouseLeaveToleranceProperty);
set => SetValue(M... | using System;
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
namespace TCC.Controls
{
public class TccPopup : Popup
{
public double MouseLeaveTolerance
{
get => (double)GetValue(MouseLeaveToleranceProperty);
set => SetValue(M... | mit | C# |
0ed1aa59d12427fb76ef6d6ed25922f979793380 | Update AssemblyInfo.cs | Guaranteed-Rate/Net.RequestStiching | Clients/Properties/AssemblyInfo.cs | Clients/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Request stitching HTTP client")]
[assembl... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Request stitching HTTP client")]
[assembl... | apache-2.0 | C# |
25518ac1a3d1c4ccbe5828ba9ce365661d3681d8 | Fix calculation in GDAXFeeModel | jameschch/Lean,redmeros/Lean,Jay-Jay-D/LeanSTP,StefanoRaggi/Lean,QuantConnect/Lean,Jay-Jay-D/LeanSTP,AlexCatarino/Lean,AlexCatarino/Lean,Jay-Jay-D/LeanSTP,QuantConnect/Lean,AnshulYADAV007/Lean,kaffeebrauer/Lean,StefanoRaggi/Lean,redmeros/Lean,jameschch/Lean,kaffeebrauer/Lean,StefanoRaggi/Lean,jameschch/Lean,AlexCatarin... | Common/Orders/Fees/GDAXFeeModel.cs | Common/Orders/Fees/GDAXFeeModel.cs | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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... | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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... | apache-2.0 | C# |
bb15dd4fbac85a23350bed14a6831f8f6f8bc5e8 | Update Program.cs | MShechtman/Test2 | ConsoleApp1/ConsoleApp1/Program.cs | ConsoleApp1/ConsoleApp1/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
//new test on master 2
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
ef9e31dc740e513d68ff7f2feb750df52d582deb | fix test | mstyura/Anotar,Fody/Anotar,distantcam/Anotar,modulexcite/Anotar | Tests/MockAssemblyResolver.cs | Tests/MockAssemblyResolver.cs | using System;
using System.IO;
using System.Reflection;
using Mono.Cecil;
public class MockAssemblyResolver : IAssemblyResolver
{
public AssemblyDefinition Resolve(AssemblyNameReference name)
{
var fileName = Path.Combine(Directory, name.Name) + ".dll";
if (File.Exists(fileName))
{
... | using System;
using System.IO;
using System.Reflection;
using Mono.Cecil;
public class MockAssemblyResolver : IAssemblyResolver
{
public AssemblyDefinition Resolve(AssemblyNameReference name)
{
var fileName = Path.Combine(Directory, name.Name) + ".dll";
if (File.Exists(fileName))
{
... | mit | C# |
725ca8fc86127d04c8dd5a1dc23a3b4d4ec4d5f5 | Throw specific exception in OldestNonAckedMessageUpdaterPeriodicAction | Abc-Arbitrage/Zebus | src/Abc.Zebus.Persistence.CQL/PeriodicAction/OldestNonAckedMessageUpdaterPeriodicAction.cs | src/Abc.Zebus.Persistence.CQL/PeriodicAction/OldestNonAckedMessageUpdaterPeriodicAction.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Abc.Zebus.Hosting;
using Abc.Zebus.Persistence.CQL.Storage;
using Abc.Zebus.Persistence.Storage;
using Abc.Zebus.Util;
namespace Abc.Zebus.Persistence.CQL.PeriodicAction
{
public class OldestNonAckedMessageUpdat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Abc.Zebus.Hosting;
using Abc.Zebus.Persistence.CQL.Storage;
using Abc.Zebus.Persistence.Storage;
using Abc.Zebus.Util;
namespace Abc.Zebus.Persistence.CQL.PeriodicAction
{
public class OldestNonAckedMessageUpdat... | mit | C# |
75ae37eacdddbbaa42174694dcf0641dac4e86da | add aria-label to form field without <label> tag | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerApprenticeshipsService.Web/Views/EmployerAccount/SelectEmployer.cshtml | src/SFA.DAS.EmployerApprenticeshipsService.Web/Views/EmployerAccount/SelectEmployer.cshtml | <div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-medium">Search for your company</h1>
<p>
We need to add a company name to the contract between you and the Skills Funding Agency.
To find your company enter the company number of your organisation that... | <div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-medium">Search for your company</h1>
<p>
We need to add a company name to the contract between you and the Skills Funding Agency.
To find your company enter the company number of your organisation that... | mit | C# |
226440debd9c9df579df302620b050a41474dd29 | fix tests | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/src/resharper-unity/Rider/Settings/UiMinimizerSettings.cs | resharper/src/resharper-unity/Rider/Settings/UiMinimizerSettings.cs | using JetBrains.Application.Settings;
using JetBrains.DataFlow;
using JetBrains.Platform.RdFramework.Base;
using JetBrains.Platform.RdFramework.Util;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Host.Features;
using JetBrains.ReSharper.Plugins.Unity.Settings;
using JetBrains.Rider.Model;
namespace JetBrain... | using JetBrains.Application.Settings;
using JetBrains.DataFlow;
using JetBrains.Platform.RdFramework.Base;
using JetBrains.Platform.RdFramework.Util;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Host.Features;
using JetBrains.ReSharper.Plugins.Unity.Settings;
using JetBrains.Rider.Model;
namespace JetBrain... | apache-2.0 | C# |
983b81397bac3a393437ddb5aaeb59d5bb8260d6 | Add using for db context | nProdanov/Team-French-75 | TravelAgency/TravelAgency.Client/Startup.cs | TravelAgency/TravelAgency.Client/Startup.cs | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TravelAgency.Data;
using TravelAgency.Data.Migrations;
using TravelAgency.MongoDbExtractor;
namespace TravelAgency.Client
{
public class Startup
{
public... | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TravelAgency.Data;
using TravelAgency.Data.Migrations;
using TravelAgency.MongoDbExtractor;
namespace TravelAgency.Client
{
public class Startup
{
public... | mit | C# |
50872a49309ce701e894fdd3b1348f9fb38a0229 | Update Version : 1.7.171.0 URL Changes + Fix User Manager Delete | Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal | Master/Appleseed/Projects/Appleseed.Framework.Web.UI.WebControls/Properties/AssemblyInfo.cs | Master/Appleseed/Projects/Appleseed.Framework.Web.UI.WebControls/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ap... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ap... | apache-2.0 | C# |
f5267fc14546c369c440db56569572568ae9a9d5 | Rename SetInt & GetInt -> SetInt32 & GetInt32 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Http.Extensions/SessionCollectionExtensions.cs | src/Microsoft.AspNet.Http.Extensions/SessionCollectionExtensions.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Text;
namespace Microsoft.AspNet.Http
{
public static class SessionCollectionExtensions
{
... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Text;
namespace Microsoft.AspNet.Http
{
public static class SessionCollectionExtensions
{
... | apache-2.0 | C# |
adc5c7a407a4bee4fa4a68bc43428d358a590ace | Fix filter bug in MessagesTemplate.cs | Rickedb/OpenProtocolInterpreter,Rickedb/OpenProtocolIntepreter | src/OpenProtocolInterpreter/_internals/Messages/MessagesTemplate.cs | src/OpenProtocolInterpreter/_internals/Messages/MessagesTemplate.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace OpenProtocolInterpreter.Messages
{
internal abstract class MessagesTemplate : IMessagesTemplate
{
protected IDictionary<int, MidCompiledInstance> _templates;
public MessagesTemplate()
{
_templates... | using System;
using System.Collections.Generic;
using System.Linq;
namespace OpenProtocolInterpreter.Messages
{
internal abstract class MessagesTemplate : IMessagesTemplate
{
protected IDictionary<int, MidCompiledInstance> _templates;
public MessagesTemplate()
{
_templates... | mit | C# |
fde783911b0b671dc4307ef5bcb2a9bc5e4a51bf | Remove extra cast for IPEndPoint (#17812) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Servers/Kestrel/Transport.MsQuic/src/MsQuicConnectionFactory.cs | src/Servers/Kestrel/Transport.MsQuic/src/MsQuicConnectionFactory.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;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Connections;
using M... | // 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;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Connections;
using M... | apache-2.0 | C# |
61ffd0e6fbb4685ebf638a89ac630e53caad107e | remove unused attribute | shyamnamboodiripad/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,dotnet/roslyn,mavasani/roslyn,CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,bartdesmet/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,dotnet/roslyn,mavasani/roslyn,CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,bartdesmet/roslyn,shyamnamboodiripad/roslyn,Cyr... | src/EditorFeatures/CSharpTest/Completion/CompletionProviders/Snippets/AbstractCSharpLSPSnippetTests.cs | src/EditorFeatures/CSharpTest/Completion/CompletionProviders/Snippets/AbstractCSharpLSPSnippetTests.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.
#nullable disable
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAna... | // 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.
#nullable disable
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAna... | mit | C# |
8397a70fe103adaeae3aa85a161cf8abd9af728d | Change of LevyAggregationRepository not to use the constructor parameter and instead to read this parameter from config in the interim, until the Table Storage part is removed. | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Data/LevyAggregationRepository.cs | src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Data/LevyAggregationRepository.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Azure;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using Newtonsoft.Json;
using SFA.DAS.EmployerApprenticeshipsService.Domain;
using SFA.DAS.EmployerApprenticeshipsService.Domain.Data;
using SFA.DAS.Em... | using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Azure;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using Newtonsoft.Json;
using SFA.DAS.EmployerApprenticeshipsService.Domain;
using SFA.DAS.EmployerApprenticeshipsService.Domain.Data;
using SFA.DAS.Em... | mit | C# |
c86df114c9a5149f28b9ea71353eb736b2bcf342 | Fix a bug in zabbix protocol with errors | RFQ-hub/ZabbixAgentLib | src/ZabbixAgent/Core/ZabbixProtocol.cs | src/ZabbixAgent/Core/ZabbixProtocol.cs | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using JetBrains.Annotations;
namespace Itg.ZabbixAgent.Core
{
internal class ZabbixProtocol
{
private static readonly byte[] headerBytes = Encoding.ASCII.GetBytes(ZabbixConstants.HeaderString);
private static readonly... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using JetBrains.Annotations;
namespace Itg.ZabbixAgent.Core
{
internal class ZabbixProtocol
{
private static readonly byte[] headerBytes = Encoding.ASCII.GetBytes(ZabbixConstants.HeaderString);
private static readonly... | mit | C# |
28dcfe867c3afc866791d2d43934ae0a7626586d | Add Chroma keying to the background of the showcase video. | peppy/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,peppy/osu-new,ppy/osu,peppy/osu,NeoAdonis/osu | osu.Game.Tournament/Screens/Showcase/ShowcaseScreen.cs | osu.Game.Tournament/Screens/Showcase/ShowcaseScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Tournament.Components;
using osu.Framework.Graphics.Shapes;
using osuTK.Graphics;
namespace ... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Tournament.Components;
namespace osu.Game.Tournament.Screens.Showcase
{
public class Sho... | mit | C# |
c5e401d6788bf7219b5118186b1c4b866c956deb | Update usages to consume `IRulesetStore` | ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu | osu.Game/Scoring/Legacy/DatabasedLegacyScoreDecoder.cs | osu.Game/Scoring/Legacy/DatabasedLegacyScoreDecoder.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.Rulesets;
namespace osu.Game.Scoring.Legacy
{
/// <summary>
/// A <see cref="LegacyScoreDecoder"/> which retrieves the a... | // 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.Rulesets;
namespace osu.Game.Scoring.Legacy
{
/// <summary>
/// A <see cref="LegacyScoreDecoder"/> which retrieves the a... | mit | C# |
f59ba799d30390f030fcac0e12ac99a1893f78f4 | Adjust operation tracker implementation | UselessToucan/osu,UselessToucan/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu | osu.Game/Screens/OnlinePlay/OngoingOperationTracker.cs | osu.Game/Screens/OnlinePlay/OngoingOperationTracker.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.Framework.Allocation;
using osu.Framework.Bindables;
namespace osu.Game.Screens.OnlinePlay
{
/// <summary>
/// Utility class to track ong... | // 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.Bindables;
namespace osu.Game.Screens.OnlinePlay
{
/// <summary>
/// Utility class to track ongoing online operations' progress... | mit | C# |
7da21c1d2707ffd70fcafe75078884ec6687ae1b | Handle existing args format | cmgutmanis/Sitecore-Courier,csteeg/Sitecore-Courier,rauljmz/Sitecore-Courier,unic/Sitecore-Courier,adoprog/Sitecore-Courier | Sitecore.Courier.Runner/Program.cs | Sitecore.Courier.Runner/Program.cs | namespace Sitecore.Courier.Runner
{
using Sitecore.Update;
using Sitecore.Update.Engine;
using System;
/// <summary>
/// Defines the program class.
/// </summary>
internal class Program
{
/// <summary>
/// Mains the specified args.
/// </summary>
/// <pa... | namespace Sitecore.Courier.Runner
{
using Sitecore.Update;
using Sitecore.Update.Engine;
using System;
/// <summary>
/// Defines the program class.
/// </summary>
internal class Program
{
/// <summary>
/// Mains the specified args.
/// </summary>
/// <pa... | mit | C# |
85bcb7ad2b439ec5f4f5332425bcf358a5ce0020 | Update migration | markoliver288/Umbraco-CMS,rajendra1809/Umbraco-CMS,Scott-Herbert/Umbraco-CMS,christopherbauer/Umbraco-CMS,kasperhhk/Umbraco-CMS,markoliver288/Umbraco-CMS,VDBBjorn/Umbraco-CMS,Spijkerboer/Umbraco-CMS,mstodd/Umbraco-CMS,tompipe/Umbraco-CMS,tcmorris/Umbraco-CMS,lingxyd/Umbraco-CMS,neilgaietto/Umbraco-CMS,WebCentrum/Umbrac... | src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSevenTwoZero/AddIndexToUmbracoNodeTable.cs | src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSevenTwoZero/AddIndexToUmbracoNodeTable.cs | using System.Linq;
using Umbraco.Core.Configuration;
using Umbraco.Core.Persistence.DatabaseModelDefinitions;
using Umbraco.Core.Persistence.SqlSyntax;
namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSevenTwoZero
{
[Migration("7.2.0", 3, GlobalSettings.UmbracoMigrationName)]
public class Ad... | using System.Linq;
using Umbraco.Core.Configuration;
using Umbraco.Core.Persistence.DatabaseModelDefinitions;
using Umbraco.Core.Persistence.SqlSyntax;
namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSevenTwoZero
{
[Migration("7.2.0", 3, GlobalSettings.UmbracoMigrationName)]
public class Ad... | mit | C# |
d12897e5de5087584198f2bb22341e2354fa90db | Update outdated comment | dcastro/AutoFixture,zvirja/AutoFixture,sbrockway/AutoFixture,AutoFixture/AutoFixture,hackle/AutoFixture,adamchester/AutoFixture,sbrockway/AutoFixture,adamchester/AutoFixture,Pvlerick/AutoFixture,hackle/AutoFixture,dcastro/AutoFixture,sergeyshushlyapin/AutoFixture,sean-gilliam/AutoFixture,sergeyshushlyapin/AutoFixture | Src/AutoFixture/ElementsBuilder.cs | Src/AutoFixture/ElementsBuilder.cs | using Ploeh.AutoFixture.Kernel;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Ploeh.AutoFixture
{
/// <summary>
/// Draws a random element from the given collection
/// </summary>
/// <typeparam name="T"></typeparam>
public sealed class ElementsBuilder<T> : ISpecimen... | using Ploeh.AutoFixture.Kernel;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Ploeh.AutoFixture
{
/// <summary>
/// Draws a random element from the given collection
/// </summary>
/// <typeparam name="T"></typeparam>
public sealed class ElementsBuilder<T> : ISpecimen... | mit | C# |
00f188d11638988c9040effa50b178a12f741aab | Revert "." | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.UI/Data/AbnormalityDuration.cs | TCC.UI/Data/AbnormalityDuration.cs | using System;
using System.Timers;
using TCC.Data;
namespace TCC
{
public class AbnormalityDuration : IDisposable
{
public ulong Target { get; set; }
public Abnormality Abnormality { get; set; }
public int Duration { get; set; }
public int Stacks { get; set; }
public Ti... | using System;
using System.Timers;
using TCC.Data;
namespace TCC
{
public class AbnormalityDuration : IDisposable
{
public ulong Target { get; set; }
public Abnormality Abnormality { get; set; }
public int Duration { get; set; }
public int Stacks { get; set; }
public Ti... | mit | C# |
7a593e75768152ffc2ffc593220d50d576a553b2 | Remove jQuery UI. | bigfont/orchard-cms-modules-and-themes,bigfont/orchard-cms-modules-and-themes,bigfont/orchard-cms-modules-and-themes,bigfont/orchard-cms-modules-and-themes,bigfont/orchard-cms-modules-and-themes | Orchard.Source.1.8/src/Orchard.Web/Modules/BigFont.TheThemeMachineDesigner/Views/TraceThemeWrapper.cshtml | Orchard.Source.1.8/src/Orchard.Web/Modules/BigFont.TheThemeMachineDesigner/Views/TraceThemeWrapper.cshtml | @{
// The purpose of this wrapper is simply to add JavaScript and CSS.
// We add CSS through JavaScript.
////Script.Require("jQueryUI").AtHead();
Script.Include("CssLoader.js").AtHead();
Script.Include("DragAndDrop.js").AtHead();
Style.Include("theme-designer.css");
}
@Display(Model.Metadata.C... | @{
// The purpose of this wrapper is simply to add JavaScript and CSS.
// We add CSS through JavaScript.
Script.Require("jQueryUI").AtHead();
Script.Include("CssLoader.js").AtHead();
Script.Include("DragAndDrop.js").AtHead();
Style.Include("theme-designer.css");
}
@Display(Model.Metadata.C... | bsd-3-clause | C# |
9829fe957fe2f63f17066615bdf6d7145f7a5a43 | Use `Drawable.ToString` in `LoadingComponentsLogger` | smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework | osu.Framework/Logging/LoadingComponentsLogger.cs | osu.Framework/Logging/LoadingComponentsLogger.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.Linq;
using osu.Framework.Development;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Lists;
namespace osu.Frame... | // 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.Linq;
using osu.Framework.Development;
using osu.Framework.Extensions.TypeExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
... | mit | C# |
d799090b1b8978a4e7eba0856ecd017c5be0c22f | Initialize HostnameCommand with dependencies | appharbor/appharbor-cli | src/AppHarbor/Commands/HostnameCommand.cs | src/AppHarbor/Commands/HostnameCommand.cs | using System;
using System.IO;
namespace AppHarbor.Commands
{
public class HostnameCommand : ICommand
{
private readonly IApplicationConfiguration _applicationConfiguration;
private readonly IAppHarborClient _appharborClient;
private readonly TextWriter _writer;
public HostnameCommand(IApplicationConfigura... | using System;
namespace AppHarbor.Commands
{
public class HostnameCommand : ICommand
{
public void Execute(string[] arguments)
{
throw new NotImplementedException();
}
}
}
| mit | C# |
aabbd691ca1f0454ea60b826413ca71926eecfae | Remove unused property from GuiWindow. | FloodProject/flood,FloodProject/flood,FloodProject/flood | src/Editor/Editor.Client/GUI/GuiWindow.cs | src/Editor/Editor.Client/GUI/GuiWindow.cs | using System;
using Flood.GUI.Controls;
using Flood.GUI.Renderers;
using Flood.GUI.Skins;
namespace Flood.Editor.Client.Gui
{
public abstract class GuiWindow : IDisposable
{
/// <summary>
/// Renderer of the GUI.
/// </summary>
public Renderer Renderer { get; private set; }
... | using System;
using Flood.GUI.Controls;
using Flood.GUI.Renderers;
using Flood.GUI.Skins;
namespace Flood.Editor.Client.Gui
{
public abstract class GuiWindow : IDisposable
{
/// <summary>
/// Native GUI window.
/// </summary>
public Window NativeWindow { get; set; }
/... | bsd-2-clause | C# |
19905a1b0b7a3cd8f9c5492ff9e781dddf19379f | Update AssemblyInfo | HoLLy-HaCKeR/osu-database-reader | osu-database-reader/Properties/AssemblyInfo.cs | osu-database-reader/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("osu-database-reader")]
[assembly: Assembl... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("osu-database-reader")]
[assembly: Assembl... | mit | C# |
a88288cbd75afbeea55146e268866c70af631f82 | Fix using | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewLocator.cs | WalletWasabi.Fluent/ViewLocator.cs | using System;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
using WalletWasabi.Fluent.ViewModels;
namespace WalletWasabi.Fluent
{
[StaticViewLocator]
public partial class ViewLocator : IDataTemplate
{
public IControl Build(object data)
{
var type = data.GetType();
if (s_views.TryGetValue(typ... | using System;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Fluent
{
[StaticViewLocator]
public partial class ViewLocator : IDataTemplate
{
public IControl Build(object data)
{
var type = data.GetType();
if (s_views.TryGetValue(type, ... | mit | C# |
08ac8869e87727ff0220e86c3994e759599606e6 | Fix tick controller 2 | knexer/Chinese-Rooms-what-do-they-know-do-they-know-things-lets-find-out | Assets/Scripts/TickController.cs | Assets/Scripts/TickController.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TickController : MonoBehaviour {
public static TickController Obj;
public delegate void TickEventHandler(float lengthOfTickSeconds);
public static event TickEventHandler MoveTickEvent;
public static event Tic... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TickController : MonoBehaviour {
public static TickController Obj;
public delegate void TickEventHandler(float lengthOfTickSeconds);
public static event TickEventHandler MoveTickEvent;
public static event Tic... | mit | C# |
befc10ce9620ba8d48b2eaedbe27babdd650573e | Update TetheredPlacement.cs (#10566) | killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MRTK/Examples/Demos/HandTracking/Scripts/TetheredPlacement.cs | Assets/MRTK/Examples/Demos/HandTracking/Scripts/TetheredPlacement.cs | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEngine;
using UnityEngine.Serialization;
namespace Microsoft.MixedReality.Toolkit.Examples.Demos
{
/// <summary>
/// Helper script to respawn objects if they go too far from their original position. Useful for objects that ... | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Examples.Demos
{
/// <summary>
/// Helper script to respawn objects if they go too far from their original position. Useful for objects that will fall forever etc.
/// </... | mit | C# |
c03678ff043a754b85ecc45ada99fadd1616bb50 | adjust namespace import | tonytang-microsoft-com/autorest,jkonecki/autorest,vasanthangel4/autorest,sergey-shandar/autorest,anudeepsharma/autorest,jianghaolu/AutoRest,sergey-shandar/autorest,fhoring/autorest,John-Hart/autorest,xingwu1/autorest,BurtBiel/autorest,jhendrixMSFT/autorest,begoldsm/autorest,AzCiS/autorest,tonytang-microsoft-com/autores... | AutoRest/Generators/AcceptanceTests/NugetPackageTest/PackageTests.cs | AutoRest/Generators/AcceptanceTests/NugetPackageTest/PackageTests.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Newtonsoft.Json;
using Xunit;
using Xunit.Abstractions;
using Fixtures.Bodynumber;
using Microsoft.Rest.Generator.... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Fixtures.Bodynumber;
using Microsoft.Rest.Generator.CSharp.Tests;
using Newtonsoft.Json;
using System;
using Xunit;
using Xunit.... | mit | C# |
c513ea8d7672d8cea425e2c19ccf511f9b481798 | fix camera fov when switching screens | CyberCRI/Hero.Coli,CyberCRI/Hero.Coli | Assets/Scripts/Camera/cameraFollow.cs | Assets/Scripts/Camera/cameraFollow.cs | using UnityEngine;
using System.Collections;
public class cameraFollow : MonoBehaviour {
public Transform target;
public bool useScenePosition = true;
public Vector3 offset;
public bool _transition = true;
public bool _zoomed = false;
public float zoomedCameraDistanceMin = 5;
public float cameraDistanceMin = ... | using UnityEngine;
using System.Collections;
public class cameraFollow : MonoBehaviour {
public Transform target;
public bool useScenePosition = true;
public Vector3 offset;
public bool _transition = true;
public bool _zoomed = false;
public float zoomedCameraDistanceMin = 5;
public float cameraDistanceMin = ... | mit | C# |
10add2348296f78f5efa327188793d303cd7895b | 升级版本到2.0.5 | geffzhang/equeue,Aaron-Liu/equeue,Aaron-Liu/equeue,tangxuehua/equeue,tangxuehua/equeue,tangxuehua/equeue,geffzhang/equeue | src/EQueue/Properties/AssemblyInfo.cs | src/EQueue/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | mit | C# |
3c14ae7263bfb518c3701ce27127d399862b493c | Update ThomasLee.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/ThomasLee.cs | src/Firehose.Web/Authors/ThomasLee.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class ThomasLee : IAmAMicrosoftMVP
{
public string FirstName => "Thomas";
public string LastName... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class ThomasLee : IAmAMicrosoftMVP
{
public string FirstName => "Thomas";
public string LastName... | mit | C# |
89393562486d5a1dcabf5e97d9470ab9fe245b92 | add options to handle code blocks in formatting. | jokamjohn/Markdown-Edit,Tdue21/Markdown-Edit,mike-ward/Markdown-Edit,punker76/Markdown-Edit,dsuess/Markdown-Edit,Pulgafree/Markdown-Edit,chris84948/Markdown-Edit | src/MarkdownEdit/Models/FormatText.cs | src/MarkdownEdit/Models/FormatText.cs | using System.Diagnostics;
using System.IO;
using System.Text;
namespace MarkdownEdit.Models
{
internal static class FormatText
{
public static string Wrap(string text)
{
var tuple = Utility.SeperateFrontMatter(text);
var result = Pandoc(tuple.Item2, "--columns 80");
... | using System.Diagnostics;
using System.IO;
using System.Text;
namespace MarkdownEdit.Models
{
internal static class FormatText
{
public static string Wrap(string text)
{
var tuple = Utility.SeperateFrontMatter(text);
var result = Pandoc(tuple.Item2, "--columns 80");
... | mit | C# |
5c004533abe32e0493ea99a422daeb4608f69084 | Update spacing for project consistency | mroach/RollbarSharp,TheNeatCompany/RollbarSharp,TheNeatCompany/RollbarSharp,mteinum/RollbarSharp2,jmblab/RollbarSharp,mteinum/RollbarSharp2 | src/RollbarSharp/RollbarHttpModule.cs | src/RollbarSharp/RollbarHttpModule.cs | using System;
using System.Web;
namespace RollbarSharp
{
public class RollbarHttpModule : IHttpModule
{
public void Init(HttpApplication context)
{
context.Error += SendError;
}
public void Dispose()
{
}
private static void S... | using System;
using System.Web;
namespace RollbarSharp
{
public class RollbarHttpModule : IHttpModule
{
public void Init(HttpApplication context)
{
context.Error += SendError;
}
public void Dispose()
{
}
private void SendError(object sender, EventArgs e)
{
var applica... | apache-2.0 | C# |
556fd10adb440ec83e180a9fde9a6da4885349de | Change the Node to a class so we can use references rather than making copies of everything. | alekratz/apphack2-project | transf/Net/Node.cs | transf/Net/Node.cs | using System;
using System.Net;
using System.Collections.Generic;
using transf.Utils;
namespace transf.Net
{
public class Node
{
public string Nickname { get; set; }
public IPAddress RemoteAddress { get; set; }
public ulong LastCheckin { get; set; }
public const ulong MAX_TIMEOUT = 10000; // 10000 ms is th... | using System;
using System.Net;
using transf.Utils;
namespace transf.Net
{
public struct Node
{
public string Nickname { get; set; }
public IPAddress RemoteAddress { get; set; }
public ulong LastCheckin { get; set; }
public const ulong MAX_TIMEOUT = 10000; // 10000 ms is the timeout
/// <s... | agpl-3.0 | C# |
0f1252974315d6b465be399493eb51d32d9b9947 | Support more SIZE strings | robinrodricks/FluentFTP,robinrodricks/FluentFTP,robinrodricks/FluentFTP | FluentFTP/Servers/FtpServerStrings.cs | FluentFTP/Servers/FtpServerStrings.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace FluentFTP.Servers {
internal static class FtpServerStrings {
#region File Exists
/// <summary>
/// Error messages returned by various servers when a file does not exist.
/// Instead of throwing an error, we use these to detect and... | using System;
using System.Collections.Generic;
using System.Text;
namespace FluentFTP.Servers {
internal static class FtpServerStrings {
#region File Exists
/// <summary>
/// Error messages returned by various servers when a file does not exist.
/// Instead of throwing an error, we use these to detect and... | mit | C# |
987db297d8b7e83d3af570239c91ac838f0dccaa | Fix for bug 13581 [OpenGLES20Example crashes on ipodTouch 5.1.1] - The GetExtension () method always returns an extension with a dot and NSBundle.MainBundle.PathForResource () doesn’t support dot on iOS prior to version 6. | kingyond/monotouch-samples,davidrynn/monotouch-samples,davidrynn/monotouch-samples,xamarin/monotouch-samples,peteryule/monotouch-samples,peteryule/monotouch-samples,sakthivelnagarajan/monotouch-samples,robinlaide/monotouch-samples,sakthivelnagarajan/monotouch-samples,kingyond/monotouch-samples,kingyond/monotouch-sample... | OpenGL/OpenGLES20Example/GLTexture.cs | OpenGL/OpenGLES20Example/GLTexture.cs | using System;
using OpenTK.Graphics.ES20;
using MonoTouch.OpenGLES;
using System.IO;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreImage;
using MonoTouch.CoreGraphics;
using System.Drawing;
namespace OpenGLES20Example
{
public class GLTexture
{
string filename;
uint texture;
public GL... | using System;
using OpenTK.Graphics.ES20;
using MonoTouch.OpenGLES;
using System.IO;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreImage;
using MonoTouch.CoreGraphics;
using System.Drawing;
namespace OpenGLES20Example
{
public class GLTexture
{
string filename;
uint texture;
public GL... | mit | C# |
b59907b5cffc685eac713393e901846a69a802fa | Define and evaluate function, using defn defined in core.clj | ajlopez/ClojSharp | Src/ClojSharp.Core.Tests/CoreTests.cs | Src/ClojSharp.Core.Tests/CoreTests.cs | namespace ClojSharp.Core.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClojSharp.Core.Compiler;
using ClojSharp.Core.Forms;
using ClojSharp.Core.Language;
using ClojSharp.Core.SpecialForms;
using Microsoft.VisualStudio.... | namespace ClojSharp.Core.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClojSharp.Core.Forms;
using ClojSharp.Core.Language;
using ClojSharp.Core.SpecialForms;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestC... | mit | C# |
bebc7a75967daecdb8c03951701abcbdf46de6bc | Fix issue where RegisterScript did not load file in a IIS Virtual App environment | janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent,janjonas/OpenContent | Components/OpenContentWebpage.cs | Components/OpenContentWebpage.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Web;
using System.Web.UI;
using System.Web.WebPages;
using DotNetNuke.Web.Client;
using DotNetNuke.Web.Client.ClientResourceManagement;
namespace Satrabel.OpenContent.Components
{
public abstract... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Web;
using System.Web.UI;
using System.Web.WebPages;
using DotNetNuke.Web.Client;
using DotNetNuke.Web.Client.ClientResourceManagement;
namespace Satrabel.OpenContent.Components
{
public abstract... | mit | C# |
b65d1c4b793ef7e93b5c52234b7034e8b9be189c | Set TransitionTime with Scene | Q42/Q42.HueApi | src/Q42.HueApi/Models/Scene.cs | src/Q42.HueApi/Models/Scene.cs | using Newtonsoft.Json;
using Q42.HueApi.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Q42.HueApi.Models
{
[DataContract]
public class Scene
{
[DataMember]
public string Id { ge... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Q42.HueApi.Models
{
[DataContract]
public class Scene
{
[DataMember]
public string Id { get; set; }
[DataMember(Name = "name")]
publi... | mit | C# |
41cd7bf45ecbe5c310b8f627d987c0bb913f692b | Remove display name for Negotiate and Ntlm | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.IISPlatformHandler/IISPlatformHandlerOptions.cs | src/Microsoft.AspNet.IISPlatformHandler/IISPlatformHandlerOptions.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.Collections.Generic;
using Microsoft.AspNet.Http.Authentication;
namespace Microsoft.AspNet.IISPlatformHandler
{
public class IISPlat... | // 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.Collections.Generic;
using Microsoft.AspNet.Http.Authentication;
namespace Microsoft.AspNet.IISPlatformHandler
{
public class IISPlat... | apache-2.0 | C# |
a23bcbcc56a6be2b6fa7bca3cedd4f25dc8e9ecd | Add JSON Converter to date fields | Baggykiin/Curse.NET | Curse.NET/Model/CreateInviteResponse.cs | Curse.NET/Model/CreateInviteResponse.cs | using System;
using Newtonsoft.Json;
namespace Curse.NET.Model
{
public class CreateInviteResponse
{
public string InviteCode { get; set; }
public int CreatorID { get; set; }
public string CreatorName { get; set; }
public string GroupID { get; set; }
public Group Group { get; set; }
public string Channe... | namespace Curse.NET.Model
{
public class CreateInviteResponse
{
public string InviteCode { get; set; }
public int CreatorID { get; set; }
public string CreatorName { get; set; }
public string GroupID { get; set; }
public Group Group { get; set; }
public string ChannelID { get; set; }
public Channel Cha... | mit | C# |
f9145ce5b47555072d215c712809be66695952b1 | Fix playlist items added with the wrong IDs | NeoAdonis/osu,peppy/osu-new,UselessToucan/osu,2yangk23/osu,smoogipoo/osu,peppy/osu,EVAST9919/osu,peppy/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,johnneijzen/osu,ppy/osu,2yangk23/osu,peppy/osu,ppy/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,EVAST9919/osu,UselessToucan/osu | osu.Game/Screens/Select/MatchSongSelect.cs | osu.Game/Screens/Select/MatchSongSelect.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 System.Linq;
using Humanizer;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Screen... | // 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 System.Linq;
using Humanizer;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Screen... | mit | C# |
1dcc4056122589079c1dd6258a408b37f3b545ad | Build and publish nuget package | RockFramework/Rock.Logging | Rock.Logging/Properties/AssemblyInfo.cs | Rock.Logging/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ro... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ro... | mit | C# |
8bf2addc0ba135e6358e90d6c9d5fed8a4951885 | fix if condition in dashboard.cshtml | bradwestness/SecretSanta,bradwestness/SecretSanta | SecretSanta/Views/Home/Dashboard.cshtml | SecretSanta/Views/Home/Dashboard.cshtml | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<div class="row">
<div class="col-lg-6">
<h1>Welcome to Secret Santa, @ViewBag.CurrentUserAccount?.DisplayName!</h1>
@if (ViewBag.HasPicked != true)
{
<p>Looks like you haven't picked your rec... | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<div class="row">
<div class="col-lg-6">
<h1>Welcome to Secret Santa, @ViewBag.CurrentUserAccount?.DisplayName!</h1>
@if (!ViewBag.HasPicked)
{
<p>Looks like you haven't picked your recipient ... | apache-2.0 | C# |
be20452511ff96dcf87d4cf19f058bb300fd8215 | Allow #, take of string length from group | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Core/Domain/TestItem.cs | Anlab.Core/Domain/TestItem.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using System.Text.Encodings.Web;
namespace Anlab.Core.Domain
{
public class TestItem
{
[Key]
[StringLength(128)]
[Display(... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using System.Text.Encodings.Web;
namespace Anlab.Core.Domain
{
public class TestItem
{
[Key]
[StringLength(128)]
[Display(... | mit | C# |
5f6685ab8990850ca29f52c931ff82a023964423 | Remove some unneeded usings | dstockhammer/Brighter,BrighterCommand/Brighter,BrighterCommand/Brighter,BrighterCommand/Brighter,BrighterCommand/Paramore.Brighter,BrighterCommand/Paramore.Brighter,dstockhammer/Brighter | Examples/TasksCoreApi/Program.cs | Examples/TasksCoreApi/Program.cs | using System.IO;
using Microsoft.AspNetCore.Hosting;
namespace TasksApi
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Builder;
namespace TasksApi
{
public class Program
{
public static void Main(string[] args)
{
var host = ... | mit | C# |
32d10dd7f9c2ba181acad49397bf57a50f9635be | Fix 0x60 0x46 attackhitresult command size | HelloKitty/Booma.Proxy | src/Booma.Proxy.Packets.BlockServer/Commands/Command60/Sub60PlayerFinishedAttackStepEvent.cs | src/Booma.Proxy.Packets.BlockServer/Commands/Command60/Sub60PlayerFinishedAttackStepEvent.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
//https://sylverant.net/wiki/index.php/Packet_0x60#Subcommand_0x46
/// <summary>
/// Packet sent when an attack step is completed by a client.
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
//https://sylverant.net/wiki/index.php/Packet_0x60#Subcommand_0x46
/// <summary>
/// Packet sent when an attack step is completed by a client.
... | agpl-3.0 | C# |
0638ef3668665e327c17b9218e73b9cada799a6d | return error codes | jefking/King.Mapper.Generator | King.Mapper.Generator/Program.cs | King.Mapper.Generator/Program.cs | namespace King.Mapper.Generator
{
using King.Mapper.Generator.Sql;
using System;
using System.Diagnostics;
using System.Linq;
/// <summary>
/// King.Mapper.Generator Program
/// </summary>
public class Program
{
#region Methods
public static int Main(string[] args)
... | namespace King.Mapper.Generator
{
using King.Mapper.Generator.Sql;
using System;
using System.Diagnostics;
using System.Linq;
/// <summary>
/// King.Mapper.Generator Program
/// </summary>
public class Program
{
#region Methods
public static void Main(string[] args)... | mit | C# |
4ccdcfd059b279585ba550bcaa83c7fa574e2702 | Add json properties | robsiera/Dnn.Platform,dnnsoftware/Dnn.AdminExperience.Library,bdukes/Dnn.Platform,EPTamminga/Dnn.Platform,bdukes/Dnn.Platform,nvisionative/Dnn.Platform,valadas/Dnn.Platform,robsiera/Dnn.Platform,RichardHowells/Dnn.Platform,valadas/Dnn.Platform,EPTamminga/Dnn.Platform,mitchelsellers/Dnn.Platform,mitchelsellers/Dnn.Platf... | src/Dnn.PersonaBar.Library/Prompt/Models/PagingInfo.cs | src/Dnn.PersonaBar.Library/Prompt/Models/PagingInfo.cs | using Newtonsoft.Json;
namespace Dnn.PersonaBar.Library.Prompt.Models
{
public class PagingInfo
{
[JsonProperty(PropertyName = "pageNo")]
public int PageNo { get; set; }
[JsonProperty(PropertyName = "pageSize")]
public int PageSize { get; set; }
[JsonProperty(PropertyNa... | namespace Dnn.PersonaBar.Library.Prompt.Models
{
public class PagingInfo
{
public int PageNo { get; set; }
public int PageSize { get; set; }
public int TotalPages { get; set; }
}
}
| mit | C# |
959049bc5a2cbd69b3227f0ad58ce10bf1fc4987 | Implement MessagePackServiceSerializer.Clone(). | FacilityApi/FacilityCSharp | src/Facility.Core/MessagePackServiceSerializer.cs | src/Facility.Core/MessagePackServiceSerializer.cs | using MessagePack;
namespace Facility.Core;
/// <summary>
/// Serializes and deserializes values using MessagePack.
/// </summary>
public sealed class MessagePackServiceSerializer : ServiceSerializer
{
/// <summary>
/// The serializer instance.
/// </summary>
public static readonly MessagePackServiceSerializer In... | using MessagePack;
namespace Facility.Core;
/// <summary>
/// Serializes and deserializes values using MessagePack.
/// </summary>
public sealed class MessagePackServiceSerializer : ServiceSerializer
{
/// <summary>
/// The serializer instance.
/// </summary>
public static readonly MessagePackServiceSerializer In... | mit | C# |
34dcfac0efe190bb65e32118fcb452ffb15b7c61 | Allow easy OrderBy custom Property | DejanMilicic/n2cms,SntsDev/n2cms,nimore/n2cms,nicklv/n2cms,nimore/n2cms,EzyWebwerkstaden/n2cms,SntsDev/n2cms,VoidPointerAB/n2cms,bussemac/n2cms,nicklv/n2cms,DejanMilicic/n2cms,nicklv/n2cms,bussemac/n2cms,SntsDev/n2cms,EzyWebwerkstaden/n2cms,VoidPointerAB/n2cms,n2cms/n2cms,nimore/n2cms,n2cms/n2cms,bussemac/n2cms,nicklv/... | src/Framework/N2/Persistence/NH/Finder/OrderBy.cs | src/Framework/N2/Persistence/NH/Finder/OrderBy.cs | namespace N2.Persistence.NH.Finder
{
/// <summary>
/// Transition to the property to order by.
/// </summary>
public class OrderBy : N2.Persistence.Finder.IOrderBy
{
private QueryBuilder query;
public OrderBy(QueryBuilder query)
{
this.query = query;
}
#region IOrderBy Members
pub... | namespace N2.Persistence.NH.Finder
{
/// <summary>
/// Transition to the property to order by.
/// </summary>
public class OrderBy : N2.Persistence.Finder.IOrderBy
{
private QueryBuilder query;
public OrderBy(QueryBuilder query)
{
this.query = query;
}
#region IOrderBy Members
pub... | lgpl-2.1 | C# |
9058bec0ac0046c56d2ae01d03894efe58b6236f | Make commit id short | SaladbowlCreative/Snake | src/GameClient/Assets/Scripts/Utility/AppPanel.cs | src/GameClient/Assets/Scripts/Utility/AppPanel.cs | using UnityEngine;
using UnityEngine.UI;
public class AppPanel : MonoBehaviour
{
public Text VersionText;
private void Start()
{
var commitId = string.IsNullOrEmpty(Version.CommitId)
? ""
: "(" + Version.CommitId.Substring(0, 6) + ")";
... | using UnityEngine;
using UnityEngine.UI;
public class AppPanel : MonoBehaviour
{
public Text VersionText;
private void Start()
{
var commitId = string.IsNullOrEmpty(Version.CommitId)
? ""
: "(" + Version.CommitId + ")";
VersionText.tex... | mit | C# |
11d9d5c66bed98abe18236c9b47ab759a4061e67 | Add server|client mode to server demo | Tragetaschen/dbus-sharp,arfbtwn/dbus-sharp,openmedicus/dbus-sharp,mono/dbus-sharp,openmedicus/dbus-sharp,Tragetaschen/dbus-sharp,arfbtwn/dbus-sharp,mono/dbus-sharp | src/TestServer.cs | src/TestServer.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
using org.freedesktop.DBus;
using System.IO;
using System.Net;
using System.Net.Sockets;
using Mono.Unix;
public class TestServer
{
//TODO: complete this t... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using NDesk.DBus;
using org.freedesktop.DBus;
using System.IO;
using System.Net;
using System.Net.Sockets;
using Mono.Unix;
public class TestServer
{
//TODO: complete this t... | mit | C# |
86153b26347e053984ed6e52a01ffda9a5b184d9 | change isStarted method to property | app-enhance/ae-core,app-enhance/ae-core | src/AE.Transactions.Abstractions/ITransaction.cs | src/AE.Transactions.Abstractions/ITransaction.cs | namespace AE.Transactions.Abstractions
{
using Core.DI;
public interface ITransaction : IDependency
{
bool IsStarted { get; set; }
void Configure(ITransactionOptions options);
void Begin();
void End();
void Cancel();
}
} | namespace AE.Transactions.Abstractions
{
using Core.DI;
public interface ITransaction : IDependency
{
void Configure(ITransactionOptions options);
void Begin();
void End();
void Cancel();
bool IsStarted();
}
} | mit | C# |
6f78ea32b717e4b4ed272058a41cb1beccd8246f | Remove unnecessary RegexOptions.IgnoreCase option | AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp | src/AngleSharp/Html/InputTypes/ColorInputType.cs | src/AngleSharp/Html/InputTypes/ColorInputType.cs | namespace AngleSharp.Html.InputTypes
{
using AngleSharp.Html.Dom;
using System;
using System.Text.RegularExpressions;
class ColorInputType : BaseInputType
{
#region Fields
static readonly Regex hexColorPattern = new Regex("^\\#[0-9A-Fa-f]{6}$", RegexOptions.Compiled);
#end... | namespace AngleSharp.Html.InputTypes
{
using AngleSharp.Html.Dom;
using System;
using System.Text.RegularExpressions;
class ColorInputType : BaseInputType
{
#region Fields
static readonly Regex hexColorPattern = new Regex("^\\#[0-9A-Fa-f]{6}$", RegexOptions.IgnoreCase | RegexOption... | mit | C# |
aad118839867c46af4e421223fda3af05070bfff | Remove IRemotePlayerLobbyJoinEventSubscribable from BlockOtherPlayerLobbyJoinEventPayloadHandler | HelloKitty/Booma.Proxy | src/Booma.Proxy.Client.Unity.Ship/Handlers/Payload/BlockOtherPlayerLobbyJoinEventPayloadHandler.cs | src/Booma.Proxy.Client.Unity.Ship/Handlers/Payload/BlockOtherPlayerLobbyJoinEventPayloadHandler.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Logging;
using GladNet;
using Guardians;
using SceneJect.Common;
using UnityEngine;
namespace Booma.Proxy
{
//TODO: Rewrite
[SceneTypeCreate(GameSceneType.RagolDefault)]
[SceneTypeCreate... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Logging;
using GladNet;
using Guardians;
using SceneJect.Common;
using UnityEngine;
namespace Booma.Proxy
{
//TODO: Rewrite
[AdditionalRegisterationAs(typeof(IRemotePlayerLobbyJoinEventSu... | agpl-3.0 | C# |
52ed7710472a8182479a4731f1a8b9c1813c9f91 | Add region preprocessors on class Token | lury-lang/lury-lexer | lury-lexer/Token.cs | lury-lexer/Token.cs | //
// Token.cs
//
// Author:
// Tomona Nanase <nanase@users.noreply.github.com>
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Tomona Nanase
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
//... | //
// Token.cs
//
// Author:
// Tomona Nanase <nanase@users.noreply.github.com>
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Tomona Nanase
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
//... | mit | C# |
b22edbd7fae63183333a18e25e2906c691dda585 | Fix System.Console.Tests to not leave cursor hidden | mokchhya/corefx,tijoytom/corefx,richlander/corefx,pallavit/corefx,mafiya69/corefx,mafiya69/corefx,MaggieTsang/corefx,n1ghtmare/corefx,shmao/corefx,nchikanov/corefx,jcme/corefx,krytarowski/corefx,MaggieTsang/corefx,twsouthwick/corefx,Priya91/corefx-1,rjxby/corefx,mafiya69/corefx,mazong1123/corefx,ptoonen/corefx,ptoonen/... | src/System.Console/tests/WindowAndCursorProps.cs | src/System.Console/tests/WindowAndCursorProps.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using Xunit;
public class WindowAndCursorProps
{
[Fact]
... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using Xunit;
public class WindowAndCursorProps
{
[Fact]
... | mit | C# |
face0e859b575c5e01fc532f115a0d46b84886cb | fix index boos usage integration test | elastic/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/elasticsearch-net,adam-mccoy/elasticsearch-net,CSGOpenSource/elasticsearch-net,elastic/elasticsearch-net,adam-mccoy/elasticsearch-net,CSGOpenSource/elasticsearch-net | src/Tests/Search/Request/IndexBoostUsageTests.cs | src/Tests/Search/Request/IndexBoostUsageTests.cs | using System;
using System.Collections.Generic;
using Nest;
using Tests.Framework.Integration;
using Tests.Framework.MockData;
namespace Tests.Search.Request
{
public class IndexBoostUsageTests : SearchUsageTestBase
{
public IndexBoostUsageTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage)... | using System;
using System.Collections.Generic;
using Nest;
using Tests.Framework.Integration;
using Tests.Framework.MockData;
namespace Tests.Search.Request
{
public class IndexBoostUsageTests : SearchUsageTestBase
{
public IndexBoostUsageTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage)... | apache-2.0 | C# |
9e332a602759a9785bfffcd120867c44e2351e57 | Add some code comments. | DavidLievrouw/WordList | src/WordList.Processing/WordListReaderFactory.cs | src/WordList.Processing/WordListReaderFactory.cs | using System;
using WordList.Data;
namespace WordList.Processing {
public class WordListReaderFactory : IWordListReaderFactory {
readonly IFileReader _fileReader;
public WordListReaderFactory(IFileReader fileReader) {
if (fileReader == null) throw new ArgumentNullException(nameof(fileReader));
_... | using System;
using WordList.Data;
namespace WordList.Processing {
public class WordListReaderFactory : IWordListReaderFactory {
readonly IFileReader _fileReader;
public WordListReaderFactory(IFileReader fileReader) {
if (fileReader == null) throw new ArgumentNullException(nameof(fileReader));
_... | mit | C# |
470edc1aacdc2b4e7ab38582d72f3aeaf6448539 | Remove commented line | joelverhagen/TorSharp | test/TorSharp.Tests/TestSupport/HttpFixture.cs | test/TorSharp.Tests/TestSupport/HttpFixture.cs | using System;
using System.IO;
using System.Net.Http;
using Knapcode.TorSharp.Tools;
namespace Knapcode.TorSharp.Tests.TestSupport
{
public class HttpFixture : IDisposable
{
private readonly string _cacheDirectory;
public HttpFixture()
{
_cacheDirectory = Path.Combine(
... | using System;
using System.IO;
using System.Net.Http;
using Knapcode.TorSharp.Tools;
namespace Knapcode.TorSharp.Tests.TestSupport
{
public class HttpFixture : IDisposable
{
private readonly string _cacheDirectory;
public HttpFixture()
{
_cacheDirectory = Path.Combine(
... | mit | C# |
d06cf6b1ab0ec157fab63821d9a3bce2329d310c | Correct docs | danielwertheim/mynatsclient,danielwertheim/mynatsclient | src/projects/MyNatsClient/IClientSubscription.cs | src/projects/MyNatsClient/IClientSubscription.cs | using System;
namespace MyNatsClient
{
/// <summary>
/// Represents a subscription against a NATS broker as well
/// as an associated message handler against the in-process
/// observable message stream.
/// </summary>
/// <remarks>
/// If you forget to explicitly dispose, the <see cref="IN... | using System;
namespace MyNatsClient
{
/// <summary>
/// Represents a subscription against a NATS broker as well
/// as an associated message handler against the in-process
/// observable message stream.
/// </summary>
/// <remarks>
/// If you forget to explicitly dispose, the <see cref="IN... | mit | C# |
a3aad3d4fff9a50102241aa9a46473950befd3f7 | Create server side API for single multiple answer question | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | mit | C# |
1b844ab99cd498db5cb679dea7300a6e6d1061fb | Fix database abstraction test to use correct table name, etc. | brendanjbaker/StraightSQL | test/StraightSql.Test/DatabaseAbstractionTest.cs | test/StraightSql.Test/DatabaseAbstractionTest.cs | namespace StraightSql.Test
{
using System;
using System.Threading.Tasks;
using Xunit;
public class DatabaseAbstractionTest
{
[Fact]
public async Task DatabaseAbstractionTestAsync()
{
var queryDispatcher = new QueryDispatcher(new ConnectionFactory(ConnectionString.Default));
var database =... | namespace StraightSql.Test
{
using System;
using System.Threading.Tasks;
using Xunit;
public class DatabaseAbstractionTest
{
[Fact]
public async Task DatabaseAbstractionTestAsync()
{
var queryDispatcher = new QueryDispatcher(new ConnectionFactory(ConnectionString.Default));
var database =... | mit | C# |
e98bd66d282807fede3424fc04d8e6cb4d18df24 | Update MvcDisplayModelConverter.cs | dudzon/Glimpse,SusanaL/Glimpse,rho24/Glimpse,elkingtonmcb/Glimpse,paynecrl97/Glimpse,dudzon/Glimpse,paynecrl97/Glimpse,sorenhl/Glimpse,sorenhl/Glimpse,SusanaL/Glimpse,Glimpse/Glimpse,sorenhl/Glimpse,elkingtonmcb/Glimpse,gabrielweyer/Glimpse,paynecrl97/Glimpse,rho24/Glimpse,gabrielweyer/Glimpse,codevlabs/Glimpse,Glimpse... | source/Glimpse.Mvc/SerializationConverter/MvcDisplayModelConverter.cs | source/Glimpse.Mvc/SerializationConverter/MvcDisplayModelConverter.cs | using System;
using Glimpse.Core.Extensibility;
using Glimpse.Mvc.Display;
using Glimpse.Mvc.Model;
namespace Glimpse.Mvc.SerializationConverter
{
public class MvcDisplayModelConverter : SerializationConverter<MvcDisplayModel>
{
public override object Convert(MvcDisplayModel obj)
{
... | using System;
using Glimpse.Core.Extensibility;
using Glimpse.Mvc.Display;
using Glimpse.Mvc.Model;
namespace Glimpse.Mvc.SerializationConverter
{
public class MvcDisplayModelConverter : SerializationConverter<MvcDisplayModel>
{
public override object Convert(MvcDisplayModel obj)
{
... | apache-2.0 | C# |
5c041e96ed165987a6549a11aecc06a82659a8a2 | add SectionExists method | martinusso/Ini.Net | Ini.Net/IniFile.cs | Ini.Net/IniFile.cs | using System;
using System.Text;
using System.Runtime.InteropServices;
namespace Ini.Net
{
public class IniFile
{
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);
[DllImport("kernel32")]
priva... | using System;
using System.Text;
using System.Runtime.InteropServices;
namespace Ini.Net
{
public class IniFile
{
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);
[DllImport("kernel32")]
priva... | mit | C# |
fa615fd43fa239599d0507e1ce0d3b87d92db185 | Update post | bmsullivan/RavenDBBlogConsole | RavenDBBlogConsole/Program.cs | RavenDBBlogConsole/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Raven.Client.Document;
namespace RavenDBBlogConsole
{
class Program
{
static void Main(string[] args)
{
var docStore = new DocumentStore()
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Raven.Client.Document;
namespace RavenDBBlogConsole
{
class Program
{
static void Main(string[] args)
{
var docStore = new DocumentStore()
... | mit | C# |
20d973440c51d8fbca1f0d1a8253967f832ddb32 | Change automation formatting to include the type keyword, so it reads like 'class C' instead of 'NamedType C' | stephentoub/roslyn,dotnet/roslyn,AmadeusW/roslyn,gafter/roslyn,tannergooding/roslyn,heejaechang/roslyn,stephentoub/roslyn,mgoertz-msft/roslyn,KirillOsenkov/roslyn,reaction1989/roslyn,KevinRansom/roslyn,KevinRansom/roslyn,AlekseyTs/roslyn,mgoertz-msft/roslyn,jmarolf/roslyn,AlekseyTs/roslyn,eriawan/roslyn,reaction1989/ro... | src/VisualStudio/Core/Def/Implementation/Utilities/SymbolViewModel.cs | src/VisualStudio/Core/Def/Implementation/Utilities/SymbolViewModel.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.Windows.Media;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Shared.Extensions;
using Microsoft.VisualStudio.Language.Intellisense;... | // 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.Windows.Media;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Shared.Extensions;
using Microsoft.VisualStudio.Language.Intellisense;... | mit | C# |
97913e47b164304a702ca56c417d2ee5fbb51bd6 | Fix sample | mvno/Okanshi,mvno/Okanshi,mvno/Okanshi | samples/Okanshi.Endpoint.Sample/Program.cs | samples/Okanshi.Endpoint.Sample/Program.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Okanshi.Endpoint.Sample
{
class Program
{
// The point of this sample to is to showcase the use of the HTTP endpoint
static void Main(string[] args)
{
// Get the default reg... | using System;
using System.Threading;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Okanshi.Endpoint.Sample
{
class Program
{
// The point of this sample to is to showcase the use of the HTTP endpoint
static void Main(string[] args)
{
// Get the default reg... | mit | C# |
1829efabdd284dfd4b8fede81f3e91288e3e2a71 | add PlatformMask to PrefsKVSPathCustom | fuqunaga/PrefsGUI | Runtime/PrefsKVSPathCustom.cs | Runtime/PrefsKVSPathCustom.cs | using System;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEngine;
namespace PrefsGUI.KVS
{
/// <summary>
/// Custom File Path for PrefsKVS
/// Rerative to Application.dataPath
/// you can use magic path
/// - %dataPath% -> Application.dataPath
/// - %companyName% -> App... | using System;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEngine;
namespace PrefsGUI.KVS
{
/// <summary>
/// Custom File Path for PrefsKVS
/// Rerative to Application.dataPath
/// you can use magic path
/// - %dataPath% -> Application.dataPath
/// - %companyName% -> App... | mit | C# |
42c10708393d8be230d595232639e62ce6c6e5de | Add more precision to aspnet_start reported times. | brianrob/coretests,brianrob/coretests | managed/aspnet_start/src/Startup.cs | managed/aspnet_start/src/Startup.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace aspnet_start
{
public class Startup
{
publ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace aspnet_start
{
public class Startup
{
publ... | mit | C# |
d802f6c8448216deac00de420002cbc8c40d233c | Convert source to Hello World. | brianrob/coretests,brianrob/coretests | managed/time_to_main/src/Program.cs | managed/time_to_main/src/Program.cs | using System;
using System.Runtime.InteropServices;
namespace TimeToMain
{
public static class Program
{
[DllImport("libnative.so")]
private static extern void write_marker(string name);
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
... | using System;
using System.Runtime.InteropServices;
namespace TimeToMain
{
public static class Program
{
[DllImport("libnative.so")]
private static extern void write_marker(string name);
public static void Main(string[] args)
{
write_marker("/function/main");
... | mit | C# |
db2d8b6d8bf875deddccecd0d583982060c30718 | Fix ruleset instance creation null checks | smoogipoo/osu,ppy/osu,peppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu | osu.Game.Tournament.Tests/Components/TestSceneTournamentModDisplay.cs | osu.Game.Tournament.Tests/Components/TestSceneTournamentModDisplay.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
usin... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
usin... | mit | C# |
4edc3aed870b00cdaba4584469b5f188f2a30f48 | Change error message. | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | src/CompetitionPlatform/Views/Shared/AuthenticationFailed.cshtml | src/CompetitionPlatform/Views/Shared/AuthenticationFailed.cshtml | @{
ViewData["Title"] = "Access Denied";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">Authentication Failed.</h2>
<p>
You have denied Competition Platform access to your resources.
</p>
| @{
ViewData["Title"] = "Access Denied";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">Access denied</h2>
<p>
You have denied Competition Platform access to your resources.
</p>
| mit | C# |
31b79007b39b7594fd6342e05b45de30eec4f784 | Remove stale comment. | jasonmalinowski/roslyn,jasonmalinowski/roslyn,MichalStrehovsky/roslyn,mavasani/roslyn,paulvanbrenk/roslyn,AArnott/roslyn,mmitche/roslyn,weltkante/roslyn,davkean/roslyn,OmarTawfik/roslyn,KevinRansom/roslyn,zooba/roslyn,xoofx/roslyn,paulvanbrenk/roslyn,dpoeschl/roslyn,swaroop-sridhar/roslyn,diryboy/roslyn,paulvanbrenk/ro... | src/EditorFeatures/Core/Implementation/Adornments/GraphicsTag.cs | src/EditorFeatures/Core/Implementation/Adornments/GraphicsTag.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.Windows.Media;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Tagg... | // 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.Windows.Media;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Tagg... | mit | C# |
a82aa2f849fcfe1b3c27b545a851a50079142584 | Update the test code to set the sources to an empty enumerable<string> | SeanFarrow/NBench.VisualStudio | tests/NBench.VisualStudio.TestAdapter.Tests.Unit/NBenchTestDiscoverer/DiscoverTests/WhenTheSourcesCollectionIsEmpty.cs | tests/NBench.VisualStudio.TestAdapter.Tests.Unit/NBenchTestDiscoverer/DiscoverTests/WhenTheSourcesCollectionIsEmpty.cs | namespace NBench.VisualStudio.TestAdapter.Tests.Unit.NBenchTestDiscoverer.DiscoverTests
{
using System;
using System.Collections.Generic;
using JustBehave;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
using NBen... | namespace NBench.VisualStudio.TestAdapter.Tests.Unit.NBenchTestDiscoverer.DiscoverTests
{
using System;
using System.Collections.Generic;
using JustBehave;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
using NBen... | apache-2.0 | C# |
9f7301dccd4fb676d762ac139cb688c264e8e166 | Add readonly to CcsProxy.proxy | lou1306/CIV,lou1306/CIV | CIV.Ccs/CcsProxy.cs | CIV.Ccs/CcsProxy.cs | using System.Collections.Generic;
using static CIV.Ccs.CcsParser;
using CIV.Interfaces;
using System;
namespace CIV.Ccs
{
/// <summary>
/// Proxy class that delays the creation of a new Process instance until it
/// is needed.
/// </summary>
class CcsProxy : CcsProcess
{
readonly Proxy... | using System.Collections.Generic;
using static CIV.Ccs.CcsParser;
using CIV.Interfaces;
using System;
namespace CIV.Ccs
{
/// <summary>
/// Proxy class that delays the creation of a new Process instance until it
/// is needed.
/// </summary>
class CcsProxy : CcsProcess
{
Proxy<CcsProce... | mit | C# |
673b11a44a64a650a7084ba0f22bffdfb3fcba19 | change format | taka-oyama/UniHttp | Assets/UniHttp/Support/Connection/HttpStream.cs | Assets/UniHttp/Support/Connection/HttpStream.cs | using UnityEngine;
using System.IO;
using System.Net.Sockets;
using System;
using System.Net.Security;
namespace UniHttp
{
internal sealed class HttpStream : Stream
{
internal string url;
TcpClient tcpClient;
SslStream sslStream;
Stream stream;
internal HttpStream(Uri uri)
{
this.url = string.Concat... | using UnityEngine;
using System.IO;
using System.Net.Sockets;
using System;
using System.Net.Security;
namespace UniHttp
{
internal sealed class HttpStream : Stream
{
internal string url;
TcpClient tcpClient;
SslStream sslStream;
Stream stream;
internal HttpStream(Uri uri)
{
this.url = string.Concat... | mit | C# |
78949784f98d8046cad8ef3f085e569eadbb88cb | Update MovieDataSource.cs | OdeToCode/ngclass,OdeToCode/ngclass,OdeToCode/ngclass,OdeToCode/ngclass | AtTheMovies/AtTheMovies/Data/MovieDataSource.cs | AtTheMovies/AtTheMovies/Data/MovieDataSource.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtTheMovies.Data
{
public class MovieDataSource
{
static MovieDataSource()
{
_movies.Add(new Movie { Id = 1, Title = "Star Wars - A New Hope", Length = 125, ReleaseDate = new DateTime(1977, 5, 25) });
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtTheMovies.Data
{
public class MovieDataSource
{
static MovieDataSource()
{
_movies.Add(new Movie { Id = 1, Title="Star Wars", Length = 101, ReleaseDate = new DateTime(1977, 1, 1)});
_movies.A... | mit | C# |
0ab088b7c62363c90d21836c39b67da0e80efea3 | Allow arbitrary amount of repeated prefixes in Simple | LouisTakePILLz/ArgumentParser | ArgumentParser/Patterns/SimpleParameterPattern.cs | ArgumentParser/Patterns/SimpleParameterPattern.cs | //-----------------------------------------------------------------------
// <copyright file="SimpleParameterPattern.cs" company="LouisTakePILLz">
// Copyright © 2015 LouisTakePILLz
// <author>LouisTakePILLz</author>
// </copyright>
//-----------------------------------------------------------------------
/* This prog... | //-----------------------------------------------------------------------
// <copyright file="SimpleParameterPattern.cs" company="LouisTakePILLz">
// Copyright © 2015 LouisTakePILLz
// <author>LouisTakePILLz</author>
// </copyright>
//-----------------------------------------------------------------------
/* This prog... | apache-2.0 | C# |
b4a699d0110611dbb4b807cc7e8eb63140991195 | Use concat instead of union in ordering function (as ordering should not filter items) | Dootrix/Hearts | Hearts/Extensions/CardListOrderingExtensions.cs | Hearts/Extensions/CardListOrderingExtensions.cs | using Hearts.Model;
using System.Collections.Generic;
using System.Linq;
using Hearts.Collections;
namespace Hearts.Extensions
{
public static class CardListOrderingExtensions
{
public static IEnumerable<Card> Ascending(this IEnumerable<Card> self)
{
return self.OrderBy(i => i.Kind... | using Hearts.Model;
using System.Collections.Generic;
using System.Linq;
using Hearts.Collections;
namespace Hearts.Extensions
{
public static class CardListOrderingExtensions
{
public static IEnumerable<Card> Ascending(this IEnumerable<Card> self)
{
return self.OrderBy(i => i.Kind... | mit | C# |
f9f19d70517b93b04cf54d9c0d67d0ff6f39ff93 | Allow Models Builder to have correct type | bomortensen/Our.Umbraco.OpeningHours,bomortensen/Our.Umbraco.OpeningHours,bomortensen/Our.Umbraco.OpeningHours | src/Our.Umbraco.OpeningHours/Converters/OpeningHoursValueConverter.cs | src/Our.Umbraco.OpeningHours/Converters/OpeningHoursValueConverter.cs | using System;
using Umbraco.Core;
using Umbraco.Core.Logging;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PropertyEditors;
using Our.Umbraco.OpeningHours.Model;
namespace Our.Umbraco.OpeningHours.Converters
{
[PropertyValueType(typeof(OpeningHours))]
[PropertyValueCache(PropertyCacheValue.A... | using System;
using Umbraco.Core;
using Umbraco.Core.Logging;
using Umbraco.Core.Models.PublishedContent;
using Umbraco.Core.PropertyEditors;
namespace Our.Umbraco.OpeningHours.Converters
{
[PropertyValueCache(PropertyCacheValue.All, PropertyCacheLevel.Content)]
public class OpeningHoursValueConverter : Prope... | mit | C# |
c9d80eb8ed998c7e98187743f52b450156d7d019 | Disable F# test. | bahram-aliyev/linq2db,bahram-aliyev/linq2db | Tests/Linq/Linq/FSharpTest.cs | Tests/Linq/Linq/FSharpTest.cs | using System;
using NUnit.Framework;
namespace Tests.Linq
{
[TestFixture]
public class FSharpTest : TestBase
{
[Test, DataContextSource]
public void LoadSingle(string context)
{
using (var db = GetDataContext(context))
FSharp.WhereTest.LoadSingle(db);
}
[Test, DataContextSource]
... | using System;
using NUnit.Framework;
namespace Tests.Linq
{
[TestFixture]
public class FSharpTest : TestBase
{
[Test, DataContextSource]
public void LoadSingle(string context)
{
using (var db = GetDataContext(context))
FSharp.WhereTest.LoadSingle(db);
}
[Test, DataContextSource]
public void... | mit | C# |
0afb2e977a6390585d120cc7337ef78ff5c181de | Bump to version 8 of input files | ATLASCalRatio/Extrapolation,ATLASCalRatio/Extrapolation,ATLASCalRatio/Extrapolation | GenerateMCFiles/Program.cs | GenerateMCFiles/Program.cs | using CommandLine;
using libDataAccess.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static GenerateMCFiles.GeneratorManager;
namespace GenerateMCFiles
{
/// <summary>
/// For a given... | using CommandLine;
using libDataAccess.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static GenerateMCFiles.GeneratorManager;
namespace GenerateMCFiles
{
/// <summary>
/// For a given... | mit | C# |
b7add348eb9b1e133df3a8e78be609e2656257d6 | add method to interface IMappingProvider | sportingsolutions/SS.Integration.Adapter,jpendlebury/SS.Integration.Adapter,jpendlebury/SS.Integration.Adapter,jpendlebury/SS.Integration.Adapter,sportingsolutions/SS.Integration.Adapter,sportingsolutions/SS.Integration.Adapter | SS.Integration.Adapter.Plugin.Model/Interface/IMappingProvider.cs | SS.Integration.Adapter.Plugin.Model/Interface/IMappingProvider.cs | //Copyright 2014 Spin Services Limited
//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 in wr... | //Copyright 2014 Spin Services Limited
//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 in wr... | apache-2.0 | C# |
56ffaf8d94499662c0a63bb76000a3f8241efafc | Handle the EEInfo fault information properly. | googleprojectzero/sandbox-attacksurface-analysis-tools | NtApiDotNet/Win32/Rpc/Transport/PDU/PDUFault.cs | NtApiDotNet/Win32/Rpc/Transport/PDU/PDUFault.cs | // Copyright 2020 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... | // Copyright 2020 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... | apache-2.0 | C# |
c15b75e6d7e5568a62264680612cef6c53d08ca8 | Update SlimyYoyo.cs | Minesap/TheMinepack | Items/Weapons/SlimyYoyo.cs | Items/Weapons/SlimyYoyo.cs | using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using TheMinepack.Items;
namespace TheMinepack.Items.Weapons {
public class SlimyYoyo : ModItem
{
public override bool Autoload(ref ... | using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
using Minepack.Items;
namespace Minepack.Items.Weapons {
public class SlimyYoyo : ModItem
{
public override bool Autoload(ref string... | mit | C# |
d1afb3821048a2823f4b626855149be17bd4a78f | Add native iif function to MsSql2012Dialect | nkreipke/nhibernate-core,RogerKratz/nhibernate-core,livioc/nhibernate-core,alobakov/nhibernate-core,livioc/nhibernate-core,fredericDelaporte/nhibernate-core,gliljas/nhibernate-core,ManufacturingIntelligence/nhibernate-core,ngbrown/nhibernate-core,nhibernate/nhibernate-core,fredericDelaporte/nhibernate-core,nhibernate/n... | src/NHibernate/Dialect/MsSql2012Dialect.cs | src/NHibernate/Dialect/MsSql2012Dialect.cs | using NHibernate.Dialect.Function;
namespace NHibernate.Dialect
{
public class MsSql2012Dialect : MsSql2008Dialect
{
public override bool SupportsSequences
{
get { return true; }
}
public override bool SupportsPooledSequences
{
get { return true; }
}
public override string GetC... | using NHibernate.Dialect.Function;
namespace NHibernate.Dialect
{
public class MsSql2012Dialect : MsSql2008Dialect
{
public override bool SupportsSequences
{
get { return true; }
}
public override bool SupportsPooledSequences
{
get { return true; }
}
public override string GetC... | lgpl-2.1 | C# |
7daa46584c0a97113ffc410f800cf8f939b71ff8 | Use reflection helper | nkreipke/nhibernate-core,nkreipke/nhibernate-core,nkreipke/nhibernate-core | src/NHibernate/Util/MakeQueryableHelper.cs | src/NHibernate/Util/MakeQueryableHelper.cs | using System;
using System.Collections;
using System.Linq;
using System.Reflection;
namespace NHibernate.Util
{
internal static class MakeQueryableHelper
{
private static readonly MethodInfo _implMethodDefinition =
ReflectHelper.GetMethodDefinition(() => MakeQueryableImpl<object>(null));
public static objec... | using System;
using System.Collections;
using System.Linq;
using System.Reflection;
namespace NHibernate.Util
{
internal static class MakeQueryableHelper
{
private static readonly Lazy<MethodInfo> _implMethod = new Lazy<MethodInfo>(() =>
typeof(MakeQueryableHelper).GetMethod(nameof(MakeQueryableImpl), Bindi... | lgpl-2.1 | C# |
22b6a27746bfad6eeb0d878c4929fed0b07898d3 | Fix AW error - creating new phone number | NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework | Samples/AdventureWorksModel/Person/PersonPhone.cs | Samples/AdventureWorksModel/Person/PersonPhone.cs | using NakedObjects;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace AdventureWorksModel
{
public partial class PersonPhone {
#region Injected Services
public IDomainObjectContainer Container { set; protected get; }
#endregion
... | using NakedObjects;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace AdventureWorksModel
{
public partial class PersonPhone {
#region Injected Services
public IDomainObjectContainer Container { set; protected get; }
#endregion
... | apache-2.0 | C# |
74797b93d7f842a9a54b79699c1fb1023cbb83ec | fix release build | Microsoft/ApplicationInsights-SDK-Labs | AggregateMetrics/AggregateMetrics.Tests/AzureWebApp/SumUpGaugeTests.cs | AggregateMetrics/AggregateMetrics.Tests/AzureWebApp/SumUpGaugeTests.cs | namespace AggregateMetrics.Tests.AzureWebApp
{
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility.AggregateMetrics.AzureWebApp;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class SumUpGaugeTests
{
[TestMethod]
... | namespace AggregateMetrics.Tests.AzureWebApp
{
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility.AggregateMetrics.AzureWebApp;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class SumUpGaugeTests
{
[TestMethod]
... | mit | C# |
97b359630cde7b6e8753b8162ab12004acbd7a15 | add conditional compilation to fix build | tewarid/net-tools | KafkaClientTool/Program.cs | KafkaClientTool/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace KafkaClientTool
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace KafkaClientTool
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
... | mit | C# |
fdfe67cce86a762ef51c74701a7ee9992f227d83 | Remove unnecessary usings | Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog | SpaceBlog/SpaceBlog/Controllers/HomeController.cs | SpaceBlog/SpaceBlog/Controllers/HomeController.cs | using System.Web.Mvc;
using SpaceBlog.Models;
namespace SpaceBlog.Controllers
{
public class HomeController : Controller
{
private readonly BlogDBContext _dbContext =
new BlogDBContext();
public ActionResult Index()
{
return View();
}
public Ac... | using System.Web.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Web;
using System.Linq;
using SpaceBlog.Models;
namespace SpaceBlog.Controllers
{
public class HomeController : Controller
{
private readonly BlogDBContext _d... | mit | C# |
f864f20a96c0e6cc2a37f135247167b994b1d5a7 | Add more test cases | Fody/PropertyChanged | TestAssemblies/AssemblyWithInheritance/Classes.cs | TestAssemblies/AssemblyWithInheritance/Classes.cs | using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
public abstract class BaseClass : INotifyPropertyChanged
{
public IList<string> Notifications = new List<string>();
public virtual int Property1 { get; set; }
public virtual int Property4 { get; set; }
... | using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
public abstract class BaseClass : INotifyPropertyChanged
{
public IList<string> Notifications = new List<string>();
public virtual int Property1 { get; set; }
public virtual int Property4 { get; set; }
... | mit | C# |
e6f5b9ad436961c9d8c9d9a6f1048d8105bb3426 | Call disconnect when application quit. | 0angelic0/dgt-net_demo,0angelic0/dgt-net_demo | unity/Assets/Scripts/DGTMainController.cs | unity/Assets/Scripts/DGTMainController.cs | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class DGTMainController : MonoBehaviour
{
public Text m_chat;
public InputField m_inputText;
void OnApplicationQuit()
{
DGTRemote.GetInstance().Disconnect();
}
void Update ()
{
DGTRemote.GetInstance ().ProcessEvents ();
}
// Us... | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class DGTMainController : MonoBehaviour
{
public Text m_chat;
public InputField m_inputText;
void Update ()
{
DGTRemote.GetInstance ().ProcessEvents ();
}
// Use this for initialization
void Start ()
{
StartCoroutine (ConnectToSe... | mit | C# |
f48dcbf658eee4cd81ed12fd822c1657fe3cfe63 | Tidy up [libSemVer.NET]'s [AssemblyInfo.cs] file. | McSherry/McSherry.SemanticVersioning,McSherry/libSemVer.NET | libSemVer.NET/Properties/AssemblyInfo.cs | libSemVer.NET/Properties/AssemblyInfo.cs | // Copyright (c) 2015 Liam McSherry
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publis... | // Copyright (c) 2015 Liam McSherry
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publis... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.