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 |
|---|---|---|---|---|---|---|---|---|
7d9b6fb2d29c2fef8b2620a86ab7360c735c85af | Update BuildTool Deploy | WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework | Framework.BuildTool/Command/Deploy.cs | Framework.BuildTool/Command/Deploy.cs | using System;
using System.IO;
namespace Framework.BuildTool
{
public class CommandDeploy : Command
{
public CommandDeploy()
: base("deploy", "Deploy to Azure git")
{
this.AzureGitUrl = ArgumentAdd("azureGitUrl", "Azure Git Url");
}
public readonly Argu... | using System;
using System.IO;
namespace Framework.BuildTool
{
public class CommandDeploy : Command
{
public CommandDeploy()
: base("deploy", "Deploy to Azure git")
{
this.AzureGitUrl = ArgumentAdd("azureGitUrl", "Azure Git Url");
}
public readonly Argu... | mit | C# |
1f4e93983a21bb6f92ac04acc3c56b0a9c494f88 | Update _Pagination.cshtml | Softenraged/CoreBlog,Softenraged/CoreBlog,Softenraged/CoreBlog | src/Blog/Views/Shared/_Pagination.cshtml | src/Blog/Views/Shared/_Pagination.cshtml | @model Blog.ViewModels.PageViewModel
@{
var currentPage = Model.PostsPerPage.PageIndex;
var lastPage = Model.PostsPerPage.TotalPage;
var frameSize = 5; // display 5 pages
var startPage = currentPage - frameSize; //set start page
var endPage = currentPage + f... | @model Blog.ViewModels.PageViewModel
@{
var currentPage = Model.PostsPerPage.PageIndex;
var lastPage = Model.PostsPerPage.TotalPage;
var frameSize = 5; // display 5 pages
var startPage = currentPage - frameSize; //set start page
var endPage = currentPage + f... | mit | C# |
e85e3508ee80e72eeadff0fad9ae771b3dffc2d6 | Bump version to 0.6 | jamesfoster/DeepEqual | src/DeepEqual/Properties/AssemblyInfo.cs | src/DeepEqual/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("De... | 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("De... | mit | C# |
22983cd0feb2712533861fd2728502c10886382a | Update ArgbColor.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D.ViewModels/Style/ArgbColor.cs | src/Draw2D.ViewModels/Style/ArgbColor.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Draw2D.ViewModels.Style
{
[DataContract(IsReference = true)]
public class ... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Draw2D.ViewModels.Style
{
[DataContract(IsReference = true)]
public class ... | mit | C# |
cf2d4d48ce7f3985d4e6cb6b8e2154126bce1379 | bump version | Fody/MethodTimer | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("MethodTimer")]
[assembly: AssemblyProduct("MethodTimer")]
[assembly: AssemblyVersion("2.0.1")] | using System.Reflection;
[assembly: AssemblyTitle("MethodTimer")]
[assembly: AssemblyProduct("MethodTimer")]
[assembly: AssemblyVersion("2.0.0")] | mit | C# |
4aa3a6c5db9a1cd3508de0a3aa44681b0aa6b16f | Update imports.cake | SharpeRAD/Cake.Powershell,SharpeRAD/Cake.Powershell | build/scripts/imports.cake | build/scripts/imports.cake | //////////////////////////////////////////////////////////////////////
// IMPORTS
//////////////////////////////////////////////////////////////////////
#addin nuget:?package=Cake.FileHelpers
#addin nuget:?package=Cake.Slack
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
/////... | //////////////////////////////////////////////////////////////////////
// IMPORTS
//////////////////////////////////////////////////////////////////////
#addin nuget:?package=Cake.AWS.S3
#addin nuget:?package=Cake.FileHelpers
#addin nuget:?package=Cake.Slack
//////////////////////////////////////////////////////... | mit | C# |
82ca5b89c0172e9622ebc425129e565bf57d3e62 | Allow overriding the cache path for the default persistent storage service | heejaechang/roslyn,ErikSchierboom/roslyn,KevinRansom/roslyn,tmat/roslyn,bartdesmet/roslyn,AlekseyTs/roslyn,wvdd007/roslyn,ErikSchierboom/roslyn,AlekseyTs/roslyn,diryboy/roslyn,panopticoncentral/roslyn,panopticoncentral/roslyn,KevinRansom/roslyn,davkean/roslyn,jasonmalinowski/roslyn,eriawan/roslyn,stephentoub/roslyn,wvd... | src/Workspaces/Core/Portable/Workspace/Host/PersistentStorage/IPersistentStorageLocationService.cs | src/Workspaces/Core/Portable/Workspace/Host/PersistentStorage/IPersistentStorageLocationService.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.
#nullable enable
using System;
using System.Composition;
using System.IO;
using System.Linq;
using Microsoft.CodeAnalysis.Host.Mef;
namespace Microsoft.Cod... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullable enable
using System;
using System.Composition;
using System.IO;
using System.Linq;
using Microsoft.CodeAnalysis.Host.Mef;
namespace Microsoft.Cod... | mit | C# |
82b0d01fa1216e1d216742a58dc2bbe2a817c183 | Bump version | nixxquality/WebMConverter,o11c/WebMConverter,Yuisbean/WebMConverter | Properties/AssemblyInfo.cs | 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("We... | 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("We... | mit | C# |
fdff27174bb1b70317e35e214994ce7853dd7245 | 更新版本号。 :moneybag: | Zongsoft/Zongsoft.Web.Launcher | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Zongsoft.Web.Launcher")]
[assembly: AssemblyDescription("Zongsoft Web Launcher")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Zongsoft Corporation")]
[assembly: Assembl... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Zongsoft.Web.Launcher")]
[assembly: AssemblyDescription("Zongsoft Web Launcher")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Zongsoft Corporation")]
[assembly: Assembl... | mit | C# |
b3b85650cf08864e00418adf04d1e9dcda7db722 | use different port in Web than API | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Web/Program.cs | src/FilterLists.Web/Program.cs | using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace FilterLists.Web
{
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args)
{
return We... | using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace FilterLists.Web
{
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args)
{
return We... | mit | C# |
371e99499d52ce8b5e57240ddb649dfd395e899d | Disable Select WorkItem on Commit | kentkost/monodevelop-tfs-addin,Indomitable/monodevelop-tfs-addin | MonoDevelop.VersionControl.TFS/GUI/TFSCommitDialogExtension.cs | MonoDevelop.VersionControl.TFS/GUI/TFSCommitDialogExtension.cs | //
// TFSCommitDialogExtension.cs
//
// Author:
// Ventsislav Mladenov <vmladenov.mladenov@gmail.com>
//
// Copyright (c) 2013 Ventsislav Mladenov
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// ... | //
// TFSCommitDialogExtension.cs
//
// Author:
// Ventsislav Mladenov <vmladenov.mladenov@gmail.com>
//
// Copyright (c) 2013 Ventsislav Mladenov
//
// 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# |
7b6548514417d2d60bce00848fd10ace59dc609c | Rename RewardIndex => RewardId | Xeeynamo/KingdomHearts | OpenKh.Kh2/Battle/Bons.cs | OpenKh.Kh2/Battle/Bons.cs | using System.IO;
using Xe.BinaryMapper;
namespace OpenKh.Kh2.Battle
{
public class Bons
{
[Data] public byte RewardId { get; set; }
[Data] public byte CharacterId { get; set; }
[Data] public byte HpIncrease { get; set; }
[Data] public byte MpIncrease { get; set; }
[Data... | using System.IO;
using Xe.BinaryMapper;
namespace OpenKh.Kh2.Battle
{
public class Bons
{
[Data] public byte RewardIndex { get; set; }
[Data] public byte CharacterId { get; set; }
[Data] public byte HpIncrease { get; set; }
[Data] public byte MpIncrease { get; set; }
[D... | mit | C# |
556f0c9ecbf7369db0f3c7655c4cc5f498164ae7 | Implement IDisposable to tidy up managed resource System.Net.Sockets.TcpClient. | 9swampy/Telnet | PrimS.Telnet/TcpClient.cs | PrimS.Telnet/TcpClient.cs | namespace PrimS.Telnet
{
using System;
using System.Linq;
public class TcpClient : ISocket, IDisposable
{
private readonly System.Net.Sockets.TcpClient client;
public TcpClient(string hostname, int port)
{
this.client = new System.Net.Sockets.TcpClient(hostname, port);
}
public voi... | namespace PrimS.Telnet
{
using System;
using System.Linq;
//using System.Net.Sockets;
public class TcpClient : ISocket
{
private readonly System.Net.Sockets.TcpClient client;
public TcpClient(string hostname, int port)
{
this.client = new System.Net.Sockets.TcpClient(hostname, port);
... | mit | C# |
148a118004061adddc72d7ee334c857bf83cc5fa | Return name of channel so we can subscribe to it | GeorgeHahn/SOVND | SOVND.Client/Views/NewChannel.xaml.cs | SOVND.Client/Views/NewChannel.xaml.cs | using SOVND.Client.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
usin... | using SOVND.Client.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
usin... | epl-1.0 | C# |
02cb98701d809a987f24d1bee011aba6f2427394 | add UserHolder.UserSession as an abstract alternative to AuthLogic.UserSession | AlejandroCano/framework,avifatal/framework,AlejandroCano/framework,signumsoftware/framework,signumsoftware/framework,avifatal/framework | Signum.Entities/Basics/IUserEntity.cs | Signum.Entities/Basics/IUserEntity.cs | using Signum.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Signum.Entities.Basics
{
public interface IUserEntity : IEntity
{
}
public static class UserHolder
{
public static readonly string UserSessionKey = "user";... | using Signum.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Signum.Entities.Basics
{
public interface IUserEntity : IEntity
{
}
public static class UserHolder
{
public static readonly string UserSessionKey = "user";... | mit | C# |
844d587bb0e4ff6bc175a6c9bccb1336d1cbb66e | switch from /nologo to --nologo | adamralph/liteguard,adamralph/liteguard | targets/Program.cs | targets/Program.cs | using System;
using System.Threading.Tasks;
using SimpleExec;
using static Bullseye.Targets;
using static SimpleExec.Command;
internal class Program
{
public static Task Main(string[] args)
{
Target("default", DependsOn("pack", "test"));
Target("build", () => RunAsync("dotnet", "bu... | using System;
using System.Threading.Tasks;
using SimpleExec;
using static Bullseye.Targets;
using static SimpleExec.Command;
internal class Program
{
public static Task Main(string[] args)
{
Target("default", DependsOn("pack", "test"));
Target("build", () => RunAsync("dotnet", "bu... | mit | C# |
c4d8f49c2816f3880a425dbf4199ed7778ba06e2 | Update IEntity.cs | tiksn/TIKSN-Framework | TIKSN.Core/Data/IEntity.cs | TIKSN.Core/Data/IEntity.cs | using System;
namespace TIKSN.Data
{
public interface IEntity<T> where T : IEquatable<T>
{
T ID { get; }
}
}
| using System;
namespace TIKSN.Data
{
public interface IEntity<T> where T : IEquatable<T>
{
T ID { get; }
}
} | mit | C# |
30b0e202d11310597703b0dcb3de9b39a37b6a6e | Update Startup.cs | azzlack/Sentinel.OAuth | src/Sentinel.Sample/Startup.cs | src/Sentinel.Sample/Startup.cs | using Microsoft.Owin;
using Sentinel.Sample;
[assembly: OwinStartup(typeof(Startup))]
namespace Sentinel.Sample
{
using System.Web.Http;
using Common.Logging;
using log4net.Config;
using Microsoft.Owin.Security.OAuth;
using Owin;
using Sentinel.OAuth.Core.Models;
using Sentinel.OAut... | using Microsoft.Owin;
using Sentinel.Sample;
[assembly: OwinStartup(typeof(Startup))]
namespace Sentinel.Sample
{
using System.Web.Http;
using Common.Logging;
using log4net.Config;
using Microsoft.Owin.Security.OAuth;
using Owin;
using Sentinel.OAuth.Core.Models;
using Sentinel.OAut... | apache-2.0 | C# |
c0fb3f274328b35da8af4cd231986cbfe623f7b0 | Add unittest for Overflow/across AppDomains Exceptions reproduction (#393) | pythonnet/pythonnet,AlexCatarino/pythonnet,AlexCatarino/pythonnet,yagweb/pythonnet,vmuriart/pythonnet,dmitriyse/pythonnet,QuantConnect/pythonnet,QuantConnect/pythonnet,yagweb/pythonnet,Konstantin-Posudevskiy/pythonnet,QuantConnect/pythonnet,Konstantin-Posudevskiy/pythonnet,vmuriart/pythonnet,pythonnet/pythonnet,AlexCat... | src/embed_tests/pyinitialize.cs | src/embed_tests/pyinitialize.cs | using NUnit.Framework;
using Python.Runtime;
namespace Python.EmbeddingTest
{
public class PyInitializeTest
{
[Test]
public static void LoadSpecificArgs()
{
var args = new[] { "test1", "test2" };
using (new PythonEngine(args))
using (var argv = new Py... | using NUnit.Framework;
using Python.Runtime;
namespace Python.EmbeddingTest
{
public class PyInitializeTest
{
[Test]
public static void LoadSpecificArgs()
{
var args = new[] { "test1", "test2" };
using (new PythonEngine(args))
using (var argv = new Py... | mit | C# |
2e0c3535191beb9967fe69bc84c5e7aeb005685f | make target method async | Recognos/CodeChalenges | CodeChallange3/CodeChallange3/Program.cs | CodeChallange3/CodeChallange3/Program.cs | using System;
using System.Linq;
using System.Threading.Tasks;
namespace CodeChallange3
{
/// <summary>
/// Problem:
/// You need to download a number of files from different URIs.
/// You have N possible download URIs but only care about the first M results returned.
/// You have to start downl... | using System;
using System.Linq;
using System.Threading.Tasks;
namespace CodeChallange3
{
/// <summary>
/// Problem:
/// You need to download a number of files from different URIs.
/// You have N possible download URIs but only care about the first M results returned.
/// You have to start downl... | apache-2.0 | C# |
dd9f530415fdeae9f6fb9b55977b083ab182db75 | Fix build (Track API in ProgressBar) | directhex/xwt,cra0zy/xwt,iainx/xwt,hamekoz/xwt,antmicro/xwt,mono/xwt,steffenWi/xwt,lytico/xwt,mminns/xwt,mminns/xwt,hwthomas/xwt,akrisiun/xwt,sevoku/xwt,TheBrainTech/xwt,residuum/xwt | Xwt.Mac/Xwt.Mac/ProgressBarBackend.cs | Xwt.Mac/Xwt.Mac/ProgressBarBackend.cs | //
// ProgressBarBackend.cs
//
// Author:
// Andres G. Aragoneses <knocte@gmail.com>
//
// Copyright (c) 2012 Andres G. Aragoneses
//
// 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 Soft... | //
// ProgressBarBackend.cs
//
// Author:
// Andres G. Aragoneses <knocte@gmail.com>
//
// Copyright (c) 2012 Andres G. Aragoneses
//
// 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 Soft... | mit | C# |
fe52802f6399db9de0f6f6328b438e385455288c | Update Delete.cshtml | CarmelSoftware/Generic-Data-Repository-for-ASP.NET-MVC | Views/Blogs/Delete.cshtml | Views/Blogs/Delete.cshtml | @model GenericRepository.Models.Blog
@{
ViewBag.Title = "Delete";
}
<div class="jumbotron">
<h2>Generic Data Repository - Delete</h2><br /><h4>By Carmel Schvartzman</h4>
</div>
<div class="jumbotron">
<h3>Are you sure you want to delete this?</h3>
<fieldset>
<legend>Blog</legend>
<div class="display-l... | @model GenericRepository.Models.Blog
@{
ViewBag.Title = "Delete";
}
<div class="jumbotron">
<h2>Generic Data Repository - Delete</h2><br /><h4>By Carmel Schvartzman</h4>
</div>
<div class="jumbotron">
<h3>Are you sure you want to delete this?</h3>
<fieldset>
<legend>Blog</legend>
<div class="display-l... | mit | C# |
228cb896e4c09c2904a1c838836313879d0a4612 | Fix bug in GitHub backend | agc93/downlink,agc93/downlink | src/Downlink.GitHub/GitHubCredentials.cs | src/Downlink.GitHub/GitHubCredentials.cs | namespace Downlink.GitHub
{
public class GitHubCredentials
{
public GitHubCredentials(string apiToken, string repoId)
{
Token = apiToken;
var segs = repoId.Split('/');
if (segs.Length != 0) return;
if (segs.Length != 2) throw new System.InvalidOper... | namespace Downlink.GitHub
{
public class GitHubCredentials
{
public GitHubCredentials(string apiToken, string repoId)
{
Token = apiToken;
var segs = repoId.Split('/');
if (segs.Length != 2) throw new System.InvalidOperationException("Could not parse repository... | mit | C# |
7e04054a77fa2919bd37f8367b077ac690760834 | Remove unused usings | thomaslevesque/FakeItEasy,blairconrad/FakeItEasy,FakeItEasy/FakeItEasy,blairconrad/FakeItEasy,FakeItEasy/FakeItEasy,thomaslevesque/FakeItEasy | src/FakeItEasy/Core/WrappedObjectRule.cs | src/FakeItEasy/Core/WrappedObjectRule.cs | namespace FakeItEasy.Core
{
using System;
/// <summary>
/// A call rule that applies to any call and just delegates the
/// call to the wrapped object.
/// </summary>
internal class WrappedObjectRule
: IFakeObjectCallRule
{
/// <summary>
/// Initializes a... | namespace FakeItEasy.Core
{
using System;
using System.Reflection;
using static FakeItEasy.ObjectMembers;
/// <summary>
/// A call rule that applies to any call and just delegates the
/// call to the wrapped object.
/// </summary>
internal class WrappedObjectRule
: IF... | mit | C# |
b4da8f773468bcfed8e4b749ea8943955f932244 | Change JobState underlying type to the Int32 instead of Byte | sergezhigunov/Hangfire.EntityFramework | src/Hangfire.EntityFramework/JobState.cs | src/Hangfire.EntityFramework/JobState.cs | // Copyright (c) 2017 Sergey Zhigunov.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
namespace Hangfire.EntityFramework
{
internal enum JobState
{
Created = 0,
Enqueued,
Scheduled,
Processing,
Succeeded,
Fa... | // Copyright (c) 2017 Sergey Zhigunov.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
namespace Hangfire.EntityFramework
{
internal enum JobState : byte
{
Created = 0,
Enqueued,
Scheduled,
Processing,
Succeeded,
... | mit | C# |
28c90e7d2eea0f712b6e29326b4cc0036087d2a8 | fix version | holyshared/csherp-test-example | ExampleClient/Properties/AssemblyInfo.cs | ExampleClient/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("ExampleClient")]
[assembly: AssemblyDescription("Example client description")]
[assembly: Assemb... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("ExampleClient")]
[assembly: AssemblyDescription("Example client description")]
[assembly: Assemb... | mit | C# |
f4193f4d148a9b1ca7ac667cf21b0003b0fe0bf1 | Fix Gigabyte constant. | msoler8785/ExoMail | ExoMail.Smtp/Utilities/ByteSizeHelper.cs | ExoMail.Smtp/Utilities/ByteSizeHelper.cs | namespace ExoMail.Smtp.Utilities
{
/// <summary>
/// Helps to get number of bytes in byte unit prefix.
/// </summary>
public static class ByteSizeHelper
{
public const int KILOBYTE = 1024;
public const int MEGABYTE = KILOBYTE * 1024;
public const int GIGABYTE = MEGABYTE * 10... | namespace ExoMail.Smtp.Utilities
{
/// <summary>
/// Helps to get number of bytes in byte unit prefix.
/// </summary>
public static class ByteSizeHelper
{
public const int KILOBYTE = 1024;
public const int MEGABYTE = KILOBYTE * 1024;
public const int GIGABYTE = KILOBYTE * 10... | mit | C# |
0a6709350a4f1615b33fcd521024270689212a40 | Remove unused usings | feliwir/openSage,feliwir/openSage | src/OpenSage.Game/Gui/Apt/DisplayList.cs | src/OpenSage.Game/Gui/Apt/DisplayList.cs | using System.Collections.Generic;
namespace OpenSage.Gui.Apt
{
public sealed class DisplayList
{
public Dictionary<int, IDisplayItem> Items { get; }
public DisplayList()
{
Items = new Dictionary<int, IDisplayItem>();
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenSage.Gui.Apt
{
public sealed class DisplayList
{
public Dictionary<int, IDisplayItem> Items { get; }
public DisplayList()
{
Items = new Diction... | mit | C# |
5f010332bccabea9be33c44665d42cb46c0a8c62 | Copy SystemPropertiesCollection before modifying (#2130) | Azure/azure-webjobs-sdk,Azure/azure-webjobs-sdk | src/Microsoft.Azure.WebJobs.Extensions.EventHubs/Extensions/SystemPropertiesCollectionExtensions.cs | src/Microsoft.Azure.WebJobs.Extensions.EventHubs/Extensions/SystemPropertiesCollectionExtensions.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections.Generic;
using static Microsoft.Azure.EventHubs.EventData;
namespace Microsoft.Azure.WebJobs.EventHubs
{
static internal class SystemProp... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections.Generic;
using static Microsoft.Azure.EventHubs.EventData;
namespace Microsoft.Azure.WebJobs.EventHubs
{
static internal class SystemProp... | mit | C# |
de7c2995991a15ecbf8dd02254850000a8a7340e | Add MacAddress | zaevans/azure-powershell,SarahRogers/azure-powershell,TaraMeyer/azure-powershell,nickheppleston/azure-powershell,yoavrubin/azure-powershell,arcadiahlyy/azure-powershell,enavro/azure-powershell,bgold09/azure-powershell,rhencke/azure-powershell,jtlibing/azure-powershell,haocs/azure-powershell,krkhan/azure-powershell,krkh... | src/ResourceManager/Network/Commands.NetworkResourceProvider/Models/PSNetworkInterfaceProperties.cs | src/ResourceManager/Network/Commands.NetworkResourceProvider/Models/PSNetworkInterfaceProperties.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 | C# |
68198b8d0e2feb8b0e9bc9b12f21def96e861b07 | Add NdapiContext documentation (part of #7) | felipebz/ndapi | Ndapi/NdapiContext.cs | Ndapi/NdapiContext.cs | using Ndapi.Core;
using Ndapi.Core.Handles;
using System;
namespace Ndapi
{
/// <summary>
/// Represents a Forms API context.
/// </summary>
public sealed class NdapiContext : IDisposable
{
private static ContextSafeHandle _context;
internal static ContextSafeHandle Context
... | using Ndapi.Core;
using Ndapi.Core.Handles;
using System;
namespace Ndapi
{
public sealed class NdapiContext : IDisposable
{
private static ContextSafeHandle _context;
internal static ContextSafeHandle Context
{
get
{
if (_context == null)
... | mit | C# |
b4e3783854513dec38083c7651bc94a716aa1029 | reorder things | jonnii/chinchilla | src/Chinchilla/TrackableFactory.cs | src/Chinchilla/TrackableFactory.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Chinchilla
{
public abstract class TrackableFactory<TTrackable> : IDisposable
where TTrackable : Trackable
{
private readonly object trackLock = new object();
private readonly List<TTrackable> trackables = new... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Chinchilla
{
public abstract class TrackableFactory<TTrackable> : IDisposable
where TTrackable : Trackable
{
private readonly object trackLock = new object();
private readonly List<TTrackable> trackables = new... | apache-2.0 | C# |
5ef317be74b45e69c40be829109b7b1c135e97e0 | Allow waiting on tasks which were created with `LongRunning` regardless of thread | peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework | osu.Framework/Extensions/TaskExtensions.cs | osu.Framework/Extensions/TaskExtensions.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.Threading;
using System.Threading.Tasks;
using osu.Framework.Extensions.EnumExtensions;
namespace osu.Framework.Extensions
{
public static... | // 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.Threading;
using System.Threading.Tasks;
namespace osu.Framework.Extensions
{
public static class TaskExtensions
{
/// <summar... | mit | C# |
a5aa32811aaf215f7d96d601a82d44362d140ad3 | Remove null check suppression and add non-null fallback | NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu-new,ppy/osu,peppy/osu,peppy/osu,ppy/osu | osu.Game/Beatmaps/BeatmapInfoExtensions.cs | osu.Game/Beatmaps/BeatmapInfoExtensions.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.Localisation;
namespace osu.Game.Beatmaps
{
public static class BeatmapInfoExtensions
{
/// <summary>
/// ... | // 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.Localisation;
namespace osu.Game.Beatmaps
{
public static class BeatmapInfoExtensions
{
/// <summary>
/// ... | mit | C# |
58b425c4d548cb1a44009648e4965aad6118808c | add new condition in the cycle | IlyasGaripov/Math-Shapes | MathShapesProject/Assets/Scripts/Game.cs | MathShapesProject/Assets/Scripts/Game.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Game : MonoBehaviour {
private int coins;
// Use this for initialization
void Start () {
for (int i = 0; i < 20; i++)
{
coins++;
if (coins > 10)
{
Deb... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Game : MonoBehaviour {
private int coins;
// Use this for initialization
void Start () {
for(int i = 0; i <10; i++)
{
coins++;
}
}
// Update is called once per frame
void Update () {
... | mit | C# |
7482015d7ff7e4cce197c5c591346f25447ca79d | Add author to assembly properties | inter8ection/Obvs,inter8ection/Obvs.RabbitMQ | Obvs.RabbitMQ/Properties/AssemblyInfo.cs | Obvs.RabbitMQ/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("Obvs.RabbitMQ")]
[assembly: AssemblyDescr... | 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("Ob... | mit | C# |
b810bf006931469ac93f8b51b9988536e175446a | Add ability to send array of channels or dictionary to JoinMessage | Fredi/NetIRC | src/NetIRC/Messages/JoinMessage.cs | src/NetIRC/Messages/JoinMessage.cs | using System.Collections.Generic;
namespace NetIRC.Messages
{
public class JoinMessage : IRCMessage, IServerMessage, IClientMessage
{
private string channels;
private string keys = string.Empty;
public string Nick { get; }
public string Channel { get; }
public JoinMe... | using System.Collections.Generic;
namespace NetIRC.Messages
{
public class JoinMessage : IRCMessage, IServerMessage, IClientMessage
{
private string channels;
private string keys;
public string Nick { get; }
public string Channel { get; }
public JoinMessage(ParsedIRC... | mit | C# |
3a7b01e747b431ff86c7f64ecb37d7e895da6d2d | Use command line args when configuring the server | praeclarum/Ooui,praeclarum/Ooui,praeclarum/Ooui | PlatformSamples/AspNetCoreMvc/Program.cs | PlatformSamples/AspNetCoreMvc/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace AspNetCoreMvc
{
public class Program... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace AspNetCoreMvc
{
public class Program... | mit | C# |
22028205d9a3e0fe0d18889c32089ae9fcc6350d | Update Index.cshtml | 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>
<h3>The lab is experiencing much longer turnarounds than normal. Most tests are subject to at least 6 - 8 weeks.</h3>
<strong> ... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
<h3>The lab is experiencing much longer turnarounds than normal. Most tests are subject to at least 4 - 6 weeks.</h3>
<strong> ... | mit | C# |
a118526ff7e39f5492e5225ecdfb164db918d772 | Improve list rendering | michaeldtaylor/Ghostbot | src/Ghostbot/Modules/Guardian/View/GuardianRenderer.cs | src/Ghostbot/Modules/Guardian/View/GuardianRenderer.cs | using System.Linq;
using System.Text;
using Destiny.Net.Core.Model;
using Destiny.Net.Core.Model.Responses;
namespace Ghostbot.Modules.Guardian.View
{
public static class GuardianRenderer
{
public static string Render(BungieAccountResponse bungieAccount, Platform platform)
{
var des... | using System.Linq;
using System.Text;
using Destiny.Net.Core.Model;
using Destiny.Net.Core.Model.Responses;
namespace Ghostbot.Modules.Guardian.View
{
public static class GuardianRenderer
{
public static string Render(BungieAccountResponse bungieAccount, Platform platform)
{
var des... | mit | C# |
b2af2cafdd9618d592820c043191070dbec987fa | fix strikeout not work in dfm. (#593) | dotnet/docfx,hellosnow/docfx,LordZoltan/docfx,pascalberger/docfx,LordZoltan/docfx,LordZoltan/docfx,superyyrrzz/docfx,DuncanmaMSFT/docfx,928PJY/docfx,superyyrrzz/docfx,dotnet/docfx,dotnet/docfx,superyyrrzz/docfx,928PJY/docfx,hellosnow/docfx,pascalberger/docfx,DuncanmaMSFT/docfx,hellosnow/docfx,LordZoltan/docfx,928PJY/do... | src/Microsoft.DocAsCode.Dfm/Rules/DfmTextInlineRule.cs | src/Microsoft.DocAsCode.Dfm/Rules/DfmTextInlineRule.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Dfm
{
using System.Text.RegularExpressions;
using Microsoft.DocAsCode.MarkdownLite;
public class DfmTextInlineRule : Markdow... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Dfm
{
using System.Text.RegularExpressions;
using Microsoft.DocAsCode.MarkdownLite;
public class DfmTextInlineRule : Markdow... | mit | C# |
d85cb9e15e41af2eea3014bd7e6daeffb5a9aa96 | Fix FileSystemProviderManagerTests | abjerner/Umbraco-CMS,dawoe/Umbraco-CMS,tcmorris/Umbraco-CMS,mattbrailsford/Umbraco-CMS,aaronpowell/Umbraco-CMS,umbraco/Umbraco-CMS,robertjf/Umbraco-CMS,leekelleher/Umbraco-CMS,abjerner/Umbraco-CMS,madsoulswe/Umbraco-CMS,marcemarc/Umbraco-CMS,PeteDuncanson/Umbraco-CMS,madsoulswe/Umbraco-CMS,WebCentrum/Umbraco-CMS,hfloyd... | src/Umbraco.Tests/IO/FileSystemProviderManagerTests.cs | src/Umbraco.Tests/IO/FileSystemProviderManagerTests.cs | using System;
using Moq;
using NUnit.Framework;
using Umbraco.Core;
using Umbraco.Core.IO;
using Umbraco.Core.Logging;
using Umbraco.Core.Profiling;
using Umbraco.Tests.TestHelpers;
namespace Umbraco.Tests.IO
{
[TestFixture]
public class FileSystemProviderManagerTests
{
[SetUp]
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Umbraco.Core.IO;
using Umbraco.Tests.TestHelpers;
namespace Umbraco.Tests.IO
{
[TestFixture]
public class FileSystemProviderManagerTests
{
[SetUp]
... | mit | C# |
47d0eb1564fab13184d3ba5ca231d9c1dd8492a8 | Add loved enum on BeatmapApproval (#6995) | EVAST9919/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,peppy/osu,johnneijzen/osu,smoogipoo/osu,2yangk23/osu,peppy/osu-new,UselessToucan/osu,2yangk23/osu,UselessToucan/osu,johnneijzen/osu,EVAST9919/osu,ppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu | osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs | osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.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.Collections.Generic;
using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetUserRecentActivitiesRequest... | // 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.Collections.Generic;
using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetUserRecentActivitiesRequest... | mit | C# |
dde4afa8aa9dd04b6164f7bdeae5624b9a9de70b | Update info author Juliano Custódio (#680) | planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin | src/Firehose.Web/Authors/JulianoCustodio.cs | src/Firehose.Web/Authors/JulianoCustodio.cs | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class JulianoCustodio : IAmAMicrosoftMVP
{
public string FirstName => "Juliano";
public string LastName => "Custódio";
public string StateOrRegion => "Alphaville -... | using System;
using System.Collections.Generic;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class JulianoCustodio : IAmAMicrosoftMVP
{
public string FirstName => "Juliano";
public string LastName => "Custódio";
public string StateOrRegion => "Piracicaba, ... | mit | C# |
f222de07c357b62ae6f4cee8e5884aa5ae8c997d | Add methods for opening and closing PSX handle | Figglewatts/LSDStay | LSDStay/PSXFinder.cs | LSDStay/PSXFinder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace LSDStay
{
public static class PSXFinder
{
public static Process FindPSX()
{
Process psx = Process.GetProcessesByName("psxfin").FirstOrDefault();
return ps... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace LSDStay
{
public static class PSXFinder
{
public static Process FindPSX()
{
Process psx = Process.GetProcessesByName("psxfin").FirstOrDefault();
}
}
}
| mit | C# |
1040e1f706e8f790817dd8a202279059d47aac22 | Add new type | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Types/DeliveryModel.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Types/DeliveryModel.cs | using System;
using System.Text.Json.Serialization;
namespace SFA.DAS.CommitmentsV2.Types
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum DeliveryModel : byte
{
Regular = 0,
PortableFlexiJob = 1,
FlexiJobAgency = 2
}
} | using System;
using System.Text.Json.Serialization;
namespace SFA.DAS.CommitmentsV2.Types
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum DeliveryModel : byte
{
Regular = 0,
PortableFlexiJob = 1,
}
} | mit | C# |
c79bbf70de894373851948444cd34c1151fb0f05 | Fix namespace of AddStepHandlerExtensions. | ExRam/ExRam.Gremlinq | src/ExRam.Gremlinq.Core/Extensions/AddStepHandlerExtensions.cs | src/ExRam.Gremlinq.Core/Extensions/AddStepHandlerExtensions.cs | using System.Collections.Generic;
using ExRam.Gremlinq.Core.Steps;
namespace ExRam.Gremlinq.Core
{
//targetQuery
// .Continue() //ContinuationBuilder
// .FromSource(sourceQuery) //ContinuationBuilder mit anderer Source
// .With(continuation1) //SingleConr... | using System.Collections.Generic;
using ExRam.Gremlinq.Core.Steps;
namespace ExRam.Gremlinq.Core.Queries
{
//targetQuery
// .Continue() //ContinuationBuilder
// .FromSource(sourceQuery) //ContinuationBuilder mit anderer Source
// .With(continuation1) //S... | mit | C# |
e11261e15d65f5c5bf952a1d8d7028ed289011d3 | Split WCF functionality out of Autofac.Extras.Multitenant into a separate assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned 3.1.0. | autofac/Autofac.Extras.Moq | Properties/VersionAssemblyInfo.cs | Properties/VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | mit | C# |
997f7301f13cb57ab907371fbead8786463c09c2 | Fix name of DefaultModuleTest | cskeppstedt/t4ts,AkosLukacs/t4ts,cskeppstedt/t4ts,bazubii/t4ts,dolly22/t4ts,AkosLukacs/t4ts,dolly22/t4ts,bazubii/t4ts | T4TS.Tests/Fixtures/Options/Default/DefaultModuleTest.cs | T4TS.Tests/Fixtures/Options/Default/DefaultModuleTest.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using T4TS.Tests.Utils;
namespace T4TS.Tests.Fixtures.Options.Default
{
[TestClass]
public class DefaultModuleTest
{
[TestMethod]
public void DefaultModuleSettingHasExpectedOutput()
{
// Expect
new OutputFo... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using T4TS.Tests.Utils;
namespace T4TS.Tests.Fixtures.Options.Default
{
[TestClass]
public class OverrideTests
{
[TestMethod]
public void DefaultModuleSettingHasExpectedOutput()
{
// Expect
new OutputFor(
... | apache-2.0 | C# |
77c704bb114a04dfccf9ac656a488c24c0cd4a14 | Update Credentials.cs | IRlyDontKnow/twilio-csharp,twilio/twilio-csharp,mplacona/twilio-csharp | src/Twilio.Api.Tests.Integration/Credentials.cs | src/Twilio.Api.Tests.Integration/Credentials.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Twilio.Api.Tests.Integration
{
public static class Credentials
{
public static string TestAccountSid = "[YOUR_TEST_ACCOUNT_SID]";
public static string TestAuthToken = "... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Twilio.Api.Tests.Integration
{
public static class Credentials
{
public static string TestAccountSid = "ACa9dc1012ce89bcd471791338c756432d";
public static string TestAu... | mit | C# |
3cd5b9d1916f22dfe9cf09170fbd545a7b3ec532 | Create immutable directed graph. | Yttrmin/CSharpTo2600,Yttrmin/CSharpTo2600,Yttrmin/CSharpTo2600 | VCSCompiler/Graph.cs | VCSCompiler/Graph.cs | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Collections.Immutable;
namespace VCSCompiler
{
/// <summary>
/// An immutable directed acyclic graph.
/// </summary>
internal class ImmutableGraph<T> where T: class
{
private readonly IImmutableSet<T> Nodes;
pr... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Collections.Immutable;
namespace VCSCompiler
{
// TODO - Make immutable or at least provide an immutable interface.
internal class Graph<T> where T: class
{
private IList<Node<T>> Nodes = new List<Node<T>>();... | mit | C# |
dc614d2c207d7c327c1c7382f5e30a9c0298d6cb | Create basic classes | mjac/dependency-injection-kata-series,jcrang/dependency-injection-kata-series | src/DependencyInjection.Console/Program.cs | src/DependencyInjection.Console/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DependencyInjection.Console
{
class Program
{
static void Main(string[] args)
{
}
class MazeSimulation
{
private IMazeWriter _maze... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DependencyInjection.Console
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
d3b601587452b2566f00953db41d376a575c9c0e | Update Index.cshtml | mamendez4/BTM,mamendez4/BTM | src/WebApplication/Views/Home/Index.cshtml | src/WebApplication/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Hello BTM World!";
}
<table>
<tr>
<td style='width: 30%;'>
<img class="newappIcon" src="/images/newapp-icon.png">
</td>
<td>
<h1 id="message">Hello World!</h1>
<p class='description'></p> IBM Patent 8395623 <span class="blue">... | @{
ViewData["Title"] = "Hello World!";
}
<table>
<tr>
<td style='width: 30%;'>
<img class="newappIcon" src="/images/newapp-icon.png">
</td>
<td>
<h1 id="message">Hello World!</h1>
<p class='description'></p> Thank you for creating an <span class="blu... | apache-2.0 | C# |
f7293a487846c269a56d03fd165a38faef7c4c4b | Remove dead, commented code. | Yortw/Xid.Net | src/Xid.Net.Tests/Xid_Performance_Tests.cs | src/Xid.Net.Tests/Xid_Performance_Tests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XidNet.Tests
{
[TestClass]
public class Xid_Performance_Tests
{
[TestMethod]
#if DEBUG
[Microsoft.VisualStudio.TestTools.UnitTesting.... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XidNet.Tests
{
[TestClass]
public class Xid_Performance_Tests
{
[TestMethod]
#if DEBUG
[Microsoft.VisualStudio.TestTools.UnitTesting.... | mit | C# |
e127f49b38b05cd9e69563b059e34370bd93f5ec | Add subscriber on mvb action | markjackmilian/MVB | Mvb/Mvb/Mvb.Core/Components/BinderActions/MvbActions.cs | Mvb/Mvb/Mvb.Core/Components/BinderActions/MvbActions.cs | using System;
using System.Collections.Generic;
using Mvb.Core.Abstract;
namespace Mvb.Core.Components.BinderActions
{
public class MvbActions : IBinderActions
{
private readonly IUiRunner _uiRunner;
private readonly IList<Tuple<WeakReference,Action>> _bindersAction;
public MvbActions... | using System;
using System.Collections.Generic;
using Mvb.Core.Abstract;
namespace Mvb.Core.Components.BinderActions
{
public class MvbActions : IBinderActions
{
private readonly IUiRunner _uiRunner;
private readonly IList<Action> _bindersAction;
public MvbActions()
{
... | apache-2.0 | C# |
17dfb21ff967d058da6afc6ad36f6cd7727a61c0 | Fix #145 | dgarage/NBXplorer,dgarage/NBXplorer | NBXplorer/ModelBinders/DerivationStrategyModelBinder.cs | NBXplorer/ModelBinders/DerivationStrategyModelBinder.cs | using Microsoft.AspNetCore.Mvc.ModelBinding;
using NBitcoin;
using System.Reflection;
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.Internal;
using NBXplorer.DerivationStrategy;
namespace NBXplorer.ModelBinders
{
public class DerivationStrategyModelBinder : IModelBinder
{
public Deriv... | using Microsoft.AspNetCore.Mvc.ModelBinding;
using NBitcoin;
using System.Reflection;
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.Internal;
using NBXplorer.DerivationStrategy;
namespace NBXplorer.ModelBinders
{
public class DerivationStrategyModelBinder : IModelBinder
{
public Deriv... | mit | C# |
8c67156769b753a5e77cf75f1b7a2a36ad72505f | Fix viewport scaling | RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast | RightpointLabs.Pourcast.Web/Views/Shared/_Layout.cshtml | RightpointLabs.Pourcast.Web/Views/Shared/_Layout.cshtml | @using RightpointLabs.Pourcast.Web.Properties
@using System.Web.Optimization
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>@Html.Raw(string.Format("{0} - {1}", Resources.Applicatio... | @using RightpointLabs.Pourcast.Web.Properties
@using System.Web.Optimization
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@Html.Raw(string.Format("{0} - {1}", Resources.Application, Resources.Description))</title>
... | mit | C# |
093fb8de6547b40d404ebded27619af3d2843a9a | Fix the semi colon | RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast | RightpointLabs.Pourcast.Web/Views/Shared/_Layout.cshtml | RightpointLabs.Pourcast.Web/Views/Shared/_Layout.cshtml | @using RightpointLabs.Pourcast.Web.Properties
@using System.Web.Optimization
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@Html.Raw(string.Format("{0} - {1}", Resources.Application, Resources.Description))</title>
... | @using RightpointLabs.Pourcast.Web.Properties
@using System.Web.Optimization
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@Html.Raw(string.Format("{0} - {1}", Resources.Application, Resources.Description))</title>
... | mit | C# |
75d98a4adc5c235cba49a7311d8b1027ba14c269 | Update Assembly Info | nikop/SteamControllerConfigDownloader | configdownloader/Properties/AssemblyInfo.cs | configdownloader/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("St... | 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("co... | mit | C# |
3d24b9f93c9e27deb8aeb428867886450b3b57b9 | Fix typos | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Tests/UnitTests/Crypto/ProofSystemTests.cs | WalletWasabi.Tests/UnitTests/Crypto/ProofSystemTests.cs | using System;
using NBitcoin.Secp256k1;
using WalletWasabi.Crypto;
using WalletWasabi.Crypto.Groups;
using WalletWasabi.Crypto.Randomness;
using WalletWasabi.Crypto.ZeroKnowledge;
using Xunit;
namespace WalletWasabi.Tests.UnitTests.Crypto
{
public class ProofSystemTests
{
[Fact]
[Trait("UnitTest", "UnitTest")]
... | using System;
using NBitcoin.Secp256k1;
using WalletWasabi.Crypto;
using WalletWasabi.Crypto.Groups;
using WalletWasabi.Crypto.Randomness;
using WalletWasabi.Crypto.ZeroKnowledge;
using Xunit;
namespace WalletWasabi.Tests.UnitTests.Crypto
{
public class ProofSystemTests
{
[Fact]
[Trait("UnitTest", "UnitTest")]
... | mit | C# |
ba589080231cb18286faa08dc5f0b9a6ddc8c0e5 | Check consistency after solution load | mattwar/roslyn,VShangxiao/roslyn,cybernet14/roslyn,SeriaWei/roslyn,abock/roslyn,stephentoub/roslyn,huoxudong125/roslyn,mattscheffer/roslyn,Giftednewt/roslyn,robinsedlaczek/roslyn,ahmedshuhel/roslyn,mgoertz-msft/roslyn,VSadov/roslyn,agocke/roslyn,antiufo/roslyn,ericfe-ms/roslyn,YOTOV-LIMITED/roslyn,AlexisArce/roslyn,tma... | src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectTracker_IVsSolutionLoadEvents.cs | src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectTracker_IVsSolutionLoadEvents.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 Microsoft.VisualStudio.ComponentModelHost;
using Microsoft.VisualStudio.Shell.Interop;
namespace Microsoft.VisualStudio.LanguageServices.Implementation... | // 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 Microsoft.VisualStudio.Shell.Interop;
namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem
{
internal partial class Visua... | apache-2.0 | C# |
0ee7ac755c36cc786b6ffb39ffb21253d752308e | add more field of user | jpush/jmessage-api-csharp-client | jmessage/user/UserPayload.cs | jmessage/user/UserPayload.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using jmessage.common;
using jmessage.util;
namespace jmessage.user
{
public class UserPayload
{
public string username;
public string password;
public string appkey;
pu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using jmessage.common;
using jmessage.util;
namespace jmessage.user
{
public class UserPayload
{
public string username;
public string password;
public UserPayload(string userna... | mit | C# |
26f4fd4897fcab8008968b8792e241bde1cc0c94 | Resolve a problem with Obsolete controller | blogifierdotnet/Blogifier.Core,blogifierdotnet/Blogifier.Core | src/Blogifier.Core/Services/MailKitService.cs | src/Blogifier.Core/Services/MailKitService.cs | using MailKit.Net.Smtp;
using MimeKit;
using System;
using System.Threading.Tasks;
namespace Blogifier.Core.Services
{
public class MailKitService : IEmailService
{
private readonly IDataService _db;
public MailKitService(IDataService db)
{
_db = db;
}
pub... | using MailKit.Net.Smtp;
using MimeKit;
using System;
using System.Threading.Tasks;
namespace Blogifier.Core.Services
{
public class MailKitService : IEmailService
{
private readonly IDataService _db;
public MailKitService(IDataService db)
{
_db = db;
}
pub... | mit | C# |
491afa3e36ef1ec5ff71e5766f5502dbf8eb0add | Fix styling | jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr | src/HelloCoreClrApp/Data/SetupDatabaseTask.cs | src/HelloCoreClrApp/Data/SetupDatabaseTask.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Serilog;
using SimpleInjector;
namespace HelloCoreClrApp.Data
{
public class SetupDatabaseTask : BackgroundService
{
private static readonly ILogger Log = Serilog.Log.ForContext<SetupDatabaseT... | using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Serilog;
using SimpleInjector;
namespace HelloCoreClrApp.Data
{
public class SetupDatabaseTask : BackgroundService
{
private readonly IApplicationLifetime applicationLifetime;
private ... | mit | C# |
d64ea075dd268b86b18f8160503e3ef5bcd02d9c | Fix build | unosquare/swan | test/Unosquare.Swan.Test/SnmpClientTest.cs | test/Unosquare.Swan.Test/SnmpClientTest.cs | using System.Linq;
using NUnit.Framework;
using Unosquare.Swan.Networking;
namespace Unosquare.Swan.Test
{
[TestFixture]
public class SnmpClientTest
{
[Test]
public void TestDiscovery()
{
var data = SnmpClient.Discover();
Assert.IsNotNull(data);
... | using System.Linq;
using NUnit.Framework;
using Unosquare.Swan.Networking;
namespace Unosquare.Swan.Test
{
[TestFixture]
public class SnmpClientTest
{
[Test]
public void TestDiscovery()
{
var data = SnmpClient.Discover();
Assert.IsNotNull(data);
... | mit | C# |
24e064aa9d93ce6ba15f2fe0c6a566acbf2a57a9 | Update version | akorb/SteamShutdown | SteamShutdown/Properties/AssemblyInfo.cs | SteamShutdown/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("SteamShutdown")]
[assembly: Assemb... | 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("SteamShutdown")]
[assembly: Assemb... | mit | C# |
12ca592473f6b51b53dc79261828e46d69eed6c1 | Add chat id index | stanriders/den0bot,stanriders/den0bot | den0bot.Analytics.Data/AnalyticsDatabase.cs | den0bot.Analytics.Data/AnalyticsDatabase.cs | // den0bot (c) StanR 2021 - MIT License
using den0bot.Analytics.Data.Types;
using Microsoft.EntityFrameworkCore;
namespace den0bot.Analytics.Data
{
public sealed class AnalyticsDatabase : DbContext
{
#if DEBUG
private const string connection_string = "Filename=./analytics.db";
#else
private const string connect... | // den0bot (c) StanR 2021 - MIT License
using den0bot.Analytics.Data.Types;
using Microsoft.EntityFrameworkCore;
namespace den0bot.Analytics.Data
{
public sealed class AnalyticsDatabase : DbContext
{
#if DEBUG
private const string connection_string = "Filename=./analytics.db";
#else
private const string connect... | mit | C# |
8cd4dbadd65157ea8310363c70e2991255f41eea | Prepare HTTP tracking call data | hinteadan/Metrics.NET.GAReporting | Metrics.Reporters.GoogleAnalytics/Metrics.Reporters.GoogleAnalytics.Tracker/Model/MeasurementProtocol/Protocol.cs | Metrics.Reporters.GoogleAnalytics/Metrics.Reporters.GoogleAnalytics.Tracker/Model/MeasurementProtocol/Protocol.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol.Values;
namespace Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol
{
public abstract class Protocol
{... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol.Values;
namespace Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol
{
public abstract class Protocol
{... | apache-2.0 | C# |
26c58ea19758995d58a170cf08d5474418fbd103 | bump version to 0.6 | Dalet/140-speedrun-timer,Dalet/140-speedrun-timer,Dalet/140-speedrun-timer | SharedAssemblyInfo.cs | SharedAssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.6")]
[assembly: AssemblyFileVersion("0.6")]
| using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.5.0.0")]
[assembly: AssemblyFileVersion("0.5.0.0")]
| unlicense | C# |
22a483fc0ecfda02577470775d12837796c89f1e | Fix failing tests | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/src/resharper-unity/ShaderLab/Daemon/ContextHighlighters/Rider/RiderShaderLabUsageContextHighlighterAvailability.cs | resharper/src/resharper-unity/ShaderLab/Daemon/ContextHighlighters/Rider/RiderShaderLabUsageContextHighlighterAvailability.cs | #if RIDER
using JetBrains.Annotations;
using JetBrains.Application;
using JetBrains.Platform.RdFramework.Util;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Resources.Shell;
using JetBrains.Rider.Model;
namespace JetBrains.ReSharper.Plugins.Unity.ShaderLab.Daemon.ContextHighlighters
{
[ShellComponent]... | #if RIDER
using JetBrains.Annotations;
using JetBrains.Application;
using JetBrains.Platform.RdFramework.Util;
using JetBrains.ReSharper.Psi;
using JetBrains.Rider.Model;
namespace JetBrains.ReSharper.Plugins.Unity.ShaderLab.Daemon.ContextHighlighters
{
[ShellComponent]
public class RiderShaderLabUsageContex... | apache-2.0 | C# |
fd9e17b4c65abeb8bed8269e07ef5408be257b58 | Fix typo | mlorbetske/templating,mlorbetske/templating,seancpeters/templating,seancpeters/templating,seancpeters/templating,seancpeters/templating | template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/RazorPagesWeb-CSharp/Pages/Account/Manage/TwoFactorAuthentication.cshtml | template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/RazorPagesWeb-CSharp/Pages/Account/Manage/TwoFactorAuthentication.cshtml | @page
@model TwoFactorAuthenticationModel
@{
ViewData["Title"] = "Two-factor authentication (2FA)";
}
<h4>@ViewData["Title"]</h4>
@if (Model.HasAny2faProviders)
{
if (Model.Is2faEnabled)
{
if (Model.RecoveryCodesLeft == 0)
{
<div class="alert alert-danger">
<stro... | @page
@model TwoFactorAuthenticationModel
@{
ViewData["Title"] = "Two-factor authentication (2FA)";
}
<h4>@ViewData["Title"]</h4>
@if (Model.HasAny2faProviders)
{
if (Model.Is2faEnabled)
{
if (Model.RecoveryCodesLeft == 0)
{
<div class="alert alert-danger">
<str... | mit | C# |
e212ea982178aa8f1e647ee3002e2ea4691a94cc | Undo grouping of async calls, 2 concurrent calls against same dbcontext occurring | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerAccounts/Queries/GetTransferConnectionInvitationAuthorization/GetTransferConnectionInvitationAuthorizationQueryHandler.cs | src/SFA.DAS.EmployerAccounts/Queries/GetTransferConnectionInvitationAuthorization/GetTransferConnectionInvitationAuthorizationQueryHandler.cs | using System;
using System.Data.Entity;
using System.Threading.Tasks;
using MediatR;
using SFA.DAS.Authorization;
using SFA.DAS.EmployerAccounts.Configuration;
using SFA.DAS.EmployerAccounts.Data;
using SFA.DAS.EmployerAccounts.Models.TransferConnections;
namespace SFA.DAS.EmployerAccounts.Queries.GetTransferConnecti... | using System;
using System.Data.Entity;
using System.Threading.Tasks;
using MediatR;
using SFA.DAS.Authorization;
using SFA.DAS.EmployerAccounts.Configuration;
using SFA.DAS.EmployerAccounts.Data;
using SFA.DAS.EmployerAccounts.Models.TransferConnections;
namespace SFA.DAS.EmployerAccounts.Queries.GetTransferConnecti... | mit | C# |
e57964e978999db4dfd00ab78560cd07dad3bb1b | Rework models for global domains | bitwarden/core,bitwarden/core,bitwarden/core,bitwarden/core | src/Api/Models/Response/DomainsResponseModel.cs | src/Api/Models/Response/DomainsResponseModel.cs | using System;
using Bit.Core.Domains;
using System.Collections.Generic;
using Newtonsoft.Json;
using Bit.Core.Enums;
using System.Linq;
namespace Bit.Api.Models
{
public class DomainsResponseModel : ResponseModel
{
public DomainsResponseModel(User user)
: base("domains")
{
... | using System;
using Bit.Core.Domains;
using System.Collections.Generic;
using Newtonsoft.Json;
using Bit.Core.Enums;
namespace Bit.Api.Models
{
public class DomainsResponseModel : ResponseModel
{
public DomainsResponseModel(User user)
: base("domains")
{
if(user == null... | agpl-3.0 | C# |
bfadac6e4e9601b93588e7270e5abbdeedda0ce1 | Make CallerMemberNameAttribute internal (#100) | josemesona/ManagedDism,josemesona/ManagedDism | src/Microsoft.Dism/CallerMemberNameAttribute.cs | src/Microsoft.Dism/CallerMemberNameAttribute.cs | // Copyright (c). All rights reserved.
//
// Licensed under the MIT license.
#if NET40
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Allows you to obtain the method or property name of the caller to the method.
/// </summary>
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = ... | // Copyright (c). All rights reserved.
//
// Licensed under the MIT license.
#if NET40
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Allows you to obtain the method or property name of the caller to the method.
/// </summary>
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = ... | mit | C# |
5a92e34a6b234722b7b77d8e44e42871c760fc8c | Change project version based on lateset NuGet package. | Axosoft/AxosoftAPI.NET | AxosoftAPI.NET/Properties/AssemblyInfo.cs | AxosoftAPI.NET/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("AxosoftAPI.NET")]
[assembly: AssemblyDesc... | 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("AxosoftAPI.NET")]
[assembly: AssemblyDesc... | mit | C# |
56f8c449642731977e153ee593496999f5fb3b31 | Increment version | Benrnz/BudgetAnalyser | BudgetAnalyser/Properties/AssemblyInfo.cs | BudgetAnalyser/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
// 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("BudgetAnal... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
// 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("BudgetAnal... | mit | C# |
27a1860e4c68772a696d62ab415c2dbb4ecb9f66 | Update comments on test extensions | mattgwagner/CertiPay.Common | CertiPay.Common.Testing/TestExtensions.cs | CertiPay.Common.Testing/TestExtensions.cs | namespace CertiPay.Common.Testing
{
using ApprovalTests;
using Newtonsoft.Json;
using Ploeh.AutoFixture;
public static class TestExtensions
{
private static readonly Fixture _fixture = new Fixture { };
/// <summary>
/// Runs ApprovalTests's VerifyJson against a JSON.net se... | namespace CertiPay.Common.Testing
{
using ApprovalTests;
using Newtonsoft.Json;
using Ploeh.AutoFixture;
public static class TestExtensions
{
private static readonly Fixture _fixture = new Fixture { };
/// <summary>
/// Runs ApprovalTests's VerifyJson against a JSON.net se... | mit | C# |
eaa88601a4051b8c1c22b2f360943d2e78b7002c | Use interfaces instead of concrete types in file definition | eggapauli/MyDocs,eggapauli/MyDocs | Common/Contract/Service/IPageExtractor.cs | Common/Contract/Service/IPageExtractor.cs | using MyDocs.Common.Contract.Storage;
using MyDocs.Common.Model;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyDocs.Common.Contract.Service
{
public interface IPageExtractor
{
IEnumerable<string> Support... | using MyDocs.Common.Contract.Storage;
using MyDocs.Common.Model;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyDocs.Common.Contract.Service
{
public interface IPageExtractor
{
IEnumerable<string> Support... | mit | C# |
09e49483afca0e3532e965979ce02a38b0a1e560 | bump version | raml-org/raml-dotnet-parser,raml-org/raml-dotnet-parser | source/RAML.Parser/Properties/AssemblyInfo.cs | source/RAML.Parser/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("RAM... | 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("RAM... | apache-2.0 | C# |
8ee389b775749597e01db118877f93a4ba5cae14 | bump version | raml-org/raml-dotnet-parser-2,raml-org/raml-dotnet-parser-2 | source/Raml.Parser/Properties/AssemblyInfo.cs | source/Raml.Parser/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("RAML.Parser")]
[assembly: AssemblyDescri... | 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("RAML.Parser")]
[assembly: AssemblyDescri... | apache-2.0 | C# |
bdf1c3bf006c93dad0f0efefbebcb8b90dd589ea | Adjust rule for Age Calc. | raphaelheitor/calendary | src/DateTimeExtension.cs | src/DateTimeExtension.cs | using System;
namespace ExtensionMethods
{
public static class MyExtensionMethods
{
public static DateTime Tomorrow(this DateTime date)
{
return date.AddDays(1);
}
public static DateTime Yesterday(this DateTime date)
{
return date.Add... | using System;
namespace ExtensionMethods
{
public static class MyExtensionMethods
{
public static DateTime Tomorrow(this DateTime date)
{
return date.AddDays(1);
}
public static DateTime Yesterday(this DateTime date)
{
return date.Add... | apache-2.0 | C# |
84220973e1de1ac073b5a3ca9d63c73c1b653612 | Update non-sense test. | Zakkgard/Moonfire | Moonfire/Core/Moonfire.CoreTests/Collections/ObjectPoolTests.cs | Moonfire/Core/Moonfire.CoreTests/Collections/ObjectPoolTests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moonfire.Core.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Moonfire.Core.Collections.Tests
{
[TestClass()]
public class ObjectPoolTests
{
private ... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moonfire.Core.Collections;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Moonfire.Core.Collections.Tests
{
[TestClass()]
public class ObjectPoolTests
{
private ... | mit | C# |
520f924638adfd13b63c16de173e847bd3a61743 | Remove superfluous line. | jagrem/msg | Msg.Core.Specs/Transport/Connections/Replay/ReplayConnection.cs | Msg.Core.Specs/Transport/Connections/Replay/ReplayConnection.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Msg.Core.Transport;
namespace Msg.Core.Specs.Transport.Connections.Replay
{
public class ReplayConnection : Connection
{
readonly Queue<Func<byte[],byte[]>> replays = new Queue<Func<byte[],byte[]>> ();
interna... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Msg.Core.Transport;
namespace Msg.Core.Specs.Transport.Connections.Replay
{
public class ReplayConnection : Connection
{
readonly Queue<Func<byte[],byte[]>> replays = new Queue<Func<byte[],byte[]>> ();
interna... | apache-2.0 | C# |
088c9b48fb33ad132421487d87801e913ae57b19 | Make HttpClientProvider inheritable | henrikfroehling/TraktApiSharp | Source/Lib/TraktApiSharp/Requests/Handler/HttpClientProvider.cs | Source/Lib/TraktApiSharp/Requests/Handler/HttpClientProvider.cs | namespace TraktApiSharp.Requests.Handler
{
using Core;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
public class HttpClientProvider : IHttpClientProvider
{
protected readonly MediaType... | namespace TraktApiSharp.Requests.Handler
{
using Core;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
internal class HttpClientProvider : IHttpClientProvider
{
private const string MEDIA... | mit | C# |
6d4449050d23174b9973e5cff68de2177ee410fd | Implement SynchronousIOManager.WriteFileChecked | Cyberboss/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server | src/Tgstation.Server.Host/Core/SynchronousIOManager.cs | src/Tgstation.Server.Host/Core/SynchronousIOManager.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Threading;
namespace Tgstation.Server.Host.Core
{
/// <inheritdoc />
sealed class SynchronousIOManager : ISynchronousIOManager
{
/// <inheritdoc />
pu... | using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
namespace Tgstation.Server.Host.Core
{
/// <inheritdoc />
sealed class SynchronousIOManager : ISynchronousIOManager
{
/// <inheritdoc />
public IEnumerable<string> GetDirectories(string path, CancellationToken cancellation... | agpl-3.0 | C# |
6191fe24456e830e77b9f667ed99d8b6de635649 | Fix eval controller endpoints | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Controllers/EvaluationsController.cs | Battery-Commander.Web/Controllers/EvaluationsController.cs | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers
{
[Authorize]
public class EvaluationsController : Control... | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers
{
[Authorize]
public class EvaluationsController : Control... | mit | C# |
9a6c95b667f414662e11d10b8dd5d1734db9988a | Remove unused using. | congdanhqx/BlogEngine.Gist | GistExtension.cs | GistExtension.cs | using BlogEngine.Core;
using BlogEngine.Core.Web.Controls;
using System.Text.RegularExpressions;
namespace BlogEngine.Gist
{
[Extension("This extension enables Github Gist support for BlogEngine.NET.", "1.0", "Cong Danh")]
public class GistExtension
{
public GistExtension()
{
P... | using BlogEngine.Core;
using BlogEngine.Core.Web.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace BlogEngine.Gist
{
[Extension("This extension enables Github Gist support for BlogEngine.NET... | apache-2.0 | C# |
2acfd25853e544ea9c806e3a64b3c516c2818454 | Update settings to store keys as an ObservableCollection | Mpstark/articulate,BrunoBrux/ArticulateDVS | Articulate/Settings/Settings.cs | Articulate/Settings/Settings.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Xml.Serialization;
using System.Diagnostics;
using System.Threading;
using System.Runtime.Serialization.Formatters.Binary;
using System.Collections.ObjectModel;
namespace ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Xml.Serialization;
using System.Diagnostics;
using System.Threading;
using System.Runtime.Serialization.Formatters.Binary;
namespace Articulate
{
public enum ListenMode
... | mit | C# |
cb35905df29211bfc4853259c32ecdd9950680f6 | Fix safety measures. Destroy missing. | toqueteos/bacon | Assets/Scripts/TriggerDestroy.cs | Assets/Scripts/TriggerDestroy.cs | using UnityEngine;
using System.Collections;
public class TriggerDestroy : MonoBehaviour
{
public Transform owner;
public float ensureDestroyAfter = 2f;
void Update()
{
ensureDestroyAfter -= Time.deltaTime;
if (ensureDestroyAfter <= 0) {
Destroy(gameObject);
}
}
void OnTriggerEnter(Collider other)
... | using UnityEngine;
using System.Collections;
public class TriggerDestroy : MonoBehaviour
{
public Transform owner;
public float ensureDestroyAfter = 5f;
void Update()
{
ensureDestroyAfter -= Time.deltaTime;
}
void OnTriggerEnter(Collider other)
{
if (other.transform.name != owner.name)
{
return;
... | mit | C# |
e4f10af41f0e4f7cf3b5af3caf83c94b59a558b9 | Fix brainfart typo. | tintoy/aykay-deekay | src/AKDK/DockerModelExtensions.cs | src/AKDK/DockerModelExtensions.cs | using Docker.DotNet.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace AKDK
{
/// <summary>
/// Extension methods for well-known Docker API models.
/// </summary>
public static class DockerModelExtensions
{
/// <summary>
/// Configure the c... | using Docker.DotNet.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace AKDK
{
/// <summary>
/// Extension methods for well-known Docker API models.
/// </summary>
public static class DockerModelExtensions
{
/// <summary>
/// Configure the c... | mit | C# |
874a5e9190c854a1f99d0843d45c833b4d539fcb | Add BuildStart, TestName and TestStart values to log event properties in NLogConsumer | atata-framework/atata,YevgeniyShunevych/Atata,atata-framework/atata,YevgeniyShunevych/Atata | src/Atata/Logging/NLogConsumer.cs | src/Atata/Logging/NLogConsumer.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Atata
{
public class NLogConsumer : ILogConsumer
{
private readonly dynamic logger;
private readonly Type logEventInfoType;
private readonly Dicti... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Atata
{
public class NLogConsumer : ILogConsumer
{
private readonly dynamic logger;
private readonly Type logEventInfoType;
private readonly Dicti... | apache-2.0 | C# |
1c10a3dbcab4935ef50a3d4e039fc55b6897f354 | exclude loading '-rc' assemblies for tests | prodot/ReCommended-Extension | Sources/ReCommendedExtension.Tests/Extensions.cs | Sources/ReCommendedExtension.Tests/Extensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
namespace ReCommendedExtension.Tests
{
internal static class Extensions
{
[NotNull]
[ItemNotNull]
static readonly string[] pathFragmentsToExclude = { "preview", "-rc" };
[NotNull]
... | using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
namespace ReCommendedExtension.Tests
{
internal static class Extensions
{
[NotNull]
[ItemNotNull]
public static IEnumerable<string> GetReferencedAssemblies([NotNull][ItemNotNull] this IEnumer... | apache-2.0 | C# |
af0d92211e933fdbbd585753d42bca15c72627df | Bump version | programcsharp/griddly,programcsharp/griddly,programcsharp/griddly | Build/CommonAssemblyInfo.cs | Build/CommonAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("Griddly")]
[assembly: AssemblyCopyright("Copyright © 2013-2022 Chris Hynes, Joel Potter, and Data Research Group")]
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
/... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("Griddly")]
[assembly: AssemblyCopyright("Copyright © 2013-2022 Chris Hynes, Joel Potter, and Data Research Group")]
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
/... | mit | C# |
8530e0f81af5812ed38301c41829251f9955a9dc | format the document. | dimixar/audio-controller-unity | AudioController/Assets/Source/AudioObject.cs | AudioController/Assets/Source/AudioObject.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(AudioSource))]
public class AudioObject : MonoBehaviour
{
public System.Action<AudioObject> OnFinishedPlaying;
#region private fields
private string _id;
private AudioClip _clip;
private Audio... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(AudioSource))]
public class AudioObject : MonoBehaviour {
public System.Action<AudioObject> OnFinishedPlaying;
#region private fields
private string _id;
private AudioClip _clip;
private AudioSour... | mit | C# |
489726f07b0faab9a08437acc231bc42258aee5c | Add Message property on BaseResponse. | guibranco/GuiStracini.Mandae | GuiStracini.Mandae/Transport/BaseResponse.cs | GuiStracini.Mandae/Transport/BaseResponse.cs | // ***********************************************************************
// Assembly : GuiStracini.Mandae
// Author : Guilherme Branco Stracini
// Created : 28/09/2017
//
// Last Modified By : Guilherme Branco Stracini
// Last Modified On : 28/09/2017
// ***********************************... | // ***********************************************************************
// Assembly : GuiStracini.Mandae
// Author : Guilherme Branco Stracini
// Created : 28/09/2017
//
// Last Modified By : Guilherme Branco Stracini
// Last Modified On : 28/09/2017
// ***********************************... | mit | C# |
a19f7441e90185c9d37e8f211bfa3f898819e803 | remove commented line in ImageDpiHelper | Microsoft/WPF-Samples,Microsoft/WPF-Samples,Microsoft/WPF-Samples,Microsoft/WPF-Samples | PerMonitorDPI/ImageScaling/ImageDpiHelper.cs | PerMonitorDPI/ImageScaling/ImageDpiHelper.cs | using System;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace ImageScaling
{
public static class ImageDpiHelper
{
public static string GetDesiredImageUrlForDpi(Image image)
{ ... | using System;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace ImageScaling
{
public static class ImageDpiHelper
{
public static string GetDesiredImageUrlForDpi(Image image)
{
... | mit | C# |
d08ba8849f022bf7dfb011ee87c5c7e1f51e8680 | Add db tool dependency. | aimrebirth/Polygon4,aimrebirth/Polygon4,aimrebirth/Polygon4 | Plugins/DBTool/Source/DBTool/DBTool.Build.cs | Plugins/DBTool/Source/DBTool/DBTool.Build.cs | /*
* Polygon-4
* Copyright (C) 2015 lzwdgc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This pr... | /*
* Polygon-4
* Copyright (C) 2015 lzwdgc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This pr... | agpl-3.0 | C# |
cf5b7751f35daf02c0c2e853a09f9683b11b6d01 | fix npi evaluation bug | lohas1107/knn-on-air | Evaluation/FlowNPI.cs | Evaluation/FlowNPI.cs | using KNNonAir.Domain.Context;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Evaluation
{
class FlowNPI : Flow
{
public FlowNPI(Model model, string[] args) : base(model, args)
{
ROAD_POI_PATH = _args[0];
NVD_PATH = _args... | using KNNonAir.Domain.Context;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Evaluation
{
class FlowNPI : Flow
{
public FlowNPI(Model model, string[] args) : base(model, args)
{
ROAD_POI_PATH = _args[0];
NVD_PATH = _args... | mit | C# |
0c0e23a17c6a901ed0f4c2a7574feda09e4734a7 | fix bug in ShapeStruct | Alexx999/SwfSharp | SwfSharp/Structs/ShapeStruct.cs | SwfSharp/Structs/ShapeStruct.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SwfSharp.ShapeRecords;
using SwfSharp.Tags;
using SwfSharp.Utils;
namespace SwfSharp.Structs
{
public class ShapeStruct
{
private byte _numFillBits;
private byte _numLineBits;
public byte NumFi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SwfSharp.ShapeRecords;
using SwfSharp.Tags;
using SwfSharp.Utils;
namespace SwfSharp.Structs
{
public class ShapeStruct
{
private byte _numFillBits;
private byte _numLineBits;
public byte NumFi... | mit | C# |
7a68b0bd46c083f4bb1a66359dc89dc5e3c53428 | Update AssemblyInfo. | drewnoakes/boing | Boing/Properties/AssemblyInfo.cs | Boing/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("Boing")]
[assembly: AssemblyDescription(... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Boing")]
[assembly: AssemblyDescription(... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.