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 |
|---|---|---|---|---|---|---|---|---|
680f435813a2b3a6e866b06f5d1026375823f788 | make model class partial | OBeautifulCode/OBeautifulCode.Build | Conventions/VisualStudioProjectTemplates/Assembly/class1.cs | Conventions/VisualStudioProjectTemplates/Assembly/class1.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Class1.cs" company="OBeautifulCode">
// Copyright (c) OBeautifulCode 2018. All rights reserved.
// </copyright>
// --------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Class1.cs" company="OBeautifulCode">
// Copyright (c) OBeautifulCode 2018. All rights reserved.
// </copyright>
// --------------------------------------------------------------... | mit | C# |
2caf53e4dbd9d2edb66cbbdb6085054f3cf6e0b1 | Update SimpleJsonBondDeserializer.cs | tiksn/TIKSN-Framework | TIKSN.Core/Serialization/Bond/SimpleJsonBondDeserializer.cs | TIKSN.Core/Serialization/Bond/SimpleJsonBondDeserializer.cs | using System.IO;
using Bond.Protocols;
namespace TIKSN.Serialization.Bond
{
public class SimpleJsonBondDeserializer : DeserializerBase<string>
{
protected override T DeserializeInternal<T>(string serial)
{
var reader = new SimpleJsonReader(new StringReader(serial));
re... | using Bond.Protocols;
using System.IO;
namespace TIKSN.Serialization.Bond
{
public class SimpleJsonBondDeserializer : DeserializerBase<string>
{
protected override T DeserializeInternal<T>(string serial)
{
var reader = new SimpleJsonReader(new StringReader(serial));
re... | mit | C# |
b790016a6944432704de7b279a4ce68dcfcafb79 | throw Away.Code; // for placeholders | xingh/nroles,xingh/nroles,xingh/nroles | src/NRoles/roles.cs | src/NRoles/roles.cs | using System;
namespace NRoles {
/// <summary>
/// Marks a type as a role.
/// </summary>
public interface Role { }
/// <summary>
/// Composes a role into a type.
/// </summary>
/// <typeparam name="TRole">Role to compose.</typeparam>
public interface Does<TRole> where TRole : Role... | using System;
namespace NRoles {
/// <summary>
/// Marks a type as a role.
/// </summary>
public interface Role { }
/// <summary>
/// Composes a role into a type.
/// </summary>
/// <typeparam name="TRole">Role to compose.</typeparam>
public interface Does<TRole> where TRole : Role... | mit | C# |
a7654de3c46b7de212f378b8a0be8bd37bfd503d | Convert IEnumrable<char>.Count(...) to equivalent foreach loop, in anticipation of changing Peek(int) to return a ReadOnlySpan<char>, which is not compatible with the Count extension method. | plioi/parsley | src/Parsley/Text.cs | src/Parsley/Text.cs | namespace Parsley;
public class Text
{
int index;
readonly string input;
int line;
public Text(string input)
: this(input, 0, 1) { }
Text(string input, int index, int line)
{
this.input = input;
this.index = index;
if (index > input.Length)
this.in... | namespace Parsley;
public class Text
{
int index;
readonly string input;
int line;
public Text(string input)
: this(input, 0, 1) { }
Text(string input, int index, int line)
{
this.input = input;
this.index = index;
if (index > input.Length)
this.in... | mit | C# |
e94e782d3a7987cbe95755426e2a63c65fa8c6e6 | Fix build failure under mono | jthorpe4/EDDiscovery,jeoffman/EDDiscovery,mwerle/EDDiscovery,jgoode/EDDiscovery,vendolis/EDDiscovery,mwerle/EDDiscovery,jeoffman/EDDiscovery,vendolis/EDDiscovery,jgoode/EDDiscovery | EDDiscovery/Export/ExportBase.cs | EDDiscovery/Export/ExportBase.cs | using EDDiscovery.EliteDangerous;
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.Globalization;
using System.Linq;
using System.Text;
namespace EDDiscovery.Export
{
public enum CSVFormat
{
USA_UK = 0,
EU = 1,
}
public abstract class ExportBase... | using EDDiscovery.EliteDangerous;
using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.Globalization;
using System.Linq;
using System.Text;
namespace EDDiscovery.Export
{
public enum CSVFormat
{
USA_UK = 0,
EU = 1,
}
public abstract class ExportBase... | apache-2.0 | C# |
fb38a78e53309f2def82222b089929c3614d323d | Revert "test change to webapi" | abkmr/WebApi,abkmr/WebApi | OData/src/System.Web.Http.OData/OData/EdmEntityObject.cs | OData/src/System.Web.Http.OData/OData/EdmEntityObject.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using Microsoft.Data.Edm;
namespace System.Web.Http.OData
{
/// <summary>
/// Represents an <see cref="IEdmEntityObject"/> with no backing CLR <see cr... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using Microsoft.Data.Edm;
namespace System.Web.Http.OData
{
/// <summary>
/// Represents an <see cref="IEdmEntityObject"/> with no backing CLR <see cr... | mit | C# |
9b7127575989d2976b06aed69616a69523f9ad9b | Change default setting for mirror local groups. - Closes #119 | MutonUfoAI/pgina,daviddumas/pgina,daviddumas/pgina,stefanwerfling/pgina,stefanwerfling/pgina,pgina/pgina,MutonUfoAI/pgina,stefanwerfling/pgina,MutonUfoAI/pgina,daviddumas/pgina,pgina/pgina,pgina/pgina | Plugins/LocalMachine/Settings.cs | Plugins/LocalMachine/Settings.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using pGina.Shared.Settings;
namespace pGina.Plugin.LocalMachine
{
public class Settings
{
private static dynamic m_settings = new pGinaDynamicSettings(PluginImpl.PluginUuid);
static Settings()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using pGina.Shared.Settings;
namespace pGina.Plugin.LocalMachine
{
public class Settings
{
private static dynamic m_settings = new pGinaDynamicSettings(PluginImpl.PluginUuid);
static Settings()... | bsd-3-clause | C# |
f00dcde0d3033d2dc775b6990c6890be4781959e | Update index.cshtml | ArtyomGusarov/AzureWebAppProjectCloud,ArtyomGusarov/AzureWebAppProjectCloud | site/index.cshtml | site/index.cshtml | @{
var txt = DateTime.Now;
}
<html>
<body>
<p>The dateTime is @txt</p>
</body>
</html>
| @{
var txt = DateTime.Now;
}
<html>
<body>
<p>The DateTime is @txt</p>
</body>
</html> | mit | C# |
ece15d692e82d1fb39cbb1dbca4591e14109d006 | Fix metadata key, its the aggregate sequence number not the global one | liemqv/EventFlow,AntoineGa/EventFlow,rasmus/EventFlow | Source/EventFlow/MetadataKeys.cs | Source/EventFlow/MetadataKeys.cs | // The MIT License (MIT)
//
// Copyright (c) 2015 Rasmus Mikkelsen
// https://github.com/rasmus/EventFlow
//
// 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... | // The MIT License (MIT)
//
// Copyright (c) 2015 Rasmus Mikkelsen
// https://github.com/rasmus/EventFlow
//
// 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... | mit | C# |
c8eb499a701a057236533701d231b49cc0f5d585 | update demo | csyntax/MyDynamicXmlBuilder | sample/Program.cs | sample/Program.cs | using System;
using System.Dynamic;
using MyDynamicXmlBuilder;
namespace MyDynamicXmlBuilder.Example
{
internal class Program
{
internal static void Main(string[] args)
{
dynamic xml = new XmlBuilder();
xml.Declaration();
/* xml.user("Kiro Zlatniq", new
... | using System;
using System.Dynamic;
using MyDynamicXmlBuilder;
namespace MyDynamicXmlBuilder.Example
{
internal class Program
{
internal static void Main(string[] args)
{
dynamic xml = new XmlBuilder();
xml.Declaration();
xml.user("Kiro Zlatniq", new
... | mit | C# |
043b93a152c20ee56e15a4d9ec3287a9b7864921 | bump version | sabarcelos/EasyGelf,Pliner/EasyGelf,WassMM/EasyGelf | Source/Version.cs | Source/Version.cs | using System;
using System.Reflection;
// EasyGelf version number: <major>.<minor>.<non-breaking-feature>.<build>
[assembly: AssemblyVersion("0.2.3.0")]
[assembly: CLSCompliant(true)]
//0.2.3.0 Facility, LoggerName, ThreadName and Source Info
//0.2.2.0 Transport Encoders
//0.2.1.0 Buffered Transport
//0.2.0.0 Merge ... | using System;
using System.Reflection;
// EasyGelf version number: <major>.<minor>.<non-breaking-feature>.<build>
[assembly: AssemblyVersion("0.2.2.0")]
[assembly: CLSCompliant(true)]
//0.2.2.0 Transport Encoders
//0.2.1.0 Buffered Transport
//0.2.0.0 Merge all external dependencies except log4net into one assembly
... | mit | C# |
f1aa99e1033c8115259f4b9dcbc7c9ecf49932b0 | Fix catch selection blueprint not displayed after copy-pasted | peppy/osu,UselessToucan/osu,peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu | osu.Game.Rulesets.Catch/Edit/Blueprints/CatchSelectionBlueprint.cs | osu.Game.Rulesets.Catch/Edit/Blueprints/CatchSelectionBlueprint.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.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.UI.Scrolling;
usi... | // 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.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.UI.Scrolling;
usi... | mit | C# |
2fda1965c46823739ae293e09e1a75ee597c635d | Test for throwing exception when pop on empty stack | ozim/CakeStuff | ReverseWords/LargestElementInStack/LargestElementInStackTests.cs | ReverseWords/LargestElementInStack/LargestElementInStackTests.cs | namespace LargestElementInStack
{
using System;
using NUnit.Framework;
[TestFixture]
public class LargestElementInStackTests
{
[Test]
public void WhenPushedTwoValuesLatestIsReturnedByPop()
{
LargestElementInStack stack = new LargestElementInStack();
... | namespace LargestElementInStack
{
using NUnit.Framework;
[TestFixture]
public class LargestElementInStackTests
{
[Test]
public void WhenPushedTwoValuesLatestIsReturnedByPop()
{
LargestElementInStack stack = new LargestElementInStack();
int firstValue = 1... | apache-2.0 | C# |
0558f7b4b8e0002c9d8b6677a07d45b0b37eebe3 | Remove events from FigureModel | virtuallynaked/virtually-naked,virtuallynaked/virtually-naked | Viewer/src/figure/FigureModel.cs | Viewer/src/figure/FigureModel.cs | using System;
using System.Linq;
public class FigureModel {
private readonly FigureDefinition definition;
public FigureModel(FigureDefinition definition) {
this.definition = definition;
}
public bool IsVisible { get; set; }
public Shape Shape { get; set; }
public MaterialSetOption MaterialSet { get; set; }
... | using System;
using System.Linq;
public class FigureModel {
private readonly FigureDefinition definition;
public FigureModel(FigureDefinition definition) {
this.definition = definition;
}
private bool isVisible = true;
public event Action<bool, bool> IsVisibleChanged;
public bool IsVisible {
get {
retur... | mit | C# |
41aa5617d16a416afaaf8c33ed8b91f04fa52d06 | remove comments | AEdmunds/Vassall-Theme,AEdmunds/Vassall-Theme,AEdmunds/Vassall-Theme,AEdmunds/Vassall-Theme,AEdmunds/Vassall-Theme,AEdmunds/Vassall-Theme | Views/AdditionalResources.cshtml | Views/AdditionalResources.cshtml | @{
Style.Require("bootstrap");
Style.Require("custom");
Style.Require("styler");
Style.Require("isotope");
Style.Require("color_scheme");
Style.Require("google-fonts");
Style.Require("font-awesome");
Style.Require("font-awesome-ie7");
Style.Require("flexslider");
... | @{
/* Links
***************************************************************/
//RegisterLink(new LinkEntry {Type = "image/x-icon", Rel = "shortcut icon", Href = Url.Content(theme.Location + "/" + theme.Path + "/Images/" + "favicon.ico")});
// SetMeta(new MetaEntry { Name = "viewport", Content = "width... | bsd-2-clause | C# |
78f7dd4c850eb9c860ab674b7f07957e4db361eb | Rename ChessPiece.IsValidDestination parameters | ProgramFOX/Chess.NET | ChessDotNet/ChessPiece.cs | ChessDotNet/ChessPiece.cs | namespace ChessDotNet
{
public abstract class ChessPiece
{
public abstract Player Owner
{
get;
set;
}
public override bool Equals(object obj)
{
if (ReferenceEquals(this, obj))
return true;
if (obj == null |... | namespace ChessDotNet
{
public abstract class ChessPiece
{
public abstract Player Owner
{
get;
set;
}
public override bool Equals(object obj)
{
if (ReferenceEquals(this, obj))
return true;
if (obj == null |... | mit | C# |
ae20932db9b96e06e818bb6e245cdfff4d341cfc | Fix access and placement of WmChromaEvent. | danpierce1/Colore,CoraleStudios/Colore,WolfspiritM/Colore,Sharparam/Colore | Colore/Razer/Constants.cs | Colore/Razer/Constants.cs | // ---------------------------------------------------------------------------------------
// <copyright file="Constants.cs" company="">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associ... | // ---------------------------------------------------------------------------------------
// <copyright file="Constants.cs" company="">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associ... | mit | C# |
5c727525f38a08a3fdeb51830836a9b38642150b | introduce a typo => runtime error | jgraber/Blog_Snippets,jgraber/Blog_Snippets,jgraber/Blog_Snippets,jgraber/Blog_Snippets | BuildViews/FrameworkWeb/Views/Home/Contact.cshtml | BuildViews/FrameworkWeb/Views/Home/Contact.cshtml | @model FrameworkWeb.Models.CompanyInfo
@{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
@Model.PhoneNubmer
</address>
<address>
<strong>Support:</strong> <a href="... | @model FrameworkWeb.Models.CompanyInfo
@{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
@Model.PhoneNumber
</address>
<address>
<strong>Support:</strong> <a href="... | apache-2.0 | C# |
80fbd89f111c742f06487de07e808f5ba30c448f | Rename args to arguments in ICommand. | janpieterz/CommandRunner,Intreba/CommandRunner | CommandRunner/ICommand.cs | CommandRunner/ICommand.cs | using System.Collections.Generic;
namespace CommandRunner
{
/// <summary>
/// Implement this interface to enable your commands.
/// </summary>
public interface ICommand
{
/// <summary>
/// Method called when command should be executed.
/// </summary>
/// <param name... | using System.Collections.Generic;
namespace CommandRunner
{
/// <summary>
/// Implement this interface to enable your commands.
/// </summary>
public interface ICommand
{
/// <summary>
/// Method called when command should be executed.
/// </summary>
/// <param name... | mit | C# |
233801521ccfe70ff18bfc9ade7cf4d040a5b619 | Set version 0.8.2 | hazzik/DelegateDecompiler,morgen2009/DelegateDecompiler,jaenyph/DelegateDecompiler | src/DelegateDecompiler/Properties/AssemblyInfo.cs | src/DelegateDecompiler/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: AssemblyTi... | 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: AssemblyTi... | mit | C# |
e41e669f24f53b14680e598dab7b5186d3fddc57 | Make construct protected | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.InlineReviews/Tags/InlineCommentTag.cs | src/GitHub.InlineReviews/Tags/InlineCommentTag.cs | using GitHub.Extensions;
using GitHub.Services;
using GitHub.Models;
using Microsoft.VisualStudio.Text.Tagging;
namespace GitHub.InlineReviews.Tags
{
/// <summary>
/// Base class for inline comment tags.
/// </summary>
/// <seealso cref="AddInlineCommentTag"/>
/// <seealso cref="ShowInlineCommentT... | using GitHub.Extensions;
using GitHub.Services;
using GitHub.Models;
using Microsoft.VisualStudio.Text.Tagging;
namespace GitHub.InlineReviews.Tags
{
/// <summary>
/// Base class for inline comment tags.
/// </summary>
/// <seealso cref="AddInlineCommentTag"/>
/// <seealso cref="ShowInlineCommentT... | mit | C# |
d25792a686ffe626744872f4149a6d621ecdd71c | Fix flags (Mac shouldn't be 0 based) | Redth/Cake.Xamarin.Build | Cake.Xamarin.Build/Models/BuildPlatforms.cs | Cake.Xamarin.Build/Models/BuildPlatforms.cs | using System;
namespace Cake.Xamarin.Build
{
[Flags]
public enum BuildPlatforms
{
Mac = 1,
Windows = 2,
Linux = 4
}
}
| using System;
namespace Cake.Xamarin.Build
{
[Flags]
public enum BuildPlatforms
{
Mac = 0,
Windows = 1,
Linux = 2
}
}
| mit | C# |
cee5ca3ae9fbaa82d1026e64484c171a4a6ce662 | Update FullAuditedEntityOfTPrimaryKey.cs | lemestrez/aspnetboilerplate,liujunhua/aspnetboilerplate,beratcarsi/aspnetboilerplate,expertmaksud/aspnetboilerplate,ddNils/aspnetboilerplate,carldai0106/aspnetboilerplate,Tobyee/aspnetboilerplate,690486439/aspnetboilerplate,AlexGeller/aspnetboilerplate,nicklv/aspnetboilerplate,MDSNet2016/aspnetboilerplate,690486439/asp... | src/Abp/Domain/Entities/Auditing/FullAuditedEntityOfTPrimaryKey.cs | src/Abp/Domain/Entities/Auditing/FullAuditedEntityOfTPrimaryKey.cs | using System;
namespace Abp.Domain.Entities.Auditing
{
/// <summary>
/// Implements <see cref="IFullAudited"/> to be a base class for full-audited entities.
/// </summary>
/// <typeparam name="TPrimaryKey">Type of the primary key of the entity</typeparam>
public abstract class FullAuditedEntity<TPr... | using System;
namespace Abp.Domain.Entities.Auditing
{
/// <summary>
/// Implements <see cref="IFullAudited"/> to be a base class for full-audited entities.
/// </summary>
/// <typeparam name="TPrimaryKey">Type of the primary key of the entity</typeparam>
public abstract class FullAuditedEntity<TPr... | mit | C# |
9f9a7fd0f960b447ec85990dc21c435e8f815f25 | document C# EntryPointFinder | dotnet/roslyn,CyrusNajmabadi/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,bartdesmet/roslyn,shyamnamboodiripad/roslyn,weltkante/roslyn,jasonmalinowski/roslyn,KevinRansom/roslyn,KevinRansom/roslyn,mavasani/roslyn,shyamnamboodiripad/roslyn,CyrusNajmabadi/roslyn,dotnet/roslyn,KevinRansom/roslyn,bartdesmet/roslyn,bartdes... | src/VisualStudio/CSharp/Impl/ProjectSystemShim/EntryPointFinder.cs | src/VisualStudio/CSharp/Impl/ProjectSystemShim/EntryPointFinder.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.Collections.Generic;
using Microsoft.CodeAnalysis;
using Microsoft.VisualStudio.Lan... | // 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.Collections.Generic;
using Microsoft.CodeAnalysis;
using Microsoft.VisualStudio.Lan... | mit | C# |
ad72675d60b3eb26c886d436b82aa0296d66030f | Update src/VisualStudio/Core/Def/Storage/VisualStudioCloudCacheService.cs | mavasani/roslyn,bartdesmet/roslyn,CyrusNajmabadi/roslyn,sharwell/roslyn,diryboy/roslyn,weltkante/roslyn,eriawan/roslyn,diryboy/roslyn,shyamnamboodiripad/roslyn,weltkante/roslyn,jasonmalinowski/roslyn,KevinRansom/roslyn,wvdd007/roslyn,diryboy/roslyn,sharwell/roslyn,wvdd007/roslyn,KevinRansom/roslyn,eriawan/roslyn,shyamn... | src/VisualStudio/Core/Def/Storage/VisualStudioCloudCacheService.cs | src/VisualStudio/Core/Def/Storage/VisualStudioCloudCacheService.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 Microsoft.CodeAnalysis.Editor.Shared.Utilities;
using Microsoft.CodeAnalysis.Storage;
using Mic... | // 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 Microsoft.CodeAnalysis.Editor.Shared.Utilities;
using Microsoft.CodeAnalysis.Storage;
using Mic... | mit | C# |
e1d9e00b28b27a9c263f211cb5dbd3f93fac500d | Delete temporary file in LocalDataStreamFixture | jmerriweather/Halibut | source/Halibut.Tests/LocalDataStreamFixture.cs | source/Halibut.Tests/LocalDataStreamFixture.cs | using System.IO;
using NUnit.Framework;
namespace Halibut.Tests
{
[TestFixture]
public class LocalDataStreamFixture
{
[Test]
public void ShouldUseInMemoryReceiverLocallyToRead()
{
const string input = "Hello World!";
var dataStream = DataStream.FromString(in... | using System.IO;
using NUnit.Framework;
namespace Halibut.Tests
{
[TestFixture]
public class LocalDataStreamFixture
{
[Test]
public void ShouldUseInMemoryReceiverLocallyToRead()
{
const string input = "Hello World!";
var dataStream = DataStream.FromString(in... | apache-2.0 | C# |
e262cfe986a67787f474afb4573be7ee30769240 | Update BaseAnimation.cs | rotorgames/Rg.Plugins.Popup,rotorgames/Rg.Plugins.Popup | Rg.Plugins.Popup/Animations/Base/BaseAnimation.cs | Rg.Plugins.Popup/Animations/Base/BaseAnimation.cs | using System.Threading.Tasks;
using Rg.Plugins.Popup.Converters.TypeConverters;
using Rg.Plugins.Popup.Interfaces.Animations;
using Rg.Plugins.Popup.Pages;
using Xamarin.Forms;
using EasingTypeConverter = Rg.Plugins.Popup.Converters.TypeConverters.EasingTypeConverter;
namespace Rg.Plugins.Popup.Animations.Base
{
... | using System.Threading.Tasks;
using Rg.Plugins.Popup.Converters.TypeConverters;
using Rg.Plugins.Popup.Interfaces.Animations;
using Rg.Plugins.Popup.Pages;
using Xamarin.Forms;
namespace Rg.Plugins.Popup.Animations.Base
{
public abstract class BaseAnimation : IPopupAnimation
{
private const uint Defau... | mit | C# |
66f840bc5e525038e0fd0bdef0898a86eb9f751c | fix typo | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Update posted: September 30, 2020<br /><br />
In response to the emergency need for the analysis of wine for smoke taint,
... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Update posted: September 30, 2020<br /><br />
In response to the emergency need for the analysis of wine for smoke taint,
... | mit | C# |
f43c7537cc1a8a38a09ac1491e56e6015cef8dc8 | Update RemoteService Interface | c0nnex/SPAD.neXt,c0nnex/SPAD.neXt | SPAD.Interfaces/ServiceContract/IRemoteService.cs | SPAD.Interfaces/ServiceContract/IRemoteService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
namespace SPAD.neXt.Interfaces.ServiceContract
{
public static class RemoteServiceContract
{
public static readonly Uri Ser... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
namespace SPAD.neXt.Interfaces.ServiceContract
{
public static class RemoteServiceContract
{
public static readonly Uri ServiceUrl = new Uri("net.pipe://local... | mit | C# |
d92c1fde183f70133db39f453551393d45b29438 | Comment model changed | gyuwon/.NET-Data-Access-Layer,gyuwon/.NET-Data-Access-Layer | Commerce/Models/CommerceModels.cs | Commerce/Models/CommerceModels.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Commerce.Models
{
public class Item
{
public long Id { get; set; }
[Required]
public string Name { get; set;... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Commerce.Models
{
public class Item
{
public long Id { get; set; }
[Required]
public string Name { get; set;... | mit | C# |
d9d60e5a3db49f4b6d264a344948d68af4f1ff0f | Update ArcadeMode.cs | overtools/OWLib | DataTool/DataModels/ArcadeMode.cs | DataTool/DataModels/ArcadeMode.cs | using System.Linq;
using System.Runtime.Serialization;
using TankLib;
using TankLib.STU.Types;
using DataTool.Helper;
using static DataTool.Helper.IO;
namespace DataTool.DataModels {
[DataContract]
public class ArcadeMode {
[DataMember]
public teResourceGUID GUID;
[DataMember]... | using System.Runtime.Serialization;
using TankLib;
using TankLib.STU.Types;
using DataTool.Helper;
using static DataTool.Helper.IO;
namespace DataTool.DataModels {
[DataContract]
public class ArcadeMode {
[DataMember]
public teResourceGUID GUID;
[DataMember]
public str... | mit | C# |
5f395e8a72d05327344e56f8f428bae79d486cd2 | Test helper `Type.GetInstanceMethod(string)` is guaranteed never to return null. | fixie/fixie | src/Fixie.Tests/TestExtensions.cs | src/Fixie.Tests/TestExtensions.cs | namespace Fixie.Tests
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using Fixie.Internal;
static class TestExtensions
{
const BindingFlags InstanceMethods = Bin... | namespace Fixie.Tests
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using Fixie.Internal;
static class TestExtensions
{
const BindingFlags InstanceMethods = Bin... | mit | C# |
66b7b07c86e09dce9cc881ee22449df84efe4f9d | Remove unused import | nikeee/HolzShots | src/HolzShots.Core/ClipboardEx.cs | src/HolzShots.Core/ClipboardEx.cs | using System;
using System.Diagnostics;
namespace HolzShots
{
public static class ClipboardEx
{
/// <summary> Wrapper around Clipboard.SetText that catches exceptions. </summary>
public static bool SetText(string text)
{
Debug.Assert(text != null);
try
... | using System;
using System.Diagnostics;
using System.Windows.Forms;
namespace HolzShots
{
public static class ClipboardEx
{
/// <summary> Wrapper around Clipboard.SetText that catches exceptions. </summary>
public static bool SetText(string text)
{
Debug.Assert(text != null)... | agpl-3.0 | C# |
a962a08251973af7b4e94591fca4162b9ff0a966 | Update kod.cs | jakubcze/prywatnejm | kod.cs | kod.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RozliczeniePracownikow
{
public class Rozliczenia
{
public virtual double kosztPrzejazduSamochod(int kilometry, float spalanie, float cenaLitr, float dodatkowe)
{
... | int a = 2;
Console.WriteLine(a);
| mit | C# |
0b93df52014a91c4d83a4ab5da418a4113a7f8c3 | Allow null for user_id in Invitee.cs | janssenr/RobinApi.Net | src/RobinApi.Net/Model/Invitee.cs | src/RobinApi.Net/Model/Invitee.cs | using System;
using System.Runtime.Serialization;
namespace RobinApi.Net.Model
{
[DataContract]
public class Invitee
{
[DataMember(Name = "id", EmitDefaultValue = false)]
public int Id { get; set; }
[DataMember(Name = "event_id", EmitDefaultValue = false)]
publ... | using System;
using System.Runtime.Serialization;
namespace RobinApi.Net.Model
{
[DataContract]
public class Invitee
{
[DataMember(Name = "id", EmitDefaultValue = false)]
public int Id { get; set; }
[DataMember(Name = "event_id", EmitDefaultValue = false)]
publ... | mit | C# |
6c9915832f64e15ec751a16ad5472fed31c0708f | Fix spelling in readme | ethanli83/EFSqlTranslator | EFSqlTranslator.Tests/TranslatorTests/ManualJoinTranslationTests.cs | EFSqlTranslator.Tests/TranslatorTests/ManualJoinTranslationTests.cs | using System.Linq;
using EFSqlTranslator.EFModels;
using EFSqlTranslator.Translation;
using EFSqlTranslator.Translation.DbObjects;
using EFSqlTranslator.Translation.DbObjects.SqlObjects;
using NUnit.Framework;
namespace EFSqlTranslator.Tests.TranslatorTests
{
[TestFixture]
[CategoryReadMe(
Index = 5,
... | using System.Linq;
using EFSqlTranslator.EFModels;
using EFSqlTranslator.Translation;
using EFSqlTranslator.Translation.DbObjects;
using EFSqlTranslator.Translation.DbObjects.SqlObjects;
using NUnit.Framework;
namespace EFSqlTranslator.Tests.TranslatorTests
{
[TestFixture]
[CategoryReadMe(
Index = 5,
... | apache-2.0 | C# |
6e71a995bcefeeb660bcb64d19245f25a098ff5b | Clear compatibility file. | fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game | game/server/base/compat.cs | game/server/base/compat.cs | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2008, mEthLab Interactive
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
... | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2008, mEthLab Interactive
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
... | lgpl-2.1 | C# |
86ed90c90bec01f30c0f5121ebaab008914a8e41 | Update Settings.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | src/Core2D.Desktop/Settings.cs | src/Core2D.Desktop/Settings.cs | using System.IO;
using Core2D.Configuration.Themes;
namespace Core2D.Desktop
{
public class Settings
{
public ThemeName? Theme { get; set; } = null;
public FileInfo[]? Scripts { get; set; }
public FileInfo? Project { get; set; }
public bool Repl { get; set; }
public boo... | using System.IO;
using Core2D.Configuration.Themes;
namespace Core2D.Desktop
{
public class Settings
{
public ThemeName? Theme { get; set; } = null;
public FileInfo[]? Scripts { get; set; }
public FileInfo? Project { get; set; }
public bool Repl { get; set; }
public boo... | mit | C# |
e4d71d6528277d0fa7ea3c887b3c1665f36335d0 | Add methods a Vector2 | SpoonmanGames/Monogame-Helpers | Helpers/ExtensionMethods/Vector2Ext.cs | Helpers/ExtensionMethods/Vector2Ext.cs | using Microsoft.Xna.Framework;
namespace Helpers.ExtensionMethods.Vector2Ext
{
public static class Vector2Ext
{
public static Vector2 Add(this Vector2 v2, int value2)
{
v2.X += value2;
v2.Y += value2;
return v2;
}
public static Vector2 Add(t... | using Microsoft.Xna.Framework;
namespace Helpers.ExtensionMethods.Vector2Ext
{
public static class Vector2Ext
{
public static Vector2 Add(this Vector2 v2, int value2)
{
v2.X += value2;
v2.Y += value2;
return v2;
}
public static Vector2 Add(t... | apache-2.0 | C# |
e0fae1e5d938093747194626be9c8f559f422165 | add Sensor parameter but mark it as obsolete | ericnewton76/gmaps-api-net | src/Google.Maps/BaseRequest.cs | src/Google.Maps/BaseRequest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Google.Maps
{
public abstract class BaseRequest
{
[Obsolete("The Google Maps API no longer requires this parameter and it will be removed in the next release")]
public bool? Sensor { get; set; }
public... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Google.Maps
{
public abstract class BaseRequest
{
public abstract Uri ToUri();
}
}
| apache-2.0 | C# |
fa93215946518193a85ac038b7e96634ab8b285b | Add missing namespace | xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents | Util/Xamarin.AndroidBinderator/Xamarin.AndroidBinderator/Util.cs | Util/Xamarin.AndroidBinderator/Xamarin.AndroidBinderator/Util.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Security.Cryptography;
namespace AndroidBinderator
{
internal static class Util
{
internal static string HashMd5(Stream value)
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Security.Cryptography;
namespace AndroidBinderator
{
internal static class Util
{
internal static string HashMd5(Stream value)
{
... | mit | C# |
e6478cdd25d15604989a3f3fa011a9eed16cb7fb | remove unused using statment | peasy/Peasy.NET,peasy/Samples,peasy/Samples,ahanusa/Peasy.NET,ahanusa/facile.net,peasy/Samples | Orders.com.Web.Api/Global.asax.cs | Orders.com.Web.Api/Global.asax.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;
namespace Orders.com.Web.Api
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Orders.com.Web.Api
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Applica... | mit | C# |
e21ceb420a439708085e8280d4b59b7c4dea4037 | Use bufferless stream to improve perf and resource usage | projectkudu/kudu,shrimpy/kudu,MavenRain/kudu,kenegozi/kudu,kenegozi/kudu,shanselman/kudu,puneet-gupta/kudu,badescuga/kudu,MavenRain/kudu,YOTOV-LIMITED/kudu,sitereactor/kudu,chrisrpatterson/kudu,projectkudu/kudu,shanselman/kudu,sitereactor/kudu,badescuga/kudu,kenegozi/kudu,mauricionr/kudu,puneet-gupta/kudu,uQr/kudu,juvc... | Kudu.Services/HttpRequestExtensions.cs | Kudu.Services/HttpRequestExtensions.cs | using System.IO;
using System.IO.Compression;
using System.Web;
namespace Kudu.Services
{
public static class HttpRequestExtensions
{
public static Stream GetInputStream(this HttpRequestBase request)
{
var contentEncoding = request.Headers["Content-Encoding"];
if (cont... | using System.IO;
using System.IO.Compression;
using System.Web;
namespace Kudu.Services
{
public static class HttpRequestExtensions
{
public static Stream GetInputStream(this HttpRequestBase request)
{
var contentEncoding = request.Headers["Content-Encoding"];
if (cont... | apache-2.0 | C# |
b58d6b56575acb519238823b033c732eabee93c3 | use same type as the property in the underlying model | zmira/abremir.AllMyBricks | abremir.AllMyBricks.ThirdParty.Brickset/Models/ParameterSetId.cs | abremir.AllMyBricks.ThirdParty.Brickset/Models/ParameterSetId.cs | namespace abremir.AllMyBricks.ThirdParty.Brickset.Models
{
public class ParameterSetId : ParameterApiKey
{
public long SetID { get; set; }
}
} | namespace abremir.AllMyBricks.ThirdParty.Brickset.Models
{
public class ParameterSetId : ParameterApiKey
{
public int SetID { get; set; }
}
} | mit | C# |
53611cb5dcc8b9d64891962245be8cad979085e5 | Fix loading of projections. | Elders/Cronus.Projections.Cassandra,Elders/Cronus.Projections.Cassandra | src/Elders.Cronus.Projections.Cassandra/Properties/AssemblyInfo.cs | src/Elders.Cronus.Projections.Cassandra/Properties/AssemblyInfo.cs | // <auto-generated/>
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitleAttribute("Elders.Cronus.Projections.Cassandra")]
[assembly: AssemblyDescriptionAttribute("Cronus.Projections.Cassandra")]
[assembly: ComVisibleAttribute(false)]
[assembly: AssemblyProductAttribute("Elders.Cron... | // <auto-generated/>
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitleAttribute("Elders.Cronus.Projections.Cassandra")]
[assembly: AssemblyDescriptionAttribute("Cronus.Projections.Cassandra")]
[assembly: ComVisibleAttribute(false)]
[assembly: AssemblyProductAttribute("Elders.Cron... | apache-2.0 | C# |
63d7043bd89547a7cf395e45c17c6759e6ec41a1 | Remove unnecessary Normalize method | rmterra/NesZord | src/NesZord.Core/Memory/Ram.cs | src/NesZord.Core/Memory/Ram.cs | using System;
namespace NesZord.Core.Memory
{
internal class Ram : IBoundedMemory
{
private static readonly MemoryAddress INTERNAL_RAM_FIRST_ADDRESS = new MemoryAddress(0x00, 0x00);
private static readonly MemoryAddress INTERNAL_RAM_LASTADDRESS = new MemoryAddress(0x07, 0xff);
private static readonly Memory... | using System;
namespace NesZord.Core.Memory
{
internal class Ram : IBoundedMemory
{
private static readonly MemoryAddress INTERNAL_RAM_FIRST_ADDRESS = new MemoryAddress(0x00, 0x00);
private static readonly MemoryAddress INTERNAL_RAM_LASTADDRESS = new MemoryAddress(0x07, 0xff);
private static readonly Memory... | apache-2.0 | C# |
209176fd0b3bea645e9cd04c607edb9da628416a | Remove need for function test to register telemetry source | mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,peterblazejewic... | test/websites/Glimpse.FunctionalTest.Website/Startup.cs | test/websites/Glimpse.FunctionalTest.Website/Startup.cs | using System.Diagnostics.Tracing;
using Glimpse.Agent.AspNet.Mvc;
using Glimpse.Agent.Web;
using Glimpse.Server.Web;
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
namespace Glimpse.FunctionalTest.Website
{
public class Startup
{
public void ConfigureServices(IServiceCo... | using System.Diagnostics.Tracing;
using Glimpse.Agent.AspNet.Mvc;
using Glimpse.Agent.Web;
using Glimpse.Server.Web;
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
namespace Glimpse.FunctionalTest.Website
{
public class Startup
{
public void ConfigureServices(IServiceCo... | mit | C# |
07d3e366239a22eca6a6f4027cdd7a03d1d5023d | Add tests | skonves/Konves.KScript | tests/Konves.KScript.UnitTests/ExpressionTestFixture.cs | tests/Konves.KScript.UnitTests/ExpressionTestFixture.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Konves.KScript.UnitTests
{
[TestClass]
public class ExpressionTestFixture
{
[TestCategory(nameof(Expression))]
[TestMethod]
public ... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Konves.KScript.UnitTests
{
[TestClass]
public class ExpressionTestFixture
{
[TestCategory(nameof(Expression))]
[TestMethod]
public ... | apache-2.0 | C# |
b3911d2781e74a8295f91958f3cd2356857397fc | Update ArrayOperations.cs | shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank | interim/ArrayOperations.cs | interim/ArrayOperations.cs | /*
Methods to left shift array arr of size n, d times
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class ArrayOperations {
static void Main(String[] args) { //rename to shift(int n, int d)
string s = Console.ReadLine();
int n = Convert.ToInt32(s.Split(' ... | /*
Methods to left shift array arr of size n, d times
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static void Main(String[] args) {
string s = Console.ReadLine();
int n = Convert.ToInt32(s.Split(' ')[0]);
int d = Convert.ToInt32(s... | mit | C# |
7dab33c3343cf4c0e95163dbce282adc964dafb2 | Add CachedBundleContainerFactory test. | honestegg/cassette,honestegg/cassette,damiensawyer/cassette,BluewireTechnologies/cassette,damiensawyer/cassette,honestegg/cassette,BluewireTechnologies/cassette,damiensawyer/cassette,andrewdavey/cassette,andrewdavey/cassette,andrewdavey/cassette | src/Cassette.UnitTests/Configuration/CachedBundleContainerFactory.cs | src/Cassette.UnitTests/Configuration/CachedBundleContainerFactory.cs | using System.Linq;
using Cassette.Manifests;
using Cassette.Scripts;
using Cassette.Scripts.Manifests;
using Moq;
using Should;
using Xunit;
namespace Cassette.Configuration
{
public class CachedBundleContainerFactory_Tests : BundleContainerFactoryTestSuite
{
readonly Mock<ICassetteManifes... | using Cassette.Manifests;
using Moq;
namespace Cassette.Configuration
{
public class CachedBundleContainerFactory_Tests : BundleContainerFactoryTestSuite
{
readonly Mock<ICassetteManifestCache> cache;
public CachedBundleContainerFactory_Tests()
{
cache = new Moc... | mit | C# |
7e44451f0cb3f0bb4aa8a8dd46d32f64d0044deb | Clean up. | Robelind/MvcCoreBootstrap | src/MvcCoreBootstrapForm/Builders/MvcCoreBootstrapDropdownBuilder.cs | src/MvcCoreBootstrapForm/Builders/MvcCoreBootstrapDropdownBuilder.cs | using MvcCoreBootstrap.Building;
using MvcCoreBootstrapForm.Config;
namespace MvcCoreBootstrapForm.Builders
{
public class MvcCoreBootstrapDropdownBuilder : BuilderBase
{
private readonly DropdownConfig _config;
internal MvcCoreBootstrapDropdownBuilder(DropdownConfig config)
{
... | using MvcCoreBootstrap.Building;
using MvcCoreBootstrapForm.Config;
namespace MvcCoreBootstrapForm.Builders
{
public class MvcCoreBootstrapDropdownBuilder : BuilderBase
{
private readonly DropdownConfig _config;
internal MvcCoreBootstrapDropdownBuilder(DropdownConfig config)
{
... | mit | C# |
c184b163ac423a481cb71a223ccf3eac91963905 | add method to set a path to a custom ca file | SEEK-Jobs/pact-net,SEEK-Jobs/pact-net,SEEK-Jobs/pact-net | PactNet/PactUriOptions.cs | PactNet/PactUriOptions.cs | using System;
using System.Text;
namespace PactNet
{
public class PactUriOptions
{
public string Username { get; }
public string Password { get; }
public string Token { get; }
public string AuthorizationScheme { get; }
public string AuthorizationValue { get; ... | using System;
using System.Text;
namespace PactNet
{
public class PactUriOptions
{
public string Username { get; }
public string Password { get; }
public string Token { get; }
public string AuthorizationScheme { get; }
public string AuthorizationValue { get; ... | mit | C# |
e16c32bd8bf08e3d35f168bd624570bd75a5a91e | Add compute file hash. | robertzml/Poseidon | Poseidon.Common/Hasher.cs | Poseidon.Common/Hasher.cs | using System;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace Poseidon.Common
{
/// <summary>
/// 散列算法类
/// </summary>
public class Hasher
{
#region Method
/// <summary>
/// SHA1加密
/// </summary>
/// <para... | using System;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace Poseidon.Common
{
/// <summary>
/// 散列算法类
/// </summary>
public class Hasher
{
#region Method
/// <summary>
/// SHA1加密
/// </summary>
/// <param name="source">明... | mit | C# |
542a46b0a7675cc9b4676cdceeb1326257217261 | Update r# version | NeoAdonis/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,smoogipoo/osu,smoogipoo/osu,ZLima12/osu,ppy/osu,peppy/osu,EVAST9919/osu,2yangk23/osu,ZLima12/osu,UselessToucan/osu,NeoAdonis/osu,johnneijzen/osu,peppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,ppy/osu,EVAST9919/osu,2yangk23/osu,johnneijzen/osu,Useless... | build/build.cake | build/build.cake | #addin "nuget:?package=CodeFileSanity&version=0.0.21"
#addin "nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2018.3.4"
#tool "nuget:?package=NVika.MSBuild&version=1.0.1"
var nVikaToolPath = GetFiles("./tools/NVika.MSBuild.*/tools/NVika.exe").First();
///////////////////////////////////////////////////////... | #addin "nuget:?package=CodeFileSanity&version=0.0.21"
#addin "nuget:?package=JetBrains.ReSharper.CommandLineTools&version=2018.2.2"
#tool "nuget:?package=NVika.MSBuild&version=1.0.1"
var nVikaToolPath = GetFiles("./tools/NVika.MSBuild.*/tools/NVika.exe").First();
///////////////////////////////////////////////////////... | mit | C# |
d0808c95c510838656fb2e523de321779e979890 | update LProgress | LingJiJian/uLui,LingJiJian/uLui,LingJiJian/uLui,LingJiJian/uLui,LingJiJian/uLui,LingJiJian/uLui | Assets/Game/Resources/Scripts/LWidget/LProgress.cs | Assets/Game/Resources/Scripts/LWidget/LProgress.cs | /****************************************************************************
Copyright (c) 2015 Lingjijian
Created by Lingjijian on 2015
342854406@qq.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to dea... | /****************************************************************************
Copyright (c) 2015 Lingjijian
Created by Lingjijian on 2015
342854406@qq.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to dea... | mit | C# |
90470bca62cbdedfb2f42e371610ef02a6034543 | Add test | sakapon/Bellona.Analysis | Bellona/UnitTest/Clustering/ClusteringModelTest.cs | Bellona/UnitTest/Clustering/ClusteringModelTest.cs | using System;
using System.Drawing;
using System.Linq;
using Bellona.Clustering;
using Bellona.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTest.Clustering
{
[TestClass]
public class ClusteringModelTest
{
[TestMethod]
public void Test_1()
{
va... | using System;
using System.Drawing;
using System.Linq;
using Bellona.Clustering;
using Bellona.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTest.Clustering
{
[TestClass]
public class ClusteringModelTest
{
[TestMethod]
public void Test_1()
{
va... | mit | C# |
94d21c95c6c39e2cf4af356b65eba745864455d3 | Allow substituting of internal types. | samcragg/Crest,samcragg/Crest,samcragg/Crest | tools/Crest.OpenApi/Properties/AssemblyInfo.cs | tools/Crest.OpenApi/Properties/AssemblyInfo.cs | // Copyright (c) Samuel Cragg.
//
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Samuel Cra... | // Copyright (c) Samuel Cragg.
//
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Samuel Cra... | mit | C# |
edcf9f9a321cc865b2c680f1439197cf2e217a37 | Reset the counter for the next playthrough - BH | Tolk-Haggard/GlobalGameJam2017 | SoundWaves/Assets/DestroyEnemy.cs | SoundWaves/Assets/DestroyEnemy.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class DestroyEnemy : MonoBehaviour {
public static int kills = 0;
void OnCollisionEnter (Collision col) {
if(col.gameObject.name.Contains("Monster")) {
kills += 1;
Destroy(col.gameObjec... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class DestroyEnemy : MonoBehaviour {
public static int kills = 0;
void OnCollisionEnter (Collision col) {
if(col.gameObject.name.Contains("Monster")) {
kills += 1;
Destroy(col.gameObjec... | mit | C# |
adeb6fc08357abe61ead0e9f699ae1af30225ea1 | add clean IP task log file | NuGet/NuGet.Services.Dashboard,NuGet/NuGet.Services.Dashboard,NuGet/NuGet.Services.Dashboard | NuGet.Services.Dashboard.Operations/Tasks/DashBoardTasks/IssLogCleanUptask.cs | NuGet.Services.Dashboard.Operations/Tasks/DashBoardTasks/IssLogCleanUptask.cs | using System;
using System.IO;
namespace NuGetGallery.Operations.Tasks.DashBoardTasks
{
[Command("IssCleanUpTask", "clean up old iss log in current dir", AltName = "clean")]
class IssLogCleanUptask : OpsTask
{
public override void ExecuteCommand()
{
var dirs = Directory.Enumera... | using System;
using System.IO;
namespace NuGetGallery.Operations.Tasks.DashBoardTasks
{
[Command("IssCleanUpTask", "clean up old iss log in current dir", AltName = "clean")]
class IssLogCleanUptask : OpsTask
{
public override void ExecuteCommand()
{
var dirs = Directory.Enumera... | apache-2.0 | C# |
f0a302b7043b64f689904edc670f835d231c1670 | make helper method private | StrubT/StrubTUtilities | StrubTUtilities/DataExtensions.cs | StrubTUtilities/DataExtensions.cs | using System.Data;
using System.Linq;
namespace StrubT {
public static class DataExtensions {
public static IReadOnlyTable<object> AsReadOnly(this DataTable dataTable) {
var table = new Table<object>(dataTable.TableName);
table.AddColumns(dataTable.Columns.Cast<DataColumn>().Select(c => c.ColumnName).ToLi... | using System.Data;
using System.Linq;
namespace StrubT {
public static class DataExtensions {
public static IReadOnlyTable<object> AsReadOnly(this DataTable dataTable) {
var table = new Table<object>(dataTable.TableName);
table.AddColumns(dataTable.Columns.Cast<DataColumn>().Select(c => c.ColumnName).ToLi... | mit | C# |
36bfc6e7eff1cc650fdae6fbd5b04dfaabc2aab1 | update the version number | mikebarker/Plethora.NET | src/AssemblyInfo.Common.cs | src/AssemblyInfo.Common.cs | //------------------------------------------------------------------------------
// Copyright 2007 The Plethora Project.
// All rights reserved.
//
// Refer to the Licence.txt distributed with this file for licencing terms.
//----------------------------------------------------------------------------... | //------------------------------------------------------------------------------
// Copyright 2007 The Plethora Project.
// All rights reserved.
//
// Refer to the Licence.txt distributed with this file for licencing terms.
//----------------------------------------------------------------------------... | mit | C# |
ad27e5b3bad0b697e38e1837052d8eb30f3dc7bc | Change message. | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | src/CompetitionPlatform/Views/Shared/CreateClosed.cshtml | src/CompetitionPlatform/Views/Shared/CreateClosed.cshtml | @{
ViewData["Title"] = "Access Denied";
}
<div class="container">
<h2 class="text-danger">Creating projects is unavailable.</h2>
<p>
The Function "сreating project" is only available for lykke community members with an approved KYC Status.
</p>
</div> | @{
ViewData["Title"] = "Access Denied";
}
<div class="container">
<h2 class="text-danger">Creating projects is temporarily unavailable.</h2>
<p>
The Function "сreating project" is only available for lykke community members with an approved KYC Status.
</p>
</div> | mit | C# |
5e499c9e6f77db6fe98445d2a802080a358b0b2a | Add timestamp to end of stub emails to make them unique | ValuationOffice/VORBS,ValuationOffice/VORBS,ValuationOffice/VORBS | VORBS/Utils/StubbedEmailClient.cs | VORBS/Utils/StubbedEmailClient.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Web;
using VORBS.Utils.interfaces;
namespace VORBS.Utils
{
public class StubbedEmailClient : ISmtpClient
{
private NLog.Logger _logger;
public StubbedEmai... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Web;
using VORBS.Utils.interfaces;
namespace VORBS.Utils
{
public class StubbedEmailClient : ISmtpClient
{
private NLog.Logger _logger;
public StubbedEmai... | apache-2.0 | C# |
c509ad77ffc67b3a4cc5e7374206e1279bcfaae8 | Allow configure to be null | mrahhal/MR.Augmenter,mrahhal/MR.Augmenter | src/MR.Augmenter/AugmenterServiceCollectionExtensions.cs | src/MR.Augmenter/AugmenterServiceCollectionExtensions.cs | using System;
using Microsoft.Extensions.DependencyInjection;
using MR.Augmenter.Internal;
namespace MR.Augmenter
{
public static class AugmenterServiceCollectionExtensions
{
/// <summary>
/// Adds augmenter to services.
/// </summary>
/// <param name="services"></param>
/// <param name="configure">Can be... | using System;
using Microsoft.Extensions.DependencyInjection;
using MR.Augmenter.Internal;
namespace MR.Augmenter
{
public static class AugmenterServiceCollectionExtensions
{
public static IAugmenterBuilder AddAugmenter(
this IServiceCollection services,
Action<AugmenterConfiguration> configure)
{
serv... | mit | C# |
a34624218f7674f9f4cabb13c23d8605fd496e88 | Update AssemblyInfoResult.cs | mansoor-omrani/AssemblyInfo | AssemblyInfo/AssemblyInfoResult.cs | AssemblyInfo/AssemblyInfoResult.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AssemblyInfo
{
public class AssemblyInfoResult
{
public string CodeBase { get; set; }
public string ContentType { get; set; }
public string CultureInfo { get; s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AssemblyInfo
{
public class AssemblyInfoResult
{
public string CodeBase { get; set; }
public string ContentType { get; set; }
public string CultureInfo { get; s... | mit | C# |
e70266fa8e3588841ffb293cea786b637e6b1627 | Set a default value for MP3 recording preset for new config files | Heufneutje/HeufyAudioRecorder,Heufneutje/AudioSharp | AudioSharp.Config/ConfigHandler.cs | AudioSharp.Config/ConfigHandler.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Input;
using AudioSharp.Utils;
namespace AudioSharp.Config
{
public class ConfigHandler
{
public static void SaveConfig(Configuration config)
{
string json = JsonUtils.SerializeObject(config);
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Input;
using AudioSharp.Utils;
namespace AudioSharp.Config
{
public class ConfigHandler
{
public static void SaveConfig(Configuration config)
{
string json = JsonUtils.SerializeObject(config);
... | mit | C# |
86b29e262039823f119e0f350716a2dc971c097d | Increase test log queue size | Abc-Arbitrage/ZeroLog | ZeroLog.Tests/IntegrationTests.cs | ZeroLog.Tests/IntegrationTests.cs | using System;
using System.Diagnostics;
using System.Threading;
using NUnit.Framework;
using ZeroLog.Appenders;
namespace ZeroLog.Tests
{
[TestFixture]
[Ignore("Manual")]
public class IntegrationTests
{
[SetUp]
public void SetUp()
{
LogManager.Initialize(new[] { new... | using System;
using System.Diagnostics;
using System.Threading;
using NUnit.Framework;
using ZeroLog.Appenders;
namespace ZeroLog.Tests
{
[TestFixture]
[Ignore("Manual")]
public class IntegrationTests
{
[SetUp]
public void SetUp()
{
LogManager.Initialize(new[] { new... | mit | C# |
086f6c6e4153c2511353f4b1bbab3b45b05a552c | fix IsApproved logic | tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web | src/Tugberk.Domain/Post.cs | src/Tugberk.Domain/Post.cs | using System.Collections.Generic;
using System.Linq;
namespace Tugberk.Domain
{
public class Post
{
public string Id { get; set; }
public string Language { get; set; }
public string Title { get; set; }
public string Abstract { get; set; }
public string Content { get; s... | using System.Collections.Generic;
using System.Linq;
namespace Tugberk.Domain
{
public class Post
{
public string Id { get; set; }
public string Language { get; set; }
public string Title { get; set; }
public string Abstract { get; set; }
public string Content { get; s... | agpl-3.0 | C# |
660ac913086d761a1551d1d9029c3e68f736e9c1 | Mark Xpdm.Math as CLS-Compliant | neoeinstein/xpdm | Xpdm.Math/AssemblyInfo.cs | Xpdm.Math/AssemblyInfo.cs | //
// AssemblyInfo.cs
//
// Author:
// Marcus Griep <marcus@griep.us>
//
// Copyright (c) 2009 Marcus Griep
//
// 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 restrictio... | //
// AssemblyInfo.cs
//
// Author:
// Marcus Griep <marcus@griep.us>
//
// Copyright (c) 2009 Marcus Griep
//
// 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 restrictio... | mit | C# |
bc73b7af84c1f134ffff05a80cb7a36ce18ad03b | Update assembly and file version | pratoservices/extjswebdriver,pratoservices/extjswebdriver,pratoservices/extjswebdriver | ExtjsWd/Properties/AssemblyInfo.cs | ExtjsWd/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("Ex... | 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("Ex... | mit | C# |
e8989bc3a2c337c2840bfc6390490aaaf1c9d798 | update wording | ForNeVeR/fornever.me,ForNeVeR/fornever.me,ForNeVeR/fornever.me | ForneverMind/views/en/Index.cshtml | ForneverMind/views/en/Index.cshtml | @model ForneverMind.Models.PostArchiveModel
@{
Layout = "en/_Layout.cshtml";
ViewBag.Title = "int 20h";
}
<p>Hello!</p>
<p>My name is Friedrich von Never.</p>
<p>This is my website where I publish my technical and programming notes.</p>
<h2>Latest posts</h2>
<ul>
@foreach (var post in Model.Posts)
... | @model ForneverMind.Models.PostArchiveModel
@{
Layout = "en/_Layout.cshtml";
ViewBag.Title = "int 20h";
}
<p>Hello!</p>
<p>My name is Friedrich von Never.</p>
<p>This is my website where I'm publising my technical and programming notes.</p>
<h2>Latest posts</h2>
<ul>
@foreach (var post in Model.Posts)
... | mit | C# |
2d73171f9c4164f277345852745d5966986e743e | Fix transfer type | ChristopherHaws/gdax-dotnet | Gdax/Accounts/GetTransfersQuery.cs | Gdax/Accounts/GetTransfersQuery.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Gdax
{
public static class GetTransfersQuery
{
public static async Task<PagedResults<Transfer, DateTimeOffset?>> GetTransfersAsync(this GdaxClient client, Guid accountId, PagingOptions<DateTimeOffset?> p... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Gdax
{
public static class GetTransfersQuery
{
public static async Task<PagedResults<Transfer, DateTimeOffset?>> GetTransfersAsync(this GdaxClient client, Guid accountId, PagingOptions<DateTimeOffset?> p... | mit | C# |
541b2a595afdc1f6ad5785c2aedba661121b94c7 | Use safe cast for readability | alastairs/BobTheBuilder | BobTheBuilder/Activation/InstanceCreator.cs | BobTheBuilder/Activation/InstanceCreator.cs | using System.Linq;
using BobTheBuilder.ArgumentStore.Queries;
using JetBrains.Annotations;
namespace BobTheBuilder.Activation
{
internal class InstanceCreator
{
private readonly IArgumentStoreQuery constructorArgumentsQuery;
public InstanceCreator([NotNull]IArgumentStoreQuery constructorArgum... | using System.Linq;
using BobTheBuilder.ArgumentStore.Queries;
using JetBrains.Annotations;
namespace BobTheBuilder.Activation
{
internal class InstanceCreator
{
private readonly IArgumentStoreQuery constructorArgumentsQuery;
public InstanceCreator([NotNull]IArgumentStoreQuery constructorArgum... | apache-2.0 | C# |
a785324102ef43ec430d32b0851afd97ee24dba6 | Add "Deprecated" to Tardigrade-Strings | mnaiman/duplicati,mnaiman/duplicati,duplicati/duplicati,duplicati/duplicati,duplicati/duplicati,duplicati/duplicati,mnaiman/duplicati,duplicati/duplicati,mnaiman/duplicati,mnaiman/duplicati | Duplicati/Library/Backend/Tardigrade/Strings.cs | Duplicati/Library/Backend/Tardigrade/Strings.cs | using Duplicati.Library.Localization.Short;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Duplicati.Library.Backend.Strings
{
internal static class Tardigrade
{
public static string DisplayName { get { return LC.L(@"Tardig... | using Duplicati.Library.Localization.Short;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Duplicati.Library.Backend.Strings
{
internal static class Tardigrade
{
public static string DisplayName { get { return LC.L(@"Tardig... | lgpl-2.1 | C# |
6a1471aa105e64bd93845d747ea8aa18af7efa48 | introduce notion of looking up item by slot and Items having name. naive implementation for now. | BennieCopeland/NSpec,nspec/NSpec,nspectator/NSpectator,nspectator/NSpectator,mattflo/NSpec,mattflo/NSpec,BennieCopeland/NSpec,mattflo/NSpec,nspec/NSpec,mattflo/NSpec | SampleSpecs/Compare/NSpec/VendingMachineSpec.cs | SampleSpecs/Compare/NSpec/VendingMachineSpec.cs | using System.Collections.Generic;
using System.Linq;
using NSpec;
namespace SampleSpecs.Compare.NSpec
{
class VendingMachineSpec : nspec
{
void given_new_vending_machine()
{
before = () => machine = new VendingMachine();
it["should have no items"] = ()=> machine.Items()... | using System.Collections.Generic;
using System.Linq;
using NSpec;
namespace SampleSpecs.Compare.NSpec
{
class VendingMachineSpec : nspec
{
void given_new_vending_machine()
{
before = () => machine = new VendingMachine();
it["should have no items"] = ()=> machine.Items()... | mit | C# |
db58302feb76e087d4d396aa7c7e7c21c2938b0b | Change Copyright page to License page. | dsteinweg/TeacherPouch,dsteinweg/TeacherPouch,dsteinweg/TeacherPouch,dsteinweg/TeacherPouch | TeacherPouch.Web/Controllers/PagesController.cs | TeacherPouch.Web/Controllers/PagesController.cs | using System;
using System.Web.Mvc;
using TeacherPouch.Models;
using TeacherPouch.Web.ViewModels;
namespace TeacherPouch.Web.Controllers
{
public partial class PagesController : ControllerBase
{
// GET: /
public virtual ViewResult Home()
{
return View(Views.Home);
... | using System;
using System.Web.Mvc;
using TeacherPouch.Models;
using TeacherPouch.Web.ViewModels;
namespace TeacherPouch.Web.Controllers
{
public partial class PagesController : ControllerBase
{
// GET: /
public virtual ViewResult Home()
{
return View(Views.Home);
... | mit | C# |
d05678cd75c09652115becafdd37d61c229dbc9d | Update CaesarCipher.cs | natalya-k/algorithms | encryption/CaesarCipher.cs | encryption/CaesarCipher.cs | using System;
using System.Text;
namespace Algorithms
{
static class CaesarCipher
{
private const int LettersNumber = 26;
private const int Shift = 3;
private const string PlainText = "The quick brown fox jumps over the lazy dog.";
public static void Test()
{
... | using System;
using System.Text;
namespace Algorithms
{
static class CaesarCipher
{
private const int LettersNumber = 26;
private const int Shift = 3;
private const string PlainText = "The quick brown fox jumps over the lazy dog.";
public static void Test()
{
... | mit | C# |
3e375bebcc8e3c00b6032a00eeba79bb1c916199 | Use the return type of the aggregate | TheEadie/PlayerRank,TheEadie/PlayerRank | src/PlayerRank/League.cs | src/PlayerRank/League.cs | using System.Collections.Generic;
using System.Linq;
using PlayerRank.Scoring;
namespace PlayerRank
{
/// <summary>
/// A league made up of multiple <see cref="Game"/>s over time.
/// </summary>
public class League
{
private readonly List<Game> _games = new List<Game>();
private r... | using System.Collections.Generic;
using System.Linq;
using PlayerRank.Scoring;
namespace PlayerRank
{
/// <summary>
/// A league made up of multiple <see cref="Game"/>s over time.
/// </summary>
public class League
{
private readonly List<Game> _games = new List<Game>();
private r... | mit | C# |
f4ad20c62ad3b89bfd73641af0d56442e1923848 | fix attributes and add sizeof test for structure size | splitice/IPTables.Net,splitice/IPTables.Net,splitice/IPTables.Net,splitice/IPTables.Net | IPTables.Net.Tests/ConntrackLibraryTests.cs | IPTables.Net.Tests/ConntrackLibraryTests.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using IPTables.Net.Conntrack;
using IPTables.Net.Iptables.NativeLibrary;
using NUnit.Framework;
namespace IPTables.Net.Tests
{
[TestFixture]
class ConntrackLibr... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using IPTables.Net.Conntrack;
using IPTables.Net.Iptables.NativeLibrary;
using NUnit.Framework;
namespace IPTables.Net.Tests
{
[TestFixture]
class ConntrackLibraryTests
{
public static b... | apache-2.0 | C# |
5d0edd323ef1e263b42eb6ea942d7ee4802d07d8 | Remove IScriptExtent.Translate method from extensions | daviwil/PSScriptAnalyzer,dlwyatt/PSScriptAnalyzer,PowerShell/PSScriptAnalyzer | Engine/Extensions.cs | Engine/Extensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation.Language;
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Extensions
{
// TODO Add documentation
public static class Extensions
{
public static IEnumerable<string> GetLines(this string text)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation.Language;
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Extensions
{
// TODO Add documentation
public static class Extensions
{
public static IEnumerable<string> GetLines(this string text)... | mit | C# |
dd615f1e07bef597d99e4da5aadeefe8ff539eb8 | Make sure FileInfo's are disposed. | rubenv/tripod,rubenv/tripod | src/Core/Tripod.Core/Tripod.Base/RecursiveDirectoryEnumerator.cs | src/Core/Tripod.Core/Tripod.Base/RecursiveDirectoryEnumerator.cs | //
// RecursiveDirectoryEnumerator.cs
//
// Author:
// Ruben Vermeersch <ruben@savanne.be>
//
// Copyright (c) 2010 Ruben Vermeersch <ruben@savanne.be>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal... | //
// RecursiveDirectoryEnumerator.cs
//
// Author:
// Ruben Vermeersch <ruben@savanne.be>
//
// Copyright (c) 2010 Ruben Vermeersch <ruben@savanne.be>
//
// 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# |
74ae4c8de73b498d6c7aa434c848dc69355dad58 | Revert "Try to use SampleData instead of real data in the meantime" | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.VisualStudio/UI/Views/PullRequestCreationView.xaml.cs | src/GitHub.VisualStudio/UI/Views/PullRequestCreationView.xaml.cs | using GitHub.Exports;
using GitHub.UI;
using GitHub.ViewModels;
using System.ComponentModel.Composition;
using System.Windows.Controls;
using ReactiveUI;
namespace GitHub.VisualStudio.UI.Views
{
public class GenericPullRequestCreationView : SimpleViewUserControl<IPullRequestCreationViewModel, GenericPullRequestCr... | using GitHub.Exports;
using GitHub.UI;
using GitHub.ViewModels;
using System.ComponentModel.Composition;
using System.Windows.Controls;
using ReactiveUI;
namespace GitHub.VisualStudio.UI.Views
{
public class GenericPullRequestCreationView : SimpleViewUserControl<IPullRequestCreationViewModel, GenericPullRequestCr... | mit | C# |
1d925e1e796d60e252c40bfdbaaa11b67bc4f0fc | Add checks to test | nikeee/HolzShots | src/HolzShots.Core.Tests/Net/Custom/CustomUploaderLoaderTests.cs | src/HolzShots.Core.Tests/Net/Custom/CustomUploaderLoaderTests.cs | using HolzShots.Net.Custom;
using Xunit;
namespace HolzShots.Core.Tests.Net.Custom
{
public class CustomUploaderLoaderTests
{
[Theory]
[FileStringContentData("Files/DirectUpload.net.hsjson")]
[FileStringContentData("Files/FotosHochladen.hsjson")]
public void ValidateTest(string... | using HolzShots.Net.Custom;
using Xunit;
namespace HolzShots.Core.Tests.Net.Custom
{
public class CustomUploaderLoaderTests
{
[Theory]
[FileStringContentData("Files/DirectUpload.net.hsjson")]
[FileStringContentData("Files/FotosHochladen.hsjson")]
public void ValidateTest(string... | agpl-3.0 | C# |
8b0a1cf37aaa7e269cecfbdbd333e2dbe36806e2 | test port changed | Softlr/selenium-webdriver-extensions,Softlr/Selenium.WebDriver.Extensions,RaYell/selenium-webdriver-extensions,Softlr/selenium-webdriver-extensions | test/Selenium.WebDriver.Extensions.IntegrationTests/TestsBase.cs | test/Selenium.WebDriver.Extensions.IntegrationTests/TestsBase.cs | namespace Selenium.WebDriver.Extensions.IntegrationTests
{
using System;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Nancy.Hosting.Self;
using OpenQA.Selenium;
using PostSharp.Patterns.Model;
[Disposable]
[PublicAPI]
[ExcludeFromCodeCoverage]
public... | namespace Selenium.WebDriver.Extensions.IntegrationTests
{
using System;
using System.Diagnostics.CodeAnalysis;
using JetBrains.Annotations;
using Nancy.Hosting.Self;
using OpenQA.Selenium;
using PostSharp.Patterns.Model;
[Disposable]
[PublicAPI]
[ExcludeFromCodeCoverage]
public... | apache-2.0 | C# |
e059c489e4350097788aa8a968cc7595838bfac7 | Improve Unit Tests #6 - fixed boolean tests | synergy-software/synergy.contracts,synergy-software/synergy.contracts | Synergy.Contracts.Test/Failures/FailBooleanTest.cs | Synergy.Contracts.Test/Failures/FailBooleanTest.cs | using NUnit.Framework;
namespace Synergy.Contracts.Test.Failures
{
[TestFixture]
public class FailBooleanTest
{
[Test]
public void IfFalse()
{
// ARRANGE
bool someFalseValue = false;
// ACT
var exception = Assert.Throws<DesignByContra... | using NUnit.Framework;
namespace Synergy.Contracts.Test.Failures
{
[TestFixture]
public class FailBooleanTest
{
[Test]
public void IfFalse()
{
Assert.Throws<DesignByContractViolationException>(
() => Fail.IfFalse(false, "this should be true - first check"... | mit | C# |
e2a2be2c0753ab00487a00081b2bdd58e0fd6389 | Update ArkResponseBase.cs | kristjank/ark-net,sharkdev-j/ark-net | ark-net/Model/BaseModels/ArkResponseBase.cs | ark-net/Model/BaseModels/ArkResponseBase.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ArkResponseBase.cs" company="Ark">
// MIT License
// //
// // Copyright (c) 2017 Kristjan Košič
// //
// // Permission is hereby granted, free of charge, to any ... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ArkResponseBase.cs" company="Ark Labs">
// MIT License
// //
// // Copyright (c) 2017 Kristjan Košič
// //
// // Permission is hereby granted, free of charge, to... | mit | C# |
d829ede2241e1dc53d80ddb6be298a0f6e411843 | Simplify release title with version selector | rosolko/WebDriverManager.Net | WebDriverManager/DriverConfigs/Impl/OperaConfig.cs | WebDriverManager/DriverConfigs/Impl/OperaConfig.cs | using System.Linq;
using System.Net;
using AngleSharp;
using AngleSharp.Parser.Html;
namespace WebDriverManager.DriverConfigs.Impl
{
public class OperaConfig : IDriverConfig
{
public virtual string GetName()
{
return "Opera";
}
public virtual string GetUrl32()
... | using System.Linq;
using System.Net;
using AngleSharp;
using AngleSharp.Parser.Html;
namespace WebDriverManager.DriverConfigs.Impl
{
public class OperaConfig : IDriverConfig
{
public virtual string GetName()
{
return "Opera";
}
public virtual string GetUrl32()
... | mit | C# |
d42c1dbe98405008d3948a3711d29b973462708a | Drop Decimals in PossibleTimeSaveFormatter | LiveSplit/LiveSplit | LiveSplit/LiveSplit.Core/TimeFormatters/PossibleTimeSaveFormatter.cs | LiveSplit/LiveSplit.Core/TimeFormatters/PossibleTimeSaveFormatter.cs | using System;
namespace LiveSplit.TimeFormatters
{
public class PossibleTimeSaveFormatter : GeneralTimeFormatter
{
public PossibleTimeSaveFormatter()
{
Accuracy = TimeAccuracy.Seconds;
DropDecimals = false;
NullFormat = NullFormat.Dash;
}
}
}
| using System;
namespace LiveSplit.TimeFormatters
{
public class PossibleTimeSaveFormatter : GeneralTimeFormatter
{
public PossibleTimeSaveFormatter()
{
Accuracy = TimeAccuracy.Seconds;
NullFormat = NullFormat.Dash;
}
}
}
| mit | C# |
35ae4e07c8dc9821e14b9fe278f99967a3552569 | Add get best id method for season ids. | henrikfroehling/TraktApiSharp | Source/Lib/TraktApiSharp/Objects/Get/Shows/Seasons/TraktSeasonIds.cs | Source/Lib/TraktApiSharp/Objects/Get/Shows/Seasons/TraktSeasonIds.cs | namespace TraktApiSharp.Objects.Get.Shows.Seasons
{
using Newtonsoft.Json;
/// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt season.</summary>
public class TraktSeasonIds
{
/// <summary>Gets or sets the Trakt numeric id.</summary>
[JsonPrope... | namespace TraktApiSharp.Objects.Get.Shows.Seasons
{
using Newtonsoft.Json;
/// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt season.</summary>
public class TraktSeasonIds
{
/// <summary>Gets or sets the Trakt numeric id.</summary>
[JsonPrope... | mit | C# |
8c26f6b167776d9fc790e55daf2dd02dfbaf839d | Make sure the RaygunExceptionFilterAttribute hasn't already been added before we add it to the GlobalFilters list | articulate/raygun4net,MindscapeHQ/raygun4net,articulate/raygun4net,nelsonsar/raygun4net,ddunkin/raygun4net,tdiehl/raygun4net,ddunkin/raygun4net,MindscapeHQ/raygun4net,nelsonsar/raygun4net,MindscapeHQ/raygun4net,tdiehl/raygun4net | Mindscape.Raygun4Net.Mvc/RaygunExceptionFilterAttacher.cs | Mindscape.Raygun4Net.Mvc/RaygunExceptionFilterAttacher.cs | using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Mindscape.Raygun4Net
{
public static class RaygunExceptionFilterAttacher
{
public static void AttachExceptionFilter(HttpApplication context, RaygunHttpModule module)
{
if (GlobalFilters.Filters.Count == 0) return;
Filter fil... | using System;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Mindscape.Raygun4Net
{
public static class RaygunExceptionFilterAttacher
{
public static void AttachExceptionFilter(HttpApplication context, RaygunHttpModule module)
{
if (GlobalFilters.Filters.Count == 0) return;
... | mit | C# |
342ac2a8303d5e1a412bab8ab25e271063515820 | Fix Version Problem for Scaffolding | YOTOV-LIMITED/lab,LaylaLiu/lab,congysu/lab | WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ScaffolderVersions.cs | WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/ScaffolderVersions.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
namespace System.Web.OData.Design.Scaffolding
{
internal static class ScaffolderVersions
{
public static readonly Version WebApiODataSca... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
namespace System.Web.OData.Design.Scaffolding
{
internal static class ScaffolderVersions
{
public static readonly Version WebApiODataSca... | mit | C# |
61cae5463f35d0ab8cf06b7251fdd3fb89420923 | Test that all accounts decrypt correctly | detunized/lastpass-sharp,detunized/lastpass-sharp,rottenorange/lastpass-sharp | test/VaultTest.cs | test/VaultTest.cs | using System.Linq;
using NUnit.Framework;
namespace LastPass.Test
{
[TestFixture]
class VaultTest
{
[Test]
public void Create_returns_vault_with_correct_accounts()
{
var vault = Vault.Create(new Blob(TestData.Blob, 1));
Assert.AreEqual(TestData.Accounts.Lengt... | using System.Linq;
using NUnit.Framework;
namespace LastPass.Test
{
[TestFixture]
class VaultTest
{
[Test]
public void Create_returns_vault_with_correct_accounts()
{
var vault = Vault.Create(new Blob(TestData.Blob, 1));
Assert.AreEqual(TestData.Accounts.Lengt... | mit | C# |
15bdd6bb81102bafd3ba240166e830191438950a | Remove "Portable" from namespace name in CoreAssets | florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho | Bindings/Portable/CoreData.cs | Bindings/Portable/CoreData.cs | using Urho.Gui;
using Urho.Resources;
namespace Urho
{
//TODO: generate this class using T4 from CoreData folder
public static class CoreAssets
{
public static ResourceCache Cache => Application.Current.ResourceCache;
public static class Models
{
public static Model Box => Cache.GetModel("Models/Box.mdl"... | using Urho.Gui;
using Urho.Resources;
namespace Urho.Portable
{
//TODO: generate this class using T4 from CoreData folder
public static class CoreAssets
{
public static ResourceCache Cache => Application.Current.ResourceCache;
public static class Models
{
public static Model Box => Cache.GetModel("Models... | mit | C# |
a59a5b6a1c7ffddef7b00ffb49b2f4e0b3438fb6 | Replace main with top-level statements | mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager | SupportManager.Telegram/Program.cs | SupportManager.Telegram/Program.cs | using System;
using Microsoft.EntityFrameworkCore;
using SupportManager.Telegram;
using SupportManager.Telegram.Infrastructure;
using Topshelf;
if (args.Length == 2 && args[0].Equals("migrate", StringComparison.InvariantCultureIgnoreCase))
{
var db = DbContextFactory.Create(args[1]);
db.Database.Migrate();
... | using System;
using Microsoft.EntityFrameworkCore;
using SupportManager.Telegram.DAL;
using Topshelf;
namespace SupportManager.Telegram
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 2 && args[0].Equals("migrate", StringComparison.InvariantCultureIgnoreCase)... | mit | C# |
8d5ddcb301f5c51be1d6516d7c5d153cd7a91255 | Remove paramter from bootstrap instance creation | brickpile/brickpile,brickpile/brickpile,brickpile/brickpile | BrickPile.Core/Initialiser.cs | BrickPile.Core/Initialiser.cs | using System;
using System.Linq;
using BrickPile.Core;
using BrickPile.Core.Conventions;
using StructureMap;
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(Initialiser), "PreStart")]
namespace BrickPile.Core
{
/// <summary>
///
/// </summary>
internal static class Initialiser
{
... | using System;
using System.Linq;
using BrickPile.Core;
using BrickPile.Core.Conventions;
using StructureMap;
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(Initialiser), "PreStart")]
namespace BrickPile.Core
{
/// <summary>
///
/// </summary>
internal static class Initialiser
{
... | mit | C# |
d11b746fdf16ce8db171408657d67d9840a10eec | Fix formatting | vazgriz/CSharpGameLibrary,rhynodegreat/CSharpGameLibrary,rhynodegreat/CSharpGameLibrary,vazgriz/CSharpGameLibrary | CSGL.Vulkan/VkShaderModule.cs | CSGL.Vulkan/VkShaderModule.cs | using System;
using System.Collections.Generic;
using System.IO;
namespace CSGL.Vulkan {
public class VkShaderModuleCreateInfo {
public IList<byte> data;
}
public class VkShaderModule : IDisposable, INative<Unmanaged.VkShaderModule> {
Unmanaged.VkShaderModule shaderModule;
bool di... | using System;
using System.Collections.Generic;
using System.IO;
namespace CSGL.Vulkan {
public class VkShaderModuleCreateInfo {
public IList<byte> data;
}
public class VkShaderModule : IDisposable, INative<Unmanaged.VkShaderModule> {
Unmanaged.VkShaderModule shaderModule;
bool di... | mit | C# |
9456f1f5cf946511e4529f773d45bab680328a18 | remove exception handler | StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis,StephenClearyApps/DotNetApis | service/FunctionApp/Defaults.cs | service/FunctionApp/Defaults.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http.ExceptionHandling;
using Common;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
namespace FunctionApp
{... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http.ExceptionHandling;
using Common;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
namespace FunctionApp
{... | mit | C# |
7cbb7215e0d905011bce6f8a6d4818258eee8049 | Remove Id from storable object | TheEadie/LazyStorage,TheEadie/LazyStorage,TheEadie/LazyLibrary | LazyStorage/StorableObject.cs | LazyStorage/StorableObject.cs | using System;
using System.Collections.Generic;
namespace LazyStorage
{
public class StorableObject
{
public Dictionary<string, string> Info { get; }
public StorableObject()
{
Info = new Dictionary<string, string>();
}
}
} | using System;
using System.Collections.Generic;
namespace LazyStorage
{
public class StorableObject : IEquatable<StorableObject>
{
public int LazyStorageInternalId { get; set; }
public Dictionary<string, string> Info { get; }
public StorableObject()
{
Info = new Dic... | mit | C# |
d24f4cf2ac470f57e165f9c2568b639a3987671d | Fix identation | cryogen/orchard,Cphusion/Orchard,IDeliverable/Orchard,arminkarimi/Orchard,phillipsj/Orchard,armanforghani/Orchard,dcinzona/Orchard,NIKASoftwareDevs/Orchard,Codinlab/Orchard,fortunearterial/Orchard,Morgma/valleyviewknolls,hannan-azam/Orchard,m2cms/Orchard,MetSystem/Orchard,patricmutwiri/Orchard,mgrowan/Orchard,xiaobudia... | src/Orchard/Environment/Extensions/Loaders/AreaExtensionLoader.cs | src/Orchard/Environment/Extensions/Loaders/AreaExtensionLoader.cs | using System;
using System.Linq;
using System.Reflection;
using Orchard.Environment.Extensions.Models;
namespace Orchard.Environment.Extensions.Loaders {
public class AreaExtensionLoader : IExtensionLoader {
public int Order { get { return 5; } }
public ExtensionEntry Load(ExtensionDescr... | using System;
using System.Linq;
using System.Reflection;
using Orchard.Environment.Extensions.Models;
namespace Orchard.Environment.Extensions.Loaders {
public class AreaExtensionLoader : IExtensionLoader {
public int Order { get { return 5; } }
public ExtensionEntry Load(ExtensionDescr... | bsd-3-clause | C# |
08f05190ce9dd63a6c69b7c88a1efb1e299ccc4d | Allow anonymous on password reset requests | miracle-as/kitos,os2kitos/kitos,os2kitos/kitos,miracle-as/kitos,os2kitos/kitos,os2kitos/kitos,miracle-as/kitos,miracle-as/kitos | Presentation.Web/Controllers/API/PasswordResetRequestController.cs | Presentation.Web/Controllers/API/PasswordResetRequestController.cs | using System;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Core.DomainModel;
using Core.DomainServices;
using Presentation.Web.Models;
namespace Presentation.Web.Controllers.API
{
[AllowAnonymous]
public class PasswordResetRequestController : BaseApiController
{
private re... | using System;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Core.DomainModel;
using Core.DomainServices;
using Presentation.Web.Models;
namespace Presentation.Web.Controllers.API
{
public class PasswordResetRequestController : BaseApiController
{
private readonly IUserService _... | mpl-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.