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
bb4776e9b22256587fa0da37b09065ef1e570d88
Update version
parryjacob/DiscordSharp,uwx/DSharpPlus,parryjacob/DiscordSharp,Luigifan/DiscordSharp,uwx/DSharpPlus,Luigifan/DiscordSharp,Emzi0767/DSharpPlus
DiscordSharp/Properties/AssemblyInfo.cs
DiscordSharp/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("Di...
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("Di...
mit
C#
54dac6947dd3fd144a2e011af32c48d4625d6bdc
Add ReadMeHelper
kbilsted/LineCounter.Net
LineCounter.Tests/ReadMeHelper.cs
LineCounter.Tests/ReadMeHelper.cs
using System.IO; using System.Text.RegularExpressions; using NUnit.Framework; using TeamBinary.LineCounter; namespace LineCounter.Tests { public class ReadMeHelper { [Test] public void MutateReadme() { var pathReadme = @"C:\src\LineCounter.Net\README.md"; var readme = File.ReadAllText(pathReadme); var ...
apache-2.0
C#
ef54882d5d8e5ed5ea0451c715fa9c23995b6e12
Add an interface for scrubbing rollbar data.
Valetude/Nancy.Rollbar
Nancy.Rollbar/Api/IRollbarDataScrubber.cs
Nancy.Rollbar/Api/IRollbarDataScrubber.cs
using Valetude.Rollbar; namespace Nancy.Rollbar.Api { public interface IRollbarDataScrubber{ RollbarData ScrubRollbarData(RollbarData data); } }
mit
C#
02b6c2329b86da4e7e1da89b57237f80f620e049
Convert a MusicBrainz date into a DateTime object
lamalex/Banshee,arfbtwn/banshee,dufoli/banshee,directhex/banshee-hacks,Carbenium/banshee,stsundermann/banshee,Dynalon/banshee-osx,petejohanson/banshee,stsundermann/banshee,stsundermann/banshee,GNOME/banshee,dufoli/banshee,dufoli/banshee,directhex/banshee-hacks,allquixotic/banshee-gst-sharp-work,mono-soc-2011/banshee,st...
src/MusicBrainz/Utilities.cs
src/MusicBrainz/Utilities.cs
/* -*- Mode: csharp; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: t -*- */ /*************************************************************************** * Utilities.cs * * Copyright (C) 2005 Novell * Written by Aaron Bockover (aaron@aaronbock.net) ***********************************************************...
mit
C#
14f54a63c882720cb60a91e3be2568b1a567eeef
Add Q230
txchen/localleet
csharp/Q230_KthSmallestElementInABST.cs
csharp/Q230_KthSmallestElementInABST.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. // // Note: // You may assume k is always valid, 1 ≤ k ≤ BST's total elements. // // Follow up...
mit
C#
eef628e2156c202c48da47ce8da40f0d223a2a53
Order status structure, closes #10
svasorcery/rzd-ru-api
Kaolin.Services.PassRzdRu.Parser/Structs/Layer5417.cs
Kaolin.Services.PassRzdRu.Parser/Structs/Layer5417.cs
namespace Kaolin.Services.PassRzdRu.Parser.Structs { /// <summary> /// Order status /// </summary> public class Layer5417 { public string Result { get; set; } public string RID { get; set; } public OrderStatus[] Lst { get; set; } public class OrderStatus { ...
mit
C#
9903ae40e8999d18057b3b9c767dc933a5064ac1
Add the ability to get the TargetFramework for a assembly
paulcbetts/splat
src/Splat/TargetFrameworkExtensions.cs
src/Splat/TargetFrameworkExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.Versioning; using System.Text; using System.Threading.Tasks; namespace Splat { /// <summary> /// Extension methods that help to get the target framework for a assembly. /// </summary> publi...
mit
C#
791a9dd33a3a6754170457a9da701f776b4c7958
add WikiArticlePage
UselessToucan/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,ppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu
osu.Game/Overlays/Wiki/WikiArticlePage.cs
osu.Game/Overlays/Wiki/WikiArticlePage.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.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Overlays.Wiki.Markdown; namespace osu.Game.Overlays.Wiki { public class WikiArt...
mit
C#
2906807c239b1b1aec040a8871307b8e37b73c63
Create AbstractDistinctValuesCollector.cs
apache/lucenenet,laimis/lucenenet,sisve/lucenenet,jeme/lucenenet,mdissel/lucene.net,laimis/lucenenet,mdissel/lucene.net,jeme/lucenenet,NightOwl888/lucenenet,jeme/lucenenet,jeme/lucenenet,NightOwl888/lucenenet,apache/lucenenet,NightOwl888/lucenenet,apache/lucenenet,sisve/lucenenet,apache/lucenenet,NightOwl888/lucenenet
src/Lucene.Net.Core/Search/Grouping/AbstractDistinctValuesCollector.cs
src/Lucene.Net.Core/Search/Grouping/AbstractDistinctValuesCollector.cs
using Lucene.Net.Search; using Lucene.Net.Util; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Lucene.Net.Search.Grouping { public abstract class AbstractDistinctValuesCollector<T> : Collector where T : AbstractDistinctValuesCollector.GroupCount { public abstract Li...
apache-2.0
C#
aa2d9621cc65e23fdcd824271535309c62679e36
Create IntArray.cs
Andrew197/SharpTools
IntArray.cs
IntArray.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //Array Tools class //to use, add 'using Sharptools.arrays' to your program namespace Sharptools.Arrays { public enum arrayType { NO_DUPLICATES, //this array will not allow duplicat...
mit
C#
0f31cbee48e396a86d9419d951a3cb710aa2b79d
Add initial page permission enums.
Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW
MitternachtWeb/Models/PagePermissions.cs
MitternachtWeb/Models/PagePermissions.cs
using System; namespace MitternachtWeb.Models { [Flags] public enum BotPagePermissions { None = 0b00, ReadBotConfig = 0b01, WriteBotConfig = 0b11, } [Flags] public enum GuildPagePermissions { None = 0b_0000_0000, ReadGuildConfig = 0b_0000_0001, WriteGuildConfig = 0b_0000_0011...
mit
C#
bda8cf2178865b6d7779564bf6d566d55b6bce04
add this
WorldWideTelescope/wwt-website,WorldWideTelescope/wwt-website,WorldWideTelescope/wwt-website
src/WWT.Providers/TileProviders/NLASDSSProvider.cs
src/WWT.Providers/TileProviders/NLASDSSProvider.cs
// NOIRLab All Sky combined with WWT DSS. // // This needs a custom tile provider because layers 0-8 use a custom fade of the // NOIRLab All-Sky map into the classic WWT DSS imagery, then layers 9-12 use // the classic WWT DSS imagery. #nullable disable using System; using System.Threading; using System.Threading.Tas...
mit
C#
f21e7443b6291ac6617f8c4f9c5715d6bbf66b5b
Add EmptyResultException
peopleware/net-ppwcode-vernacular-persistence
src/IV/Exceptions/EmptyResultException.cs
src/IV/Exceptions/EmptyResultException.cs
// Copyright 2019 by PeopleWare n.v.. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writi...
apache-2.0
C#
211bd3fa15b31fa5e38ff139f19b145607331366
Implement feature extractor for Punctuation
boumenot/Grobid.NET
src/Grobid/Punctuation.cs
src/Grobid/Punctuation.cs
namespace Grobid { public enum Punctuation { COMMA, DOT, ENDBRACKET, HYPHEN, NOPUNCT, OPENBRACKET, PUNCT, QUOTE, } }
apache-2.0
C#
0dd4fb6933b62654a565260568dd2d77bbe4a7a0
update assembly info.
HongJunRen/RazorEngine,csantero/RazorEngine,bcuff/RazorEngine,MetSystem/RazorEngine,SharpeRAD/RazorEngine,aviatrix/RazorEngine,bcuff/RazorEngine,SharpeRAD/RazorEngine,aviatrix/RazorEngine,csantero/RazorEngine,Antaris/RazorEngine,Antaris/RazorEngine,HongJunRen/RazorEngine,MetSystem/RazorEngine
src/SharedAssemblyInfo.cs
src/SharedAssemblyInfo.cs
// <auto-generated/> using System.Reflection; [assembly: AssemblyCompanyAttribute("RazorEngine")] [assembly: AssemblyProductAttribute("RazorEngine")] [assembly: AssemblyCopyrightAttribute("RazorEngine Copyright © RazorEngine Project 2011-2015")] [assembly: AssemblyVersionAttribute("3.6.3")] [assembly: AssemblyFileVer...
// <auto-generated/> using System.Reflection; [assembly: AssemblyCompanyAttribute("RazorEngine")] [assembly: AssemblyProductAttribute("RazorEngine")] [assembly: AssemblyCopyrightAttribute("RazorEngine Copyright © RazorEngine Project 2011-2015")] [assembly: AssemblyVersionAttribute("3.6.3")] [assembly: AssemblyFileVer...
apache-2.0
C#
4b2b7b6fe8ef8ce734a8fd93253c60e2d0a15521
Revert "KILL IT WITH FIRE"
JollyCompany/teamjollygame2
jollyplatformer/Assets/InControl/Source/VersionInfo.cs
jollyplatformer/Assets/InControl/Source/VersionInfo.cs
using System; using System.Text.RegularExpressions; using UnityEngine; namespace InControl { public struct VersionInfo : IComparable<VersionInfo> { public int Major; public int Minor; public int Patch; public int Build; public VersionInfo( int major, int minor = 0, int patch = 0, int build = 0 ) { ...
mit
C#
21af0cb32d1670c3676b2be054888ac8e2bb9c72
Fix build
weltkante/roslyn,panopticoncentral/roslyn,tannergooding/roslyn,KevinRansom/roslyn,AmadeusW/roslyn,physhi/roslyn,weltkante/roslyn,physhi/roslyn,stephentoub/roslyn,mavasani/roslyn,heejaechang/roslyn,jasonmalinowski/roslyn,gafter/roslyn,bartdesmet/roslyn,bartdesmet/roslyn,AlekseyTs/roslyn,tmat/roslyn,sharwell/roslyn,heeja...
src/CodeStyle/Core/Analyzers/AbstractFormattingAnalyzer.cs
src/CodeStyle/Core/Analyzers/AbstractFormattingAnalyzer.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.Collections.Immutable; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.Co...
// 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.Collections.Immutable; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.Co...
mit
C#
9488ce6796a0ca6e810a6f054ac42af049a4be50
Add Cairo Sample
orion75/gtk-sharp,openmedicus/gtk-sharp,akrisiun/gtk-sharp,orion75/gtk-sharp,antoniusriha/gtk-sharp,akrisiun/gtk-sharp,Gankov/gtk-sharp,antoniusriha/gtk-sharp,akrisiun/gtk-sharp,Gankov/gtk-sharp,Gankov/gtk-sharp,antoniusriha/gtk-sharp,sillsdev/gtk-sharp,antoniusriha/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,sillsde...
sample/CairoSample.cs
sample/CairoSample.cs
// // Sample program demostrating using Cairo with Gtk# // using Gtk; using Gdk; using System; using GtkSharp; using Cairo; class X { static DrawingArea a, b; static void Main () { Application.Init (); Gtk.Window w = new Gtk.Window ("Hello"); a = new DrawingArea (); a.ExposeEvent += new ExposeEventHandle...
lgpl-2.1
C#
c84f49addf09a4137808079504052f2546b6ca4d
Add testcase
DrabWeb/osu,EVAST9919/osu,2yangk23/osu,naoey/osu,peppy/osu,UselessToucan/osu,ppy/osu,EVAST9919/osu,naoey/osu,smoogipoo/osu,ppy/osu,DrabWeb/osu,peppy/osu-new,DrabWeb/osu,ppy/osu,johnneijzen/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,ZLima12/osu,peppy/osu,johnneijzen/osu,smoogipoo/osu,NeoAdonis/o...
osu.Game.Rulesets.Mania.Tests/TestCaseHoldNotePlacementBlueprint.cs
osu.Game.Rulesets.Mania.Tests/TestCaseHoldNotePlacementBlueprint.cs
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Mania.Edit.Blueprints; using osu.Game.Rulesets.Mania.Objects; using osu.Game.Rulesets.Mania.Objects.Drawables; usin...
mit
C#
5fc0de857aaa4a9d2b74defe1ad5672bf516def9
Add "Database"
DRFP/Personal-Library
_Build/PersonalLibrary/Library/Database.cs
_Build/PersonalLibrary/Library/Database.cs
using Library.Model; using System; using System.Collections.Generic; namespace Library { public class Database { public static List<Book> Books() { var books = new List<Book>(); books.Add(new Book { slfID = 1, booTitle = "Title", boo...
mit
C#
e81b76ada8722e0f330f55cbf31066b5828e53ba
add SequentialGuidGenerator.cs
WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common
src/WeihanLi.Common/Helpers/SequentialGuidGenerator.cs
src/WeihanLi.Common/Helpers/SequentialGuidGenerator.cs
using System; using System.Security.Cryptography; namespace WeihanLi.Common.Helpers { /* This code is taken from https://github.com/jhtodd/SequentialGuid/blob/master/SequentialGuid/Classes/SequentialGuid.cs */ /// <summary> /// Create Sequential Guid /// better performance for use guid as database pr...
mit
C#
549f90c5b51939fa40439a65baa15f8664529958
Update calling card interface
TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,RavenB/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,EriHoss/OpenSim_0.8.2.0_Dev...
OpenSim/Framework/ICallingCardModule.cs
OpenSim/Framework/ICallingCardModule.cs
using System; using System.Collections.Generic; using System.Text; using OpenMetaverse; using OpenSim.Framework; namespace OpenSim.Framework { public interface ICallingCardModule { UUID CreateCallingCard(UUID userID, UUID creatorID, UUID folderID); } }
using System; using System.Collections.Generic; using System.Text; using OpenMetaverse; using OpenSim.Framework; namespace OpenSim.Framework { public interface ICallingCardModule { void CreateCallingCard(UUID userID, UUID creatorID, UUID folderID); } }
bsd-3-clause
C#
6206380e0deb407508dd569d5c9c46997548eb04
Remove pragma disable CC0021 after fixed bug
andrecarlucci/code-cracker,thorgeirk11/code-cracker,kindermannhubert/code-cracker,robsonalves/code-cracker,caioadz/code-cracker,ElemarJR/code-cracker,gerryaobrien/code-cracker,eriawan/code-cracker,carloscds/code-cracker,akamud/code-cracker,adraut/code-cracker,GuilhermeSa/code-cracker,carloscds/code-cracker,thomaslevesq...
src/CSharp/CodeCracker/Style/AlwaysUseVarCodeFixProvider.cs
src/CSharp/CodeCracker/Style/AlwaysUseVarCodeFixProvider.cs
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using System.Collections.Immutable; using System.Composition; using System.Linq; using System.Threading; using System.Threadin...
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using System.Collections.Immutable; using System.Composition; using System.Linq; using System.Threading; using System.Threadin...
apache-2.0
C#
487d4fd16154abbb03d824eb1040b1702834b214
Create Event.cs
dlidstrom/EventStoreLite
Event.cs
Event.cs
using System; using System.Linq; namespace RavenEventStore { public abstract class Event<TAggregate> : IEvent { public abstract string AggregateId { get; set; } public abstract DateTimeOffset TimeStamp { get; set; } } }
mit
C#
b387d57c6abcb909fa579e48e311773c8e103c34
Add Match Tests
iwillspeak/IronRure,iwillspeak/IronRure
test/IronRureTests/MatchTests.cs
test/IronRureTests/MatchTests.cs
using System; using Xunit; using IronRure; namespace IronRureTests { public class MatchTests { [Fact] public void Match_CreateWithSuccessfulMatch_ExposesOffsets() { var match = new Match(true, 1, 3); Assert.True(match.Matched); Assert.Equal(1, match....
mit
C#
c10d4a9aa31c207ab000c0f57b1111501ff73933
Add unit test for strongly connected components.
wo80/CSparse.NET
CSparse.Tests/Ordering/TestStronglyConnectedComponents.cs
CSparse.Tests/Ordering/TestStronglyConnectedComponents.cs
 namespace CSparse.Tests.Ordering { using CSparse.Double; using CSparse.Ordering; using NUnit.Framework; using System; public class TestStronglyConnectedComponents { [Test] public void TestScc() { // https://en.wikipedia.org/wiki/Strongly_connected_component...
lgpl-2.1
C#
2f4f687e1a66496398ec8a39ad5ab7bab1275f27
Create Utilities class
bartlomiejwolk/AnimatorController
Utilities.cs
Utilities.cs
using System; using System.Diagnostics; using System.Reflection; using UnityEditor; using UnityEngine; namespace AnimatorControllerEx { public enum InfoType { Warning, Error } public static class Utilities { /// <summary> /// </summary> /// <remarks> //...
mit
C#
4b27a7b49eb6298d6fb17a4004e534c4634ac0ea
Add ConfigureIf Extensions
AspectCore/Abstractions,AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Lite
src/AspectCore.Lite.Abstractions/InterceptorConfigurationExtensions.cs
src/AspectCore.Lite.Abstractions/InterceptorConfigurationExtensions.cs
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace AspectCore.Lite.Abstractions { public static class InterceptorConfigurationExtensions { public static IInterceptorConfiguration Configure(this IInterceptorConfiguration c...
mit
C#
33b9a5b0ba5c34fe553d8eaa4c74b765837e2fae
Create DomainObject.cs
MercedeX/StrangeStateMachineExample
DomainObject.cs
DomainObject.cs
using System; namespace Domain { public class DomainObject { public string Name { get; private set; } public override string ToString() { return Name; } public DomainObject(string name) { Name = name; } } }
apache-2.0
C#
c2681868d1554fabbf0171238f0340361c98a11d
Add more SDL2 native functions
peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework
osu.Framework/Platform/Sdl2Functions.cs
osu.Framework/Platform/Sdl2Functions.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.Numerics; using System.Runtime.InteropServices; using osu.Framework.Graphics; using Veldrid.Sdl2; // ReSharper disable InconsistentNaming namespace osu.Fra...
mit
C#
d4108c797fc418af23cc6f980c730328d6febc5f
add watch
fs7744/etcdcsharp
etcd.v3/WatchExtensions.cs
etcd.v3/WatchExtensions.cs
using Etcdserverpb; using Grpc.Core; namespace ETCD.V3 { public static class WatchExtensions { public static AsyncDuplexStreamingCall<WatchRequest, WatchResponse> Watch(this Client client) { return client.Watch.Watch(client.CallToken); } } }
mit
C#
b0c37c35578e373c335bedcfd4d3fda1f7efac21
add assemblyinfo.cs
xizhonghua/SharpMASC,xizhonghua/SharpMASC
src/SharpMASC/Properties/AssemblyInfo.cs
src/SharpMASC/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("SharpMASC")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ("")] [assembl...
apache-2.0
C#
2fed909bdbb9c43a99cd537446f5547b59f964af
Add command line project loading
JPVenson/ConfuserEx,Desolath/ConfuserEx3,fretelweb/ConfuserEx,modulexcite/ConfuserEx,mirbegtlax/ConfuserEx,yeaicc/ConfuserEx,apexrichard/ConfuserEx,KKKas/ConfuserEx,manojdjoshi/ConfuserEx,engdata/ConfuserEx,Desolath/Confuserex,mirbegtlax/ConfuserEx,AgileJoshua/ConfuserEx,Immortal-/ConfuserEx,JPVenson/ConfuserEx,timnboy...
ConfuserEx/MainWindow.xaml.cs
ConfuserEx/MainWindow.xaml.cs
using System; using System.ComponentModel; using System.IO; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Xml; using Confuser.Core.Project; using ConfuserEx.ViewModel; namespace ConfuserEx { public partial class MainWindow : Window { public MainWindow()...
using System; using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using Confuser.Core.Project; using ConfuserEx.ViewModel; namespace ConfuserEx { public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); va...
mit
C#
e9da7b64eb78ea87d15226e9cab73508e9bef8d6
Remove unnecesary usings.
stephentoub/roslyn,weltkante/roslyn,lorcanmooney/roslyn,drognanar/roslyn,Hosch250/roslyn,mattwar/roslyn,shyamnamboodiripad/roslyn,agocke/roslyn,MichalStrehovsky/roslyn,balajikris/roslyn,AArnott/roslyn,rgani/roslyn,xoofx/roslyn,mmitche/roslyn,VSadov/roslyn,khyperia/roslyn,VSadov/roslyn,tmeschter/roslyn,ericfe-ms/roslyn,...
src/Compilers/Core/Portable/MetadataReference/Metadata.cs
src/Compilers/Core/Portable/MetadataReference/Metadata.cs
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.CodeAnalysis { /// <summary> /// An Id that can be used to identify a metadata instance. If two metadata instance...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Reflection.Metadata; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis { ...
mit
C#
4644301e68839be92bce93bcb670ec22aebdd5ac
Add deprecated property on Disk
ClogenyTechnologies/azure-powershell,hungmai-msft/azure-powershell,naveedaz/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,devigned/azure-powershell,devigned/azure-powershell,naveedaz/azure-powershell,devigned/azure-powershell,hungmai-msft/azure-powershell,naveedaz/azure-powe...
src/ResourceManager/Compute/Commands.Compute/Generated/Models/PSDisk.cs
src/ResourceManager/Compute/Commands.Compute/Generated/Models/PSDisk.cs
// // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requi...
// // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requi...
apache-2.0
C#
766325f903926c7ef5cfb9fef813373793e7096d
add InheritingTest
acple/ParsecSharp
UnitTest.ParsecSharp/InheritingTest.cs
UnitTest.ParsecSharp/InheritingTest.cs
using System; using ParsecSharp; using ParsecSharp.Internal; namespace UnitTest.ParsecSharp { // checks accessibility settings for user-inheriting internal class InheritingTest { private class PrimitiveParserInheritingTest<TToken, T> : PrimitiveParser<TToken, T> { protected over...
mit
C#
26ba21a2c7c7ede8e6e28d72640a1c7d887fc4b1
Create AssemblyInfo.cs
isisbilisim/SampleCSharp
Properties/AssemblyInfo.cs
Properties/AssemblyInfo.cs
unlicense
C#
d3aa369437f0c05ae7d5aade5d6757ace529e132
Create LPMainWindow.xaml.cs
kfpopeye/LinePatternViewerWpfControl
LPMainWindow.xaml.cs
LPMainWindow.xaml.cs
using System; using System.Collections.Generic; using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Media; using System.Windows.Shapes; using Autodesk.Revit.DB; namespace LinePatternMacro { /// <summary> /// Interaction logic for Mai...
mit
C#
1f8160edbcfef7251c52dc5f2acce6ad9de273d0
Embed assembly info and version
josevalim/inotify-win,josevalim/inotify-win,McBen/inotify-win,logonmy/inotify-win
src/main/csharp/AssemblyInfo.cs
src/main/csharp/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("https://github.com/thekid/inotify-win")] [assembly: AssemblyDescription("A port of the inotifywait tool for Windows")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Timm ...
bsd-3-clause
C#
73773b87d947b5516c8a0887b3366db7a8aa87e8
Add MockHttpHandlerTest.cs
WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common
test/WeihanLi.Common.Test/HttpTest/MockHttpHandlerTest.cs
test/WeihanLi.Common.Test/HttpTest/MockHttpHandlerTest.cs
// Copyright (c) Weihan Li. All rights reserved. // Licensed under the MIT license. using System.Net; using WeihanLi.Common.Http; using Xunit; namespace WeihanLi.Common.Test.HttpTest; public class MockHttpHandlerTest { [Theory] [InlineData(HttpStatusCode.OK)] [InlineData(HttpStatusCode.BadRequest)] ...
mit
C#
e5c69cffcac9aec5a94fd10308729228dd31530d
add xml report
TeamBromine/Main
ComputerFactory/ComputerFactory.Data/Xml/XmlReportGenerator.cs
ComputerFactory/ComputerFactory.Data/Xml/XmlReportGenerator.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace ComputerFactory.Data.Xml { class XmlReportGenerator { //change DatabaseType to actual type private DatabaseType database; private const string...
mit
C#
b0bd1321953d102def66a219b854c45977467355
Add Initializers
kawatan/Milk
Megalopolis/Initializers.cs
Megalopolis/Initializers.cs
using System; namespace Megalopolis { public static class Initializers { public static double LecunNormal(int fanIn) { return RandomProvider.GetRandom().Uniform(-1, 1) * Math.Sqrt(1 / fanIn); } public static double LecunUniform(int fanIn) { var ...
apache-2.0
C#
29c0310d2a554af84cd8b0c991f3035384204104
Create UriExtension.cs
yuanrui/Examples,yuanrui/Examples,yuanrui/Examples,yuanrui/Examples,yuanrui/Examples
Simple.Common/Extensions/UriExtension.cs
Simple.Common/Extensions/UriExtension.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Simple.Common.Extensions { public static class UriExtension { public static string GetBaseUrl(this Uri uri) { return uri.Scheme + "://" + uri.Host + ":" + uri.Port; } } }
apache-2.0
C#
7e5e87565e258e9f8f736c950442d486a03f357e
Create Precision.cs
CypressNorth/.NET-EF6-PrecisionAnnotation
Precision.cs
Precision.cs
using System; using System.Data.Entity; using System.Linq; namespace My.Data.Annotations { /// <summary> /// The Precision class allows us to decorate our Entity Models with a Precision attribute /// to specify decimal precision values for the database column /// </summary> [AttributeUsage(Attribu...
mit
C#
ce0ec360bc353a53ed94aeb3eeb25af5283a0029
Create Recaptcha.cs
jamesti/recaptcha-net
Recaptcha.cs
Recaptcha.cs
using System; using System.Collections.Generic; using System.Web; using System.Web.Helpers; using System.Text; using System.Net; namespace Api.Google { public class Recaptcha { private const string siteVerifyUrl = "https://www.google.com/recaptcha/api/siteverify?"; private const string version ...
mit
C#
026c6325390fe7aa72a81b91b51a26ff836a4b7c
Add test coverage
NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,peppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,peppy/osu-new
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModMuted.cs
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModMuted.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 NUnit.Framework; using osu.Framework.Testing; using osu.Game.Rulesets.Mods; using osu.Game.Rulesets.Osu.Mods; namespace osu.Game.Rulesets.Osu.Te...
mit
C#
1462eb4566389433828d5ca372638a9997b9490b
Create HtmlExtensions.cs
estebanmurchio/RenderScripts
src/HtmlExtensions.cs
src/HtmlExtensions.cs
public static class HtmlHelperExtensions { public static MvcHtmlString RenderScripts(this HtmlHelper helper) { var scripts = helper.ViewContext.HttpContext.Items["Scripts"] as IList<string>; if (scripts != null) { var builder = new StringBuilder(); foreach (var sc...
mit
C#
8cbec8286a2fdb6aa2f3d044755d0c5798b8716f
Add missing file for CompilerOptions
ilovepi/Compiler,ilovepi/Compiler
compiler/CompilerOptions.cs
compiler/CompilerOptions.cs
namespace compiler { public struct CompilerOptions { public bool CopyProp; public bool Cse; public bool DeadCode; public bool PruneCfg; public bool RegAlloc; public bool InstSched; public bool CodeGen; public bool GraphOutput; public strin...
mit
C#
7f577ce0df03b6d9d47c462e14eaf6b854789bc6
Add notes on the alert model
mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander
Battery-Commander.Web/Models/Alert.cs
Battery-Commander.Web/Models/Alert.cs
namespace BatteryCommander.Web.Models { public class Alert { // Id // SentAt // Recipients - IDs? - Pull Phone, Email from Soldier entity // Format - SMS? Email? Phone? // Message / Content // Status - Open, Closed -- Only one open at a time, all responses w...
mit
C#
02445226712812e1f6e5288a9b65213dacb64943
Add AssemblyInfo.cs
HarkerRobo/digital-core
Application/Properties/AssemblyInfo.cs
Application/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("Ap...
mit
C#
eefdce0fb94698418062dd09be021f36ed87e3e0
Create test1.cs
neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu...
POH6plus/test1.cs
POH6plus/test1.cs
using System; using S=System.String; using C=System.Console; using System.Linq; class H { public static void Main() { var z=C.In.ReadToEnd().Split(null); var d=new System.Collections.Generic.Dictionary<S,S>(); S s="",t=s,r,x; int i,j; if(z[0]=="6") C.Write("f...
mit
C#
affd9b8e692ba0aae8d47047ab13359c32af7f01
Create fruitstylesheet.cs
lendkhoa/lendkhoa.github.io,lendkhoa/lendkhoa.github.io
projectcontents/css/fruitstylesheet.cs
projectcontents/css/fruitstylesheet.cs
#canvas{ height: 500px; width: 700px; /*background-color: coral;*/ border-style: solid; text-align: center; margin: 10px auto; border-radius:15px; position:relative; overflow: hidden; /*anything outside of the border will be hidden*/ } #control{ padding-top: 10px; height: 100...
apache-2.0
C#
232f253d85aeb058674c69398d9f7264bf52fc50
add more test exceptions
LinqToDB4iSeries/linq2db,linq2db/linq2db,linq2db/linq2db,ronnyek/linq2db,MaceWindu/linq2db,MaceWindu/linq2db,LinqToDB4iSeries/linq2db
Tests/Linq/UserTests/Issue1363Tests.cs
Tests/Linq/UserTests/Issue1363Tests.cs
using LinqToDB; using LinqToDB.Mapping; using NUnit.Framework; using System; using System.Linq; namespace Tests.UserTests { /// <summary> /// Test fixes to Issue #1305. /// Before fix fields in derived tables were added first in the column order by <see cref="DataExtensions.CreateTable{T}(IDataContext, string, str...
using LinqToDB; using LinqToDB.Mapping; using NUnit.Framework; using System; using System.Linq; namespace Tests.UserTests { /// <summary> /// Test fixes to Issue #1305. /// Before fix fields in derived tables were added first in the column order by <see cref="DataExtensions.CreateTable{T}(IDataContext, string, str...
mit
C#
a5af33629838fd8fc6164e2df6c67fbb4e9ba0ed
Swap partial and static keywords since this causes compile errors with latest compiler.
zhenlan/corefx,Jiayili1/corefx,shimingsg/corefx,ViktorHofer/corefx,ptoonen/corefx,mmitche/corefx,wtgodbe/corefx,shimingsg/corefx,wtgodbe/corefx,ravimeda/corefx,ericstj/corefx,ptoonen/corefx,Jiayili1/corefx,shimingsg/corefx,Jiayili1/corefx,BrennanConroy/corefx,wtgodbe/corefx,mmitche/corefx,BrennanConroy/corefx,ViktorHof...
src/System.Net.Sockets/ref/System.Net.Sockets.netcoreapp.cs
src/System.Net.Sockets/ref/System.Net.Sockets.netcoreapp.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. // ------------------------------------------------------------------------------ // Changes to this file must follo...
// 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. // ------------------------------------------------------------------------------ // Changes to this file must follo...
mit
C#
ccba1f1a08a56db1bce295e6d232c4b5ef524e8f
Create SelectionSort.cs
manikTharaka/al-go-rithms,Cnidarias/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,Cnidarias/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,Deepak345/al-go-rithms,Cnidarias/al-go-rithms,Cnidarias/al-go-rithms,manikTharaka/al-go-rithms,manikTharaka/al-go-rithms,Cnidarias/al-go...
sort/selection_sort/CSharp/SelectionSort.cs
sort/selection_sort/CSharp/SelectionSort.cs
public class SelectionSort { public static void Main(string[] args) { int[] items = new int[] { 52, 62, 143, 73, 22, 26, 27, 14, 62, 84, 15 }; Sort(items); System.Console.WriteLine("Sorted: "); for (int i = 0; i < items.Length; i++) System.Console.Writ...
cc0-1.0
C#
1848b98d9a6dda4a63889f490fb130908d9135ac
Create Index.cshtml
CarmelSoftware/Generic-Data-Repository-With-Caching
Views/Blogs/Index.cshtml
Views/Blogs/Index.cshtml
@model IEnumerable<GenericRepositoryWithCatching.Models.Blog> @{ ViewBag.Title = "Index"; } <div class="jumbotron"> <h2>Generic Repository With Memory Caching - @ViewBag.Title</h2><h4>By Carmel</h4> </div> <div class="jumbotron"> <p> @Html.ActionLink("Create New", "Create") </p> <table class="table"> <tr> ...
mit
C#
14287b610331f630d1325fcb88bd0fe74e483231
Add failing integration test
AutoMapper/AutoMapper,AutoMapper/AutoMapper
src/IntegrationTests/MemberWithSubQueryProjections.cs
src/IntegrationTests/MemberWithSubQueryProjections.cs
using Shouldly; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Data.Entity; using System.Linq; using Xunit; namespace AutoMapper.IntegrationTests { using UnitTests; public class MemberWithSubQueryProjections : AutoMapperSpecBase { public class Customer...
mit
C#
c37f2f2e001241636e64f12baf4662b103fba919
Add tests for Project Resources.
vevix/DigitalOcean.API
DigitalOcean.API.Tests/Clients/ProjectResourcesClientTest.cs
DigitalOcean.API.Tests/Clients/ProjectResourcesClientTest.cs
using System.Collections.Generic; using DigitalOcean.API.Clients; using DigitalOcean.API.Http; using DigitalOcean.API.Models.Requests; using DigitalOcean.API.Models.Responses; using NSubstitute; using RestSharp; using Xunit; namespace DigitalOcean.API.Tests.Clients { public class ProjectResourcesClientTest { ...
mit
C#
0ca8646dc3394865fe72c3546848d12d92526c58
Add PasswordUtilities class
Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training,Chess-Variants-Training/Chess-Variants-Training
src/AtomicChessPuzzles/PasswordUtilities.cs
src/AtomicChessPuzzles/PasswordUtilities.cs
using System; using System.Security.Cryptography; namespace AtomicChessPuzzles { public static class PasswordUtilities { const int ITERATIONS = 100000; public static Tuple<string, string> HashPassword(string password) { Rfc2898DeriveBytes k = new Rfc2898DeriveBytes(passwor...
agpl-3.0
C#
07c46ceacdb5c32949f0181b49fa73a008717617
Add EventStore implementation of IEventStore.
GoodSoil/cqrs-starter-kit,edumentab/cqrs-starter-kit,GoodSoil/cqrs-starter-kit,csuffyy/cqrs-starter-kit,csuffyy/cqrs-starter-kit,edumentab/cqrs-starter-kit,rofr/origodb-ddd-demo,edumentab/cqrs-starter-kit,rofr/origodb-ddd-demo,rofr/origodb-ddd-demo,dagilleland/cqrs-starter-kit,dagilleland/cqrs-starter-kit
extras/ESEventStore.cs
extras/ESEventStore.cs
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Xml.Serialization; using EventStore.ClientAPI; namespace Edument.CQRS { // An implementation of IEventStore in terms of EventStore, available from // h...
bsd-3-clause
C#
4d31aee739a00283d1c9902de12ff1fb62354bd6
Add Q232
txchen/localleet
csharp/Q232_ImplementQueueUsingStacks.cs
csharp/Q232_ImplementQueueUsingStacks.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Implement the following operations of a queue using stacks. // // push(x) -- Push element x to the back of queue. // pop() -- Removes the element from in front of queue. // peek() -- Get the ...
mit
C#
3922499681909aeecb8c7a44d03d8c6b3447e91a
Create UserModel
DimitarDKirov/Forum-Paulo-Coelho,DimitarDKirov/Forum-Paulo-Coelho,DimitarDKirov/Forum-Paulo-Coelho
Forum-Paulo-Coelho/ForumSystem.Api/Models/UserModel.cs
Forum-Paulo-Coelho/ForumSystem.Api/Models/UserModel.cs
namespace ForumSystem.Api.Models { using System; using System.Collections.Generic; using System.Linq; using System.Web; public class UserModel { public string Username { get; set; } public string Nickname { get; set; } public string AuthCode { get; set; } ...
mit
C#
ad380ed863eb64a2c563a0ebe3a09cc37087fb03
Add a unit test for the new reserve-whitespace behavior
AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/azure-activedirectory-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet,AzureAD/microsoft-authentication-library-for-dotnet
tests/Test.ADAL.NET.Unit/WsTrustTests.cs
tests/Test.ADAL.NET.Unit/WsTrustTests.cs
//---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. // All rights reserved. // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentat...
mit
C#
b84c15c8071eb098d295949a21262c425082e4d4
Fix for FAR in sample app
TriadTom/Caliburn.Micro,dvdvorle/Caliburn.Micro,Bobdina/Caliburn.Micro,taori/Caliburn.Micro,vgrigoriu/Caliburn.Micro,serenabenny/Caliburn.Micro,dvdvorle/Caliburn.Micro,fmarrabal/Caliburn.Micro,TriadTom/Caliburn.Micro,bendetat/Caliburn.Micro,huoxudong125/Caliburn.Micro,suvjunmd/Caliburn.Micro,mbruckner/Caliburn.Micro,eh...
samples/CM.HelloUniversal/CM.HelloUniversal/CM.HelloUniversal.Shared/App.xaml.cs
samples/CM.HelloUniversal/CM.HelloUniversal/CM.HelloUniversal.Shared/App.xaml.cs
using System; using System.Collections.Generic; using System.Diagnostics; using Caliburn.Micro; using CM.HelloUniversal.Views; using CM.HelloUniversal.ViewModels; using Windows.ApplicationModel.Activation; using Windows.UI.Xaml.Controls; namespace CM.HelloUniversal { public sealed partial class App { ...
using System; using System.Collections.Generic; using Caliburn.Micro; using CM.HelloUniversal.Views; using CM.HelloUniversal.ViewModels; using Windows.ApplicationModel.Activation; using Windows.UI.Xaml.Controls; namespace CM.HelloUniversal { public sealed partial class App { private WinRTContainer con...
mit
C#
b92a98d0eef59e34d316aa9b3a977a0c274dc32d
Create DraggableItemContainer.cs
drawcode/labs-unity
gameobjects/DraggableItemContainer.cs
gameobjects/DraggableItemContainer.cs
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class DraggableItemContainer : MonoBehaviour { public GameObject dragColliderObject; public GameObject gameLevelItemObject; public virtual void Awake() { } public virtual void Start() { In...
mit
C#
22b969cbc7de5ab1ee7e7ffc6f3ce71154c67c47
Test the Discord.Color structure (#786)
RogueException/Discord.Net,AntiTcb/Discord.Net,Confruggy/Discord.Net
test/Discord.Net.Tests/Tests.Colors.cs
test/Discord.Net.Tests/Tests.Colors.cs
using System; using Xunit; namespace Discord { public class ColorTests { [Fact] public void Color_New() { Assert.Equal(0u, new Color().RawValue); Assert.Equal(uint.MinValue, new Color(uint.MinValue).RawValue); Assert.Equal(uint.MaxValue, new Color(ui...
mit
C#
5b454be885f884adac36ecb831e77bf95282d2ca
Revert "Delete LexicalInitializer.cs"
PLMCSIT/ROOK
ROOK/LexicalAnalyzer/LexicalInitializer.cs
ROOK/LexicalAnalyzer/LexicalInitializer.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lexical_Analyzer { public class LexicalInitializer { public LexicalAnalyzer Start(string code, LexicalAnalyzer lex) { Tokens t = new Tokens(); ...
mit
C#
75b9f9400d3835086485994aafff10bc39be54dd
Add UserRepository
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.DataLayer/UserRepository.cs
src/Diploms.DataLayer/UserRepository.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Diploms.Core; using Microsoft.EntityFrameworkCore; namespace Diploms.DataLayer { public class UserRepository : RepositoryBase<User>, IUserRepository { public UserRepository(DiplomContext context) : ba...
mit
C#
ee35223174a0c48707d4148a5e87e0ec4942d41c
improve docs
mehrdada/grpc,Vizerai/grpc,mehrdada/grpc,jboeuf/grpc,ejona86/grpc,kpayson64/grpc,donnadionne/grpc,muxi/grpc,pszemus/grpc,dgquintas/grpc,pszemus/grpc,thinkerou/grpc,geffzhang/grpc,mehrdada/grpc,vjpai/grpc,nicolasnoble/grpc,jboeuf/grpc,thinkerou/grpc,stanley-cheung/grpc,kpayson64/grpc,jboeuf/grpc,jboeuf/grpc,donnadionne/...
src/csharp/Grpc.Core/IAsyncStreamReader.cs
src/csharp/Grpc.Core/IAsyncStreamReader.cs
#region Copyright notice and license // Copyright 2015 gRPC authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless re...
#region Copyright notice and license // Copyright 2015 gRPC authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless re...
apache-2.0
C#
050b2c5442267a56c4689a58f88013662eb10df0
Make Marshal.PtrToStringAnsi to use Utf8 on Linux
dhoehna/corefx,nbarbettini/corefx,jlin177/corefx,rahku/corefx,elijah6/corefx,cydhaselton/corefx,ericstj/corefx,nbarbettini/corefx,rjxby/corefx,wtgodbe/corefx,tstringer/corefx,twsouthwick/corefx,mazong1123/corefx,richlander/corefx,iamjasonp/corefx,ericstj/corefx,tstringer/corefx,adamralph/corefx,manu-silicon/corefx,Jiay...
src/Common/src/System/Runtime/InteropServices/Marshal.Unix.cs
src/Common/src/System/Runtime/InteropServices/Marshal.Unix.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. namespace System.Runtime.InteropServices { // Stand-in type for low-level assemblies to obtain Win32 errors ...
// 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. namespace System.Runtime.InteropServices { // Stand-in type for low-level assemblies to obtain Win32 errors ...
mit
C#
18ae67bda54bedfa858a4743e2d1685f2dea184a
Define 'I{ReadOnly,}List<T>'
jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm
stdlib/corlib/Collections.Generic/IList.cs
stdlib/corlib/Collections.Generic/IList.cs
namespace System.Collections.Generic { /// <summary> /// A read-only view of a list data structure. /// </summary> public interface IReadOnlyList<out T> : IReadOnlyCollection<T> { /// <summary> /// Gets the element at a particular index in the list. /// </summary> T t...
mit
C#
c8ce1058f7c1b9a413e900b012a397e5b8aae4ad
Add test class
HamidMosalla/allReady,chinwobble/allReady,HamidMosalla/allReady,MisterJames/allReady,chinwobble/allReady,binaryjanitor/allReady,enderdickerson/allReady,shanecharles/allReady,colhountech/allReady,mipre100/allReady,mgmccarthy/allReady,JowenMei/allReady,colhountech/allReady,mipre100/allReady,forestcheng/allReady,JowenMei/...
AllReadyApp/Web-App/AllReady.UnitTest/Areas/Admin/Features/Tasks/AssignTaskCommandHandlerAsyncShould.cs
AllReadyApp/Web-App/AllReady.UnitTest/Areas/Admin/Features/Tasks/AssignTaskCommandHandlerAsyncShould.cs
using System.Collections.Generic; using System.Threading.Tasks; using AllReady.Areas.Admin.Features.Tasks; using AllReady.Features.Notifications; using AllReady.Models; using MediatR; using Moq; using Xunit; namespace AllReady.UnitTest.Areas.Admin.Features.Tasks { public class AssignTaskCommandHandlerAsyncShould :...
mit
C#
593e543fd3ff08b9d7415f288e110fbfcd5f64cd
Add missing file
gabornemeth/restsharp.portable
RestSharp.Portable/ParameterComparer.cs
RestSharp.Portable/ParameterComparer.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; namespace RestSharp.Portable { /// <summary> /// Compares parameters by name /// </summary> public class ParameterComparer : IEqualityComparer<Parameter>, IComparer<Parameter> { pri...
bsd-2-clause
C#
9154a51e0b445590a39b7ffc5ddd0c75a44298fa
Add constant
xin9le/DeclarativeSql
src/DeclarativeSql/Sql/SqlConstants.cs
src/DeclarativeSql/Sql/SqlConstants.cs
namespace DeclarativeSql.Sql { /// <summary> /// Provides constants used to build SQL. /// </summary> internal static class SqlConstants { /// <summary> /// Represents the maximum number of elements that can be included in an in clause. /// This is constant value. //...
mit
C#
ab18be217397c171d2cbb9c3a721e66b5ce88087
Create CuidCorrelationService.cs
tiksn/TIKSN-Framework
TIKSN.Core/Integration/Correlation/CuidCorrelationService.cs
TIKSN.Core/Integration/Correlation/CuidCorrelationService.cs
using System; namespace TIKSN.Integration.Correlation { public class CuidCorrelationService : ICorrelationService { public CorrelationID Create(string stringRepresentation) { throw new NotImplementedException(); } public CorrelationID Create(byte[] byteArrayReprese...
mit
C#
7d2a9e2a300fb7df56d1d495e3b72b1b5d6ab5ed
Create C#.cs
TobitSoftware/chayns-snippets,TobitSoftware/chayns-snippets,TobitSoftware/chayns-snippets,TobitSoftware/chayns-snippets
Backend/CheckForUACGroup/C#.cs
Backend/CheckForUACGroup/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("UserPermitted")] public IHttpActionResult UserPermitted(int locationId, int tappId, int userId) { try { //Test if the user e...
mit
C#
4dc929e08402fa5bf80aaf71209e2b8fed892e4e
Add basic support for outputing on the fly updates
mono/guiunit
src/framework/GuiUnit/XmlTestListener.cs
src/framework/GuiUnit/XmlTestListener.cs
using System; using NUnit.Framework.Api; using System.Xml.Linq; using System.IO; namespace GuiUnit { public class XmlTestListener : ITestListener { TextWriter Writer { get; set; } public XmlTestListener (TextWriter writer) { Writer = writer; } public void TestStarted (ITest test) { if (test....
mit
C#
0d9a74febf55a507923f6b36107f764c3006ac3c
Add ConnectionPoolSettings
shmao/wcf,ElJerry/wcf,mconnew/wcf,mconnew/wcf,MattGal/wcf,mconnew/wcf,KKhurin/wcf,imcarolwang/wcf,MattGal/wcf,StephenBonikowsky/wcf,dotnet/wcf,imcarolwang/wcf,StephenBonikowsky/wcf,hongdai/wcf,ericstj/wcf,imcarolwang/wcf,zhenlan/wcf,shmao/wcf,ElJerry/wcf,KKhurin/wcf,hongdai/wcf,dotnet/wcf,dotnet/wcf,zhenlan/wcf,ericstj...
src/System.Private.ServiceModel/src/System/ServiceModel/Channels/ChannelPoolSettings.cs
src/System.Private.ServiceModel/src/System/ServiceModel/Channels/ChannelPoolSettings.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.ComponentModel; using System.Runtime; namespace System.ServiceModel.Channels { public class Channe...
mit
C#
e37ab3269f7873c32cb391b95fb14fc72879f42e
Make observable settings more robust with complex data types
altima/windows-universal,scherke/windows-universal,scherke/windows-universal,DecaTec/windows-universal,scherke85/windows-universal,SunboX/windows-universal,altima/windows-universal,SunboX/windows-universal,TheScientist/windows-universal,scherke/windows-universal,SunboX/windows-universal,altima/windows-universal,DecaTec...
NextcloudApp/Utils/ObservableSettings.cs
NextcloudApp/Utils/ObservableSettings.cs
using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Reflection; using System.ComponentModel; using Windows.Storage; namespace NextcloudApp.Utils { /// <summary> /// Class for settings that is observable, strongly typed and provides default values....
using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Reflection; using System.ComponentModel; using Windows.Storage; namespace NextcloudApp.Utils { /// <summary> /// Class for settings that is observable, strongly typed and provides default values....
mpl-2.0
C#
aeffa1ef49e68d430857e08ea3c104b8acadca24
Make metadata accessible without reflection
drunkirishcoder/monotouch-log4net,StevenJiang2015/log4net,harold4/log4net,amtkmrsmn/log4net,modulexcite/log4net,Dagwaging/log4net,drunkirishcoder/monotouch-log4net,amtkmrsmn/log4net,drunkirishcoder/monotouch-log4net,harold4/log4net,StevenJiang2015/log4net,harold4/log4net,amtkmrsmn/log4net,Dagwaging/log4net,StevenJiang2...
src/Log4netAssemblyInfo.cs
src/Log4netAssemblyInfo.cs
#region Apache License // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to you under the Apache License, Version 2.0 // (...
apache-2.0
C#
52c33af0e09a614ab89ba8b519fc21de0e53bdcf
add ProcessWaitHandle.cs
axelheer/corefx,zhenlan/corefx,Jiayili1/corefx,ViktorHofer/corefx,Ermiar/corefx,zhenlan/corefx,ptoonen/corefx,ptoonen/corefx,shimingsg/corefx,wtgodbe/corefx,Jiayili1/corefx,parjong/corefx,seanshpark/corefx,shimingsg/corefx,Ermiar/corefx,ericstj/corefx,ViktorHofer/corefx,zhenlan/corefx,Ermiar/corefx,Jiayili1/corefx,eric...
src/Common/src/Interop/Windows/kernel32/Interop.ProcessWaitHandle.cs
src/Common/src/Interop/Windows/kernel32/Interop.ProcessWaitHandle.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 Microsoft.Win32.SafeHandles; using System.Runtime.InteropServices; using System.Threading; internal partial c...
mit
C#
ef66db576c621d9c39733ffcf124e23f88ce4d57
Create Shaker.cs
bryantk/Unity-Shaker
Shaker.cs
Shaker.cs
// Kyle Bryant 5-2016 // MIT License using UnityEngine; using System.Collections; public class Shaker : MonoBehaviour { public Vector3 PositionScale = new Vector3(1, 1, 0); public Vector3 RotationScale = new Vector3(0, 0, 0); [Range(1, 50)] public int shakeSpeed = 1; Vector3 origin; Quaterni...
mit
C#
b9c3c52b8c36d8b511a9195fe77b6adf061a4d4c
Create fibonacci.cs
HeyIamJames/Learning-C-,HeyIamJames/Learning-C-
fibonacci.cs
fibonacci.cs
mit
C#
8cd0d0ef125587bf660df449b0e583a1205a9b78
Add Q227
txchen/localleet
csharp/Q227_BasicCalculatorII.cs
csharp/Q227_BasicCalculatorII.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Implement a basic calculator to evaluate a simple expression string. // // The expression string contains only non-negative integers, +, -, *, / operators and empty spaces . The integer divis...
mit
C#
5070b6ce2969f1988934815c83365aa78ed167ac
Create BinarySearch.cs
natalya-k/algorithms
search/BinarySearch.cs
search/BinarySearch.cs
namespace Algorithms { class BinarySearch { public static int? Search(int[] array, int target) { int begin = 0; int end = array.Length - 1; int guess; while (end >= begin) { //guess = (begin + end) / 2; ...
mit
C#
d9c453a20c2e2a147d6c84693a47406886021709
Add implementation of FormatStringParser
EamonNerbonne/ExpressionToCode
ExpressionToCodeLib/FormatStringParser.cs
ExpressionToCodeLib/FormatStringParser.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ExpressionToCodeLib { public static class FormatStringParser { public struct Segment { public string StringPart; public object FollowedByValue; publi...
apache-2.0
C#
74208f666cf1eff3caf7d8832a67d2dedb1b39c3
Add SQLiteSchema
lecaillon/Evolve
src/Evolve/Dialect/SQLite/SQLiteSchema.cs
src/Evolve/Dialect/SQLite/SQLiteSchema.cs
using System.Collections.Generic; using System.Linq; namespace Evolve.Dialect.SQLite { public class SQLiteSchema : Schema { private static List<string> IgnoredSystemTableNames = new List<string> { "android_metadata", "sqlite_sequence" }; private static List<string> UndroppableTableNames = new ...
mit
C#
f14121232a837661d8b3ad109a1d67a11905f2ac
Add simple step which allow using delegates for defining steps
kant2002/ncrawler
src/NCrawler/SimpleStep.cs
src/NCrawler/SimpleStep.cs
using System; using System.Threading.Tasks; using NCrawler.Interfaces; namespace NCrawler { /// <summary> /// Implementation of pipeline steps which allow steps definition using simple functions /// </summary> public class SimpleStep : IPipelineStep { private Func<ICrawler, PropertyBag, Ta...
lgpl-2.1
C#
471aa90cbc2cf46efe97ca6059356b16ed3eb8ef
add suppression file for xUnit1005
OlegKleyman/AlphaDev,OlegKleyman/AlphaDev,OlegKleyman/AlphaDev
tests/integration/AlphaDev.Web.Tests.Integration/GlobalSuppressions.cs
tests/integration/AlphaDev.Web.Tests.Integration/GlobalSuppressions.cs
 // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "...
unlicense
C#
5c8409fb56ed737317f1a411ad2de2956fce7b22
Add ContentManager Controller
Endlessages/EndlessAges.LauncherService
src/EndlessAges.LauncherService/Controllers/ContentManager.cs
src/EndlessAges.LauncherService/Controllers/ContentManager.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace EndlessAges.LauncherService.Controllers { /// <summary> /// Emulated controller ContentManager.aspx from the Endless Ages backend. /// </summary> [Route("Con...
mit
C#
0e1ac9f8a75d0153a68a6618d8f20661069d4f32
Test for Issue #1305
MaceWindu/linq2db,LinqToDB4iSeries/linq2db,LinqToDB4iSeries/linq2db,MaceWindu/linq2db,linq2db/linq2db,ronnyek/linq2db,linq2db/linq2db
Tests/Linq/UserTests/Issue1305Tests.cs
Tests/Linq/UserTests/Issue1305Tests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LinqToDB; using LinqToDB.Data; using LinqToDB.Mapping; using NUnit.Framework; namespace Tests.UserTests { /// <summary> /// Test fixes to Issue #1305. /// Before fix fields in derived tables we...
mit
C#
d23b6cd09482735d6e2a2ee3558570dcd7dff8e1
Create NicholasDille.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/NicholasDille.cs
src/Firehose.Web/Authors/NicholasDille.cs
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class NicholasDille : IFilterMyBlogPosts, IAmAMicrosoftMVP { public string FirstName => "Nicholas"; ...
mit
C#
fb90f43d45f9d7844d7d0f36a2115539e776ba2b
Add alloc benchmarks
ZLima12/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework
osu.Framework.Benchmarks/BenchmarkCompositeDrawableAllocations.cs
osu.Framework.Benchmarks/BenchmarkCompositeDrawableAllocations.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using BenchmarkDotNet.Attributes; using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; nam...
mit
C#
e0c465945cd5d6ee8d384482e89c4441a6b61df8
Create AIWolf.Server.Guard class.
AIWolfSharp/AIWolf_NET
AIWolfServer/Guard.cs
AIWolfServer/Guard.cs
// // Guard.cs // // Copyright (c) 2016 Takashi OTSUKI // // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // using AIWolf.Lib; namespace AIWolf.Server { /// <summary> /// Guard class. /// </summary> class Guard { public int Day { get; }...
mit
C#
f6de6c7d783286ac3bcdd591647a00d52f6609c8
Add import/export example
89sos98/LiteDB,89sos98/LiteDB,RytisLT/LiteDB,falahati/LiteDB,RytisLT/LiteDB,masterdidoo/LiteDB,falahati/LiteDB,masterdidoo/LiteDB,mbdavid/LiteDB
LiteDB.Tests/Database/UpgradeScriptTest.cs
LiteDB.Tests/Database/UpgradeScriptTest.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.IO; using System.Linq; namespace LiteDB.Tests { [TestClass] public class UpgradeScriptTest { // [TestMethod] public void UpgradeScript_Test() { // export data TO JSON using (var db = new LiteDa...
mit
C#
b712a8f5efa20e4e161fab61de0f5ff20114f385
Add missing build variables.
ZhangLeiCharles/mobile,masterrr/mobile,peeedge/mobile,ZhangLeiCharles/mobile,eatskolnikov/mobile,peeedge/mobile,eatskolnikov/mobile,masterrr/mobile,eatskolnikov/mobile
Phoebe/Build.cs
Phoebe/Build.cs
using System; namespace Toggl.Phoebe { public static class Build { #warning Please fill in build settings and make git assume this file is unchanged. #region Phoebe build config public static readonly Uri ApiUrl = new Uri ("https://toggl.com/api/"); public static readonly Uri P...
using System; namespace Toggl.Phoebe { public static class Build { #warning Please fill in build settings and make git assume this file is unchanged. #region Phoebe build config public static readonly Uri ApiUrl = new Uri ("https://toggl.com/api/"); public static readonly Uri P...
bsd-3-clause
C#
1e29d5f164067278a1214438ae034bf5a034d8ef
Add SkillViewModels.cs
NinjaVault/NinjaHive,NinjaVault/NinjaHive
NinjaHive.WebApp/Models/SkillViewModels.cs
NinjaHive.WebApp/Models/SkillViewModels.cs
using System; using System.ComponentModel.DataAnnotations; namespace NinjaHive.WebApp.Models.Skills { public class SkillViewModel { public Guid SkillId { get; set; } public string SkillName { get; set; } public int SkillRange { get; set; } public int ...
apache-2.0
C#
5528231cc2717c0461ce47a590052cba4f244fd3
Create PluginDownloader.xaml.cs
TorchAPI/Torch
Torch.Server/Views/PluginDownloader.xaml.cs
Torch.Server/Views/PluginDownloader.xaml.cs
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using Torch.API.WebAPI; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.W...
apache-2.0
C#
67b0c81146cb0a2db7ef0799235233be02cc91bc
add obstacle like a hammer
softwarejimenez/funnyBall
Scripts/moveHammer.cs
Scripts/moveHammer.cs
using UnityEngine; using System.Collections; public class moveHammer : MonoBehaviour { //declare all atribute public float speed; private float gradeZ; // Use this for initialization void Start () { gradeZ = 0; } // Update is called once per frame void Update () { if (gradeZ > 20) { speed=-spee...
agpl-3.0
C#
3bed07c5764eea9e3778deb84713e1de4c4ffcc9
Create ServiceLane.cs
costincaraivan/hackerrank,costincaraivan/hackerrank
algorithms/implementation/C#/ServiceLane.cs
algorithms/implementation/C#/ServiceLane.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { string[] tokens_n = Console.ReadLine().Split(' '); int n = Convert.ToInt32(tokens_n[0]); int t = Convert.ToInt32(tokens_n[1]); string[] width_temp =...
mit
C#