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 |
|---|---|---|---|---|---|---|---|---|
f3609de52ef4e72dfb2d63f027b9762defb4ff3b | Add IMapperReducer interface | tristanles/mapreduce-dojo-csharp | MapReduceDojo/IMapperReducer.cs | MapReduceDojo/IMapperReducer.cs | using System;
using System.Collections.Generic;
namespace MapReduceDojo
{
public interface IMapperReducer<T>
{
void Map(IEmitter<T> emitter, String data);
void Reduce(IEmitter<T> emitter, String key, List<T> values);
}
}
| mit | C# | |
20c719fa7e3b5c6cdafcf81de9825de58582ad9d | Change file name to reflect new class name | mitchelsellers/Dnn.Platform,dnnsoftware/Dnn.AdminExperience.Extensions,robsiera/Dnn.Platform,valadas/Dnn.Platform,RichardHowells/Dnn.Platform,EPTamminga/Dnn.Platform,valadas/Dnn.Platform,RichardHowells/Dnn.Platform,bdukes/Dnn.Platform,valadas/Dnn.Platform,dnnsoftware/Dnn.AdminExperience.Extensions,RichardHowells/Dnn.Pl... | src/Modules/Prompt/Dnn.PersonaBar.Prompt/Models/RoleModel.cs | src/Modules/Prompt/Dnn.PersonaBar.Prompt/Models/RoleModel.cs | using DotNetNuke.Security.Roles;
using System;
namespace Dnn.PersonaBar.Prompt.Models
{
public class RoleModel : RoleModelBase
{
public string Description;
public DateTime CreatedDate;
public int CreatedBy;
#region Constructors
public RoleModel()
{
}
... | mit | C# | |
48e56adcfe500c6f72d653aa170ea1dbcd2f817a | Add labelled number box control | ppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,peppy/osu,smoogipoo/osu,smoogipooo/osu,ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,ppy/osu | osu.Game/Graphics/UserInterfaceV2/LabelledNumberBox.cs | osu.Game/Graphics/UserInterfaceV2/LabelledNumberBox.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.Graphics.UserInterface;
namespace osu.Game.Graphics.UserInterfaceV2
{
public class LabelledNumberBox : LabelledTextBox
{
protected overrid... | mit | C# | |
e7fd702dadbad4eecb293266828d83d2abdde571 | Create CommentControllerTest | DimitarDKirov/Forum-Paulo-Coelho,DimitarDKirov/Forum-Paulo-Coelho,DimitarDKirov/Forum-Paulo-Coelho | Forum-Paulo-Coelho/Tests/ForumSystem.Api.Tests/ControllersTests/CommentControllerTest..cs | Forum-Paulo-Coelho/Tests/ForumSystem.Api.Tests/ControllersTests/CommentControllerTest..cs | namespace ForumSystem.Api.Tests.ControllersTests
{
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ForumSystem.Services.Contracts;
using ForumSystem.Api.Tests.TestObjects;
using ForumSystem.Api.Controllers;
using System.Web.Http.Results;
u... | mit | C# | |
1d2e51e31701990d98b301ffd2caab4740a63e5f | Add skeleton for Autocomplete Responses. | jcheng31/WundergroundAutocomplete.NET | WundergroundClient/Autocomplete/AutocompleteResponse.cs | WundergroundClient/Autocomplete/AutocompleteResponse.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WundergroundClient.Autocomplete
{
class AutocompleteResponse
{
public Boolean IsSuccessful { get; private set; }
public IList<AutocompleteResponseObject> Results;
}
}
| mit | C# | |
633f5e2e6b044207ebd7c67cddd5f591a44f66d4 | add a CWL in PortHelper to find out what's going on in buildagents | mattolenik/HttpMock,zhdusurfin/HttpMock,hibri/HttpMock,oschwald/HttpMock | src/HttpMock.Unit.Tests/PortHelper.cs | src/HttpMock.Unit.Tests/PortHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Security;
namespace HttpMock.Unit.Tests
{
internal static class PortHelper
{
internal static int FindLocalAvailablePortForTesting ()
{
for (var i = 1025; i <= 65000; i++)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Security;
namespace HttpMock.Unit.Tests
{
internal static class PortHelper
{
internal static int FindLocalAvailablePortForTesting ()
{
for (var i = 1025; i <= 65000; i++)
... | mit | C# |
99bf2165cff3b7047f262c6688a1ff8c402f0870 | Add Flatten operator. | chtoucas/Narvalo.NET,chtoucas/Narvalo.NET | src/Narvalo.Fx/Linq/Flatten.cs | src/Narvalo.Fx/Linq/Flatten.cs | // Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information.
namespace Narvalo.Linq
{
using System.Collections.Generic;
public static partial class Qperators
{
public static IEnumerable<TSource> Flatten<TSource>(
this IEnumerable<IEnu... | bsd-2-clause | C# | |
3cc587eb8c8140ddcf006080d2d6184cca0e75a9 | Test for the VolumeConstrainedContainer | LambdaSix/SimpleInventory | SimpleInventory/SimpleInventory.Examples/VolumeLimited/Tests.cs | SimpleInventory/SimpleInventory.Examples/VolumeLimited/Tests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using SimpleInventory.Examples.Common;
namespace SimpleInventory.Examples.VolumeLimited
{
[TestFixture]
class Tests
{
[Test]
public void ContainerHasVolumeAndWeightLimit()
{... | mit | C# | |
a5f2867b247620ed76a5eb88ed25a69b8b4ac0a1 | add execute example | robinrodricks/FluentFTP,robinrodricks/FluentFTP,robinrodricks/FluentFTP | FluentFTP.Examples/ExecuteFTPCommand.cs | FluentFTP.Examples/ExecuteFTPCommand.cs | using System;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using FluentFTP;
namespace Examples {
internal static class ExecuteFTPCommandExample {
public static void Execute() {
using (var conn = new FtpClient("127.0.0.1", "ftptest", "ftptest")) {
conn.Connect();
FtpReply rep... | mit | C# | |
aba256d121e66993bd3129118a463d4165a60081 | Move initialization code into the original lock to avoid a race condition. | jonnybee/csla,ronnymgm/csla-light,JasonBock/csla,MarimerLLC/csla,rockfordlhotka/csla,ronnymgm/csla-light,JasonBock/csla,rockfordlhotka/csla,JasonBock/csla,ronnymgm/csla-light,BrettJaner/csla,BrettJaner/csla,jonnybee/csla,MarimerLLC/csla,jonnybee/csla,BrettJaner/csla,MarimerLLC/csla,rockfordlhotka/csla | cslacs/Csla/Security/ObjectAuthorizationRules.cs | cslacs/Csla/Security/ObjectAuthorizationRules.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace Csla.Security
{
/// <summary>
/// Maintains a list of all object level
/// authorization roles.
/// </summary>
internal class ObjectAuthorizationRules
{
private static... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace Csla.Security
{
/// <summary>
/// Maintains a list of all object level
/// authorization roles.
/// </summary>
internal class ObjectAuthorizationRules
{
private static... | mit | C# |
8421463e2b7f61496b0ad2f95eecc9baad10d86b | add some utils for safely running commands inside shell. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/Utils/ProcessUtils.cs | WalletWasabi.Gui/Utils/ProcessUtils.cs | using Avalonia;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
namespace WalletWasabi.Gui
{
public enum ShellType
{
Generic,
Windows,
Unix
}
public struct ShellExecuteResult
{
public int ExitCode { get; s... | mit | C# | |
74589c734229e0b36d3f460995fdacf69c221758 | Create enum.cs | carcarc/unity3d | enum.cs | enum.cs | enum GameStatus
{
Menu,
Loading,
Playing,
Pause,
GameOver
}
GameStatus xxx = GameStatus.Menu;
// 轉換為 int, 其值為 0
int i = (int)xxx;
// 轉換為 string, 其值為 "Menu"
string s = xxx.ToString();
| mit | C# | |
71aefea9687866681e4b05039bc9a7a5d91a1fdb | add the dumbest item ever. it just has a displayname property. | wislon/xam-gridview-infinite-scroll | src/GridViewInfiniteScroll/GridViewInfiniteScroll/SimpleItem.cs | src/GridViewInfiniteScroll/GridViewInfiniteScroll/SimpleItem.cs | namespace GridViewInfiniteScroll
{
public class SimpleItem
{
public string DisplayName { get; set; }
}
} | mit | C# | |
1a46d298e4e958b731073079a6b52fef94458ddc | Determine if device have support of iOS_GPUFamily2_v1 | nelzomal/monotouch-samples,nelzomal/monotouch-samples,W3SS/monotouch-samples,andypaul/monotouch-samples,albertoms/monotouch-samples,iFreedive/monotouch-samples,davidrynn/monotouch-samples,iFreedive/monotouch-samples,xamarin/monotouch-samples,xamarin/monotouch-samples,andypaul/monotouch-samples,peteryule/monotouch-sampl... | ios9/MetalPerformanceShadersHelloWorld/MetalPerformanceShadersHelloWorld/GameViewController.cs | ios9/MetalPerformanceShadersHelloWorld/MetalPerformanceShadersHelloWorld/GameViewController.cs | using CoreAnimation;
using Foundation;
using Metal;
using MetalKit;
using MetalPerformanceShaders;
using UIKit;
namespace MetalPerformanceShadersHelloWorld {
public partial class GameViewController : UIViewController, IMTKViewDelegate, INSCoding {
MTKView metalView;
IMTLCommandQueue commandQueue;
IMTLTexture s... | using CoreAnimation;
using Foundation;
using Metal;
using MetalKit;
using MetalPerformanceShaders;
using UIKit;
namespace MetalPerformanceShadersHelloWorld {
public partial class GameViewController : UIViewController, IMTKViewDelegate, INSCoding {
MTKView metalView;
IMTLCommandQueue commandQueue;
IMTLTexture s... | mit | C# |
b6d97b606803073e659aa4fe868c7d0c681d6e83 | Add helper to send entity to ghost (#3003) | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Server/Mobs/MindHelpers.cs | Content.Server/Mobs/MindHelpers.cs | using Content.Server.Interfaces.GameTicking;
using Content.Server.Players;
using Robust.Server.Player;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC;
namespace Content.Server.Mobs
{
internal static class MindHelpers
{
internal static void SendToGhost(this IEntity entity, bool canR... | mit | C# | |
6f61759ddaddf00614e54e9fc7213936d1a3550a | Create Day_0.cs | leocabrallce/HackerRank,leocabrallce/HackerRank | Day_0.cs | Day_0.cs | class Solution {
static void Main(String[] args) {
// Declare a variable named 'inputString' to hold our input.
String inputString;
// Read a full line of input from stdin (cin) and save it to our variable, input_string.
inputString = Console.ReadLine();
/... | mit | C# | |
a34f425d15b9acd35e749d99b31c682fbb8ddf4b | Add an abstraction for either reporting an array or results, or streaming them in LSP scenarios. (#48748) | jasonmalinowski/roslyn,tmat/roslyn,tmat/roslyn,sharwell/roslyn,physhi/roslyn,sharwell/roslyn,stephentoub/roslyn,physhi/roslyn,tannergooding/roslyn,sharwell/roslyn,AmadeusW/roslyn,panopticoncentral/roslyn,KevinRansom/roslyn,tannergooding/roslyn,diryboy/roslyn,stephentoub/roslyn,diryboy/roslyn,eriawan/roslyn,AlekseyTs/ro... | src/Features/LanguageServer/Protocol/Handler/BufferedProgress.cs | src/Features/LanguageServer/Protocol/Handler/BufferedProgress.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using Microsoft.CodeAnalysis.PooledObjects;
namespace Microsoft.CodeAnalysis.LanguageServer.Handler
... | mit | C# | |
991742a7b5e47d300bf5a1201b2937ed114d418a | Update version number. | ronnymgm/csla-light,BrettJaner/csla,rockfordlhotka/csla,ronnymgm/csla-light,BrettJaner/csla,MarimerLLC/csla,jonnybee/csla,ronnymgm/csla-light,jonnybee/csla,JasonBock/csla,MarimerLLC/csla,MarimerLLC/csla,JasonBock/csla,rockfordlhotka/csla,rockfordlhotka/csla,JasonBock/csla,BrettJaner/csla,jonnybee/csla | cslacs/Csla/Properties/AssemblyInfo.cs | cslacs/Csla/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("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("CS... | mit | C# |
813f82cd011b416efdfb76c66ba1fbde840d6369 | Add XNodeExtensions | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Utilities/XNode.XPathEvaluateValue.cs | source/Nuke.Common/Utilities/XNode.XPathEvaluateValue.cs | // Copyright 2021 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using System.Xml.Linq;
using System.Xml.XPath;
namespace Nuke.Common.Ut... | mit | C# | |
f27ce2af8441af85f3a3a5bc003b02d62a5e4d74 | Add the soft focus editor to the repository. | NguyenMatthieu/f-spot,Sanva/f-spot,GNOME/f-spot,GNOME/f-spot,NguyenMatthieu/f-spot,NguyenMatthieu/f-spot,nathansamson/F-Spot-Album-Exporter,mono/f-spot,dkoeb/f-spot,mono/f-spot,dkoeb/f-spot,mono/f-spot,nathansamson/F-Spot-Album-Exporter,dkoeb/f-spot,nathansamson/F-Spot-Album-Exporter,Sanva/f-spot,mono/f-spot,Yetangitu/... | src/Editors/SoftFocus.cs | src/Editors/SoftFocus.cs | /*
* Editors/SoftFocus.cs
*
* Copyright 2007 Novell Inc.
*
* Author
* Larry Ewing <lewing@novell.com>
*
* See COPYING for license information.
*
*/
using Gtk;
using System;
namespace FSpot.Editors {
public class SoftFocus : EffectEditor {
Widgets.SoftFocus soft;
Scale scale;
bool double_buffer;
... | mit | C# | |
ce2623b13fba1ce3ce7eea99a41a0f693337afc5 | Update PostControllerFixture | aliencube/Scissorhands.NET,justinyoo/Scissorhands.NET,GetScissorhands/Scissorhands.NET,ujuc/Scissorhands.NET,ujuc/Scissorhands.NET,ujuc/Scissorhands.NET,aliencube/Scissorhands.NET,GetScissorhands/Scissorhands.NET,justinyoo/Scissorhands.NET,GetScissorhands/Scissorhands.NET,justinyoo/Scissorhands.NET,aliencube/Scissorhan... | test/Scissorhands.WebApp.Tests/Fixtures/PostControllerFixture.cs | test/Scissorhands.WebApp.Tests/Fixtures/PostControllerFixture.cs | using Aliencube.Scissorhands.Models;
using Aliencube.Scissorhands.Services;
using Aliencube.Scissorhands.WebApp.Controllers;
using Moq;
namespace Aliencube.Scissorhands.WebApp.Tests.Fixtures
{
/// <summary>
/// This represents the fixture entity for the <see cref="PostController"/> class.
/// </summary>
... | using Aliencube.Scissorhands.Models;
using Aliencube.Scissorhands.Services;
using Aliencube.Scissorhands.WebApp.Controllers;
using Moq;
namespace Aliencube.Scissorhands.WebApp.Tests.Fixtures
{
/// <summary>
/// This represents the fixture entity for the <see cref="PostController"/> class.
/// </summary>
... | mit | C# |
a71d18148ebe2769a75ad02cea076a0638e4c965 | Add SCardReaderGroup | Archie-Yang/PcscDotNet | src/PcscDotNet/SCardReaderGroup.cs | src/PcscDotNet/SCardReaderGroup.cs | namespace PcscDotNet
{
/// <summary>
/// Smart card reader groups defined to the system.
/// </summary>
public enum SCardReaderGroup
{
/// <summary>
/// Group used when no group name is provided when listing readers.
/// Returns a list of all readers, regardless of what group... | mit | C# | |
fd2a379a7210389bae6b13b59d029e6aa4639e95 | Create first.cs | sainand/test | first.cs | first.cs | //first cs class file
| unlicense | C# | |
2441a913561ec85cb3d4a4316bdd64887eaac641 | Create SumOfMultiples.cs | DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges | Sum_Of_Multiples/SumOfMultiples.cs | Sum_Of_Multiples/SumOfMultiples.cs | using System;
namespace SumOfMultiples
{
class MainClass
{
public static void Main(string[] args)
{
if (args.Length <= 1)
{
Console.WriteLine("This program requires 1 integer input and 1 multiple input!\n");
Console.WriteLine("NOTE: This program can handle multiple 'Multiple integer' inputs...\... | unlicense | C# | |
ab6bd2d6cd423d4816d46e0d2a6fc5c502217a80 | Create test.cs | zzzprojects/Z.Expressions.Eval | test.cs | test.cs | int result = Eval.Execute<int>("x + y", new { x = 1, y = 2})
| mit | C# | |
ad958d6b8eba92cc6bc39eb126d8f01e9b8ebab1 | Add AuthUser information class | ProjectBlueMonkey/BlueMonkey,ProjectBlueMonkey/BlueMonkey | client/BlueMonkey/BlueMonkey.Business/AuthUser.cs | client/BlueMonkey/BlueMonkey.Business/AuthUser.cs | using Prism.Mvvm;
namespace BlueMonkey.Business
{
public class AuthUser : BindableBase
{
private string _identity;
public string Identity
{
get { return _identity; }
set { SetProperty(ref _identity, value); }
}
}
}
| mit | C# | |
857ac21766883e6d0c2242b4d4e916dd54748319 | Enable limitation control for rendering | ThuCommix/Sharpex2D | Sharpex.GameLibrary/Framework/Game/Timing/RenderMode.cs | Sharpex.GameLibrary/Framework/Game/Timing/RenderMode.cs |
namespace SharpexGL.Framework.Game.Timing
{
public enum RenderMode
{
/// <summary>
/// Limits the render call to a fixed fps amount.
/// </summary>
Limited,
/// <summary>
/// No limitations.
/// </summary>
Unlimited
}
}
| mit | C# | |
6060d1fa8aa12280cdd0a68d80dffbdca8ac27e5 | Create SimpleAdding.cs | michaeljwebb/Algorithm-Practice | Coderbyte/SimpleAdding.cs | Coderbyte/SimpleAdding.cs | using System;
class MainClass {
public static int SimpleAdding(int num) {
int result = (num*(num+1))/2;
num = result;
return num;
}
static void Main() {
// keep this function call here
Console.WriteLine(SimpleAdding(Console.ReadLine()));
}
}
| mit | C# | |
d907215b15b417cf99442216c6ef9936da46e0d9 | add mysql impl for ICapTransaction | dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap | src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs | src/DotNetCore.CAP.MySql/ICapTransaction.MySql.cs | using System.Data;
using System.Diagnostics;
using Microsoft.EntityFrameworkCore.Storage;
// ReSharper disable once CheckNamespace
namespace DotNetCore.CAP
{
public class MySqlCapTransaction : CapTransactionBase
{
public MySqlCapTransaction(IDispatcher dispatcher) : base(dispatcher) { }
publi... | mit | C# | |
3bd68fefdfb05a5f5718495fd7d14c878e71c428 | Update to 0.2-devpreview | bholmes/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,topgenorth/XamarinComponents,topgenorth/XamarinComponents,topgenorth/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents... | Android/AndroidThings/build.cake | Android/AndroidThings/build.cake | #addin nuget:?package=Cake.Xamarin.Build
#addin nuget:?package=Cake.Xamarin
var TARGET = Argument ("t", Argument ("target", "Default"));
var NUGET_VERSION = "0.2-devpreview";
var JAR_VERSION = "0.2-devpreview";
var JAR_URL = string.Format ("https://bintray.com/google/androidthings/download_file?file_path=com%2Fgoogl... | #addin nuget:?package=Cake.Xamarin.Build
#addin nuget:?package=Cake.Xamarin
var TARGET = Argument ("t", Argument ("target", "Default"));
var NUGET_VERSION = "0.1.1-devpreview";
var JAR_VERSION = "0.1-devpreview";
var JAR_URL = string.Format ("https://bintray.com/google/androidthings/download_file?file_path=com%2Fgoo... | mit | C# |
e60882822f6c7777f28d7fe82e6ace71ae8f6208 | Add new helper DescriptorHeapDescription constructor. | sharpdx/SharpDX,sharpdx/SharpDX,sharpdx/SharpDX | Source/SharpDX.Direct3D12/DescriptorHeapDescription.cs | Source/SharpDX.Direct3D12/DescriptorHeapDescription.cs | // Copyright (c) 2010-2015 SharpDX - Alexandre Mutel
//
// 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, modi... | mit | C# | |
777b453cce12e738de5fae097756b344558232c9 | Create a 'System.IO.FileStream' stub | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | stdlib/system-io/FileStream.cs | stdlib/system-io/FileStream.cs | namespace System.IO
{
/// <summary>
/// A stream that accesses a file.
/// </summary>
public class FileStream : Stream
{
public FileStream(string name, FileMode mode, FileAccess access)
{
this.Name = Name;
this.access = access;
// TODO: actually op... | mit | C# | |
92a47c70a2de2953b58641c025ccd72f2e22e0dc | Test for JobExecutor | marcwittke/Backend.Fx,marcwittke/Backend.Fx | tests/Backend.Fx.Tests/Patterns/Jobs/TheJobExecutor.cs | tests/Backend.Fx.Tests/Patterns/Jobs/TheJobExecutor.cs | namespace Backend.Fx.Tests.Patterns.Jobs
{
using System.Security.Principal;
using FakeItEasy;
using Fx.Environment.MultiTenancy;
using Fx.Patterns.DependencyInjection;
using Fx.Patterns.Jobs;
using JetBrains.Annotations;
using Xunit;
public class TheJobExecutor
{
private re... | mit | C# | |
90488d62ac73df56ca6958ee830de62cc0118b13 | Add Oracle provider. | ctigeek/InvokeQueryPowershellModule | InvokeOracleQuery.cs | InvokeOracleQuery.cs | using System;
using System.Data.Common;
using System.Management.Automation;
using Oracle.ManagedDataAccess.Client;
namespace InvokeQuery
{
[Cmdlet("Invoke", "OracleQuery", SupportsTransactions = true, SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Low)]
public class InvokeOracleQuery : I... | mit | C# | |
f2add746f99a672ff8dd597513586780dc89068e | Create Player.cs | speed007/Platformer | Player.cs | Player.cs | using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour
{
private Rigidbody2D myRigidbody = null; // To cache the rigidboy2D
private float moveLeft = -1f; // To move the player left
private Transform myTransform = null; // To cache the transform of the object
private Vector3 vec3Scale; //... | mit | C# | |
cef05c2ba02b7d95a2454d98b658d0fddbc99780 | add request performance | Abhith/Code.Library,Abhith/Code.Library | src/Code.Library.Application/Behaviors/RequestPerformanceBehavior.cs | src/Code.Library.Application/Behaviors/RequestPerformanceBehavior.cs | using Code.Library.Extensions;
using MediatR;
using Microsoft.Extensions.Logging;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
namespace Code.Library.Application.Behaviors
{
/// <summary>
/// This will add an additional log for requests that taking more than the threshold (f... | apache-2.0 | C# | |
cc7f294d55689982233444e984769cb960f106c9 | Add a few base backend tests | TAGC/Mofichan | test/Mofichan.Tests/BackendSpec.cs | test/Mofichan.Tests/BackendSpec.cs | using Mofichan.Backend;
using Mofichan.Core.Interfaces;
using Moq;
using Serilog;
using Shouldly;
using Xunit;
namespace Mofichan.Tests
{
public class BackendSpec
{
private class MockBackend : BaseBackend
{
public bool OnStartCalled { get; private set; }
public string R... | mit | C# | |
799bc22d0c33095754c02ba6373dc455f31f5b4c | Create extension_mtd.cs | kenpusney/pastebin,kenpusney/pastebin | book/extension_mtd.cs | book/extension_mtd.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CLR_via_CS
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("abc".parse());
Console.Read();
}
}
static class A {
public static int... | mit | C# | |
ede446cad6ecb987badbc04b8436d449dee5e08b | add stub media-on-a-prim (shared media) module | allquixotic/opensim-autobackup,RavenB/opensim,ft-/opensim-optimizations-wip-tests,rryk/omp-server,OpenSimian/opensimulator,BogusCurry/arribasim-dev,Michelle-Argus/ArribasimExtract,justinccdev/opensim,ft-/arribasim-dev-tests,M-O-S-E-S/opensim,ft-/arribasim-dev-extras,RavenB/opensim,RavenB/opensim,rryk/omp-server,EriHoss... | OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs | OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# | |
e614a0d3f16ad12aab11a12dc214b7e0e9623b77 | Add SteamNetworkingErrMsg | rlabrecque/Steamworks.NET,rlabrecque/Steamworks.NET,rlabrecque/Steamworks.NET,rlabrecque/Steamworks.NET | Plugins/Steamworks.NET/types/SteamNetworkingTypes/SteamNetworkingErrMsg.cs | Plugins/Steamworks.NET/types/SteamNetworkingTypes/SteamNetworkingErrMsg.cs | // This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2019 Riley Labrecque
// Please see the included LICENSE.txt for additional information.
// This file is automatically generated.
// Changes to this file will be reverted when you update Steamworks.NET
#if UNITY_ANDROID || ... | mit | C# | |
98a3ba3328e1f32bf01a7ddf539deb802a713c9c | Store and provide full original partition key | jkonecki/Streamstone,james-andrewsmith/Streamstone | Source/Streamstone/Partition.cs | Source/Streamstone/Partition.cs | using System;
using System.Linq;
using Microsoft.WindowsAzure.Storage.Table;
namespace Streamstone
{
public class Partition
{
static readonly string[] separator = {"|"};
public readonly CloudTable Table;
public readonly string PartitionKey;
public readonly string RowKeyPrefix... | using System;
using System.Linq;
using Microsoft.WindowsAzure.Storage.Table;
namespace Streamstone
{
public class Partition
{
static readonly string[] separator = {"|"};
public readonly CloudTable Table;
public readonly string PartitionKey;
public readonly string RowKeyPrefix... | apache-2.0 | C# |
ad8098e2835bee97f24c80d2b8479d0043ac7eaa | add Upgrade_20220618_UpdateNugets | signumsoftware/framework,signumsoftware/framework | Signum.Upgrade/Upgrades/Upgrade_20220618_UpdateNugets.cs | Signum.Upgrade/Upgrades/Upgrade_20220618_UpdateNugets.cs | namespace Signum.Upgrade.Upgrades;
class Upgrade_20220618_UpdateNugets : CodeUpgradeBase
{
public override string Description => "Update Nugets";
public override void Execute(UpgradeContext uctx)
{
uctx.ForeachCodeFile(@"*.csproj", file =>
{
file.UpdateNugetReference("Microsoft... | mit | C# | |
4970906d0d81cde01abbff31a1d918f64fcbda27 | Create DestroyMe.cs | MatrixNAN/Unity-Artist-Tools | DestroyMe.cs | DestroyMe.cs | using UnityEngine;
using System.Collections;
public class DestroyMe : MonoBehaviour
{
public void SelfDestruct()
{
Destroy (gameObject);
}
}
| apache-2.0 | C# | |
31353bd8cf9be794f88a522379d60bca096e9274 | add MaxBy extension method | stevengum97/BotBuilder,yakumo/BotBuilder,mmatkow/BotBuilder,stevengum97/BotBuilder,xiangyan99/BotBuilder,mmatkow/BotBuilder,yakumo/BotBuilder,xiangyan99/BotBuilder,dr-em/BotBuilder,Clairety/ConnectMe,mmatkow/BotBuilder,stevengum97/BotBuilder,msft-shahins/BotBuilder,xiangyan99/BotBuilder,Clairety/ConnectMe,msft-shahins/... | CSharp/Library/Dialogs/Extensions.cs | CSharp/Library/Dialogs/Extensions.cs | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Builder SDK Github:
// https://github.com/Microsoft/BotBuilder
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
/... | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Builder SDK Github:
// https://github.com/Microsoft/BotBuilder
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
/... | mit | C# |
247bdb0d3028a4d37876c8de52145b3d4b291864 | Create test2.cs | neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu... | POH6plus/test2.cs | POH6plus/test2.cs | using System;
using S=System.String;
using C=System.Console;
using System.Linq;
using System.IO;
class H
{
public static void Main()
{
char[] e=new char[20000];
var b=new BinaryReader(new BufferedStream(Console.OpenStandardInput()));
var h=b.Read(e,0,20000);
var z=(new S(e,0,h))... | mit | C# | |
1b4384eb2ebb73432cc42dffcb8ef528e3d339fe | Create ProductPriceDiscount.cs | daniela1991/hack4europecontest | ProductPriceDiscount.cs | ProductPriceDiscount.cs | using System;
namespace Cdiscount.OpenApi.ProxyClient.Contract.Common
{
/// <summary>
/// Product price discount
/// </summary>
public class ProductPriceDiscount
{
/// <summary>
/// Discount type
/// </summary>
public string Type { get; set; }
/// <s... | mit | C# | |
ff63295a0ac4d0b0f8814a6d31d368b901d7169d | 添加 骰子随机数生成 | MuteG/readerme | ReaderMe/Helper/Dice.cs | ReaderMe/Helper/Dice.cs | /*
*********************************************************************
* 程序 :
* 类名 : Dice
* 说明 : 骰子
* 作者 : 高云鹏
* 作成 : 2011/12/16 16:38:24
* 履历 :
*
*********************************************************************
*/
using System;
using System.Collections.Generic;
using System.Text;
n... | mit | C# | |
726dcb241a2511db0505c89c5384f8fe4b05cfde | Create StringTests.cs | keith-hall/Extensions,keith-hall/Extensions | tests/StringTests.cs | tests/StringTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HallLibrary.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Tests
{
[TestClass]
public class StringTests
{
[TestMethod]
public void TestIndexOfEnd()
{
Assert.AreEqual(@"hello world".IndexOf... | apache-2.0 | C# | |
97d8f040bd1966688108238c9bb463b8e4fa4be2 | Revert "Add SkipLaggedPokemonLocationRepository" | genius394/PogoLocationFeeder,5andr0/PogoLocationFeeder,5andr0/PogoLocationFeeder | PogoLocationFeederTests/Helper/GeoCoordinatesParserTest.cs | PogoLocationFeederTests/Helper/GeoCoordinatesParserTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PogoLocationFeeder.Helper;
namespace PogoLocationFeederTests
{
[TestClass]
public class GeoCoordinatesParserTest
{
[TestMethod]
public void TestCoordinatesCoordBot()
{
testCoordinates("[19... | agpl-3.0 | C# | |
40a112cf3a9ddab08080ac02caf9b9533305c19c | Add GUI | tobyclh/UnityCNTK,tobyclh/UnityCNTK | Assets/UnityCNTK/Scripts/CNTKGUI.cs | Assets/UnityCNTK/Scripts/CNTKGUI.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CNTKGUI : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
| mit | C# | |
2112ba06f46fa3993400f0651a89bcab39072334 | Create Object Life Time | neyogiry/Examples_Csharp | ObjectLifeTime.cs | ObjectLifeTime.cs | using System;
namespace ObjectLifeTime
{
class Program
{
static void Main(string[] args)
{
Car myCar = new Car();
Car myOtherCar = myCar;
Car myThirdCar = new Car("Ford", "Escape", 2005, "White");
myOtherCar = null;
myCar = null;
}
}
class Car
{
public string Make {get; set;}
publi... | mpl-2.0 | C# | |
45b00301bd6ae7bb14a4d86231ac867c89b56a0f | Create problem012.cs | mvdiener/project_euler,mvdiener/project_euler | CSharp/problem012.cs | CSharp/problem012.cs | //The sequence of triangle numbers is generated by adding the natural numbers.So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
//1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
//Let us list the factors of the first seven triangle numbers:
// 1: 1
// 3: 1,3
// 6: 1,2,3,6
//1... | mit | C# | |
9a69ca34a6ec004e6b336826f5623cbcd1c33a35 | Add audio presence check | peppy/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,peppy/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu | osu.Game/Rulesets/Edit/Checks/CheckAudioPresence.cs | osu.Game/Rulesets/Edit/Checks/CheckAudioPresence.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.Beatmaps;
using osu.Game.Rulesets.Edit.Checks.Components;
namespace osu.Game.Rulesets.Edit.Checks
{
public class CheckAudioPresence : CheckFilePresenc... | mit | C# | |
c4e0dc78edb64f4ddcdac2ce22c815e5e5684475 | add debugging leftovers from former breakpoint system | nerai/Unlog | src/Unlog/Util/Debugging.cs | src/Unlog/Util/Debugging.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace Unlog.Util
{
public class Debugging
{
public static void LaunchDebugger ()
{
if (Debugger.IsAttached || Debugger.Launch ()) {
Debugger.Break ();
}
else {
throw new Exception... | mit | C# | |
5cc4b37a015d8969aff60592a2b5939a2afb158c | Allow pushing a TEvent that has new() constraint | MobileEssentials/Merq | src/Core/Merq/IEventStreamExtensions.cs | src/Core/Merq/IEventStreamExtensions.cs | using System.ComponentModel;
namespace Merq
{
/// <summary>
/// Usability overloads for <see cref="IEventStream"/>.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static class IEventStreamExtensions
{
/// <summary>
/// Pushes a new instance of <typeparamref... | mit | C# | |
ad395378bc468e28f268ce354052213dfb332a40 | Add forgotten AssemblyInfo.cs | nbIxMaN/YaccConstructor,fedorovr/YaccConstructor,YaccConstructor/YaccConstructor,fedorovr/YaccConstructor,sanyaade-g2g-repos/YaccConstructor,nbIxMaN/YaccConstructor,melentyev/YaccConstructor,melentyev/YaccConstructor,Albiglittle/YaccConstructor,YaccConstructor/YaccConstructor,nbIxMaN/YaccConstructor,sanyaade-g2g-repos/... | src/ExtCalc/ExtCalcHighlighting/Properties/AssemblyInfo.cs | src/ExtCalc/ExtCalcHighlighting/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | apache-2.0 | C# | |
52913ae78de78f0b5659ebb49a1a1a54c76dc737 | add sample for JOIN query (#51) | googleapis/dotnet-spanner-entity-framework,googleapis/dotnet-spanner-entity-framework | Google.Cloud.EntityFrameworkCore.Spanner.Samples/Snippets/JoinQuerySample.cs | Google.Cloud.EntityFrameworkCore.Spanner.Samples/Snippets/JoinQuerySample.cs | // Copyright 2021 Google Inc. 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 required by applic... | apache-2.0 | C# | |
0ba0cac9fe9509ca58cf4896cdb0879f30decb34 | Create Avion.cs | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/Avion.cs | Kattis-Solutions/Avion.cs | using System;
using System.Collections.Generic;
namespace Avion
{
class Program
{
static void Main(string[] args)
{
List<int> l = new List<int>();
for(int i = 1; i <= 5; i++)
{
string s = Console.ReadLine();
if (s.Contains("FBI... | mit | C# | |
dfaa0aa71b8bae0f1c839036f9fc65101ae636fe | Create Map11.cs | semtize/LegendaryClient,newchild/LegendaryClient-1 | LegendaryClient/Logic/Maps/Map11.cs | LegendaryClient/Logic/Maps/Map11.cs | namespace LegendaryClient.Logic.Maps
{
public sealed class Map11 : BaseMap
{
public override string DisplayName
{
get { return "New Summoners Rift"; }
}
}
}
| bsd-2-clause | C# | |
61ce4b5cd405be195f5f82cfdf90fd19c42b65e4 | Create Problem72.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem72.cs | Problems/Problem72.cs | using System;
using System.Numerics;
namespace ProjectEuler.Problems
{
class Problem72
{
int upper = 1000000;
Phi p;
public Problem72()
{
DateTime start = DateTime.Now;
p = new Phi(upper);
Console.WriteLine("Init: " + (DateTime.Now - start).To... | mit | C# | |
7a9760f3f7abdfa45ae1699b4185a41c50a91fa9 | Add types.cs | vazgriz/CSharpGameLibrary,rhynodegreat/CSharpGameLibrary,rhynodegreat/CSharpGameLibrary,vazgriz/CSharpGameLibrary | CSGL.Vulkan/types.cs | CSGL.Vulkan/types.cs | using System;
using System.Collections.Generic;
namespace CSGL.Vulkan {
}
| mit | C# | |
cdf6012e6fec76c972a3ce93b4f67eca680c31b3 | Add CssUnitType | Carbon/Css | src/Carbon.Css/Model/CssUnitType.cs | src/Carbon.Css/Model/CssUnitType.cs | namespace Carbon.Css
{
public enum CssUnitType : byte
{
None = 0, // Number | Percentage
// Length
Cm = 1, // centimeters 1cm = 96px/2.54
Mm = 2, // millimeters 1mm = 1/10th of 1cm
Q = 3, // quarter-millimeters 1Q = 1/40t... | mit | C# | |
82ef7555d726a183a4f4cfee30cf97e837904d6d | Add the rotor component | wrightg42/enigma-simulator,It423/enigma-simulator | Enigma/EnigmaUtilities/Components/Rotor.cs | Enigma/EnigmaUtilities/Components/Rotor.cs | // Rotor.cs
// <copyright file="Rotor.cs"> This code is protected under the MIT License. </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EnigmaUtilities.Components
{
/// <summary>
/// An implementation of the rotor comp... | mit | C# | |
ae12bb3e8d7bb69b24c6a321450968db990b5c37 | Create CircuitBreaker.cs | hprose/hprose-dotnet | src/Hprose.RPC/Plugins/CircuitBreaker.cs | src/Hprose.RPC/Plugins/CircuitBreaker.cs | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | mit | C# | |
01123935f7e5621a4b7c809c96c987f2e68c5006 | add to favorites | Delaire/Imgur-.NET-SDK | Imgur.API/Imgur.API/EndPoints/Image/PostFavoriteAnImage.cs | Imgur.API/Imgur.API/EndPoints/Image/PostFavoriteAnImage.cs | using Imgur.API.Model.Requests;
namespace Imgur.API.EndPoints.Gallery
{
public class PostFavoriteAnImage : PostRequestBase
{
//Favorite an Image
//Favorite an image with the given ID. The user is required to be logged in to favorite the image.
//Method POST
//Route https://api.imgur.com/3/image/{id}/favorite
/... | mit | C# | |
1071d8e7f252087fe7e44f6d89990a5dac3fcdb1 | make authtoken | CloudBreadProject/CloudBread-Client-Unity,CloudBreadProject/CloudBread-Client-Unity,CloudBreadProject/CloudBread-Client-Unity,CloudBreadProject/CloudBread-Client-Unity | Assets/Scripts/CloudBread/Authentication/AuthenticationToken.cs | Assets/Scripts/CloudBread/Authentication/AuthenticationToken.cs | using System;
namespace AssemblyCSharp
{
public class AuthenticationToken
{
public AuthenticationToken ()
{
}
}
}
| mit | C# | |
edacbe3a1d89f21fed1c4a4b0cd9817fe80cf6c8 | Create generator.cs | robinroyer/Number-decomposition-in-prime-number-using-Multi-threads,robinroyer/Multi-tasks2 | generator.cs | generator.cs | #!/bin/sh
#-*-mode:c-*-
(echo "#line 3 \"$0\"";echo;tail -n +4 $0) >/tmp/cs.$$.c && gcc -Wall -o /tmp/cs.$$ /tmp/cs.$$.c && /tmp/cs.$$ $*;rm -f /tmp/cs.$$*; exit
/*
Usage: ./generator.cs QUANTITY MAGNITUDE REDUNDANCY
Generates an arbitraty QUANTITY of "random" numbers. Each number is
scaled down to a certain binary ... | apache-2.0 | C# | |
0e511ab36d59653435e19512a77c6e3d0bebcec0 | Add snippet to lookup messaging price for twilio-csharp 4.x | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snip... | pricing/get-lookup-pricing/get-lookup-pricing.4.x.cs | pricing/get-lookup-pricing/get-lookup-pricing.4.x.cs | // The C# helper library 5.x will support Pricing Messaging, for now we'll use a simple RestSharp HTTP client
using RestSharp;
using RestSharp.Authenticators;
using System;
using System.Collections.Generic;
using System.Linq;
class LookupPhoneNumberResponse
{
public string CountryCode { get; set; }
public stri... | mit | C# | |
373788a8dddac1104ef44af382e95a2ef7ec2db9 | Add PrintClient message helper | JeremyKuhne/WInterop,JeremyKuhne/WInterop,JeremyKuhne/WInterop,JeremyKuhne/WInterop | src/WInterop.Desktop/Windows/Messages/Message.PrintClient.cs | src/WInterop.Desktop/Windows/Messages/Message.PrintClient.cs | // Copyright (c) Jeremy W. Kuhne. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using WInterop.Gdi;
using WInterop.Gdi.Native;
namespace WInterop.Windows
{
public static partial class Message
{
public readonly ref struct Pri... | mit | C# | |
de522651a59103133671e5f0b1fe29c33098e5e8 | Add some very basic tests for Link | continuousit/seq-api,datalust/seq-api | test/Seq.Api.Tests/LinkTests.cs | test/Seq.Api.Tests/LinkTests.cs | using System;
using System.Collections.Generic;
using Seq.Api.Model;
using Xunit;
namespace Seq.Api.Tests
{
public class LinkTests
{
[Fact]
public void ALinkWithNoParametersIsLiteral()
{
const string uri = "https://example.com";
var link = new Link(uri);
... | apache-2.0 | C# | |
5ebf2bf891ce96c099964350401c46c1fc9b23fb | Bump to 2.2.0.0 Some misc breaking changes justify this bump, not to mention that we're close to reaching that anyway | i3at/ArchiSteamFarm,blackpanther989/ArchiSteamFarm,JustArchi/ArchiSteamFarm,JustArchi/ArchiSteamFarm,blackpanther989/ArchiSteamFarm,JustArchi/ArchiSteamFarm,JustArchi/ArchiSteamFarm,i3at/ArchiSteamFarm,KlappPc/ArchiSteamFarm,KlappPc/ArchiSteamFarm,KlappPc/ArchiSteamFarm | ArchiSteamFarm/SharedInfo.cs | ArchiSteamFarm/SharedInfo.cs | /*
_ _ _ ____ _ _____
/ \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
/ _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
/ ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || |... | /*
_ _ _ ____ _ _____
/ \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
/ _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
/ ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || |... | apache-2.0 | C# |
26e5e893efae6ebeca36ce838b27b5efd16608c4 | Create AngryChildren2.cs | denivy/CSharpCode,denivy/CSharpCode | AngryChildren2.cs | AngryChildren2.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class AngryChildren
{
static void Main(String[] args)
{
System.IO.StreamReader file = new System.IO.StreamReader(@"file_path_here.txt");
Console.SetIn(file);
List<long> sums = new List<long>();
... | mit | C# | |
be783df163688bd1ef56a3c192f8ff74d50a43c2 | Split Axis.cs file | yut23/AdvancedControlsMod,lench4991/AdvancedControlsMod | AdvancedControlsMod/Controls/Interface.cs | AdvancedControlsMod/Controls/Interface.cs | using System.Collections.Generic;
namespace AdvancedControlsMod.Controls
{
public interface Control
{
float Min { get; set; }
float Max { get; set; }
float Center { get; set; }
bool OnlyPositive { get; set; }
void Apply(float value);
void Draw();
}
publ... | mit | C# | |
54aa34c5d4ff9b9f421c2ef2aa2104ece6feae4f | add ICashierRepository file | VladTsiukin/AirlineTicketOffice | AirlineTicketOffice.Model/IRepository/ICashierRepository.cs | AirlineTicketOffice.Model/IRepository/ICashierRepository.cs | using AirlineTicketOffice.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AirlineTicketOffice.Model.IRepository
{
public interface ICashierRepository:IMainRepository<CashierModel>
{
}
}
| mit | C# | |
08c3e803100a16ea683d720a292b68ca834c33ad | Add dynamic argument patch tests | pardeike/Harmony | HarmonyTests/IL/DynamicArgumentPatches.cs | HarmonyTests/IL/DynamicArgumentPatches.cs | using HarmonyLib;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
namespace HarmonyLibTests.IL
{
public struct Vec3
{
public int v1;
public int v2;
public int v3;
public Vec3(int v1, int v2, int v3)
{
this.... | mit | C# | |
04e34d6c1015acc0b4277bcece6c721ba036fd4f | add testcase for object view | kubernetes-client/csharp,kubernetes-client/csharp | tests/V1StatusObjectViewTests.cs | tests/V1StatusObjectViewTests.cs | using k8s.Models;
using k8s.Tests.Mock;
using Newtonsoft.Json;
using Xunit;
namespace k8s.Tests
{
public class V1StatusObjectViewTests
{
[Fact]
public void TestReturnStatus()
{
var v1Status = new V1Status
{
Message = "test message",
... | apache-2.0 | C# | |
756f251603291684c7ae3b3b99b0a58688fde1df | Create AssemblyInfo.cs | klauscam/EasyReportingTool,klauscam/EasyReportingTool | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Eas... | apache-2.0 | C# | |
82d5b67455fda6eba21b80cce18daac203638c33 | Add sudomodule | Auxes/Dogey | src/Dogey/Modules/SudoModule.cs | src/Dogey/Modules/SudoModule.cs | using Discord.Commands;
using Discord.WebSocket;
using System;
using System.Threading.Tasks;
namespace Dogey.Modules
{
[RequireOwner]
[RequireEnabled]
public class SudoModule : DogeyModuleBase
{
private readonly CommandHandler _handler;
private readonly IServiceProvider _provider;
... | apache-2.0 | C# | |
744c711f81642efa6e1c4370683d1b38f34420cd | add google map helper | JeffreySu/WxOpen,JeffreySu/WeiXinMPSDK,lishewen/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,down4u/WeiXinMPSDK,mc7246/WeiXinMPSDK,mc7246/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,lishewen/WeiXinMPSDK,down4u/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,JeffreySu/WeiXinMPSDK,jiehanlin/WeiXinMPSDK,mc7246/WeiXinMPSDK,wanddy/WeiXinMPSDK,wanddy/WeiXinMP... | Senparc.Weixin.MP/Senparc.Weixin.MP/Helpers/GoogleMapHelper.cs | Senparc.Weixin.MP/Senparc.Weixin.MP/Helpers/GoogleMapHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Senparc.Weixin.MP.Helpers
{
public static class GoogleMapHelper
{
/// <summary>
/// 获取谷歌今天静态地图Url。API介绍:https://developers.google.com/maps/documentation/staticmaps/?hl=zh-CN
/// </summary>
... | apache-2.0 | C# | |
af6b7c940bd1f0d5bdce524f28ac5c4530458243 | Add near-empty Game class | 12joan/hangman | game.cs | game.cs | using System;
namespace Hangman {
public class Game {
public Game() {
// Init Game
}
}
}
| unlicense | C# | |
487a0f6a5d7ae6046ca357cf324592cf0b84e90a | Add HeaderEnumerator tests (#19585) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Servers/Kestrel/Core/test/Http2HeadersEnumeratorTests.cs | src/Servers/Kestrel/Core/test/Http2HeadersEnumeratorTests.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 System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http;
usin... | apache-2.0 | C# | |
aec701972844d4e006bb5d50e7983b818fb39249 | Add missing file from b1c26a56 | ft-/arribasim-dev-tests,BogusCurry/arribasim-dev,ft-/opensim-optimizations-wip-extras,ft-/opensim-optimizations-wip-tests,M-O-S-E-S/opensim,M-O-S-E-S/opensim,RavenB/opensim,RavenB/opensim,BogusCurry/arribasim-dev,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,OpenSimian/opensimulator,bravelittlescientist/opensim-performance,M-O-... | OpenSim/Region/Framework/Scenes/ScenePresenceStateMachine.cs | OpenSim/Region/Framework/Scenes/ScenePresenceStateMachine.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# | |
90f76c54af06a514ade2a043c44865c203a2b0fe | Create Figurate.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Figurate.cs | Figurate.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler
{
class Figurate
{
/*
Triangle P3,n=n(n+1)/2 1, 3, 6, 10, 15, ...
n = 0.5 * (-1 (+-) sqrt(8*x + 1))
Square P4,n=n2 1, ... | mit | C# | |
214c472950e275a0ceac3777d7f0bbce46262474 | resolve Miguel's comments | iFreedive/monotouch-samples,sakthivelnagarajan/monotouch-samples,robinlaide/monotouch-samples,andypaul/monotouch-samples,nelzomal/monotouch-samples,hongnguyenpro/monotouch-samples,kingyond/monotouch-samples,YOTOV-LIMITED/monotouch-samples,W3SS/monotouch-samples,hongnguyenpro/monotouch-samples,haithemaraissia/monotouch-... | Chat/Chat/ChatInput/ChatInputView.cs | Chat/Chat/ChatInput/ChatInputView.cs | using System;
using UIKit;
using Foundation;
namespace Chat
{
public partial class ChatInputView : UIView
{
static readonly UIColor ButtonTextColorNormal = UIColor.FromRGB (1, 122, 255);
static readonly UIColor ButtonTextColorDisabled = UIColor.FromRGB (142, 142, 147);
static readonly UIFont ButtonFont = UIF... | using System;
using UIKit;
using Foundation;
namespace Chat
{
public partial class ChatInputView : UIView
{
static readonly UIColor ButtonTextColorNormal = UIColor.FromRGB (1, 122, 255);
static readonly UIColor ButtonTextColorDisabled = UIColor.FromRGB (142, 142, 147);
static readonly UIFont ButtonFont = UIF... | mit | C# |
a6301c2202a119b821844568e94d4239909526ad | Fix : PayloadAttribute static ctor might throw if dependant assembly not found. | bitcoinbrisbane/NBitcoin,dangershony/NStratis,thepunctuatedhorizon/BrickCoinAlpha.0.0.1,stratisproject/NStratis,NicolasDorier/NBitcoin,HermanSchoenfeld/NBitcoin,lontivero/NBitcoin,you21979/NBitcoin,MetacoSA/NBitcoin,MetacoSA/NBitcoin | NBitcoin/Protocol/PayloadAttribute.cs | NBitcoin/Protocol/PayloadAttribute.cs | using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBitcoin.Protocol
{
[AttributeUsage(AttributeTargets.Class)]
public class PayloadAttribute : Attribute
{
static Dictionary<string, Type> _NameToType;
... | using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBitcoin.Protocol
{
[AttributeUsage(AttributeTargets.Class)]
public class PayloadAttribute : Attribute
{
static Dictionary<string, Type> _NameToType;
... | mit | C# |
fca82c97e00def2cca3f81d3f581564814284062 | Increment version to 0.2 | TraceRouter/bitcoinsharp,xingh/bitcoinsharp,Echelon78/bitcoinsharp,shanecelis/bitcoinsharp,coverband/bitcoinsharp,useris20x/bitcoinsharp,Psiman62/bitcoinsharp,karolekm/bitcoinsharp,dib0/bitcoinsharp | src/Core/Properties/AssemblyInfo.cs | src/Core/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: Assembly... | 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: Assembly... | apache-2.0 | C# |
a40677619eab81bf205432f66de21e20f1dc6e22 | add DomainModelExtensions | tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web | src/Tugberk.Persistance.SqlServer/Stores/DomainModelExtensions.cs | src/Tugberk.Persistance.SqlServer/Stores/DomainModelExtensions.cs | using Microsoft.AspNetCore.Identity;
using Tugberk.Domain;
namespace Tugberk.Persistance.SqlServer.Posts
{
public static class DomainModelExtensions
{
public static User ToDomainModel(this IdentityUser user) =>
new User
{
Id = user.Id,
Name = us... | agpl-3.0 | C# | |
2bf0b5f33f388c57cb6eea322ff3a1adc2aff2f2 | include selected deprecated facilities for easier experimentation with consequence finding over .NET | kyledewey/z3,conceptofproof/z3,wujunzero/z3,conceptofproof/z3,jirislaby/z3,seahorn/z3,seahorn/z3,kyledewey/z3,jirislaby/z3,conceptofproof/z3,wujunzero/z3,mschlaipfer/z3,conceptofproof/z3,kyledewey/z3,conceptofproof/z3,wujunzero/z3,mschlaipfer/z3,jirislaby/z3,kyledewey/z3,seahorn/z3,mschlaipfer/z3,jirislaby/z3,wujunzero... | src/api/dotnet/Deprecated.cs | src/api/dotnet/Deprecated.cs | /*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
Deprecated.cs
Abstract:
Expose deprecated features for use from the managed API
those who use them for experiments.
Author:
Christoph Wintersteiger (cwinter) 2012-03-15
Notes:
--*/
using System;
using System.Collections.Generic;
us... | mit | C# | |
a8de134b61fdae36eec36366b88bae4bd418eeb7 | Remove attributes of an ODB++ job | sts-CAD-Software/PCB-Investigator-Scripts | RemoveAttributesOfCMPs_All.cs | RemoveAttributesOfCMPs_All.cs | //-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 27.05.2015
// Autor Gruber Fabio
//
// Clear Attributes of components.
//-----------------------------------------------------------------------------------
using System;
... | bsd-3-clause | C# | |
f92b20be93117ddfd06f6b7623c92b79c4aa1001 | Create String-Reversal.cs | DeanCabral/Code-Snippets | Console/String-Reversal.cs | Console/String-Reversal.cs | class StringReversal
{
static void Main(string[] args)
{
GetUserInput();
}
static void GetUserInput()
{
string input = "";
Console.Write("Enter a word: ");
input = Console.ReadLine();
Console.WriteLine("The revers... | mit | C# | |
f13f1738cfb84edecac0583894becc960d56f28e | Add Profiler class | y-iihoshi/ThScoreFileConverter,y-iihoshi/ThScoreFileConverter | ThScoreFileConverter/Profiler.cs | ThScoreFileConverter/Profiler.cs | using System;
using System.Diagnostics;
namespace ThScoreFileConverter
{
/// <summary>
/// Dispose パターンを利用した処理時間計測クラス
/// </summary>
class Profiler : IDisposable
{
/// <summary>
/// 破棄済みかどうかを示すフラグ
/// </summary>
protected bool disposed;
/// <... | bsd-2-clause | C# | |
1e40188c59e73a428b1123c530668a5c7448b2e9 | Remove unnecessary usings | naoey/osu-framework,EVAST9919/osu-framework,default0/osu-framework,paparony03/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,paparony03/osu-framework,ZLima12/osu-framework,default0/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,Nabile-Ra... | osu.Framework.VisualTests/Tests/TestCaseNonAsyncContainer.cs | osu.Framework.VisualTests/Tests/TestCaseNonAsyncContainer.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Testing;
namespace osu.Framework.VisualTests.Tests
... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Linq;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Testing;
namespac... | mit | C# |
3b9d3089c61f6a93b9c4f2b0e5bf930fdc35979d | Add basic test coverage for solid border colour | smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework | osu.Framework.Tests/Visual/Drawables/TestSceneBorderColour.cs | osu.Framework.Tests/Visual/Drawables/TestSceneBorderColour.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.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osuTK;
namespace osu.Framework.T... | mit | C# | |
e5266fe493bd5fc205f17d65a6a14a222a410df9 | add DB2Dialect custom | levid-gc/IdentityServer3.Dapper | source/IdentityServer3.Dapper/Sql/DB2DialectCustom.cs | source/IdentityServer3.Dapper/Sql/DB2DialectCustom.cs | using DapperExtensions.Sql;
namespace IdentityServer3.Dapper.Sql
{
public class DB2DialectCustom : DB2Dialect
{
// if we use the default '"' character for OpenQuote and CloseQuote, it can results in errors,
// because properties of our entities and column names of tables does not match exactly... | apache-2.0 | C# | |
985d1a3133e5ad99197b809c48c95277b52c7f9f | Add manifest info | jamesmontemagno/GeolocatorPlugin,jamesmontemagno/GeolocatorPlugin | src/Geolocator.Plugin/Android/ManifestInfo.android.cs | src/Geolocator.Plugin/Android/ManifestInfo.android.cs | using Android.App;
[assembly: UsesPermission(Android.Manifest.Permission.AccessCoarseLocation)]
[assembly: UsesPermission(Android.Manifest.Permission.AccessFineLocation)]
//Required when targeting Android API 21+
[assembly: UsesFeature("android.hardware.location.gps")]
[assembly: UsesFeature("android.hardware.locatio... | mit | C# | |
662fdba770ea350bae329d9bf53d2cd1bd0c26ae | Add a script to draw all spring joints connected to an object, for debugging. | jawa0/JabaUnityScripts | Assets/JabaScripts/DebugDrawSpringJoints.cs | Assets/JabaScripts/DebugDrawSpringJoints.cs | // The MIT License (MIT)
//
// Copyright (c) 2015 Jabavu W. Adams.
//
// 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 us... | mit | C# | |
c5664d5de677c7384e6f7ba9481729dc4624f4ca | Add missing file 2/2 | Albeoris/Memoria,Albeoris/Memoria,Albeoris/Memoria,Albeoris/Memoria | Assembly-CSharp/Memoria/Configuration/Structure/ModSection.cs | Assembly-CSharp/Memoria/Configuration/Structure/ModSection.cs | using System;
using Memoria.Prime.Ini;
namespace Memoria
{
public sealed partial class Configuration
{
private sealed class ModSection : IniSection
{
public readonly IniArray<String> FolderNames;
public ModSection() : base(nameof(ModSection), true)
... | mit | C# | |
7d08784a2ae3d5292e63ff35a3c7ee7ffe7ac122 | Add 'CascaraBool64' | whampson/bft-spec,whampson/cascara | Src/WHampson.Cascara/Types/CascaraBool64.cs | Src/WHampson.Cascara/Types/CascaraBool64.cs | #region License
/* Copyright (c) 2017 Wes Hampson
*
* 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, modify, ... | mit | C# | |
77e345ae7f6429498cea0e08dfa737befa7aa164 | Add LegacyGlobalOptionsWorkspaceService for OmniSharp EA | mavasani/roslyn,mavasani/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,dotnet/roslyn,shyamnamboodiripad/roslyn,CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,dotnet/roslyn,bartdesmet/roslyn,jasonmalinowski/roslyn,bartdesmet/roslyn,CyrusNajmabadi/roslyn,shyamnamboodiripad/rosl... | src/Tools/ExternalAccess/OmniSharp/Options/OmnisharpLegacyGlobalOptionsWorkspaceService.cs | src/Tools/ExternalAccess/OmniSharp/Options/OmnisharpLegacyGlobalOptionsWorkspaceService.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.Composition;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.CodeG... | mit | C# | |
4b74aaa36c71a1cf9aecae985dd6407b5ae58c59 | add file | VqSoft/VqSoftFramework | VqSoft.Framework/VqSoft.Framework.Common/Utils/UrlHelperVq.cs | VqSoft.Framework/VqSoft.Framework.Common/Utils/UrlHelperVq.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace VqSoft.Framework.Common.Utils
{
public sealed class UrlHelperVq
{
private UrlHelperVq() { }
/// <summary>
/// To check if... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.