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
fb6a8ef5ca6a03ae4513d643acf24bae5c40de22
Add AssemblyInfo.cs
HaliteChallenge/Halite-II,HaliteChallenge/Halite-II,HaliteChallenge/Halite-II,HaliteChallenge/Halite-II,HaliteChallenge/Halite-II,lanyudhy/Halite-II,HaliteChallenge/Halite,lanyudhy/Halite-II,HaliteChallenge/Halite,HaliteChallenge/Halite,lanyudhy/Halite-II,yangle/HaliteIO,HaliteChallenge/Halite-II,HaliteChallenge/Halite...
airesources/CSharp/AssemblyInfo.cs
airesources/CSharp/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...
mit
C#
a6f80e8b877a54e354fd440a277fcedadb4f3816
Create 2.cs
rikkus/adventofcode2016,rikkus/adventofcode2016
2.cs
2.cs
struct Vector { public int X; public int Y; }; Vector Move(Vector position, char move) { switch (move) { case 'U': return new Vector { X = position.X, Y = Math.Max(0, position.Y - 1) }; case 'D': return new Vector { X = position.X, Y = Math.Min(keypad[0].Length - 1, position.Y + 1) }; case 'L': retu...
mit
C#
83c8ec2ecb68c3d0f0e61eb70b451c4a050290b9
fix head offset for teleport position
vazor222/PartPacifist
Assets/Scripts/SingleLinkTeleporter.cs
Assets/Scripts/SingleLinkTeleporter.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SingleLinkTeleporter : MonoBehaviour { public float POSITION_CHECK_TIME_LENGTH_IN_SECONDS = 3; public GameObject myDestination; public GameObject headCannon; public GameObject preTeleportPosistion; private float positionC...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SingleLinkTeleporter : MonoBehaviour { public float POSITION_CHECK_TIME_LENGTH_IN_SECONDS = 3; public GameObject myDestination; public GameObject headCannon; public GameObject preTeleportPosistion; private float positionC...
mpl-2.0
C#
aa7e60756a440973d09ab5ec364f00d0b8bbb135
Create GTV.cs
etormadiv/njRAT_0.7d_Stub_ReverseEngineering
j_csharp/OK/GTV.cs
j_csharp/OK/GTV.cs
//Reversed by Etor Madiv public static object GTV(string n, object ret) { try { return F.Registry.CurrentUser.OpenSubKey( System.String.Concat("Software\\", RG) ).GetValue( n, System.Runtime.CompilerServices.RuntimeHelpers.GetObjectValue(ret) ); } catch(Exception) { } return ret; }
unlicense
C#
7bba2cb5524690ed6f88fb21b49b4b81d14f7ef1
Add AeroListView
stefan-baumann/AeroSuite
AeroSuite/Controls/AeroListView.cs
AeroSuite/Controls/AeroListView.cs
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace AeroSuite.Controls { /// <summary> /// An aero-styled ListView. /// </summary> /// <remarks> ...
mit
C#
5cf2db9f666021410bb0b486d1cc7f1c678e9386
Read and write a Trie
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
VariousArtists/print_a_trie.cs
VariousArtists/print_a_trie.cs
// Print a trie using System; using System.Collections.Generic; using System.Linq; using System.IO; class Node { private Dictionary<char, Node> Next = new Dictionary<char, Node>(); private bool IsWord; public static Node Read(List<String> items) { return items .Aggregate( ...
mit
C#
0f16a5dea5d6f002ad54522b238db9560a12c31e
Create C#.cs
TobitSoftware/chayns-snippets,TobitSoftware/chayns-snippets,TobitSoftware/chayns-snippets,TobitSoftware/chayns-snippets
Backend/CreateUACGroup/C#.cs
Backend/CreateUACGroup/C#.cs
import RestSharp; public string Server = "https://api.chayns.net/v2.0"; private const string Secret = "Your Tapp Secret"; public const int MangerUacGroup = 1; [HttpPost] [Route("CreateUac")] public IHttpActionResult CreateUac(int locationId, int tappId, string name, string showName) { try { //Create t...
mit
C#
76ce34d28963e759f98ea4c515a781462c265dd2
Create StringExtensions.cs
keith-hall/Extensions,keith-hall/Extensions
src/StringExtensions.cs
src/StringExtensions.cs
public static class StringExtensions { public static int IndexOfEnd (this string value, string find, int? start = null) { var pos = value.IndexOf(find, start.HasValue ? start.Value : 0); if (pos > -1) pos += find.Length; return pos; } public static IEnumerable<KeyValuePair<string, int>> AllIndexesOf (this...
apache-2.0
C#
e7be131b8990e5397e13c5049caaafde4c0c447c
Add the ISnmpModule interface definition to Careminster release
TomDataworks/opensim,TomDataworks/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,RavenB/opensim,TomDataworks/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,RavenB/opensim,RavenB/opensim,RavenB/o...
OpenSim/Region/Framework/Interfaces/ISnmpModule.cs
OpenSim/Region/Framework/Interfaces/ISnmpModule.cs
/////////////////////////////////////////////////////////////////// // // (c) Careminster LImited, Melanie Thielker and the Meta7 Team // // This file is not open source. All rights reserved // public interface ISnmpModule { void Alert(string message); void Trap(string message); }
bsd-3-clause
C#
55b5bafbe6bd03c94308a9163179e9eca13b883e
Create selenium-hello-world-002.cs
TheSeleniumGuys/Code-Drills
selenium-hello-world-002.cs
selenium-hello-world-002.cs
//See the blog post at: using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpendQA.Selenium.IE; IWebdriver.driver = new InternetExplorerDriver(); driver.Navigate().GoToURL("http://www.google.com"); IWebElement element = driver.FindElement(By.name("q")); element.SendKeys("...
mit
C#
af7277a9e8dcc9ae6d6ba4bce72eb67522c15c48
Add HexString
carbon/Amazon
src/Amazon.S3/Helpers/HexString.cs
src/Amazon.S3/Helpers/HexString.cs
using System; using System.Runtime.CompilerServices; namespace Amazon.Helpers { internal static class HexString { // Based on: http://stackoverflow.com/questions/623104/byte-to-hex-string/3974535#3974535 public static string FromBytes(this byte[] bytes) { var bu...
mit
C#
5876512d5774704f6228e04a380c4e2a3b32e4e7
Add DescribeInstanceTypesResponse
carbon/Amazon
src/Amazon.Ec2/Responses/DescribeInstanceTypesResponse.cs
src/Amazon.Ec2/Responses/DescribeInstanceTypesResponse.cs
#nullable disable using System.Xml.Serialization; namespace Amazon.Ec2 { [XmlRoot("DescribeInstanceTypesResponse", Namespace = Ec2Client.Namespace)] public sealed class DescribeInstanceTypesResponse { [XmlElement("requestId")] public string RequestId { get; set; } [Xm...
mit
C#
17f56ccbdc5e2fa9493f2ccf7597b6cd1f26a72d
Add sendgeneric command to TestClient to allow one to send arbitrary GenericMessagePackets to the simulator for testing purposes
radegastdev/libopenmetaverse,radegastdev/libopenmetaverse,radegastdev/libopenmetaverse,radegastdev/libopenmetaverse
Programs/examples/TestClient/Commands/Agent/GenericMessageCommand.cs
Programs/examples/TestClient/Commands/Agent/GenericMessageCommand.cs
using System; using System.Collections.Generic; using System.Text; using OpenMetaverse; using OpenMetaverse.Packets; namespace OpenMetaverse.TestClient { /// <summary> /// Sends a packet of type GenericMessage to the simulator. /// </summary> public class GenericMessageCommand : Command { p...
bsd-3-clause
C#
573ef5d9b4285a92e3ad12df17ed25e43dc7b3f1
Add missing file
BloomBooks/BloomDesktop,JohnThomson/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,StephenMcConnel/BloomDesktop,JohnThomson/BloomDesktop,andrew-polk/BloomDesktop,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,gmartin7/myBloomFork,andrew-polk/BloomDesk...
src/BloomExe/web/I18NHandler.cs
src/BloomExe/web/I18NHandler.cs
using System.Collections.Generic; using Bloom.Collection; using L10NSharp; using Newtonsoft.Json; namespace Bloom.web { static class I18NHandler { public static bool HandleRequest(string localPath, IRequestInfo info, CollectionSettings currentCollectionSettings) { var lastSep = localPath.IndexOf("/", System....
mit
C#
04dee67ead33728a2728623c3cef8c388864ea4d
Include GetListProductsResponse in project
buyoolabs/clean-architecture-demo,buyoolabs/clean-architecture-demo,buyoolabs/clean-architecture-demo
CleanArchitectureDemo/CleanArchitectureDemo.Entities/UseCases/GetListProducts/GetListProductsResponse.cs
CleanArchitectureDemo/CleanArchitectureDemo.Entities/UseCases/GetListProducts/GetListProductsResponse.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CleanArchitectureDemo.Domain.UseCases.GetListProducts { public class GetListProductsResponse { public List<ProductsItem> Products; public GetListProductsResponse() ...
mit
C#
4c6a8c63fc81fc187e6581d4b89c56e34ffcff30
Create Settings.Designer.cs
RocketSoftware/multivalue-lab,nkesic/multivalue-lab,codedecay/multivalue-lab,RocketSoftware/multivalue-lab,nkesic/multivalue-lab,RocketSoftware/multivalue-lab,RocketSoftware/multivalue-lab,RocketSoftware/multivalue-lab,codedecay/multivalue-lab,nkesic/multivalue-lab,RocketSoftware/multivalue-lab,nkesic/multivalue-lab,Ro...
U2-Toolkit/DataAdapter/Properties/Settings.Designer.cs
U2-Toolkit/DataAdapter/Properties/Settings.Designer.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18052 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
mit
C#
b79fbeb06cde95b72b1579a84048a57f6cf23937
Fix IDE0044
wvdd007/roslyn,AmadeusW/roslyn,wvdd007/roslyn,sharwell/roslyn,bartdesmet/roslyn,diryboy/roslyn,shyamnamboodiripad/roslyn,AlekseyTs/roslyn,heejaechang/roslyn,ErikSchierboom/roslyn,jasonmalinowski/roslyn,jasonmalinowski/roslyn,stephentoub/roslyn,tannergooding/roslyn,diryboy/roslyn,sharwell/roslyn,eriawan/roslyn,weltkante...
src/Scripting/CoreTestUtilities/ObjectFormatterFixtures/MockDesktopSpinLock.cs
src/Scripting/CoreTestUtilities/ObjectFormatterFixtures/MockDesktopSpinLock.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Diagnostics; using System.Threading; namespace ObjectFormatterFixtur...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Diagnostics; using System.Threading; namespace ObjectFormatterFixtur...
mit
C#
a1d4a7a6f3a12065dc8184c54695ad19b397f4a6
Add ReflectionTypeLoadException tests
Jiayili1/corefx,wtgodbe/corefx,ericstj/corefx,shimingsg/corefx,shimingsg/corefx,wtgodbe/corefx,shimingsg/corefx,ravimeda/corefx,mmitche/corefx,axelheer/corefx,ViktorHofer/corefx,Ermiar/corefx,ravimeda/corefx,shimingsg/corefx,zhenlan/corefx,Ermiar/corefx,mmitche/corefx,shimingsg/corefx,ericstj/corefx,ericstj/corefx,wtgo...
src/System.Runtime/tests/System/Reflection/ReflectionTypeLoadExceptionTests.cs
src/System.Runtime/tests/System/Reflection/ReflectionTypeLoadExceptionTests.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.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using ...
mit
C#
0f32a0ff076c57bf89ef90bad96ed171f11b9b23
Create MonitorSample.cs
alchemz/ARL_Training
CSharpDotNet_Programming/Thread/MonitorSample.cs
CSharpDotNet_Programming/Thread/MonitorSample.cs
using System; using System.Threading; namespace ThreadTutorial { public class MonitorSample { public static void Main(String[] args) { int result = 0; Cell cell = new Cell (); CellProd prod= new CellProd(cell,20); CellCons cons= new CellCons(cell,20); Thread producer = new Thread( new ThreadStar...
mit
C#
1be7939cfc65a0bdbee38f704fc3e991e77e81d3
Add SHA3-512
ektrah/nsec
src/Cryptography/Sha3_512.cs
src/Cryptography/Sha3_512.cs
using System; using static Interop.KeccakTiny; namespace NSec.Cryptography { public sealed class Sha3_512 : HashAlgorithm { public Sha3_512() : base( minHashSize: 32, defaultHashSize: 64, maxHashSize: 64) { } internal override void HashCore( ...
mit
C#
5aaa0477540a8fff6ebf394d0192c8ac07fcf0b3
Add SizeEx class.
Si13n7/SilDev.CSharpLib
src/SilDev/Drawing/SizeEx.cs
src/SilDev/Drawing/SizeEx.cs
#region auto-generated FILE INFORMATION // ============================================== // This file is distributed under the MIT License // ============================================== // // Filename: SizeEx.cs // Version: 2019-12-11 13:26 // // Copyright (c) 2019, Si13n7 Developments (r) // All rights reserv...
mit
C#
82f8d567ce6e0cf854bc645edfb16801786278a5
Create CertificateWSTrustBinding.cs
phillipharding/PnP-Sites-Core,OfficeDev/PnP-Sites-Core,phillipharding/PnP-Sites-Core,OfficeDev/PnP-Sites-Core,OfficeDev/PnP-Sites-Core
Core/OfficeDevPnP.Core/IdentityModel/WSTrustBindings/CertificateWSTrustBinding.cs
Core/OfficeDevPnP.Core/IdentityModel/WSTrustBindings/CertificateWSTrustBinding.cs
mit
C#
6ee4a0a8661a9efd88e95e1ed247cd8deb4379b0
Add forgotten file to DefaultMono branch
gtryus/libpalaso,ermshiperete/libpalaso,hatton/libpalaso,JohnThomson/libpalaso,mccarthyrb/libpalaso,gtryus/libpalaso,hatton/libpalaso,ddaspit/libpalaso,hatton/libpalaso,tombogle/libpalaso,glasseyes/libpalaso,hatton/libpalaso,glasseyes/libpalaso,gmartin7/libpalaso,ddaspit/libpalaso,andrew-polk/libpalaso,ddaspit/libpalas...
Palaso.MSBuildTasks/DownloadFile.cs
Palaso.MSBuildTasks/DownloadFile.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; namespace Palaso.BuildTasks { /// <summary> /// Downloads a file from a web address. Params specify the web address, the local pa...
mit
C#
186333f3c18a3a33217f6869bb22e89d70570248
Support symbol rename action
aelij/roslynpad
src/RoslynPad.Roslyn/WorkspaceServices/SymbolRenamedCodeActionOperationFactory.cs
src/RoslynPad.Roslyn/WorkspaceServices/SymbolRenamedCodeActionOperationFactory.cs
using System; using System.Composition; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.CodeActions.WorkspaceServices; using Microsoft.CodeAnalysis.Host.Mef; namespace RoslynPad.Roslyn.WorkspaceServices { [ExportWorkspaceService(typeof(ISymbolRenamedCodeActionO...
apache-2.0
C#
cb4972f9002cd5875214b12ce5de0b509e4b7456
Add test for obtaining unique items with custom comparer.
sitofabi/duplicati,mnaiman/duplicati,mnaiman/duplicati,duplicati/duplicati,mnaiman/duplicati,mnaiman/duplicati,sitofabi/duplicati,sitofabi/duplicati,duplicati/duplicati,sitofabi/duplicati,duplicati/duplicati,duplicati/duplicati,sitofabi/duplicati,mnaiman/duplicati,duplicati/duplicati
Duplicati/UnitTest/UtilityTests.cs
Duplicati/UnitTest/UtilityTests.cs
// Copyright (C) 2017, The Duplicati Team // http://www.duplicati.com, info@duplicati.com // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the // L...
// Copyright (C) 2017, The Duplicati Team // http://www.duplicati.com, info@duplicati.com // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the // L...
lgpl-2.1
C#
a1c2112320c8f4f489c78034b78103ff533589da
Add viewstart page
IliaAnastassov/OdeToFood,IliaAnastassov/OdeToFood
OdeToFood/VIews/_ViewStart.cshtml
OdeToFood/VIews/_ViewStart.cshtml
@{ Layout = "~/Views/Shared/_Layout.cshtml"; }
mit
C#
4f04916cc7dc1bf6703348cc735abb346f243879
Add F.ReduceWhile
farity/farity
Farity/ReduceWhile.cs
Farity/ReduceWhile.cs
using System; using System.Collections.Generic; namespace Farity { public static partial class F { /// <summary> /// Like <seealso cref="Reduce"/>, this returns a single item by iterating through /// the list, successively calling the iterator function. It also takes a predicate ...
mit
C#
e4987386f5ca694498a8a215e1c4b53975a16f99
Add ExceptionHandler.cs
qqbuby/Alyio.AspNetCore.ApiMessages
src/Alyio.AspNetCore.ApiMessages/ExceptionHandler.cs
src/Alyio.AspNetCore.ApiMessages/ExceptionHandler.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Diagnostics; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Net.Http.Headers; using Newtonsoft.Json; namespa...
mit
C#
89de3529702b260d8e9724fe09fcfad4297b1f28
Range sum with segment tree - pre submit
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/range_sum_query.cs
LeetCode/remote/range_sum_query.cs
// https://leetcode.com/problems/range-sum-query-mutable/ // // Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. // The update(i, val) function modifies nums by updating the element at index i to val. // // Example: // // Given nums = [1, 3, 5] // // sumRange(0, 2) ...
mit
C#
19671325681d93fa283bdda5688ad0005473a499
Add assembly info file
DMagic1/DMModuleScienceAnimateGeneric
Source/Properties/AssemblyInfo.cs
Source/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("DM...
bsd-2-clause
C#
295e5a7e5f7f2645b67092384be76cf551c5b9fb
Add move message module. First iteration before refactor
mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX
Modix/Modules/MoveMessageModule.cs
Modix/Modules/MoveMessageModule.cs
using System; using System.Linq; using System.Threading.Tasks; using Discord; using Discord.Commands; using Modix.Services.CommandHelp; namespace Modix.Modules { [Name("Move Message"), RequireUserPermission(GuildPermission.ManageMessages), HiddenFromHelp] public class MoveMessageModule : ModuleBase { ...
mit
C#
036ebc4518d09861c843b21c5904ced091abaae5
Add Base file
tertis/OGL
OGL/Network/TCP/Base.cs
OGL/Network/TCP/Base.cs
using System; using System.Collections.Generic; using System.Text; using System.Net.Sockets; namespace OGL.Network.TCP { public abstract class Base { #region Send protected void SendToRemote(Socket socket, byte[] data) { // Begin sending the data to the remote device. socket.BeginSend(data, 0, data.Leng...
mit
C#
10ce424026cec801736a28dc63dd1e95cea88284
Add proxydrawable lifetime tests
ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework
osu.Framework.Tests/Visual/Drawables/TestSceneProxyDrawableLifetime.cs
osu.Framework.Tests/Visual/Drawables/TestSceneProxyDrawableLifetime.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#
71a54ffcd7f390623491ca19d3921811a7074984
Add Formatter class to provide code formatting capability
dlwyatt/PSScriptAnalyzer,PowerShell/PSScriptAnalyzer,daviwil/PSScriptAnalyzer
Engine/Formatter.cs
Engine/Formatter.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Management.Automation.Runspaces; using Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic; namespace Microsoft.Windows.PowerShell.ScriptAnalyzer { public class Formatter ...
mit
C#
e970bf6ba6c107bd1b9ff5169ae5fca32a4cfcd3
add dbcontext
coe-google-apps-support/Mailman,coe-google-apps-support/Mailman,coe-google-apps-support/Mailman
src/Mailman.Services/Data/MergeTemplateContext.cs
src/Mailman.Services/Data/MergeTemplateContext.cs
using Microsoft.EntityFrameworkCore; namespace Mailman.Services.Data { public class MergeTemplateContext: DbContext { public MergeTemplateContext(DbContextOptions<MergeTemplateContext> options) : base(options) { } public DbSet<MergeTemplate> MergeTemplates {get;set;} protecte...
mit
C#
7ad5b737e368763120efb8ce2a5048a5e6b80b93
Create CountWords.cs
michaeljwebb/Algorithm-Practice
Other/CountWords.cs
Other/CountWords.cs
//Count number of words in a string. //Not Complete using System; public class Test { public static void Main() { string test = "Hello there how are you?"; Console.WriteLine(CountWords(test)); } public static int CountWords(string x){ int result = 0; x = x.Trim(); if(x == ""){ ...
mit
C#
b81e3004f28daac0909a520916d612997d5fc1bf
Add comment.
AArnott/roslyn,abock/roslyn,reaction1989/roslyn,TyOverby/roslyn,mattwar/roslyn,mgoertz-msft/roslyn,sharwell/roslyn,srivatsn/roslyn,srivatsn/roslyn,agocke/roslyn,jeffanders/roslyn,CyrusNajmabadi/roslyn,mavasani/roslyn,Giftednewt/roslyn,CaptainHayashi/roslyn,bkoelman/roslyn,bartdesmet/roslyn,diryboy/roslyn,KevinRansom/ro...
src/Workspaces/Core/Desktop/SymbolSearch/SymbolSearchUpdateEngine.RemoteControlService.cs
src/Workspaces/Core/Desktop/SymbolSearch/SymbolSearchUpdateEngine.RemoteControlService.cs
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.VisualStudio.RemoteControl; namespace Microsoft.CodeAnalysis.SymbolSearch { internal partial class SymbolSearchUpdateEngine { ...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.VisualStudio.RemoteControl; namespace Microsoft.CodeAnalysis.SymbolSearch { internal partial class SymbolSearchUpdateEngine { ...
mit
C#
ac88584b52db9225a01e56f931918fd24f4771cf
Fix #2
uheerme/core,uheerme/core,uheerme/core
Samesound.Services/ChannelService.cs
Samesound.Services/ChannelService.cs
using Samesound.Core; using Samesound.Data; using Samesound.Services.Infrastructure; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Threading.Tasks; namespace Samesound.Services { public class ChannelService : Service<Channel> { public Channel...
mit
C#
8f9beaedb179eccfc66a6a726c9143f2d316b57d
Add discount code entity
jontansey/.Net-Core-Ecommerce-Base,jontansey/.Net-Core-Ecommerce-Base
src/Shop.Core/Entites/DiscountCode.cs
src/Shop.Core/Entites/DiscountCode.cs
using System.ComponentModel.DataAnnotations; using Shop.Core.BaseObjects; using Shop.Core.Enums; using Shop.Core.Interfaces; namespace Shop.Core.Entites { public class DiscountCode : LifetimeBase, IReferenceable<DiscountCode> { private string _code; private DiscountCodeType _discountCodeType; ...
mit
C#
fa908d95f18a386a482a0d34cca31ee5213a0049
add MercurialClient - Hg.Net wrap
svedm/monodevelop-hg-addin
MonoDevelop.VersionControl.Mercurial/MonoDevelop.VersionControl.Mercurial/MercurialClient.cs
MonoDevelop.VersionControl.Mercurial/MonoDevelop.VersionControl.Mercurial/MercurialClient.cs
using System; using Hg.Net; using System.Collections.Generic; namespace MonoDevelop.VersionControl.Mercurial { public class MercurialClient { private readonly Hg.Net.HgClient _hgClient; public MercurialClient(string repoPath, string mercurialPath) { _hgClient = new HgClient(mercurialPath); _hgClient.Co...
mit
C#
ea9344173b40f060d3b6472c2640c262891f32b3
Add IWalletProvider (#2223)
AntShares/AntShares
src/neo/Plugins/IWalletProvider.cs
src/neo/Plugins/IWalletProvider.cs
using Neo.Wallets; using System; namespace Neo.Plugins { public interface IWalletProvider { event EventHandler<Wallet> WalletOpened; Wallet GetWallet(); } }
mit
C#
74e49ca5ddfb377d72629142247e6ced0385bded
add ChocolateFeast.cs
regeldso/hrank
Algorithms/Implementation/ChocolateFeast.cs
Algorithms/Implementation/ChocolateFeast.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { public static void getAnswer(int n, int c, int m) { int current = n; int total = 0; while (current >= c) { current = current - c; if (current >= 0) ...
mit
C#
5fc8185b2a2973171feda2fb259127bb759c79dc
Create QApp.cs
QetriX/CS
QetriX/libs/QApp.cs
QetriX/libs/QApp.cs
namespace com.qetrix.libs { /* Copyright (c) QetriX.com. Licensed under MIT License, see /LICENSE.txt file. * 2016-01-09 | QApp */ using System; using System.Collections.Generic; using System.Text; public class QApp { } }
mit
C#
86906080011567d6751e62be29b83205d3e5afd6
Add failing tests for mapping of enum values
Nick-Lucas/EntryPoint,Nick-Lucas/EntryPoint,Nick-Lucas/EntryPoint
test/EntryPointTests/EnumArguments.cs
test/EntryPointTests/EnumArguments.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using EntryPoint; using Xunit; namespace EntryPointTests { public class EnumArguments { [Fact] public void Enums_Int() { string[] args = new string[] { "--opt-1", "3" ...
mit
C#
3f05f67ca199de7510ec2b930a6eada2a9b203f3
Add Logger class
iceslab/OrienteeringToolWPF
OrienteeringToolWPF/Utils/Logger.cs
OrienteeringToolWPF/Utils/Logger.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace OrienteeringToolWPF.Utils { public sealed class Logger { enum VerbosityLevel { NONE, ERROR, W...
mit
C#
c4a727d7e4fa9ff948c932523a5f2115345b98c2
Remove duplicate exception clear similar link
jeddytier4/Opserver,a9261/Opserver,GABeech/Opserver,mqbk/Opserver,IDisposable/Opserver,wuanunet/Opserver,baflynn/Opserver,manesiotise/Opserver,maurobennici/Opserver,michaelholzheimer/Opserver,jeddytier4/Opserver,VictoriaD/Opserver,18098924759/Opserver,manesiotise/Opserver,volkd/Opserver,vebin/Opserver,baflynn/Opserver,...
Opserver/Views/Exceptions/Exceptions.Similar.cshtml
Opserver/Views/Exceptions/Exceptions.Similar.cshtml
@model StackExchange.Opserver.Views.Exceptions.ExceptionsModel @{ var e = Model.Exception; var log = Model.SelectedLog; var exceptions = Model.Errors; this.SetPageTitle(Model.Title); } @section head { <script> $(function () { Status.Exceptions.init({ log: '@log', id: '@e.GUID', enablePrevi...
@model StackExchange.Opserver.Views.Exceptions.ExceptionsModel @{ var e = Model.Exception; var log = Model.SelectedLog; var exceptions = Model.Errors; this.SetPageTitle(Model.Title); } @section head { <script> $(function () { Status.Exceptions.init({ log: '@log', id: '@e.GUID', enablePrevi...
mit
C#
f4b5077467669324393d5c3875e02a03af5d1718
Add missing source file
jcracknell/emd,jcracknell/emd
cs/src/pegleg.cs/Parsing/Expressions/AheadParsingExpression.cs
cs/src/pegleg.cs/Parsing/Expressions/AheadParsingExpression.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace pegleg.cs.Parsing.Expressions { public abstract class AheadParsingExpression<TBody, TProduct> : BaseParsingExpression<TProduct> { protected readonly IParsingExpression<TBody> _body; public AheadParsingExpres...
mit
C#
62434234987e0862016a02128ece9578e4f89873
add empty renderer. (#1864)
superyyrrzz/docfx,superyyrrzz/docfx,DuncanmaMSFT/docfx,hellosnow/docfx,pascalberger/docfx,dotnet/docfx,928PJY/docfx,dotnet/docfx,hellosnow/docfx,928PJY/docfx,pascalberger/docfx,928PJY/docfx,superyyrrzz/docfx,hellosnow/docfx,dotnet/docfx,DuncanmaMSFT/docfx,pascalberger/docfx
src/Microsoft.DocAsCode.MarkdownLite/EmptyRenderer.cs
src/Microsoft.DocAsCode.MarkdownLite/EmptyRenderer.cs
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DocAsCode.MarkdownLite { public class EmptyRenderer { public virtual StringBuffer Render(IMarkdownRenderer renderer, IMarkdownToken...
mit
C#
b5f934b7c1cb598a895db3e38ac4dfde6a833582
Create Sounds.cs
Tech-Curriculums/101-GameDesign-2D-GameDesign-With-Unity
AngryHipsters/Sounds.cs
AngryHipsters/Sounds.cs
using System.Collections; [RequireComponent(typeof(AudioSource))] public class Sounds : MonoBehaviour { public AudioClip ScreechClip, stayGlassy; //stay glassy san francisco public void sayGlassy() { audio.clip = stayGlassy; audio.Play(); } public void screech() { audio.clip = ScreechClip; au...
mit
C#
6f45c3c2937495083254474d924816f7c87a73ff
Remove C#7 syntax
ppy/osu-framework,EVAST9919/osu-framework,naoey/osu-framework,paparony03/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,peppy/osu-framework,peppy/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,naoey/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,RedNesto/osu-framework,ppy/osu-framewo...
osu.Framework/Graphics/UserInterface/Tab/TabDropDownMenu.cs
osu.Framework/Graphics/UserInterface/Tab/TabDropDownMenu.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.Input; // TODO: Hide header when no items in dropdown namespace osu.Framework.Graphics.UserInterface.Tab { // Keep abstract f...
// 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.Input; // TODO: Hide header when no items in dropdown namespace osu.Framework.Graphics.UserInterface.Tab { // Keep abstract f...
mit
C#
01afc7e74bac2aea4ecc1df4a6278f88e2c47ac0
Add class to hold snippets for the Period type
jskeet/nodatime,nodatime/nodatime,nodatime/nodatime,malcolmr/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,malcolmr/nodatime,jskeet/nodatime
src/NodaTime.Demo/PeriodDemo.cs
src/NodaTime.Demo/PeriodDemo.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NodaTime.Demo { class PeriodDemo { } }
apache-2.0
C#
3925bca6f3177edf6740385c3feb4d0797aba97d
Add Ship Model ie. Models/ShipModel.cs
vnads/Fight-Fleet,vnads/Fight-Fleet,vnads/Fight-Fleet
Flight-Fleet/trunk/FightFleetApi/FightFleet/Models/ShipModel.cs
Flight-Fleet/trunk/FightFleetApi/FightFleet/Models/ShipModel.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FightFleet.Models { public enum ShipStatus { Live = 1, Sunk = 2 } internal abstract class ShipModel { protected ShipModel() { NumberOfLives = Size; } public abstract string Name { ...
mit
C#
5c4ba161576d950c80cdf4b2c6bcf6500d83191e
Add Page Location Expander
wangkanai/Detection
src/Hosting/PageLocationExpander.cs
src/Hosting/PageLocationExpander.cs
using System; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Razor; namespace Wangkanai.Detection.Hosting { public class ResponsivePageLocationExpander : IViewLocationExpander{ public IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLoca...
apache-2.0
C#
05c198513018d5444ed82ccaa456508b1f52d549
Create StringNumConversionChallenge.cs
Zephyr-Koo/sololearn-challenge
StringNumConversionChallenge.cs
StringNumConversionChallenge.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // https://www.sololearn.com/Discuss/625282/?ref=app namespace SoloLearn { class Program { const int NUMBER_BASE = 256; static void Main(string[] zephyr_koo) { ...
apache-2.0
C#
9af2f7f60ffed1001d2544b71af4d9c55b0553b4
Create WorkingWithPDF.cs
asposewords/Aspose_Words_NET,asposewords/Aspose_Words_NET,asposewords/Aspose_Words_NET,aspose-words/Aspose.Words-for-.NET,aspose-words/Aspose.Words-for-.NET,aspose-words/Aspose.Words-for-.NET,asposewords/Aspose_Words_NET,aspose-words/Aspose.Words-for-.NET
Examples/CSharp/Loading-and-Saving/WorkingWithPDF.cs
Examples/CSharp/Loading-and-Saving/WorkingWithPDF.cs
using Aspose.Words.Saving; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Aspose.Words.Examples.CSharp.Loading_and_Saving { class WorkingWithPDF { public static void Run() { // The path to the documents ...
mit
C#
066f89ef19c76b7424663671c2c73ed47f52afa0
Add LuceneStatisticsService.
ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton
src/CK.Glouton.Service/LuceneStatisticsService.cs
src/CK.Glouton.Service/LuceneStatisticsService.cs
using CK.Glouton.Lucene; using Microsoft.Extensions.Options; using System; using System.Collections.Generic; using System.Text; namespace CK.Glouton.Service { public class LuceneStatisticsService { private readonly LuceneConfiguration _configuration; private readonly LuceneStatistics _stats; ...
mit
C#
2bb079ea1403479e1bf513eb63fdc3f1d98bceb3
Add audio quality check tests
smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu-new,peppy/osu,peppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu
osu.Game.Tests/Editing/Checks/CheckAudioQualityTest.cs
osu.Game.Tests/Editing/Checks/CheckAudioQualityTest.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.Linq; using Moq; using NUnit.Framework; using osu.Framework.Audio.Track; using osu.Game.Beatmaps; using osu.Game.Rulesets.Edit.Checks; using osu.Game.Ruleset...
mit
C#
3554c7af030b8c58943e8f392309bf56c59750b4
Add 'WebClientForTest.cs' which I forgot to commit.
ipponshimeji/MAPE
Source/Core/Utils/WebClientForTest.cs
Source/Core/Utils/WebClientForTest.cs
using System; using System.Collections.Generic; using System.Diagnostics; using System.Net; using System.Net.Cache; namespace MAPE.Utils { public class WebClientForTest: WebClient { #region constants public int Timeout { get; set; } = 100 * 1000; #endregion #region creation and disposal public WebCli...
mit
C#
de7d7605045765616787101224dba1192fbea2f5
Revert "Revert "Missing DbContextExtensions""
mehrandvd/Tralus,mehrandvd/Tralus
Framework/Source/Tralus.Framework.BusinessModel/Entities/DbContextExtensions.cs
Framework/Source/Tralus.Framework.BusinessModel/Entities/DbContextExtensions.cs
using System.Collections.Generic; using System.Data.Entity; using System.Linq; namespace Tralus.Framework.BusinessModel.Entities { public static class DbContextExtensions { public static void AddIfNotExists<T>(this DbSet<T> dbSet, T entity) where T : EntityBase { if (!dbSet.Any(e =...
apache-2.0
C#
ffbd9a50a78b6d73432cfc39becd164544fae019
Add files via upload
irtezasyed007/CSC523-Game-Project
Algorithms/Term.cs
Algorithms/Term.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication19 { class Term { private string expression; private bool value; public Term(string expression, bool value) { ...
mit
C#
87265fbd86202362e99e7612000033af8f1766ae
Bump version
james-andrewsmith/Streamstone,jkonecki/Streamstone,attilah/Streamstone
Source/Streamstone.Version.cs
Source/Streamstone.Version.cs
using System; using System.Linq; using System.Reflection; [assembly: AssemblyVersion("0.6.0.0")] [assembly: AssemblyFileVersion("0.6.0.0")]
using System; using System.Linq; using System.Reflection; [assembly: AssemblyVersion("0.5.0.0")] [assembly: AssemblyFileVersion("0.5.0.0")]
apache-2.0
C#
cc13e8283117dd3332d51c46d0dc28390447f789
Add LocalExecutableAttribute
nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke
source/Nuke.Common/Tooling/LocalExecutableAttribute.cs
source/Nuke.Common/Tooling/LocalExecutableAttribute.cs
// Copyright 2019 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.IO; using System.Linq; using System.Reflection; using Nuke.Common.Execution; namespace Nuke.Common.Tooling { /// <summary> /// Injects a delegat...
mit
C#
444436abb519514fa8a8f480eb3525d68b102bb8
Create GameOver.cs
zelbo/Number-Guessing
GameOver.cs
GameOver.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace NumberGuessing { partial class Program { // takes an argument that tells whether player won or lost // returns whether the player wants to play again public static b...
mit
C#
6f9f7e887f4dbcd6c70eea6bbfc5e22eaf1006d5
add assemblyinfo
Zenasoft/JellyFish.Configuration
src/Jellyfish.Configuration/Properties/AssemblyInfo.cs
src/Jellyfish.Configuration/Properties/AssemblyInfo.cs
using System.Runtime.CompilerServices; [assembly:InternalsVisibleTo("Jellyfish.Configuration.Test")]
apache-2.0
C#
0f8738027f77d34161555a6a7c61eb595ab4cfa2
Implement MergeSort
cschen1205/cs-algorithms,cschen1205/cs-algorithms
Algorithms/Sorting/MergeSort.cs
Algorithms/Sorting/MergeSort.cs
using System; using Algorithms.Utils; namespace Algorithms.Sorting { public class MergeSort { public static void Sort<T>(T[] a) where T : IComparable<T> { Sort(a, 0, a.Length-1, (a1, a2) => a1.CompareTo(a2)); } public static void Sort<T>(T[] a, int lo, int hi, Comp...
mit
C#
619be80ba034b0949f452451e05edafad6ff9260
Add SSD extension for now
mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander
Battery-Commander.Web/Models/SSD.cs
Battery-Commander.Web/Models/SSD.cs
using BatteryCommander.Web.Models.Data; using BatteryCommander.Web.Services; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; namespace BatteryCommander.Web.Models { public enum...
mit
C#
eb09bfc94e59f246875f50e69c0c894c37051129
Add UnrecognizedResponseException
Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools,Cyberboss/tgstation-server
src/Tgstation.Server.Client/UnrecognizedResponseException.cs
src/Tgstation.Server.Client/UnrecognizedResponseException.cs
using System; using System.Globalization; using System.Net; using Tgstation.Server.Api.Models; namespace Tgstation.Server.Client { sealed class UnrecognizedResponseException : ClientException { /// <summary> /// Construct an <see cref="UnrecognizedResponseException"/> with the <paramref name="data"/> of a respo...
agpl-3.0
C#
748576df59a721213ac13fead62908892e97120d
Write and Read
abnaki/windows,abnaki/windows,abnaki/windows
Library/Commonality/Xml/AbnakiXml.cs
Library/Commonality/Xml/AbnakiXml.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using System.Xml.Serialization; namespace Abnaki.Windows.Xml { public class AbnakiXml { public static void Write(string filename, object value, Type[] subtypes) { usin...
mit
C#
bfbc4bf3a704fbc003615b04d43b7a67f8e70175
Add missing file
larsbrubaker/MatterControl,unlimitedbacon/MatterControl,larsbrubaker/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,jlewin/MatterControl,jlewin/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,unlimitedbacon/MatterControl
MatterControlLib/PrinterControls/ControlWidgets/FanControlsRow.cs
MatterControlLib/PrinterControls/ControlWidgets/FanControlsRow.cs
/* Copyright (c) 2017, Kevin Pope, John Lewin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and th...
bsd-2-clause
C#
2938bcb627203e795c22eb7c5fe5788449ff921c
Add static method for creating KeyValuePiar object.
cube-soft/Cube.Core,cube-soft/Cube.Core
Libraries/Collections/KeyValue.cs
Libraries/Collections/KeyValue.cs
/* ------------------------------------------------------------------------- */ // // Copyright (c) 2010 CubeSoft, Inc. // // 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-2.0
C#
728fa0b8f13bc3a23f576e1f866ea0c0d6b88be4
Create AtEnumeration.cs
HerrLoesch/ObjectFiller.NET,blmeyers/ObjectFiller.NET,DoubleLinePartners/ObjectFiller.NET,Tynamix/ObjectFiller.NET
ObjectFiller/Setup/AtEnumeration.cs
ObjectFiller/Setup/AtEnumeration.cs
namespace Tynamix.ObjectFiller { public enum At { TheBegin, TheEnd } }
mit
C#
120c9a0165d2aaaf8b0d5c5d20783f75902f06f4
Add missing source file
mike-ward/Nancy.Pile,mike-ward/Nancy.Pile,mike-ward/Nancy.Pile,mike-ward/Nancy.Pile
Nancy.PIle.Sample.Owin/Startup.cs
Nancy.PIle.Sample.Owin/Startup.cs
using Microsoft.Owin.Extensions; using Owin; namespace Nancy.PIle.Sample.Owin { public class Startup { public void Configuration(IAppBuilder app) { app.UseNancy(); app.UseStageMarker(PipelineStage.MapHandler); } } }
mit
C#
4198153f0174c6406e2cdc6773940e8b7bd9ceac
Add integration tests for Activity.
mysql-net/MySqlConnector,mysql-net/MySqlConnector
tests/SideBySide/ActivityTests.cs
tests/SideBySide/ActivityTests.cs
#if !BASELINE #if NET5_0_OR_GREATER using System.Diagnostics; using System.Globalization; namespace SideBySide; public class ActivityTests : IClassFixture<DatabaseFixture> { public ActivityTests(DatabaseFixture database) { } [Fact] public void OpenTags() { using var parentActivity = new Activity(nameof(OpenT...
mit
C#
bb095b7dc017b4661c8ca703f54c48d99cd32375
Migrate Execution Quickstart
googleworkspace/dotnet-samples,gsuitedevs/dotnet-samples
appsScript/Execute/Execute.cs
appsScript/Execute/Execute.cs
// @license // Copyright Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
apache-2.0
C#
e5a87d25b9f0ab331d1b07c18b96ef2786b27059
Add Index.cshtml to Atata.WebDriverExtras.TestApp project
atata-framework/atata-webdriverextras,atata-framework/atata-webdriverextras
src/Atata.WebDriverExtras.TestApp/Pages/Index.cshtml
src/Atata.WebDriverExtras.TestApp/Pages/Index.cshtml
@page @{ ViewBag.Title = "Home"; }
apache-2.0
C#
e5370bb0b8f987e67a57c1cbf26784681905333e
Create ScienceRedefined.cs
Rhidian/ScienceRedefined
ScienceRedefined.cs
ScienceRedefined.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; /* * ScienceRedefined v. 0.1 [WIP] * Author: Rhidian * All Rights Reserved */ namespace ScienceRedefined { public class ModuleResearchExperiment : ModuleScienceExperiment { [KSPField(isP...
mit
C#
e1fff753c3354643a055efb7032bde853d55bc43
Add new login6 provider.
WorldWideTelescope/wwt-website,WorldWideTelescope/wwt-website,WorldWideTelescope/wwt-website
src/WWT.Providers/OtherProviders/Login6Provider.cs
src/WWT.Providers/OtherProviders/Login6Provider.cs
#nullable disable using Microsoft.Extensions.Logging; using System.Threading; using System.Threading.Tasks; using WWT.Catalog; using WWT.PlateFiles; namespace WWT.Providers { [RequestEndpoint("/wwtweb/login6.aspx")] public class Login6Provider : LoginUser { private readonly ICatalogAccessor _cata...
mit
C#
5292eacf372256becb16e8e30e93a217111eb41b
Create Problem173.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problem173.cs
Problem173.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler.Problems { class Problem173 { public static void Run() { int upper = 1000000; List<int> perimeter = new List<int>(); perimeter.Add(0); // 0 ...
mit
C#
92c08cc211604bb2ea6f1b8dca8625ad45d3b3da
Add network performance test
progaudi/progaudi.tarantool,aensidhe/tarantool-csharp,aensidhe/tarantool-dnx
tests/progaudi.tarantool.tests/NetworkPerformance.cs
tests/progaudi.tarantool.tests/NetworkPerformance.cs
using System; using System.Text; using ProGaudi.MsgPack.Light; using Xunit; using Shouldly; using ProGaudi.Tarantool.Client.Model.Requests; using ProGaudi.Tarantool.Client.Model.Responses; using System.Threading.Tasks; using ProGaudi.Tarantool.Client; using ProGaudi.Tarantool.Client.Tests; using ProGaudi.Tarantool....
mit
C#
9e4a6956ab907fe32ea1752e89a38c7fc4aad8e3
Create StudentRepository
stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity
C#Development/BashSoft/BashSoft/Repositories/StudentsRepository.cs
C#Development/BashSoft/BashSoft/Repositories/StudentsRepository.cs
namespace BashSoft.Repositories { using BashSoft.Exceptions; using BashSoft.IO; using System; using System.Collections.Generic; using System.Linq; public static class StudentsRepository { public static bool isDataInitialized = false; private static Dictionary<s...
mit
C#
fcf2e28921f79891083888c19d647dede2915ffc
Add - Attività Utente per la gestrione degli stati "InLavorazione" e "Prenotato"
vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf
src/backend/SO115App.Models/Classi/Soccorso/AttivitaUtente.cs
src/backend/SO115App.Models/Classi/Soccorso/AttivitaUtente.cs
using System; using System.Collections.Generic; using System.Text; namespace SO115App.Models.Classi.Soccorso { public class AttivitaUtente { public string Nominativo { get; set; } public DateTime DataInizioAttivita { get; set; } } }
agpl-3.0
C#
669a940cecc30a2af18f8abae5f288d458e9530c
Add simple ping controller to check functionality.
marcuson/A2BBServer,marcuson/A2BBServer,marcuson/A2BBServer
A2BBAPI/Controllers/PingController.cs
A2BBAPI/Controllers/PingController.cs
using A2BBAPI.Data; using A2BBAPI.Models; using A2BBCommon; using A2BBCommon.DTO; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System; using System.Linq; using static A2BBAPI.Models.InOut; namespace A2BBAPI.Controllers { /// <summary> /// C...
apache-2.0
C#
6237258c973e23b98d5cb7a8f60ef05e4d136ee9
Create Knob.cs
Onastick/SightByte
Knob.cs
Knob.cs
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace SightByte { public partial class Knob : Form { Form1 baseForm; public ...
cc0-1.0
C#
c71be64dc67112e000f389e3607fd4d350a68f0c
Update BacktestReport.cs
jameschch/Lean,StefanoRaggi/Lean,AlexCatarino/Lean,QuantConnect/Lean,StefanoRaggi/Lean,JKarathiya/Lean,kaffeebrauer/Lean,kaffeebrauer/Lean,JKarathiya/Lean,AnshulYADAV007/Lean,jameschch/Lean,Jay-Jay-D/LeanSTP,StefanoRaggi/Lean,AnshulYADAV007/Lean,AnshulYADAV007/Lean,AnshulYADAV007/Lean,kaffeebrauer/Lean,AlexCatarino/Lea...
Common/API/BacktestReport.cs
Common/API/BacktestReport.cs
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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...
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * 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...
apache-2.0
C#
31b56add15dcb56477f4fe66b2d761f11381773d
Add utilities
ektrah/nsec
src/Cryptography/Utilities.cs
src/Cryptography/Utilities.cs
using System; using System.Runtime.CompilerServices; namespace NSec.Cryptography { internal static class Utilities { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint ToBigEndian(uint value) { if (BitConverter.IsLittleEndian) { ...
mit
C#
7cce789975fdb6e5cfa28e045c549d7eff328779
Add script RtoRestart.cs
felladrin/unity-scripts,felladrin/unity3d-scripts
RtoRestart.cs
RtoRestart.cs
using UnityEngine; using UnityEngine.SceneManagement; public class RtoRestart : MonoBehaviour { private void Update() { if (Input.GetKeyDown(KeyCode.R)) { SceneManager.LoadScene(SceneManager.GetActiveScene().name); } } }
mit
C#
373395e21fbb9a0ed9f4e1d61322632b93bead6f
Add enumeration of supported SqlClient versions.
sharpjs/PSql,sharpjs/PSql
PSql/_Data/SqlClientVersion.cs
PSql/_Data/SqlClientVersion.cs
/* Copyright 2021 Jeffrey Sharp Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS A...
isc
C#
0a7cc9d4140c9d924ef97aafe04dbe7474261413
Introduce a new ReleaseManager tool (populate-api-catalog)
googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet
tools/Google.Cloud.Tools.ReleaseManager/PopulateApiCatalogCommand.cs
tools/Google.Cloud.Tools.ReleaseManager/PopulateApiCatalogCommand.cs
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
apache-2.0
C#
a0321786110ac18236c3c0d6973bd8991b537759
add user model
tsolarin/Csharp-jwt-authentication-sample
Api/Models/User.cs
Api/Models/User.cs
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Api.Models { public class User { public int Id { get; set; } [Required] public string Username { get; set; } [Required] ...
mit
C#
9b09361cc9a5b3ef1fb9cecf34e28f6401ae9def
Add testable spectator streaming client
peppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,ppy/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu-new,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu
osu.Game/Tests/Visual/Spectator/TestSpectatorStreamingClient.cs
osu.Game/Tests/Visual/Spectator/TestSpectatorStreamingClient.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using osu.Framework.Bindables; using osu.Framework.Utils; using osu.Game.Online; using osu.Game.Online.Spectator; using osu.Game.Replays...
mit
C#
367aacc3e110a3cee8bc35b0e9d12575aaa54cdf
Create String-Reversal.cs
DeanCabral/Code-Snippets
String-Reversal.cs
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#
6b8cfe2978e2e96aa0d8ab5158559ecb4198abb8
Create UseRandomSprite.cs
felladrin/unity-scripts,felladrin/unity3d-scripts
UseRandomSprite.cs
UseRandomSprite.cs
using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(SpriteRenderer))] public class UseRandomSprite : MonoBehaviour { public List<Sprite> spriteList = new List<Sprite>(); void Awake () { if (spriteList.Count > 0) { GetComponent<SpriteRenderer> ().sprite = spriteList [Random.Range (0, s...
mit
C#
12676aafb3cd7c78de491328289c087c930017cf
Move ExRegistry.cs
AonaSuzutsuki/ExRegistryHive
ExRegistry.cs
ExRegistry.cs
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace ExRegistryHive { class ExRegistry { [DllImport("advapi32.dll")] private static extern int RegLoadKey(uint hKey, string lpSubKey, string lpFile); [DllImp...
mit
C#
2cb6a2a5ea628d4d9481aca1ebbb02b69f4e6a45
Create Client.cs
hprose/hprose-dotnet
src/Hprose.RPC/Client.cs
src/Hprose.RPC/Client.cs
/*--------------------------------------------------------*\ | | | hprose | | | | Official WebSite: https://hprose.com | | ...
mit
C#
128329ea90644c7d6a50b913a546e4084b088ffb
Add sGame.cs to communicate with IDL in future
NightmareX1337/LF2.IDE
LF2.IDE/sGame.cs
LF2.IDE/sGame.cs
using System; using System.Runtime.InteropServices; [StructLayout(LayoutKind.Sequential)] struct sOpoint { int kind; int x; int y; int action; int dvx; int dvy; int oid; int facing; } [StructLayout(LayoutKind.Sequential)] struct sBpoint { int x; int y; } [StructLayout(LayoutKind.Sequential)] struct sCpoin...
mit
C#
2d11bfad57aa232de0333795111692780735df62
Create CrowdSSOUser.cs
ryanmcdonough/CrowdSSO
CrowdSSOUser.cs
CrowdSSOUser.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; public class CrowdSSOUser { public string Name { get; set; } }
mit
C#
7390bb0acdd331eacbbe6c3aab1208fc289ca2c6
fix veigar add tristana
imsosharp/LeagueSharp,srjojo/leaguesharp,srjojo/leaguesharp,srjojo/leaguesharp,imsosharp/LeagueSharp,j8f7/mirrored,imsosharp/LeagueSharp,j8f7/mirrored
AutoSharpporting/Plugins/Tristana.cs
AutoSharpporting/Plugins/Tristana.cs
#region LICENSE // Copyright 2014 Support // Morgana.cs is part of Support. // // Support 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 version 3 of the License, or // (at your option) any later ...
mit
C#
fc2d487ac7fdd6bb459cb2f2be8b9f39e71fb4f6
Add visual test for EdgeSnappingContainer
EVAST9919/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework
osu.Framework.Tests/Visual/Containers/TestSceneEdgeSnappingContainer.cs
osu.Framework.Tests/Visual/Containers/TestSceneEdgeSnappingContainer.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 osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osuTK; u...
mit
C#
63f623c7bfb50173cd7f9c388c4d1cf974037448
Add FineCountResponder (wip)
prinzo/Attack-Of-The-Fines-TA15,prinzo/Attack-Of-The-Fines-TA15,prinzo/Attack-Of-The-Fines-TA15
FineBot/FineBot.BotRunner/Responders/FineCountResponder.cs
FineBot/FineBot.BotRunner/Responders/FineCountResponder.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mime; using System.Text; using System.Threading.Tasks; using FineBot.BotRunner.Responders.Interfaces; using MargieBot.Models; namespace FineBot.BotRunner.Responders { public class FineCountResponder : IFineBotResponder { ...
mit
C#
00f684d6720341c36d3fda15128871e17f921488
Add unit tests for TestId
arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5
src/Arkivverket.Arkade.CoreTests/Util/TestIdTests.cs
src/Arkivverket.Arkade.CoreTests/Util/TestIdTests.cs
using System.Collections.Generic; using System.Linq; using Arkivverket.Arkade.Core.Util; using FluentAssertions; using Xunit; namespace Arkivverket.Arkade.CoreTests.Util { public class TestIdTests { [Fact] public void ToStringTest() { var testId = new TestId(TestId.TestKind...
agpl-3.0
C#