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
25e0296c26f63c2d3c5f0d1713b5ee11832250ea
add new cshtml
ZanyGnu/GitRepoStats
RepoStats/views/repository.cshtml
RepoStats/views/repository.cshtml
<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <script type='text/javascript' src='http://code.jquery.com/jquery-1.9.1.js'></script> <script type='text/javascript' src='http://code.highcharts.com/highcharts.js'></script> <script type='text/javascript' src='http://code.highcha...
mit
C#
fdf249fc2da51afddbe52d7f11914e0c279fa2d8
Create PositionSlider.cs
xxmon/unity
PositionSlider.cs
PositionSlider.cs
using UnityEngine; using System.Collections; public class PositionSlider : MonoBehaviour { public float speed = 0.5f; public float slider = 0.0f; public Transform startMarker; public Transform endMarker; public enum Moving { Stop = 0, Forward = 1, Backward = 2 } public enum Bounce { None = 0, Pin...
mit
C#
8e85062ce5cd7bd154d415fd61ed2e56f9e69629
Add AccommodationType
bratislav94/BookingApp,bratislav94/BookingApp,bratislav94/BookingApp,bratislav94/BookingApp
BookingApp/BookingApp/BookingApp/BookingApp/Models/AccommodationType.cs
BookingApp/BookingApp/BookingApp/BookingApp/Models/AccommodationType.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace BookingApp.Models { public class AccommodationType { public int Id { get; set; } public string Name { get; set; } public IList<Accommodation> Accommodations { get; set; } } }
mit
C#
1c79fbc97406c1b45be68459602fea97258a730c
Add markdown view
hishamco/MarkdownViewEngine
src/MarkdownViewEngine/MarkdownView.cs
src/MarkdownViewEngine/MarkdownView.cs
using Microsoft.AspNetCore.Mvc.Rendering; using Microsoft.AspNetCore.Mvc.ViewEngines; using System; using System.Threading.Tasks; namespace MarkdownViewEngine { public class MarkdownView : IView { private readonly IMarkdownViewEngine _viewEngine; public MarkdownView( IMarkdownView...
mit
C#
739f15d3c327dec5892e2690246750476fc3e3e4
Add basic PngFile wrapper for chunks.
bojanrajkovic/pingu
src/Pingu/PngFile.cs
src/Pingu/PngFile.cs
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; namespace Pingu { public class PngFile : IEnumerable<Chunk> { List<Chunk> chunksToWrite = new List<Chunk>(); static readonly byte[] magic = new byte[] { 0x89, 0x50, 0x4e, 0...
mit
C#
f8e301afa8e87402b501b216d8089abcdff41893
Add CssFunctionTests
Carbon/Css
src/Carbon.Css.Tests/CssFunctionTests.cs
src/Carbon.Css.Tests/CssFunctionTests.cs
using Xunit; namespace Carbon.Css.Tests { public class CssFunctionTests { [Fact] public void ParseFunctionWithLeadingWhitespaceInArgument() { var sheet = StyleSheet.Parse("div { background-color: rgba( 42, 45, 53, 0.7); }"); Assert.Equal("div { bac...
mit
C#
c1bdb6bcfa1572a74fb37544898998bfebb3f394
Add usability overload for IMockFactory
Moq/moq
src/Moq/Moq.Sdk/MockFactoryExtensions.cs
src/Moq/Moq.Sdk/MockFactoryExtensions.cs
using System; using System.ComponentModel; using System.Reflection; namespace Moq.Sdk { /// <summary> /// Usability functions for <see cref="IMockFactory"/>. /// </summary> [EditorBrowsable(EditorBrowsableState.Advanced)] public static class MockFactoryExtensions { /// <summary> ...
apache-2.0
C#
fab63b21dcb6b47d66b2ed800b125f806220b9cf
Create diamond1.cs
ashoktandan007/csharp,wchild30/asterisk
diamond1.cs
diamond1.cs
using System; class Program { static int a = 5; static void Main(string[] args) { for (int i = 1; i <= a; i++) { for (int k = a; k >= i; k--) { Console.Write(" "); } for (int j = 1...
apache-2.0
C#
717ce1a79a34aac99fbc5dd1a4eb104f9d998b61
Add missing files
InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform
InfinniPlatform.RestfulApi/ActionUnits/ActionUnitGetIndexStorageInfo.cs
InfinniPlatform.RestfulApi/ActionUnits/ActionUnitGetIndexStorageInfo.cs
using InfinniPlatform.Api.ContextTypes; using InfinniPlatform.RestfulApi.Extensions; namespace InfinniPlatform.RestfulApi.ActionUnits { public sealed class ActionUnitGetIndexStorageInfo { public void Action(IApplyResultContext target) { target.Result = IndexedStorageExtension.GetStatus(); } } }
agpl-3.0
C#
83a21740d35a87bb59317fb95921d8e02d0b79c6
Add Dummy main
ekonbenefits/dynamitey,ekonbenefits/dynamitey
Tests/Program.cs
Tests/Program.cs
namespace Dynamitey.Tests { public class Program { public static void Main() { } } }
apache-2.0
C#
a2570e597f6d43cb91c0331e06f95822b4d6f8dc
Revert "ファイル削除"
shigeki0083/TestRepository
HelloWorld/HelloWorld/Class1.cs
HelloWorld/HelloWorld/Class1.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HelloWorld { class Class1 { //あとで削除するクラス。 } }
bsd-3-clause
C#
ff8a816a81ba97c704c4d1441e30d0c9fc14569c
Create ComputeTransHashSHA2.cs
AuthorizeNet/sample-code-csharp
Sha512/ComputeTransHashSHA2.cs
Sha512/ComputeTransHashSHA2.cs
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace Sha512 { class ComputeTransHashSHA2 { static void Main(string[] args) { String key = "14B9609FFE2378449B3C0886046DD3B0F20...
mit
C#
68398dee7111ae6c3f9124f8f1c076b8816e4130
Add NamespaceDoc
YallaDotNet/Yalla.GoogleApis
src/Yalla.GoogleApis/NamespaceDoc.cs
src/Yalla.GoogleApis/NamespaceDoc.cs
namespace Yalla.GoogleApis { /// <summary> /// YALLA.NET Google APIs classes. /// </summary> [System.Runtime.CompilerServices.CompilerGenerated] sealed class NamespaceDoc { } }
apache-2.0
C#
5640a1b181a4a68f1362c172d8200399b0e91fcf
Create 20180227.cs
twilightspike/cuddly-disco,twilightspike/cuddly-disco
main/20180227.cs
main/20180227.cs
using System; using System.Collections.Generic;
mit
C#
96c8a196dd24de3375bc3068761c7117bd3f7bbd
add Microsoft Logger Extensions
EsWork/Es.Logging,EsWork/Es.Logging
src/Es.Microsoft.Log/LoggerExtensions.cs
src/Es.Microsoft.Log/LoggerExtensions.cs
using System; namespace Microsoft.Extensions.Logging { /// <summary> /// Microsoft Logger Extensions /// </summary> public static class LoggerExtensions { /// <summary> /// Errors the specified message. /// </summary> /// <param name="logger">The logger.</param> ...
mit
C#
287554abde15a80c83f1efebdcedb4d323431f97
Update ConcurrentUnitOfWork.cs
ashic/AggregateSource,alexeyzimarev/AggregateSource,yreynhout/AggregateSource
src/AggregateSource/ConcurrentUnitOfWork.cs
src/AggregateSource/ConcurrentUnitOfWork.cs
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; namespace AggregateSource { /// <summary> /// Tracks changes of attached aggregates. /// </summary> public class ConcurrentUnitOfWork { readonly ConcurrentDictionary<string, Aggregate> _aggregates; ...
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; namespace AggregateSource { /// <summary> /// Tracks changes of attached aggregates. /// </summary> public class ConcurrentUnitOfWork { readonly ConcurrentDictionary<string, Aggregate> _aggregates; ...
bsd-3-clause
C#
e30159c515722aa78132a45e3bcc84ffc0c527cb
Create HelloWorld.cs
andredarcie/csharp-guide
HelloWorld.cs
HelloWorld.cs
using System; namespace HelloWorldApplication { class HelloWorld { static void Main(string[] args) { Console.WriteLine("Hello World"); } } }
mit
C#
3c4fb95c39527a3b8a69e325bfdc3f4331758a4d
Rename buttons.
wesbonelli/sensus,predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,predictive-technology-laboratory/sensus,jtb8vm/sensus,wesbonelli/sensus,jtb8vm/sensus,wesbonelli/sensus,jtb8vm/sensus,predictive-technology-laboratory/sensus,wesbonelli/sensus,jtb8vm/sensus,predictive-technology-laboratory...
SensusUI/HomePage.cs
SensusUI/HomePage.cs
// Copyright 2014 The Rector & Visitors of the University of Virginia // // 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 re...
// Copyright 2014 The Rector & Visitors of the University of Virginia // // 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 re...
apache-2.0
C#
009cc3dcc22a83063b08ce6b8a228452479d90e1
add ResUpdate
wuhuilin5/UnityDemo
Assets/Scripts/ResUpdate.cs
Assets/Scripts/ResUpdate.cs
using UnityEngine; using System.Collections; public class ResUpdate : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
mit
C#
242f2d654e48352730a328b23ef1300d1e20ef44
Add default edit display option (#6339)
stevetayloruk/Orchard2,petedavis/Orchard2,stevetayloruk/Orchard2,petedavis/Orchard2,xkproject/Orchard2,xkproject/Orchard2,petedavis/Orchard2,OrchardCMS/Brochard,OrchardCMS/Brochard,stevetayloruk/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,OrchardCMS/Brochard,xkproject/Or...
src/OrchardCore.Modules/OrchardCore.PublishLater/Views/PublishLaterPart.Option.cshtml
src/OrchardCore.Modules/OrchardCore.PublishLater/Views/PublishLaterPart.Option.cshtml
@{ string currentEditor = Model.Editor; } <option value="" selected="@String.IsNullOrEmpty(currentEditor)">@T["Standard"]</option>
bsd-3-clause
C#
e4bf74e9c6d0be0af03274b48edd2f0ae9b13abc
Create SaveInHtmlFormat.cs
maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,ma...
Examples/CSharp/Files/Handling/SaveInHtmlFormat.cs
Examples/CSharp/Files/Handling/SaveInHtmlFormat.cs
using System.IO; using Aspose.Cells; namespace Aspose.Cells.Examples.Files.Handling { public class SaveInHtmlFormat { public static void Main(string[] args) { //ExStart:1 // The path to the documents directory. string dataDir = Aspose.Cells.Examples.Utils.Ge...
mit
C#
c32d4c89d4877ede1c480017b8feb2f182b49f7b
Make InvalidDataException serialization ctor private
JosephTremoulet/corefx,elijah6/corefx,twsouthwick/corefx,nbarbettini/corefx,alexperovich/corefx,zhenlan/corefx,krytarowski/corefx,gkhanna79/corefx,mazong1123/corefx,lggomez/corefx,marksmeltzer/corefx,Petermarcu/corefx,elijah6/corefx,elijah6/corefx,ravimeda/corefx,seanshpark/corefx,nchikanov/corefx,stone-li/corefx,the-d...
src/System.IO/src/System/IO/InvalidDataException.cs
src/System.IO/src/System/IO/InvalidDataException.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.Serialization; namespace System.IO { [Serializable] public sealed class InvalidDataExc...
// 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.Serialization; namespace System.IO { [Serializable] public sealed class InvalidDataExc...
mit
C#
bcbde7547ce67ca10be1df98c637e366aa4361ff
Add TestResult.cs hidden by .gitignore
dnstech/MsTestRunner
MsTestRunner/TestResult.cs
MsTestRunner/TestResult.cs
namespace MsTestRunner { using System; using System.Security.Cryptography; public sealed class TestResult { private static readonly HashAlgorithm Provider = new SHA1CryptoServiceProvider(); public TestResult(string name, string output, bool success, TimeSpan durat...
mit
C#
6e5a1924a1657f586d0f3371e92200f19b18dda2
Create BahamaMamasLoader.cs
ardaozkal/SmallGTAVMods
BahamaMamasLoader.cs
BahamaMamasLoader.cs
using System; using GTA; using System.Net; using System.IO; using GTA.Native; using System.Drawing; using GTA.Math; public class BahamaMamas : Script { Blip asd; bool firstrun = true; bool debugmode = false; public BahamaMamas() { Tick += OnTick; asd = World.CreateBlip(new Vector3(-1387.975f...
mit
C#
f8c3d7594df377262731528f6a5c585da63f13cc
Create Test.cs
cwesnow/Net_Fiddle
2017Aug/Test.cs
2017Aug/Test.cs
using System; public class Program { public static void Main() { // 10 Questions string[] questions = new string[10]{ "Question 1:", "Question 2:", "Question 3:", "Question 4:", "Question 5:", "Question 6:", "Question 7:", "Question 8:", "Question 9:", "Question 10:" }; /...
mit
C#
fdaddf4cf1cc7f1ff30fc9a15b8b3a3a4416c13c
Include lost file MemberValueSourceTransformSubtaskTests.
briantyler/bijectiv
Sources/Bijectiv.Tests/KernelFactory/MemberValueSourceTransformSubtaskTests.cs
Sources/Bijectiv.Tests/KernelFactory/MemberValueSourceTransformSubtaskTests.cs
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="MemberValueSourceTransformSubtaskTests.cs" company="Bijectiv"> // The MIT License (MIT) // // Copyright (c) 2014 Brian Tyler // // Permission is hereby granted, free o...
mit
C#
47be2c11f1ea6892f6ba4b58e52185539533ae62
Create Program.cs
rus100/gomoku
Program.cs
Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace gomoku { static class Program { /// <summary> /// Главная точка входа для приложения. /// </summary> [STAThread] static void Main() { App...
unlicense
C#
d850d4f24702d5c3222d29e9d2df8b00bf61bec7
Add Ticket and TicketStatus
sstae/contactus,sstae/contactus,sstae/contactus
ContactUs.Models/Ticket.cs
ContactUs.Models/Ticket.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ContactUs.Models { public class Ticket { public string Id { get; set; } public DateTime LastActivityDate { get; set; } public string Title { get; set; } ...
mit
C#
1ce9d2d973954bd4ae43e782c37e33c88153b1f6
add integration test to show custom profile service is invoked
MienDev/IdentityServer4,IdentityServer/IdentityServer4,MienDev/IdentityServer4,MienDev/IdentityServer4,IdentityServer/IdentityServer4,chrisowhite/IdentityServer4,IdentityServer/IdentityServer4,IdentityServer/IdentityServer4,MienDev/IdentityServer4,chrisowhite/IdentityServer4,chrisowhite/IdentityServer4
test/IdentityServer.IntegrationTests/Extensibility/CustomProfileServiceTests.cs
test/IdentityServer.IntegrationTests/Extensibility/CustomProfileServiceTests.cs
using System.Net; using System.Security.Claims; using System.Text; using System.Threading.Tasks; using FluentAssertions; using IdentityModel; using IdentityServer4.IntegrationTests.Common; using IdentityServer4.Models; using IdentityServer4.Services; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Jso...
apache-2.0
C#
0a2beeca0c3db86f2675141d0418836c7608130b
Add Messaging.SendTo type to hold message's receivers rules
Ontica/Empiria.Extended
Messaging/RootTypes/SendTo.cs
Messaging/RootTypes/SendTo.cs
/* Empiria Extensions Framework ****************************************************************************** * * * Module : Messaging Services Component : Messaging Core ...
agpl-3.0
C#
0c6aadb897aa361fca573b2fc981f21365b186ee
Add a test for design time builds #1846
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/DesignTimeBuildIntegrationTest.cs
test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/DesignTimeBuildIntegrationTest.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.Threading.Tasks; using Xunit; namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests { public class DesignTimeBuildIntegrationT...
apache-2.0
C#
cd6386b470775ded7efa79adfd5dcd0d4465e273
Swap bits
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
ElementsOfProgrammingInterviews/PrimitiveTypes/swap_bits.cs
ElementsOfProgrammingInterviews/PrimitiveTypes/swap_bits.cs
using System; class Program { static int swap(int x, int l, int r) { if (((x >> l) & 1) != ((x >> r) & 1)) { return x ^= (1 << l) | (1 << r); } return x; } public static void Main(string[] args) { int x = new Random().Next(32, 1000); int y = swap(x, 2, ...
mit
C#
7d695f4fd4335fac2094c9c92ecf0eb2f43e31ad
Add Equality comparison tests
Ruhrpottpatriot/SemanticVersion
test/SemanticVersionTest/EqualityTests.cs
test/SemanticVersionTest/EqualityTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace SemanticVersionTest { using Semver; using Xunit; public class EqualityTests { [Fact] public void Equals() { SemanticVersion left = new SemanticVersion(1, 0, ...
mit
C#
e934c5cba9474a8e769f19922694c96c0f06f282
Create AssemblyInfo.cs
burnsba/CsJsMvvm,burnsba/CsJsMvvm
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("Bui...
apache-2.0
C#
96cbf46cd541f700df5293c53d4bab915a87bab1
Create Facts.cs
Rewtek/GameLibrary
Code/Rewtek.GameLibrary/Facts.cs
Code/Rewtek.GameLibrary/Facts.cs
#region Copyright // -------------------------------------------------------------------------------------------------------------------- // <copyright file="Facts.cs" company="Rewtek Network"> // Copyright (c) 2014 Rewtek Network (www.rewtek.net) // // Permission is hereby granted, free of charge, to a...
mit
C#
7c35004d8006e273db1c3f77eb3b51fb89dbc95c
Add test cases for crashes involving integer casts
dadhi/FastExpressionCompiler
test/FastExpressionCompiler.UnitTests/CastTests.cs
test/FastExpressionCompiler.UnitTests/CastTests.cs
using System; using NUnit.Framework; namespace FastExpressionCompiler.UnitTests { [TestFixture] public class CastTests { [Test] public void Expressions_with_small_int_casts_should_not_crash() { //currently crashes with NullReferenceException var x = 65535; ...
mit
C#
090c829f252c5e096065e05f8948859ef5824be1
Add SharedSecret class
ektrah/nsec
src/Cryptography/SharedSecret.cs
src/Cryptography/SharedSecret.cs
using System; using System.Diagnostics; using static Interop.Libsodium; namespace NSec.Cryptography { [DebuggerDisplay("Size = {Size}")] public sealed class SharedSecret : IDisposable { private readonly SecureMemoryHandle _handle; internal SharedSecret( SecureMemoryHandle handl...
mit
C#
d6c9f76c5c5eeae49cc645c8977c3c7182ff39a6
Add missing file
jlewin/agg-sharp,larsbrubaker/agg-sharp,MatterHackers/agg-sharp
AggVisualizers/PlatingHelper.cs
AggVisualizers/PlatingHelper.cs
using System.Collections.Generic; using ClipperLib; using MatterHackers.Agg; using MatterHackers.Agg.VertexSource; namespace AggVisualizers { using Polygon = List<IntPoint>; using Polygons = List<List<IntPoint>>; public static class PlatingHelper { public static VertexStorage PolygonToVertexStorage(Polygon po...
bsd-2-clause
C#
3ee9a3eb2263672b8df44029965dc80206ab9c52
Fix typo
MediaBrowser/Emby.Plugins,Pengwyns/Emby.Plugins,heksesang/Emby.Plugins,heksesang/Emby.Plugins,hamstercat/Emby.Plugins,SvenVandenbrande/Emby.Plugins,lalmanzar/MediaBrowser.Plugins,SvenVandenbrande/Emby.Plugins,Pengwyns/Emby.Plugins,hamstercat/Emby.Plugins,heksesang/Emby.Plugins,MediaBrowser/Emby.Plugins,lalmanzar/MediaB...
Dropbox/RestServices/DropboxRestfulService.cs
Dropbox/RestServices/DropboxRestfulService.cs
using System; using System.Net; using System.Threading; using System.Threading.Tasks; using Dropbox.Api; using Dropbox.Configuration; using MediaBrowser.Controller.Net; namespace Dropbox.RestServices { [Authenticated] public class DropboxRestfulService : IRestfulService { private readonly IConfigu...
using System; using System.Net; using System.Threading; using System.Threading.Tasks; using Dropbox.Api; using Dropbox.Configuration; using MediaBrowser.Controller.Net; namespace Dropbox.RestServices { [Authenticated] public class DropboxRestfulService2 : IRestfulService { private readonly IConfig...
mit
C#
28ae8fde65fc00b3dadabe1afa05b3ad8960c7b1
Update ApplicationDbContextFactory
danroth27/templating,danroth27/templating,mlorbetske/templating,seancpeters/templating,seancpeters/templating,seancpeters/templating,lambdakris/templating,mlorbetske/templating,lambdakris/templating,seancpeters/templating,lambdakris/templating,danroth27/templating
template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/StarterWeb-CSharp/Data/ApplicationDbContextFactory.cs
template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/StarterWeb-CSharp/Data/ApplicationDbContextFactory.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.Extensions.DependencyInjection; namespace Company.WebApplication1.Data { public class ApplicationDbContextFactory : IDbContextFactory<ApplicationDbCon...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.Extensions.DependencyInjection; namespace Company.WebApplication1.Data { public class ApplicationDbContextFactory : IDbContextFactory<ApplicationDbCon...
mit
C#
db1416a086cc9ece8bca9970c83c473b70034072
Update copyright
deluxetiky/FluentValidation,pacificIT/FluentValidation,IRlyDontKnow/FluentValidation,olcayseker/FluentValidation,roend83/FluentValidation,roend83/FluentValidation,glorylee/FluentValidation,cecilphillip/FluentValidation,mgmoody42/FluentValidation,robv8r/FluentValidation,ruisebastiao/FluentValidation,GDoronin/FluentValid...
src/CommonAssemblyInfo.cs
src/CommonAssemblyInfo.cs
#region License // Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk) // // 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...
#region License // Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk) // // 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...
apache-2.0
C#
5216176ab63a70e0504008952507514ef44627f0
Add SqlErrorHandling helper.
sharpjs/PSql,sharpjs/PSql
PSql.Core/_Utilities/SqlErrorHandling.cs
PSql.Core/_Utilities/SqlErrorHandling.cs
using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using static System.Text.RegularExpressions.RegexOptions; namespace PSql { public static class SqlErrorHandling { public static string Apply(IEnumerable<string> batches) { var builder = new S...
isc
C#
b7a6765760c8f946ff4391ec11fa897786b05d67
Test case
AlexCatarino/pythonnet,AlexCatarino/pythonnet,AlexCatarino/pythonnet,AlexCatarino/pythonnet
src/embed_tests/QCTest.cs
src/embed_tests/QCTest.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using Python.Runtime; namespace Python.EmbeddingTest { class QCTests { [Test] /// Test case for issue /// https://quantconnect.slack.com/archives/G51920EN4/p1615418516028900 ...
mit
C#
cd8912124e1c0c468a75345edcf3a5447ebb4060
Add Q202
txchen/localleet
csharp/Q202_HappyNumber.cs
csharp/Q202_HappyNumber.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. // // For example, given the range [5, 7], you should return 4. // https://leetcode.com/problems/b...
mit
C#
ecc6bcb7e6c69885587991be219d19331f2a1027
fix build problem for core
thepunctuatedhorizon/BrickCoinAlpha.0.0.1,NicolasDorier/NBitcoin,MetacoSA/NBitcoin,MetacoSA/NBitcoin,stratisproject/NStratis,lontivero/NBitcoin,dangershony/NStratis
NBitcoin/JsonConverters/DateTimeToUnixTimeConverter.cs
NBitcoin/JsonConverters/DateTimeToUnixTimeConverter.cs
using NBitcoin; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Reflection; namespace NBitcoin.JsonConverters { #if !NOJSONNET public #else internal #endif class DateTimeToUnixTimeConverter : JsonConverter { public override bool ...
using NBitcoin; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace NBitcoin.JsonConverters { #if !NOJSONNET public #else internal #endif class DateTimeToUnixTimeConverter : JsonConverter { public override bool CanConvert(Type objectTyp...
mit
C#
5c9f369316895c1d2f33d8a048a6b6512a932004
Update Project Struct
thorgeirk11/code-cracker,AlbertoMonteiro/code-cracker,thomaslevesque/code-cracker,baks/code-cracker,caioadz/code-cracker,adraut/code-cracker,kindermannhubert/code-cracker,andrecarlucci/code-cracker,dmgandini/code-cracker,carloscds/code-cracker,dlsteuer/code-cracker,akamud/code-cracker,jhancock93/code-cracker,jwooley/co...
src/CodeCracker/Style/PropertyPrivateSetAnalyzer.cs
src/CodeCracker/Style/PropertyPrivateSetAnalyzer.cs
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using System; using System.Collections.Immutable; namespace CodeCracker.Style { [DiagnosticAnalyzer(LanguageNames.CSharp)] public class PropertyPrivateSetAna...
apache-2.0
C#
8f0136ddd3cf2bad312cf24f7ee2992f8e46820a
Remove commented line.
Esri/arcgis-runtime-samples-dotnet,Arc3D/arcgis-runtime-samples-dotnet,AkshayHarshe/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet,sharifulgeo/arcgis-runtime-samples-dotnet,Tyshark9/arcgis-runtime-samples-dotnet
src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/DynamicServiceLayers/DynamicLayerLabeling.xaml.cs
src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/DynamicServiceLayers/DynamicLayerLabeling.xaml.cs
using Esri.ArcGISRuntime.ArcGISServices; using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Layers; using Esri.ArcGISRuntime.Symbology; using System.Linq; using System.Windows.Controls; using System.Windows.Media; namespace ArcGISRuntimeSDKDotNet_DesktopSamples.Samples.DynamicLayers { /// <summary> /...
using Esri.ArcGISRuntime.ArcGISServices; using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Layers; using Esri.ArcGISRuntime.Symbology; using System.Linq; using System.Windows.Controls; using System.Windows.Media; namespace ArcGISRuntimeSDKDotNet_DesktopSamples.Samples.DynamicLayers { /// <summary> /...
apache-2.0
C#
d6c6a6976008e6cd0c409dc6827db90e6b6a50c7
add IsValidUrl() test
collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists
tests/FilterLists.Agent.Tests/UriExtensionsTests.cs
tests/FilterLists.Agent.Tests/UriExtensionsTests.cs
using System; using FilterLists.Agent.Extensions; using Xunit; namespace FilterLists.Agent.Tests { public class UriExtensionsTests { [Fact] public void IsValidUrl_WithValidUrl_ReturnsTrue() { const string uriString = "https://www.google.com/"; var uri = new Uri(...
mit
C#
92de481f3121d6f4bf03c754efb69d256f8e5ccd
add Q001
txchen/csharp-leet,txchen/csharp-leet
solutions/Q001.cs
solutions/Q001.cs
public class Solution { public int[] TwoSum(int[] nums, int target) { var dict = new Dictionary<int, int>(); for (int i = 0; i < nums.Length; i++) { if (dict.ContainsKey(target - nums[i])) { return new int[] { dict[target - nums[i]] + 1, i + 1 }; } ...
mit
C#
33b3bee9d29a5de2a8cf54050716977b5850cdfa
Create 19.cs
rikkus/adventofcode2016,rikkus/adventofcode2016
19.cs
19.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AoC2016_19 { class Elf { public int Index { get; set; } public int Value { get; set; } public Elf Next { get; set; } } class Program { static...
mit
C#
4b4c385c90a8f8587469169143d4ce1e3eaf0e15
Test to verify that minimal message body can be redelivered via the delayed transport (serialization issue)
MassTransit/MassTransit,phatboyg/MassTransit,MassTransit/MassTransit,phatboyg/MassTransit
tests/MassTransit.Tests/MinimalBody_Specs.cs
tests/MassTransit.Tests/MinimalBody_Specs.cs
namespace MassTransit.Tests { using System; using System.Linq; using System.Threading.Tasks; using MassTransit.Serialization; using NUnit.Framework; using TestFramework; using TestFramework.Messages; [TestFixture] public class When_consuming_a_minimal_message_body : InMemor...
apache-2.0
C#
f567d91dcb1d6caa8265c441f9f951cfd2a5de05
Use Loop in TestCaseBufferedContainer
DrabWeb/osu-framework,Tom94/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,default0/osu-framework,peppy/osu-framework,naoey/osu-framework,DrabWeb/osu-framew...
osu.Framework.VisualTests/Tests/TestCaseBufferedContainer.cs
osu.Framework.VisualTests/Tests/TestCaseBufferedContainer.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; using osu.Framework.Graphics.Containers; using OpenTK; using System; 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 osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using OpenTK; using System; namespace osu.Framework.VisualTests.Tests { ...
mit
C#
c493f2642bdfe8a30d48f52b212f4710a93bf9e2
Create Operator.cs.
AIWolfSharp/AIWolfCore,AIWolfSharp/AIWolf_NET
AIWolfLib/Operator.cs
AIWolfLib/Operator.cs
// // Operator.cs // // Copyright (c) 2017 Takashi OTSUKI // // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // namespace AIWolf.Lib { #if JHELP /// <summary> /// 演算子 /// </summary> #else /// <summary> /// Enumeration type for operator. //...
mit
C#
6ddfa9e0566e0178bc6c21d2da6f1472f4920b59
update connector to latest changes
Clairety/ConnectMe,Clairety/ConnectMe,yakumo/BotBuilder,mmatkow/BotBuilder,mmatkow/BotBuilder,msft-shahins/BotBuilder,yakumo/BotBuilder,yakumo/BotBuilder,stevengum97/BotBuilder,stevengum97/BotBuilder,msft-shahins/BotBuilder,stevengum97/BotBuilder,dr-em/BotBuilder,mmatkow/BotBuilder,msft-shahins/BotBuilder,mmatkow/BotBu...
CSharp/Library/Microsoft.Bot.Connector/ErrorHandling.cs
CSharp/Library/Microsoft.Bot.Connector/ErrorHandling.cs
using Microsoft.Rest; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.Bot.Connector { public static class ErrorHandling { public static void HandleError(this HttpOperationResponse<object> ...
using Microsoft.Rest; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.Bot.Connector { public static class ErrorHandling { public static void HandleError(this HttpOperationResponse<object> ...
mit
C#
d5863b9c905bce35ae2025c51494f1a6524e7033
Remove dupes from list II
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/remove_duplicate_from_sorted_list_II.cs
LeetCode/remote/remove_duplicate_from_sorted_list_II.cs
// https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/ // Given a sorted linked list, delete all nodes that have duplicate numbers, // leaving only distinct numbers from the original list. // https://leetcode.com/submissions/detail/58844735/ // // Submission Details // 166 / 166 test cases ...
mit
C#
3e237b752e734d304032fa08c6a897bf7f6cdb27
add serializer
jonnii/SpeakEasy
src/Resticle/Serializer.cs
src/Resticle/Serializer.cs
using System; using Resticle.Serializers; namespace Resticle { public class Serializer { public static readonly Type Json = typeof(JsonSerializer); } }
apache-2.0
C#
6929dcba60d6b5cd66f4af30b57560c3fe3484db
Add tests for converting RGB with HSV
BigEggTools/PowerMode
PowerMode.Tests/Utils/ColorExtensionTest.cs
PowerMode.Tests/Utils/ColorExtensionTest.cs
namespace BigEgg.Tools.PowerMode.Tests.Utils { using System.Drawing; using System.Linq; using System.Reflection; using Microsoft.VisualStudio.TestTools.UnitTesting; using BigEgg.Tools.PowerMode.Utils; public class ColorExtensionTest { [TestClass] public class HSVConvert ...
mit
C#
decec4ebdcae1884b20a3b0d8555150a4db0ecac
Test - Add Tests against MassiveList
OdeToCode/biggy,upta/biggy,garethbrown/biggy,garethbrown/biggy,jjchiw/biggy,jjchiw/biggy,garethbrown/biggy,jjchiw/biggy,upta/biggy,OdeToCode/biggy,OdeToCode/biggy,xivSolutions/biggy,upta/biggy
Tests/MassiveList.cs
Tests/MassiveList.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; using Biggy; using Biggy.Massive; namespace Tests { [Trait("Massive", "")] public class MassiveList { MassiveSetup _setup = new MassiveSetup(); static string _connectionStrin...
bsd-3-clause
C#
db5f0e1813be6459e9bf6e5400fa842000e3021f
Create test.cs
Zayyy01/wax,Zayyy01/wax
test.cs
test.cs
using System; using NUnit.Framework; namespace UnitTests { [TestFixture] public class Test { [Test] public void test1 () { Assert.IsTrue (true); } } }
mit
C#
762594d5836568bd85058d86328b073dc62ac198
add index
Eliza-R/ApmathCloudRyzh,Eliza-R/ApmathCloudRyzh,Eliza-R/ApmathCloudRyzh
site/index.cshtml
site/index.cshtml
HW!!
mit
C#
ca4310f182b0fed7577b0ad7793748a29b379ebd
Add warnings helper class.
Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,Rolstenhouse/sarif-sdk,Rolstenhouse/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk,kschecht/sarif-sdk
src/Sarif/Warnings.cs
src/Sarif/Warnings.cs
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; namespace Microsoft.CodeAnalysis.Sarif { public static class Warnings { public const string WRN997_InvalidTarget = "WR...
mit
C#
09be7c07106677b28b0a77e82e27b4961764ca70
add interface
rlugojr/octokit.net,gabrielweyer/octokit.net,thedillonb/octokit.net,SmithAndr/octokit.net,octokit-net-test/octokit.net,brramos/octokit.net,nsrnnnnn/octokit.net,M-Zuber/octokit.net,hitesh97/octokit.net,SLdragon1989/octokit.net,naveensrinivasan/octokit.net,darrelmiller/octokit.net,adamralph/octokit.net,shiftkey-tester/oc...
Octokit.Reactive/Clients/IObservableRepoCollaboratorsClient.cs
Octokit.Reactive/Clients/IObservableRepoCollaboratorsClient.cs
using System; using System.Collections.Generic; using System.Reactive; namespace Octokit.Reactive { public interface IObservableRepoCollaboratorsClient { /// <summary> /// Gets all the available collaborators on this repo. /// </summary> /// <param name="owner">The owner of the...
mit
C#
828bfef153eae0167d963fc6d8a94cf4f41e6589
Add CasInt8
whampson/cascara,whampson/bft-spec
Src/WHampson.Cascara/Types/CasInt8.cs
Src/WHampson.Cascara/Types/CasInt8.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#
63e7aa04cc7f65ed89a640626ddd96e4e6e1bef1
add awscli cheatsheet
lesovsky/uber-scripts,lesovsky/uber-scripts,lesovsky/uber-scripts
cheatsheets/awscli.cs
cheatsheets/awscli.cs
dnf install awscli aws configure aws ec2 create-key-pair --key-name NAME # generate keypair for instances # create security group aws ec2 create-security-group --dry-run --group-name GROUPNAME --description "postgresql-consulting" # add rule to security group aws ec2 authorize-security-group-ingress --dry-run --...
mit
C#
8653f260e4afca78fbf39d2707aa599accdadf8e
Add MessageMatch.cs
nunit/nunit-console,nunit/nunit-console,nunit/nunit-console
src/interfaces/Framework/MessageMatch.cs
src/interfaces/Framework/MessageMatch.cs
// *********************************************************************** // Copyright (c) 2009 Charlie Poole // // 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,...
mit
C#
db017e4186f5ccb54263ac78ab44447914068d38
Add unit test.
jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr
test/HelloCoreClrApp.Test/Data/SetupDatabaseTaskTest.cs
test/HelloCoreClrApp.Test/Data/SetupDatabaseTaskTest.cs
using System.Threading.Tasks; using FakeItEasy; using HelloCoreClrApp.Data; using Xunit; namespace HelloCoreClrApp.Test.Data { public class SetupDatabaseTaskTest { [Fact] public async Task RunAsyncTest() { var dataservice = A.Fake<IDataService>(); var sut = new ...
mit
C#
1cf16038a708f1c586b6405b58bb3d70082cf2c5
Create IApplicableToSample
smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu
osu.Game/Rulesets/Mods/IApplicableToSample.cs
osu.Game/Rulesets/Mods/IApplicableToSample.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.Audio.Sample; namespace osu.Game.Rulesets.Mods { /// <summary> /// An interface for mods that make adjustments to a sample. /// </summar...
mit
C#
8205797f4c76ff3d381eedff70565d8bb497184a
Create Problem56.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem56.cs
Problems/Problem56.cs
using System; using System.Collections.Generic; using System.Text; using System.Numerics; namespace ProjectEuler { class Problem56 { private long IntegerSum(BigInteger number) { long res = 0; while (number > 0) { res += (long)(number % 10); ...
mit
C#
004d9c000d837311fb08642774bc9923528ad44a
Add GlobalSuppressions.cs to Atata.WebDriverExtras project to suppress 2 code analysis warnings
atata-framework/atata-webdriverextras,atata-framework/atata-webdriverextras
src/Atata.WebDriverExtras/GlobalSuppressions.cs
src/Atata.WebDriverExtras/GlobalSuppressions.cs
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Minor Code Smell", "S3240:The simplest possible condition syntax should be used", Justification = "<Pending>", Scope = "member", Target = "~M:Atata.ExtendedSearchContext`1.Missing(OpenQA.Selenium.By)~System.Boolean")] [assembly: System.Diagnostics.CodeAnalysi...
apache-2.0
C#
e49d9cf9bf6232435757765e14cb4e5576c44e9e
Create 5.cs
rikkus/adventofcode2016,rikkus/adventofcode2016
5.cs
5.cs
void Main() { var doorID = "uqwqemis"; var password = ""; var i = 0; while (true) { var hash = System.Security.Cryptography.MD5.Create().ComputeHash(Encoding.UTF8.GetBytes(doorID + i)); if (hash[0] == 0 && hash[1] == 0 && (hash[2] & 0xf0) == 0) { password += string.Format("{0:x}", (hash[2] & 0x0f...
mit
C#
528c1016fd8689e928c7a6038c45a09847c42c13
添加 IO 帮助类
ouraspnet/HanLP.NET
src/HanLP.Net/Corpus/IO/IOUtil.cs
src/HanLP.Net/Corpus/IO/IOUtil.cs
using System; using System.IO; namespace HanLP.Net.Corpus.IO { public class IOUtil { public static byte[] ReadBytes(string path) { using (var fileStream = new FileStream(path, FileMode.Create)) { byte[] bytes = new byte[fileStream.Length]; fileStream.Read(by...
apache-2.0
C#
bdea703b6d1647369e88aef8f566b5d0197d28eb
add VirtualKeyCodes
hemincong/PostageStampTransactionHelper
PostageStampTransactionHelper/VirtualKeyCodes.cs
PostageStampTransactionHelper/VirtualKeyCodes.cs
// ReSharper disable InconsistentNaming namespace PostageStampTransactionHelper { public class VirtualKeyCodes { public const int HOTKEY_ID = 9000; //Modifiers: public const uint MOD_NONE = 0x0000; //(none) public const uint MOD_ALT = 0x0001; //ALT public const uint MOD...
apache-2.0
C#
0213c978c00ee6ecae9964fe12051cfbcb1c63fe
add field(field, order) on sort
RossLieberman/NEST,cstlaurent/elasticsearch-net,azubanov/elasticsearch-net,TheFireCookie/elasticsearch-net,cstlaurent/elasticsearch-net,UdiBen/elasticsearch-net,TheFireCookie/elasticsearch-net,UdiBen/elasticsearch-net,CSGOpenSource/elasticsearch-net,azubanov/elasticsearch-net,adam-mccoy/elasticsearch-net,adam-mccoy/ela...
src/Nest/Search/Search/Sort/SortDescriptor.cs
src/Nest/Search/Search/Sort/SortDescriptor.cs
using System; using System.Collections.Generic; using System.Linq.Expressions; namespace Nest { public class SortDescriptor<T> : DescriptorPromiseBase<SortDescriptor<T>, IList<ISort>> where T : class { public SortDescriptor() : base(new List<ISort>()) { } public SortDescriptor<T> Ascending(Expression<Func<T, ...
apache-2.0
C#
e209486e96b60aaef1fba37472629630606781d8
Create Tree.cs
QetriX/quly
Assets/Scripts/Tree.cs
Assets/Scripts/Tree.cs
namespace com.qetrix.apps.quly { using System; using UnityEngine; using System.Collections; using com.qetrix.apps.quly.libs; // Attach this to empty GameObject with BoxCollider, placed on position of terrain tree. public class Tree : MonoBehaviour { public float _age = 0.5f; [SerializeField] float wood =...
mit
C#
215faa7e93d5c0ec044c13e5092d11f3eef8beea
Create TournamentMessage.cs
OpenConquer/Tournaments
Tournaments/TournamentMessage.cs
Tournaments/TournamentMessage.cs
using System; namespace COServer.Game.Models.Tournaments { /// <summary> /// all Message. /// </summary> public static class TournamentMessage { #region Tournament Messages public const string TOURNAMENT_LEVEL_TOO_LOW = "Your level is not high enough to join thi...
mit
C#
e1e10975bbdab7f2f2584c5f89df66c9b0fab605
add tweetanalysis class
imjackyan/TweetSpace,imjackyan/TweetSpace,imjackyan/TweetSpace,imjackyan/TweetSpace
TweetSpace/TweetAnalysis.cs
TweetSpace/TweetAnalysis.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace TweetSpace { public class TweetAnalysis { public List<List<TweetObj>> Tweetsort(List<TweetObj> tweets, DateTime initialTime, TimeSpan timeInterval) { List<List<TweetObj>> final = new List...
mit
C#
a52e89f12a7deb0075637455df87bd212d268766
Create ProductOffer.cs
daniela1991/hack4europecontest
ProductOffer.cs
ProductOffer.cs
using System.Collections.Generic; namespace Cdiscount.OpenApi.ProxyClient.Contract.Common { /// <summary> /// Product offer entity /// </summary> public class ProductOffer { /// <summary> /// Offer identifier /// </summary> public string Id { get; set; } ///...
mit
C#
93c13e767597a195fc16e1e04271d86c346f0b54
Create rope.cs
FireFlame74/rope-in-unity3d
rope.cs
rope.cs
using UnityEngine; using System.Collections.Generic; public class Tentacle : MonoBehaviour { [System.SerializableAttribute] public class TentacleData { public float length ; public float radius ; public float spacing ; public float friction ; // public float shade ; public List<Node> nodes ; publ...
unlicense
C#
35cfebbabb8d082617383e2364fb47afe723a189
implement asynchronous computation of a hash
milleniumbug/Taxonomy
TaxonomyLib/HashingExtensions.cs
TaxonomyLib/HashingExtensions.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace TaxonomyLib { internal static class HashingExtensions { public static async Task<byte[]> ComputeHashAsync(this HashAlgorithm hash, Stre...
mit
C#
bc857961495007fa1d20349d78c8a5e71d7feb6a
Copy Text objects to other layer and delete surce
sts-CAD-Software/PCB-Investigator-Scripts
Main-Folder/CopyText_objectst_To_otherLayer.cs
Main-Folder/CopyText_objectst_To_otherLayer.cs
//Synchronous template //----------------------------------------------------------------------------------- // PCB-Investigator Automation Script // Created on 30.03.2017 // Autor Guenther.Schindler // // Empty template to fill for synchronous script. //---------------------------------------------------------...
bsd-3-clause
C#
9b0ed4930497d34bb81ada8668256ac4a01b5cfd
Create Main.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...
POH7/Megane/Main.cs
POH7/Megane/Main.cs
// Try POH // author: Leonardone @ NEETSDKASU using System; using System.Collections; using System.Collections.Generic; using System.Linq; using En = System.Linq.Enumerable; public class Solver { public static void Main() { var n = Gi(); var p = NGis(n); var m = Gi(); var q = NGis(m...
mit
C#
a3c361a71fbefb162fb21a465432926cab43425c
Add Q217
txchen/localleet
csharp/Q217_ContainsDuplicate.cs
csharp/Q217_ContainsDuplicate.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every e...
mit
C#
5a7ad17688034a1799964ed766c1de01d3270b64
Add ToAsyncEnumerable
meziantou/Meziantou.Framework,meziantou/Meziantou.Framework,meziantou/Meziantou.Framework,meziantou/Meziantou.Framework
src/Meziantou.Framework/EnumerableExtensions.ToAsyncEnumerable.cs
src/Meziantou.Framework/EnumerableExtensions.ToAsyncEnumerable.cs
namespace Meziantou.Framework; public static partial class EnumerableExtensions { public static IAsyncEnumerable<T> ToAsyncEnumerable<T>(this IEnumerable<T> source) { ArgumentNullException.ThrowIfNull(source); return new AsyncEnumerableWrapper<T>(source); } public static IAsyncEnumerat...
mit
C#
b12db1195614eda7f72374b20848d8296a83ebfa
Bump to 1.2.1
KlappPc/ArchiSteamFarm,i3at/ArchiSteamFarm,blackpanther989/ArchiSteamFarm,KlappPc/ArchiSteamFarm,JustArchi/ArchiSteamFarm,blackpanther989/ArchiSteamFarm,JustArchi/ArchiSteamFarm,KlappPc/ArchiSteamFarm,i3at/ArchiSteamFarm,JustArchi/ArchiSteamFarm,JustArchi/ArchiSteamFarm
ArchiSteamFarm/Properties/AssemblyInfo.cs
ArchiSteamFarm/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("Ar...
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("Ar...
apache-2.0
C#
293426ac740a09d0454476f84a501ec52da2ab36
Add polygon intersection
brendan-rius/raytracer-epitech
raytracer/raytracer/shapes/Polygon.cs
raytracer/raytracer/shapes/Polygon.cs
using OpenTK; using raytracer.core; using raytracer.core.mathematics; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace raytracer.shapes { public class Polygon : Shape { private List<Vector3> Vertices; private Vector3...
mit
C#
c91b9c60322f2c580c2378e4ad5afbf9c539f967
Add missing button
smoogipoo/osu,ppy/osu,peppy/osu,johnneijzen/osu,NeoAdonis/osu,EVAST9919/osu,peppy/osu,peppy/osu,smoogipooo/osu,johnneijzen/osu,ZLima12/osu,UselessToucan/osu,2yangk23/osu,peppy/osu-new,NeoAdonis/osu,EVAST9919/osu,NeoAdonis/osu,ppy/osu,ppy/osu,2yangk23/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,Z...
osu.Game/Screens/Select/FooterButtonOptions.cs
osu.Game/Screens/Select/FooterButtonOptions.cs
using osu.Framework.Allocation; using osu.Framework.Extensions.Color4Extensions; using osu.Game.Graphics; namespace osu.Game.Screens.Select { public class FooterButtonOptions : FooterButton { [BackgroundDependencyLoader] private void load(OsuColour colours) { SelectedColour ...
mit
C#
3845698f2cbc4829b9a9bb84f087db25051e42d4
Add new memory serializer
dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP
src/DotNetCore.CAP/Serialization/ISerializer.Memory.cs
src/DotNetCore.CAP/Serialization/ISerializer.Memory.cs
using System.IO; using System.Threading.Tasks; using DotNetCore.CAP.Messages; using System.Runtime.Serialization.Formatters.Binary; namespace DotNetCore.CAP.Serialization { public class MemorySerializer : ISerializer { public Task<TransportMessage> SerializeAsync(Message message) { ...
mit
C#
b1e49e32dec6c8fd22522ebdc755df70f1364888
Add TestServerFactory
tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server-tools,Cyberboss/tgstation-server,tgstation/tgstation-server
tests/Tgstation.Server.Host.Tests/TestServerFactory.cs
tests/Tgstation.Server.Host.Tests/TestServerFactory.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; namespace Tgstation.Server.Host.Tests { /// <summary> /// Tests for <see cref="ServerFactory"/> /// </summary> [TestClass] public sealed class TestServerFactory { [TestMethod] public void TestWorksWithoutUpdatePath() { var factory = new ...
agpl-3.0
C#
8515e027ef2074c1378061efde89b939be03bc68
Add AutoSuspendHelper implementation
SuperJMN/Avalonia,SuperJMN/Avalonia,grokys/Perspex,SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,akrisiun/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,SuperJ...
src/Avalonia.ReactiveUI/AutoSuspendHelper.cs
src/Avalonia.ReactiveUI/AutoSuspendHelper.cs
// Copyright (c) The Avalonia Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using Avalonia; using Avalonia.VisualTree; using Avalonia.Controls; using System.Threading; using System.Reactive.Disposables; using System.Reactive.Subje...
mit
C#
b1034bc50892a04cd637bf9434a79dd92c6b1568
add MSTest test case for Yatzy in C#, existing test is NUnit (test by Karin Petter)
emilybache/Yatzy-Refactoring-Kata,dotnetom/Yatzy-Refactoring-Kata,emilybache/Yatzy-Refactoring-Kata,emilybache/Yatzy-Refactoring-Kata,hemalvarambhia/Yatzy-Refactoring-Kata,hemalvarambhia/Yatzy-Refactoring-Kata,emilybache/Yatzy-Refactoring-Kata,emilybache/Yatzy-Refactoring-Kata,dotnetom/Yatzy-Refactoring-Kata,hemalvaram...
csharp/YatzyMSTest.cs
csharp/YatzyMSTest.cs
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class YatzyMSTest { [TestMethod] public void Chance_scores_sum_of_all_dice() { int expected = 15; int actual = Yatzy.Chance(2,3,4,5,1)...
mit
C#
f20e299d55c422b5afc56660896bdbd50c77c29d
Implement betting and getting popular keywords
CollapsedTotoProductionCommittee/CollapsedToto,CollapsedTotoProductionCommittee/CollapsedToto,CollapsedTotoProductionCommittee/CollapsedToto,CollapsedTotoProductionCommittee/CollapsedToto
Modules/RoundModule.cs
Modules/RoundModule.cs
using System; using StackExchange.Redis; using System.Threading; using System.Threading.Tasks; using Newtonsoft.Json; namespace CollapsedToto { [Prefix("/round")] public class RoundModule : BaseModule { private static ConnectionMultiplexer redis = null; private static IDatabase Database ...
mit
C#
44865d1507d4322c0e450a7114f5dda17d7fc39c
Add AssemblyInfo.cs
whampson/bft-spec,whampson/cascara
Cascara/Src/AssemblyInfo.cs
Cascara/Src/AssemblyInfo.cs
using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Cascara.Tests")]
mit
C#
c29a202ea129f41f3f184a03c0d519a721637040
Create graf.cs
mpiatek1/jp
graf.cs
graf.cs
public bool IsGraphIntegrated(List<Edge> graph) { Stack<int> stack = new Stack<int>(); List<int> visited = new List<int>(); bool found = false; stack.Push(1); visited.Add(1); while (stack.Count != 0) { int[] conn...
mit
C#
8f98e4a993c72a1ec3b7f9388fbd6abf497f19e0
add CommonAssemblyInfo.
jwChung/Experimentalism,jwChung/Experimentalism
build/CommonAssemblyInfo.cs
build/CommonAssemblyInfo.cs
using System.Reflection; using System.Resources; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Jin-Wook Chung")] [assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: Co...
mit
C#
a8a6e584210d15d7635c70263180d48363d2fd1e
Fix AssemblyInformationalVersion
blairconrad/FakeItEasy,blairconrad/FakeItEasy,FakeItEasy/FakeItEasy,adamralph/FakeItEasy,thomaslevesque/FakeItEasy,adamralph/FakeItEasy,thomaslevesque/FakeItEasy,FakeItEasy/FakeItEasy
src/CommonAssemblyInfo.cs
src/CommonAssemblyInfo.cs
using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; [assembly: AssemblyVersion("2.3.0")] [assembly: AssemblyFileVersion("2.3.0")] [assembly: AssemblyInformationalVersion("2.3.0")] [assembly: AssemblyCompany("Patrik Hägne")] [assembly: AssemblyCopyright("Copyr...
using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; [assembly: AssemblyVersion("2.3.0")] [assembly: AssemblyFileVersion("2.3.0")] [assembly: AssemblyInformationalVersion("2.2.0")] [assembly: AssemblyCompany("Patrik Hägne")] [assembly: AssemblyCopyright("Copyr...
mit
C#
416b1a68cf7ef30d5aef0eca55261f3634b24b24
Add signature-validation example for C#
TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snip...
security/signature_validation/signature_validation.5.x.cs
security/signature_validation/signature_validation.5.x.cs
// Download the twilio-csharp library from // https://www.twilio.com/docs/libraries/csharp#installation using System; using System.Collections.Generic; using Twilio.Security; class Example { static void Main(string[] args) { // Your Auth Token from twilio.com/console const string authToken = "y...
mit
C#
169a28340286aeca24e73f47ce76c190c3f7c87d
Add visual test scene
NeoAdonis/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,peppy/osu
osu.Game.Tests/Visual/SongSelect/TestSceneBeatmapMetadataDisplay.cs
osu.Game.Tests/Visual/SongSelect/TestSceneBeatmapMetadataDisplay.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.Linq; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framewo...
mit
C#
edf44daa60e0e73ead85092a57b52b9735d44bdd
Add C#/Mono wrapper
silent-snowman/bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,ComputeCycles/bluez,ComputeCycles/bluez,pkarasev3/bluez,pkarasev3/bluez,pkarasev3/bluez,mapfau/bluez,silent-snowman/bluez,ComputeCycl...
hcid/Bluetooth.cs
hcid/Bluetooth.cs
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2005-2006 Marcel Holtmann <marcel@holtmann.org> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either vers...
lgpl-2.1
C#
e570f10d6910c57152eec3bcdef499e90bc62e64
Add benchmark for dependency injection.
space-wizards/space-station-14-content,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,space-wizards/space-station-14-content,space-wizards/space-station-14
Content.Benchmarks/DependencyInjectBenchmark.cs
Content.Benchmarks/DependencyInjectBenchmark.cs
/* using BenchmarkDotNet.Attributes; using Robust.Shared.IoC; namespace Content.Benchmarks { // To actually run this benchmark you'll have to make DependencyCollection public so it's accessible. public class DependencyInjectBenchmark { [Params(InjectMode.Reflection, InjectMode.DynamicMethod)] ...
mit
C#
6fabb9189c7d5250f8b399c234aa2f3f54f53df5
Create Pair.cs
tuttomax/IniSharp
Pair.cs
Pair.cs
namespace IniSharp { using System; class Pair { public string Key { get; set; } public string Value { get; set; } public Pair() { } public Pair(string key, string value) { Key = key; Value = value; } ...
mit
C#