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 |
|---|---|---|---|---|---|---|---|---|
707358b1c3d09d6e9dca94218df4c11866734806 | Add new document extensions file | CyrusNajmabadi/roslyn,wvdd007/roslyn,KevinRansom/roslyn,eriawan/roslyn,ErikSchierboom/roslyn,stephentoub/roslyn,weltkante/roslyn,mgoertz-msft/roslyn,wvdd007/roslyn,diryboy/roslyn,heejaechang/roslyn,bartdesmet/roslyn,panopticoncentral/roslyn,dotnet/roslyn,CyrusNajmabadi/roslyn,shyamnamboodiripad/roslyn,AlekseyTs/roslyn,... | src/EditorFeatures/Core/Shared/Extensions/DocumentExtensions.cs | src/EditorFeatures/Core/Shared/Extensions/DocumentExtensions.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CodeAnalysis.Editor.Shared.Utilities;
namespace Microsoft.CodeAnalysis.Editor.Shared.Extensions
{
... | mit | C# | |
cb8ddce4cad0a5902b621ef09a63db534826b058 | add shadow object | Tangerino/wrapper-c-sharp | WimdioApiProxy/DataTransferObjects/ShadowDevice/ShadowObject.cs | WimdioApiProxy/DataTransferObjects/ShadowDevice/ShadowObject.cs | using Newtonsoft.Json;
using WimdioApiProxy.v2.Helpers;
namespace WimdioApiProxy.v2.DataTransferObjects.ShadowDevice
{
public class ShadowObject
{
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("objectcontent")]
[JsonConverter(typeof(StringObjectConv... | mit | C# | |
4744bd2f78a332a349680a2ae21ad7262ceb81c8 | Add Handler | skatpgusskat/CircleFight,skatpgusskat/CircleFight,skatpgusskat/CircleFight,skatpgusskat/CircleFight | src/CircleFightUnityClient/Assets/Script/Network/Handle/LoginResultHandler.cs | src/CircleFightUnityClient/Assets/Script/Network/Handle/LoginResultHandler.cs | //------------------------------------------------------------------------------
// <auto-generated>
// 이 코드는 도구를 사용하여 생성되었습니다.
// 런타임 버전:4.0.30319.18449
//
// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면
// 이러한 변경 내용이 손실됩니다.
// </auto-generated>
//---------------------------------------------------------... | apache-2.0 | C# | |
1fb5518a3c16b058fa982a7811f2a1eb13f9af4a | Add tests | tmat/roslyn,CyrusNajmabadi/roslyn,dotnet/roslyn,jmarolf/roslyn,brettfo/roslyn,wvdd007/roslyn,AmadeusW/roslyn,tannergooding/roslyn,sharwell/roslyn,genlu/roslyn,mgoertz-msft/roslyn,stephentoub/roslyn,brettfo/roslyn,AmadeusW/roslyn,dotnet/roslyn,AlekseyTs/roslyn,weltkante/roslyn,mgoertz-msft/roslyn,aelij/roslyn,eriawan/ro... | src/EditorFeatures/CSharpTest/SimplifyConditional/SimplifyConditionalTests.cs | src/EditorFeatures/CSharpTest/SimplifyConditional/SimplifyConditionalTests.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.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp;
using Mi... | mit | C# | |
c1ab52d5c6dcda75dca7563494fd270e0e91a71f | Add metadata class for the compilation root. | jagrem/slang,jagrem/slang,jagrem/slang | slang/Compilation/CompilationMetadata.cs | slang/Compilation/CompilationMetadata.cs | namespace slang.Compilation
{
public class CompilationMetadata
{
public CompilationMetadata(string projectName)
{
ProjectName = projectName;
}
public string ProjectName { get; set; }
}
}
| mit | C# | |
647120aa2814086a6c6dcbaf1ec82b03cf302044 | Revert "moving error view to Shared from Home" | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Views/Home/Error.cshtml | src/Firehose.Web/Views/Home/Error.cshtml | @model System.Exception
@{
ViewBag.Title = "Error :)";
}
<section class="container">
<div class="row area">
<div class="col-xs-12">
<h1>@ViewBag.Title</h1>
<p>
Rats, something unfortunate happened. Below you can find some additional, technical information which ... | mit | C# | |
1d118c53416f1a157924f8acccd554bd1c880218 | Document EdgeEffect | ppy/osu-framework,paparony03/osu-framework,peppy/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,naoey/osu-framework,naoey/osu-framework,default0/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,DrabWeb/osu-framework,ZLima12/osu-f... | osu.Framework/Graphics/Effects/EdgeEffect.cs | osu.Framework/Graphics/Effects/EdgeEffect.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.Containers;
namespace osu.Framework.Graphics.Effects
{
/// <summary>
/// An effect applied around the edge of th... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.Containers;
namespace osu.Framework.Graphics.Effects
{
/// <summary>
///
/// </summary>
public class ... | mit | C# |
1b033d2d53d219071aa755fd65bf6b3bb36033d2 | Add SequenceStartsWith | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Utilities/Collections/Enumerable.Sequence.cs | source/Nuke.Common/Utilities/Collections/Enumerable.Sequence.cs | // Copyright 2021 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System.Collections.Generic;
using System.Linq;
namespace Nuke.Common.Utilities.Collections
{
public static partial class EnumerableExtensions
{
public static bo... | mit | C# | |
91e7e05bf929d0360ea9682912f50e34ceadde39 | Add missing Settings.cs file. | kcotugno/OpenARLog | OpenARLog/Settings.cs | OpenARLog/Settings.cs | namespace OpenARLog.Properties {
// This class allows you to handle specific events on the settings class:
// The SettingChanging event is raised before a setting's value is changed.
// The PropertyChanged event is raised after a setting's value is changed.
// The SettingsLoaded even... | mit | C# | |
5babfe2728f1426f7c4fe81cc1fabdb58ea5882b | Fix missing TranslationExtension file (wasn't being added to repo for some reason) | BrunoBrux/ArticulateDVS,Mpstark/articulate | SierraLib.Translation/TranslateExtension.cs | SierraLib.Translation/TranslateExtension.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Markup;
using System.Windows.Data;
namespace SierraLib.Translation
{
public class TranslateExtension : System.Windows.Markup.MarkupExtension
{
private string _key;
private string _default;
public T... | mit | C# | |
cad03a2c4358831d5984c48057aeb7d363e6f4cf | Add ExtensionsExceptionMEssageTest | unosquare/swan | test/Unosquare.Swan.Test/ExtensionsExceptionMEssageTest.cs | test/Unosquare.Swan.Test/ExtensionsExceptionMEssageTest.cs | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Unosquare.Swan.Networking;
using Unosquare.Swan.Test.Mocks;
namespace Unosquare.Swan.Test
{
[TestFixture]
public class ExtensionsExceptionMessageTest
{
[Test]
publi... | mit | C# | |
6ab04018db449835848e25f1b7ea8811b15684e4 | Add default LSP initialize handler (for diagnostics). | heejaechang/roslyn,CyrusNajmabadi/roslyn,nguerrera/roslyn,mgoertz-msft/roslyn,KirillOsenkov/roslyn,eriawan/roslyn,stephentoub/roslyn,AmadeusW/roslyn,diryboy/roslyn,jmarolf/roslyn,AlekseyTs/roslyn,aelij/roslyn,KirillOsenkov/roslyn,heejaechang/roslyn,stephentoub/roslyn,tannergooding/roslyn,heejaechang/roslyn,wvdd007/rosl... | src/VisualStudio/LiveShare/Impl/LSPSDKInitializeHandler.cs | src/VisualStudio/LiveShare/Impl/LSPSDKInitializeHandler.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.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.VisualStudio.LiveShare.LanguageServices;
using Microsoft.... | mit | C# | |
e91ec5c68cf4c46d6b97e1e46da172610e1fa124 | Create MultibaseCorrelationService.cs | tiksn/TIKSN-Framework | TIKSN.Core/Integration/Correlation/MultibaseCorrelationService.cs | TIKSN.Core/Integration/Correlation/MultibaseCorrelationService.cs | using Microsoft.Extensions.Options;
using Multiformats.Base;
using System;
namespace TIKSN.Integration.Correlation
{
public class MultibaseCorrelationService : ICorrelationService
{
private readonly IOptions<MultibaseCorrelationServiceOptions> _multibaseCorrelationServiceOptions;
private reado... | mit | C# | |
c325086748a9f4ac493d7bf05939a6aeba3bea4b | add tests for collections ref | GetStream/stream-net,GetStream/stream-net,GetStream/stream-net | src/stream-net-tests/CollectionsTest.cs | src/stream-net-tests/CollectionsTest.cs | using NUnit.Framework;
using System;
using Stream;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace stream_net_tests
{
[Parallelizable(ParallelScope.None)]
[TestFixture]
public class CollectionsTest
{
[Test]
public void Test... | bsd-3-clause | C# | |
55c8352692438aa116a23cdc1e25ac878a78c284 | Create ReverseInteger.cs | shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank | leetcode/ReverseInteger.cs | leetcode/ReverseInteger.cs | /*
Code to reverse an integer
Based on question at leetcode at: https://leetcode.com/problems/reverse-integer/
*/
public class ReverseInteger {
public int Reverse(int x) {
StringBuilder sb = new StringBuilder(); // to hold the reverse order
int d = 0; // to hold the las... | mit | C# | |
b34c542f67ba851fab12fb12aa51858c9abebe03 | Add RantObjectExpression | TheBerkin/Rant | Rant/Engine/ObjectModel/Expressions/RantObjectExpression.cs | Rant/Engine/ObjectModel/Expressions/RantObjectExpression.cs | using Rant.Engine.Compiler;
using Rant.Stringes;
namespace Rant.Engine.ObjectModel.Expressions
{
internal class RantObjectExpression : RantExpression
{
private readonly Token<R> _token;
private readonly RantObject _object;
public RantObjectExpression(RantObject rantObj, Token<R> token... | mit | C# | |
208e37163a9a9beaed35af46fc3a77eb7cf8bb2b | Add class | mstrother/BmpListener | src/BmpListener/Bgp/CapabilitiesParameter.cs | src/BmpListener/Bgp/CapabilitiesParameter.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace BmpListener.Bgp
{
public class CapabilitiesParameter : OptionalParameter
{
public IList<Capability> Capabilities { get; } = new List<Capability>();
public override void Decode(ArraySegment<byte> data)
{
... | mit | C# | |
6359bd7ae342a960197b4130412112aa5bf370ec | Create Definition.cs | Andy16823/OpenObjectLoader | source/OpenObjectLoader/Types/Definition.cs | source/OpenObjectLoader/Types/Definition.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenObjectLoader.Types
{
public class Definition
{
public int v { get; set; }
public int vt { get; set; }
public int vn { get; set; }
public Definition(... | mit | C# | |
aecc3d28bf2723877ce3f5a2b7db12eb20f799a3 | Fix U4-2286 - IFilteredControllerFactory classes are not resolved by Umbraco | Tronhus/Umbraco-CMS,DaveGreasley/Umbraco-CMS,gkonings/Umbraco-CMS,m0wo/Umbraco-CMS,dampee/Umbraco-CMS,Scott-Herbert/Umbraco-CMS,leekelleher/Umbraco-CMS,dawoe/Umbraco-CMS,qizhiyu/Umbraco-CMS,marcemarc/Umbraco-CMS,tcmorris/Umbraco-CMS,Tronhus/Umbraco-CMS,VDBBjorn/Umbraco-CMS,countrywide/Umbraco-CMS,Scott-Herbert/Umbraco-... | src/Umbraco.Web/Mvc/FilteredControllerFactoriesResolver.cs | src/Umbraco.Web/Mvc/FilteredControllerFactoriesResolver.cs | using System;
using System.Collections.Generic;
using Umbraco.Core.ObjectResolution;
namespace Umbraco.Web.Mvc
{
/// <summary>
/// A resolver for storing IFilteredControllerFactories
/// </summary>
public sealed class FilteredControllerFactoriesResolver : ManyObjectsResolverBase<FilteredControllerFactorie... | using System;
using System.Collections.Generic;
using Umbraco.Core.ObjectResolution;
namespace Umbraco.Web.Mvc
{
/// <summary>
/// A resolver for storing IFilteredControllerFactories
/// </summary>
internal sealed class FilteredControllerFactoriesResolver : ManyObjectsResolverBase<FilteredControllerFactor... | mit | C# |
9db37d6beefb9ed7e69b6f9bbc68cf85b8633181 | Include test file | skonves/Konves.KScript | tests/Konves.KScript.UnitTests/RelationalExpressionTestFixture.cs | tests/Konves.KScript.UnitTests/RelationalExpressionTestFixture.cs | using Konves.KScript.Expressions;
using Konves.KScript.Parsing;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
namespace Konves.KScript.UnitTests
{
[TestClass]
public class RelationalExpressionTestFixture
{
[TestCategory(nameof(RelationalExpression))]
[TestM... | apache-2.0 | C# | |
872167969b5c41bf62714dbbf8cbe3b4d725712c | Add a unit test for the LedgerQueriesExtensions class | openchain/openchain | test/Openchain.Ledger.Tests/LedgerQueriesExtensionsTests.cs | test/Openchain.Ledger.Tests/LedgerQueriesExtensionsTests.cs | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# | |
1ec37812d137b6b776e313d9d9db5be71d9d8a69 | Create NumberFormattingTests.cs | keith-hall/Extensions,keith-hall/Extensions | tests/NumberFormattingTests.cs | tests/NumberFormattingTests.cs | using System;
using HallLibrary.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Tests
{
[TestClass]
public class NumberTests
{
[TestMethod]
public void TestNumberFormatting()
{
var numbers = new [] {
"1234", "1,234",
"123", "123",
"1234.56", "1,234.56",
"12345678.9... | apache-2.0 | C# | |
ce92bc94cb571e7021351f3d55959424bf5084aa | Create MessageBoxScrollable.cs | HartmanDev/WimP | Demo/MessageBoxScrollable.cs | Demo/MessageBoxScrollable.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PathFinder
{
public partial class MessageBoxScrollable : Form
{
public MessageB... | mit | C# | |
c661ae86a67e770ff5fe572558e2f3878e414869 | Create Keywords.cs | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/Keywords.cs | Kattis-Solutions/Keywords.cs | using System;
using System.Collections.Generic;
namespace Keywords
{
class Program
{
static void Main(string[] args)
{
Dictionary<string,int> d = new Dictionary<string,int>();
int n = int.Parse(Console.ReadLine());
string stemp;
for (int i = 0; i ... | mit | C# | |
de2bd3b470e6cb258bc91af9e90797b9043de70b | Add IdentityServerUser | IdentityServer/IdentityServer4,MienDev/IdentityServer4,IdentityServer/IdentityServer4,MienDev/IdentityServer4,IdentityServer/IdentityServer4,chrisowhite/IdentityServer4,IdentityServer/IdentityServer4,MienDev/IdentityServer4,MienDev/IdentityServer4,chrisowhite/IdentityServer4,chrisowhite/IdentityServer4 | src/IdentityServer4/IdentityServerUser.cs | src/IdentityServer4/IdentityServerUser.cs | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityModel;
using IdentityServer4.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Securi... | apache-2.0 | C# | |
4e9795d65597152f2cf28c2f4cd65669b063cb90 | Fix crashing when OK button is pressed and no subtitle file is selected | handrake/SubtitleRenamer | SubtitleRenamer/ZipFilesForm.cs | SubtitleRenamer/ZipFilesForm.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SubtitleRenamer
{
public partial class ZipFilesForm : Form
{
private List<stri... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SubtitleRenamer
{
public partial class ZipFilesForm : Form
{
private List<stri... | mit | C# |
5ac8b4ef9f62366bcf9a06f802a9c82340c2b3f4 | Fix #4 | uheerme/core,uheerme/core,uheerme/core | Samesound.Core/Music.cs | Samesound.Core/Music.cs | using Samesound.Core.Interfaces;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Samesound.Core
{
public class Music : IDateTrackable
{... | mit | C# | |
fea899f11434b779ec0aefe1a7781d490c70e3c4 | Remove OnTeardown from ConfigurableServiceLocatorTestBase | thomaslevesque/FakeItEasy,adamralph/FakeItEasy,FakeItEasy/FakeItEasy,adamralph/FakeItEasy,FakeItEasy/FakeItEasy,thomaslevesque/FakeItEasy,blairconrad/FakeItEasy,blairconrad/FakeItEasy | tests/FakeItEasy.Tests/ConfigurableServiceLocatorTestBase.cs | tests/FakeItEasy.Tests/ConfigurableServiceLocatorTestBase.cs | namespace FakeItEasy.Tests
{
using NUnit.Framework;
public abstract class ConfigurableServiceLocatorTestBase
{
private ServiceLocator replacedServiceLocator;
[SetUp]
public void Setup()
{
this.replacedServiceLocator = ServiceLocator.Current;
... | namespace FakeItEasy.Tests
{
using NUnit.Framework;
public abstract class ConfigurableServiceLocatorTestBase
{
private ServiceLocator replacedServiceLocator;
[SetUp]
public void Setup()
{
this.replacedServiceLocator = ServiceLocator.Current;
... | mit | C# |
8768bcfa8ee5e01d2ceefa2711330c9e6aab0de2 | Add exception for deserialization process | sitkoru/ModelSelector | Exceptions/PropertyNotFoundException.cs | Exceptions/PropertyNotFoundException.cs | using System;
namespace Sitko.ModelSelector.Exceptions
{
public class PropertyNotFoundException : Exception
{
public PropertyNotFoundException(string message) : base(message)
{
}
}
} | mit | C# | |
38f9a98418f41a3f9569b18749b88288867ec8c2 | Add files via upload | joshyy/Email | Message.cs | Message.cs | /*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In j... | unlicense | C# | |
9ab41aef1fcde8f5faa2c3f8461f54e2cdcfc2c9 | Create Problem71.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem71.cs | Problems/Problem71.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler.Problems
{
class Problem71
{
int upper = 1000000;
public void Run()
{
Fraction f_closest = new Fraction(2, 5);
Fraction f_3_7 = new Fraction(3, 7);
... | mit | C# | |
9f1430ee7483a9a20a5a309ebe3dccbfbf3d917a | Add Script - InteractWithHotSpots | F0rTh3H0rd3/LevelingQuestsTNB,TheNoobCompany/LevelingQuestsTNB | Profiles/Quester/Scripts/InteractWithHotSpots.cs | Profiles/Quester/Scripts/InteractWithHotSpots.cs | /* Check if there is HotSpots in the objective */
if (questObjective.Hotspots.Count <= 0)
{
/* Objective CSharpScript with script InteractWithHotSpots requires valid "Hotspots" */
Logging.Write("InteractWithHotSpots requires valid 'HotSpots'.");
questObjective.IsObjectiveCompleted = true;
return false;
}
... | mit | C# | |
422975689d3ff9f509cb2e9987e5a0bac9a459dc | Add algorithm | ChristopherJdL/wheretomeet-server | WhereToMeet/Algorithm/PerfectPlaceAlgorithm.cs | WhereToMeet/Algorithm/PerfectPlaceAlgorithm.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Algorithm
{
class PerfectPlaceAlgorithm
{
PerfectPlaceAlgorithm()
{
}
Place FindPerfectPlace(IPlaceProvider placeProvider, String[] placeType,
... | mit | C# | |
c20ff979035c1396fb6237982ffde1037afbb41c | add a helper class for notifications. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/Helpers/NotificationHelpers.cs | WalletWasabi.Gui/Helpers/NotificationHelpers.cs | using Avalonia.Controls.Notifications;
using Splat;
using System;
using System.Collections.Generic;
using System.Text;
namespace WalletWasabi.Gui.Helpers
{
public static class NotificationHelpers
{
public static INotificationManager GetNotificationManager()
{
return Locator.Current.GetService<INotificationMan... | mit | C# | |
43bedff79795c92b3b4786b1429192e3f66c12c6 | Add GameScreenshotCacheTests | RonnChyran/snowflake,SnowflakePowered/snowflake,faint32/snowflake-1,faint32/snowflake-1,SnowflakePowered/snowflake,RonnChyran/snowflake,RonnChyran/snowflake,faint32/snowflake-1,SnowflakePowered/snowflake | Snowflake.Tests/Game/GameScreenshotCacheTests.cs | Snowflake.Tests/Game/GameScreenshotCacheTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Snowflake.Game;
using System.Drawing;
using System.IO;
using Xunit;
using Snowflake.Tests;
namespace Snowflake.Game.Tests
{
public class GameScreenshotCacheTests
{
[Fact]
pu... | mpl-2.0 | C# | |
75309e99322c85f971a12107bc7fbfd8eb26ccdc | add the 5-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/05-strings_and_characters/main.cs | books/techno/.net/c#_6.0_in_a_nutshell_6_ed_j_albahari/ch_2-c#_language_basics/05-strings_and_characters/main.cs | using System;
class Test
{
static void Example1_StringsAndCharacter()
{
char c = 'A';
Console.WriteLine(c);
char newLine = '\n';
char backSlash = '\\';
Console.WriteLine(newLine);
Console.WriteLine(backSlash);
char copyrightSymbol = '\u00A9';
ch... | mit | C# | |
030d7e4ca225e06d4bc4408b6848a6524901fefb | Add test for MySQL bug 96947. (#1298) | PomeloFoundation/Pomelo.EntityFrameworkCore.MySql,PomeloFoundation/Pomelo.EntityFrameworkCore.MySql | test/EFCore.MySql.Tests/Bugs/MySqlBug96947.cs | test/EFCore.MySql.Tests/Bugs/MySqlBug96947.cs | using System;
using Microsoft.EntityFrameworkCore;
using Xunit;
using Xunit.Abstractions;
namespace Pomelo.EntityFrameworkCore.MySql.Bugs
{
public class MySqlBug96947 : RawSqlTestWithFixture<MySqlBug96947.MySqlBug96947Fixture>
{
public MySqlBug96947(MySqlBug96947Fixture fixture, ITestOutputHelper test... | mit | C# | |
d1defc92ab34ac8f6e713ee685a8991e89d87c71 | Add a very basic data adapter for building the grid cell views to show those SimpleItem objects. | wislon/xam-gridview-infinite-scroll | src/GridViewInfiniteScroll/GridViewInfiniteScroll/MyGridViewAdapter.cs | src/GridViewInfiniteScroll/GridViewInfiniteScroll/MyGridViewAdapter.cs | using Android.Content;
using Android.Views;
using Android.Widget;
namespace GridViewInfiniteScroll
{
public class MyGridViewAdapter : BaseAdapter<SimpleItem>
{
private readonly SimpleItemLoader _simpleItemLoader;
private readonly Context _context;
public MyGridViewAdapter(Context context, ... | mit | C# | |
d402415b1ae62aab0361a53056da9f0c27895ffd | Add test on enumerator. | AxeDotNet/AxePractice.CSharpViaTest | src/CSharpViaTest.Collections/10_SkippedEnumeratorPractice.cs | src/CSharpViaTest.Collections/10_SkippedEnumeratorPractice.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace CSharpViaTest.Collections
{
public class SkippedEnumeratorPractice
{
class SkippedEnumerable<T> : IEnumerable<T>
{
readonly ICollection<T> collection;
pu... | mit | C# | |
a77ad12cf95b2eef597eba94cdf1c390048e7107 | Create ShopifySmartCollectionRules.cs | shajumohamed/ShopifySharp,addsb/ShopifySharp,Yitzchok/ShopifySharp,clement911/ShopifySharp,mooglegiant/ShopifySharp,nozzlegear/ShopifySharp | ShopifySharp/Entities/ShopifySmartCollectionRules.cs | ShopifySharp/Entities/ShopifySmartCollectionRules.cs | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShopifySharp
{
/// <summary>
/// An entity representing a Shopify Smart Collection Rule.
/// </summary>
public class ShopifySmartCollectionRules
{
... | mit | C# | |
4f49e541fb6bcebb21707c15b1b49aae7e1e6b1a | Revert "Upgrade_20211109_RemoveSerializable" | signumsoftware/framework,signumsoftware/framework | Signum.Upgrade/Upgrades/Upgrade_20211109_RemoveSerializable.cs | Signum.Upgrade/Upgrades/Upgrade_20211109_RemoveSerializable.cs | namespace Signum.Upgrade.Upgrades;
class Upgrade_20211109_RemoveSerializable : CodeUpgradeBase
{
public override string Description => "Remove Unnecessary [Serializable] attribute from entities";
public override void Execute(UpgradeContext uctx)
{
uctx.ForeachCodeFile(@"*.cs", uctx.EntitiesDirecto... | mit | C# | |
70f3c7888155ef2d354aaf21d379573fcf66211f | Remove tests which are not actual tests but rather stress tests/means to type files automatically | AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthikna... | src/R/Editor/Application.Test/Typing/TypeFileTest.cs | src/R/Editor/Application.Test/Typing/TypeFileTest.cs | using System.Diagnostics.CodeAnalysis;
using FluentAssertions;
using Microsoft.R.Editor.Application.Test.TestShell;
using Microsoft.R.Editor.ContentType;
using Microsoft.R.Support.RD.ContentTypes;
using Microsoft.UnitTests.Core.XUnit;
using Xunit;
namespace Microsoft.R.Editor.Application.Test.Typing {
[ExcludeFro... | using System.Diagnostics.CodeAnalysis;
using System.IO;
using FluentAssertions;
using Microsoft.R.Editor.Application.Test.TestShell;
using Microsoft.R.Editor.ContentType;
using Microsoft.R.Support.RD.ContentTypes;
using Microsoft.UnitTests.Core.XUnit;
using Xunit;
namespace Microsoft.R.Editor.Application.Test.Typing ... | mit | C# |
c2746ea2cef3f1580752a54709956be737b5baae | Solve Simple Product 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/1004/1004.cs | solutions/uri/1004/1004.cs | using System;
using System.Collections.Generic;
class Solution {
static void Main() {
int a, b;
string val;
val = Console.ReadLine();
a = Convert.ToInt32(val);
val = Console.ReadLine();
b = Convert.ToInt32(val);
Console.Write("PROD = {0}{1}", a * b, Environ... | mit | C# | |
feac301ef266beac0b2dcb884ad2b6efdc51ca8d | Create QueryableExtensions.cs | keith-hall/Extensions,keith-hall/Extensions | src/QueryableExtensions.cs | src/QueryableExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace HallLibrary.Extensions
{
/// <summary>
/// Contains static methods for working with queryables.
/// </summary>
public static class QueryableExtensions
{
/// <summary>
/// Returns a single value from the specified <paramref name="quer... | apache-2.0 | C# | |
daf28e17ac45ee36164465ab605d7981bee51b1c | Add common constants | syedhassaanahmed/log-storage-service,syedhassaanahmed/log-storage-service,syedhassaanahmed/log-storage-service | ValidationPipeline.LogStorage/CommonConstants.cs | ValidationPipeline.LogStorage/CommonConstants.cs | namespace ValidationPipeline.LogStorage
{
public static class CommonConstants
{
public const string ZipContentType = "application/zip";
public const string StaticFilesPath = "/blob";
}
}
| mit | C# | |
25e3e68a5bec6a1b1655ed7cbf6fe29b9409baf7 | Create ClientContext.cs | hprose/hprose-dotnet | src/Hprose.RPC/ClientContext.cs | src/Hprose.RPC/ClientContext.cs | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | mit | C# | |
067dab149a480784daa1e508cc32834ffe337343 | Add models for user profile. | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | src/CompetitionPlatform/Models/UserProfile/UserProfileModel.cs | src/CompetitionPlatform/Models/UserProfile/UserProfileModel.cs | using CompetitionPlatform.Data.AzureRepositories.Project;
using CompetitionPlatform.Models.ProjectViewModels;
using System;
using System.Collections.Generic;
namespace CompetitionPlatform.Models.UserProfile
{
public class UserProfile
{
public string Id { get; set; }
public string UserId { get;... | mit | C# | |
492a91499824732c2931aeab083cd78cc8fa06a9 | fix AsyncWaitHighlighting | BigBabay/AsyncConverter,BigBabay/AsyncConverter | AsyncConverter/Highlightings/AsyncWaitHighlighting.cs | AsyncConverter/Highlightings/AsyncWaitHighlighting.cs | using AsyncConverter.Highlightings;
using AsyncConverter.Settings;
using JetBrains.Annotations;
using JetBrains.DocumentModel;
using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Psi.CSharp;
using JetBrains.ReSharper.Psi.CSharp.Tree;
using JetBrains.ReSharper.Psi.Tree;
[assembly: RegisterConfi... | using AsyncConverter.Highlightings;
using AsyncConverter.Settings;
using JetBrains.DocumentModel;
using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Psi.CSharp;
using JetBrains.ReSharper.Psi.CSharp.Tree;
using JetBrains.ReSharper.Psi.Tree;
[assembly: RegisterConfigurableSeverity(AsyncWaitHigh... | mit | C# |
1f1e95f5351decadeae653c048974b565cde67b7 | Add integration test for entity deletion. | space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content | Content.IntegrationTests/Tests/DeleteInventoryTest.cs | Content.IntegrationTests/Tests/DeleteInventoryTest.cs | using System.Threading.Tasks;
using Content.Server.GameObjects.Components.GUI;
using Content.Server.GameObjects.Components.Items.Clothing;
using NUnit.Framework;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Interfaces.Map;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using static Content.Shared... | mit | C# | |
a4f3b0c6404074d23442a1d72898a3347478c789 | Introduce generic base movement command handler | HelloKitty/Booma.Proxy | src/Booma.Proxy.Client.Unity.Ship/Handlers/Command/Movement/BaseDefaultPositionChangedEventHandler.cs | src/Booma.Proxy.Client.Unity.Ship/Handlers/Command/Movement/BaseDefaultPositionChangedEventHandler.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Logging;
using GladNet;
using SceneJect.Common;
using UnityEngine;
namespace Booma.Proxy
{
/// <summary>
/// Base <see cref="BaseSubCommand60"/> handler for default movement generator
//... | agpl-3.0 | C# | |
a4d5de067b40d8497032000db94cd1f97813783d | Add screen util | AikenParker/Expanse,LemonLube/Expanse | StandaloneUtility/ScreenUtil.cs | StandaloneUtility/ScreenUtil.cs | using System;
using UnityEngine;
namespace Expanse
{
/// <summary>
/// Collection of Screen related utility functionality.
/// </summary>
public static class ScreenUtil
{
/// <summary>
/// Returns the half extents size of the screen in world coordinates.
/// </summary>
... | mit | C# | |
ecaf9c332abf189efb3f1d62fe72a6cc1ae74705 | Move reflection initialization eager cctor order above McgModuleManager as it turns out to have a dependency on it in debug mode | krytarowski/corert,krytarowski/corert,mjp41/corert,mjp41/corert,yizhang82/corert,sandreenko/corert,shrah/corert,krytarowski/corert,manu-silicon/corert,schellap/corert,sandreenko/corert,kyulee1/corert,shrah/corert,gregkalapos/corert,botaberg/corert,botaberg/corert,tijoytom/corert,yizhang82/corert,sandreenko/corert,shrah... | src/System.Private.CoreLib/src/System/Runtime/CompilerServices/EagerOrderedStaticConstructorAttribute.cs | src/System.Private.CoreLib/src/System/Runtime/CompilerServices/EagerOrderedStaticConstructorAttribute.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.Runtime.CompilerServices
{
// When applied to a type this custom attribute will cause it's cctor to be executed during startup
// rather bein... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.Runtime.CompilerServices
{
// When applied to a type this custom attribute will cause it's cctor to be executed during startup
// rather bein... | mit | C# |
a984cefd28f58787c69a6780f9ccaedcd762cc55 | Add verify 2FA webhook signature C# snippet | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets | two-factor-authentication/verify-webhook/verify-webhook.5.x.cs | two-factor-authentication/verify-webhook/verify-webhook.5.x.cs | using System.Security.Cryptography;
namespace Test
{
public class AuthyWebhook
{
private string Verify(System.Web.HttpRequestBase Request, string ApiKey)
{
// Read the nonce from the request
var nonce = Request.Headers["x-authy-signature-nonce"];
var method =... | mit | C# | |
4d1704a33c06340c68c26e1967f95465048483dc | Add IParser | StevenLiekens/Txt,StevenLiekens/TextFx | src/Txt.Core/IParser.cs | src/Txt.Core/IParser.cs | using JetBrains.Annotations;
namespace Txt.Core
{
public interface IParser<in TElement, out TResult>
where TElement : Element
{
[NotNull]
TResult Parse([NotNull] TElement value);
}
}
| mit | C# | |
2550189c5dfa2bb6e145f944599c17ae55ae461e | Add policy for local only requests | Glimpse/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Pro... | src/Glimpse.Server.Web/Framework/AllowRemoteSecureRequestPolicy.cs | src/Glimpse.Server.Web/Framework/AllowRemoteSecureRequestPolicy.cs | using System;
using Glimpse.Server.Options;
using Glimpse.Web;
namespace Glimpse.Server.Framework
{
public class AllowRemoteSecureRequestPolicy : ISecureRequestPolicy
{
private readonly IAllowRemoteProvider _allowRemoteProvider;
public AllowRemoteSecureRequestPolicy(IAllowRemoteProvider allow... | mit | C# | |
e567a0315e69956c43ad29db7588a9184645f05a | Create creditReview.cs | alchemz/ARL_Training | CSharpDotNet_Programming/Async_Parallel_Programming/creditReview.cs | CSharpDotNet_Programming/Async_Parallel_Programming/creditReview.cs | //sequential credit review
static void UpdatedPredictionsSequential( AccountsRepository accounts)
{
foreach(Account account in accounts.AllAccounts)
{
Trend trend= SampleUtilities.Fit(account.Balance);
double prediction=trend.Predict(account.Balance.Length+NumberOfMonths);
account.SeqPrediction=prediction;
a... | mit | C# | |
fbf654e6e0df2ccfb8dad6c626f5c0dc31a5af75 | Fix migration # | alecgorge/RelistenApi,RelistenNet/RelistenApi,alecgorge/RelistenApi,RelistenNet/RelistenApi,RelistenNet/RelistenApi,RelistenNet/RelistenApi | RelistenApi/Migrations/05_AddSourceTrackPlaysIndex.cs | RelistenApi/Migrations/05_AddSourceTrackPlaysIndex.cs | using SimpleMigrations;
namespace Migrations
{
[Migration(5, "Add source track plays index")]
public class AddSourceTrackPlaysIndex : Migration
{
protected override void Up()
{
Execute(@"
CREATE INDEX IF NOT EXISTS idx_source_track_plays_id_btree ON source_track_... | using SimpleMigrations;
namespace Migrations
{
[Migration(4, "Add source track plays index")]
public class AddSourceTrackPlaysIndex : Migration
{
protected override void Up()
{
Execute(@"CREATE INDEX IF NOT EXISTS idx_source_track_plays_id_btree ON source_track_plays(id);");
... | mit | C# |
59b9f68bc8ab12298c1da6c2c36387d6998f6f10 | add providerId to UserActivationRequest | SnapMD/connectedcare-sdk,dhawalharsora/connectedcare-sdk | SnapMD.VirtualCare.ApiModels/UserActivationRequest.cs | SnapMD.VirtualCare.ApiModels/UserActivationRequest.cs | namespace SnapMD.VirtualCare.ApiModels
{
/// <summary>
/// Request Model for user activation.
/// </summary>
public class UserActivationRequest
{
/// <summary>
/// Gets or sets the provider identifier.
/// </summary>
/// <value>
/// The provider identifier.
... | namespace SnapMD.VirtualCare.ApiModels
{
/// <summary>
/// Request Model for user activation.
/// </summary>
public class UserActivationRequest
{
/// <summary>
/// Gets or sets the email.
/// </summary>
/// <value>
/// The email.
/// </value>
... | apache-2.0 | C# |
4977c444314e49d8db056cf57a1d71b24cbeb6ec | Add ViewModel | chefsteph9/BibleApp | BibleApp/BibleApp/BibleAppViewModel.cs | BibleApp/BibleApp/BibleAppViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using BibleLibrary;
using System.Net.Http;
using System.Net.Http.Headers;
namespace BibleApp
{
class BibleAppViewModel : INotifyPropertyChanged
{
#region Mem... | mit | C# | |
6b4d41fc0b92dcedea85b664469cbe4b3148dd54 | Add view imports page | IliaAnastassov/OdeToFood,IliaAnastassov/OdeToFood | OdeToFood/VIews/_ViewImports.cshtml | OdeToFood/VIews/_ViewImports.cshtml | @using OdeToFood.Entities
@using OdeToFood.Controllers
@using OdeToFood.ViewModels | mit | C# | |
63c2e2a8ec16f37136f79f1b0eff511c27c4c588 | add Office model | Aleksandyr/HR-Agency-System,Aleksandyr/HR-Agency-System | HRAgencySystem/HRAgencySystem.Models/Office.cs | HRAgencySystem/HRAgencySystem.Models/Office.cs | namespace HRAgencySystem.Models
{
using System.ComponentModel.DataAnnotations;
public class Office
{
[Required]
public int Id { get; set; }
[Required]
public string Name { get; set; }
[Required]
public string Description { get; set; }
}
}
| mit | C# | |
33271873dd3d50a50c65ed9c7d1765b6d63bdb82 | Remove redirect. | zooba/roslyn,OmarTawfik/roslyn,jeffanders/roslyn,xoofx/roslyn,bartdesmet/roslyn,balajikris/roslyn,kelltrick/roslyn,tvand7093/roslyn,diryboy/roslyn,pdelvo/roslyn,panopticoncentral/roslyn,jcouv/roslyn,natidea/roslyn,reaction1989/roslyn,Giftednewt/roslyn,physhi/roslyn,dotnet/roslyn,genlu/roslyn,orthoxerox/roslyn,physhi/ro... | src/VisualStudio/Setup.Next/AssemblyRedirects.cs | src/VisualStudio/Setup.Next/AssemblyRedirects.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell;
using Roslyn.VisualStudio.Setup;
[assembly: ProvideRoslynBindingRedirection("Microsoft.Code... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell;
using Roslyn.VisualStudio.Setup;
[assembly: ProvideRoslynBindingRedirection("Microsoft.Code... | mit | C# |
e79dde65ff33edda4ccee52f48a9aab11413d20b | Add lost resources.designer | gdv1811/PdfCodeEditor | PdfCodeEditor/Properties/Resources.Designer.cs | PdfCodeEditor/Properties/Resources.Designer.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | mit | C# | |
1287726078cb92509b1c39aa4a387b6179badad2 | add emulator client | csutorasa/XOutput,csutorasa/XOutput,csutorasa/XOutput,csutorasa/XOutput | XOutput.Client/Emulation/EmulationClient.cs | XOutput.Client/Emulation/EmulationClient.cs | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using XOutput.Api.Emulation;
using XOutput.Api.Help;
namespace XOutput.Client.Emulation
{
public class EmulationClient : HttpJsonClient
{
public EmulationClient(IHttpClientProvider clientProvider) : bas... | mit | C# | |
5ee9b4222c62b54c9556e2b400042d18e81b4cfa | add interface | ceee/PocketSharp | PocketSharp/IPocketClient.cs | PocketSharp/IPocketClient.cs | using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PocketSharp
{
class IPocketClient
{
/// <summary>
/// base URL for the API
/// </summary>
Uri BaseUrl { get; set; }
/// <summary>
/// Accessor for the Pocket API key
/// se... | mit | C# | |
478f5a87afc4666a18d7cb84e304e6004d070cc9 | 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# | |
f01c1b27d8e9b5e39bed78c0ecb3bc43d4403c47 | Set max and min ( not used yet ) | bradphelan/SketchSolve.NET,bradphelan/SketchSolve.NET,bradphelan/SketchSolve.NET | SketchSolveC#/ObjectMixins.cs | SketchSolveC#/ObjectMixins.cs | using System;
namespace SketchSolveC
{
public class ObjectMixins
{
public ObjectMixins ()
{
}
}
}
| bsd-3-clause | C# | |
59085485ea84da9542821134b54d335195be0149 | Add support for CGLContext | PlayScriptRedux/monomac,dlech/monomac | src/OpenGL/OpenTK/Graphics/OpenGL/CGLContext.cs | src/OpenGL/OpenTK/Graphics/OpenGL/CGLContext.cs | //
// CGLContext.cs: Implements the managed CGLContext
//
// Authors: Mono Team
//
// Copyright 2009 Novell, Inc
//
// 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 restrictio... | apache-2.0 | C# | |
4d684dc090be8ae51b05649b578a5ea2c4c92ac1 | Create ServiceCollectionExtensions.cs | tiksn/TIKSN-Framework | TIKSN.Framework.Android/DependencyInjection/ServiceCollectionExtensions.cs | TIKSN.Framework.Android/DependencyInjection/ServiceCollectionExtensions.cs | using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using TIKSN.FileSystem;
namespace TIKSN.DependencyInjection
{
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddFrameworkPlatform(this IServiceCollection servi... | mit | C# | |
77bf17c1a5221f52f8306247a8ee597682ad9d36 | Create _Layout.cshtml | CarmelSoftware/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4,kelong/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4 | Views/Shared/_Layout.cshtml | Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" />
@Styles.Render("~/Content/css")
@Scripts.Render("~/bun... | mit | C# | |
51e5204a6791e1e00adb1ccdb55593955ddf1292 | Add forgotten file | TomDataworks/opensim,TomDataworks/opensim,TomDataworks/opensim,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,RavenB/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,T... | OpenSim/Framework/EntityTransferContext.cs | OpenSim/Framework/EntityTransferContext.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# | |
e7773ed8438fd9bf25d9a2f0e10b5881e25aa1da | Create Helm.cs | TeamLockheed/LockheedTheGame | Lockheed_Inventory/Slots/Helm.cs | Lockheed_Inventory/Slots/Helm.cs | namespace Lockheed_Inventory
{
using System;
using System.Collections.Generic;
using Slots.Interfaces;
public class Helm : Slot, IArmor
{
private List<Item> armorList;
public Helm() :
base()
{
}
public override void Equip(Item item)
... | mit | C# | |
0127cce22903326274c4e40ea6ccc0220c30938d | add detect overrided prefab object | syrntms/HierarchyIconExtension | Editor/HierarchyIconExtension/Feature/OverridePrefabIconExtension.cs | Editor/HierarchyIconExtension/Feature/OverridePrefabIconExtension.cs | using UnityEngine;
using UnityEngine.UI;
using UnityEditor;
using System;
using System.Linq;
[InitializeOnLoad]
public class OverridePrefabIconExtension : IHierarchyIconExtensionFeature {
private static Texture2D iconTexture;
static OverridePrefabIconExtension()
{
HierarchyIconExtension.AddExtension(new Overrid... | mit | C# | |
ff5faa5a28f02da24240e53053b48d7febff32ed | Add tests for multiple calls | northspb/RawRabbit,pardahlman/RawRabbit | src/RawRabbit.IntegrationTests/SimpleUse/MultipleRequestsTests.cs | src/RawRabbit.IntegrationTests/SimpleUse/MultipleRequestsTests.cs | using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using RawRabbit.Client;
using RawRabbit.IntegrationTests.TestMessages;
using Xunit;
namespace RawRabbit.IntegrationTests.SimpleUse
{
public class MultipleRequestsTests
{
[Fact]
publ... | mit | C# | |
2c9711a88b95e1bc1fc3aa0d49da5ac677366b1a | Create /Models/DatabaseModels/Book Class. | Programazing/Open-School-Library,Programazing/Open-School-Library | src/Open-School-Library/Models/DatabaseModels/Book.cs | src/Open-School-Library/Models/DatabaseModels/Book.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Open_School_Library.Models.DatabaseModels
{
public class Book
{
public int BookID { get; set; }
public string Title { get; set; }
public string SubTitle { get; set; }
publ... | mit | C# | |
3ab07f5ef33a687b75753f83a270a8a8dd66b679 | Add display template for Soldier | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Views/Shared/DisplayTemplates/Soldier.cshtml | Battery-Commander.Web/Views/Shared/DisplayTemplates/Soldier.cshtml | @model Soldier
@{
var display = $"{Model.Rank.ShortName()} {Model.LastName}, {Model.FirstName}";
}
<div>@display</div> | mit | C# | |
8fd43238f93a7507e1565b97bfb22c3c337e29e8 | Create SystemProcessServices.cs | siuccwd/IOER,siuccwd/IOER,siuccwd/IOER | Services/Isle.BizServices/SystemProcessServices.cs | Services/Isle.BizServices/SystemProcessServices.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity = LRWarehouse.Business.SystemProcess;
using LRWarehouse.DAL;
namespace Isle.BizServices
{
public class SystemProcessServices
{
SystemProcessManager systemProcessManager;
public SystemProcessServ... | apache-2.0 | C# | |
bd210af413dc13da3240c9b9c6e94a5b8776d0b9 | Remove DocValues numeric fielddata format | elastic/elasticsearch-net,TheFireCookie/elasticsearch-net,CSGOpenSource/elasticsearch-net,TheFireCookie/elasticsearch-net,adam-mccoy/elasticsearch-net,adam-mccoy/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/elasticsearch-net,TheFireCookie/elasticsearch-net,elastic/elasticsearch-net,CSGOpenSource/elastic... | src/Nest/Modules/Indices/Fielddata/Numeric/NumericFielddataFormat.cs | src/Nest/Modules/Indices/Fielddata/Numeric/NumericFielddataFormat.cs | using System.Runtime.Serialization;
namespace Nest
{
public enum NumericFielddataFormat
{
[EnumMember(Value = "array")]
Array,
[EnumMember(Value = "disabled")]
Disabled
}
}
| using System.Runtime.Serialization;
namespace Nest
{
public enum NumericFielddataFormat
{
[EnumMember(Value = "array")]
Array,
[EnumMember(Value = "doc_values")]
DocValues,
[EnumMember(Value = "disabled")]
Disabled
}
}
| apache-2.0 | C# |
27a5609bfe5435ce349d24f1bf0590a631964f1d | Add CommandExecutorTest.cs | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | samples/DotNetCoreSample/CommandExecutorTest.cs | samples/DotNetCoreSample/CommandExecutorTest.cs | // Copyright (c) Weihan Li. All rights reserved.
// Licensed under the MIT license.
using static WeihanLi.Common.Helpers.CommandExecutor;
namespace DotNetCoreSample;
internal class CommandExecutorTest
{
public static void MainTest()
{
var result = ExecuteAndCapture("hostname");
result.Ensure... | mit | C# | |
d71dc42c1d20b7256b98c85f85701105a51e047d | Create ForumContext | DimitarDKirov/Forum-Paulo-Coelho,DimitarDKirov/Forum-Paulo-Coelho,DimitarDKirov/Forum-Paulo-Coelho | Forum-Paulo-Coelho/DataLayer/ForumContext.cs | Forum-Paulo-Coelho/DataLayer/ForumContext.cs | namespace DataLayer
{
using ForumSystem.Models;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class ForumContext : DbContext
{
public ForumContext()
: base("ForumDb"... | mit | C# | |
091a671fa37dab287e854b7b561c0dbe885e3fe9 | Add posts service | Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife | PhotoLife/PhotoLife.Services/PostsService.cs | PhotoLife/PhotoLife.Services/PostsService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PhotoLife.Data.Contracts;
using PhotoLife.Models;
using PhotoLife.Services.Contracts;
namespace PhotoLife.Services
{
public class PostsService: IPostService
{
private readonly IRep... | mit | C# | |
da9c23f3478356b9183fecbe82d0d416c039a26d | Add beatmap availability tracker component for multiplayer | smoogipoo/osu,peppy/osu,ppy/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu | osu.Game/Online/Rooms/MultiplayerBeatmapTracker.cs | osu.Game/Online/Rooms/MultiplayerBeatmapTracker.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.Linq;
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
namespace osu.Game.Online.Rooms
{
public class MultiplayerBeatmapTracker : D... | mit | C# | |
234fdf8942dd61346ae1643a56326e92a52df1f4 | Disable warning about unused class. | sitofabi/duplicati,mnaiman/duplicati,mnaiman/duplicati,duplicati/duplicati,duplicati/duplicati,sitofabi/duplicati,sitofabi/duplicati,sitofabi/duplicati,duplicati/duplicati,sitofabi/duplicati,mnaiman/duplicati,duplicati/duplicati,mnaiman/duplicati,duplicati/duplicati,mnaiman/duplicati | Duplicati/Library/Backend/SharePoint/OneDriveForBusinessBackend.cs | Duplicati/Library/Backend/SharePoint/OneDriveForBusinessBackend.cs | #region Disclaimer / License
// Copyright (C) 2016, The Duplicati Team
// http://www.duplicati.com, info@duplicati.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// ve... | #region Disclaimer / License
// Copyright (C) 2016, The Duplicati Team
// http://www.duplicati.com, info@duplicati.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// ve... | lgpl-2.1 | C# |
572e95097a433df02f5ae531d7f0cb58c44c5d57 | add PublishedOnCreateOption | vinhch/BizwebSharp | src/BizwebSharp/Options/PublishedOnCreateOption.cs | src/BizwebSharp/Options/PublishedOnCreateOption.cs | using BizwebSharp.Infrastructure;
using Newtonsoft.Json;
namespace BizwebSharp.Options
{
public class PublishedOnCreateOption : Parameterizable
{
[JsonProperty("published")]
public bool? Published { get; set; }
}
}
| mit | C# | |
fd24147afa9c7c6e40f50ad0038e7eb1432d1b82 | Add initial test for checking that specifying a parameter in LSL state_entry() generates a syntax error. | ft-/arribasim-dev-tests,ft-/arribasim-dev-extras,TomDataworks/opensim,ft-/opensim-optimizations-wip,TomDataworks/opensim,ft-/opensim-optimizations-wip-extras,OpenSimian/opensimulator,justinccdev/opensim,QuillLittlefeather/opensim-1,OpenSimian/opensimulator,BogusCurry/arribasim-dev,ft-/opensim-optimizations-wip-extras,j... | OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs | OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# | |
42215109ffe5c759dbb5eb04282532fbd13da1f7 | add job project tests | mzrimsek/resume-site-api | Test.Integration/ControllerTests/JobProjectControllerTests/AddJobProjectShould.cs | Test.Integration/ControllerTests/JobProjectControllerTests/AddJobProjectShould.cs | using Microsoft.AspNetCore.TestHost;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Net;
using System.Net.Http;
using Test.Integration.TestHelpers;
using Web.Models.JobModels;
using Web.Models.JobProjectModels;
namespace Test.Integration.ControllerTests.JobProjectControllerTests
{
[TestClass]
... | mit | C# | |
66f106f6770f21eb5b6b6e4a607a6f724884e093 | Remove unused usings | mattwar/roslyn,dotnet/roslyn,swaroop-sridhar/roslyn,balajikris/roslyn,KevinRansom/roslyn,MattWindsor91/roslyn,mavasani/roslyn,orthoxerox/roslyn,mattscheffer/roslyn,dpoeschl/roslyn,heejaechang/roslyn,mmitche/roslyn,weltkante/roslyn,VSadov/roslyn,jeffanders/roslyn,jhendrixMSFT/roslyn,genlu/roslyn,MichalStrehovsky/roslyn,... | src/Workspaces/Core/Portable/Shared/Extensions/SymbolInfoExtensions.cs | src/Workspaces/Core/Portable/Shared/Extensions/SymbolInfoExtensions.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.Collections.Immutable;
using System.Linq;
namespace Microsoft.CodeAnalysis.Shared.Extensions
{
// Note - these methods are called in fairly... | // 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.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis;
using Roslyn.Utilities;
namespace Mic... | mit | C# |
a222c2348de465a15544f638e0ec2b7cf510b61e | Add Bindable. | cube-soft/Cube.Net,cube-soft/Cube.Net,cube-soft/Cube.Net | Applications/Rss.Reader/Xui/Bindable.cs | Applications/Rss.Reader/Xui/Bindable.cs | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www... | apache-2.0 | C# | |
cdce7818baedd704ed8ac4a858298bd68be83674 | add internship model | barld/portfolio,barld/portfolio,barld/portfolio | src/Portfolio/Models/Internships.cs | src/Portfolio/Models/Internships.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Portfolio.Models
{
public class Internships : MarkDownFactory<Internship>
{
public Internships(string webRootPath) : base(webRootPath, "Internships/") { }
public override Internship Creat... | mit | C# | |
602e6e4aaccd8878a3fb7f21a0f2ec8d65854eeb | Add OperationResult | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | src/Diploms.Dto/OperationResult.cs | src/Diploms.Dto/OperationResult.cs | using System;
using System.Collections.Generic;
namespace Diploms.Dto
{
public class OperationResult
{
public List<string> Errors { get; set; }
public bool HasError => Errors.Count!=0;
}
}
| mit | C# | |
3396858dd4bc3c80c5ad379c4c26de0438c004f9 | add azure ml bach scoring activity | pinwang81/azure-sdk-for-net,divyakgupta/azure-sdk-for-net,ailn/azure-sdk-for-net,AzureAutomationTeam/azure-sdk-for-net,gubookgu/azure-sdk-for-net,DeepakRajendranMsft/azure-sdk-for-net,divyakgupta/azure-sdk-for-net,yugangw-msft/azure-sdk-for-net,dominiqa/azure-sdk-for-net,Nilambari/azure-sdk-for-net,jackmagic313/azure-s... | src/DataFactoryManagement/Generated/Models/AzureMLBatchScoringActivity.cs | src/DataFactoryManagement/Generated/Models/AzureMLBatchScoringActivity.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... | mit | C# | |
9e5dc9ee3bb60176c9e2f40593434cf5a9496673 | Add IBase32Encoding interface | wiry-net/Base32,wiry-net/Base32,wiry-net/Wiry.Base32,wiry-net/Wiry.Base32 | src/Wiry.Base32/IBase32Encoding.cs | src/Wiry.Base32/IBase32Encoding.cs | // Copyright (c) Dmitry Razumikhin, 2016-2019.
// Licensed under the MIT License.
// See LICENSE in the project root for license information.
namespace Wiry.Base32
{
/// <summary>
/// Base32 encoding interface.
/// </summary>
public interface IBase32Encoding
{
/// <summary>
/// Enc... | mit | C# | |
f6d371e7ee5cc0c910a8b914b9421300c3ca0951 | Refactor code | khoale/WebServiceSample | src/WcfDataServiceToolkitAdvanced/Extensions/ReflectionExtensions.cs | src/WcfDataServiceToolkitAdvanced/Extensions/ReflectionExtensions.cs | namespace WcfDataServiceToolkitAdvanced.Extensions
{
using System;
public static class ReflectionExtensions
{
public static bool IsImplementGenericType(this Type type, Type genericType)
{
return
type.BaseType != null && type.BaseType.IsGenericType && type.BaseTy... | mit | C# | |
a9d934b6d008dce6cab215587cbf8f4fc0b33cbe | Update unit test | WaltChen/NDatabase,WaltChen/NDatabase | test/NDatabase/Odb/Test/ODBTest.cs | test/NDatabase/Odb/Test/ODBTest.cs | /*
NDatabase ODB : Native Object Database (odb.info@NDatabase.org)
Copyright (C) 2008 NDatabase Inc. http://www.NDatabase.org
"This file is part of the NDatabase ODB open source object database".
NDatabase ODB is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General ... | apache-2.0 | C# | |
2808e09ef58f6e8dc72b2c032abce74d9d2baff2 | Allow binding to state changes of OverlayContainers. | ZLima12/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,default0/osu-framework,EVAST9919/osu-framework,Nabile-Rahmani/osu-framework,paparony03/osu-framework,RedNesto/osu-framework,EVAST9919/osu-framework,naoey/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,RedNesto/osu-framework,naoey/osu-framework,Tom... | osu.Framework/Graphics/Containers/OverlayContainer.cs | osu.Framework/Graphics/Containers/OverlayContainer.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 System;
namespace osu.Framework.Graphics.Containers
{
/// <summary>
/// An element which starts hidden and can be toggled to visible.
... | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Graphics.Containers
{
/// <summary>
/// An element which starts hidden and can be toggled to visible.
/// </summary... | mit | C# |
8a121137bf6a25ba59dbff008a1db8be35593bc9 | Update StorageBackedResourceStore.cs | naoey/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,default0/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,Nabile-Rahmani/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,Tom94/osu-framework,ZLima12/osu-framework,peppy/osu-framework,EVAST991... | osu.Framework/IO/Stores/StorageBackedResourceStore.cs | osu.Framework/IO/Stores/StorageBackedResourceStore.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.IO;
using osu.Framework.Platform;
namespace osu.Framework.IO.Stores
{
/// <summary>
/// A resource store that uses an underlying... | // 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;
using System.IO;
using osu.Framework.Platform;
namespace osu.Framework.IO.Stores
{
/// <summary>
/// A resource store that us... | mit | C# |
eb0cf43e9a0b0d893636020f22eb2eefcbdde537 | Test deserializing sorted set subclass (#1852) | JamesNK/Newtonsoft.Json,bfriesen/Newtonsoft.Json,TylerBrinkley/Newtonsoft.Json,PKRoma/Newtonsoft.Json,jkorell/Newtonsoft.Json,ze-pequeno/Newtonsoft.Json,oxwanawxo/Newtonsoft.Json,brjohnstmsft/Newtonsoft.Json | Src/Newtonsoft.Json.Tests/Issues/Issue1796.cs | Src/Newtonsoft.Json.Tests/Issues/Issue1796.cs | #region License
// Copyright (c) 2007 James Newton-King
//
// 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,... | mit | C# | |
17458926998842e3745ee9ececd44a794bc988bd | Add SummonerId to CurrentGame/Participant (#327) | frederickrogan/RiotSharp,jono-90/RiotSharp,Oucema90/RiotSharp,oisindoherty/RiotSharp,Challengermode/RiotSharp,Shidesu/RiotSharp,florinciubotariu/RiotSharp,JanOuborny/RiotSharp,BenFradet/RiotSharp | RiotSharp/CurrentGameEndpoint/Participant.cs | RiotSharp/CurrentGameEndpoint/Participant.cs | using Newtonsoft.Json;
using System.Collections.Generic;
namespace RiotSharp.CurrentGameEndpoint
{
/// <summary>
/// Class representing a Participant in the API.
/// </summary>
public class Participant
{
/// <summary>
/// Flag indicating whether or not this participant is a bot
... | using Newtonsoft.Json;
using System.Collections.Generic;
namespace RiotSharp.CurrentGameEndpoint
{
/// <summary>
/// Class representing a Participant in the API.
/// </summary>
public class Participant
{
/// <summary>
/// Flag indicating whether or not this participant is a bot
... | mit | C# |
f4ce66710b909bb250c11cee4040b45b35e5b333 | Add InstanceRoleCredentialTests | carbon/Amazon | src/Amazon.Tests/InstanceRoleCredentialTests.cs | src/Amazon.Tests/InstanceRoleCredentialTests.cs | using System;
using Xunit;
namespace Amazon.Security.Tests
{
public class InstanceRoleCredentialTests
{
[Fact]
public void EmptyRoleNeedsRenewed()
{
var credential = new InstanceRoleCredential();
Assert.Equal(0, credential.RenewCount);
... | mit | C# | |
c7c52a8f36c000b77056a60d527bb7656a3f74a8 | Add tests for ChaCha20Poly1305 class | ektrah/nsec | tests/Algorithms/ChaCha20Poly1305Tests.cs | tests/Algorithms/ChaCha20Poly1305Tests.cs | using System;
using NSec.Cryptography;
using Xunit;
namespace NSec.Tests.Algorithms
{
public static class ChaCha20Poly1305Tests
{
public static readonly TheoryData<string[]> Rfc7539TestVectors = new TheoryData<string[]>
{
new string[] { "4c616469657320616e642047656e746c656d656e206f6... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.