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 |
|---|---|---|---|---|---|---|---|---|
fc34e2ef7feca53a9cbc9f689e2181511742c512 | Add a level script that can trigger the ending cutscene | makerslocal/LudumDare38 | bees-in-the-trap/Assets/Scripts/BuilderLevel.cs | bees-in-the-trap/Assets/Scripts/BuilderLevel.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BuilderLevel : MonoBehaviour {
public CameraManager camera;
public void doTakeoff() {
double time = 1.5;
Vector3 pos = camera.transform.position;
pos.y += -10;
//camera.scootTo (pos, time);
camera.rotateTo (new V... | mit | C# | |
bbff1fa76ea492efc461d1d0d5288f800efc3b5f | Create FixedRingBuffer.cs | efruchter/UnityUtilities | MiscDataStructures/FixedRingBuffer.cs | MiscDataStructures/FixedRingBuffer.cs | namespace ADT
{
using UnityEngine.Assertions;
public class FixedRingBuffer<T>
{
public T[] _buffer;
public DequeueMemoryPolicy dequeuePolicy;
int _firstEntryIndex;
public int Count { private set; get; }
public int Capacity => _buffer.Length;
public bool Non... | mit | C# | |
5f5f0916a69eaa1162e55fabcb6e988948efc0c1 | Add tracingheader for support Diagnostics | dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP | src/DotNetCore.CAP/Diagnostics/TracingHeaders.cs | src/DotNetCore.CAP/Diagnostics/TracingHeaders.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.Collections;
using System.Collections.Generic;
using System.Linq;
namespace DotNetCore.CAP.Diagnostics
{
public class TracingHeaders : IEnumerabl... | mit | C# | |
230ccbb556f7fbe7664fcee9adbb20a31eeed213 | Fix xml comment | damianh/Nancy,horsdal/Nancy,NancyFx/Nancy,MetSystem/Nancy,charleypeng/Nancy,adamhathcock/Nancy,dbolkensteyn/Nancy,fly19890211/Nancy,duszekmestre/Nancy,anton-gogolev/Nancy,Worthaboutapig/Nancy,xt0rted/Nancy,hitesh97/Nancy,davidallyoung/Nancy,jmptrader/Nancy,JoeStead/Nancy,jchannon/Nancy,joebuschmann/Nancy,albertjan/Nanc... | src/Nancy/Conventions/ViewLocationConventions.cs | src/Nancy/Conventions/ViewLocationConventions.cs | namespace Nancy.Conventions
{
using System;
using System.Collections;
using System.Collections.Generic;
using Nancy.ViewEngines;
/// <summary>
/// This is a wrapper around the type
/// <c>IEnumerable<Func<string, object, ViewLocationContext, string>></c> and its
/... | namespace Nancy.Conventions
{
using System;
using System.Collections;
using System.Collections.Generic;
using Nancy.ViewEngines;
/// <summary>
/// This is a wrapper around the type
/// 'IEnumerable<Func<string, object, ViewLocationContext, string>>' and its
/// only purpose i... | mit | C# |
b80177732dd5e63a59ba0822d37d75b73b9bc42b | Add IAspectActivator to activation aspect | AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Lite,AspectCore/Abstractions | src/AspectCore.Lite.Abstractions/IAspectActivator.cs | src/AspectCore.Lite.Abstractions/IAspectActivator.cs | using System;
using System.Reflection;
namespace AspectCore.Lite.Abstractions
{
[NonAspect]
public interface IAspectActivator
{
void InitializationMetaData(Type serviceType, MethodInfo serviceMethod, MethodInfo targetMethod, MethodInfo proxyMethod);
T Invoke<T>(object targetInstance, obje... | mit | C# | |
813fcb2a58ed307ea7182fdb460af14098c98972 | Create Hello_Neyo | neyogiry/Examples_Csharp | Hello_Neyo.cs | Hello_Neyo.cs | public class Hello_Neyo{
static void Main(){
System.Console.WriteLine("Hola Neyo!");
System.Console.ReadLine();
}
} | mpl-2.0 | C# | |
549ba51466e56dec67056499706213524bfa6c63 | Move PreserveDependencyAttribute to shared (dotnet/corefx#42174) | cshung/coreclr,cshung/coreclr,poizan42/coreclr,poizan42/coreclr,poizan42/coreclr,cshung/coreclr,cshung/coreclr,poizan42/coreclr,cshung/coreclr,poizan42/coreclr,cshung/coreclr,poizan42/coreclr | src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/PreserveDependencyAttribute.cs | src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/PreserveDependencyAttribute.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable enable
// TODO https://github.com/dotnet/corefx/issues/41201: Design and expose this publicly.
namespace... | mit | C# | |
a3c87f5d62fea9e6b671a30670bbfbe34991830e | Update CargoShuttleComponent.cs (#9333) | 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.Shared/Cargo/Components/CargoShuttleComponent.cs | Content.Shared/Cargo/Components/CargoShuttleComponent.cs | using Robust.Shared.Map;
namespace Content.Shared.Cargo.Components;
/// <summary>
/// Present on cargo shuttles to provide metadata such as preventing spam calling.
/// </summary>
[RegisterComponent, Access(typeof(SharedCargoSystem))]
public sealed class CargoShuttleComponent : Component
{
[ViewVariables(VVAccess... | using Robust.Shared.Map;
namespace Content.Shared.Cargo.Components;
/// <summary>
/// Present on cargo shuttles to provide metadata such as preventing spam calling.
/// </summary>
[RegisterComponent, Access(typeof(SharedCargoSystem))]
public sealed class CargoShuttleComponent : Component
{
[ViewVariables(VVAccess... | mit | C# |
756a081b120b065b570824783c1290c9e975b96e | add missing file to source code | konradsikorski/smartCAML | KoS.Apps.SharePoint.SmartCAML/Providers.SharePoint2013ServerProvider/SharePoint2013ServerModelProvider.cs | KoS.Apps.SharePoint.SmartCAML/Providers.SharePoint2013ServerProvider/SharePoint2013ServerModelProvider.cs | using System;
using System.Collections.Generic;
using System.Linq;
using KoS.Apps.SharePoint.SmartCAML.Model;
using KoS.Apps.SharePoint.SmartCAML.SharePointProvider;
using Microsoft.SharePoint;
namespace KoS.Apps.SharePoint.SmartCAML.Providers.SharePoint2013ServerProvider
{
public class SharePoint2013ServerModelP... | apache-2.0 | C# | |
ee1c3d42d884167d1657027ca9dad17704df7231 | Add spinner tick judgement | UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,peppy/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,smoogipooo/osu,ppy/osu,NeoAdonis/osu | osu.Game.Rulesets.Osu/Judgements/OsuSpinnerTickJudgement.cs | osu.Game.Rulesets.Osu/Judgements/OsuSpinnerTickJudgement.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Osu.Judgements
{
public class OsuSpinnerTickJudgement : OsuJudgement
{
internal bool HasBonu... | mit | C# | |
314031d56d342f722d998d0897769ea2de4bde9c | Add test cases ensuring music actions are handled from a game instance | NeoAdonis/osu,smoogipooo/osu,ppy/osu,peppy/osu-new,UselessToucan/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu | osu.Game.Tests/Visual/Menus/TestSceneMusicActionHandling.cs | osu.Game.Tests/Visual/Menus/TestSceneMusicActionHandling.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.Input.Bindings;
using osu.Game.Overlays;
using osu.Gam... | mit | C# | |
5656167c0446069919aaf54d9956fbe6e04b0896 | Change Start(source) to have the source as an optional parameter. | plmwong/librato4net | librato4net/MetricsPublisher.cs | librato4net/MetricsPublisher.cs | using System;
namespace librato4net
{
public abstract class MetricsPublisher
{
private static readonly object PublisherLock = new object();
private static volatile MetricsPublisher _publisher;
public static void Start(MetricsPublisher metricsPublisher)
{
if (_publisher == null)
{
lock (Publi... | using System;
namespace librato4net
{
public abstract class MetricsPublisher
{
private static readonly object PublisherLock = new object();
private static volatile MetricsPublisher _publisher;
public static void Start(MetricsPublisher metricsPublisher)
{
if (_publisher == null)
{
lock (Publi... | mit | C# |
f28f5b6f27df2a1e4f3f3d6ff60dc85ecad4d455 | Update the example to skip authentication | samcragg/Crest,samcragg/Crest,samcragg/Crest | example/BasicExample/DisableJwtAuthentication.cs | example/BasicExample/DisableJwtAuthentication.cs | namespace BasicExample
{
using System;
using System.Collections.Generic;
using Crest.Abstractions;
/// <summary>
/// Shows an example of how to disable JWT authentication.
/// </summary>
public sealed class DisableJwtAuthentication : IJwtSettings
{
/// <inheritdoc />
pu... | mit | C# | |
74788e15bff4db38be391bb692f32b11286eb8dc | Create AssemblyInfo.cs | keith-hall/reactive-animation | src/Properties/AssemblyInfo.cs | src/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("Rea... | apache-2.0 | C# | |
692d4497a60d7c2f43aa9ceee98d792388ab8a5f | Create Physics.Raycast.cs | carcarc/unity3d | Physics.Raycast.cs | Physics.Raycast.cs | RayCastHit hit; //儲存物件
Ray myRay = new Ray(transform.position,Vector3.down); //射線方向
//射線由myRay射出長度為DownHeight 碰到的物件為hit
if(Physics.Raycast (myRay, out hit ,DownHeight) ){
//hit
}
| mit | C# | |
de92d818a852266d28d090bb74c0adb7f6ef81f0 | Create initial attributes for attribute-driven Worksheet.FromData | mstum/Simplexcel,mstum/Simplexcel | src/Simplexcel/Cells/XlsxColumnAttribute.cs | src/Simplexcel/Cells/XlsxColumnAttribute.cs | using System;
namespace Simplexcel.Cells
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
internal class XlsxColumnAttribute : Attribute
{
/// <summary>
/// The name of the Column, used as the Header row
/// </summary>
... | mit | C# | |
f3da8b522fc191ea6fa75bc79b1bbd6e89cf036f | remove unnecessary duplication | assaframan/MoviesRestForAppHarbor,ServiceStack/ServiceStack.Examples,zhaokunfay/ServiceStack.Examples,ServiceStack/ServiceStack.Examples,ServiceStack/ServiceStack.Examples,assaframan/MoviesRestForAppHarbor,ServiceStack/ServiceStack.Examples,zhaokunfay/ServiceStack.Examples,zhaokunfay/ServiceStack.Examples,assaframan/Mo... | src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceInterface/CustomersService.cs | src/ServiceStack.Northwind/ServiceStack.Northwind.ServiceInterface/CustomersService.cs | using ServiceStack.Northwind.ServiceModel.Operations;
using ServiceStack.Northwind.ServiceModel.Types;
using ServiceStack.OrmLite;
using ServiceStack.ServiceInterface;
namespace ServiceStack.Northwind.ServiceInterface
{
public class CustomersService : RestServiceBase<Customers>
{
public IDbConnectionFactory DbFac... | using ServiceStack.Northwind.ServiceModel.Operations;
using ServiceStack.Northwind.ServiceModel.Types;
using ServiceStack.OrmLite;
using ServiceStack.ServiceInterface;
namespace ServiceStack.Northwind.ServiceInterface
{
public class CustomersService : RestServiceBase<Customers>
{
public IDbConnectionFactory DbFac... | bsd-3-clause | C# |
13ccad3a5bae4b9e8bf0630080c4d0d1448b2bbb | update context | mikebarker/Plethora.NET | src/Plethora.Context/Action/IUiActionTemplate.cs | src/Plethora.Context/Action/IUiActionTemplate.cs | using System.Drawing;
namespace Plethora.Context.Action
{
/// <summary>
/// A template used to create <see cref="IUiAction"/> instances to operate on
/// a single <see cref="ContextInfo"/> item.
/// </summary>
/// <seealso cref="IActionTemplate"/>
/// <seealso cref="IUiAction"/>
... | mit | C# | |
1def7b15b165bfd6a2ea15d37207d24ad77bcf05 | add callback message sende tests. | ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP | test/DotNetCore.CAP.Test/CallbackMessageSenderTest.cs | test/DotNetCore.CAP.Test/CallbackMessageSenderTest.cs | using System;
using System.Threading.Tasks;
using DotNetCore.CAP.Abstractions;
using DotNetCore.CAP.Internal;
using DotNetCore.CAP.Models;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using Xunit;
namespace DotNetCore.CAP.Test
{
public class CallbackMessageSenderTest
{
private IServicePr... | mit | C# | |
0a1335aa668a036f9f05fa31965f4c3b221151ac | Add stub issuer enumeration | jcolag/CreditCardValidator | CreditCardRange/CreditCardRange/CreditCardType.cs | CreditCardRange/CreditCardRange/CreditCardType.cs | namespace CreditCardProcessing
{
public enum CreditCardType
{
Unknown,
}
}
| agpl-3.0 | C# | |
74e683b256eafc8abc4ca3cf65c470b3ca7b0a35 | Add missing file | michael-reichenauer/GitMind | GitMind/Features/Branching/CreateBranchService.cs | GitMind/Features/Branching/CreateBranchService.cs | using System.Threading.Tasks;
using System.Windows;
using GitMind.Common.ProgressHandling;
using GitMind.Git;
using GitMind.Git.Private;
using GitMind.GitModel;
using GitMind.RepositoryViews;
namespace GitMind.Features.Branching
{
internal class CreateBranchService : ICreateBranchService
{
private readonly IGitS... | mit | C# | |
ade39614ceeff091a2d8b2df37a3a2279fe7b753 | Fix insetion sort test | vitohk/AlRecall | tests/test.Alrecall/TestInsertingSort.cs | tests/test.Alrecall/TestInsertingSort.cs | using System;
using Alrecall.Structures.Arrays;
using Xunit;
namespace test.Alrecall
{
public class TestInsertingSort
{
public TestInsertingSort()
{
}
[Fact]
public void TestShortArray()
{
int[] inArray={0,23,589,76,589,5,6,7};
... | mit | C# | |
d7b231af196cef4f5446f0ebf2b7c9ce50c20581 | Create FullscreenShader.cs | scmcom/unitycode | FullscreenShader.cs | FullscreenShader.cs | //pulled from UnityNativeAudioPlugins
using UnityEngine;
using System.Collections;
public class FullscreenShader : MonoBehaviour
{
public Material mat;
void Awake()
{
Application.targetFrameRate = 3000;
}
void Start(){}
void Update(){}
void OnRenderImage(RenderTexture src, RenderTexture dest)
... | mit | C# | |
68a7ead0161320780b1b741851692d3c24df2728 | Create Anim.Sprite.cs | kinifi/2Dtools | Anim.Sprite.cs | Anim.Sprite.cs | using UnityEngine;
using System.Collections;
[RequireComponent (typeof (SpriteRenderer))]
public class Anim_Sprite : MonoBehaviour {
//The current animation playing
private Sprite[] currentAnimation;
//we also want to multiply the counter by a number to get a specific framerate
private float frameRate = 12.0f;
... | mit | C# | |
bd9720090d7cd0847b92ee49e4f467c6970c63cf | Create Exercise_09.cs | jesushilarioh/Questions-and-Exercises-in-C-Sharp | Exercise_09.cs | Exercise_09.cs | using System;
public class Exercise_09
{
public static void Main()
{
/********************************************************************
*
* 9. Write a program that takes four numbers as input to calculate
* calculate and print the average.
*
*
* By: Jesus Hilario Hernandez
* ... | mit | C# | |
61b0ed21904fdaa5fb63695ad62f442d593d7b82 | Add GenerateAudio.cs test. | eylvisaker/AgateLib | Tests/AudioTests/GenerateAudio.cs | Tests/AudioTests/GenerateAudio.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using AgateLib;
using AgateLib.AudioLib;
using AgateLib.DisplayLib;
namespace Tests.AudioTests
{
class GenerateAudio : IAgateTest
{
public string Name
{
get { return "Generate Aud... | mit | C# | |
d045c9e050529c88c1487094becfe87bca83e3a3 | add CBLoggerBuilder | CloudBreadProject/CloudBread-Admin-Web,yshong93/CloudBread-Admin-Web,yshong93/CloudBread-Admin-Web,CloudBreadProject/CloudBread-Admin-Web,yshong93/CloudBread-Admin-Web,CloudBreadProject/CloudBread-Admin-Web | CBLoggerBuilder.cs | CBLoggerBuilder.cs | using CloudBreadAdminWebAuth;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Web;
namespace CloudBread_Admin_Web
{
public class CBLoggerBuilder
{
public enum LoggerType { GET, GETbyIID, PUT, POST, PATCH, DELETE };
public enum Level... | mit | C# | |
bede132142670d12bf6a8fb290a6a1409d2b006d | Add F.Property | farity/farity | Farity/Property.cs | Farity/Property.cs | using System;
using System.Linq.Expressions;
namespace Farity
{
public static partial class F
{
/// <summary>
/// Returns a function that when supplied an object returns the indicated property of that object.
/// </summary>
/// <typeparam name="T">The type of object on which to... | mit | C# | |
001485f310e7980d7109ab2dba0e0a69d022388c | add test for repository | wilcommerce/Wilcommerce.Core.Data.EFCore | Wilcommerce.Core.Data.EFCore.Test/Repository/RepositoryTest.cs | Wilcommerce.Core.Data.EFCore.Test/Repository/RepositoryTest.cs | using System.Linq;
using Wilcommerce.Core.Common.Domain.Models;
using Wilcommerce.Core.Data.EFCore.ReadModels;
using Wilcommerce.Core.Data.EFCore.Test.Fixtures;
using Xunit;
namespace Wilcommerce.Core.Data.EFCore.Test.Repository
{
public class RepositoryTest : IClassFixture<CommonContextFixture>
{
pri... | mit | C# | |
5fa5b648300e5777c9d0036d9c819c6427edda10 | Create IMongoUnitOfWork.cs | tiksn/TIKSN-Framework | TIKSN.Core/Data/Mongo/IMongoUnitOfWork.cs | TIKSN.Core/Data/Mongo/IMongoUnitOfWork.cs | using System;
namespace TIKSN.Data.Mongo
{
public interface IMongoUnitOfWork : IUnitOfWork
{
public IServiceProvider Services { get; }
}
} | mit | C# | |
01b87947579c417395458c2832ba730d331d6e6b | Add abstract `Section` class | UselessToucan/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu | osu.Game/Screens/Edit/Verify/Section.cs | osu.Game/Screens/Edit/Verify/Section.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics.Sprit... | mit | C# | |
121d6f99be297e83192c6304b84f8e87e5851e8f | Create Settings.cs | Magion/WernherChecker,Kerbas-ad-astra/WernherChecker,linuxgurugamer/WernherChecker | Source/Settings.cs | Source/Settings.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace WernherChecker
{
class WCSettings
{
public ConfigNode cfg = ConfigNode.Load(WernherChecker.DataPath + "WernherChecker.cfg");
public bool j_sugg = true;
public bool lockOnHo... | mit | C# | |
d63df0f271e87fa927416e900382ac8fceefcf90 | Add Brandon Olin as author | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/BrandonOlin.cs | src/Firehose.Web/Authors/BrandonOlin.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class BrandonOlin : IFilterMyBlogPosts, IAmACommunityMember
{
public string FirstName => "Brandon";
... | mit | C# | |
9b8c8b0112faabc70e8991a1e7ed61b46c608740 | Add Post Type resource. | maxcutler/wp-api-csharp | PortableWordPressApi/Resources/PostType.cs | PortableWordPressApi/Resources/PostType.cs | using System.Collections.Generic;
namespace PortableWordPressApi.Resources
{
public class PostType
{
public string Name { get; set; }
public string Slug { get; set; }
public string Description { get; set; }
public bool Hierarchical { get; set; }
public bool Queryable { get; set; }
public bool Searc... | mit | C# | |
4032361ff247232e68ef00728e35edf15b1a99d1 | Create program.cs | UnstableMutex/ANTFECControl | program.cs | program.cs | using ANT_Managed_Library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
// static byte[] networkKey = { 0xB9, 0xA5, 0x21, 0xFB, 0xBD, 0x72, 0xC3, 0x45};
static byte[] networkKey = { 0xE8, 0xE4, 0x21, 0x3B,... | unlicense | C# | |
4f9f30e165fc47e2f1627d6980833c537d88b6e5 | Create MaximilianLærum.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/MaximilianLærum.cs | src/Firehose.Web/Authors/MaximilianLærum.cs | public class MaximilianLærum : IAmACommunityMember
{
public string FirstName => "Maximilian";
public string LastName => "Lærum";
public string ShortBioOrTagLine => "PowerShell enthusiast";
public string StateOrRegion => "Norway";
public string TwitterHandle => "tr4psec";
... | mit | C# | |
9e8e847e304b3652b9bd655fb9f08d4956bafa6d | Create Encryption.cs | vikekh/hacker-rank-cs | Freestyle/Encryption.cs | Freestyle/Encryption.cs | mit | C# | ||
1d7cab6f69154544dc612355916d273ebe8d2c9c | Build fix. AomicIntegerArray inclusion | szKarlen/atomics.net | src/System.Threading.Atomics/AtomicIntegerArray.cs | src/System.Threading.Atomics/AtomicIntegerArray.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace System.Threading.Atomics
{
public class AtomicIntegerArray : IAtomicRefArray<int>
{
private readonly int[] _data;
private readonly MemoryOrder _order;
public A... | bsd-3-clause | C# | |
1a632d66a9857f2714e784c3e3df1b0293693712 | Include SendKeysUtilities (should have been in previous commit) | jskeet/DemoCode,jskeet/DemoCode,jskeet/DemoCode,jskeet/DemoCode | Drums/VDrumExplorer.Console/SendKeysUtilities.cs | Drums/VDrumExplorer.Console/SendKeysUtilities.cs | // Copyright 2020 Jon Skeet. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
using System.IO;
using System.Reflection;
namespace VDrumExplorer.Console
{
/// <summary>
/// Utility methods to work with the SendKeys class.... | apache-2.0 | C# | |
f0b82876b467897a1e440eb530b0255b127809c4 | Create strategy.cs | Skookum/design-patterns,Skookum/design-patterns,Skookum/design-patterns,Skookum/design-patterns,Skookum/design-patterns | patterns/strategy/strategy.cs | patterns/strategy/strategy.cs | using System;
namespace StrategyPattern
{
//context
public abstract class Company
{
public abstract double Calculate(Package package);
}
//context
public class Shipping
{
private Company company;
public void SetStrategy(Company company)
{
this.c... | mit | C# | |
8bae538af93957b15f9233b68266d09081f37ce7 | Create SetBoxColliderToUI.cs | UnityCommunity/UnityLibrary | Assets/Scripts/Editor/ContextMenu/SetBoxColliderToUI.cs | Assets/Scripts/Editor/ContextMenu/SetBoxColliderToUI.cs | // Tries to move BoxCollider(3D)-component to match UI panel/image position, by adjusting collider pivot value
using UnityEngine;
using UnityEditor;
namespace UnityLibrary
{
public class SetBoxColliderToUI : MonoBehaviour
{
[MenuItem("CONTEXT/BoxCollider/Match Position to UI")]
static void Fix... | mit | C# | |
3c57ce2721c0d0eee953b14506a60fa71f5ea1cd | add initial implementation of Enviroment class | MrBadge/NeutronDiffusion | NeutronDiffusion/Enviroment.cs | NeutronDiffusion/Enviroment.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NeutronDiffusion
{
class Enviroment
{
public double SigmaS { get; }
public double SigmaA { get; }
public double CosFi { get; }
public int NeutronNums { get; set; }
private List<Ne... | mit | C# | |
93a6345205241c661b02fc0282760287634fa64e | Add tests for F.Drop | farity/farity | Farity.Tests/DropTests.cs | Farity.Tests/DropTests.cs | using Xunit;
using System.Linq;
namespace Farity.Tests
{
public class DropTests
{
[Theory]
[InlineData(1)]
[InlineData(2)]
[InlineData(3)]
public void DropDropsNElements(int n)
{
Assert.True(n <= 5 && n >= 0);
var data = new[] { 1, 2, 3, ... | mit | C# | |
65b0e9a45b172b74663ee2318c4ec6db43f467b1 | Add FileSelector control | tzachshabtay/MonoAGS | Source/Editor/AGS.Editor/Components/FileSelector/FileSelector.cs | Source/Editor/AGS.Editor/Components/FileSelector/FileSelector.cs | using System;
using AGS.API;
using AGS.Engine;
namespace AGS.Editor
{
public class FileSelector : AGSComponent
{
private readonly IGameFactory _factory;
private ISplitPanelComponent _splitter;
private FolderTree _folderTree;
private FilesView _filesView;
const float _gu... | artistic-2.0 | C# | |
9302762e49f9d8618b419b76ef0bd18b9e66f4ad | Make NFig internals visible to Tests | NFig/NFig | NFig/AssemblyInfo.cs | NFig/AssemblyInfo.cs | using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("NFig.Tests")] | mit | C# | |
b1bad6162a2204702ec41247f07a0a5eb0cae5e1 | Add RestVideo object | Aux/NTwitch,Aux/NTwitch | src/NTwitch.Rest/Entities/Videos/RestVideo.cs | src/NTwitch.Rest/Entities/Videos/RestVideo.cs | using System;
namespace NTwitch.Rest
{
public class RestVideo : RestEntity, IVideo
{
public ulong BroadcastId { get; }
public RestChannelSummary Channel { get; }
public DateTime CreatedAt { get; }
public string Description { get; }
public string DescriptionRaw { get; }
... | mit | C# | |
bcc7c4ba26d66b665dc9905763984777635df43d | Add IWin32Resource | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | src/AsmResolver.PE.Win32Resources/IWin32Resource.cs | src/AsmResolver.PE.Win32Resources/IWin32Resource.cs | namespace AsmResolver.PE.Win32Resources
{
/// <summary>
/// Provides a high level view of a native win32 resource that can be stored in the resources data directory of a
/// portable executable (PE) image.
/// </summary>
public interface IWin32Resource
{
/// <summary>
/// Serial... | mit | C# | |
9b679431e2b95e947e18fc76f8c0b58313b22b5b | Add ZipArchive test for full roundtrip ExternAttr | elijah6/corefx,jlin177/corefx,twsouthwick/corefx,tijoytom/corefx,MaggieTsang/corefx,shimingsg/corefx,nbarbettini/corefx,krytarowski/corefx,stone-li/corefx,gkhanna79/corefx,parjong/corefx,dotnet-bot/corefx,dotnet-bot/corefx,stone-li/corefx,dhoehna/corefx,mmitche/corefx,krytarowski/corefx,parjong/corefx,wtgodbe/corefx,Ji... | src/System.IO.Compression/tests/ZipArchive/zip_netcoreappTests.cs | src/System.IO.Compression/tests/ZipArchive/zip_netcoreappTests.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.Runtime.InteropServices;
using System.Threading.Tasks;
using Xunit;
namespace System.IO.Compression.Te... | // 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.Runtime.InteropServices;
using System.Threading.Tasks;
using Xunit;
namespace System.IO.Compression.Te... | mit | C# |
a7bfae689f59b8f4a99535a5831ebb77d95a648b | Add benchmark coverage of `Scheduler` | peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework | osu.Framework.Benchmarks/BenchmarkScheduler.cs | osu.Framework.Benchmarks/BenchmarkScheduler.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 BenchmarkDotNet.Attributes;
using osu.Framework.Threading;
namespace osu.Framework.Benchmarks
{
public class BenchmarkScheduler : BenchmarkTest
{
p... | mit | C# | |
180fe00fb9c85606f1900d434a45fa674f642b0f | Add dump PSI for file internal action | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/Internal/DumpPsiForFileAction.cs | resharper/resharper-unity/src/Internal/DumpPsiForFileAction.cs | using System.Diagnostics;
using System.IO;
using System.Text;
using JetBrains.Application.DataContext;
using JetBrains.Application.UI.Actions;
using JetBrains.Application.UI.ActionsRevised.Menu;
using JetBrains.Application.UI.ActionSystem.ActionsRevised.Menu;
using JetBrains.ProjectModel;
using JetBrains.ProjectModel.D... | apache-2.0 | C# | |
dd68b1830842020ebe301980f65ef7bffe14d7f4 | Add request class | DevChampsBR/MeDaUmFilme | src/MeDaUmFilme.Consulta/MeDaUmFilmeRequest.cs | src/MeDaUmFilme.Consulta/MeDaUmFilmeRequest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace MeDaUmFilme {
public static class Ramdons
{
public static IEnumerable<string> Get()
{
return new List<string>()
{
"Batman",
... | mit | C# | |
72ffa8edd24d55cde4da20f465a29729435edbcb | Add dev-only class GUIDebug for debugging GUI API related issues | zwcloud/ImGui,zwcloud/ImGui,zwcloud/ImGui | src/ImGui/Development/GUIDebug.cs | src/ImGui/Development/GUIDebug.cs | namespace ImGui.Development
{
public class GUIDebug
{
public static void SetWindowPosition(string windowName, Point position)
{
var possibleWindow = Application.ImGuiContext.WindowManager.Windows.Find(window => window.Name == windowName);
if (possibleWindow != null)
... | agpl-3.0 | C# | |
cd8f7f35d2712cc8429efe7e152afe957a3b6c0d | Add DateTimeExtensions | imasm/CSharpExtensions | CSharpEx/DateTimeEx.cs | CSharpEx/DateTimeEx.cs | using System;
namespace CSharpEx
{
/// <summary>
/// DateTime Extensions
/// </summary>
public static class DateTimeEx
{
/// <summary>
/// Gets the day of the week represented by this instance.
/// According to the international standard ISO 8601, Monday shall be the
... | apache-2.0 | C# | |
c568a449e991d5576ce7cb75c98a20bc6543abfd | Add Instagram | jetebusiness/NEO-Default_Theme,jetebusiness/NEO-Default_Theme | Views/Shared/Blocks/Instagram/_InstagramMedia.cshtml | Views/Shared/Blocks/Instagram/_InstagramMedia.cshtml | @model IList<DomainCompany.Entities.InstagramMedia>
@if (Model != null && Model.Count() > 0)
{
var userName = @Model.FirstOrDefault().username;
<div class="ui container">
<div class="ui horizontal divider">
<a href="https://www.instagram.com/@userName/?hl=pt-br" title="@userName" target="... | mpl-2.0 | C# | |
a75f25ae869040aca731d6045d840d602e874fe1 | index changed | Abedoy/abedoy.github.io,Abedoy/abedoy.github.io | index.cshtml | index.cshtml | @{
Layout = "_Layout";
}
@section header{
<h1>Explore our world your way</h1>
<a href="/tours.htm" title="Find your tour!"><h2>Find your tour</h2></a>
}
<article id="mainArticle">
<h1>Tour Spotlight</h1>
<p class="spotlight">This month's spotlight package is Cycle California. Whether you are lookin... | mit | C# | |
d38f2ff857e4b29940cfa40cd1c9c3f614e9075f | Create test.cs | cloudymatrix/ALRD | test.cs | test.cs | hi
| apache-2.0 | C# | |
950ce36119a8da0fbf8c25f653065dbdb90a6293 | Add Extensions.cs | dv-lebedev/statistics | Statistics/Extensions.cs | Statistics/Extensions.cs | /*
Copyright 2015 Denis Lebedev
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | apache-2.0 | C# | |
b3de2003d0cf7f866275e6ae5b70d0a3c23d7aa2 | Add ShutdownHandler unit test. | jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr | test/HelloCoreClrApp.Test/ShutdownHandlerTest.cs | test/HelloCoreClrApp.Test/ShutdownHandlerTest.cs | using System.Threading;
using FluentAssertions;
using Xunit;
namespace HelloCoreClrApp.Test
{
public class ShutdownHandlerTest
{
[Fact]
public void ConfigureShouldNotFailTest()
{
var cts = new CancellationTokenSource();
ShutdownHandler.Configure(cts);
... | mit | C# | |
387f824809f7217bbee53600b1375f8efd940ff3 | Create Deneme.cs | archifux/TestRepos | Deneme.cs | Deneme.cs | Test Sayfasi
| unlicense | C# | |
f8488372e252a864a9849340abf160cc85a3216a | Fix commit cb14631a3a211008f2a64282633dd2876ace717d | StockSharp/StockSharp | Localization.Generator/Properties/AssemblyInfo.cs | Localization.Generator/Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("S#.Localization generator")]
[assembly: AssemblyDescription("Localization generator.")] | apache-2.0 | C# | |
2cbdbc5aae1c03e5f13b9bc0280cc0bd7bb3e143 | Create array.cs | wchild30/asterisk,ashoktandan007/csharp | array.cs | array.cs | using System;
class Program
{
static int i, j;
static void Main(string[] args)
{
Console.WriteLine("enter no of students");
i = int.Parse(Console.ReadLine());
Console.WriteLine("enter no of subjects");
j = int.Parse(Console.... | apache-2.0 | C# | |
167a3e2cf842455db9bf20d7defa2c1d2f36eee2 | Add another file. | KirillOsenkov/MSBuildStructuredLog,KirillOsenkov/MSBuildStructuredLog | src/StructuredLogViewer/WelcomeScreen.cs | src/StructuredLogViewer/WelcomeScreen.cs | namespace Microsoft.Build.Logging.StructuredLogger
{
public class WelcomeScreen
{
}
}
| mit | C# | |
17872356d6c40cad8cdfdcd91c8cda4938c6fc2b | add Latch | itsuart/cs-goodies | Latch.cs | Latch.cs | public class Latch
{
private long _lockCount = 0;
public IDisposable Lock()
{
_lockCount += 1;
return new Helper(this);
}
public bool Unlocked { get { return _lockCount == 0; } }
public bool Locked { get { return !Unlocked; } }
private class Helper : IDisposable
{
... | unlicense | C# | |
e19e4557973b25f0e0e214d4498e2e022d0459c9 | Create abstract base class for a HttpServer | SnowflakePowered/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,RonnChyran/snowflake,faint32/snowflake-1,RonnChyran/snowflake,SnowflakePowered/snowflake,faint32/snowflake-1,faint32/snowflake-1 | Snowflake.API/Core/Server/BaseHttpServer.cs | Snowflake.API/Core/Server/BaseHttpServer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Threading;
namespace Snowflake.Core.Server
{
public abstract class BaseHttpServer
{
HttpListener serverListener;
Thread serverThread;
bool c... | mpl-2.0 | C# | |
301d7f1123a323ab55a64cdc92344cd9d243168d | Fix build error for XCode | NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity | ncmb_unity/Assets/Editor/UpdateXcodeProject.cs | ncmb_unity/Assets/Editor/UpdateXcodeProject.cs | using System;
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.iOS.Xcode;
using UnityEditor.Callbacks;
using System.Collections;
public class UpdateXcodeProject
{
[PostProcessBuildAttribute (0)]
public static void OnPostprocessBuild (BuildTarget buildTarget, string pathToBuiltProject)
{
... | apache-2.0 | C# | |
b1725c9d1a130afaf443447ca27ed4bad13bd775 | Add tests for F.TakeFrom | farity/farity | Farity.Tests/TakeFromTests.cs | Farity.Tests/TakeFromTests.cs | using Xunit;
using System.Linq;
namespace Farity.Tests
{
public class TakeFromTests
{
[Theory]
[InlineData(1)]
[InlineData(2)]
[InlineData(3)]
public void TakeFromTakesElementsFromIndexN(int n)
{
Assert.True(n <= 5 && n >= 0);
var data = ... | mit | C# | |
196f47c1ab7013d033bb6ad795743e007f01f209 | Add `FileWriterTests ` | jlennox/HeartRate | Lennox.HeartRate.Tests/FileWriterTests.cs | Lennox.HeartRate.Tests/FileWriterTests.cs | using System.IO;
using System.Linq;
using HeartRate;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Lennox.HeartRate.Tests
{
[TestClass]
public class FileWriterTests
{
[TestMethod]
public void IBIFormatsCorrectly()
{
using var tmp = new TempF... | mit | C# | |
dc9250ca04c106936018275decc5b3392921221b | add json dispatcher. | dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP | src/DotNetCore.CAP/Dashboard/JsonDispatcher.cs | src/DotNetCore.CAP/Dashboard/JsonDispatcher.cs | using System;
using System.Net;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
namespace DotNetCore.CAP.Dashboard
{
internal class JsonDispatcher : IDashboardDispatcher
{
private readonly Func<DashboardContext, object> _comma... | mit | C# | |
031f21175e5cfde7c6a5e5ab219e7c32a24456d8 | Create run.csx | vunvulear/Stuff,vunvulear/Stuff,vunvulear/Stuff | Azure/azure-function-extractgpslocation-onedrive-drawwatermark/run.csx | Azure/azure-function-extractgpslocation-onedrive-drawwatermark/run.csx | #r "Microsoft.Azure.WebJobs.Extensions.ApiHub" // Don't forget to blog about it
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExifLib;
using System.IO;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
public... | apache-2.0 | C# | |
a3d302a81da3ff7275076fcf40334ba49ae68a86 | Create rot13.cs | HeyIamJames/Learning-C-,HeyIamJames/Learning-C- | rot13.cs | rot13.cs | static string Rot13(string input)
{
if(input == null)
return null;
Tuple<int, int>[] ranges = { Tuple.Create(65, 90), Tuple.Create(97, 122) };
var chars = input.Select(x =>
{
var range = ranges.SingleOrDefault(y => x >= y.Item1 && x <= y.Item2);
if(range == null)
retu... | mit | C# | |
9ebdef12a89d38f432acbb8898126786dac9fc77 | add path measure example | jkoritzinsky/Avalonia,Perspex/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,grokys/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Perspex,jkoritzinsky/Avalonia,SuperJMN/Avalonia,... | samples/RenderDemo/Pages/PathMeasurementPage.cs | samples/RenderDemo/Pages/PathMeasurementPage.cs | using System.Diagnostics;
using System.Drawing.Drawing2D;
using Avalonia;
using Avalonia.Controls;
using Avalonia.LogicalTree;
using Avalonia.Media;
using Avalonia.Media.Imaging;
using Avalonia.Media.Immutable;
using Avalonia.Threading;
using Avalonia.Visuals.Media.Imaging;
namespace RenderDemo.Pages
{
public clas... | mit | C# | |
1f8c472db3ac17ef2814fe45b1c4e65223975d04 | Add UNIX missing plug | CosmosOS/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos,CosmosOS/Cosmos | source/Cosmos.System2_Plugs/Interop/UnixImpl.cs | source/Cosmos.System2_Plugs/Interop/UnixImpl.cs | using IL2CPU.API.Attribs;
using System;
using System.IO;
namespace Cosmos.System_Plugs.Interop
{
[Plug("Interop+Sys", IsOptional = true)]
internal class SysImpl
{
[PlugMethod(Signature = "System_Void__Interop_Sys_GetNonCryptographicallySecureRandomBytes_System_Byte__System_Int32_")]
intern... | bsd-3-clause | C# | |
ccc13555e84c25eb06591c15e755f3e57f79c271 | Create Details.cshtml | CarmelSoftware/Generic-Data-Repository-With-Caching | Views/Blogs/Details.cshtml | Views/Blogs/Details.cshtml | @model GenericRepositoryWithCatching.Models.Blog
@{
ViewBag.Title = "Details";
}
<div class="jumbotron">
<h2>Generic Repository With Memory Caching - @ViewBag.Title</h2>
<h4>By Carmel</h4>
</div>
<div class="jumbotron">
<fieldset>
<legend>Blog</legend>
<div class="display-label">
... | mit | C# | |
7b9da556fb7dc83d10e0ebd2ce1771a54935cd27 | Add `HttpRequestRewindExtensions` - aspnet/Home#2684 - makes the `BufferingHelper` methods used in MVC and WebHooks `public` | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.Http/Extensions/HttpRequestRewindExtensions.cs | src/Microsoft.AspNetCore.Http/Extensions/HttpRequestRewindExtensions.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.Http.Internal;
namespace Microsoft.AspNetCore.Http
{
/// <summary>
/// Extension methods for enabling buffering in a... | apache-2.0 | C# | |
ba5e32472de015442534144d32d5fb71904f2d45 | Create tjs_podRadiation.cs | tatjam/Radiation-Mod | Source/tjs_podRadiation.cs | Source/tjs_podRadiation.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace tjs_radMod
{
class tjs_podRadiation : PartModule //A class for checking the radiation of individual pods (Manned)
{
//Variables
[KSPField(isPersista... | mit | C# | |
5ed935f30aa0322ec6d3ed816cd172f2cc64c7e9 | Add entity list prototype (#3720) | 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.Shared/Prototypes/EntityList/EntityListPrototype.cs | Content.Shared/Prototypes/EntityList/EntityListPrototype.cs | using System.Collections.Generic;
using System.Collections.Immutable;
using Robust.Shared.IoC;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
using Robust.Shared.ViewVariables;
namespace Con... | mit | C# | |
746e99a59b17578675c388bc90a92ac1c17e1b7b | Create InsertionSort.cs | BBoldenow/Algorithms,BBoldenow/Introduction-to-Algorithms,BBoldenow/Introduction-to-Algorithms,BBoldenow/Algorithms,BBoldenow/Introduction-to-Algorithms,BBoldenow/Algorithms | Insertion-Sort/InsertionSort.cs | Insertion-Sort/InsertionSort.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Algorithms
{
class InsertionSort
{
public static void InsertSort(ref List<int> arr)
{
for (int i = 0; i < arr.Count; ++i)
{
int c... | mit | C# | |
9bd7c4c0e59909bd0795f2fd02de75996266a21a | Create Planet.cs | jon-lad/Battlefleet-Gothic | Planet.cs | Planet.cs | using UnityEngine;
using System.Collections;
public class Planet : MonoBehaviour {
public int type;
public bool asteroidField;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
| mit | C# | |
12e0c53b141d969f20f117c8b490d9f24b0877a7 | Fix ILC compilation failure for S.R.InteropServices.Test (#21633) | nbarbettini/corefx,axelheer/corefx,stone-li/corefx,krk/corefx,cydhaselton/corefx,yizhang82/corefx,cydhaselton/corefx,zhenlan/corefx,rubo/corefx,shimingsg/corefx,the-dwyer/corefx,ravimeda/corefx,JosephTremoulet/corefx,DnlHarvey/corefx,ericstj/corefx,Ermiar/corefx,Ermiar/corefx,cydhaselton/corefx,jlin177/corefx,parjong/c... | src/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/MarshalTests.Windows.cs | src/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/MarshalTests.Windows.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 Xunit;
namespace System.Runtime.InteropServices
{
public partial class ... | // 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 Xunit;
namespace System.Runtime.InteropServices
{
public partial class ... | mit | C# |
c3c605ac7ab72697cddee1a925a81335c448419c | Add serialize atributes for Employee | 23S163PR/system-programming | Novak.Andriy/parallel-extension-demo/Employee.cs | Novak.Andriy/parallel-extension-demo/Employee.cs | using System;
using System.Xml.Serialization;
namespace parallel_extension_demo
{
[Serializable]
[XmlRoot("employee")]
public class Employee
{
[XmlElement(ElementName = "identity")]
public Guid Identity { get; set; }
[XmlElement(ElementName = "name")]
public string Na... | cc0-1.0 | C# | |
d08dcd9c743b56b0546c4d1572e5ece7b298b513 | Add test for #781 (#1824) | graphql-dotnet/graphql-dotnet,joemcbride/graphql-dotnet,graphql-dotnet/graphql-dotnet,graphql-dotnet/graphql-dotnet,joemcbride/graphql-dotnet | src/GraphQL.Tests/Bugs/Bug781UnobservedTasks.cs | src/GraphQL.Tests/Bugs/Bug781UnobservedTasks.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using GraphQL.SystemTextJson;
using GraphQL.Types;
using Shouldly;
using Xunit;
namespace GraphQL.Tests.Bugs
{
public class Bug781UnobservedTasks
{
private bool _unobserved;
[Theory(Skip = "for demonstration purposes only, unr... | mit | C# | |
719587bf35841ff26557ddcace994ee75ebab04a | Reorder list | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | LeetCode/reorder_list.cs | LeetCode/reorder_list.cs | using System;
using System.Collections.Generic;
using System.Linq;
class Node {
public int Data { get; set; }
public Node Next { get; set; }
public override String ToString() {
return String.Format("{0} {1}", Data, (Next == null) ? String.Empty : Next.ToString());
}
}
class Program {
stat... | mit | C# | |
562280ced02ed9c570a7b56a8a6e4cd9dbd95507 | Add cursor trail test scene | peppy/osu,EVAST9919/osu,peppy/osu,smoogipooo/osu,ppy/osu,2yangk23/osu,EVAST9919/osu,UselessToucan/osu,peppy/osu-new,ZLima12/osu,smoogipoo/osu,NeoAdonis/osu,2yangk23/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,johnneijzen/osu,NeoAdonis/osu,johnneijzen/osu,ZLima12/o... | osu.Game.Rulesets.Osu.Tests/TestSceneCursorTrail.cs | osu.Game.Rulesets.Osu.Tests/TestSceneCursorTrail.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 NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using ... | mit | C# | |
71b10a82ca7ccbf864270ccb4cc81983d4cd5039 | Create HaiTun.cs | daobude/- | HaiTun.cs | HaiTun.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeagueSharp;
using LeagueSharp.Common;
using SharpDX;
namespace LSharp海豚防封 {
class Program {
public static Menu Config;
static void Main(string[] args) {
Config = new Menu("海豚防封:防封状态启动中",... | isc | C# | |
e51444a99d11291b35de48ad84501f8933777a76 | Add helper extension methods for route data - Added RouteData.GetCurrentPage<T>() - Added RouteData.GetNavigationContext() | brickpile/brickpile,brickpile/brickpile,brickpile/brickpile | BrickPile.Core/Extensions/RouteDataExtensions.cs | BrickPile.Core/Extensions/RouteDataExtensions.cs | using System.Web;
using System.Web.Routing;
using BrickPile.Core.Routing;
namespace BrickPile.Core.Extensions
{
public static class RouteDataExtensions
{
public static T GetCurrentPage<T>(this RouteData data)
{
return (T)data.Values[PageRoute.CurrentPageKey];
}
pub... | mit | C# | |
9e6994166c0eef43cb63b6d1d34e70e0cb324634 | Add helper to track ongoing operations in UI | ppy/osu,ppy/osu,UselessToucan/osu,peppy/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu | osu.Game/Screens/OnlinePlay/OngoingOperationTracker.cs | osu.Game/Screens/OnlinePlay/OngoingOperationTracker.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Bindables;
namespace osu.Game.Screens.OnlinePlay
{
/// <summary>
/// Utility class to track ongoing online operations' progress... | mit | C# | |
0cdaeb445edc9e9b7ffa6b2fcff769729e68cdd8 | Create VariableLengthBitVector.cs | GGG-KILLER/GUtils.NET | GUtils.Numerics/VariableLengthBitVector.cs | GUtils.Numerics/VariableLengthBitVector.cs | /*
* Copyright © 2019 GGG KILLER <gggkiller2@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the “Software”), to deal in the Software without
* restriction, including without limitation the rights to use, copy, modif... | mit | C# | |
2d2f2808093acd63e2ae0b7c02701c4c8853c381 | test executor | BigBabay/AsyncConverter,BigBabay/AsyncConverter | AsyncConverter.Tests/Highlightings/AsyncWaitTests.cs | AsyncConverter.Tests/Highlightings/AsyncWaitTests.cs | namespace AsyncConverter.Tests.Highlightings
{
public class AsyncWaitTests : HighlightingsTestsBase
{
protected override string Folder => "AsyncWait";
}
} | mit | C# | |
2716c6eb176dee2685b68e42b1cf113e113a3b5b | Update to version 1.1.0 | fvilers/WebApi.Contrib | src/AssemblyVersion.cs | src/AssemblyVersion.cs | using System.Reflection;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [a... | using System.Reflection;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [a... | mit | C# |
57bb983312f323399ab74f4274e0fd6dfe19f209 | Create AudioFileFormatConverter.cs | J3QQ4/Facebook-Messenger-Voice-Message-Converter | AudioFileFormatConverter.cs | AudioFileFormatConverter.cs | using Imago.Bots;
using MediaToolkit;
using MediaToolkit.Model;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Configuration;
namespace Imago.Media
{
/// <summary>
/// Converts audio files between various formats using the open-source FFMP... | mit | C# | |
c904950878f2134990e8fa6864312d4353298caf | Create Grading.cs | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/Grading.cs | Kattis-Solutions/Grading.cs | using System;
using System.Collections.Generic;
namespace Grading
{
class Program
{
static void Main(string[] args)
{
string[] arr = Console.ReadLine().Split(' ');
int num = int.Parse(Console.ReadLine());
List<int> li = new List<int>();
for(int i ... | mit | C# | |
84758b770872e8f332ae0e5503206c5a941c89bb | Add texture store interface | ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework | osu.Framework/Graphics/Textures/ITextureStore.cs | osu.Framework/Graphics/Textures/ITextureStore.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.Threading;
using System.Threading.Tasks;
using osu.Framework.Graphics.OpenGL.Textures;
using osu.Framework.IO.Stores;
namespace osu.Framework.Graphics.Textu... | mit | C# | |
b33ba3b0070a808eb4fbb8f9ea75eea32c024c9f | Create ProductSeller.cs | daniela1991/hack4europecontest | ProductSeller.cs | ProductSeller.cs | namespace Cdiscount.OpenApi.ProxyClient.Contract.Common
{
/// <summary>
/// Product seller informations
/// </summary>
public class ProductSeller
{
/// <summary>
/// Seller identifier
/// </summary>
public string Id { get; set; }
/// <summary>
... | mit | C# | |
d4478c7cbb2cb0580b2dee8ac34058ee3642e145 | rename to correct casing | fluffynuts/PeanutButter,fluffynuts/PeanutButter,fluffynuts/PeanutButter | source/EmailSpooler/EmailSpooler.Win32Service.Entity.Tests/TestEmailContext.cs | source/EmailSpooler/EmailSpooler.Win32Service.Entity.Tests/TestEmailContext.cs | using EmailSpooler.Win32Service.DB.Tests;
using NUnit.Framework;
using PeanutButter.TestUtils.Entity;
using PeanutButter.TestUtils.Generic;
namespace EmailSpooler.Win32Service.Entity.Tests
{
[TestFixture]
public class TestEmailContext: EntityPersistenceTestFixtureBase<EmailContext>
{
public TestEm... | bsd-3-clause | C# | |
8bb84570df904c9c55cc781e18cc13bfb13e834e | Introduce beatmap availability structure | smoogipoo/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu-new,smoogipooo/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,ppy/osu,peppy/osu,ppy/osu,UselessToucan/osu,ppy/osu | osu.Game/Online/Rooms/BeatmapAvailability.cs | osu.Game/Online/Rooms/BeatmapAvailability.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;
namespace osu.Game.Online.Rooms
{
/// <summary>
/// The local availability information about a certain beatmap for the client.
/// </summary>
... | mit | C# | |
8988b21e5721d97ee08f2eca4d45ec86ec768782 | add missing source Utils/Files.cs | PavelMaca/WoT-PogsIconSet | Utils/Files.cs | Utils/Files.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WotPogsIconSet.Utils
{
public class Files
{
public static void deleteDirectoryRecusivly(String path)
{
Console.WriteLine("Are you sure to ... | bsd-3-clause | C# | |
128e2ff59854541a7ee5d0b4fb266cabefc5bbfb | Create DummieObjects.cs | MingLu8/Nancy.WebApi.HelpPages | src/Nancy.WebApi.HelpPages.Demo/DummieObjects.cs | src/Nancy.WebApi.HelpPages.Demo/DummieObjects.cs | using System.Collections.Generic;
namespace Nancy.WebApi.Demo
{
/// <summary>
/// User Detail.
/// </summary>
public class User
{
/// <summary>
/// user Id.
/// </summary>
public int Id { get; set; }
/// <summary>
/// User Name.
/// </summary... | mit | C# | |
68f7cf341eac6f5b6391ccaf29bb225f73e38b9f | Add report model | Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training | src/AtomicChessPuzzles/Models/Report.cs | src/AtomicChessPuzzles/Models/Report.cs | using MongoDB.Bson.Serialization.Attributes;
namespace AtomicChessPuzzles.Models
{
public class Report
{
[BsonElement("_id")]
public string ID { get; set; }
[BsonElement("type")]
public string Type { get; set; }
[BsonElement("reporter")]
public string Reporter... | agpl-3.0 | C# | |
163b8eb9b1e7e89a8e8996ceda3dfb976a96c279 | Implement insertion Sort | cschen1205/cs-algorithms,cschen1205/cs-algorithms | Algorithms/Sorting/InsertionSort.cs | Algorithms/Sorting/InsertionSort.cs | using System;
using Algorithms.Utils;
namespace Algorithms.Sorting
{
public class InsertionSort
{
public static void Sort<T>(T[] a, int lo, int hi, Comparison<T> compare)
{
for (var i = lo + 1; i <= hi; ++i)
{
for (var j = i-1; j >= lo; --j)
... | mit | C# | |
1ca33ddf284ed46e8eb81af9cd1c6f3b68413345 | convert Unit as struct #4 | ic-sys/UniRx,saruiwa/UniRx,neuecc/UniRx,cruwel/UniRx,ataihei/UniRx,Useurmind/UniRx,juggernate/UniRx,Useurmind/UniRx,ic-sys/UniRx,kimsama/UniRx,OC-Leon/UniRx,zillakot/UniRx,zillakot/UniRx,cruwel/UniRx,m-ishikawa/UniRx,zillakot/UniRx,zhutaorun/UniRx,TORISOUP/UniRx,ufcpp/UniRx,zhutaorun/UniRx,cruwel/UniRx,endo0407/UniRx,O... | Assets/UniRx/Scripts/System/Unit.cs | Assets/UniRx/Scripts/System/Unit.cs | using System;
namespace UniRx
{
// from Rx Official, but convert struct to class(for iOS AOT issue)
[Serializable]
public class Unit : IEquatable<Unit>
{
static readonly Unit @default = new Unit();
public static Unit Default { get { return @default; } }
public static bool op... | using System;
namespace UniRx
{
// from Rx Official
[Serializable]
public struct Unit : IEquatable<Unit>
{
static readonly Unit @default = new Unit();
public static Unit Default { get { return @default; } }
public static bool operator ==(Unit first, Unit second)
{
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.