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
81848d6c4cf02bd755542989d7ae94b93e71e707
add Fulfillment entity
vinhch/BizwebSharp
src/BizwebSharp/Entities/Fulfillment.cs
src/BizwebSharp/Entities/Fulfillment.cs
using System.Collections.Generic; using Newtonsoft.Json; namespace BizwebSharp.Entities { public class Fulfillment : BaseEntityWithTimeline { [JsonProperty("variant_inventory_management")] public string VariantInventoryManagement { get; set; } /// <summary> /// A historical re...
mit
C#
8e7aa0ccfdc73aa71c44c0de753cc86aa6396e2b
Solve Salary in c#
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
solutions/uri/1008/1008.cs
solutions/uri/1008/1008.cs
using System; class Solution { static void Main() { int a, b; double c; a = Convert.ToInt16(Console.ReadLine()); b = Convert.ToInt16(Console.ReadLine()); c = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("NUMBER = {0}", a); Console.WriteLine("SALA...
mit
C#
7561cfd431771c14e64dd258542de1ad3ecbea91
Select start page by default instead of root
VoidPointerAB/n2cms,nicklv/n2cms,nimore/n2cms,nimore/n2cms,n2cms/n2cms,bussemac/n2cms,nicklv/n2cms,bussemac/n2cms,bussemac/n2cms,DejanMilicic/n2cms,SntsDev/n2cms,VoidPointerAB/n2cms,SntsDev/n2cms,nimore/n2cms,bussemac/n2cms,nicklv/n2cms,EzyWebwerkstaden/n2cms,EzyWebwerkstaden/n2cms,SntsDev/n2cms,VoidPointerAB/n2cms,Ezy...
src/wwwroot/Edit/Default.aspx.cs
src/wwwroot/Edit/Default.aspx.cs
using System; using N2.Web.UI.WebControls; namespace N2.Edit { [ToolbarPlugin("", "tpPreview", "{url}", ToolbarArea.Preview, Targets.Preview, "~/Edit/Img/Ico/Png/eye.png", 0, ToolTip = "edit", GlobalResourceClassName = "Toolbar")] [ControlPanelLink("cpAdminister", "~/edit/img/ico/png/application_side_tree.png"...
using System; using N2.Web.UI.WebControls; namespace N2.Edit { [ToolbarPlugin("", "tpPreview", "{url}", ToolbarArea.Preview, Targets.Preview, "~/Edit/Img/Ico/Png/eye.png", 0, ToolTip = "edit", GlobalResourceClassName = "Toolbar")] [ControlPanelLink("cpAdminister", "~/edit/img/ico/png/application_side_tree.png"...
lgpl-2.1
C#
e1b2f25af4ab6cfb09b4b1a4356be3504145c963
Revert "Delete FileOrganizationService.cs"
Sankra/DIPSbot,Sankra/DIPSbot
src/Hjerpbakk.DIPSbot/Services/FileOrganizationService.cs
src/Hjerpbakk.DIPSbot/Services/FileOrganizationService.cs
using System.CodeDom; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace Hjerpbakk.DIPSbot.Services { public class FileOrganizationService : IOrganizationService { public async Task<IEnumerable<string>> GetDevelopers() { using (var reader = File.Open...
mit
C#
9f98320236fee20fcab3cb3ba5a669c0359a0ff6
test logging exceptions
Cayan-LLC/syslog4net,jbeats/syslog4net,akramsaleh/syslog4net,merchantwarehouse/syslog4net
src/test/unit/syslog4net.Tests/Converters/StructuredDataConverterTests.cs
src/test/unit/syslog4net.Tests/Converters/StructuredDataConverterTests.cs
using System; using System.IO; using log4net.Core; using log4net.Util; using log4net.Repository; using syslog4net.Converters; using NUnit.Framework; using NSubstitute; namespace syslog4net.Tests.Converters { [TestFixture] public class StructuredDataConverterTests { [Test] public void Conve...
using System.IO; using log4net.Core; using log4net.Util; using syslog4net.Converters; using NUnit.Framework; namespace syslog4net.Tests.Converters { [TestFixture] public class StrcturedDataConverterTests { [Test] public void ConvertTestNoException() { var level = Level....
apache-2.0
C#
caffd7eedde8873f33f7424fc57df01d0a4a2b97
Add C# 7.0 Pattern variable with is-operator example
devlights/try-csharp
TryCSharp.Samples/CSharp7/PatternVariableWithIsOperator.cs
TryCSharp.Samples/CSharp7/PatternVariableWithIsOperator.cs
using System.Diagnostics.CodeAnalysis; using TryCSharp.Common; namespace TryCSharp.Samples.CSharp7 { [Sample] public class PatternVariableWithIsOperator : IExecutable { [SuppressMessage("ReSharper", "ConditionIsAlwaysTrueOrFalse")] public void Execute() { // C# 7.0 から Pa...
mit
C#
679fb3633d6b4cd25109ac1e18a71a5e3e870bcd
active vars - iter alg
DeKoyre/b8
LYtest/ActiveVars/ActiveVarsIterAlg.cs
LYtest/ActiveVars/ActiveVarsIterAlg.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LYtest.CFG; using LYtest.IterAlg; using LYtest.LinearRepr.Values; namespace LYtest.ActiveVars { public sealed class ActiveVarsIterAlg : IterativeCommonAlg<HashSet<LabelValue>> { pr...
mit
C#
8bb776edc02b81f26a99c45e73970fd018522852
add test
linq2db/linq2db,MaceWindu/linq2db,linq2db/linq2db,MaceWindu/linq2db,LinqToDB4iSeries/linq2db,LinqToDB4iSeries/linq2db,ronnyek/linq2db
Tests/Linq/UserTests/Issue1222Tests.cs
Tests/Linq/UserTests/Issue1222Tests.cs
using System; using System.Linq; using System.Linq.Expressions; using NUnit.Framework; namespace Tests.UserTests { using LinqToDB; using LinqToDB.Mapping; [TestFixture] public class Issue1222Tests : TestBase { [Table("stLinks")] public class StLink { [Column("inId"), PrimaryKey, Identity] public int In...
mit
C#
0d1719e4e421aad60334ca8ffd3157c81d5ce406
Add NorthEurope to location enum for Data Factories
bgold09/azure-sdk-for-net,dasha91/azure-sdk-for-net,felixcho-msft/azure-sdk-for-net,jasper-schneider/azure-sdk-for-net,abhing/azure-sdk-for-net,felixcho-msft/azure-sdk-for-net,gubookgu/azure-sdk-for-net,shuagarw/azure-sdk-for-net,ailn/azure-sdk-for-net,ailn/azure-sdk-for-net,kagamsft/azure-sdk-for-net,nemanja88/azure-s...
src/ResourceManagement/DataFactory/DataFactoryManagement/Generated/Models/Location.cs
src/ResourceManagement/DataFactory/DataFactoryManagement/Generated/Models/Location.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#
7bc40ab13d027632b9ea7b716ea4f4a1822e1958
Add test asserting reconnect works.
space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14
Content.IntegrationTests/Tests/ReconnectTest.cs
Content.IntegrationTests/Tests/ReconnectTest.cs
using System.Threading.Tasks; using NUnit.Framework; using Robust.Client.Console; using Robust.Shared.Interfaces.Network; using Robust.Shared.IoC; namespace Content.IntegrationTests.Tests { [TestFixture] public class ReconnectTest : ContentIntegrationTest { [Test] public async Task Test() ...
mit
C#
2b8992d07547812882357d38d30e94c14dade518
Add Email primitive type
joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net
src/JoinRpg.PrimitiveTypes/Email.cs
src/JoinRpg.PrimitiveTypes/Email.cs
using JoinRpg.Helpers; namespace JoinRpg.PrimitiveTypes; public record Email : SingleValueType<string> { public Email(string value) : base(CheckEmail(value)) { } public static string CheckEmail(string value) { if (!value.Contains('@')) { throw new ArgumentExcept...
mit
C#
dc2524c7dcb3a4558a6284ef58850b7b99597f10
Add 'tabs' and header with converter on main page
jonstodle/Postolego
Postolego/Converters/TextDependentOnSelectedIndexConverter.cs
Postolego/Converters/TextDependentOnSelectedIndexConverter.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace Postolego.Converters { public class TextDependentOnSelectedIndexConverter : IValueConverter { public object Convert(object value, Type targetType, object...
mit
C#
9760aeb7cddd746ae5c85b4a5c79f29ce8470465
Create Program.cs
sobercoder/msbuild-api-hacks
Program.cs
Program.cs
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Build.Evaluation; using Microsoft.Build.Framework; class Program { static void Main(string[] args) { string projectFileName = @"C:\Users\Sandipan\Documents\Visual Studio 2010\Projects\Base64\Base64\Base64.csproj"; var projectColl...
unlicense
C#
86042e176387aaf259d1ac4a378058af74f4c6cb
Implement HitObjectContainerEventQueue
peppy/osu,smoogipooo/osu,NeoAdonis/osu,ppy/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu-new
osu.Game/Screens/Edit/Compose/HitObjectContainerEventQueue.cs
osu.Game/Screens/Edit/Compose/HitObjectContainerEventQueue.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using osu.Framework.Graphics; using osu.Game.Rulesets.Objects; using osu.Game...
mit
C#
3a3e49d9e063394f971182dab0e7e21d99392351
add inline-instances testbed
MattWindsor91/roslyn,CaptainHayashi/roslyn,CaptainHayashi/roslyn,MattWindsor91/roslyn,MattWindsor91/roslyn,CaptainHayashi/roslyn,MattWindsor91/roslyn
concepts/code/InlineInstances/Program.cs
concepts/code/InlineInstances/Program.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InlineInstances { public concept CStringify<T> { string AsString(this T t); } // The ': CStringify<IntPair>' here tells Concept-C# that IntPair has // the right se...
apache-2.0
C#
9e9e88f09d42486f15b66aad0a6b85e0cd8ff8f2
use Stream.WriteByte() to overwrite signature.
morkt/GARbro,dsp2003/GARbro,morkt/GARbro,dsp2003/GARbro,dsp2003/GARbro
ArcFormats/AudioOGV.cs
ArcFormats/AudioOGV.cs
//! \file AudioOGV.cs //! \date Sat Apr 18 14:18:47 2015 //! \brief ShiinaRio Ogg/Vorbis audio format. // // Copyright (C) 2015 by morkt // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal...
//! \file AudioOGV.cs //! \date Sat Apr 18 14:18:47 2015 //! \brief ShiinaRio Ogg/Vorbis audio format. // // Copyright (C) 2015 by morkt // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal...
mit
C#
8f3bedd47153ef2b33e71c09a5a9deeda025011f
Create util.cs
QetriX/CS
libs/util/util.cs
libs/util/util.cs
namespace com.qetrix.libs { /* Copyright (c) 2015 QetriX. Licensed under MIT License, see /LICENSE.txt file. * QetriX Utils Class */ using System; using System.Text; using System.Runtime.InteropServices; public static class Util { #region String functions public static String urlEncode(String inString) { Stri...
mit
C#
934de224d9b90650e41a707724d8457a23417017
Add CalcTests
Carbon/Css
src/Carbon.Css.Tests/CalcTests.cs
src/Carbon.Css.Tests/CalcTests.cs
using Xunit; namespace Carbon.Css.Tests { public class CalcTests { [Fact] public void A() { var css = StyleSheet.Parse(@"div { width: calc(100vw - 380px - var(--cover-block-padding) * 2) }"); Assert.Equal("div { widt...
mit
C#
03d80bc2232724dc00c55e665efa027c3f95555d
Add an Rx-friendly HTTP downloader
rzhw/Squirrel.Windows,rzhw/Squirrel.Windows
src/NSync.Core/Http.cs
src/NSync.Core/Http.cs
using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Text; namespace NSync.Core { public static class Http { /// <summary> /// Download data from an HTTP URL and insert the result into the ...
mit
C#
79c032b3721227724491559ea7617ca70c18236c
Update lock to version 7.11
Amialc/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,auth0/auth0-aspnet-owin,Amialc/auth0-aspnet-owin,Amialc/auth0-aspnet-owin,auth0/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,auth0/auth0-aspnet-owin
examples/basic-mvc-sample/BasicMvcSample/Views/Account/Login.cshtml
examples/basic-mvc-sample/BasicMvcSample/Views/Account/Login.cshtml
@using System.Configuration; @{ ViewBag.Title = "Login"; } <div id="root" style="width: 280px; margin: 40px auto;"> </div> @Html.AntiForgeryToken() <script src="https://cdn.auth0.com/js/lock-7.11.min.js"></script> <script> if (!window.location.origin) { window.location.origin = window.location.protoco...
@using System.Configuration; @{ ViewBag.Title = "Login"; } <div id="root" style="width: 280px; margin: 40px auto;"> </div> @Html.AntiForgeryToken() <script src="https://cdn.auth0.com/js/lock-7.9.min.js"></script> <script> if (!window.location.origin) { window.location.origin = window.location.protocol...
mit
C#
58587855148a9b7b167db1b90820ddd12b4eecaf
Create FindWithTag.cs
carcarc/unity3d
FindWithTag.cs
FindWithTag.cs
//FindWithTag GameObject gameControllerObject = GameObject.FindWithTag("GameController"); if (gameControllerObject != null) { gameGenerate = gameControllerObject.GetComponent<Generate>(); } if (gameGenerate == null) { Debug.Log("Cannot find 'GameController' script"); }
mit
C#
832729afefd9d59d0791eb53bd1455614dcd568a
Create IEdge.
DasAllFolks/SharpGraphs
Graph/IEdge.cs
Graph/IEdge.cs
namespace Graph { /// <summary> /// Default interface for a graph edge, whether directed or undirected. /// </summary> public interface IEdge { } }
apache-2.0
C#
b5f68efcb4c9db200a1db5e804a3adca97ce1957
Create SessionList.cs
neilopet/TeamSpeak2-Session-Hijack
SessionList.cs
SessionList.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace TS2Terrorist { using System; using System.Text; using System.Numerics; public class SessionList { public uint s1; public uint s2; ...
apache-2.0
C#
da5a1819f5f6e90c58dcfe4c25490332f3ae43c7
Create Ax.cs
APEdevelopment/APE,APEdevelopment/APE
APE.Bridge/APE.Bridge/Ax.cs
APE.Bridge/APE.Bridge/Ax.cs
apache-2.0
C#
18bd20600fc64b71010e7dbaa51b2e2679e73e71
Add string.NullIfEmpty()
sharpjs/PSql,sharpjs/PSql
PSql.Core/_Utilities/StringExtensions.cs
PSql.Core/_Utilities/StringExtensions.cs
namespace PSql { internal static class StringExtensions { internal static string NullIfEmpty(this string s) => string.IsNullOrEmpty(s) ? null : s; } }
isc
C#
4e55fd0d27db2f75e3622cf42aa67a5e486cdcca
Create Problem49.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem49.cs
Problems/Problem49.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler.Problems { class Problem49 { private Sieve s; private int upper = 10000; private int step = 3330; public Problem49() { s = new Sieve(upper + step * 2)...
mit
C#
efcc2257308744b77695b61ae95e5ea9b3e5bb3f
Create Problem95.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem95.cs
Problems/Problem95.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ProjectEuler.Problems { class Problem95 { private SortedSet<int> chain = new SortedSet<int>(); private int SumDivisors(int number) { int sum = 1; double number_sqrt =...
mit
C#
d22081b1a026846318ab330cd98c2fe8083b9100
Add CovalenceProvider
LaserHydra/Oxide,Visagalis/Oxide,Visagalis/Oxide,LaserHydra/Oxide
Games/Unity/Oxide.Game.FortressCraft/Libraries/Covalence/FortressCraftCovalenceProvider.cs
Games/Unity/Oxide.Game.FortressCraft/Libraries/Covalence/FortressCraftCovalenceProvider.cs
using Oxide.Core.Libraries.Covalence; namespace Oxide.Game.FortressCraft.Libraries.Covalence { /// <summary> /// Provides Covalence functionality for the game "FortressCraft" /// </summary> public class FortressCraftCovalenceProvider : ICovalenceProvider { /// <summary> /// Gets th...
mit
C#
f1b817d415dc0ed288c6dd9248a2603a7ad3f954
Add Jenkins build server
nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke
source/Nuke.Core/BuildServers/Jenkins.cs
source/Nuke.Core/BuildServers/Jenkins.cs
using System; using System.Linq; namespace Nuke.Core.BuildServers { /// <summary> /// Interface according to the /// <a href="https://wiki.jenkins.io/display/JENKINS/Building+a+software+project">official website</a>. /// </summary> [BuildServer] public class Jenkins { publi...
mit
C#
2e0d4cd40f8b7b0f54104d6facd62d84b6a848a1
Add sorting order/layer comparison Also move comparer methods into a list
HattMarris1/HoloToolkit-Unity,NeerajW/HoloToolkit-Unity,paseb/HoloToolkit-Unity,paseb/MixedRealityToolkit-Unity,out-of-pixel/HoloToolkit-Unity,willcong/HoloToolkit-Unity
Assets/HoloToolkit/Utilities/Scripts/RaycastResultComparer.cs
Assets/HoloToolkit/Utilities/Scripts/RaycastResultComparer.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.Collections.Generic; using UnityEngine.EventSystems; namespace HoloToolkit.Unity { public class RaycastResultComparer : IComparer<Ray...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Collections.Generic; using UnityEngine.EventSystems; namespace HoloToolkit.Unity { public class RaycastResultComparer : IComparer<RaycastResult> ...
mit
C#
2aa0f015b56de1b862c66c1cf6f3e09d03e086ba
Add missing file
davidsyntex/13th-Age-Monster-Generator
13AMonsterGenerator/DefenseType.cs
13AMonsterGenerator/DefenseType.cs
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _13AMonsterGenerator { class DefenseType { public DefenseType(Type type) { switch (type) { case Typ...
mit
C#
7ca8255d6f92470493cb24537967786d326acc78
Add a default VS foregrounddispatcher
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
src/Microsoft.VisualStudio.LanguageServices.Razor/VisualStudioForegroundDispatcher.cs
src/Microsoft.VisualStudio.LanguageServices.Razor/VisualStudioForegroundDispatcher.cs
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.ComponentModel.Composition; using Microsoft.VisualStudio.Shell; namespace Microsoft.VisualStudio.LanguageServices.Razor { [Export(typ...
apache-2.0
C#
161ac34c11a67c951aa18148fb1b67f6cd18f892
Create MonsterDensityAroundCursor.cs
prrovoss/THUD
plugins/Prrovoss/MonsterDensityAroundCursor.cs
plugins/Prrovoss/MonsterDensityAroundCursor.cs
using Turbo.Plugins.Default; namespace Turbo.Plugins.Prrovoss { public class MonsterDensityAroundCursor : BasePlugin { public bool DrawCursorCircle { get; set; } public bool DrawCursorLabel { get; set; } public bool DrawTopLabel { get; set; } public int Distance { get; set; } ...
mit
C#
fa07dfd7ec10605e8e86f1cfa5fd6a0bc1b84e94
Write various unit tests for CustomerData, Name, and StreetAddress
0culus/ElectronicCash
ElectronicCash.Tests/CustomerDataTests.cs
ElectronicCash.Tests/CustomerDataTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace ElectronicCash.Tests { [TestFixture] class CustomerDataTests { //private static DateTime _dateTime = new DateTime(); private static readonly...
mit
C#
86db44c810e8c0e171303a7cce35c9bc53b4abff
Create TerminalBlockInspector.cs
Pharap/SpengyUtils
Utils/TerminalBlockInspector.cs
Utils/TerminalBlockInspector.cs
// Lists all actions and properties of a terminal block public void Main(string argument) { var block = GridTerminalSystem.GetBlockWithName(argument) as IMyTerminalBlock; var builder = new StringBuilder(); var actions = new List<ITerminalAction>(); block.GetActions(actions); foreach(var action in...
apache-2.0
C#
f3d8322ddcefbd471197373359d6759ccaa4c02f
Add mappedimages view
feliwir/openSage,feliwir/openSage
src/OpenSage.Game/Diagnostics/AssetViews/MappedImageView.cs
src/OpenSage.Game/Diagnostics/AssetViews/MappedImageView.cs
using System.Collections.Generic; using System.Numerics; using ImGuiNET; using OpenSage.Graphics; using OpenSage.Gui; using OpenSage.Gui.Wnd.Images; using OpenSage.Mathematics; using Veldrid; namespace OpenSage.Diagnostics.AssetViews { [AssetView(typeof(MappedImage))] internal sealed class MappedImageView : A...
mit
C#
0a2934f15ce2c8a67daf644b94a1b873109e9223
Create OpeningEncryptedExcelFiles.cs
maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose...
Examples/CSharp/Files/Handling/OpeningEncryptedExcelFiles.cs
Examples/CSharp/Files/Handling/OpeningEncryptedExcelFiles.cs
using System.IO; using Aspose.Cells; using System; namespace Aspose.Cells.Examples.Files.Handling { public class OpeningEncryptedExcelFiles { public static void Main(string[] args) { //Exstart:1 // The path to the documents directory. string dataDir = Aspose...
mit
C#
b9d397e6a0a9c2ffe6d7e2160127cb1ea9052624
Create server side API for single multiple answer question
Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist
Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs
Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs
using Microsoft.AspNetCore.Mvc; using Promact.Trappist.DomainModel.Models.Question; using Promact.Trappist.Repository.Questions; using System; namespace Promact.Trappist.Core.Controllers { [Route("api/question")] public class QuestionsController : Controller { private readonly IQuestionRepository ...
mit
C#
69e7edbfdc3d8b5905f84612b2541548f7cf6f96
append _URL to AUTH0_AUDIENCE
StephenClearyExamples/FunctionsAuth0
src/FunctionApp/Constants.cs
src/FunctionApp/Constants.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FunctionApp { public static class Constants { public static string Auth0Domain => GetEnvironmentVariable("AUTH0_DOMAIN"); public static string Audience => GetEnvironmen...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FunctionApp { public static class Constants { public static string Auth0Domain => GetEnvironmentVariable("AUTH0_DOMAIN"); public static string Audience => GetEnvironmen...
mit
C#
71c2fe2ea1b4dfa92c9a85820fe912cb1f5fa0a2
Add parameterless constructor to SingleCriteria
ronnymgm/csla-light,JasonBock/csla,JasonBock/csla,ronnymgm/csla-light,jonnybee/csla,rockfordlhotka/csla,rockfordlhotka/csla,rockfordlhotka/csla,jonnybee/csla,MarimerLLC/csla,BrettJaner/csla,BrettJaner/csla,jonnybee/csla,MarimerLLC/csla,MarimerLLC/csla,BrettJaner/csla,ronnymgm/csla-light,JasonBock/csla
cslalightcs/Csla/SingleCriteria.cs
cslalightcs/Csla/SingleCriteria.cs
using System; using Csla.Serialization; using Csla.Core.FieldManager; using Csla.Serialization.Mobile; using Csla.Core; namespace Csla { /// <summary> /// A single-value criteria used to retrieve business /// objects that only require one criteria value. /// </summary> /// <typeparam name="B"> ...
using System; using Csla.Serialization; using Csla.Core.FieldManager; using Csla.Serialization.Mobile; using Csla.Core; namespace Csla { /// <summary> /// A single-value criteria used to retrieve business /// objects that only require one criteria value. /// </summary> /// <typeparam name="B"> ...
mit
C#
9deffad98cb16fb3d5534761b89fa85a1682f874
Add empty class to build something
alexandrnikitin/CircuitBreaker.Net,alexandrnikitin/CircuitBreaker.Net
src/CircuitBreaker.Net/CircuitBreaker.cs
src/CircuitBreaker.Net/CircuitBreaker.cs
namespace CircuitBreaker.Net { public class CircuitBreaker { } }
mit
C#
b15976ae63716b01f74d55d31e7bc6090d8925dd
Implement some Tests for the HSL-Struct
ControlzEx/ControlzEx,punker76/Controlz
src/ControlzEx.Tests/Theming/HSLTests.cs
src/ControlzEx.Tests/Theming/HSLTests.cs
using ControlzEx.Theming; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media; namespace ControlzEx.Tests.Theming { [TestFixture] public class HSLTests { // This Test is very slow, so ...
mit
C#
eec8f67c97e78a22d3c887b99bc76c98fbe7fa7c
print in test
kbilsted/LineCounter.Net
LineCounter.Tests/UnitTest.cs
LineCounter.Tests/UnitTest.cs
using System; using System.Diagnostics; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using TeamBinary.LineCounter; namespace TeamBinary.LineCounter.Tests { [TestClass] public class UnitTest1 { /* string lens 964 5.024630542 ordinal startswith 1015 18.99441341 ord...
using System; using System.Diagnostics; using System.IO; using Microsoft.VisualStudio.TestTools.UnitTesting; using TeamBinary.LineCounter; namespace TeamBinary.LineCounter.Tests { [TestClass] public class UnitTest1 { /* string lens 964 5.024630542 ordinal startswith 1015 18.99441341 ord...
apache-2.0
C#
2f32ca6408e68efc06717a0937d7859b3abb69a8
Add JsonWriter impl. that defaults to using a RendererMap
smarts/log4net.Ext.Json.Serializers
shared/RendererMapJsonTextWriter.cs
shared/RendererMapJsonTextWriter.cs
using System.IO; using log4net.ObjectRenderer; using log4net.Util.Serializer; namespace Newtonsoft.Json.Serialization { public class RendererMapJsonTextWriter : JsonTextWriter { private readonly RendererMap rendererMap; private readonly TextWriter textWriter; public RendererMapJsonTex...
mit
C#
37cc9fa2a667c37c26864d2f6bbc954c89fe43bf
Add CSharp (C#) Cycle sort
ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs...
sort/cycle_sort/csharp/CycleSort.cs
sort/cycle_sort/csharp/CycleSort.cs
// C# program to implement cycle sort using System; class GFG { // Function sort the array using Cycle sort public static void CycleSort(int[] arr, int n) { // count number of memory writes int writes = 0; // traverse array elements and // put it to on the right place for (int cycle_start = 0...
cc0-1.0
C#
2fd125c2127bc9579976e70b925e873f099b783e
Make VSWorkspace.GetProjectGuid accessible to XAML (#36225)
stephentoub/roslyn,CyrusNajmabadi/roslyn,tannergooding/roslyn,dotnet/roslyn,dotnet/roslyn,diryboy/roslyn,weltkante/roslyn,CyrusNajmabadi/roslyn,nguerrera/roslyn,reaction1989/roslyn,diryboy/roslyn,brettfo/roslyn,heejaechang/roslyn,brettfo/roslyn,panopticoncentral/roslyn,mavasani/roslyn,davkean/roslyn,aelij/roslyn,jasonm...
src/VisualStudio/Xaml/Impl/Extensions.cs
src/VisualStudio/Xaml/Impl/Extensions.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; using Microsoft.VisualStudio.LanguageServices; namespace Microsoft.CodeAnalysis.Editor.Xaml { internal static class Extensions { ...
mit
C#
fbcddd2008c690e5689474e058b18b0d0dfb2c9b
Remove error message giving away path location if not accessing from the local machine
rytmis/dotless,modulexcite/dotless,r2i-sitecore/dotless,rytmis/dotless,modulexcite/dotless,r2i-sitecore/dotless,modulexcite/dotless,r2i-sitecore/dotless,rytmis/dotless,dotless/dotless,rytmis/dotless,r2i-sitecore/dotless,r2i-sitecore/dotless,modulexcite/dotless,modulexcite/dotless,rytmis/dotless,modulexcite/dotless,rytm...
src/dotless.AspNet/LessCssHttpHandler.cs
src/dotless.AspNet/LessCssHttpHandler.cs
namespace dotless.Core { using System.Web; using System.Web.SessionState; public class LessCssWithSessionHttpHandler : LessCssHttpHandler, IRequiresSessionState { } public class LessCssHttpHandler : LessCssHttpHandlerBase, IHttpHandler { public void ProcessRequest(HttpContext ...
namespace dotless.Core { using System.Web; using System.Web.SessionState; public class LessCssWithSessionHttpHandler : LessCssHttpHandler, IRequiresSessionState { } public class LessCssHttpHandler : LessCssHttpHandlerBase, IHttpHandler { public void ProcessRequest(HttpContext ...
apache-2.0
C#
067e18242d6a38e2fc9626ff2d37efc180f8a9d1
refactor so the response model creation can be reused
half-ogre/qed,Haacked/qed
RequestHandlers/GetBuilds.cs
RequestHandlers/GetBuilds.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using fn = qed.Functions; namespace qed { public static partial class Handlers { public static async Task GetBuilds( IDictionary<string, object> environment, dynamic @params, ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using fn = qed.Functions; namespace qed { public static partial class Handlers { public static async Task GetBuilds( IDictionary<string, object> environment, dynamic @params, ...
mit
C#
d495826e0448cd110d8b8564c52b75656ee027a9
Add a C# style Point class
BillWagner/TourOfCSharp6
TourOfCSharp6/Point.cs
TourOfCSharp6/Point.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TourOfCSharp6 { public class Point { public double X { get; set; } public double Y { get; set; } public double Distance { get { ...
mit
C#
da6fdb7be6a4cf377e7ea592531884b0b21f77f4
Add a sanity check for exported types
Abc-Arbitrage/ZeroLog
src/ZeroLog.Tests/SanityChecks.cs
src/ZeroLog.Tests/SanityChecks.cs
using System.Linq; using NUnit.Framework; using ZeroLog.Tests.Support; namespace ZeroLog.Tests; [TestFixture] public class SanityChecks { [Test] public void should_export_expected_types() { // This test prevents mistakenly adding public types in the future. var publicTypes = new[] ...
mit
C#
87a9d293da8126390867235872a5c5d3b95c2edc
Add missing file from code config branch
kvr000/spring-net,zi1jing/spring-net,yonglehou/spring-net,djechelon/spring-net,djechelon/spring-net,spring-projects/spring-net,zi1jing/spring-net,spring-projects/spring-net,kvr000/spring-net,dreamofei/spring-net,likesea/spring-net,yonglehou/spring-net,likesea/spring-net,yonglehou/spring-net,likesea/spring-net,kvr000/sp...
src/Spring/Spring.Core/Objects/Factory/Parsing/IProblemReporter.cs
src/Spring/Spring.Core/Objects/Factory/Parsing/IProblemReporter.cs
using System; using System.Collections.Generic; using System.Text; namespace Spring.Objects.Factory.Parsing { public interface IProblemReporter { void Fatal(Problem problem); void Warning(Problem problem); void Error(Problem problem); } }
apache-2.0
C#
a9c30df281ecf47a6ed0d7e78ed0fc4b740ced38
Add simple snippet to get InformationalVersion
lerthe61/Snippets,lerthe61/Snippets
dotNet/Version/VersionHelper.cs
dotNet/Version/VersionHelper.cs
public static string GetProductVersion() { var attribute = (AssemblyVersionAttribute)Assembly .GetExecutingAssembly() .GetCustomAttributes( typeof(AssemblyVersionAttribute), true ) .Single(); return attribute.InformationalVersion; }
unlicense
C#
e04b080ac6eeefa058a0aad13ce581acad5a1132
Create MagicResistanceB.cs
Keripo/fgo-data
webservice/src/Models/Data/PassiveSkills/MagicResistanceB.cs
webservice/src/Models/Data/PassiveSkills/MagicResistanceB.cs
using FGOData.Models.Serialization; using System.Collections.Generic; namespace FGOData.Models.Data { public class MagicResistanceB : PassiveSkill { public MagicResistanceB() { Name_EN = "Magic Resistance B"; Name_JP = "対魔力 B"; Effects = new List<Effect> ...
apache-2.0
C#
455e7dce970f1dc703270b808c25d1c1687a4ec5
add the 4-th subchapter from ch 2
ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education,ordinary-developer/education
books/techno/.net/c#_6.0_in_a_nutshell_6_ed_j_albahari/ch_2-c#_language_basics/04-boolean_type_and_operators/main.cs
books/techno/.net/c#_6.0_in_a_nutshell_6_ed_j_albahari/ch_2-c#_language_basics/04-boolean_type_and_operators/main.cs
using System; class Test { class Dude { public string Name; public Dude (string n) { Name = n; } } static void Example1_EqualityAndComparisonOperators() { int x = 1; int y = 2; int z = 1; Console.WriteLine(x == y); Console.WriteLine(x == z); ...
mit
C#
b3e420d423dd65cb4d9b1be6d0f2ac71e6ff3db9
Bump to 1.6
JustArchi/ArchiSteamFarm,KlappPc/ArchiSteamFarm,i3at/ArchiSteamFarm,JustArchi/ArchiSteamFarm,i3at/ArchiSteamFarm,JustArchi/ArchiSteamFarm,blackpanther989/ArchiSteamFarm,KlappPc/ArchiSteamFarm,blackpanther989/ArchiSteamFarm,JustArchi/ArchiSteamFarm,KlappPc/ArchiSteamFarm
ArchiSteamFarm/Properties/AssemblyInfo.cs
ArchiSteamFarm/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Ar...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Ar...
apache-2.0
C#
1384a08976698f8fb282022f07418dceb7d83bc3
Add a testcase for unknown frame types
Matthias247/http2dotnet
Http2Tests/ConnectionUnknownFrameTests.cs
Http2Tests/ConnectionUnknownFrameTests.cs
using System; using System.Collections.Generic; using System.Threading.Tasks; using Xunit; using Http2; namespace Http2Tests { public class ConnectionUnknownFrameTests { [Theory] [InlineData(true, 0)] [InlineData(true, 512)] [InlineData(false, 0)] [InlineData(false, 51...
mit
C#
71fb7c5b1b1c4d0de4dfa4d3feeb73234cdfb239
Update WriteJSONTest to initialize TiledNavMesh with non-null parameter
unity-chicken/SharpNav,sangdaekim/SharpNav,sangdaekim/SharpNav,unity-chicken/SharpNav
SharpNavTests/JSONTests.cs
SharpNavTests/JSONTests.cs
#region License /** * Copyright (c) 2013-2014 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file). * Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE */ #endregion using System; using System.Collections; using System.Collections.Gene...
#region License /** * Copyright (c) 2013-2014 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file). * Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE */ #endregion using System; using System.Collections; using System.Collections.Gene...
mit
C#
ff421475da35461991799717d98490f57c53a914
Create SnapshotExtension.cs
NMSLanX/Natasha
Natasha/ExtensionApi/SnapshotExtension.cs
Natasha/ExtensionApi/SnapshotExtension.cs
using System.Collections.Generic; namespace Natasha.Snapshot { public static class SnapshotExtension { public static void MakeSnapshot<T>(this T instance) { SnapshotOperator.MakeSnapshot(instance); } public static Dictionary<string,DiffModel> Compare<T>(this T insta...
mpl-2.0
C#
25866da2b6d8618ebf683f550261238ccaf30d7d
Add test case
gep13/GitVersion,asbjornu/GitVersion,asbjornu/GitVersion,GitTools/GitVersion,gep13/GitVersion,GitTools/GitVersion
src/GitVersion.Core.Tests/Configuration/ConfigExtensionsTests.cs
src/GitVersion.Core.Tests/Configuration/ConfigExtensionsTests.cs
using GitVersion.Configuration; using GitVersion.Core.Tests.Helpers; using GitVersion.Model.Configuration; using NUnit.Framework; using Shouldly; namespace GitVersion.Core.Tests.Configuration; [TestFixture] public class ConfigExtensionsTests : TestBase { [Test] public void GetReleaseBranchConfigReturnsAllRele...
mit
C#
f8dc0b4022ed6616fdc8b63e10bec00ffd70965b
Create StringFrequencyChallenge.cs
Zephyr-Koo/sololearn-challenge
StringFrequencyChallenge.cs
StringFrequencyChallenge.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // https://www.sololearn.com/Discuss/654194/?ref=app namespace SoloLearn { class Program { static void Main(string[] zephyr_koo) { var input = "PROGRAMMING"; // Console.ReadLine(); ...
apache-2.0
C#
43923885b5d07ddcacfb0ae3b97a8bfd8694533f
Create SuperPerfectNumChallenge.cs
Zephyr-Koo/sololearn-challenge
SuperPerfectNumChallenge.cs
SuperPerfectNumChallenge.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //https://www.sololearn.com/Discuss/646305/?ref=app namespace SoloLearn { class Program { static void Main(string[] zephyr_koo) { var input = Console.ReadLine(); ...
apache-2.0
C#
1d6d843b4188f8ca231828f5b615931a88b83f3f
Create kod.cs
Nazarewicz/prywatnemw
kod.cs
kod.cs
int a = 2;
mit
C#
2cb75380e138b52ac0a0b9341d44ac1103ce13dc
Add a test for #724
riganti/dotvvm,riganti/dotvvm,riganti/dotvvm,riganti/dotvvm
src/DotVVM.Framework.Tests.Common/ViewModel/ValidationErrorFactoryTests.cs
src/DotVVM.Framework.Tests.Common/ViewModel/ValidationErrorFactoryTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using DotVVM.Framework.ViewModel.Validation; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace DotVVM.Framework.Tests.Common.ViewModel { [TestClass] pu...
apache-2.0
C#
874eebd87a9a3c90c8d208dfed8241f5f7e01aa2
Create LegendaryDroppedPopup.cs
prrovoss/THUD
plugins/Prrovoss/LegendaryDroppedPopup.cs
plugins/Prrovoss/LegendaryDroppedPopup.cs
using Turbo.Plugins.Default; namespace Turbo.Plugins.Prrovoss { public class LegendaryDroppedPopup : BasePlugin, ILootGeneratedHandler { public void OnLootGenerated(IItem item, bool gambled) { if (item.Quality >= ItemQuality.Legendary) Hud.GetPlugin<PopupNotificati...
mit
C#
c17c806fb0ee84a9f3c5f8b65e0670ca80948296
Add `PcscReaderStatus` class
Archie-Yang/PcscDotNet
src/PcscDotNet/PcscReaderStatus.cs
src/PcscDotNet/PcscReaderStatus.cs
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading; namespace PcscDotNet { public delegate void PcscReaderStatusAction(PcscReaderStatus readerStatus); public abstract class PcscReaderStatus : ReadOnlyCollection<PcscReaderState> { /// <summa...
mit
C#
30a466a2209835d195a79a664fef79b47d3e3586
Create CollectionModeDescription.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/CollectionModeDescription.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/CollectionModeDescription.cs
namespace WebApplication1.Areas.HelpPage.ModelDescriptions { public class CollectionModelDescription : ModelDescription { public ModelDescription ElementDescription { get; set; } } }
mit
C#
d7dec4ded2b8faa836c7fad5148f25fdab997296
Add a test for TwoDigitYearMax to KoreanCalendar
shahid-pk/corefx,Petermarcu/corefx,alexperovich/corefx,shmao/corefx,mmitche/corefx,jlin177/corefx,ericstj/corefx,richlander/corefx,ptoonen/corefx,weltkante/corefx,cydhaselton/corefx,tijoytom/corefx,ptoonen/corefx,rahku/corefx,shimingsg/corefx,dsplaisted/corefx,mazong1123/corefx,krytarowski/corefx,adamralph/corefx,richl...
src/System.Globalization.Calendars/tests/KoreanCalendar/KoreanCalendarTwoDigitYearMax.cs
src/System.Globalization.Calendars/tests/KoreanCalendar/KoreanCalendarTwoDigitYearMax.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 Xunit; namespace System.Globalization.Tests { public class KoreanCalendarTwoDigitYearMax { [F...
// 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 Xunit; namespace System.Globalization.Tests { public class KoreanCalendarTwoDigitYearMax { [F...
mit
C#
e44e083a51e46367b20d17df4bc70491b048b357
Create StorageService.cs
wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D
src/Core2D/Services/StorageService.cs
src/Core2D/Services/StorageService.cs
using Avalonia; using Avalonia.Controls; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Platform.Storage; using Avalonia.VisualTree; namespace Core2D.Services; internal static class StorageService { public static FilePickerFileType All { get; } = new("All") { Patterns = new[] { "*.*" },...
mit
C#
b5eec875b155496964187c97b7fda704c2b8b547
Add failing test scene
peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework
osu.Framework.Tests/Visual/Sprites/TestSceneSpriteTextSizing.cs
osu.Framework.Tests/Visual/Sprites/TestSceneSpriteTextSizing.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Graphics.Sprites; namespace osu.Framework.Tests.Visual.Sprites { public class TestSceneSpriteTextSizing : FrameworkTestSce...
mit
C#
8c14c9e1c4eb36789b150d14e273e6b6ccf1f772
Add basic test coverage
ppy/osu,NeoAdonis/osu,peppy/osu-new,ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu
osu.Game.Tests/Visual/Gameplay/TestSceneDrawableStoryboardSprite.cs
osu.Game.Tests/Visual/Gameplay/TestSceneDrawableStoryboardSprite.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.Allocation; using osu.Framework.Graphics; using osu.Framework.Testing; using osu.Game.Rulesets; using osu.Ga...
mit
C#
2927b235dec25bc6c27cac9786e1d0736ccea593
Add test coverage of mouse wheel scroll adjusting volume
ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu
osu.Game.Tests/Visual/Navigation/TestSceneMouseWheelVolumeAdjust.cs
osu.Game.Tests/Visual/Navigation/TestSceneMouseWheelVolumeAdjust.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Configuration; using osu.Game.Screens.Play; using osu.Game.Tests.Beatmaps.IO; using osuTK.Input; namespace osu.Game.Tests.Visual.Na...
mit
C#
7b148cb3b9859214f406efc2ca7bed5c31a7f130
Add UnmanagedDataSource.
Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver
src/AsmResolver/IO/UnmanagedDataSource.cs
src/AsmResolver/IO/UnmanagedDataSource.cs
using System; using System.Runtime.InteropServices; namespace AsmResolver.IO { public sealed unsafe class UnmanagedDataSource : IDataSource { private readonly void* _basePointer; public UnmanagedDataSource(void* basePointer, ulong length) { _basePointer = basePointer; ...
mit
C#
6324d4d23eeb49813c89422a6896e7328a822883
Add tests for Factory.Email
inputfalken/Sharpy
Tests/Sharpy/FactoryTests/Email.cs
Tests/Sharpy/FactoryTests/Email.cs
using System; using System.Linq; using NUnit.Framework; using Sharpy; using Sharpy.Core.Linq; namespace Tests.Sharpy.FactoryTests { [TestFixture] internal class Email { [Test] public void No_Args_Randomizes_Various_Domains() { var mails = Factory .Email() ...
mit
C#
3f54ef12653333c30649056c5678fa3a8e2f9ea1
Add Func<Task> overload in TaskManager
agarbuno/SteamDatabaseBackend,GoeGaming/SteamDatabaseBackend,SteamDatabase/SteamDatabaseBackend,thecocce/SteamDatabaseBackend,SGColdSun/SteamDatabaseBackend,SGColdSun/SteamDatabaseBackend,SteamDatabase/SteamDatabaseBackend,GoeGaming/SteamDatabaseBackend,thecocce/SteamDatabaseBackend
Managers/TaskManager.cs
Managers/TaskManager.cs
/* * Copyright (c) 2013-2015, SteamDB. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ using System; using System.Threading.Tasks; namespace SteamDatabaseBackend { static class TaskManager { public static Task Run(Func<T...
/* * Copyright (c) 2013-2015, SteamDB. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ using System; using System.Threading.Tasks; namespace SteamDatabaseBackend { static class TaskManager { public static Task Run(Action...
bsd-3-clause
C#
6ca0019e6bf4fa60c8f63e9b1adc9e21c00c4f1b
Add C# library interface
john29917958/Cpp-Call-CSharp-Example,john29917958/Cpp-Call-CSharp-Example
CSharpLibrary/ICalculator.cs
CSharpLibrary/ICalculator.cs
namespace CSharpLibrary { public interface ICalculator { int Add(int a, int b); int Minus(int a, int b); int Multiply(int a, int b); int Divide(int a, int b); void PrintNumber(int number); } }
mit
C#
deadf4066421463183cb3fd436cec9eb0a27bcb1
Extend the Rotorz Tile System api
jguarShark/Unity2D-Components,cmilr/Unity2D-Components
Extensions/TileExtensions.cs
Extensions/TileExtensions.cs
// This set of methods extends the most excellent Rotorz api. I built this set because, // while I love Rotorz, I find its method paramaters frustrating to use. Specifically, // I tend to send x coordinates first in my params, followed by y coordinates; while // Rotorz transposes this. It has lead to many crazy-making ...
mit
C#
0eaa4491bc3097e1b31ac37d651539847a5c6ad0
Add CodeSamples forlder.
Levi9NS/SecureCompileWrapper
CodeSamples/NodeSelection.cs
CodeSamples/NodeSelection.cs
// Add nugget package Microsoft.CodeAnalysis using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Reflection; using System.IO; using Microsoft.Co...
mit
C#
a64fbbda258a5951be2fc7631a14477de5b11cde
Create DeweyEditViwModel.
Programazing/Open-School-Library,Programazing/Open-School-Library
src/Open-School-Library/Models/DeweyViewModels/DeweyEditViewModel.cs
src/Open-School-Library/Models/DeweyViewModels/DeweyEditViewModel.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Open_School_Library.Models.DeweyViewModels { public class DeweyEditViewModel { } }
mit
C#
e29a30ad5d6a6a231af703f0aac380c60fc65132
Create mycodeMain.cs
diarmuidclarke/my1st
mycodeMain.cs
mycodeMain.cs
#using system.io void main(void) { MessageBox("hellow world"); exit; }
mit
C#
a71dd37c160a9d9927e893c75657a1afdfbc61f8
add FollowingCamera
zyouyowa/Unity_cs
CameraScripts/FollowingCamera.cs
CameraScripts/FollowingCamera.cs
using UnityEngine; using System.Collections; //Edit->Project Settings->Script Excution OrderでこのスクリプトはDeffault Timeより後に行うように設定すること public class FollowingCamera : MonoBehaviour { public GameObject target; //カメラで追従したい対象のオブジェクト public float angleLimit_y = 45f; //縦方向回転においてangleLimit度まで回転できる publ...
mit
C#
c97caea03dc188aabd7e929276cf62a87c11a3fe
Change properties to inherit from declarations.
xistoso/CppSharp,txdv/CppSharp,SonyaSa/CppSharp,SonyaSa/CppSharp,txdv/CppSharp,SonyaSa/CppSharp,nalkaro/CppSharp,genuinelucifer/CppSharp,ktopouzi/CppSharp,mono/CppSharp,mohtamohit/CppSharp,mono/CppSharp,mono/CppSharp,genuinelucifer/CppSharp,xistoso/CppSharp,inordertotest/CppSharp,zillemarco/CppSharp,KonajuGames/CppShar...
src/Bridge/Property.cs
src/Bridge/Property.cs
using System; using System.Collections.Generic; namespace Cxxi { /// <summary> /// Represents a C++ property. /// </summary> public class Property : Declaration { public Property(string name, Declaration type) { Name = name; Type = type; } pu...
using System; using System.Collections.Generic; namespace Cxxi { /// <summary> /// Represents a C++ property. /// </summary> public class Property { public Property(string name, Declaration type) { Name = name; Type = type; } public string Na...
mit
C#
cf8801a66db8b01dd70fa5af3e6aeb8267382708
Add AwaitInCatchAndFinally.cs
devlights/try-csharp
TryCSharp.Samples/CSharp6/AwaitInCatchAndFinally.cs
TryCSharp.Samples/CSharp6/AwaitInCatchAndFinally.cs
using System; using System.Threading; using System.Threading.Tasks; using TryCSharp.Common; namespace TryCSharp.Samples.CSharp6 { /// <summary> /// C# 6 新機能についてのサンプルです。 /// </summary> /// <remarks> /// Await in Catch and Finally blocks (catch と finally ブロックの中での await) について /// http...
mit
C#
a0678d51dc52629b0d7b13f62a9f35fa0cd4ec6a
Move sort class to new file
DMagic1/KSP_Contract_Window
Source/ContractsWindow/contractSortClass.cs
Source/ContractsWindow/contractSortClass.cs
 namespace ContractsWindow { public enum contractSortClass { Difficulty = 1, Expiration = 2, Acceptance = 3, Reward = 4, Type = 5, Planet = 6, } }
mit
C#
95e8d5e1b29a61a4269a4596a455b7200a8a2974
Add 'CascaraChar16'
whampson/bft-spec,whampson/cascara
Src/WHampson.Cascara/Types/CascaraChar16.cs
Src/WHampson.Cascara/Types/CascaraChar16.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#
2d589ee43aef48961e0462ee63095b1892321203
Generalize number formatter to numbers smaller than 1
default0/osu-framework,Nabile-Rahmani/osu-framework,DrabWeb/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,naoey/osu-framework,peppy...
osu.Framework/MathUtils/NumberFormatter.cs
osu.Framework/MathUtils/NumberFormatter.cs
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; namespace osu.Framework.MathUtils { /// <summary> /// Exposes functionality for formatting numbers. /// </summary> pu...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; namespace osu.Framework.MathUtils { /// <summary> /// Exposes functionality for formatting numbers. /// </summary> pu...
mit
C#
fa187cb601bc90ed688caf49b2e0880fbb839998
Add Q179
txchen/localleet
csharp/Q179_LargestNumber.cs
csharp/Q179_LargestNumber.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given a list of non negative integers, arrange them such that they form the largest number. // // For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. // // Note: The result may be very large, s...
mit
C#
abf96db54535e8e24a818db00ee6d19e921217ce
Add regression test for the pattern of using DHO proxy in `LifetimeManagementContainer`
peppy/osu,peppy/osu-new,peppy/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu
osu.Game.Tests/Gameplay/TestSceneProxyContainer.cs
osu.Game.Tests/Gameplay/TestSceneProxyContainer.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.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Testing; using osu.Fra...
mit
C#
e4d0c59558ba9028d8f3e79fe8a0fef23e229f91
Disable parallel test runs for Nancy.Tests
jeff-pang/Nancy,NancyFx/Nancy,khellang/Nancy,xt0rted/Nancy,khellang/Nancy,davidallyoung/Nancy,sadiqhirani/Nancy,xt0rted/Nancy,NancyFx/Nancy,sadiqhirani/Nancy,damianh/Nancy,danbarua/Nancy,NancyFx/Nancy,xt0rted/Nancy,davidallyoung/Nancy,danbarua/Nancy,danbarua/Nancy,davidallyoung/Nancy,jeff-pang/Nancy,blairconrad/Nancy,d...
test/Nancy.Tests/Properties/AssemblyInfo.cs
test/Nancy.Tests/Properties/AssemblyInfo.cs
using Xunit; [assembly: CollectionBehavior(DisableTestParallelization = true)]
mit
C#
0360513f6f0db5703da70e9795d995a1a1473fac
Add SourcePosition class
maul-esel/CobaltAHK,maul-esel/CobaltAHK
CobaltAHK/SourcePosition.cs
CobaltAHK/SourcePosition.cs
using System; namespace CobaltAHK { public struct SourcePosition { public SourcePosition(uint line, uint col, uint index) { this.line = line; this.col = col; this.index = index; } private uint line, col, index; public uint Line { get { return line; } } public uint Column { get { return col; } ...
mit
C#
12cf3c411aecd548a5048080e94458386dd01c5f
Fix caching in RuntimeInformation.
JosephTremoulet/corefx,dotnet-bot/corefx,MaggieTsang/corefx,cydhaselton/corefx,dotnet-bot/corefx,krk/corefx,jlin177/corefx,cydhaselton/corefx,parjong/corefx,shimingsg/corefx,shmao/corefx,ericstj/corefx,twsouthwick/corefx,Ermiar/corefx,Petermarcu/corefx,JosephTremoulet/corefx,elijah6/corefx,nchikanov/corefx,seanshpark/c...
src/System.Runtime.InteropServices.RuntimeInformation/src/System/Runtime/InteropServices/RuntimeInformation/RuntimeInformation.cs
src/System.Runtime.InteropServices.RuntimeInformation/src/System/Runtime/InteropServices/RuntimeInformation/RuntimeInformation.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.Reflection; using System.Diagnostics; namespace System.Runtime.InteropServices { public static par...
// 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.Reflection; using System.Diagnostics; namespace System.Runtime.InteropServices { public static par...
mit
C#
10c81730e5f9112d12abcfa5893560e6b0cdc7f1
Add waiting for updates.
masterrr/mobile,masterrr/mobile,eatskolnikov/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile,peeedge/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile,peeedge/mobile
Tests/Views/DataViewTest.cs
Tests/Views/DataViewTest.cs
using System; using System.Linq; using System.Threading.Tasks; using Toggl.Phoebe.Data.DataObjects; using Toggl.Phoebe.Data.Views; namespace Toggl.Phoebe.Tests.Views { public abstract class DataViewTest : Test { protected DateTime MakeTime (int hour, int minute, int second = 0) { r...
using System; using System.Linq; using System.Threading.Tasks; using Toggl.Phoebe.Data.DataObjects; using Toggl.Phoebe.Data.Views; namespace Toggl.Phoebe.Tests.Views { public abstract class DataViewTest : Test { protected DateTime MakeTime (int hour, int minute, int second = 0) { r...
bsd-3-clause
C#
8906f8cffe46b128e2e5de6c2e1f71342ddca616
Add EventListener for SelfDiagnostics (#2259)
Microsoft/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet
BASE/src/Microsoft.ApplicationInsights/Extensibility/Implementation/Tracing/SelfDiagnosticsInternals/SelfDiagnosticsEventListener.cs
BASE/src/Microsoft.ApplicationInsights/Extensibility/Implementation/Tracing/SelfDiagnosticsInternals/SelfDiagnosticsEventListener.cs
namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.SelfDiagnosticsInternals { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.Tracing; using System.IO; using System.Text; using System.Threading; //...
mit
C#
e9efc4f2e063a656ba4cb6d6d1992304ec4551ea
move getlisting sample
robinrodricks/FluentFTP,robinrodricks/FluentFTP,robinrodricks/FluentFTP
FluentFTP.Examples/GetListingWithLinks.cs
FluentFTP.Examples/GetListingWithLinks.cs
using System; using System.Net; using System.Threading; using System.Threading.Tasks; using FluentFTP; namespace Examples { internal static class GetListingWithLinksExample { public static void GetListing() { using (var conn = new FtpClient("127.0.0.1", "ftptest", "ftptest")) { conn.Connect(); // get ...
mit
C#
cb94366e5fd0346066a7aaed5682c3fbe8e296e5
Add a platform detection mechanism to use in tests
shiftkey-tester/corefx,vs-team/corefx,Yanjing123/corefx,nchikanov/corefx,stormleoxia/corefx,the-dwyer/corefx,Chrisboh/corefx,jcme/corefx,dhoehna/corefx,misterzik/corefx,tstringer/corefx,Alcaro/corefx,seanshpark/corefx,alexandrnikitin/corefx,chenkennt/corefx,pallavit/corefx,Ermiar/corefx,jcme/corefx,shrutigarg/corefx,uh...
src/Common/src/Interop/Interop.PlatformDetection.cs
src/Common/src/Interop/Interop.PlatformDetection.cs
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Runtime.InteropServices; // TODO: This implementation is temporary until Environment.OSVersion is officially exposed, // at which poin...
mit
C#
703ab59cbc64755acee4aa738c53af8fa1ac5ddf
Add enumerable-based methods
farity/farity
CSharp.Functional/Enumerable.cs
CSharp.Functional/Enumerable.cs
using System; using System.Collections.Generic; using System.Linq; namespace CSharp.Functional { public static partial class F { public static IEnumerable<int> Range(int start, int end) => Enumerable.Range(start, end - start + 1); public static IList<T> ToList<T>(IEnumerable<T> source) => sou...
mit
C#
066ec81e2acb2f88811e87fa3122bd7d9263007f
Add extension methods for logging timings
github/VisualStudio,github/VisualStudio,github/VisualStudio
src/GitHub.Logging/Logging/ILoggerExtensions.cs
src/GitHub.Logging/Logging/ILoggerExtensions.cs
using System; using System.Globalization; using System.Threading.Tasks; using Serilog; namespace GitHub.Logging { public static class ILoggerExtensions { public static void Assert(this ILogger logger, bool condition, string messageTemplate) { if (!condition) { ...
using Serilog; namespace GitHub.Logging { public static class ILoggerExtensions { public static void Assert(this ILogger logger, bool condition, string messageTemplate) { if (!condition) { messageTemplate = "Assertion Failed: " + messageTemplate; #pragma ...
mit
C#
af589322692f5371cc8026ece280d3a3877c9027
Create TripPlanner.cs
jbengtson/ksp-precisenode
TripPlanner.cs
TripPlanner.cs
using System; using System.Collections.Generic; using UnityEngine; using KSP.IO; /****************************************************************************** * Copyright (c) 2013, Justin Bengtson * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are ...
bsd-2-clause
C#
42e9df5bde0acdeb19dbdb2d2d3f1f231de66035
Implement longest repeated pattern
cschen1205/cs-algorithms,cschen1205/cs-algorithms
Algorithms/Strings/Search/LongestRepeatedPattern.cs
Algorithms/Strings/Search/LongestRepeatedPattern.cs
using System; using Algorithms.Sorting; namespace Algorithms.Strings.Search { public class LongestRepeatedPattern { public static String Find(String text) { int N = text.Length; String[] a = new String[N]; for (var i = 0; i < N; ++i) { ...
mit
C#
b81b9ab23fadf0c14e10189c84d83048fc8234da
Update #29
lucasdavid/Gamedalf,lucasdavid/Gamedalf
Gamedalf.Services/PlayingService.cs
Gamedalf.Services/PlayingService.cs
using Gamedalf.Core.Data; using Gamedalf.Core.Models; using Gamedalf.Services.Infrastructure; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Threading.Tasks; namespace Gamedalf.Services { public class PlayingService : Service<Playing> { ...
mit
C#
3d5297d0c1ecaf2fdaabd5422a2f917f581e3d41
Multiply strings
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
LeetCode/remote/multiply_strings.cs
LeetCode/remote/multiply_strings.cs
// https://leetcode.com/problems/multiply-strings/ // // Given two numbers represented as strings, return multiplication of the numbers as a string. // // Note: The numbers can be arbitrarily large and are non-negative. using System; using System.Linq; public class Solution { // // Submission Details ...
mit
C#