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
cb7bc5aa69591711d3d11fb69e83a9e4de5815a5
Use var initialization instead of explicitly declaring the type.
SonyaSa/CppSharp,u255436/CppSharp,mydogisbox/CppSharp,zillemarco/CppSharp,genuinelucifer/CppSharp,mono/CppSharp,mydogisbox/CppSharp,ddobrev/CppSharp,SonyaSa/CppSharp,Samana/CppSharp,zillemarco/CppSharp,mohtamohit/CppSharp,imazen/CppSharp,KonajuGames/CppSharp,nalkaro/CppSharp,txdv/CppSharp,mohtamohit/CppSharp,ktopouzi/C...
src/Generator/Generators/Template.cs
src/Generator/Generators/Template.cs
namespace Cxxi.Generators { public abstract class TextTemplate : TextGenerator { private const uint DefaultIndent = 4; private const uint MaxIndent = 80; public Driver Driver { get; set; } public DriverOptions Options { get; set; } public Library Library { get; set; } ...
namespace Cxxi.Generators { public abstract class TextTemplate : TextGenerator { private const uint DefaultIndent = 4; private const uint MaxIndent = 80; public Driver Driver { get; set; } public DriverOptions Options { get; set; } public Library Library { get; set; } ...
mit
C#
100f8e4fb7e51349c8a48e2b52632053028cedc8
Add reflection exception log function
caronyan/CSharpRecipe
CSharpRecipe/Recipe.DebugAndException/ReflectException.cs
CSharpRecipe/Recipe.DebugAndException/ReflectException.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Reflection; namespace Recipe.DebugAndException { public static class ReflectException { public static void ReflectionException() { Type reflectedClass = ...
mit
C#
1679051662d8999e5597ef52c98056fbd95f452b
Create Form.cs
CitrusCurse/PrintScreenAlternative
Form.cs
Form.cs
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace PrintScreenAlter...
mit
C#
972857a3d40d606659c78e46e599de497416e2f7
Add ThereIsNoSpoon.cs
ReddwarfCro/CodingGame
ThereIsNoSpoon.cs
ThereIsNoSpoon.cs
using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; /** * Don't let the machines win. You are humanity's last hope... **/ public class Dot { public int dotX { get; set; } public int dotY { get; set; } public int rightX { get; ...
mit
C#
5dc0383b768921505ea426bd20a9e725e21c3f87
Create PreventSkippingETAS.cs
Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder,Arkhist/Hacknet-Pathfinder
PathfinderAPI/BaseGameFixes/PreventSkippingETAS.cs
PathfinderAPI/BaseGameFixes/PreventSkippingETAS.cs
using System; using Hacknet; using Hacknet.Effects; using HarmonyLib; namespace Pathfinder.BaseGameFixes { [HarmonyPatch] internal static class PreventSkippingETAS { [HarmonyPrefix] [HarmonyPatch(typeof(Programs), nameof(Programs.reboot))] internal static bool RebootPrefix(string[]...
mit
C#
293fafe0ec015b371f40c02b6d17703b76592b81
Add Message tests
RichLogan/CiscoSpark-UnityProject,RichLogan/CiscoSpark-UnityProject
SparkUnity/Assets/Cisco/Spark/Tests/TestMessage.cs
SparkUnity/Assets/Cisco/Spark/Tests/TestMessage.cs
using UnityEngine; using Cisco.Spark; /// <summary> /// Class to test the <see cref="Cisco.Spark.Message"/> functionality. /// </summary> public class TestMessage : MonoBehaviour { // Run all tests void Start () { int errorCount = 0; Debug.Log ("Running Message tests"); // Create a room for tests var test...
apache-2.0
C#
0d5a006adadcba216c42d969fe6972cd31a283dc
Remove testing message in PackageNodeImpl
tcNickolas/reef,dougmsft/reef,markusweimer/incubator-reef,afchung/incubator-reef,apache/incubator-reef,afchung/reef,yunseong/incubator-reef,dongjoon-hyun/reef,yunseong/incubator-reef,zerg-junior/incubator-reef,anupam128/reef,dkm2110/veyor,zerg-junior/incubator-reef,anupam128/reef,shravanmn/reef,shulmanb/reef,jwang98052...
lang/cs/Org.Apache.REEF.Tang/Implementations/ClassHierarchy/PackageNodeImpl.cs
lang/cs/Org.Apache.REEF.Tang/Implementations/ClassHierarchy/PackageNodeImpl.cs
/** * 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 (the * "License"); yo...
/** * 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 (the * "License"); yo...
apache-2.0
C#
918a174be5c494bedd75bce3ffcc688ea8ee4532
Create Global Supressions for CA warnings on THNETII.CommandLine.Hosting
thnetii/dotnet-common
src/THNETII.CommandLine.Hosting/GlobalSuppressions.cs
src/THNETII.CommandLine.Hosting/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. using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessage("R...
mit
C#
e49d8d0878c9efc5faebad745171cf02e43a6152
Add test coverage of login dialog
peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,smoogipooo/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu
osu.Game.Tests/Visual/Menus/TestSceneLoginPanel.cs
osu.Game.Tests/Visual/Menus/TestSceneLoginPanel.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.Graphics; using osu.Framework.Testing; using osu.Game.Graphics.UserInterface; using osu.Game.Overlays.Login;...
mit
C#
3ea4be029e1cf01a02c90c901e8e13adcf410ffa
Add .net 4.5 compatibility shim classes
fake-organization/octokit.net,hitesh97/octokit.net,ivandrofly/octokit.net,gabrielweyer/octokit.net,Red-Folder/octokit.net,devkhan/octokit.net,shiftkey/octokit.net,ChrisMissal/octokit.net,ivandrofly/octokit.net,SmithAndr/octokit.net,Sarmad93/octokit.net,cH40z-Lord/octokit.net,nsrnnnnn/octokit.net,geek0r/octokit.net,octo...
Octokit/Helpers/Net45CompatibilityShim.cs
Octokit/Helpers/Net45CompatibilityShim.cs
// ---------------------------------------------------- // THIS WHOLE File CAN GO AWAY WHEN WE TARGET 4.5 ONLY // ---------------------------------------------------- using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; namespace Octokit { [SuppressMessage("Microsoft....
mit
C#
7c02e29017f66491ab529c63f552643f60958493
Add iOS callback classes
one-signal/OneSignal-Xamarin-SDK,one-signal/OneSignal-Xamarin-SDK
Com.OneSignal.iOS/OneSignalCallbacks.cs
Com.OneSignal.iOS/OneSignalCallbacks.cs
using System.Collections.Generic; using Laters; namespace Com.OneSignal { public partial class OneSignalImplementation { private delegate void BooleanResponseDelegate(bool response); private delegate void StringResponseDelegate(string response); private delegate void DictionaryResponseDel...
mit
C#
ba4169309f202d6dfb1c92e6cdeb5b466fefd4fd
add unit tests for Plot (forgot to include in rev 874)
GeertvanHorrik/oxyplot,Jofta/oxyplot,lynxkor/oxyplot,ze-pequeno/oxyplot,Sbosanquet/oxyplot,bbqchickenrobot/oxyplot,GeertvanHorrik/oxyplot,Rustemt/oxyplot,shoelzer/oxyplot,br111an/oxyplot,objorke/oxyplot,HermanEldering/oxyplot,Sbosanquet/oxyplot,olegtarasov/oxyplot,svendu/oxyplot,sevoku/oxyplot,mattleibow/oxyplot,BRER-T...
Source/OxyPlot.Wpf.Tests/PlotTests.cs
Source/OxyPlot.Wpf.Tests/PlotTests.cs
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="PlotTests.cs" company="OxyPlot"> // The MIT License (MIT) // // Copyright (c) 2012 Oystein Bjorke // // Permission is hereby granted, free of charge, to any pers...
mit
C#
387e2ba91f08f020740fa79d8d00df8956797f3b
Add view model factory interface
Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife
PhotoLife/PhotoLife.Web/Factories/IViewModelFactory.cs
PhotoLife/PhotoLife.Web/Factories/IViewModelFactory.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PhotoLife.Factories { interface IViewModelFactory { } }
mit
C#
0f21e881cf869d752e8a08996264656888a5c0da
Create ModelNameAttribute.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/ModelNameAttribute.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/ModelNameAttribute.cs
using System; namespace WebApplication1.Areas.HelpPage.ModelDescriptions { /// <summary> /// Use this attribute to change the name of the <see cref="ModelDescription"/> generated for a type. /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMu...
mit
C#
928bd0df08b06139d57162675ccf2896966868d1
Add an expression interpretation bug test
EamonNerbonne/ExpressionToCode
ExpressionToCodeTest/ExpressionInterpretationBug.cs
ExpressionToCodeTest/ExpressionInterpretationBug.cs
using System; using System.Linq.Expressions; using Xunit; namespace ExpressionToCodeTest { public class ExpressionInterpretationBug { struct AStruct { public int AValue; } class SomethingMutable { public AStruct AStructField; ...
apache-2.0
C#
da700f6839455e91fecd12e38efbf9dc0391e42b
Add Question Model
kphillpotts/TrueOrFalse
TrueOrFalse/TrueOrFalse/TrueOrFalse/Models/Question.cs
TrueOrFalse/TrueOrFalse/TrueOrFalse/Models/Question.cs
using System; namespace TrueOrFalse { public class Question { public enum Category { None = 0, Nature = 1, Sport = 2, People = 3, ManMade = 4 } public Question (string text, bool answer, Category category) { ...
mit
C#
fd73dd9470f05416d9720e2fb841f9438534383f
Add benchmarks for bindable binding
peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework
osu.Framework.Benchmarks/BenchmarkBindableInstantiation.cs
osu.Framework.Benchmarks/BenchmarkBindableInstantiation.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 BenchmarkDotNet.Attributes; using osu.Framework.Bindables; namespace osu.Framework.Benchmarks { public class BenchmarkBindableInstantiation {...
mit
C#
83b6e0f30c674b19607cac50b79d899e036721a5
Implement grouped difficulty icon
UselessToucan/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,johnneijzen/osu,smoogipoo/osu,ppy/osu,ZLima12/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,2yangk23/osu,johnneijzen/osu,peppy/osu,2yangk23/osu,peppy/osu,UselessToucan/osu,EVAST9919/osu,ppy/osu,peppy/osu-new,smoogipooo/osu,UselessToucan/osu,ZLima12/osu,EVA...
osu.Game/Beatmaps/Drawables/GroupedDifficultyIcon.cs
osu.Game/Beatmaps/Drawables/GroupedDifficultyIcon.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using osu.Framework.Graphics; using osu.Game.Graphics; using osu.Game.Graphics.Sprites; using osu.Game.Rulesets; usin...
mit
C#
33e808f9bae7279057164e50a25bf6d68414db8e
Replace missing file lost during merge
planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS,planetClaire/Orchard-LETS
src/Orchard.Web/Modules/Orchard.Alias/Implementation/Updater/AliasHolderUpdater.cs
src/Orchard.Web/Modules/Orchard.Alias/Implementation/Updater/AliasHolderUpdater.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Orchard.Alias.Implementation.Holder; using Orchard.Alias.Implementation.Storage; namespace Orchard.Alias.Implementation.Updater { public interface IAliasHolderUpdater : IDependency { void Refresh(); } publi...
bsd-3-clause
C#
49fe40164ae91e8007247c32870bb855c05c9710
Add a static resources library
It423/enigma-simulator,wrightg42/enigma-simulator
Enigma/EnigmaUtilities/Resources.cs
Enigma/EnigmaUtilities/Resources.cs
// Resources.cs // <copyright file="Resources.cs"> This code is protected under the MIT License. </copyright> using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EnigmaUtilities { /// <summary> /// A static class with commonly used func...
mit
C#
200723b8043a3cd4243ac6f2980da08ab23a186a
Create TowerBuildZone.cs
highnet/Java-101,highnet/Java-101
TowerTDAlpha/TowerBuildZone.cs
TowerTDAlpha/TowerBuildZone.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TowerBuildZone : MonoBehaviour { // Use this for initialization void Start () { } private void OnMouseUp() { BuildingManager bm = GameObject.FindObjectOfType<BuildingManager>(); if (this.tr...
mit
C#
15859860fbe3d320197ba48e1142b9ba2f53a43c
Add namespace & type for experimental work
fsateler/MoreLINQ,fsateler/MoreLINQ,morelinq/MoreLINQ,morelinq/MoreLINQ,ddpruitt/morelinq,ddpruitt/morelinq
MoreLinq/Experimental/ExperimentalEnumerable.cs
MoreLinq/Experimental/ExperimentalEnumerable.cs
#region License and Terms // MoreLINQ - Extensions to LINQ to Objects // Copyright (c) 2018 Atif Aziz. 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:...
apache-2.0
C#
21d6d785b18418e52c884da2a3341e8e37588ba9
Add IntroDisasm
PerfDotNet/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,Ky7m/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,Ky7m/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,Ky7m/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,PerfDotNet/BenchmarkDotNet,ig-sinicyn/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,alinasmirnova/BenchmarkDotNet,Ky7m/Ben...
samples/BenchmarkDotNet.Samples/Intro/IntroDisasm.cs
samples/BenchmarkDotNet.Samples/Intro/IntroDisasm.cs
using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Attributes.Jobs; using BenchmarkDotNet.Environments; namespace BenchmarkDotNet.Samples.Intro { [DryCoreJob, DryMonoJob, DryClrJob(Platform.X86)] [DisassemblyDiagnoser] public class IntroDisasm { [Benchmark] public double Sum() ...
mit
C#
c2f1f5e57c2025467c1dc1139698dcdecb276f10
Add failing test for compiled queries with Includes
ericgreenmix/marten,mysticmind/marten,ericgreenmix/marten,JasperFx/Marten,ericgreenmix/marten,mysticmind/marten,mdissel/Marten,ericgreenmix/marten,mdissel/Marten,mysticmind/marten,JasperFx/Marten,JasperFx/Marten,mysticmind/marten
src/Marten.Testing/Bugs/compiled_query_problem_with_includes_and_ICompiledQuery_reuse.cs
src/Marten.Testing/Bugs/compiled_query_problem_with_includes_and_ICompiledQuery_reuse.cs
using Marten.Linq; using Marten.Services; using Marten.Services.Includes; using Marten.Testing.Documents; using Shouldly; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using Xunit; namespace Marten.Testing.Bugs { public class compiled_query_problem_...
mit
C#
037184c5d230dbd5ef12cddca65702a4d9f04020
fix example
stormsw/ladm.rrr
Example1/Program.cs
Example1/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Ladm.DataModel; namespace Example1 { class Program { static void Main(string[] args) { using (var ctx = new Ladm.DataModel.LadmDbContext()) { ...
mit
C#
a42e24785d73f312b5a2f3d1b6c4e0510868bdb4
Make test specify UI thread rather than assume
karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhi...
src/Languages/Editor/Test/Shell/TestShellBase.cs
src/Languages/Editor/Test/Shell/TestShellBase.cs
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.ComponentModel.Design; using System.Threading; using System.Windows.Threading; using Microsoft.Common.Core.Shell; using Microsoft.UnitTest...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.ComponentModel.Design; using System.Threading; using System.Windows.Threading; using Microsoft.Common.Core.Shell; using Microsoft.UnitTest...
mit
C#
2d605f94b7c7179cc5c63dd9d2290c2dbc966567
Revert "del"
davetimmins/ArcGIS.PCL,davetimmins/ArcGIS.PCL
samples/ArcGIS.PCL.iOS/ArcGIS_PCL_iOSViewController.cs
samples/ArcGIS.PCL.iOS/ArcGIS_PCL_iOSViewController.cs
using System; using System.Drawing; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace ArcGIS.PCL.iOS { public partial class ArcGIS_PCL_iOSViewController : UIViewController { public ArcGIS_PCL_iOSViewController () : base ("ArcGIS_PCL_iOSViewController", null) { } public override void DidReceiveMe...
mit
C#
97920eba18079b6ab65764c56d3cb4d67885916b
Create Form1.cs
codedecay/multivalue-lab,nkesic/multivalue-lab,codedecay/multivalue-lab,nkesic/multivalue-lab,codedecay/multivalue-lab,RocketSoftware/multivalue-lab,codedecay/multivalue-lab,nkesic/multivalue-lab,codedecay/multivalue-lab,RocketSoftware/multivalue-lab,RocketSoftware/multivalue-lab,RocketSoftware/multivalue-lab,RocketSof...
U2-Toolkit/DataAdapter/Form1.cs
U2-Toolkit/DataAdapter/Form1.cs
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using U2.Data.Client; namespace DataAdapter { public partial class Form1 : Form { private U2DataAdapter m_da; p...
mit
C#
aeb27c1746940c7e79dec21ffaa42c4eb2dc7c79
deploy and TransformerAddColumnExpressionByTableTest
ignatandrei/stankins,ignatandrei/stankins,ignatandrei/stankins,ignatandrei/stankins,ignatandrei/stankins,ignatandrei/stankins
stankinsv2/solution/StankinsV2/StankinsTestXUnit/TransformerAddColumnExpressionByTable.cs
stankinsv2/solution/StankinsV2/StankinsTestXUnit/TransformerAddColumnExpressionByTable.cs
using FluentAssertions; using Stankins.File; using Stankins.Interfaces; using StankinsObjects; using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; using Xbehave; using Xunit; using static System.Environment; namespace StankinsTestXUnit { [Trait("Transfo...
mit
C#
24f7f07db7ffb98174008a937de22efdc03ac6e6
Set up timer so that it can't start reducing while previous reduction is still in progress.
modulexcite/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon
source/ZocMonLib.Service.Reduce/ReduceServiceRunner.cs
source/ZocMonLib.Service.Reduce/ReduceServiceRunner.cs
using System; namespace ZocMonLib.Service.Reduce { public class ReduceServiceRunner { private readonly ISystemLogger _logger; private System.Timers.Timer _timer; private readonly ISettings _settings; public ReduceServiceRunner(ISettings settings) { ...
using System; namespace ZocMonLib.Service.Reduce { public class ReduceServiceRunner { private readonly ISystemLogger _logger; private System.Timers.Timer _timer; private readonly ISettings _settings; public ReduceServiceRunner(ISettings settings) { _logger =...
apache-2.0
C#
692afd46e2d9d56597d7c16a1051c8004a3ed797
Create radix_sort.cs
iiitv/algos,iiitv/algos,iiitv/algos,iiitv/algos,iiitv/algos,iiitv/algos,iiitv/algos,iiitv/algos
radix_sort/radix_sort.cs
radix_sort/radix_sort.cs
//radix sort algorithm in c# uploaded by elliot37 using System; class radix { static void Main(string[] args) { int[] arr = new int[] { 23,4,2234,3253,46,43,1,23,45,67}; Console.WriteLine("\ngiven array : "); foreach (var num in arr) { Console.Writ...
mit
C#
dbf7e831a6be9a2f304bb2ecfda9bf3cdcef718b
add class VideoEncodingDriver to drive ffmpeg components, and implement CheckVideoForEncoding()
kingsamchen/Eureka,kingsamchen/Eureka,kingsamchen/Eureka,kingsamchen/Eureka,kingsamchen/Eureka,kingsamchen/Eureka,kingsamchen/Eureka,kingsamchen/Eureka
SimpleVideoEncoder/SimpleVideoEncoder/VideoEncodingDriver.cs
SimpleVideoEncoder/SimpleVideoEncoder/VideoEncodingDriver.cs
/* @ 0xCCCCCCCC */ using System; using System.CodeDom; using System.Diagnostics; using System.IO; using System.Reflection; using System.Security.Policy; using Newtonsoft.Json.Linq; namespace SimpleVideoEncoder { public static class VideoEncodingDriver { private static readonly string FFmpegComponent...
mit
C#
6aab7325742e6fa2f24adcf220a37a93a4f010f3
Create Test1.cs
hueneburg/GitIncludeTest
dir1/dir2/dir1/Test1.cs
dir1/dir2/dir1/Test1.cs
This is a test
bsd-3-clause
C#
5a2121fc7dc75137849ef5c4d28fb50fd0bfe701
Add C# 7.0 Out variables on the fly example
devlights/try-csharp
TryCSharp.Samples/CSharp7/OutVariablesOnTheFly.cs
TryCSharp.Samples/CSharp7/OutVariablesOnTheFly.cs
using TryCSharp.Common; namespace TryCSharp.Samples.CSharp7 { /// <summary> /// C# 7.0 の新機能についてのサンプルです。 /// </summary> /// <remarks> /// Out variables on the fly について /// </remarks> [Sample] public class OutVariablesOnTheFly : IExecutable { public void Execute() { ...
mit
C#
26f44111b1014725ff0cec24c49f8bd89c09eb0d
Add test to cover `RegisterBlockHelper` readme example
rexm/Handlebars.Net,rexm/Handlebars.Net
source/Handlebars.Test/ReadmeTests.cs
source/Handlebars.Test/ReadmeTests.cs
using System.Collections.Generic; using Xunit; namespace HandlebarsDotNet.Test { public class ReadmeTests { [Fact] public void RegisterBlockHelper() { var handlebars = Handlebars.Create(); handlebars.RegisterHelper("StringEqualityBlockHelper", (output, options, c...
mit
C#
56d6cb5764f49eb2aaa98aef0b2ca97b3b88cbd6
Add "spotlight" beatmap badge
NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu
osu.Game/Overlays/BeatmapSet/SpotlightBeatmapPill.cs
osu.Game/Overlays/BeatmapSet/SpotlightBeatmapPill.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.Localisation; using osu.Game.Resources.Localisation.Web; #nullable enable namespace osu.Game.Overlays.BeatmapSet { ...
mit
C#
ece80bdce924ae9dfbc8b3e17d1733c41350b62d
Add usage examples for double-checking doc examples.
StephenCleary/ConnectedProperties
test/UnitTests/UsageExamples.cs
test/UnitTests/UsageExamples.cs
using System; using System.Collections.Generic; using System.Text; using Xunit; using static Nito.ConnectedProperties.ConnectedProperty; namespace UnitTests { class UsageExamples { [Fact] public void SimpleUsage() { var obj = new object(); var nameProperty = Ge...
mit
C#
f34ce1e3fb3b34ffe2f85ef050e7a7c0378bd4bf
Create Program.cs
phretaddin/Hash-Array-Mapped-Trie
Program.cs
Program.cs
using System; using System.IO; using System.Collections.Generic; using System.Diagnostics; namespace HAMT { class Program { static void Main(string[] args) { List<string> items = new List<string>(); Hamt<string, string> hamt = new Hamt<string, string>(); Dic...
mit
C#
7f7ca601083456623bdf2a61d348597ca1439225
Create Program.cs
MercedeX/StrangeStateMachineExample
Program.cs
Program.cs
using System; using Domain; namespace ConsoleApp { class Program { static void Main(string[] args) { // Create a Device Device device = new Device("Strange device"); Console.WriteLine("A {0} in action with door is in {1} state", device.Name, device.Door.Curr...
apache-2.0
C#
0f87f68b77380b12ab392fe0be99268556a84377
Normalize and Cleanup
gOOvaUY/Plexo.Models,gOOvaUY/Goova.Plexo.Models
Session.cs
Session.cs
using System.Runtime.Serialization; namespace Plexo { [DataContract] public class Session { [DataMember] public string Id { get; set; } [DataMember] public string Uri { get; set; } [DataMember] public long ExpirationUTC { get; set; } } }
agpl-3.0
C#
72da7aefeff9787e51ed6761531888d5c2e69b59
Add tests
NJsonSchema/NJsonSchema,RSuter/NJsonSchema
src/NJsonSchema.CodeGeneration.CSharp.Tests/UriTests.cs
src/NJsonSchema.CodeGeneration.CSharp.Tests/UriTests.cs
using System; using System.Threading.Tasks; using Newtonsoft.Json; using Xunit; namespace NJsonSchema.CodeGeneration.CSharp.Tests { public class UriTests { public class ClassWithUri { public Uri MyUri { get; set; } } [Fact] public async Task When_property_i...
mit
C#
8d581685200e3a687899fdc5833c457dfd65a48d
Create Program.cs
Onastick/SightByte
Program.cs
Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using System.Drawing; namespace SightByte { static class Program { [STAThread] static void Main() { Application.EnableVisualStyles(); App...
cc0-1.0
C#
a0eeb16270814f5a441c6d7c773b06181d4f811b
Add 'Interpreter' class
whampson/cascara,whampson/bft-spec
Cascara/Src/Interpreter/Interpreter.cs
Cascara/Src/Interpreter/Interpreter.cs
#region License /* Copyright (c) 2017 Wes Hampson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
mit
C#
7210b5581f4cbee7212ec29ce22b465569841942
Add path.cs to source control
bsstahl/DPDemo
Chutes.Optimization/Entities/Path.cs
Chutes.Optimization/Entities/Path.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Chutes.Optimization.Entities { public class Path { LinkedList<Gamespace> _path = new LinkedList<Gamespace>(); public Path() { _path.C...
mit
C#
12a0bebd4e254d280606ac9c7dc99afa335e50c4
Add Jump node tests
exodrifter/unity-rumor
Editor/Tests/JumpTest.cs
Editor/Tests/JumpTest.cs
using Exodrifter.Rumor.Nodes; using Exodrifter.Rumor.Engine; using NUnit.Framework; using System; using System.Collections.Generic; namespace Exodrifter.Rumor.Test { /// <summary> /// Makes sure that jump nodes operate as expected. /// </summary> public class JumpTest { /// <summary> /// Makes sure jumps to ...
mit
C#
76f1e9c06e4ec8cfa1ccdb56fe7519449e2ba593
Fix tabs/spaces.
AkshayHarshe/arcgis-runtime-samples-dotnet,Arc3D/arcgis-runtime-samples-dotnet,sharifulgeo/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet
src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/Scene/FeatureLayerFromLocalGeodatabase3d.xaml.cs
src/Desktop/ArcGISRuntimeSamplesDesktop/Samples/Scene/FeatureLayerFromLocalGeodatabase3d.xaml.cs
using Esri.ArcGISRuntime.Controls; using Esri.ArcGISRuntime.Data; using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Layers; using System; using System.Windows; using System.Windows.Controls; namespace ArcGISRuntime.Samples.Desktop { /// <summary> /// This sample shows how to add a FeatureLayer ...
using Esri.ArcGISRuntime.Controls; using Esri.ArcGISRuntime.Data; using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Layers; using System; using System.Windows; using System.Windows.Controls; namespace ArcGISRuntime.Samples.Desktop { /// <summary> /// This sample shows how to add a FeatureLayer ...
apache-2.0
C#
98062611c2aea30531bbe0334c092aeb09245cf0
Add SpaceParser
StevenLiekens/Txt,StevenLiekens/TextFx
src/Txt.ABNF/Core/SP/SpaceParser.cs
src/Txt.ABNF/Core/SP/SpaceParser.cs
using Txt.Core; namespace Txt.ABNF.Core.SP { public class SpaceParser : Parser<Space, char> { protected override char ParseImpl(Space value) { return value.Text[0]; } } }
mit
C#
9ca8f0cddaa29297070e59aa4843cdc37bc8539d
Create Carnage.cs
jon-lad/Battlefleet-Gothic
Ships/Chaos/Cruiser/Carnage.cs
Ships/Chaos/Cruiser/Carnage.cs
using UnityEngine; using System.Collections; public class Carnage : Ship { // Use this for initialization public override void Start () { base.Start (); stand = (GameObject)Instantiate(GameData.instance.SmallStandPrefab, transform.position, Quaternion.Euler(new Vector3())); hits = 8; speed = 25; minMove...
mit
C#
de18ee1a937001e326cbe88639db2d9a99a59867
Create CollectionOfGames.cs
cwesnow/Net_Fiddle
2017Aug/CollectionOfGames.cs
2017Aug/CollectionOfGames.cs
using System; public class Program { public static void Main() { // Loop until user doesn't want to play anymore while (true) { GamesList.selectGame(); if (!newGame()) break; } Console.WriteLine("Thanks for playing, Good bye!"); } // Returns T/F if a user wants another game static bool newG...
mit
C#
b8b6d0e861bd0269b841ceacfaab3c361128bc3b
Add tests for `ClosestBeatDivisor`
peppy/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu,peppy/osu-new,peppy/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu
osu.Game.Tests/NonVisual/ClosestBeatDivisorTest.cs
osu.Game.Tests/NonVisual/ClosestBeatDivisorTest.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 NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Rulesets.Objects; namespace osu.G...
mit
C#
ad940dd18b02cc6e66623aab3ff6217bab73d941
Copy IsAjax rewquest attribute
rgonek/Ilaro.Admin,rgonek/Ilaro.Admin,tassyo1/Ilaro.Admin,tassyo1/Ilaro.Admin
src/Ilaro.Admin/Ilaro.Admin/Infrastructure/CopyIsAjaxRequestFromRequestToViewBagAttribute.cs
src/Ilaro.Admin/Ilaro.Admin/Infrastructure/CopyIsAjaxRequestFromRequestToViewBagAttribute.cs
using System.Web.Mvc; namespace Ilaro.Admin.Infrastructure { public class CopyIsAjaxRequestFromRequestToViewBagAttribute : ActionFilterAttribute { public override void OnActionExecuted(ActionExecutedContext filterContext) { var view = filterContext.Result as ViewResult; ...
mit
C#
370716b9171fffe3bc58e64cd0ad780dc4a28002
add common utilities
ceee/UptimeSharp
UptimeSharp/Utilities.cs
UptimeSharp/Utilities.cs
using RestSharp; using System; using System.Collections.Generic; namespace UptimeSharp { /// <summary> /// General utilities /// </summary> internal class Utilities { /// <summary> /// converts DateTime to an UNIX timestamp /// </summary> /// <param name="dateTime">The date.</param> /// ...
mit
C#
44d51a64da2f38535013da9243650185f0cebd35
Add coin flipping command. Sometimes lands on it's side. No idea why!
mikaelssen/FruitBowlBot
JefBot/Commands/CoinPluginCommand.cs
JefBot/Commands/CoinPluginCommand.cs
using System; using System.Collections.Generic; using System.IO; using TwitchLib; using TwitchLib.TwitchClientClasses; using System.Net; namespace JefBot.Commands { internal class CoinPluginCommand : IPluginCommand { public string PluginName => "Coin"; public string Command => "coin"; ...
mit
C#
13c67f13c78f3f8fdede4b7dbacbaa9c76d8c842
Add missing file.
jeongroseok/magecrawl,AndrewBaker/magecrawl
Trunk/GameUI/Utilities/ColorCache.cs
Trunk/GameUI/Utilities/ColorCache.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using libtcod; namespace Magecrawl.GameUI.Utilities { // Sometimes we use a large number of colors in tight loops. This class caching the instances // so we don't recalculate or P/Invoke them again public class...
bsd-2-clause
C#
7c2a9fbf6f2841ee2e94318b99a9fb074e21dee2
Create ArrayExtensions.cs
AOmelaienko/Camila.ArrayUtils
ArrayExtensions.cs
ArrayExtensions.cs
using System; using System.Threading.Tasks; namespace Camila { public static class ArrayExtensions { public static T[] Flatten<T> ( this Array Array ) { if ( !Array.GetType ().GetElementType ().Equals ( typeof ( T ) ) ) throw new ArrayTypeMismatchException (); if ( Array.Rank == 1...
mit
C#
64f0d62cbae024c65de1a783d389ddb039617cad
Add MicrosoftDataSqliteDriver unit test
lecaillon/Evolve
test/Evolve.Test/Driver/MicrosoftDataSqliteDriverTest.cs
test/Evolve.Test/Driver/MicrosoftDataSqliteDriverTest.cs
using Evolve.Driver; using Xunit; namespace Evolve.Test.Driver { public class MicrosoftDataSqliteDriverTest { [Fact(DisplayName = "Load_ConnectionType_from_an_already_loaded_assembly")] public void Load_ConnectionType_from_an_already_loaded_assembly() { var driver = new Mic...
mit
C#
8cb6275bdd49c5501c5f951c1cb10b5cbc44ecae
add LineIteratorTest
shimat/opencvsharp,shimat/opencvsharp,shimat/opencvsharp
test/OpenCvSharp.Tests/imgproc/LineIteratorTest.cs
test/OpenCvSharp.Tests/imgproc/LineIteratorTest.cs
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using Xunit; namespace OpenCvSharp.Tests.ImgProc { public class LineIteratorTest : TestBase { [Fact] public void CountPixels() { var p1 = new Point(0, 0); var p2 = new Po...
apache-2.0
C#
82b7e898ecf87f8c377be52b7f2248654806954a
Create TestImpl.cs
ilgazdotcom/Arches
ArchesFramework/Arches.BusinessLogic/Concrete/TestImpl.cs
ArchesFramework/Arches.BusinessLogic/Concrete/TestImpl.cs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Arches.BusinessLogic.Abstract; using Arches.Models; using Arches.DataAccess; using System.Data; namespace Arches.BusinessLogic.Concrete { public class TestImpl : ITest { readonly DatabaseConnection _databaseConne...
mpl-2.0
C#
8a4717d2e9e84875f14f02f318020f8f6949d1cf
Add catch statistics
johnneijzen/osu,peppy/osu-new,johnneijzen/osu,ppy/osu,EVAST9919/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,naoey/osu,peppy/osu,2yangk23/osu,DrabWeb/osu,peppy/osu,naoey/osu,EVAST9919/osu,ppy/osu,smoogipoo/osu,DrabWeb/osu,2yangk23/osu,NeoAdonis/osu,DrabWeb/osu,ZLima12/osu,UselessToucan/osu,UselessToucan/osu,naoey/osu,smoo...
osu.Game.Rulesets.Catch/Beatmaps/CatchBeatmap.cs
osu.Game.Rulesets.Catch/Beatmaps/CatchBeatmap.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 System.Collections.Generic; using System.Linq; using osu.Game.Beatmaps; using osu.Game.Graphics; using osu.Game.Rulesets.Catch.Objects; namespace osu.Game.Rulese...
mit
C#
82b106137b1040d17a0509dc19bff5fb80fc2a70
Bump 2.6.0.0
klesta490/BTDB,yonglehou/BTDB,karasek/BTDB,Bobris/BTDB
BTDB/Properties/AssemblyInfo.cs
BTDB/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("BTD...
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("BTD...
mit
C#
841e515971fa6029c8087bce868c9effd0bb8ace
add IDataReportRenderer abstraction for rendering a data only report to excel format
volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity
src/Serenity.Net.Services/Reporting/IDataReportExcelRenderer.cs
src/Serenity.Net.Services/Reporting/IDataReportExcelRenderer.cs
 namespace Serenity.Reporting { public interface IDataReportExcelRenderer { /// <summary> /// Renders the specified report to Excel format. /// </summary> /// <param name="report">The report.</param> /// <returns></returns> byte[] Render(IDataOnlyReport...
mit
C#
5070721e2e652bccfd8dbea44451f2b80431d7ba
add Winner struct
svmnotn/friendly-guacamole
Assets/src/data/Winner.cs
Assets/src/data/Winner.cs
public struct Winner { public bool win; public Player winner; public Winner (bool win, Player winner){ this.win = win; this.winner = winner; } }
mit
C#
6ebd5e03b95b40c568426f8b5a695f291ae6a7b3
fix sleep during video
MediaBrowser/Emby.Theater,MediaBrowser/Emby.Theater,MediaBrowser/Emby.Theater
Emby.Theater/App/Standby.cs
Emby.Theater/App/Standby.cs
using System; using System.Runtime.InteropServices; namespace Emby.Theater.App { /// <summary> /// Class NativeApp /// </summary> public static class Standby { public static void PreventSystemStandby() { SystemHelper.ResetStandbyTimer(); } [Flags] ...
mit
C#
c03eb9a3540f7e0139f07ff24d48bd6e247e42ca
add the Properties folder and AssemblyInfo.cs
miridfd/MassTransit.Automatonymous.UnityIntegration
AssemblyInfo.cs
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: AssemblyTit...
apache-2.0
C#
d589e2ba2e59ca0fa11df7c7db65ef6cb7f65c5a
Add tests for F.Increment
farity/farity
Farity.Tests/IncrementTests.cs
Farity.Tests/IncrementTests.cs
using Xunit; namespace Farity.Tests { public class IncrementTests { [Theory] [InlineData(1.22d)] [InlineData(-1.22d)] public void IncrementIncrementsDoubleByOne(double a) { var expected = a + 1; var actual = F.Increment(a); Assert.Equ...
mit
C#
2f1149aa5f2b235844fa6900f1415d65fba930c3
Create Spacefolder.cs
KerbaeAdAstra/KerbalFuture
KerbalFuture/Spacefolder.cs
KerbalFuture/Spacefolder.cs
mit
C#
3680f0cb6adc7ac71bbd16dcea952c371c0e48ba
Create FiniteStateMachine.cs
efruchter/UnityUtilities
Patterns/FiniteStateMachine.cs
Patterns/FiniteStateMachine.cs
using System; using UnityEngine; // ReSharper disable CheckNamespace namespace Patterns.State { /// <summary> /// Monobehaviour implementation of a state pattern. Each state is a seperate class. /// It is up to the behaviour to properly link up the exit states in each state. /// </summary> public a...
mit
C#
9a5cf00723e4a90746c3f931acd86afed77e8ad1
add immutable version of BitArray, used to track spent/unspent outputs of a transaction
ArsenShnurkov/BitSharp
BitSharp.Common/ImmutableBitArray.cs
BitSharp.Common/ImmutableBitArray.cs
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BitSharp.Common { public class ImmutableBitArray : IEnumerable<bool> { private readonly BitArray bitAr...
unlicense
C#
0cf59fcff988a090eb3aee3f76f702210cfae7a5
add string pair class from old version
0culus/ElectronicCash
ElectronicCash/IdentityStringPair.cs
ElectronicCash/IdentityStringPair.cs
using System; using System.Collections; using System.Collections.Generic; namespace e_cash { [Serializable] public struct IdentityStringPair<T> : IEnumerable<T> { private readonly T _left; private readonly T _right; public IdentityStringPair(T left, T right) { ...
mit
C#
6169be4c983fc31099281bf04d806f62d0031615
add OrchestrationJumpStartEvent
affandar/durabletask,ddobric/durabletask,Azure/durabletask
Framework/Tracking/OrchestrationJumpStartEvent.cs
Framework/Tracking/OrchestrationJumpStartEvent.cs
// ---------------------------------------------------------------------------------- // Copyright Microsoft 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 the License at // http://www....
apache-2.0
C#
f3555ad08cfdc71a61efeb88fde64104484bf8e5
add APIWikiPage response
peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu-new,peppy/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,smoogipoo/osu
osu.Game/Online/API/Requests/Responses/APIWikiPage.cs
osu.Game/Online/API/Requests/Responses/APIWikiPage.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 Newtonsoft.Json; namespace osu.Game.Online.API.Requests.Responses { public class APIWikiPage { [JsonProperty("lay...
mit
C#
ffd277f7739a5da1df939f4709d986c15f7b0f88
Create VectorCurrencyConverter.cs
orbital7/orbital7.extensions,orbital7/orbital7.extensions
src/Orbital7.Extensions.Xamarin/VectorCurrencyConverter.cs
src/Orbital7.Extensions.Xamarin/VectorCurrencyConverter.cs
using System; using System.Globalization; using System.Text.RegularExpressions; namespace Xamarin.Forms { public class VectorCurrencyConverter : IValueConverter { public object Convert( object value, Type targetType, object parameter, CultureInfo culture...
mit
C#
c1ad6b37521ac3de31486ab2f728a1d7e951dcf4
Add suport of nullable reference type attributes for lower TFM
KodamaSakuno/Sakuno.Base
src/Sakuno.Base/NullableReferenceTypeSupportForLowerTFM.cs
src/Sakuno.Base/NullableReferenceTypeSupportForLowerTFM.cs
#if !NETSTANDARD2_1 namespace System.Diagnostics.CodeAnalysis { [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, Inherited = false)] sealed class AllowNullAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited = false)] seale...
mit
C#
ae4be94d940040fd43e150b11154defd5a90f588
Add RazorDocumentInfoFactory (#43226)
AlekseyTs/roslyn,wvdd007/roslyn,sharwell/roslyn,mavasani/roslyn,panopticoncentral/roslyn,brettfo/roslyn,stephentoub/roslyn,aelij/roslyn,tmat/roslyn,shyamnamboodiripad/roslyn,tannergooding/roslyn,gafter/roslyn,KevinRansom/roslyn,jasonmalinowski/roslyn,AmadeusW/roslyn,reaction1989/roslyn,heejaechang/roslyn,dotnet/roslyn,...
src/Tools/ExternalAccess/Razor/RazorDocumentInfoFactory.cs
src/Tools/ExternalAccess/Razor/RazorDocumentInfoFactory.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.ExternalAccess.Razor { ...
mit
C#
5ce48a9fcb0ca25cc2771435dfd5fad6f8ef107e
Add the builder of DateRange
Seddryck/NBi,Seddryck/NBi
NBi.Core/Members/Ranges/DateRangeBuilder.cs
NBi.Core/Members/Ranges/DateRangeBuilder.cs
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; namespace NBi.Core.Members.Ranges { internal class DateRangeBuilder : BaseBuilder { protected new DateRange Range { get { return (DateRange)base.R...
apache-2.0
C#
1d9c28ddd8b9cf8c786a9f56c2db49a809a325f5
Fix incorrect copying of blending values.
naoey/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,RedNesto/osu-framework,peppy/osu-framework,default0/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,DrabWeb/osu-framework,naoey/osu-framework,Nabile-Rahmani/osu-framework,paparony03/osu-framework,ZLima...
osu.Framework/Graphics/BlendingInfo.cs
osu.Framework/Graphics/BlendingInfo.cs
// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using OpenTK.Graphics.ES30; namespace osu.Framework.Graphics { public struct BlendingInfo { public BlendingFactorSrc Source; ...
// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using OpenTK.Graphics.ES30; namespace osu.Framework.Graphics { public struct BlendingInfo { public BlendingFactorSrc Source; ...
mit
C#
9974c205d2bdd90ca5fde9904bda9708d415e972
Tag Search Unit Test
InstaSharp/InstaSharp,crashdavis23/InstaSharp,crashdavis23/InstaSharp,3nGercog/InstaSharp,danielmundim/InstaSharp,3nGercog/InstaSharp,danielmundim/InstaSharp,theShiva/InstaSharp,theShiva/InstaSharp
src/InstaSharp.Tests/Tags.cs
src/InstaSharp.Tests/Tags.cs
using System.Linq; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace InstaSharp.Tests { [TestClass] public class Tags : TestBase { readonly Endpoints.Tags tags; public Tags() { tags = new Endpoints.Tags(Config); } [TestMe...
using System.Linq; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace InstaSharp.Tests { [TestClass] public class Tags : TestBase { readonly Endpoints.Tags tags; public Tags() { tags = new Endpoints.Tags(Config); } [TestMe...
apache-2.0
C#
40ffd1bc43aef5eadfa2eb4e6ab179afb0ee97c3
Add files via upload
brandonseydel/MailChimp.Net
MailChimp.Net.Tests/ECommerceLogicTest.cs
MailChimp.Net.Tests/ECommerceLogicTest.cs
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ApiTest.cs" company="Brandon Seydel"> // N/A // </copyright> // -------------------------------------------------------------------------------------------------------------...
mit
C#
df7dc4f20276d14fa5f340632734a02cf6580d77
Add FileSystem implementation for the iOS project
laurentiustamate94/netstandard-storage
Plugin.NetStandardStorage.iOS/Implementations/FileSystem.cs
Plugin.NetStandardStorage.iOS/Implementations/FileSystem.cs
using System; using System.IO; using Foundation; using Plugin.NetStandardStorage.Abstractions.Interfaces; namespace Plugin.NetStandardStorage.Implementations { public class FileSystem : IFileSystem { public IFolder LocalStorage { get { var localStorage ...
mit
C#
05ea82468287d358f53dd0bb5a9d9d7aaf7705ec
add fizz1
CiaranCarrick/Test
Assets/fizz1.cs
Assets/fizz1.cs
using UnityEngine; using System.Collections; public class fizz1 : MonoBehaviour { // Use this for initialization void Start () { } void swap(){ int a = 132; int b = 1223; a = a - a; a = b+a; print (a); } void fizz(){ for (int i = 1; i <= 100; i++) { if(i % 3 == 0 && i % 5 == 0){ Debug.L...
mit
C#
fb0a056d76bab60ecf9dfe3ca7d13aa7f859c6cf
Add IUser#SendMessageAsync extension (#706)
RogueException/Discord.Net,AntiTcb/Discord.Net,Confruggy/Discord.Net
src/Discord.Net.Core/Extensions/UserExtensions.cs
src/Discord.Net.Core/Extensions/UserExtensions.cs
using System.Threading.Tasks; namespace Discord { public static class UserExtensions { public static async Task<IUserMessage> SendMessageAsync(this IUser user, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null) ...
mit
C#
f889f0df364614214445733214d68ad94bc94416
Add tests for the BarLineGenerator
ppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu
osu.Game.Rulesets.Taiko.Tests/TestSceneBarLineGeneration.cs
osu.Game.Rulesets.Taiko.Tests/TestSceneBarLineGeneration.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.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Beatmaps.Timing; using osu.Game.Rulesets.Objects;...
mit
C#
b48952e9b5af446ff0326591df07c91a1ede14f6
Add CssUnitTests
Carbon/Css
src/Carbon.Css.Tests/CssUnitTests.cs
src/Carbon.Css.Tests/CssUnitTests.cs
using Xunit; namespace Carbon.Css.Tests { public class CssUnitTests { // switch = 224ms // dictionary = 149ms [Fact] public void Lookup() { Assert.Equal(CssUnitInfo.Px, CssUnitInfo.Get("px")); Assert.Equal(CssUnitInfo.Pt, CssUnitInf...
mit
C#
d18d729c665dfdad443f778e2946b05cd2b247c5
Introduce empty unit tests for Conversion tuples
thnetii/dotnet-common
test/THNETII.Common.Test/Common/Test/ConversionTupleTest.cs
test/THNETII.Common.Test/Common/Test/ConversionTupleTest.cs
using System; using Xunit; namespace THNETII.Common.Test { public class ConversionTupleTest { } }
mit
C#
4779b9b21fa603a111202d300c537eb0f1bbf064
Add RuleLexerFactory
StevenLiekens/TextFx,StevenLiekens/Txt
src/Txt.ABNF/RuleLexerFactory.cs
src/Txt.ABNF/RuleLexerFactory.cs
using System; using JetBrains.Annotations; using Txt.Core; namespace Txt.ABNF { public abstract class RuleLexerFactory<T> : LexerFactory<T> where T : Element { protected RuleLexerFactory() : this( TerminalLexerFactory.Default, ValueRangeLexerFactory....
mit
C#
d6eb5eee2533f4117a8b0943999b848b378d9cda
Add ChangeType
charlenni/Mapsui,pauldendulk/Mapsui,charlenni/Mapsui
Mapsui/ChangeType.cs
Mapsui/ChangeType.cs
namespace Mapsui { public enum ChangeType { /// <summary> /// Discrete changes in Viewport state. /// Examples: /// - Plus and minus buttons. /// - Map Initialization. /// - Final change in an animation /// - Touch-up after dragging. /// - Final...
mit
C#
d6d0e2c9a7eec5a2403e8cad5f89213b168feb72
Create a supplier that supply elements continually(Stream).
nohros/must,nohros/must,nohros/must
src/base/common/type/suppliers/ISupplierStream.cs
src/base/common/type/suppliers/ISupplierStream.cs
using System; namespace Nohros { /// <summary> /// A implementation of the <see cref="ISupplier{T}"/> class that supply /// elements of type <typeparamref name="T"/> in a sequence. /// </summary> /// <typeparam name="T"> /// The type of objects supplied. /// </typeparam> public interface IS...
mit
C#
708a4577c18da9ef643ac8fe02b8f1f3de8e294a
Create FocusOnPointerMovedBehavior.cs
XamlBehaviors/XamlBehaviors,XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors
src/Avalonia.Xaml.Interactions/Core/FocusOnPointerMovedBehavior.cs
src/Avalonia.Xaml.Interactions/Core/FocusOnPointerMovedBehavior.cs
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Avalonia.Controls; using Avalonia.Input; using Avalonia.Xaml.Interactivity; namespace Avalonia.Xaml.Interactions.Core { /// <summary> /// Focuses t...
mit
C#
a14b4179ee3dab0037aad36b899b38150a13aa48
Add provider for RequestProfilers
mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimp...
src/Glimpse.Agent.Web/Framework/IRequestProfilerProvider.cs
src/Glimpse.Agent.Web/Framework/IRequestProfilerProvider.cs
using System; using System.Collections.Generic; namespace Glimpse.Agent.Web { public interface IRequestProfilerProvider { IEnumerable<IRequestProfiler> Profilers { get; } } }
mit
C#
19b2ffa3dfcc1e16ba7ad7c5a90d175e4d83ff2b
Add GuidOption
merijndejonge/OptionParser
src/OptionParser/GuidOption.cs
src/OptionParser/GuidOption.cs
using System; namespace OpenSoftware.OptionParsing { public class GuidOption : Option<Guid> { public override Guid Value { get => Guid.TryParse(RawValue, out var result) ? result : Guid.Empty; protected set => RawValue = value.ToString(); } public overri...
apache-2.0
C#
1ab449b73e081284f88125c696845c51c35ae984
Add test scene for drawings screen
NeoAdonis/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,smoogipooo/osu
osu.Game.Tournament.Tests/Screens/TestSceneDrawingsScreen.cs
osu.Game.Tournament.Tests/Screens/TestSceneDrawingsScreen.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.IO; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Platform; using osu.Game.Graphics.Cursor; using osu.Game.Tournament.Scr...
mit
C#
50ee23f0f22276fe1c48d92e5eab907919734425
Make debug more robust
sillsdev/gtk-sharp,sillsdev/gtk-sharp,akrisiun/gtk-sharp,akrisiun/gtk-sharp,orion75/gtk-sharp,akrisiun/gtk-sharp,antoniusriha/gtk-sharp,orion75/gtk-sharp,sillsdev/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,antoniusriha/gtk-sharp,sillsdev/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,orion75/gtk-sharp,anto...
cairo/CairoDebug.cs
cairo/CairoDebug.cs
// // CairoDebug.cs // // Author: // Michael Hutchinson (mhutch@xamarin.com) // // Copyright (C) 2013 Xamarin Inc. (http://www.xamarin.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Soft...
// // CairoDebug.cs // // Author: // Michael Hutchinson (mhutch@xamarin.com) // // Copyright (C) 2013 Xamarin Inc. (http://www.xamarin.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Soft...
lgpl-2.1
C#
2c2f1e49d5fb0ddd93b9d2bab8555c4a6f089ffd
add missing attribute formatting
sillsdev/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,openmedicus/gtk-sharp,akrisiun/gtk-sharp,orion75/gtk-sharp,akrisiun/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,openmedicus/gtk-sharp,akrisiun/gtk-sharp,antoniu...
audit/extract-missing.cs
audit/extract-missing.cs
// extract-missing.cs - grab missing api elements from api-diff files. // // Author: Mike Kestner <mkestner@novell.com> // // Copyright (c) 2005 Mike Kestner // // This program is free software; you can redistribute it and/or // modify it under the terms of version 2 of the GNU General Public // License as publ...
// extract-missing.cs - grab missing api elements from api-diff files. // // Author: Mike Kestner <mkestner@novell.com> // // Copyright (c) 2005 Mike Kestner // // This program is free software; you can redistribute it and/or // modify it under the terms of version 2 of the GNU General Public // License as publ...
lgpl-2.1
C#
11457be3d7c2d27568b0ab6ed7a1f860aa37797f
add Addin file to test Mono.Cecil.Rocks independantly
kzu/cecil,cgourlay/cecil,SiliconStudio/Mono.Cecil,gluck/cecil,ttRevan/cecil,sailro/cecil,joj/cecil,fnajera-rac-de/cecil,saynomoo/cecil,xen2/cecil,mono/cecil,furesoft/cecil,jbevain/cecil
rocks/Test/Mono.Cecil.Tests/Addin.cs
rocks/Test/Mono.Cecil.Tests/Addin.cs
using NUnit.Core.Extensibility; namespace Mono.Cecil.Tests { [NUnitAddin] public class CecilRocksAddin : CecilTestAddin { } }
mit
C#
a4f86d3660a6034185bc8db45f31d51485cc456f
Add examples and unit tests for comparing structs.
StephenCleary/Comparers
test/UnitTests/ComparableBase_Struct_DefaultComparer.cs
test/UnitTests/ComparableBase_Struct_DefaultComparer.cs
using System; using System.Collections.Generic; using System.Linq; using Nito.Comparers; using Nito.Comparers.Util; using Xunit; namespace UnitTests { public class ComparableBase_Struct_DefaultComparerUnitTests { private struct Person : IComparable<Person>, IEquatable<Person>, IComparable { ...
mit
C#
d4c3780f3b611e5f6a198d444a992cc8bdd98e77
Add RelayCommand
SVss/SPP_3
XmlParserWpf/XmlParserWpf/Commands/RelayCommand.cs
XmlParserWpf/XmlParserWpf/Commands/RelayCommand.cs
using System; using System.Windows.Input; namespace XmlParserWpf.Commands { public class RelayCommand : ICommand { private readonly Action<object> _execute; private readonly Func<object, bool> _canExecute; public event EventHandler CanExecuteChanged { add { Command...
mit
C#
b2564ef0c0184cb285e5f3098e32c28d2be9cc45
Reorder list - off by one
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/reorder_list.cs
LeetCode/remote/reorder_list.cs
// https://leetcode.com/problems/reorder-list/ // // Given a singly linked list L: L0→L1→…→Ln-1→Ln, // reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… // // You must do this in-place without altering the nodes' values. // // For example, // Given {1,2,3,4}, reorder it to {1,4,2,3}. using System; public class ListN...
mit
C#
67b346a75266128a431984a4473f6599cc78017d
Add Youtube filter to blockings
Nanabell/NoAdsHere
NoAdsHere/Services/AntiAds/Youtube.cs
NoAdsHere/Services/AntiAds/Youtube.cs
using System; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; using Discord; using Discord.Commands; using Discord.WebSocket; using Microsoft.Extensions.DependencyInjection; using MongoDB.Driver; using NLog; using NoAdsHere.Common; using NoAdsHere.Services.Penalties; namespace No...
mit
C#
3c474f44b52467eb6d6880448d1bc55fcaeb26ca
Create Program.cs
szoliver/wxpay,szoliver/wxpay,szoliver/wxpay
dotnetcore3.1/Program.cs
dotnetcore3.1/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Senparc.CO2NET; namespace AdminCP { public class Program {...
mit
C#
acbfee5b1c54f302496c16dfda4e757ca9bf7cab
Add "options", "check for updates" to context menu
danielchalmers/SteamAccountSwitcher
SteamAccountSwitcher/ClickOnceHelper.cs
SteamAccountSwitcher/ClickOnceHelper.cs
#region using System; using System.Deployment.Application; using System.Windows; using Microsoft.Win32; #endregion namespace SteamAccountSwitcher { internal class ClickOnceHelper { public static bool IsFirstRun => (ApplicationDeployment.IsNetworkDeployed && ApplicationDeployment.CurrentDeployment.IsFirstRun)...
mit
C#