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
31d9fb7793922827758b0520fc6f662708e0bd61
add ProductImageService
vinhch/BizwebSharp
src/BizwebSharp/Services/ProductImage/ProductImageService.cs
src/BizwebSharp/Services/ProductImage/ProductImageService.cs
using System.Collections.Generic; using System.Threading.Tasks; using BizwebSharp.Entities; using BizwebSharp.Infrastructure; using BizwebSharp.Options; namespace BizwebSharp.Services { public class ProductImageService : BaseService { public ProductImageService(BizwebAuthorizationState authState) : ba...
mit
C#
a4acf26f171e54ed3d37b333d186114bc802cc4c
Create ImageRender.cs
fatmagazaile/Projet
ImageRender.cs
ImageRender.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.IO; using MvcMeublatexApp.Models; namespace MvcMeublatexApp { public class ImageRender { image img = new image(); public void UploadImageToDB(HttpPostedFileBase file,int id) { ...
apache-2.0
C#
8e756cd2603cfef7f91fbaaad5f2014a6bcd4c4e
update the version number to 3.0.0
RachelTucker/ds3_net_sdk,shabtaisharon/ds3_net_sdk,rpmoore/ds3_net_sdk,SpectraLogic/ds3_net_sdk,RachelTucker/ds3_net_sdk,shabtaisharon/ds3_net_sdk,shabtaisharon/ds3_net_sdk,rpmoore/ds3_net_sdk,SpectraLogic/ds3_net_sdk,rpmoore/ds3_net_sdk,RachelTucker/ds3_net_sdk,SpectraLogic/ds3_net_sdk
VersionInfo.cs
VersionInfo.cs
/* * ****************************************************************************** * Copyright 2014 Spectra Logic 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. A copy of the License is loc...
/* * ****************************************************************************** * Copyright 2014 Spectra Logic 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. A copy of the License is loc...
apache-2.0
C#
206334cae01d8bc0f1aa13205b385c1369b4e255
Add tests for IsGitHubApiException
github/VisualStudio,github/VisualStudio,github/VisualStudio
test/GitHub.Exports.UnitTests/ApiExceptionExtensionsTests.cs
test/GitHub.Exports.UnitTests/ApiExceptionExtensionsTests.cs
using System.Collections.Generic; using System.Collections.Immutable; using Octokit; using NSubstitute; using NUnit.Framework; using GitHub.Extensions; public class ApiExceptionExtensionsTests { public class TheIsGitHubApiExceptionMethod { [TestCase("Not-GitHub-Request-Id", false)] [TestCase("...
mit
C#
3171fea0e65694f7a82cadb110ba32fbb3be710a
Create AssemblyInfo.cs
SMihand/Cache-GlobalsProxy-Framework
CacheExtremeProxy/Properties/AssemblyInfo.cs
CacheExtremeProxy/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Resources; // Управление общими сведениями о сборке осуществляется с помощью // набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения, // связанные со сборкой. [assembly: AssemblyTi...
mit
C#
fa6d55956dcf959eaa976c77eca8ca5c2b424743
Create task_1.3.5.2.cs
AndrewTurlanov/ANdrew
task_1.3.5.2.cs
task_1.3.5.2.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Lesson1 { class Program { static void Main(string[] args) { string message = "Результат: " + (8 * 2 + 5); Console.WriteLine(message); } } }
apache-2.0
C#
cd1e89924a849ffba04438e219bd4f6d8f44d6c1
Create Delete.cshtml
CarmelSoftware/Generic-Data-Repository-With-Caching
Views/Blogs/Delete.cshtml
Views/Blogs/Delete.cshtml
@model GenericRepositoryWithCatching.Models.Blog @{ ViewBag.Title = "Delete"; } <div class="jumbotron"> <h2>Generic Repository With Memory Caching - @ViewBag.Title</h2> <h4>By Carmel</h4> </div> <div class="jumbotron"> <h3>Are you sure you want to delete this?</h3> <fieldset> <legend>Blog</...
mit
C#
b930eed23fa81b4219fe19c2c37e40ebc6a6d5a6
Create ServiceCollectionExtensions.cs
tiksn/TIKSN-Framework
TIKSN.Core/DependencyInjection/ServiceCollectionExtensions.cs
TIKSN.Core/DependencyInjection/ServiceCollectionExtensions.cs
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Localization; using ReactiveUI; using System; using TIKSN.FileSystem; using TIKSN.Globalization; using TIKSN.Serialization; using TIKSN.Serialization.Bond; using TIKSN.Serialization.Mes...
mit
C#
74a1abbe9a3ebadc7ba4f7b424f2c81bfb35589f
add sharedmemorybuffer
JohnMasen/ChakraCore.NET,JohnMasen/ChakraCore.NET,JohnMasen/ChakraCore.NET
source/ChakraCore.NET/SharedMemory/SharedMemoryBuffer.cs
source/ChakraCore.NET/SharedMemory/SharedMemoryBuffer.cs
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; namespace ChakraCore.NET.SharedMemory { public class SharedMemoryBuffer : SafeBuffer { public IntPtr DataAddress => handle; public SharedMemoryBuffer(int size):base(true) { ...
mit
C#
2b35197612742801ce127c37b642fc21d7e3d657
Create OpenDoorSteps.cs
AdrianSchneble/nap
usecases/OpenDoorSteps.cs
usecases/OpenDoorSteps.cs
using System; using TechTalk.SpecFlow; namespace NAP { [Binding] public class OpenDoorSteps { [Given(@"I am standing on a GroundTile adjacent to the door")] public void GivenIAmStandingOnAGroundTileAdjacentToTheDoor() { ScenarioContext.Current.Pending(); } ...
mit
C#
0e6d96ff2487d4fa4e51934f626bde161e407609
Add BassRelativeFrequencyHandler helper class with zero frequency special handling
peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework
osu.Framework/Audio/BassRelativeFrequencyHandler.cs
osu.Framework/Audio/BassRelativeFrequencyHandler.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 ManagedBass; namespace osu.Framework.Audio { /// <summary> /// A helper class for translating relative frequency values to absolute hertz val...
mit
C#
ef63ff32f43e7e5f6d49cefe83b137e0ffddb3cc
move http verbs enum into a single file
coolya/logv.http
Server/HttpVerb.cs
Server/HttpVerb.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SimpleHttpServer { public enum HttpVerb { Get, Post, Put, Delete, Head, Patch } }
apache-2.0
C#
c5c74c07fe7be1ac56971abce484f30cdac1516b
Implement EndPointCommand Annotation
MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings
DynThings.Data.Models/ModelsExtensions/EndPointCommand.cs
DynThings.Data.Models/ModelsExtensions/EndPointCommand.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DynThings.Data.Models { public partial class EndPointCommand { private DynThingsEntities db = new DynThingsEntities(); } }
mit
C#
884def16a0deb30bea4fb849140ea3a8dccecf05
add missing file
IvanZheng/IFramework,IvanZheng/IFramework,IvanZheng/IFramework
Src/iFramework.Plugins/ServiceBusTest/Properties/AssemblyInfo.cs
Src/iFramework.Plugins/ServiceBusTest/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("Se...
mit
C#
4d0736fc2da6328430b2e403a9af1dc78f361bec
Add unit test for compute max stack override.
Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver
test/AsmResolver.DotNet.Tests/Builder/CilMethodBodySerializerTest.cs
test/AsmResolver.DotNet.Tests/Builder/CilMethodBodySerializerTest.cs
using AsmResolver.DotNet.Builder; using AsmResolver.DotNet.Code.Cil; using AsmResolver.DotNet.Signatures; using AsmResolver.PE.DotNet.Cil; using AsmResolver.PE.DotNet.Metadata.Tables.Rows; using Xunit; namespace AsmResolver.DotNet.Tests.Builder { public class CilMethodBodySerializerTest { [Theory] ...
mit
C#
75e59b98756dce7ad363941da9f7f832d05db91f
Prepare an initial model.
lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager
src/Zuehlke.Eacm.Web.Backend/DomainModel/Project.cs
src/Zuehlke.Eacm.Web.Backend/DomainModel/Project.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Zuehlke.Eacm.Web.Backend.DomainModel { public class Project { public ModelDefinition Definition { get; } = new ModelDefinition(); } public class ModelDefinition { private r...
mit
C#
29e8f7030ee6b4b3d28739425f0e4e1d5ac966fe
Add test cases for CsvProfile in SaveSuiteAction.
Seddryck/NBi,Seddryck/NBi
NBi.Testing.GenbiL/Action/Suite/SaveSuiteActionTest.cs
NBi.Testing.GenbiL/Action/Suite/SaveSuiteActionTest.cs
using NBi.GenbiL.Action.Suite; using NBi.GenbiL.Stateful; using NBi.Xml; using NUnit.Framework; using System; using System.IO; namespace NBi.Testing.GenbiL.Action.Suite { [TestFixture] public class SaveSuiteActionTest { protected TestSuiteXml DeserializeFile(string filename) { ...
apache-2.0
C#
bd40784eaca0f17c68f86022c3449abe2f600a1d
create static BitHelper class for providing general operations with bit sequences
mstya/DES-Algorithm
DES/BitHelper.cs
DES/BitHelper.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace DES { static class BitHelper { public static void PrintBitArray(BitArray array) { foreach (bool item in array) { Console.Write(item ? "1" : "0"); ...
mit
C#
b28ad085574c4ea046fb6c9ab457823e8ad29932
Create Customer.cs
thuru/CustomIHttpActionResult
Customer.cs
Customer.cs
public class Customer { public int CustomerId { get; set; } public string Name { get; set; } }
mit
C#
28ab1149ea8cecd5f292e80dd57ba90b315fd41b
Add a convenience method to store CommonData.
ZhangLeiCharles/mobile,masterrr/mobile,eatskolnikov/mobile,eatskolnikov/mobile,masterrr/mobile,peeedge/mobile,eatskolnikov/mobile,peeedge/mobile,ZhangLeiCharles/mobile
Phoebe/Data/DataExtensions.cs
Phoebe/Data/DataExtensions.cs
using System; using System.Collections.Generic; using System.Threading.Tasks; using Toggl.Phoebe.Data.DataObjects; namespace Toggl.Phoebe.Data { public static class DataExtensions { /// <summary> /// Checks if the two objects share the same type and primary key. /// </summary> ...
using System; using System.Collections.Generic; using Toggl.Phoebe.Data.DataObjects; namespace Toggl.Phoebe.Data { public static class DataExtensions { /// <summary> /// Checks if the two objects share the same type and primary key. /// </summary> /// <param name="data">Data ob...
bsd-3-clause
C#
2f3794165708bfcfc706e60287fc5035e24acf32
Add EditorCommandAttribute class
PowerShell/PowerShellEditorServices
src/PowerShellEditorServices/Extensions/EditorCommandAttribute.cs
src/PowerShellEditorServices/Extensions/EditorCommandAttribute.cs
using System; namespace Microsoft.PowerShell.EditorServices.Extensions { /// <summary> /// Provides an attribute that can be used to target PowerShell /// commands for import as editor commands. /// </summary> [AttributeUsage(AttributeTargets.Class)] public class EditorCommandAttribute : Attrib...
mit
C#
e62c63f17b9edadce360bf104d50d5823854c0e8
Add Excercise2.cs
tlaothong/lab-swp-ws-kiatnakin,tlaothong/lab-swp-ws-kiatnakin,tlaothong/lab-swp-ws-kiatnakin
Excercise2.cs
Excercise2.cs
public static string NumberToWords(int number) { if (number == 0) return "zero"; if (number < 0) return "minus " + NumberToWords(Math.Abs(number)); string words = ""; if ((number / 1000000) > 0) { words += NumberToWords(number / 1000000) + " million "; number %= 10...
mit
C#
3349cddf8a46da0e3ad30a0c0dcdc310ec5fc66e
Add publication interface
Vtek/Bartender
src/Bartender/IPublish.cs
src/Bartender/IPublish.cs
namespace Bartender { /// <summary> /// Define a publication /// </summary> public interface IPublish { } }
mit
C#
e6f183e39edcfe699de25370a91ca2c42bfbe508
Add RenderTreeBuilder extension methods for "prevent default" and "stop bubbling"
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
src/Components/Web/src/Web/RenderTreeBuilderExtensions.cs
src/Components/Web/src/Web/RenderTreeBuilderExtensions.cs
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Components.Rendering; using Microsoft.AspNetCore.Components.RenderTree; namespace Microsoft.AspNetCore.Components.Web { ...
apache-2.0
C#
e207f3bd2c6c8a6cc017ba969e8364641b0f4ee4
Add an AnnounceTask - Used to advertise to the DHT that you are downloading a specific torrent.
dipeshc/BTDeploy
src/MonoTorrent.Dht/MonoTorrent.Dht/Tasks/AnnounceTask.cs
src/MonoTorrent.Dht/MonoTorrent.Dht/Tasks/AnnounceTask.cs
using System; using System.Collections.Generic; using System.Text; using MonoTorrent.Dht.Messages; namespace MonoTorrent.Dht.Tasks { class AnnounceTask : Task { private int activeAnnounces; private NodeId infoHash; private DhtEngine engine; private int port; public Anno...
mit
C#
47cf4bcf2595c672c0f70a85da4c55a36beea182
Add `CheckBackground` tests
ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu
osu.Game.Tests/Editing/Checks/CheckBackgroundTest.cs
osu.Game.Tests/Editing/Checks/CheckBackgroundTest.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 System.Linq; using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets.Edit.Checks; using osu.Game.Rulesets.Objects;...
mit
C#
ff5b1066b0da1c640bb93c8f8fb67992988e601d
add missing file
SabotageAndi/ELMAR
net.the-engineers.elmar/elmar.droid/MediaButtonService.cs
net.the-engineers.elmar/elmar.droid/MediaButtonService.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.Media.Session; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using MediaController = Android.Media.Session.MediaController; ...
agpl-3.0
C#
1c8212d510e6bb218570a2ad2fa1afb5a3abc383
Add a TestCase for looong combos
ppy/osu,2yangk23/osu,naoey/osu,smoogipooo/osu,peppy/osu,naoey/osu,naoey/osu,UselessToucan/osu,ZLima12/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ZLima12/osu,peppy/osu,NeoAdonis/osu,2yangk23/osu,smoogipoo/osu,johnneijzen/osu,DrabWeb/osu,UselessToucan/osu,DrabWeb/osu,EVAST9919/osu,NeoAdonis/osu,ppy/osu,DrabWeb/osu...
osu.Game.Rulesets.Osu.Tests/TestCaseHitCircleLongCombo.cs
osu.Game.Rulesets.Osu.Tests/TestCaseHitCircleLongCombo.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.Game.Beatmaps; using osu.Game.Rulesets.Osu.Objects; using osuTK; namespace osu.Game.Rulesets.Osu.Tests { [TestFixture] public cl...
mit
C#
f4db2c1ff421588f3896f8e26bcb43da082179a7
Add test
peppy/osu,peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu
osu.Game.Rulesets.Taiko.Tests/TestSceneControlPointConversion.cs
osu.Game.Rulesets.Taiko.Tests/TestSceneControlPointConversion.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.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Rulesets.Objects; using osu.Game.Tests.Visual; namespace osu.Game.R...
mit
C#
a60387ef3aaa73993def0bd8ffb047fb664de2f0
Add initial code file from xamarin-bluetooth-status-widget project
wislon/xamarin-bluetooth-toggle-widget
src/BluetoothWidget/BTWidget.cs
src/BluetoothWidget/BTWidget.cs
/* The MIT License (MIT) Copyright (c) 2014 John Wilson 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...
mit
C#
4c0456a8d5c19020d2b50d387b573384efbec08c
add mapper for scope entity
levid-gc/IdentityServer3.Dapper
source/IdentityServer3.Dapper/Mappers/ScopeMapper.cs
source/IdentityServer3.Dapper/Mappers/ScopeMapper.cs
using DapperExtensions.Mapper; using IdentityServer3.Dapper.Entities; namespace IdentityServer3.Dapper.Mappers { public class ScopeMapper : ClassMapper<Scope> { public ScopeMapper() { // use a custom schema Schema("dbo"); // use different table name ...
apache-2.0
C#
3940f0b99ccfc2e2da96e746add1beb768d40749
Test CI Template Message
wojtpl2/ExtendedXmlSerializer,wojtpl2/ExtendedXmlSerializer
test/ExtendedXmlSerializer.Tests.ReportedIssues/Issue479Tests.cs
test/ExtendedXmlSerializer.Tests.ReportedIssues/Issue479Tests.cs
using FluentAssertions; using Xunit; namespace ExtendedXmlSerializer.Tests.ReportedIssues { public sealed class Issue479Tests { [Fact] public void Verify() { true.Should().BeTrue(); } } }
mit
C#
08842fccc13e432b35d80a4c565b4a855e63a863
Fix comment on attribute ctor. bugid: 862
rockfordlhotka/csla,BrettJaner/csla,rockfordlhotka/csla,ronnymgm/csla-light,JasonBock/csla,ronnymgm/csla-light,ronnymgm/csla-light,MarimerLLC/csla,jonnybee/csla,MarimerLLC/csla,jonnybee/csla,JasonBock/csla,rockfordlhotka/csla,jonnybee/csla,JasonBock/csla,BrettJaner/csla,MarimerLLC/csla,BrettJaner/csla
Source/Csla.Wp/DataAnnotations/StringLengthAttribute.cs
Source/Csla.Wp/DataAnnotations/StringLengthAttribute.cs
using System; namespace System.ComponentModel.DataAnnotations { /// <summary> /// Specifies that a data field value must /// fall within the specified range. /// </summary> [AttributeUsage(AttributeTargets.Property)] public class StringLengthAttribute : ValidationAttribute { private int _...
using System; namespace System.ComponentModel.DataAnnotations { /// <summary> /// Specifies that a data field value must /// fall within the specified range. /// </summary> [AttributeUsage(AttributeTargets.Property)] public class StringLengthAttribute : ValidationAttribute { private int _...
mit
C#
8bea93a59b2668a1a13763c02e93e9857c89028c
add CityMapController
tkaretsos/ProceduralBuildings,AlexanderMazaletskiy/ProceduralBuildings
Scripts/CityMapController.cs
Scripts/CityMapController.cs
using UnityEngine; using Thesis; public class CityMapController : MonoBehaviour { Block block; void Awake () { block = new Block(new Vector3(1f, 0f, 0f), new Vector3(0f, 0f, 300f), new Vector3(700f, 0f, 300f), new Vector3(700f, 0f, 0f)); ...
mit
C#
8cb20f4c8efbe1f73f9ac515702706b2e10f0f8e
test created
tiksn/TIKSN-Framework
UnitTests/Finance/ForeignExchange/MyCurrencyDotNetTests.cs
UnitTests/Finance/ForeignExchange/MyCurrencyDotNetTests.cs
using FluentAssertions; using Microsoft.Extensions.DependencyInjection; using System; using System.Linq; using System.Threading.Tasks; using TIKSN.DependencyInjection.Tests; using TIKSN.Globalization; using Xunit; using Xunit.Abstractions; namespace TIKSN.Finance.ForeignExchange.Tests { public class MyCurrencyDotNet...
mit
C#
e7f7e5588d0d57919518e50fcfd76656aa47b6e7
Add typeDefinition file to slnWithCsproj test project
OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode
test/integrationTests/testAssets/slnWithCsproj/src/app/typeDefinition.cs
test/integrationTests/testAssets/slnWithCsproj/src/app/typeDefinition.cs
using System; namespace Test { public class LinkedList { public void MyMethod() { var linked = new LinkedList(); var str = "test string"; var part = new PartialClass(); Console.WriteLine(str); } } public partial class PartialCla...
mit
C#
b7b5eaa7026bf6a1f2863d2c828296e3fe738f6d
Add a failing test
AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,Perspex/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avaloni...
tests/Avalonia.Markup.Xaml.UnitTests/Xaml/IgnoredDirectivesTests.cs
tests/Avalonia.Markup.Xaml.UnitTests/Xaml/IgnoredDirectivesTests.cs
using Avalonia.Controls; using Avalonia.Controls.Presenters; using Avalonia.UnitTests; using Xunit; namespace Avalonia.Markup.Xaml.UnitTests.Xaml { public class IgnoredDirectivesTests : XamlTestBase { [Fact] public void Ignored_Directives_Should_Compile() { using (UnitTestAp...
mit
C#
0805396a4e12e1e0cbda48921b579a51cde9540d
Revert "Delete SlackUserExtensions.cs"
Sankra/DIPSbot,Sankra/DIPSbot
src/Hjerpbakk.DIPSbot/Extensions/SlackUserExtensions.cs
src/Hjerpbakk.DIPSbot/Extensions/SlackUserExtensions.cs
using System; using SlackConnector.Models; namespace Hjerpbakk.DIPSbot.Extensions { public static class SlackUserExtensions { public static void Guard(this SlackUser slackUser) { if (slackUser == null) { throw new ArgumentNullException(nameof(slackUser)); } if (string.IsNullOrEmpty(slackUser.Id...
mit
C#
defa118b95bdd1f2b7ee736fbbae3e9aeb8ef39f
Select everything outside of pcb profile
sts-CAD-Software/PCB-Investigator-Scripts
Select.outside.of.Profile.cs
Select.outside.of.Profile.cs
//Synchronous template //----------------------------------------------------------------------------------- // PCB-Investigator Automation Script // Created on 14.10.2015 // Autor Fabio Gruber // // Select all elements outside the board contour, e.g. to delete them. //------------------------------------------...
bsd-3-clause
C#
b60af897315c6164c7675e7b3dc1b677f5ddc655
Add stub for notification svc
mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander
Battery-Commander.Web/Services/NotificationService.cs
Battery-Commander.Web/Services/NotificationService.cs
namespace BatteryCommander.Web.Services { public class NotificationService { // Send Email // Send SMS } }
mit
C#
80560afd91db160c0a2721a64c0411788e562d9c
Update the nuget
AuxMon/azure-sdk-for-net,SiddharthChatrolaMs/azure-sdk-for-net,DeepakRajendranMsft/azure-sdk-for-net,hyonholee/azure-sdk-for-net,vivsriaus/azure-sdk-for-net,namratab/azure-sdk-for-net,gubookgu/azure-sdk-for-net,pomortaz/azure-sdk-for-net,AzCiS/azure-sdk-for-net,oburlacu/azure-sdk-for-net,djyou/azure-sdk-for-net,halliha...
src/StreamAnalyticsManagement/Generated/Models/CommonOperationResponse.cs
src/StreamAnalyticsManagement/Generated/Models/CommonOperationResponse.cs
// // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requi...
apache-2.0
C#
3bc5aa7ec43b8ff47383991a7e9d6106c885626d
Create AssemblyInfo.cs
etirelli/tck,etirelli/tck
runners/dmn-tck-runner-csharp/Properties/AssemblyInfo.cs
runners/dmn-tck-runner-csharp/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("DMN...
apache-2.0
C#
88e98c73cbd65d4d28a339158ecb26ef7c9b37f7
Create Filip.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Filip.cs
Kattis-Solutions/Filip.cs
using System; namespace Filip { class Program { static void Main(string[] args) { String s = Console.ReadLine(); String[] arr = s.Split(" "); String a = Reverse(arr[0]); String b = Reverse(arr[1]); for(int i = 0; i < 3; i++) ...
mit
C#
555b089a1eb789599618b2fee52e5dc1ebe63be3
Add a static class with all stone platforms
faint32/snowflake-1,faint32/snowflake-1,faint32/snowflake-1,RonnChyran/snowflake,SnowflakePowered/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake
Snowflake.API/Platform/StonePlatforms.cs
Snowflake.API/Platform/StonePlatforms.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Snowflake.Platform { public static class StonePlatforms { public static string ATARI_2600 = "ATARI_2600"; public static string ATARI_5200 = "ATARI_5200"; public...
mpl-2.0
C#
04a5ea24190754802527bd1c31b129982a529e2d
Add Drive
KerbaeAdAstra/KerbalFuture
KerbalFuture/SpaceFolderFlightDrive.cs
KerbalFuture/SpaceFolderFlightDrive.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using KSP; namespace KerbalFuture { class FlightDrive : VesselModule { Vector3 vslObtVel; public void FixedUpdate() { if((HighLogic.LoadedSceneIsFlight) && (SpaceFolderWarpCheck())) { vslOb...
mit
C#
eb8a9d9de69838b8c3c4c32813e0475523d9eee2
Add basic proxy tests.
harrison314/MassiveDynamicProxyGenerator,harrison314/MassiveDynamicProxyGenerator,harrison314/MassiveDynamicProxyGenerator
src/MassiveDynamicProxyGenerator.DependencyInjection.Test/AddProxyTests.cs
src/MassiveDynamicProxyGenerator.DependencyInjection.Test/AddProxyTests.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; using MassiveDynamicProxyGenerator.Microsoft.DependencyInjection; using Microsoft.Extensions.DependencyInjection; using MassiveDynamicProxyGenerator.DependencyInjection.Test.Services; using Moq; using...
mit
C#
e5720ae475b90710586b734f149df2ded318cf73
Add RemovableFeatureAttribute
shimingsg/corefx,wtgodbe/corefx,mmitche/corefx,Jiayili1/corefx,wtgodbe/corefx,Jiayili1/corefx,wtgodbe/corefx,ViktorHofer/corefx,ViktorHofer/corefx,shimingsg/corefx,ericstj/corefx,mmitche/corefx,ViktorHofer/corefx,BrennanConroy/corefx,mmitche/corefx,shimingsg/corefx,shimingsg/corefx,ptoonen/corefx,ViktorHofer/corefx,pto...
src/Common/src/System/Runtime/CompilerServices/RemovableFeatureAttribute.cs
src/Common/src/System/Runtime/CompilerServices/RemovableFeatureAttribute.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; namespace System.Runtime.CompilerServices { // Instructs IL linkers that the method body decorate...
mit
C#
ce78f3af70f35cf6ffb4b70275ec2c1c9937d398
Transform repeat rules into a tree
jagrem/slang,jagrem/slang,jagrem/slang
slang/Lexing/Trees/Transformers/RepeatRuleExtensions.cs
slang/Lexing/Trees/Transformers/RepeatRuleExtensions.cs
using System.Linq; using slang.Lexing.Rules.Core; using slang.Lexing.Trees.Nodes; namespace slang.Lexing.Trees.Transformers { public static class RepeatRuleExtensions { public static Tree Transform (this Repeat rule) { var tree = rule.Value.Transform (); var transitions...
mit
C#
c4281fb36b320d0093627f1f7240d0039686652a
Add Q213
txchen/localleet
csharp/Q213_HouseRobberII.cs
csharp/Q213_HouseRobberII.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Note: This is an extension of House Robber. // // After robbing those houses on that street, the thief has found himself a new place for his thievery so that he will not get too much attentio...
mit
C#
88e85bec683c9a69369e7e19bfc3655a0d280a07
Add back AssemblyInfo.cs
mganss/HtmlSanitizer
src/HtmlSanitizer/Properties/AssemblyInfo.cs
src/HtmlSanitizer/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.InteropServices; #if !NETSTANDARD // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)...
mit
C#
9687ffc5c6fb47386e6703f8d6043d60cf13e988
Remove duplicates from sorted list II
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/remove_duplicates_from_sorted_list_II.cs
LeetCode/remote/remove_duplicates_from_sorted_list_II.cs
// https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/ // Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. // // For example, // Given 1->2->3->3->4->4->5, return 1->2->5. // Given 1->1->1->2->3, return 2->3. // //...
mit
C#
e6b2e3b0ed1f4059a9fef74053b7ed5d6ec39d9d
Add osu!catch skin configurations
peppy/osu,NeoAdonis/osu,peppy/osu-new,ppy/osu,peppy/osu,ppy/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu
osu.Game.Rulesets.Catch/Skinning/CatchSkinConfiguration.cs
osu.Game.Rulesets.Catch/Skinning/CatchSkinConfiguration.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. namespace osu.Game.Rulesets.Catch.Skinning { public enum CatchSkinConfiguration { /// <summary> /// The colour to be used for the catcher while on...
mit
C#
3602a2671ce2d1920b966866902aff2b9b066cae
Create Index.cshtml
CarmelSoftware/Generic-Data-Repository-for-ASP.NET-MVC
Views/Blogs/Index.cshtml
Views/Blogs/Index.cshtml
@model IEnumerable<GenericRepository.Models.Blog> @{ ViewBag.Title = "Index"; } <div class="jumbotron"> <h2>Generic Data Repository - Index</h2><br /><h4>By Carmel Schvartzman</h4> </div> <div class="jumbotron"> <p> @Html.ActionLink("Create New", "Create") </p> <table class="table"> ...
mit
C#
3f6b153320412377dd96eb3d4526d5e213e1e8ab
Create main.cs
alsuka/CSharp-Lazy-Loading
main.cs
main.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Objects; using System.Diagnostics; using SeleniumTests; namespace EntityTest { class Program { static void Main(string[] args) { string sql = ""; Stopwatch sw = new S...
mit
C#
7f67e7c3248ac1e7ce34dc46893b988b6bf03fed
Fix unit test issues in storage account cmdlets.
enavro/azure-powershell,chef-partners/azure-powershell,AzureRT/azure-powershell,rohmano/azure-powershell,krkhan/azure-powershell,dulems/azure-powershell,seanbamsft/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,ankurchoubeymsft/azure-powershell,pankajsn/azure-powershell,rohma...
src/ResourceManager/Compute/Commands.Compute/Models/PSStorageAccount.cs
src/ResourceManager/Compute/Commands.Compute/Models/PSStorageAccount.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Azure.Management.Storage.Models; namespace Microsoft.Azure.Commands.Compute.Models { class PSStorageAccount { public PSStorageAccount(StorageAccount storageAccount) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Azure.Management.Storage.Models; namespace Microsoft.Azure.Commands.Compute.Models { class PSStorageAccount { public PSStorageAccount(StorageAccount storageAccount) ...
apache-2.0
C#
434eb747d2d6c5a57d4d7d66bb22377a3dab0cb6
move http status code descriptions to own class
hibri/HttpMock,zhdusurfin/HttpMock,oschwald/HttpMock,mattolenik/HttpMock
src/HttpMock/ResponseBuilder.cs
src/HttpMock/ResponseBuilder.cs
using System.Collections.Generic; using System.Net; using Kayak; using Kayak.Http; namespace HttpMock { public class ResponseBuilder { private string _body; private static HttpStatusCode _httpStatusCode = HttpStatusCode.OK; public ResponseBuilder WithBody(string body) { _body = body; ...
using System.Collections.Generic; using System.Net; using Kayak; using Kayak.Http; namespace HttpMock { public class ResponseBuilder { private string _body; private static HttpStatusCode _httpStatusCode = HttpStatusCode.OK; public ResponseBuilder WithBody(string body) { _body = body; ...
mit
C#
2ef2781575ec8ecaa13fef8720942cfb7a9eb2a9
add initial file
KerbaeAdAstra/KerbalFuture
KerbalFuture/FrameShift/FrameShiftEngine.cs
KerbalFuture/FrameShift/FrameShiftEngine.cs
namespace FrameShift { }
mit
C#
f9064cb2ccbc6be4e39a1ca4d3a4a9f24e9597d5
Add PlatformIdentifier
Cyberboss/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server
src/Tgstation.Server.Host/Core/PlatformIdentifier.cs
src/Tgstation.Server.Host/Core/PlatformIdentifier.cs
using System.Runtime.InteropServices; namespace Tgstation.Server.Host.Core { /// <inheritdoc /> sealed class PlatformIdentifier : IPlatformIdentifier { /// <inheritdoc /> public bool IsWindows { get; } /// <summary> /// Construct a <see cref="PlatformIdentifier"/> /// </summary> public PlatformIdentif...
agpl-3.0
C#
59cb0b20f8b4caa959d72c1614c0e4d33f8184a7
Add ArrayExtensions
Weingartner/SolidworksAddinFramework
SolidworksAddinFramework/ArrayExtensions.cs
SolidworksAddinFramework/ArrayExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using Accord; namespace SolidworksAddinFramework { public static class ArrayExtensions { /// <summary> /// Enumerate a 2D matrix defined as T[row,column] by traversing /// each column completey before the next column ...
mit
C#
892d68512f1fb6835bed2ed386e36d8603c00a0b
Add mock builder for CarsContextQuery
senioroman4uk/PathFinder
CarsControllersTests/CarContextMockBuilder.cs
CarsControllersTests/CarContextMockBuilder.cs
using System.Collections.Generic; using System.Linq; using PathFinder.Cars.DAL.Model; using PathFinder.Cars.WebApi.Queries; namespace CarsControllersTests { public class CarContextQueryMockBuilder { private readonly CarContextMock _fakeQuery; public CarContextQueryMockBuilder() { ...
mit
C#
b99fd1397660dc99d2ed15b14d5114a7b0fccab4
Create Defender.cs
InfernumDeus/Csharp-PokemonGO-battle-simulation
source/Defender.cs
source/Defender.cs
using System; namespace battle_simulation { public class Defender { public string pokemonName; public int attack, defense, hp; public Single cpm; public string q_move, c_move; public int q_power, c_power; public Single q_cd, c_cd; public Single q_mult, c...
mit
C#
5519c644b6c868f82ec93acc6848792be3cf9c7e
Create EcodingConvertor.cs
Forward2015/Download,Forward2015/Download,Forward2015/Download,Forward2015/Download
Dotnet/EcodingConvertor.cs
Dotnet/EcodingConvertor.cs
/// // Convert a string from one encoding to another /// public static string EncodingConvert(Encoding srcEncoding,Encoding desEncoding,string str){ byte[] srcBytes = srcEncoding.GetBytes(Message); byte[] desBytes = Encoding.Convert(desEncoding, desEncoding, utfBytes); string result = desEncoding.GetStr...
mit
C#
b89311bdc421692b0cbc25efb0ebe4c57c0daa9f
Add Q190
txchen/localleet
csharp/Q190_ReverseBits.cs
csharp/Q190_ReverseBits.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Reverse bits of a given 32 bits unsigned integer. // // For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 00111001011110000010100...
mit
C#
d856356c45d88d9c65079229298d36d541267b8f
Create GameState.cs
efruchter/UnityUtilities
GameState.cs
GameState.cs
using UnityEngine; using System.Collections.Generic; namespace GameState { public delegate void GameStateFunction(); public delegate bool IsGameStateOver(); public interface State { void OnGameStateStart(); void OnGameStateUpdate(); void OnGameStateEnd(); bool IsGameStateOver(); } public class G...
mit
C#
ae19a38a805ef4a4a758115497da32f9d31e9030
Make metadata accessible without reflection
twcclegg/log4net,freedomvoice/log4net,twcclegg/log4net,freedomvoice/log4net,freedomvoice/log4net,freedomvoice/log4net,twcclegg/log4net,twcclegg/log4net
src/Log4netAssemblyInfo.cs
src/Log4netAssemblyInfo.cs
#region Apache License // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 // (...
apache-2.0
C#
83c6d82f9f866c995fa9f41d533ab885683444bc
Set Profil to fix Rectangle
sts-CAD-Software/PCB-Investigator-Scripts
SetProfil.cs
SetProfil.cs
//----------------------------------------------------------------------------------- // PCB-Investigator Automation Script // Created on 2014-04-24 // Autor support@easylogix.de // www.pcb-investigator.com // SDK online reference http://www.pcb-investigator.com/sites/default/files/documents/InterfaceDocumentation...
bsd-3-clause
C#
ec9cdd8bbc24b270e4890ccdf524319942a6e5cd
Add test class 'NotificationEntitiesInfoCarrierTest'
azabluda/InfoCarrier.Core
test/InfoCarrier.Core.EFCore.FunctionalTests/NotificationEntitiesInfoCarrierTest.cs
test/InfoCarrier.Core.EFCore.FunctionalTests/NotificationEntitiesInfoCarrierTest.cs
namespace InfoCarrier.Core.EFCore.FunctionalTests { using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Specification.Tests; public class NotificationEntitiesInfoCarrierTest : NotificationEntitiesTestBase<TestStore, NotificationEntitiesInfoCarrierTest.NotificationEntitiesInfoC...
mit
C#
4cfdb51ddde2eaaaeaeab375b2e586c45c1e884e
Create WriteLine.cs
jakubcze/prywatnejm
WriteLine.cs
WriteLine.cs
Console.WriteLine("aklsjdlakjsdlkajslkdasd");
mit
C#
332bf7ec400dead93f8971f2fd0d0e15344c2029
Move DMScienceData to separate class
DMagic1/Orbital-Science,Kerbas-ad-astra/Orbital-Science
Source/Scenario/DMScienceData.cs
Source/Scenario/DMScienceData.cs
#region license /* DMagic Orbital Science - DM Science Data * Object to store custom science data information * * Copyright (c) 2014, David Grandy <david.grandy@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that ...
bsd-3-clause
C#
8cad007a278800176f1152428e1762fbd2bc982a
Fix culture conditional fact attribute
abock/roslyn,vslsnap/roslyn,mattscheffer/roslyn,physhi/roslyn,cston/roslyn,rgani/roslyn,TyOverby/roslyn,khellang/roslyn,MattWindsor91/roslyn,mattwar/roslyn,VSadov/roslyn,TyOverby/roslyn,orthoxerox/roslyn,mmitche/roslyn,xoofx/roslyn,akrisiun/roslyn,bkoelman/roslyn,tvand7093/roslyn,xasx/roslyn,jkotas/roslyn,gafter/roslyn...
src/Test/Utilities/Shared/Assert/ConditionalFactAttribute.cs
src/Test/Utilities/Shared/Assert/ConditionalFactAttribute.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.Text; using Xunit; namespace Roslyn.Test.Utilities { public class ConditionalFactAttribute : FactAttribute { publ...
// 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.Text; using Xunit; namespace Roslyn.Test.Utilities { public class ConditionalFactAttribute : FactAttribute { publ...
apache-2.0
C#
4bfdfd3360bd29826acd24d494bdf43a95532e87
Create DatabaseConnection.cs
ilgazdotcom/Arches
ArchesFramework/Arches.DataAccess/DatabaseConnection.cs
ArchesFramework/Arches.DataAccess/DatabaseConnection.cs
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; namespace Arches.DataAccess { /// <summary> /// Database Class /// </summary> public class DatabaseConnection { DataTable _dt; ...
mpl-2.0
C#
8d7bf5d21f22da296aa347438957e424296f1178
Create BaseResponseMessage.cs
daniela1991/hack4europecontest
BaseResponseMessage.cs
BaseResponseMessage.cs
namespace Cdiscount.OpenApi.ProxyClient.Contract.Common { /// <summary> /// Base response message for open api results /// </summary> public class BaseResponseMessage { /// <summary> /// True if the operation ended successfully /// </summary> public bool OperationSucc...
mit
C#
41874841cfe53148fd4fde7c10637daaf709567c
Update ImageResizer sample, remove System.Drawing
mattchenderson/azure-webjobs-sdk-templates,Azure/azure-webjobs-sdk-templates,soninaren/azure-webjobs-sdk-templates,mattchenderson/azure-webjobs-sdk-templates,mattchenderson/azure-webjobs-sdk-templates,Azure/azure-webjobs-sdk-templates,soninaren/azure-webjobs-sdk-templates,Azure/azure-webjobs-sdk-templates,mattchenderso...
Templates/ImageResizer-CSharp/run.csx
Templates/ImageResizer-CSharp/run.csx
using ImageResizer; public static void Run( Stream image, // input blob, large size Stream imageSmall, Stream imageMedium) // output blobs { var imageBuilder = ImageResizer.ImageBuilder.Current; var size = imageDimensionsTable[ImageSize.Small]; imageBuilder.Build( ...
#r "Microsoft.WindowsAzure.Storage" #r "System.Drawing" using System; using System.Linq; using System.Threading.Tasks; using Microsoft.Azure.WebJobs.Host; using Microsoft.WindowsAzure.Storage.Blob; using System.IO; using System.Drawing; using System.Drawing.Imaging; // Use the ImageResizer NuGet to resize images base...
mit
C#
60afaf8668671c69676b4a9d702ad93ba9a158b6
Create HeadlessModeChecker.cs
felladrin/unity-scripts,felladrin/unity3d-scripts
HeadlessModeChecker.cs
HeadlessModeChecker.cs
public static class HeadlessModeChecker { public static bool IsInHeadlessMode() { var condition1 = System.Environment.CommandLine.Contains("-batchmode"); var condition2 = System.Environment.CommandLine.Contains("-nographics"); var condition3 = (UnityEngine.SystemInfo.graphicsDeviceType =...
mit
C#
45a57f99f87492b10a209555fba07e7c1f8efac4
Create DisablePSLogging.cs
leechristensen/Random
CSharp/DisablePSLogging.cs
CSharp/DisablePSLogging.cs
/* One of the many ways one could disabled PS logging if there's prior code execution Author: Lee Christensen (@tifkin_) License: BSD 3-Clause Required Dependencies: None Optional Dependencies: None Instructions: C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe DisablePSLogging.cs /reference:c:\Windows\assembly...
bsd-3-clause
C#
8542a5f3fe9656d83b59d58179ae9a9141dda9d2
add AssemblyInfo.cs
dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP
src/DotNetCore.CAP.MongoDB/Properties/AssemblyInfo.cs
src/DotNetCore.CAP.MongoDB/Properties/AssemblyInfo.cs
// Copyright (c) .NET Core Community. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("DotNetCore.CAP.MongoDB.Test")]
mit
C#
1cf991a2d299e5cfdcab850647fc97c75d7608b4
Add missing default implementation of the IGraphOperationContext.
quartz-software/kephas,quartz-software/kephas
src/Kephas.Data/Capabilities/GraphOperationContext.cs
src/Kephas.Data/Capabilities/GraphOperationContext.cs
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="GraphOperationContext.cs" company="Quartz Software SRL"> // Copyright (c) Quartz Software SRL. All rights reserved. // </copyright> // <summary> // Implements the graph operat...
mit
C#
d950c0a2339914b7a575274cdacf614714282085
Create run.csx
he3/afunc
run.csx
run.csx
using System.Net; public static string Run(HttpRequestMessage req, TraceWriter log) { //log.Info($"C# Timer trigger function executed at: {DateTime.Now}"); string data; try { using (var client = new WebClient()) { data = client.DownloadString("https://api...
mit
C#
eef5b7bac3775683bec6485bd198dd35463caa36
add job project endpoints
mzrimsek/resume-site-api
Web/Controllers/JobProjectController.cs
Web/Controllers/JobProjectController.cs
using Microsoft.AspNetCore.Mvc; using Core.Interfaces; using Web.Mappers.JobProjectMappers; using Web.Models.JobProjectModels; namespace Web.Controllers { [Route("api/[controller]")] public class JobProjectController : Controller { private readonly IJobProjectRepository _jobProjectRepository; ...
mit
C#
718d6484ddc2c18e4b269d69d1d60e719e8f0532
Add missing file for Map tests
LambdaSix/InfiniMap,LambdaSix/InfiniMap
InfiniMap.Test/MapTests.cs
InfiniMap.Test/MapTests.cs
using System; using NUnit.Framework; namespace InfiniMap.Test { [TestFixture] public class MapTests { private Map createMap(int chunkSize, int chunksToFill) { var map = new Map(chunkSize, chunkSize); for (int x = 0; x <= (chunksToFill * chunkSize-1); x++) ...
mit
C#
d97217e4454705fca28bae73aa87579d3298c16b
add ConsoleExporter extension methods (#468)
open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet
src/OpenTelemetry.Exporter.Console/TracerBuilderExtensions.cs
src/OpenTelemetry.Exporter.Console/TracerBuilderExtensions.cs
// <copyright file="TracerBuilderExtensions.cs" company="OpenTelemetry Authors"> // Copyright 2018, OpenTelemetry Authors // // 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://...
apache-2.0
C#
64d5f5fa0aaee90a304a006ed5fb17e42eb34c1a
Add Ed25519 formatting tests
ektrah/nsec
tests/Formatting/Ed25519Tests.cs
tests/Formatting/Ed25519Tests.cs
using System; using System.Text; using NSec.Cryptography; using NSec.Cryptography.Formatting; using Xunit; namespace NSec.Tests.Formatting { public static class Ed25519Tests { private static readonly byte[] s_oid = { 0x2B, 0x65, 0x70 }; [Fact] public static void PkixPrivateKey() ...
mit
C#
101b778139adb4fc64202a486cda1b805b37f5b1
Create Problem102.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem102.cs
Problems/Problem102.cs
using System; using System.Collections.Generic; using System.IO; namespace ProjectEuler.Problems { class Problem102 { private double sign(Point p1, Point p2, Point p3) { return (p1.X - p3.X) * (p2.Y - p3.Y) - (p2.X - p3.X) * (p1.Y - p3.Y); } private bool PointInTri...
mit
C#
a155126afdbac4983b8fe593abbceb7d8db069ab
remove redundant module init
TomGillen/GitVersion,RaphHaddad/GitVersion,pascalberger/GitVersion,onovotny/GitVersion,JakeGinnivan/GitVersion,orjan/GitVersion,DanielRose/GitVersion,alexhardwicke/GitVersion,dpurge/GitVersion,alexhardwicke/GitVersion,openkas/GitVersion,RaphHaddad/GitVersion,TomGillen/GitVersion,GeertvanHorrik/GitVersion,asbjornu/GitVe...
Tests/ModuleInitializer.cs
Tests/ModuleInitializer.cs
using System; using System.Diagnostics; using System.IO; using GitVersion; /// <summary> /// Used by the ModuleInit. All code inside the Initialize method is ran as soon as the assembly is loaded. /// </summary> public static class ModuleInitializer { /// <summary> /// Initializes the module. /// </summar...
using System; using System.Diagnostics; using System.IO; using GitVersion; /// <summary> /// Used by the ModuleInit. All code inside the Initialize method is ran as soon as the assembly is loaded. /// </summary> public static class ModuleInitializer { /// <summary> /// Initializes the module. /// </summar...
mit
C#
a2d01f972ffef082f0bd6032942c010b7728ce62
Add a direction enumeration
wrightg42/tron,It423/tron
Tron/Tron/Car/Direction.cs
Tron/Tron/Car/Direction.cs
// Direction.cs // <copyright file="Direction.cs"> This code is protected under the MIT License. </copyright> namespace Tron { /// <summary> /// An enumeration to represent the possible directions a car can travel. /// </summary> public enum Direction { /// <summary> /// The car is ...
mit
C#
fbef533534e9ca4d1b6744816212cc7a1feb7cee
add mouse-assign configure.
fin-alice/Mystique,azyobuzin/Mystique
Inscribe/Configuration/Settings/MouseAssignProperty.cs
Inscribe/Configuration/Settings/MouseAssignProperty.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Inscribe.Configuration.Settings { /// <summary> /// マウスアサイン /// </summary> public class MouseAssignProperty { private ActionSet<ReplyMouseActionCandidates> replyActionSet; public ActionS...
mit
C#
f4397a1ee99ac78aa68a619d146b8bef6aba2119
Refactor var in Session to be consistent with rest of the plugins
Glimpse/Glimpse,flcdrg/Glimpse,elkingtonmcb/Glimpse,elkingtonmcb/Glimpse,SusanaL/Glimpse,sorenhl/Glimpse,dudzon/Glimpse,Glimpse/Glimpse,sorenhl/Glimpse,Glimpse/Glimpse,paynecrl97/Glimpse,rho24/Glimpse,rho24/Glimpse,paynecrl97/Glimpse,SusanaL/Glimpse,rho24/Glimpse,dudzon/Glimpse,paynecrl97/Glimpse,paynecrl97/Glimpse,rho...
source/Glimpse.AspNet/SerializationConverter/SessionModelConverter.cs
source/Glimpse.AspNet/SerializationConverter/SessionModelConverter.cs
using System.Collections.Generic; using Glimpse.AspNet.Extensions; using Glimpse.AspNet.Model; using Glimpse.Core.Extensibility; using Glimpse.Core.Plugin.Assist; namespace Glimpse.AspNet.SerializationConverter { public class SessionModelConverter : SerializationConverter<List<SessionModel>> { public ...
using System.Collections.Generic; using Glimpse.AspNet.Extensions; using Glimpse.AspNet.Model; using Glimpse.Core.Extensibility; namespace Glimpse.AspNet.SerializationConverter { public class SessionModelConverter : SerializationConverter<List<SessionModel>> { public override object Convert(List<Sessi...
apache-2.0
C#
95ba0401715417eed1a7388991ab061fa97b995f
add RegexHelper
jwldnr/VisualLinter
VisualLinter/Helpers/RegexHelper.cs
VisualLinter/Helpers/RegexHelper.cs
using System.Text.RegularExpressions; namespace jwldnr.VisualLinter.Helpers { internal static class RegexHelper { private const string Pattern = "^[\t ]*$|[^\\s\\/\\\\\\(\\)\"\':,\\.;<>~!@#\\$%\\^&\\*\\|\\+=\\[\\]\\{\\}`\\?\\-…]+"; internal static Match GetWord(string value) => Regex.Match(va...
mit
C#
3b7106fed53cfd46da449727ae0dec6e5acc9c58
add Upgrade_20211027_UpdateNugets
signumsoftware/framework,signumsoftware/framework
Signum.Upgrade/Upgrades/Upgrade_20211027_UpdateNugets.cs
Signum.Upgrade/Upgrades/Upgrade_20211027_UpdateNugets.cs
using Signum.Utilities; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Signum.Upgrade.Upgrades { class Upgrade_20211027_UpdateNu...
mit
C#
9094691c492894c7a1129de16d988d5d85be4d44
Add unit tests for SingleDisposable.
StephenCleary/AsyncEx.Tasks
test/UnitTests/SingleDisposableUnitTests.cs
test/UnitTests/SingleDisposableUnitTests.cs
using System; using System.Threading.Tasks; using Nito.AsyncEx; using System.Linq; using System.Threading; using System.Diagnostics.CodeAnalysis; using Xunit; namespace UnitTests { public class SingleDisposableUnitTests { [Fact] public void ConstructedWithNullContext_DisposeIsANoop() {...
mit
C#
f8ca742e1dca9a25a493beba420c86902a99e242
Create Receiver.cs
Pharap/SpengyUtils
Examples/RemoteHangar/Receiver.cs
Examples/RemoteHangar/Receiver.cs
// Instructions: // 1. Group all hangar doors together in a group called "Hangar" // 2. Put this script in a progammable block // 3. Assign that programmable block to an Antenna void OpenHangarGroup(string groupName) { var hangarGroup = GridTerminalSystem.GetBlockGroupWithName(groupName); var doors = new List<...
apache-2.0
C#
a38c33841a8b4cb46f07acc16ad5bdc79b635a58
add test scene wiki container
peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu
osu.Game.Tests/Visual/Online/TestSceneWikiMarkdownContainer.cs
osu.Game.Tests/Visual/Online/TestSceneWikiMarkdownContainer.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.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using o...
mit
C#
85a137f96e946dd05e4267c6822f6bc3053185f0
add Q174
txchen/localleet
csharp/Q174_DungeonGame.cs
csharp/Q174_DungeonGame.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initially positioned in the to...
mit
C#
f0c299f4dc45e833fdfa89252e3d2c5f2445c0b8
update GetNextIPAddress signature
shimingsg/corefx,zhenlan/corefx,ViktorHofer/corefx,zhenlan/corefx,zhenlan/corefx,Jiayili1/corefx,ptoonen/corefx,zhenlan/corefx,shimingsg/corefx,ericstj/corefx,ptoonen/corefx,mmitche/corefx,Jiayili1/corefx,shimingsg/corefx,Jiayili1/corefx,ericstj/corefx,mmitche/corefx,ptoonen/corefx,ViktorHofer/corefx,zhenlan/corefx,eri...
src/Common/src/Interop/Unix/System.Native/Interop.HostEntry.cs
src/Common/src/Interop/Unix/System.Native/Interop.HostEntry.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.Runtime.InteropServices; internal static partial class Interop { internal static par...
// 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.Runtime.InteropServices; internal static partial class Interop { internal static par...
mit
C#
38c5f51c18f78b137d03e1fcb70a22f559cadef2
test to help display proper type usage for issue #211
starckgates/elasticsearch-net,UdiBen/elasticsearch-net,mac2000/elasticsearch-net,joehmchan/elasticsearch-net,SeanKilleen/elasticsearch-net,RossLieberman/NEST,tkirill/elasticsearch-net,robertlyson/elasticsearch-net,ststeiger/elasticsearch-net,adam-mccoy/elasticsearch-net,Grastveit/NEST,azubanov/elasticsearch-net,joehmch...
src/Nest.Tests.Integration/Reproduce/IndexDefaultValueTests.cs
src/Nest.Tests.Integration/Reproduce/IndexDefaultValueTests.cs
using System; using System.Collections.Generic; using System.Linq; using Nest.Tests.MockData; using Nest.Tests.MockData.Domain; using NUnit.Framework; using System.Diagnostics; using FluentAssertions; namespace Nest.Tests.Integration.Reproduce { /// <summary> /// tests to reproduce reported errors /// </summary> ...
apache-2.0
C#
c909907a2aabffcf3d2eb63b3c969a895c046dd7
Create WebRequestWithCookie.cs
cpoDesign/web.tools
WebRequests/Examples/WebRequestWithCookie.cs
WebRequests/Examples/WebRequestWithCookie.cs
// SourceForExample http://stackoverflow.com/questions/10263082/how-to-pass-post-parameters-to-asp-net-web-request string email = "YOUR EMAIL"; string password = "YOUR PASSWORD"; string URLAuth = "https://accounts.craigslist.org/login"; string postString = string.Format("inputEmailHandle={0}&name={1}&inpu...
mit
C#
07343a749ce4a67a530ef052c10ae604c42d78d6
Add SleepAsync
lerthe61/Snippets,lerthe61/Snippets
dotNet/Tasks/SleepAsync.cs
dotNet/Tasks/SleepAsync.cs
public Task SleepAsync(int millisecondsTimeout) { TaskCompletionSource<bool> tcs = null; var t = new Timer(delegate { tcs.TrySetResult(true); }, null, -1, -1); tcs = new TaskCompletionSource<bool>(t); t.Change(millisecondsTimeout, -1); return tcs.Task; }
unlicense
C#
7183a1f3aee32c87842f486b5947ddba982bc7c4
Update website and copyright year.
TheCloudlessSky/Harbour.RedisSessionStateStore,TaskStack/Harbour.RedisSessionStateStore,TheCloudlessSky/Harbour.RedisSessionStateStore,piotr-g/Harbour.RedisSessionStateStore,kharabasz/Harbour.RedisSessionStateStore,huyuezheng/Harbour.RedisSessionStateStore
src/CommonAssemblyInfo.cs
src/CommonAssemblyInfo.cs
using System; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyProduct("Harbour.RedisSessionStateStore")] [assembly: AssemblyCompany("http...
using System; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyProduct("Harbour.RedisSessionStateStore")] [assembly: AssemblyCompany("http...
mit
C#
aa07482cbb2f48a193e9afd1dda3ccbea2140170
Add OsuMarkdownLinkText
ppy/osu,peppy/osu-new,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu
osu.Game/Graphics/Containers/Markdown/OsuMarkdownLinkText.cs
osu.Game/Graphics/Containers/Markdown/OsuMarkdownLinkText.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 Markdig.Syntax.Inlines; using osu.Framework.Allocation; using osu.Framework.Graphics.Containers.Markdown; using osu.Framework.Graphics.Sprites; using osu.Game.Overl...
mit
C#
33e91286534fa9c146025ce1ffadb0695419a740
Create KnightsTour.cs
burnsba/scratch,burnsba/scratch,burnsba/scratch
KnightsTour.cs
KnightsTour.cs
public class Point { public int X { get; set; } public int Y { get; set; } public override bool Equals(Object obj) { Point p = obj as Point; if (Object.ReferenceEquals(null, p) || Object.ReferenceEquals(this, obj)) { return Object.ReferenceEquals(this, o...
apache-2.0
C#