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
c338a7a0f29fa8efd412ccc5a917137838877b9e
access to query string
holajan/dotvvm,riganti/dotvvm,holajan/dotvvm,darilek/dotvvm,darilek/dotvvm,holajan/dotvvm,kiraacorsac/dotvvm,kiraacorsac/dotvvm,holajan/dotvvm,darilek/dotvvm,riganti/dotvvm,riganti/dotvvm,kiraacorsac/dotvvm,riganti/dotvvm
src/Redwood.Framework/Hosting/RedwoodRequestContext.cs
src/Redwood.Framework/Hosting/RedwoodRequestContext.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Owin; using Redwood.Framework.Configuration; using Redwood.Framework.Routing; namespace Redwood.Framework.Hosting { public class RedwoodRequestContext { public IOwinCon...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Owin; using Redwood.Framework.Configuration; using Redwood.Framework.Routing; namespace Redwood.Framework.Hosting { public class RedwoodRequestContext { public IOwinCon...
apache-2.0
C#
7255962db69ed618e857e8356872e31aa32dcc57
Address PR feedback
BrennanConroy/corefx,ptoonen/corefx,gkhanna79/corefx,cydhaselton/corefx,rjxby/corefx,parjong/corefx,jlin177/corefx,mmitche/corefx,zhenlan/corefx,JosephTremoulet/corefx,seanshpark/corefx,Jiayili1/corefx,rahku/corefx,tijoytom/corefx,MaggieTsang/corefx,mmitche/corefx,alexperovich/corefx,seanshpark/corefx,fgreinacher/coref...
src/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.cs
src/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.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. // ------------------------------------------------------------------------------ // Changes to this file must follow...
// 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. // ------------------------------------------------------------------------------ // Changes to this file must follow...
mit
C#
281511869ced3388ce79032fc2a056b083d046d1
Create TestPage.cs
Si-143/Application-and-Web-Development
TestPage.cs
TestPage.cs
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { RadioButtonList1.DataSource = LoadAnswers();// calls this method. RadioButtonList1.DataTextField = "Answers";// set texts field to the answers RadioButtonList1.DataValueField = "QuestionID";//set values to the questionID RadioButtonList1.Da...
mit
C#
2ea039af4c0a6690a5e4af814cf8227f269f8bbb
Add minimal signature for WholeNumber
NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework
Legacy/Legacy.NakedObjects/Application/ValueHolder/WholeNumber.cs
Legacy/Legacy.NakedObjects/Application/ValueHolder/WholeNumber.cs
using System; namespace Legacy.NakedObjects.Application.ValueHolder { public class WholeNumber { public int value { get; set; } public Action<int> update { get; set; } = _ => { }; public WholeNumber(int value, Action<int> udpateMappedField) : this(value) => update = udpateMappedField;...
apache-2.0
C#
51412aede30a7560d6e8cf99abf37b9b602e3926
Add AtomicChessGame class
ProgramFOX/Chess.NET
ChessDotNet.Variants/Atomic/AtomicChessGame.cs
ChessDotNet.Variants/Atomic/AtomicChessGame.cs
namespace ChessDotNet.Variants.Atomic { public class AtomicChessGame : ChessGame { } }
mit
C#
6ad70948daa563799d1c416d8840a24bc183e588
Implement DatabaseContextFactory
tgstation/tgstation-server,tgstation/tgstation-server-tools,Cyberboss/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server
src/Tgstation.Server.Host/Core/DatabaseContextFactory.cs
src/Tgstation.Server.Host/Core/DatabaseContextFactory.cs
using Microsoft.Extensions.DependencyInjection; using System; using System.Threading.Tasks; using Tgstation.Server.Host.Models; namespace Tgstation.Server.Host.Core { /// <inheritdoc /> sealed class DatabaseContextFactory : IDatabaseContextFactory { /// <summary> /// The <see cref="IServiceProvider"/> for the ...
agpl-3.0
C#
d3a15a6385a853cb539b9850b4c27928b723f4ee
Add ReadOnlySpanExtensions
Carbon/Css
src/Carbon.Css/Helpers/ReadOnlySpanExtensions.cs
src/Carbon.Css/Helpers/ReadOnlySpanExtensions.cs
using System; namespace Carbon.Css.Helpers { internal static class ReadOnlySpanExtensions { public static double ReadNumber(this ReadOnlySpan<char> text, out int read) { read = 0; while (char.IsDigit(text[read]) || text[read] == '.') { ...
mit
C#
33840856a8d28bc3e02ae48fd658ba45aa120eb7
Create MatrixHelperTests.cs
wieslawsoltes/PanAndZoom,wieslawsoltes/MatrixPanAndZoomDemo,PanAndZoom/PanAndZoom,wieslawsoltes/PanAndZoom,PanAndZoom/PanAndZoom
tests/Avalonia.Controls.PanAndZoom.UnitTests/MatrixHelperTests.cs
tests/Avalonia.Controls.PanAndZoom.UnitTests/MatrixHelperTests.cs
using Xunit; namespace Avalonia.Controls.PanAndZoom.UnitTests { public class MatrixHelperTests { [Fact] public void Translate_Returns_Matrix() { var target = MatrixHelper.Translate(20, 30); Assert.Equal(1.0, target.M11); Assert.Equal(0.0, target.M12)...
mit
C#
b67027390ad95c678b7a458045a659d096213c8e
Add MsgPackToken test
aensidhe/tarantool-csharp,progaudi/progaudi.tarantool,aensidhe/tarantool-dnx
tests/progaudi.tarantool.tests/Space/MsgPackTokenTest.cs
tests/progaudi.tarantool.tests/Space/MsgPackTokenTest.cs
// <copyright file="MsgPackTokenTest.cs" company="eVote"> // Copyright © eVote // </copyright> using System.Linq; using System.Threading.Tasks; using ProGaudi.MsgPack.Light; using ProGaudi.Tarantool.Client.Model; using Shouldly; using Xunit; namespace ProGaudi.Tarantool.Client.Tests.Space { public class MsgPac...
mit
C#
b6dbfa2df113bc3c1e475771f7df3ffa5945fa5f
Add placeholder test to avoid build warnings
jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet
apis/Google.Cloud.ApigeeConnect.V1/Google.Cloud.ApigeeConnect.V1.Tests/PlaceholderTest.cs
apis/Google.Cloud.ApigeeConnect.V1/Google.Cloud.ApigeeConnect.V1.Tests/PlaceholderTest.cs
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
apache-2.0
C#
60ee9358aa130c13f0d68b6cccbcd0c6c3f44cc5
Remove setting of Netflix twice
hamstercat/Emby.Channels,MediaBrowser/Emby.Channels,heksesang/Emby.Channels,MediaBrowser/Emby.Channels,heksesang/Emby.Channels,hamstercat/Emby.Channels
MediaBrowser.Plugins.Trailers/Configuration/PluginConfiguration.cs
MediaBrowser.Plugins.Trailers/Configuration/PluginConfiguration.cs
using MediaBrowser.Model.Plugins; namespace MediaBrowser.Plugins.Trailers.Configuration { /// <summary> /// Class PluginConfiguration /// </summary> public class PluginConfiguration : BasePluginConfiguration { public bool EnableMovieArchive { get; set; } public bool Enabl...
using MediaBrowser.Model.Plugins; namespace MediaBrowser.Plugins.Trailers.Configuration { /// <summary> /// Class PluginConfiguration /// </summary> public class PluginConfiguration : BasePluginConfiguration { public bool EnableMovieArchive { get; set; } public bool EnableNetflix {...
mit
C#
b83ee83c224873f878e16b6478e0abf27646e53f
Add adminwho command.
space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14
Content.Server/Administration/Commands/AdminWhoCommand.cs
Content.Server/Administration/Commands/AdminWhoCommand.cs
using Content.Server.Administration.Managers; using Robust.Shared.Console; using Robust.Shared.IoC; using Robust.Shared.Utility; namespace Content.Server.Administration.Commands; [AnyCommand] public sealed class AdminWhoCommand : IConsoleCommand { public string Command => "adminwho"; public string Descriptio...
mit
C#
703ebda4901e19b079e50c173e383ecd9019adfc
Add missing copyright notice
nacaspi/azure-sdk-for-net,rohmano/azure-sdk-for-net,amarzavery/azure-sdk-for-net,gubookgu/azure-sdk-for-net,rohmano/azure-sdk-for-net,pomortaz/azure-sdk-for-net,Nilambari/azure-sdk-for-net,pattipaka/azure-sdk-for-net,gubookgu/azure-sdk-for-net,DeepakRajendranMsft/azure-sdk-for-net,oburlacu/azure-sdk-for-net,ahosnyms/az...
src/KeyVault/KeyVault.Cryptography.Tests/TestFixture.cs
src/KeyVault/KeyVault.Cryptography.Tests/TestFixture.cs
// // Copyright © Microsoft Corporation, All Rights Reserved // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // THIS CODE IS PROVIDED ...
 using System; namespace KeyVault.Cryptography.Tests { public class TestFixture : IDisposable { private bool initialized = false; public TestFixture() { } public void Initialize( string className ) { if ( initialized ) return; ...
apache-2.0
C#
deb44a7e008dad1b2f25adeafbdc9e30ac3add5b
Add a new user model
jhofker/SmugSharp
SmugSharp/Models/User.cs
SmugSharp/Models/User.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace SmugSharp.Models { public enum AccountStatus { Active, PastDue, Suspended, Closed } public enum SortBy { LastUpdated, Positio...
mit
C#
f46c0851f32d2c06b28c6310fd572ef95db11234
Create document.cs
2105/Cabron
document.cs
document.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; namespace Bvx { public class Document { public Document(string application, params Part[] parts) { this.Application = application; this.parts.AddRange(p...
mit
C#
169908880730090393395adcac9317f76aa2adf6
Add solution interface
robjwells/adventofcode-solutions,robjwells/adventofcode-solutions,robjwells/adventofcode-solutions,robjwells/adventofcode-solutions,robjwells/adventofcode-solutions,robjwells/adventofcode-solutions
2015/cs/AdventOfCode2015_CSharp/AdventOfCode2015.Core/ISolution.cs
2015/cs/AdventOfCode2015_CSharp/AdventOfCode2015.Core/ISolution.cs
namespace AdventOfCode2015.Core { public interface ISolution { int Year { get; } int Day { get; } string Run(string input); } }
mit
C#
bd384bd6256f4c860c9eb60ad32d73cf4286281c
添加ApiProxyController.cs
joelz/wxapp-exchange,joelz/wxapp-exchange
server/ApiProxyController.cs
server/ApiProxyController.cs
using System.Web.Mvc; using RestSharp; namespace Senparc.Weixin.MP.Sample.Controllers.WxOpen { /// <summary> /// 调用别的API,返回结果。就是一个跳板。 /// </summary> public partial class ApiProxyController : Controller { /// <summary> /// 从 http://api.fixer.io/latest?base=USD 返回汇率列表 /// </...
mit
C#
3e089f1c685ae90940a0210d8ecefa47944f299e
Add KmsErrorTests
carbon/Amazon
src/Amazon.Kms.Tests/KmsErrorTests.cs
src/Amazon.Kms.Tests/KmsErrorTests.cs
using System.Text.Json; using Xunit; namespace Amazon.Kms.Tests { public class KmsErrorTests { [Fact] public void Deserialize() { var text = "{\"__type\":\"AccessDeniedException\",\"Message\":\"The ciphertext refers to a customer master key that does not exist, ...
mit
C#
bfb0790af623f14d5c566cc2a815c78c176e237e
create view model for rule creation
yoliva/game-of-drones,yoliva/game-of-drones,yoliva/game-of-drones
Source/GameOfDrones.API/Models/RuleViewModel.cs
Source/GameOfDrones.API/Models/RuleViewModel.cs
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace GameOfDrones.API.Models { public class RuleViewModel { [Required] public string Name { get; set; } [Required] public string RuleDefinitio...
mit
C#
f994efaf50fbb73b5358ec15667c630d650ff04c
Add Servant Controller with retrieval and creation endpoints
bcreagh/story-generator
StoryGenerator/Controllers/ServantController.cs
StoryGenerator/Controllers/ServantController.cs
using Microsoft.AspNetCore.Mvc; using StoryGenerator.Domain; using StoryGenerator.Persistance; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace StoryGenerator.Controllers { [Route("api/servants")] public class ServantController : Controller { ...
mit
C#
fb353381976a779678c3ad5c3597bfe7604672df
Address CI concerns
EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,Nabile-Rahmani/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,ZLima12/osu-framework,Tom94/osu-framework,peppy/osu-framework,default0/osu-framework,Nabile-Rahman...
osu.Framework/Graphics/Performance/PerformanceOverlay.cs
osu.Framework/Graphics/Performance/PerformanceOverlay.cs
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.OpenGL; using osu.Framework.Graphics.Textures; using OpenTK.Graphics.ES30; using ...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.OpenGL; using osu.Framework.Graphics.Textures; using OpenTK.Graphics.ES30; using ...
mit
C#
6a44f2312ce54a0616df0e668aa13b9f36437c77
Add search icon converter
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Fluent/Converters/SearchIconConverter.cs
WalletWasabi.Fluent/Converters/SearchIconConverter.cs
using Avalonia; using Avalonia.Data.Converters; using System; using System.Globalization; using WalletWasabi.Fluent.ViewModels.NavBar; namespace WalletWasabi.Fluent.Converters { public class SearchIconConverter : IValueConverter { public static readonly SearchIconConverter Instance = new SearchIconConverter(); ...
mit
C#
26916b55722d27a17dd75c676274825d63f24f13
Add FileSystem implementation for the Android project
laurentiustamate94/netstandard-storage
Plugin.NetStandardStorage.Android/Implementations/FileSystem.cs
Plugin.NetStandardStorage.Android/Implementations/FileSystem.cs
using System; using System.IO; using Plugin.NetStandardStorage.Abstractions.Interfaces; namespace Plugin.NetStandardStorage.Implementations { public class FileSystem : IFileSystem { public IFolder LocalStorage { get { var localStorage = Environment.GetFo...
mit
C#
c506bf6b38f5f4e96bdb9d3a63310a83d40dcc74
Test on quickfix
BigBabay/AsyncConverter,BigBabay/AsyncConverter
AsyncConverter.Tests/QuickFixes/CanBeUseAsyncMethodQuickFixTests.cs
AsyncConverter.Tests/QuickFixes/CanBeUseAsyncMethodQuickFixTests.cs
using AsyncConverter.QuickFixes; namespace AsyncConverter.Tests.QuickFixes { public class CanBeUseAsyncMethodQuickFixTests : QuickFixBaseTests<CanBeUseAsyncMethodQuickFix> { protected override string RelativeTestDataPath => @"CanBeUseAsyncMethod"; } }
mit
C#
9490faed4968fa56e6a358766b4be90a76805c26
Add back the IUnitTestingSolutionCrawlerServiceAccessor
gafter/roslyn,aelij/roslyn,mgoertz-msft/roslyn,sharwell/roslyn,KirillOsenkov/roslyn,mavasani/roslyn,reaction1989/roslyn,KevinRansom/roslyn,bartdesmet/roslyn,CyrusNajmabadi/roslyn,stephentoub/roslyn,dotnet/roslyn,genlu/roslyn,reaction1989/roslyn,stephentoub/roslyn,tmat/roslyn,mgoertz-msft/roslyn,davkean/roslyn,sharwell/...
src/Features/Core/Portable/ExternalAccess/UnitTesting/API/IUnitTestingSolutionCrawlerRegistrationServiceAccessor.cs
src/Features/Core/Portable/ExternalAccess/UnitTesting/API/IUnitTestingSolutionCrawlerRegistrationServiceAccessor.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.Collections.Generic; using Microsoft.CodeAnalysis.Host; namespace Microsoft.CodeAnalysis.ExternalAcce...
mit
C#
5dd380fb88b0b336d5760a7b5b7a012fe8b52028
Add test case
ppy/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,peppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework...
osu.Framework.Tests/Visual/TestCaseRefCountTexture.cs
osu.Framework.Tests/Visual/TestCaseRefCountTexture.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Textures; using osu...
mit
C#
8e1b8da36e647a4c0c9245440bddcc5c66716600
add ServiceRegister
AspectCore/Mvvm
src/AspectCore.Extensions.Mvvm/DependencyInjection/ServiceRegister.cs
src/AspectCore.Extensions.Mvvm/DependencyInjection/ServiceRegister.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AspectCore.Extensions.Mvvm.DependencyInjection { internal sealed class ServiceRegister : IServiceRegister { private readonly ICollection<RegistryEntry> collection = new List<Re...
mit
C#
d121f195a1f2b5159d04542e12e68021eeeef71d
Create ArrayOperations.cs
shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,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 Solution { static void Main(String[] args) { string s = Console.ReadLine(); int n = Convert.ToInt32(s.Split(' ')[0]); int d = Convert.ToInt32(s...
mit
C#
b869c8ee2a8ad41704e767566a02573befc0ec6d
allow hub url to move with website
akosradler/Orniscient,spencermayne/Orniscient,Dewaldf/Orniscient,DerivcoIpswich/Orniscient,spencermayne/Orniscient,akosradler/Orniscient,Dewaldf/Orniscient,spencermayne/Orniscient,akosradler/Orniscient,DerivcoIpswich/Orniscient,DerivcoIpswich/Orniscient,Dewaldf/Orniscient
Derivco.Orniscient/Derivco.Orniscient.Viewer/Views/Dashboard/Index.cshtml
Derivco.Orniscient/Derivco.Orniscient.Viewer/Views/Dashboard/Index.cshtml
@{ ViewBag.Title = "Orleans Orniscient Dashboard"; } <div id="dashboard"></div> @section scripts{ <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.signalR-2.2.0.min.js")"></script> <script src="@Url.Content("~/signalr/hubs")"></script> <script type="text/javascript" src="@Url.Content(...
@{ ViewBag.Title = "Orleans Orniscient Dashboard"; } <div id="dashboard"></div> @section scripts{ <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.signalR-2.2.0.min.js")"></script> <script src="/signalr/hubs"></script> <script type="text/javascript" src="@Url.Content("~/Scripts/ornisc...
mit
C#
7c224fa9f5305326cbeee4f0b62b4e8c72b81e42
Add AssemblyInfo.cs
jesse1412/osu-jp
osu!jp/Properties/AssemblyInfo.cs
osu!jp/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("os...
mit
C#
77043fa30de07f235660603a00ddefa78b6b42f5
Create CursorController.cs
felladrin/unity3d-scripts,felladrin/unity-scripts
CursorController.cs
CursorController.cs
using UnityEngine; public class CursorController : MonoBehaviour { public Vector2 CursorHotspot; public Texture2D cursorTexture; static CursorController instance; public static CursorController Instance { get { return instance; } } void Awake() { if (instance == null) ...
mit
C#
b2e0d40b7e77af982ada225001f14e7ab1d7d534
add the name of the HttpForm field to the HttpFile (HttpFile.Key)
adamhathcock/Nancy,davidallyoung/Nancy,Crisfole/Nancy,thecodejunkie/Nancy,dbolkensteyn/Nancy,kekekeks/Nancy,blairconrad/Nancy,AcklenAvenue/Nancy,sroylance/Nancy,sroylance/Nancy,rudygt/Nancy,Crisfole/Nancy,adamhathcock/Nancy,jmptrader/Nancy,grumpydev/Nancy,guodf/Nancy,sloncho/Nancy,danbarua/Nancy,Worthaboutapig/Nancy,Me...
src/Nancy/HttpFile.cs
src/Nancy/HttpFile.cs
namespace Nancy { using System.IO; /// <summary> /// Represents a file that was captures in a HTTP multipart/form-data request /// </summary> public class HttpFile { public HttpFile(string contentType, string name, Stream value, string key) { this.ContentType = contentType; this.Name = nam...
namespace Nancy { using System.IO; /// <summary> /// Represents a file that was captures in a HTTP multipart/form-data request /// </summary> public class HttpFile { public HttpFile(string contentType, string name, Stream value) { this.ContentType = conte...
mit
C#
beda6961e433b7df28f69b898c975035e8ce24ee
Add a test for fruit randomness
ppy/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu
osu.Game.Rulesets.Catch.Tests/TestSceneFruitRandomness.cs
osu.Game.Rulesets.Catch.Tests/TestSceneFruitRandomness.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 NUnit.Framework; using osu.Framework.Bindables; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Catch.Objects.Drawables; using osu.Game.Tests.Visual;...
mit
C#
63470a617d58e736b83e3ebe6c36ce5f752c6af2
add root controller to show entry links
hirohito-protagonist/dotnet-core-rest
Controllers/RootController.cs
Controllers/RootController.cs
using System; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using DotNetCoreRest.Models; namespace DotNetCoreRest.Controllers { [Route("api")] public class RootController : Controller { private IUrlHelper _urlHelper; public RootController(IUrlHelper urlHelper) {...
unlicense
C#
d8d0ba01e2bdf135144ef2b25c1239f2578ad240
Create profile.csx
CSScriptEx/CSScriptEx
profile.csx
profile.csx
using System.IO; using static System.Console; using static System.IO.Directory; IEnumerable<string> ListDirectory(string path) { foreach(string file in Directory.GetDirectories(path)) { // WriteLine(file); yield return file; } foreach(string file in Directory.GetFiles(path)) { // WriteLine(file);...
mit
C#
a2d1ea9aa4b6d10cbdac1e510117461967f5db77
Add SyntaxNode.
Blealtan/Moonet
src/Moonet.CompilerService/Parser/SyntaxNode.cs
src/Moonet.CompilerService/Parser/SyntaxNode.cs
using System; using System.Collections.Generic; using System.Text; namespace Moonet.CompilerService.Parser { class SyntaxNode { public int Line { get; } public int Colomn { get; } public SyntaxNode(int line, int colomn) { Line = line; Colomn = colomn; ...
mit
C#
0702f8c762ff04e03650adfbc3482cc508f6c903
Add missing WinAPI.cs file
Glurmo/LiveSplit,ROMaster2/LiveSplit,Dalet/LiveSplit,kugelrund/LiveSplit,kugelrund/LiveSplit,kugelrund/LiveSplit,Fluzzarn/LiveSplit,Fluzzarn/LiveSplit,Dalet/LiveSplit,ROMaster2/LiveSplit,Glurmo/LiveSplit,LiveSplit/LiveSplit,Glurmo/LiveSplit,ROMaster2/LiveSplit,Dalet/LiveSplit,Fluzzarn/LiveSplit
LiveSplit/LiveSplit.Core/ComponentUtil/WinAPI.cs
LiveSplit/LiveSplit.Core/ComponentUtil/WinAPI.cs
using System; using System.Runtime.InteropServices; using System.Text; #pragma warning disable 1591 namespace LiveSplit.ComponentUtil { using SizeT = UIntPtr; public enum MemPageState : uint { MEM_COMMIT = 0x1000, MEM_RESERVE = 0x2000, MEM_FREE = 0x10000, } public enum M...
mit
C#
9f8ae27a1ebf7380b5001fdc6d2f67c342fc60d1
Add AssemblyInfo to AspNet5 client
MindscapeHQ/raygun4net,MindscapeHQ/raygun4net,MindscapeHQ/raygun4net
Mindscape.Raygun4Net.AspNet5/Properties/AssemblyInfo.cs
Mindscape.Raygun4Net.AspNet5/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("Ra...
mit
C#
03766e7aacb818a7f327db540e84724e13e1e6dd
Add ModeMessage for MODE command
Fredi/NetIRC
src/NetIRC/Messages/ModeMessage.cs
src/NetIRC/Messages/ModeMessage.cs
using System.Collections.Generic; using System.Linq; namespace NetIRC.Messages { public class ModeMessage : IRCMessage, IServerMessage, IClientMessage { public IRCPrefix Prefix { get; } public string Target { get; } public string Modes { get; } public string[] Parameters { get;...
mit
C#
a2540679763b212ef91f843f677161bb95e592f0
Create Details.cshtml
CarmelSoftware/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4,kelong/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4
Views/Comments/Details.cshtml
Views/Comments/Details.cshtml
@model RepositoryWithCaching.Models.Comment @{ ViewBag.Title = "Details"; } <h2>Details</h2> <fieldset> <legend>Comment</legend> <div class="display-label"> @Html.DisplayNameFor(model => model.Title) </div> <div class="display-field"> @Html.DisplayFor(model => model.Title) <...
mit
C#
0d7989b1577ba83dcfc579621b6480f5fd8781f9
Create cs.cs
FirstToDisclose/OnlineHackathon,FirstToDisclose/OnlineHackathon,FirstToDisclose/OnlineHackathon
cs.cs
cs.cs
body { color: #000000; font-family: Verdana,arial,Helvetica,sans-serif; font-size: 90%; } .outerwrapper { /*display: none;*/ width: 630px; position: relative; } .outerwrapper .visually-hidden { width:1px; height:1px; position: absolute !important; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip:...
mit
C#
b5cc1d9c160ffa63ff86cd6292975b3cdaec14b7
add IOriginalServiceProvider interface
AspectCore/Lite,AspectCore/AspectCore-Framework,AspectCore/Abstractions,AspectCore/AspectCore-Framework
src/AspectCore.Lite/Abstractions/IOriginalServiceProvider.cs
src/AspectCore.Lite/Abstractions/IOriginalServiceProvider.cs
using System; namespace AspectCore.Lite.Abstractions { public interface IOriginalServiceProvider { object GetService(Type serviceType); } }
mit
C#
4d1cf3fd74cbdfedceea8eca970dd321f9aa90e7
Add tests for enumerable formatting ComplexObjectToPseudoCode
asd-and-Rizzo/ExpressionToCode,EamonNerbonne/ExpressionToCode
ExpressionToCodeTest/EnumerableFormattingTest.cs
ExpressionToCodeTest/EnumerableFormattingTest.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExpressionToCodeLib; using Xunit; namespace ExpressionToCodeTest { public class EnumerableFormattingTest { [Fact] public void ShortArraysRenderedCompletely() {...
apache-2.0
C#
2836deeed48c3a36cfd5a5097739e1e5307b4525
Define Commence limits
arnovb-github/CmcLibNet
CmcLibNet/CommenceLimits.cs
CmcLibNet/CommenceLimits.cs
namespace Vovin.CmcLibNet { /// <summary> /// Internal Commence limits /// </summary> internal static class CommenceLimits { /// <summary> /// Maximum number of items per category. /// </summary> internal static int MaxItems => 500000; // different from what Commence...
mit
C#
520210cdbd380fe193b84116afc0d50b48080b73
Add DirWalkRecursiveAsync.cs
devlights/try-csharp
TryCSharp.Samples/Async/DirWalkRecursiveAsync.cs
TryCSharp.Samples/Async/DirWalkRecursiveAsync.cs
using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using TryCSharp.Common; namespace TryCSharp.Samples.Async { public class DirWalkRecursiveAsync : IAsyncExecutable { public async Task Execute() { var depth = 1; ...
mit
C#
5d2b62321484f4307542c147ca96a9761a52d57b
add test controller
hidden-sound-team/Hidden-Sound-API
HiddenSound.API/Areas/API/Controllers/TestController.cs
HiddenSound.API/Areas/API/Controllers/TestController.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AspNet.Security.OAuth.Validation; using HiddenSound.API.Identity; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; namespace HiddenSound.API.Areas.API.Co...
apache-2.0
C#
ce373e2c2467f6255a7c598256b7b001e304ad7e
Create TimeConversion.cs
costincaraivan/hackerrank,costincaraivan/hackerrank
algorithms/warmup/TimeConversion.cs
algorithms/warmup/TimeConversion.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { string time = Console.ReadLine(); // 12AM = 00:00 // 12PM = 12:00 // 01PM = 13:00 var meridian = time.Substring(time.Length - 2, 2...
mit
C#
2e4effed9b5f123d2b11353345a31dcc54669020
Create LinkedListStuff.cs
neilopet/misc,neilopet/misc
LinkedListStuff.cs
LinkedListStuff.cs
using System; public class Program { public static void Main() { Node root = new Node(); root.data = 1; root.next = null; Node child1 = new Node(); child1.data = 2; child1.next = null; root.next = child1; Node child2 = new Node(); child2.data = 3; child2.next = null; child1.next = c...
mit
C#
1c9669b37edc1e43227d874b617d93b4b08d7ca0
Disable Sockets Performance tests on Unix
JosephTremoulet/corefx,BrennanConroy/corefx,twsouthwick/corefx,parjong/corefx,jlin177/corefx,MaggieTsang/corefx,billwert/corefx,ravimeda/corefx,elijah6/corefx,rjxby/corefx,krytarowski/corefx,parjong/corefx,nbarbettini/corefx,dhoehna/corefx,YoupHulsebos/corefx,krytarowski/corefx,shimingsg/corefx,krk/corefx,krk/corefx,do...
src/System.Net.Sockets/tests/PerformanceTests/SocketPerformanceAsyncTests.cs
src/System.Net.Sockets/tests/PerformanceTests/SocketPerformanceAsyncTests.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.Net.Sockets.Tests; using System.Net.Test.Common; using Xunit; using Xunit.Abstractions; namespace Sys...
// 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.Net.Sockets.Tests; using System.Net.Test.Common; using Xunit; using Xunit.Abstractions; namespace Sys...
mit
C#
b5bd4309508253be01715b25b98561a73e7b3484
Add Game Board
Onosume/battleships-cli-c-sharp
battleships-cli/battleships-cli/Application/GameObjects/GameBoard/GameBoard.cs
battleships-cli/battleships-cli/Application/GameObjects/GameBoard/GameBoard.cs
using System; namespace battleships_cli.Application.GameObjects.GameBoard { public class GameBoard { private const int BOARD_WIDTH = 10; private const int BOARD_HEIGHT = 10; private const char HIT_MARKER = 'H'; private const char MISS_MARKER = 'M'; private char[,] board...
mit
C#
34496e4b5b82be48cd33a3fa6565cfc57a90efaf
Solve Sphere in c#
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
solutions/beecrowd/1011/1011.cs
solutions/beecrowd/1011/1011.cs
using System; class Solution { static void Main() { double r, pi = 3.14159; string line; while ((line = Console.ReadLine()) != null) { r = Convert.ToDouble(line); Console.WriteLine("VOLUME = {0:F3}", 4.0 / 3.0 * pi * Math.Pow(r, 3)); } } }
mit
C#
663c1eb8597cd8e8ecfda5120516eb4af1c95413
Add MeshUtil to support deep and shallow clones of mesh content.
acgessler/open3mod,dayo7116/open3mod,dayo7116/open3mod,acgessler/open3mod,zhukaixy/open3mod,zhukaixy/open3mod
open3mod/MeshUtil.cs
open3mod/MeshUtil.cs
using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Linq; using System.Text; using Assimp; using Assimp.Unmanaged; using OpenTK; namespace open3mod { /// <summary> /// Utilities supporting deep and shallow copies of meshes. /// /// Generally, we avoid crea...
bsd-3-clause
C#
06716330d68e0571426cffb7baef38fe266a1c10
Add utility for asynchronous value computation
chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker
app/Utils/Tasks/AsyncValueComputer.cs
app/Utils/Tasks/AsyncValueComputer.cs
using System; using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; namespace DHT.Utils.Tasks { public sealed class AsyncValueComputer<TValue> { private readonly Action<TValue> resultProcessor; private readonly TaskScheduler resultTaskScheduler; private readonly bool proce...
mit
C#
16e5cf2324df279d0539bddeda1712a1b20b2dda
Add Storage GetBlobs test (#18053)
brjohnstmsft/azure-sdk-for-net,brjohnstmsft/azure-sdk-for-net,AsrOneSdk/azure-sdk-for-net,ayeletshpigelman/azure-sdk-for-net,ayeletshpigelman/azure-sdk-for-net,jackmagic313/azure-sdk-for-net,AsrOneSdk/azure-sdk-for-net,yugangw-msft/azure-sdk-for-net,jackmagic313/azure-sdk-for-net,jackmagic313/azure-sdk-for-net,AsrOneSd...
sdk/storage/Azure.Storage.Blobs/perf/Azure.Storage.Blobs.Perf/Scenarios/GetBlobs.cs
sdk/storage/Azure.Storage.Blobs/perf/Azure.Storage.Blobs.Perf/Scenarios/GetBlobs.cs
//Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.IO; using System.Threading; using System.Threading.Tasks; using Azure.Test.Perf; namespace Azure.Storage.Blobs.Perf.Scenarios { /// <summary> /// The performance test scenario focused on ...
mit
C#
e51aab9e5fc86d6d4d33abedc69b7128208dd44d
Create EnergyManager.cs
QetriX/quly
Assets/Scripts/EnergyManager.cs
Assets/Scripts/EnergyManager.cs
namespace com.qetrix.apps.quly { using libs; using System; using System.Collections; using System.Reflection; using UnityEngine; public class EnergyManager : MonoBehaviour { public string scriptCalled; Component comp; void Start() { if (scriptCalled != "") { Type t = Type.GetType("com.qetrix.app...
mit
C#
0ec47abfc206952645f4f80bf347d100c0de9e7b
Add extension search method for game object collection.
uoinfusion/Infusion
Infusion.LegacyApi/GameObjectCollectionExtensions.cs
Infusion.LegacyApi/GameObjectCollectionExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Infusion.LegacyApi { public static class GameObjectCollectionExtensions { public static IEnumerable<GameObject> OfType(this IEnumerable<GameObject> objects, ModelId type) => objects.Where(o => o...
mit
C#
e379466a0dd89112544c44a8d9e61e885634e4de
Create LoggerUserModel
DimitarDKirov/Forum-Paulo-Coelho,DimitarDKirov/Forum-Paulo-Coelho,DimitarDKirov/Forum-Paulo-Coelho
Forum-Paulo-Coelho/ForumSystem.Api/Models/LoggedUserModel.cs
Forum-Paulo-Coelho/ForumSystem.Api/Models/LoggedUserModel.cs
namespace ForumSystem.Api.Models { using System; using System.Collections.Generic; using System.Linq; using System.Web; public class LoggedUserModel { public string SessionKey { get; set; } public string Nickname { get; set; } } }
mit
C#
9344e9050eb1bdf14fc0d6955edf8a04fafc16a3
Fix nullable bool option converter (#50620)
dotnet/roslyn,tmat/roslyn,eriawan/roslyn,physhi/roslyn,AmadeusW/roslyn,shyamnamboodiripad/roslyn,weltkante/roslyn,AmadeusW/roslyn,AlekseyTs/roslyn,AlekseyTs/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,dotnet/roslyn,physhi/roslyn,wvdd007/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,sharwell/roslyn,tmat/roslyn,tmat/r...
src/VisualStudio/Core/Impl/Options/Converters/NullableBoolOptionConverter.cs
src/VisualStudio/Core/Impl/Options/Converters/NullableBoolOptionConverter.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace Microsoft.Vis...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; u...
mit
C#
5366c683747376a6e9e3ab9a24b11581fb9a64d0
Add new attribute for authorization.
BibliothecaTeam/Bibliotheca.Server.Mvc.Middleware
src/Bibliotheca.Server.Mvc.Middleware.Authorization/UserAuthorizeAttribute.cs
src/Bibliotheca.Server.Mvc.Middleware.Authorization/UserAuthorizeAttribute.cs
using System; using Bibliotheca.Server.Mvc.Middleware.Authorization.SecureTokenAuthentication; using Bibliotheca.Server.Mvc.Middleware.Authorization.UserTokenAuthentication; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; namespace Bibliotheca.Server.Mvc.Middleware.Author...
mit
C#
f24cc33b3d4435281b79720f0941c29a2ae72fb0
add the 3-d subchapter from ch 2
ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education
books/techno/.net/c#_6.0_in_a_nutshell_6_ed_j_albahari/ch_2-c#_language_basics/03-numeric_types/main.cs
books/techno/.net/c#_6.0_in_a_nutshell_6_ed_j_albahari/ch_2-c#_language_basics/03-numeric_types/main.cs
using System; class Test { static void Example1_NumericLiterals() { int x = 127; long y = 0x7F; double d = 1.5; double million = 1e06; } static void Example2_NumericLiteralTypeInference() { Console.WriteLine(1.0.GetType()); Console.WriteLine(1e06.Get...
mit
C#
71d1b0063bb69b3d51883cdc448f6d29a9a51a10
Add UserResourcesController
GabrieleCastellani/SCAMP,PIC123/SCAMP,shekr/SCAMP,PIC123/SCAMP,calebdre/SCAMP,zbrad/SCAMP,CodeFluent/SCAMP,brentstineman/SCAMP,PIC123/SCAMP,shekr/SCAMP,zbrad/SCAMP,calebdre/SCAMP,brentstineman/SCAMP,brentstineman/SCAMP,zbrad/SCAMP,shekr/SCAMP,CodeFluent/SCAMP,calebdre/SCAMP,CodeFluent/SCAMP,CodeFluent/SCAMP,shekr/SCAMP...
ScampApi/Controllers/UserResourcesController.cs
ScampApi/Controllers/UserResourcesController.cs
using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNet.Mvc; // For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 namespace ScampApi.Controllers.Controllers { [Route("api/user/resourcees/{resourceId}/")] public c...
mit
C#
4b5c717e3eda0f2d3e6cf48616caa6513ff12805
Add custom listbox item class
lukecahill/NutritionTracker
food_tracker/FoodBoxItem.cs
food_tracker/FoodBoxItem.cs
using System.Windows.Controls; using System.Windows.Forms; namespace food_tracker { public class FoodBoxItem : ListBoxItem { public int calories { get; set; } public int fats { get; set; } public int saturatedFat { get; set; } public int carbohydrates { get; set; } public int sugar { get; set; } public ...
mit
C#
10b8e307e601caea65fdc47cd3ffaf8ad2d71bc2
Create Person.cs
AreYouFreeBusy/AlexaSkillsKit.NET,AreYouFreeBusy/AlexaSkillsKit.NET,AreYouFreeBusy/AlexaSkillsKit.NET
AlexaSkillsKit.Lib/Speechlet/Person.cs
AlexaSkillsKit.Lib/Speechlet/Person.cs
// Copyright 2018 Stefan Negritoiu (FreeBusy) and contributors. See LICENSE file for more information. using System; using Newtonsoft.Json.Linq; namespace AlexaSkillsKit.Speechlet { public class Person { /// <summary> /// /// </summary> /// <param name="json"></param> ...
mit
C#
f01d492e05b16d285b1c230df746b16a358ef7a3
Introduce `ILocalisableStringData`
ppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework
osu.Framework/Localisation/ILocalisableStringData.cs
osu.Framework/Localisation/ILocalisableStringData.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; #nullable enable namespace osu.Framework.Localisation { /// <summary> /// An interface for <see cref="LocalisableString"/>'s data. /// </summa...
mit
C#
e8a7787203034e31b1894a08b8e12cdc7cb0ba71
add Upgrade_20220223_fetchEntities
signumsoftware/framework,signumsoftware/framework
Signum.Upgrade/Upgrades/Upgrade_20220223_fetchEntities.cs
Signum.Upgrade/Upgrades/Upgrade_20220223_fetchEntities.cs
using Signum.Utilities; namespace Signum.Upgrade.Upgrades; class Upgrade_20220223_fetchEntities : CodeUpgradeBase { public override string Description => "Replaces fetchLitesWithFilters to fetchLites"; public override void Execute(UpgradeContext uctx) { uctx.ForeachCodeFile(@"*.tsx, *.ts", file =...
mit
C#
c4583f972f8b62cd5efeb3a9a7e921d94866a925
Address PR feedback
yizhang82/corefx,mazong1123/corefx,zhenlan/corefx,jhendrixMSFT/corefx,adamralph/corefx,Jiayili1/corefx,ViktorHofer/corefx,billwert/corefx,YoupHulsebos/corefx,alphonsekurian/corefx,parjong/corefx,tijoytom/corefx,alphonsekurian/corefx,richlander/corefx,rahku/corefx,billwert/corefx,twsouthwick/corefx,rjxby/corefx,ptoonen/...
src/System.Net.Requests/tests/HttpWebResponseTest.cs
src/System.Net.Requests/tests/HttpWebResponseTest.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.Net.Http; using System.Net.Test.Common; using System.Threading.Tasks; using Xunit; namespace System.N...
// 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.Net.Http; using System.Net.Test.Common; using System.Threading.Tasks; using Xunit; namespace System.N...
mit
C#
3d93ad5bfa94a20896fd89e8597f8e600ac67b9f
Create KeyValuePairModelDescription.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs
namespace WebApplication1.Areas.HelpPage.ModelDescriptions { public class KeyValuePairModelDescription : ModelDescription { public ModelDescription KeyModelDescription { get; set; } public ModelDescription ValueModelDescription { get; set; } } }
mit
C#
42828df55d5e7337744f0b943131b8daf6c49faa
Create problem003.cs
mvdiener/project_euler,mvdiener/project_euler
CSharp/problem003.cs
CSharp/problem003.cs
//The prime factors of 13195 are 5, 7, 13 and 29. //What is the largest prime factor of the number 600851475143 ? using System; using System.Collections.Generic; using System.Linq; namespace Problem003 { class MainClass { public static void Main() { List<long> factorArray = new List<long>(...
mit
C#
f73eca8186e51c95508882e111e62b2b0e42e7bb
Add CloseOnEscPressed.cs
felladrin/unity3d-scripts,felladrin/unity-scripts
CloseOnEscPressed.cs
CloseOnEscPressed.cs
using UnityEngine; namespace HeadOfState { public class CloseOnEscPressed : MonoBehaviour { void Update () { if (gameObject.activeInHierarchy && Input.GetKey (KeyCode.Escape)) gameObject.SetActive (false); } } }
mit
C#
3e687547ad41dc096e4b09fc7b5127dbca12b791
Create 13.cs
rikkus/adventofcode2016,rikkus/adventofcode2016
13.cs
13.cs
using System; using System.Linq; namespace CrazyMaze { internal class Program { private const int Input = 1364; private static double Heuristic(INode a, INode b) { return Math.Abs(a.X - b.X) + Math.Abs(a.Y - b.Y); } public static void Main() ...
mit
C#
55c93bc85accdfeac9f519726337c5ccdcdca700
Create FarisMalaeb.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/FarisMalaeb.cs
src/Firehose.Web/Authors/FarisMalaeb.cs
public class BruceWayne : IAmACommunityMember { public string FirstName => "Faris"; public string LastName => "Malaeb"; public string ShortBioOrTagLine => "System Automation and integration using PowerShell"; public string StateOrRegion => "Abu Dhabi"; public string EmailAddr...
mit
C#
1bb8c53f7b3f91d83dafdf52b3c6816bb92b5ded
Create kod.cs
MPuto/prywatnemp
kod.cs
kod.cs
int a=2;
mit
C#
a197befb5f997a6235929f2f5c69643db94735f1
Add shared base class for line and line span pragmas.
github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql
csharp/extractor/Semmle.Extraction.CSharp/Entities/PreprocessorDirectives/LineOrSpanDirective.cs
csharp/extractor/Semmle.Extraction.CSharp/Entities/PreprocessorDirectives/LineOrSpanDirective.cs
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using System.IO; namespace Semmle.Extraction.CSharp.Entities { internal enum LineDirectiveKind { Default = 0, Hidden = 1, Numeric = 2, Span = 3 } internal abst...
mit
C#
a5ceb800c3291191546631ba2c3013d16f7c7472
add extension
damianh/fluent-command-line-parser,ghstahl/fluent-command-line-parser,EricSB/fluent-command-line-parser,spzSource/fluent-command-line-parser
FluentCommandLineParser/Internals/Extensions/UsefulExtension.cs
FluentCommandLineParser/Internals/Extensions/UsefulExtension.cs
#region License // UsefulExtension.cs // Copyright (c) 2013, Simon Williams // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provide // d that the following conditions are met: // // Redistributions of source code must retain the above copyr...
#region License // UsefulExtension.cs // Copyright (c) 2013, Simon Williams // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provide // d that the following conditions are met: // // Redistributions of source code must retain the above copyr...
bsd-2-clause
C#
f53453e88c7ffc87c9ff16cb11e3c41b06309c21
add variables/package
lvermeulen/BuildMaster.Net
src/BuildMaster.Net/Variables/Package/BuildMasterClient.cs
src/BuildMaster.Net/Variables/Package/BuildMasterClient.cs
using System.Collections.Generic; using System.Threading.Tasks; using BuildMaster.Net.Common.Models; using Flurl.Http; // ReSharper disable CheckNamespace namespace BuildMaster.Net { public partial class BuildMasterClient { public async Task<IEnumerable<Variable>> GetAllPackageConfigurationVariables(...
mit
C#
244c8fc5743821cfbcf5405ef7d40237c8e2034a
Add enum for stong typed session keys
diolive/cache,diolive/cache
DioLive.Cache/src/DioLive.Cache.WebUI/Models/SessionKeys.cs
DioLive.Cache/src/DioLive.Cache.WebUI/Models/SessionKeys.cs
namespace DioLive.Cache.WebUI.Models { public enum SessionKeys { CurrentBudget } }
mit
C#
c29e2e841196222c95fe0fdf44a73cfb49d53426
Create Problem5.cs
neilopet/projecteuler_cs
Problem5.cs
Problem5.cs
/* * Problem #5 * 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. * What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? */ using System; using System.Collections.Generic; public class Problem5 { public void Ma...
mit
C#
366071fb2ca585d97b7bcf5cc48a1b2f6ef21fda
Correct Crop method
tomgrv/pa.toolbox,perspicapps/toolbox,perspicapps/toolbox
PA.TileList/Extensions/TileExtensions.cs
PA.TileList/Extensions/TileExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PA.TileList.Extensions { public static class TileExtensions { public static Tile<T> ToTile<T>(this IEnumerable<T> c, int referenceIndex = 0) where T : ICoordinate { return new ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PA.TileList.Extensions { public static class TileExtensions { public static ITile<T> ToTile<T>(this IEnumerable<T> c, int referenceIndex = 0) where T : ICoordinate { return new...
mit
C#
854e77438346b5b079a640e75dfa56a6cfbf8c33
Define the log levels supported by the abstract logging API.
nohros/must,nohros/must,nohros/must
src/base/common/logging/LogLevel.cs
src/base/common/logging/LogLevel.cs
using System; using System.Collections.Generic; using System.Text; namespace Nohros.Logging { /// <summary> /// The supported logging levels. Not all loggin libraries support all the levels and when is /// the case the related <see cref="ILogger"/> object will always return false for the /// I...
mit
C#
b4d62f6fad618274eaf4cdaf564572644f476685
Add ManualInputManagerTestCase
peppy/osu-framework,Tom94/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,ZLi...
osu.Framework/Testing/ManualInputManagerTestCase.cs
osu.Framework/Testing/ManualInputManagerTestCase.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using NUnit.Framework; using osu.Framework.Extensions.IEnumerableExtensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu....
mit
C#
87338ee021f189e71527cf559bd9770eadf3cb7a
Implement Status
marihachi/MSharp
src/MSharp/Entity/Status.cs
src/MSharp/Entity/Status.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MSharp.Core.Utility; namespace MSharp.Entity { /// <summary> /// ステータスオブジェクトを表します。 /// </summary> public class Status { /// <summary> /// 新しいインスタンスを生成します。 /// </summary> /// <param n...
mit
C#
28037604eb2f08b9d66a517b8155d4cb9205ffa6
Add dedicated class for listing application credits
nozzlegear/ShopifySharp,clement911/ShopifySharp
ShopifySharp/Filters/ApplicationCreditListFilter.cs
ShopifySharp/Filters/ApplicationCreditListFilter.cs
using System.Collections.Generic; namespace ShopifySharp.Filters { public class ApplicationCreditListFilter : ListFilter { public string Fields { get; set; } public override IEnumerable<KeyValuePair<string, object>> ToQueryParameters() { return base.ToQueryParameters(); ...
mit
C#
9bcf5ee2398afd70a98847445dd03dae156f51d9
Create Create.cshtml
kelong/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4,CarmelSoftware/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4
Views/Comments/Create.cshtml
Views/Comments/Create.cshtml
@model RepositoryWithCaching.Models.Comment @{ ViewBag.Title = "Create"; } <h2>Create</h2> @using (Html.BeginForm()) { @Html.AntiForgeryToken() @Html.ValidationSummary(true) <fieldset> <legend>Comment</legend> <div class="control-label"> @Html.LabelFor(model => model.Tit...
mit
C#
9ac5c9fe754296a3a7041fdc6ba0fb35421b140d
Add helper class for CIFilter
jorik041/maccore,cwensley/maccore,mono/maccore
src/CoreImage/CIFilter.cs
src/CoreImage/CIFilter.cs
// // CIFilter.cs: Extensions // // Copyright 2011 Xamarin Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, c...
apache-2.0
C#
b3a2725088312bb37be043b2830080329b2cf990
Add ssml type #146347
takenet/lime-csharp
src/Lime.Messaging/Contents/SsmlText.cs
src/Lime.Messaging/Contents/SsmlText.cs
using Lime.Protocol; using System.Runtime.Serialization; namespace Lime.Messaging.Contents { /// <summary> /// Represents a text and its version to be spoken by a speech software. /// </summary> /// <seealso cref="Lime.Protocol.Document" /> [DataContract(Namespace = "http://limeprotocol.org/2014")...
apache-2.0
C#
f8a28361767cb5914b42f2776be77c4c4e43e7ac
Create Ext.cs
UnstableMutex/NLog.MongoDB
Ext.cs
Ext.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NLog.MongoDB { public static class Ext { public static void WriteAppStarted(this Logger logger, Version appVersion = null) { if (appVersion == null) { logger.I...
mit
C#
77f05a1b6bf8de6d97f588307b137071c09bc9c9
reset window minimized state properly.
morkt/GARbro,dsp2003/GARbro,morkt/GARbro,dsp2003/GARbro,dsp2003/GARbro
Settings.cs
Settings.cs
namespace GARbro.GUI.Properties { // This class allows you to handle specific events on the settings class: // The SettingChanging event is raised before a setting's value is changed. // The PropertyChanged event is raised after a setting's value is changed. // The SettingsLoaded eve...
namespace GARbro.GUI.Properties { // This class allows you to handle specific events on the settings class: // The SettingChanging event is raised before a setting's value is changed. // The PropertyChanged event is raised after a setting's value is changed. // The SettingsLoaded eve...
mit
C#
7e54db24116edd568f9ab97658ace1f4b0c8ea5d
Transform Provider Helper Class
moorehojer/YAFNET,YAFNET/YAFNET,moorehojer/YAFNET,moorehojer/YAFNET,YAFNET/YAFNET,YAFNET/YAFNET,Pathfinder-Fr/YAFNET,Pathfinder-Fr/YAFNET,mexxanit/YAFNET,YAFNET/YAFNET,mexxanit/YAFNET,mexxanit/YAFNET,Pathfinder-Fr/YAFNET
yafsrc/YAF.Providers/Utils/Transform.cs
yafsrc/YAF.Providers/Utils/Transform.cs
using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; namespace YAF.Providers.Utils { public static class Transform { public static DateTime ToDate(object obj) { if ((obj != DBNull.Value) && (ob...
apache-2.0
C#
77243bfde0a707ce874a5b7492ed56fc07eb6582
add color stream extension. this module is under construction.
fumitoito/RsRx
RsRx/Extensions/ColorStreamExtension.cs
RsRx/Extensions/ColorStreamExtension.cs
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Reactive.Linq; using System.Text; using System.Threading.Tasks; namespace RsRx.Extensions { public static class ColorStreamExtension { private static float colorStreamFPS = 30; public static ...
mit
C#
50acc592e3fa57d04ce79a8d5f5f082b377b8cd5
fix some db hash check
Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns
TCC.Core/Data/Databases/DatabaseBase.cs
TCC.Core/Data/Databases/DatabaseBase.cs
using System.IO; namespace TCC.Data.Databases { public abstract class DatabaseBase { protected string Language; protected abstract string FolderName { get; } protected abstract string Extension { get; } public string RelativePath => $"{FolderName}/{FolderName}-{Language}.{Exte...
mit
C#
862d170077123db2522ffb9c427a2343dbd0bbb5
add a build task for setting environment vars
vulcansteel/autorest,xingwu1/autorest,yaqiyang/autorest,matt-gibbs/AutoRest,hovsepm/AutoRest,devigned/autorest,csmengwan/autorest,amarzavery/AutoRest,devigned/autorest,fearthecowboy/autorest,yugangw-msft/autorest,jianghaolu/AutoRest,yugangw-msft/autorest,lmazuel/autorest,balajikris/autorest,amarzavery/AutoRest,hovsepm/...
Tools/AutoRest.Build.Tasks/SetEnvVar.cs
Tools/AutoRest.Build.Tasks/SetEnvVar.cs
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using Microsoft.Build.Framework; using Microsoft.Build....
mit
C#
82146f65266a10d90cc0d0a85763e13987f95bb3
Add basic structure for HSV colour picker part
smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework
osu.Framework/Graphics/UserInterface/HSVColourPicker.cs
osu.Framework/Graphics/UserInterface/HSVColourPicker.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.Bindables; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; namespace osu.Framework.Graphics.UserInterface { /// <su...
mit
C#
26cf3e79a704c7b82f4058fc75e0459b6f56bb01
Add NumberExtensionsTest
anjdreas/UnitsNet,BrandonLWhite/UnitsNet,BrandonLWhite/UnitsNet,anjdreas/UnitsNet
UnitsNet.Tests/NumberExtensionsTest.cs
UnitsNet.Tests/NumberExtensionsTest.cs
// Copyright © 2007 Andreas Gullberg Larsen (anjdreas@gmail.com). // https://github.com/anjdreas/UnitsNet // // 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, includin...
mit
C#
fd1ce525910e4ca81e76398e7b1f81d5cbade180
Create ITakeable.cs
TeamLockheed/LockheedTheGame
Lockheed_Inventory/Inventory/Interfaces/ITakeable.cs
Lockheed_Inventory/Inventory/Interfaces/ITakeable.cs
using System; namespace Lockheed_Inventory.Inventory.Interfaces { public interface ITakeable { void TakeItem(Item item); } }
mit
C#
dc042f954c1ef957c880d7c34f1e6865668f87e0
Add car move event arguments
wrightg42/tron,It423/tron
Tron/Tron/EventArgs/CarMovedEventArgs.cs
Tron/Tron/EventArgs/CarMovedEventArgs.cs
// CarMovedEventArgs.cs // <copyright file="CarMovedEventArgs.cs"> This code is protected under the MIT License. </copyright> namespace Tron.EventArgs { /// <summary> /// The event arguments for when the timer changes. /// </summary> public class CarMovedEventArgs : System.EventArgs { /// <...
mit
C#
839d50441bb2cf8169f829fdd680e7f6f29ac07e
Add test for #1874 (#2273)
graphql-dotnet/graphql-dotnet,joemcbride/graphql-dotnet,graphql-dotnet/graphql-dotnet,graphql-dotnet/graphql-dotnet,joemcbride/graphql-dotnet
src/GraphQL.Tests/Bugs/Issue1874.cs
src/GraphQL.Tests/Bugs/Issue1874.cs
using GraphQL.SystemTextJson; using GraphQL.Types; using Xunit; namespace GraphQL.Tests.Bugs { public class Issue1874 : QueryTestBase<Issue1874Schema> { [Fact] public void byte_array_should_work() { var query = @" query BytesRequest($bytesHolder: Issue1874Inp...
mit
C#
aa47524fe6abeea3ce7897604826d6b09f634e3b
Add tests for F.Reverse
farity/farity
Farity.Tests/ReverseTests.cs
Farity.Tests/ReverseTests.cs
using Xunit; using System.Linq; namespace Farity.Tests { public class ReverseTests { [Fact] public void ReverseInvertsASequence() { var data = new[] { 1, 2, 3, 4, 5 }; var expected = new[] { 5, 4, 3, 2, 1 }; var actual = F.Reverse(data); ...
mit
C#
e57993bf98b3ea1a684992958c5b178b56a0a5f6
Insert new files, Alura, C# e seus Fundamentos, Aula 2
fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs
alura/c-sharp/CaixaEletronico.cs
alura/c-sharp/CaixaEletronico.cs
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CaixaEletronico { public partial class Form1 : Form { public Form1() { InitializeComponent(); } pr...
mit
C#
63948831a9d37cc8888efb8ac254790cb00dd05f
Add Html extension method for Kendo grid.
p0150n/SupportMe,p0150n/SupportMe
Source/Web/SupportMe.Web.Infrastructure/HtmlHelpers/KendoHelpers.cs
Source/Web/SupportMe.Web.Infrastructure/HtmlHelpers/KendoHelpers.cs
namespace SupportMe.Web.Infrastructure.HtmlHelpers { using System; using System.Linq.Expressions; using System.Web.Mvc; using Kendo.Mvc.UI; using Kendo.Mvc.UI.Fluent; public static class KendoHelpers { public static GridBuilder<T> FullFeaturedGrid<T>( this HtmlHelper h...
mit
C#
b97f996826d902717d115c1445d8e6c374d41cf0
Add forgotten file PatternVariableFinder.cs
jkotas/roslyn,jamesqo/roslyn,paulvanbrenk/roslyn,drognanar/roslyn,tmeschter/roslyn,shyamnamboodiripad/roslyn,Giftednewt/roslyn,sharwell/roslyn,khyperia/roslyn,gafter/roslyn,leppie/roslyn,DustinCampbell/roslyn,kelltrick/roslyn,abock/roslyn,bartdesmet/roslyn,KirillOsenkov/roslyn,tannergooding/roslyn,vslsnap/roslyn,genlu/...
src/Compilers/CSharp/Portable/Binder/PatternVariableFinder.cs
src/Compilers/CSharp/Portable/Binder/PatternVariableFinder.cs
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Immutable; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Roslyn.Utili...
mit
C#