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 |
|---|---|---|---|---|---|---|---|---|
2dcfc905d084bddf38405797ad37ee4c9f14b4ad | Add extensions to byte for getting a value from the first or last n bits of said byte. | Flamtap/Flamtap | Flamtap/Flamtap/Extensions/ByteExtensions.cs | Flamtap/Flamtap/Extensions/ByteExtensions.cs | using System;
namespace mcThings.Extensions
{
public static class ByteExtensions
{
public static byte ReadFirstNBits(this byte value, byte n)
{
if (n > 8)
throw new ArgumentException($"{nameof(n)} cannot be greater than 8.", nameof(n));
return (byte) (v... | mit | C# | |
93714210c2914a3dd419f199a40ab044994e8339 | Add a compilation unit type that represents a parse tree from a specific file. | jagrem/slang,jagrem/slang,jagrem/slang | slang/Compilation/CompilationUnit.cs | slang/Compilation/CompilationUnit.cs | using slang.AST;
namespace slang.Compilation
{
public class CompilationUnit
{
public CompilationUnit (string sourceFilename, ProgramNode root)
{
SourceFile = sourceFilename;
Root = root;
}
public string SourceFile { get; set; }
public ProgramNo... | mit | C# | |
1a6682df5813100ca04ff4095689787b94238556 | Add a component super class | wrightg42/enigma-simulator,It423/enigma-simulator | Enigma/EnigmaUtilities/Components/Component.cs | Enigma/EnigmaUtilities/Components/Component.cs | // Component.cs
// <copyright file="Component.cs"> This code is protected under the MIT License. </copyright>
using System.Collections.Generic;
namespace EnigmaUtilities.Components
{
/// <summary>
/// An abstract super class for each component in the enigma machine.
/// </summary>
public abstract clas... | mit | C# | |
9bef8f9f90dbb2d0e3a27c47f869ff879960d0c7 | Add skeleton of DBWriter class. | palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent,palette-software/PaletteInsightAgent | PalMon/Output/DBWriter.cs | PalMon/Output/DBWriter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PalMon.Output
{
// CSV Folder:
// serverlog-2016-01-28-15-06-00.csv
// serverlog-2016-01-28-15-06-30.csv
// threadinfo-2016-01-28-15-06-00.csv
class DBWriter
{
... | mit | C# | |
d75f0c1a4112022ef3eadbddc886d57c41441744 | Add FireworkSearchMutator. | sleshJdev/Fireworks.NET | src/FireworksNet/Mutation/FireworkSearchMutator.cs | src/FireworksNet/Mutation/FireworkSearchMutator.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using FireworksNet.Algorithm.Implementation;
using FireworksNet.Model;
using FireworksNet.Selection;
using FireworksNet.Algorithm;
using FireworksNet.Generation;
namespace FireworksNet.Mutation
{
/// <summary>
/// Imp... | mit | C# | |
a90e08589070c6213c001364305877d969528a24 | add locker | aumcode/piledemo | UserGraph/KeyedMonitor.cs | UserGraph/KeyedMonitor.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace NFX
{
//todo Move into NFX
/// <summary>
/// Provides Monitor services over named objects
/// </summary>
public sealed class KeyedMonitor<TKey>
{
public KeyedMonitor(IEqualityCompar... | apache-2.0 | C# | |
c8eee8d204c075174d99af7d629a042cb4ce7ee5 | Add structure for legacy hit explosions | ppy/osu,peppy/osu-new,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu,smoogipoo/osu,peppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu,ppy/osu | osu.Game.Rulesets.Mania/Skinning/LegacyHitExplosion.cs | osu.Game.Rulesets.Mania/Skinning/LegacyHitExplosion.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Rulesets.UI.Scrolling;
... | mit | C# | |
36a9d4a6767e291fd7e555997cde8b70697fca4e | Create task_1.3.5.3.cs | AndrewTurlanov/ANdrew | task_1.3.5.3.cs | task_1.3.5.3.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lesson1
{
class Program
{
static void Main(string[] args)
{
int column = 3;
int count = 52;
int row = count / column;
Console.WriteL... | apache-2.0 | C# | |
d170b1de4f6290867b7467f2eb501e86c3bb6bc8 | Remove unban timer on actual unban event | NaamloosDT/ModCore,NaamloosDT/ModCore | ModCore/Listeners/UnbanTimerRemove.cs | ModCore/Listeners/UnbanTimerRemove.cs | using DSharpPlus.EventArgs;
using ModCore.Entities;
using ModCore.Logic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModCore.Listeners
{
public class UnbanTimerRemove
{
[AsyncListener(EventTypes.GuildBanRemoved)]
... | mit | C# | |
55b62daaaa98d933fe499173a8b98a057c025c9b | Add files via upload | rcapel/FRED-API-Toolkit,rcapel/FRED-API-Toolkit,rcapel/FRED-API-Toolkit,rcapel/FRED-API-Toolkit | Core/FREDApi/UnitTest1/UnitTest1.cs | Core/FREDApi/UnitTest1/UnitTest1.cs | using FRED.Api.Categories.ApiFacades;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading.Tasks;
namespace UnitTest1
{
[TestClass]
public class UnitTest1
{
#region fields
private string apiKey = "";
#endregion
[TestMethod]
public void FetchCategory()
{
... | mit | C# | |
2cb8e6c6f250071f221dbc4b569cc0000b46c9b0 | Build tafla | thoddi/buildsite,thoddi/buildsite | BuildSite/BuildSite/Models/Build.cs | BuildSite/BuildSite/Models/Build.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BuildSite.Models
{
public class Build
{
int id;
string name;
string heroClass;
Item[] item = new Item[13];
int element;
DateTime date;
string version;
... | apache-2.0 | C# | |
2316c9141f9e684238181f72f4e15f6fc9aac8ea | Create Date and Time | neyogiry/Examples_Csharp | Date_Time.cs | Date_Time.cs | using System;
public class Date_Time{
static void Main(string[] args)
{
DateTime myValue = DateTime.Now;
Console.WriteLine(myValue.ToString());
Console.WriteLine(myValue.ToShortDateString());
Console.WriteLine(myValue.ToShortTimeString());
Console.WriteLine(myValue.ToLongDateString());
Console.WriteLine(... | mpl-2.0 | C# | |
ae116ef44ab73c621fee365b823d15c821a732bc | Move string extensions to own file | mrkno/TitleCleaner | MediaFileParser/MediaTypes/MediaFile/Junk/JunkStringExtensions.cs | MediaFileParser/MediaTypes/MediaFile/Junk/JunkStringExtensions.cs | namespace MediaFileParser.MediaTypes.MediaFile.Junk
{
/// <summary>
/// Junk String Extensions Class
/// </summary>
public static class JunkStringExtensions
{
/// <summary>
/// Determines whether the beginning of this string instance matches a specified JunkString.
/// </sum... | mit | C# | |
3353be21c2d025a640ee5d17fe57ca876124eca9 | Add IsLikeTest.cs | sdcb/sdmap | sdmap/test/sdmap.test/MacroImplTest/IsLikeTest.cs | sdmap/test/sdmap.test/MacroImplTest/IsLikeTest.cs | using sdmap.Compiler;
using sdmap.Functional;
using sdmap.Macros.Implements;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace sdmap.test.MacroImplTest
{
public class IsLikeTest
{
[Fact]
public void IsLike()
... | mit | C# | |
b7a0ba6b1d5c9d5f05e91b0754756e39c01768d8 | Create 'CSharp.cs'. | toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava,toturkmen/baklava | C/CSharp.cs | C/CSharp.cs | using System;
class CSharp
{
static void Main (string[] args)
{
for (SByte i = 0; i < 10; i++)
Console.WriteLine (
new string (' ', (10 - i)) + new string ('*', (i * 2 + 1))
);
for (SByte i = 10; -1 < i; i--)
Console.WriteLine (
... | mit | C# | |
3a4a96d6e5de8558ce2b16c74b6ac70923006dd7 | Add Retry Test(not done yet) | unosquare/swan | test/Unosquare.Swan.Test/ComponentsRetryTest.cs | test/Unosquare.Swan.Test/ComponentsRetryTest.cs | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Unosquare.Swan.Components;
using Unosquare.Swan.Networking;
namespace Unosquare.Swan.Test
{
[TestFixture]
public class ComponentsRetryTest
{
private static int count = 0;
... | mit | C# | |
f99c7f106e802b8a415f285d2247d048c0afa463 | add tests for LoggingInput | icarus-consulting/Yaapii.Atoms | tests/Yaapii.Atoms.Tests/IO/LoggingInputTest.cs | tests/Yaapii.Atoms.Tests/IO/LoggingInputTest.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Xunit;
using Yaapii.Atoms.Bytes;
using Yaapii.Atoms.IO;
namespace Yaapii.Atoms.IO.Tests
{
public sealed class LoggingInputTest
{
[Fact]
void ReadEmptyStream()
{
var input =
... | mit | C# | |
d9ce539e291229c09e9a013ca868e205751ee934 | Add InstanceActionTests | carbon/Amazon | src/Amazon.Tests/Metadata/InstanceActionTests.cs | src/Amazon.Tests/Metadata/InstanceActionTests.cs | using System;
using System.Text.Json;
using Xunit;
namespace Amazon.Metadata.Tests
{
public sealed class InstanceActionTests
{
// {"action": "stop", "time": "2017-09-18T08:22:00Z"}
[Fact]
public void Deserialize_Stop()
{
string text = @"{""action"": ... | mit | C# | |
386a7d6ee20db560fb4db99d3414b34e01bc23ac | Add a CryPkg encoder. | blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon | Compiler/Wax/CryPkgEncoder.cs | Compiler/Wax/CryPkgEncoder.cs | using System.Collections.Generic;
using System.Linq;
namespace Wax
{
public class CryPkgEncoder
{
private Dictionary<string, byte[]> files = new Dictionary<string, byte[]>();
public CryPkgEncoder() { }
public void AddFile(string filename, byte[] data)
{
... | mit | C# | |
8c8fccd528b845eabd2ce4df68d838318a4652c9 | Add home script (fixes #11) | arcaneex/hash,Rohansi/RohBot,Rohansi/RohBot,arcaneex/hash,arcaneex/hash,Rohansi/RohBot,Rohansi/RohBot,arcaneex/hash | Scripts/Home.cs | Scripts/Home.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SteamMobile;
using SteamMobile.Packets;
using SteamMobile.Rooms.Script;
public class Script : IScript
{
private ScriptHost _host;
private Queue<Session> _sessions;
private List<string> _greetings;
public void Initialize(S... | mit | C# | |
8bf34dc44e4c886bd949dc6141b2ebfe6e113ff4 | add Move.cs | icela/FriceEngine-CSharp | FriceEngine/Animation/Move.cs | FriceEngine/Animation/Move.cs | using System;
using FriceEngine.Object;
namespace FriceEngine.Animation
{
public abstract class MoveAnim : FAnim
{
public abstract DoublePair Delta { get; }
}
public class SimpleMove : MoveAnim
{
public SimpleMove(int y, int x)
{
Y = y;
X = x;
}
public int X { get; }
public int Y { get; }
... | agpl-3.0 | C# | |
1de674a192793646707e269927b08801ecfc0ca1 | Add StateExecutionType | grantcolley/dipstate | DevelopmentInProgress.DipState/StateExecutionType.cs | DevelopmentInProgress.DipState/StateExecutionType.cs | namespace DevelopmentInProgress.DipState
{
/// <summary>
/// The execution action of the state.
/// </summary>
public enum StateExecutionType
{
/// <summary>
/// Resets the state.
/// </summary>
Reset = 1,
/// <summary>
/// Initialise the state.
... | apache-2.0 | C# | |
1a0ebe2f041836a87ab386d4f3f8be60d97b2362 | disable test parallelization | jonsequitur/PocketLogger | Pocket.Logger/AssemblyInfo.cs | Pocket.Logger/AssemblyInfo.cs | using Xunit;
[assembly: CollectionBehavior(DisableTestParallelization = true)] | mit | C# | |
7d979e12649ef7ea4346a7c535ebd2ace3202f14 | Add finalised test scene | EVAST9919/osu,peppy/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,2yangk23/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,UselessToucan/osu,EVAST9919/osu,peppy/osu,johnneijzen/osu,peppy/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,johnneijzen/osu,2yangk23/osu,smoogipoo/osu,smoogipoo/osu | osu.Game.Tests/Visual/Gameplay/TestSceneNightcoreBeatContainer.cs | osu.Game.Tests/Visual/Gameplay/TestSceneNightcoreBeatContainer.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.Linq;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Game.Beatmaps.Timing;
using osu.Game.Ru... | mit | C# | |
ec5a34d841aa7bd8801e0ae999f5db9d123debe3 | Add unit test for autoscale command | tparviainen/oscilloscope | SCPI.Tests/AUTOSCALE_Tests.cs | SCPI.Tests/AUTOSCALE_Tests.cs | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace SCPI.Tests
{
public class AUTOSCALE_Tests
{
[Fact]
public void ValidCommand()
{
// Arrange
var cmd = new AUTOSCALE();
var expected = ":AUToscale";
... | mit | C# | |
f5cb1dd294473f545787eeb60c4b422deb842080 | Create testQuestion.cs | Si-143/Application-and-Web-Development | testQuestion.cs | testQuestion.cs | public class testQuestion
{
string Quest;
int points;
string instr;
Course cID;
test testID;
Questions questioned
public Questions QuestionID
{
get { return questionID; }
set { questionID = value; }
}
... | mit | C# | |
49f67d8280e8d1f71d73e84a66e9a9c9dfe2ecef | Add MessagesController.cs | ThessalonikiNet-MeetUp/NoiseDetectionBot,ThessalonikiNet-MeetUp/NoiseDetectionBot | ShhtBot/ShhtBot/Controllers/MessagesController.cs | ShhtBot/ShhtBot/Controllers/MessagesController.cs |
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Description;
using Microsoft.Bot.Connector;
using Newtonsoft.Json;
namespace ShhtBot
{
[BotAuthentication]
public class MessagesController : ApiCo... | mit | C# | |
1bfe574fd8ff104e64cdae01deee49c005c6688e | Add ProcessExtension.cs | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Extensions/ProcessExtension.cs | src/WeihanLi.Common/Extensions/ProcessExtension.cs | // Copyright (c) Weihan Li. All rights reserved.
// Licensed under the Apache license.
using System.ComponentModel;
using System.Diagnostics;
using System.Text;
using WeihanLi.Common;
using WeihanLi.Common.Helpers;
// ReSharper disable once CheckNamespace
namespace WeihanLi.Extensions;
public static class ProcessEx... | mit | C# | |
477ff749450b27eb73ca41038b0a29c15df46ed5 | Add Autonum and Identity retrieval Tests | SimpleStack/simplestack.orm,SimpleStack/simplestack.orm | test/SimpleStack.Orm.Tests/AutonumInsertTests.cs | test/SimpleStack.Orm.Tests/AutonumInsertTests.cs | using NUnit.Framework;
using SimpleStack.Orm.Attributes;
namespace SimpleStack.Orm.Tests
{
[TestFixture]
public partial class ExpressionTests
{
public class ModeWithAutoIncrement
{
/// <summary>Gets or sets the identifier.</summary>
/// <value>The identifier.</value>... | bsd-3-clause | C# | |
55eb98e0b1b0d4900203af4fe2828511ae69e263 | Add Random extensions methods | hossmi/qtfk | QTFK.Core/Extensions/Randoms/RandomExtensions.cs | QTFK.Core/Extensions/Randoms/RandomExtensions.cs | using System;
using System.Collections.Generic;
namespace QTFK.Extensions.Randoms
{
public static class RandomExtensions
{
public static bool isTrue(this Random random)
{
return random.NextDouble() >= 0.5;
}
public static bool isTrue(this Random random, double thre... | mit | C# | |
55942906093a3fef79cfbd77edab41a029ccb959 | Add new BoolToKeyboardConverter | thomasgalliker/ValueConverters.NET | ValueConverters.Forms/BoolToKeyboardConverter.cs | ValueConverters.Forms/BoolToKeyboardConverter.cs | using Xamarin.Forms;
namespace ValueConverters
{
public class BoolToKeyboardConverter : BoolToValueConverter<Keyboard>
{
}
}
| mit | C# | |
80127b1e5540b49544e2ce0aa78828bbc4458e11 | Add test DTO | KevinDockx/JsonPatch | src/Marvin.JsonPatch.Test/SimpleDTOWithNestedDTO.cs | src/Marvin.JsonPatch.Test/SimpleDTOWithNestedDTO.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Marvin.JsonPatch.Test
{
public class SimpleDTOWithNestedDTO
{
public int IntegerValue { get; set; }
public NestedDTO NestedDTO { get; set; }
public SimpleDTO ... | mit | C# | |
82aac8900a43946892d82cce89a5ac0155558dea | Add a linq extension to Distinct objects using a Func | alanmcgovern/gitymcgitface | libgitface/LinqExtensions.cs | libgitface/LinqExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace libgitface
{
public static class LinqExtensions
{
class DelegateComparer<T, TCompare> : IEqualityComparer<T>
{
Func<T, TCompare> Selector;
public DelegateComparer (Func<T, TCompare> selector) => Selector = selector;
public b... | mit | C# | |
5535f651ee5c40fd571594fca309cff3b5b8f951 | 升级版本到2.0 | tangxuehua/equeue,geffzhang/equeue,geffzhang/equeue,tangxuehua/equeue,Aaron-Liu/equeue,Aaron-Liu/equeue,tangxuehua/equeue | src/EQueue/Properties/AssemblyInfo.cs | src/EQueue/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | mit | C# |
558b0bd51b3417e72fc4043766672fcee5b521d5 | Add snippets for the DateInterval type | jskeet/nodatime,malcolmr/nodatime,nodatime/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,nodatime/nodatime,malcolmr/nodatime,jskeet/nodatime,malcolmr/nodatime,BenJenkinson/nodatime | src/NodaTime.Demo/DateIntervalDemo.cs | src/NodaTime.Demo/DateIntervalDemo.cs | // Copyright 2017 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using NUnit.Framework;
namespace NodaTime.Demo
{
public class DateIntervalDemo
{
[Test]
public void Construction()
{
... | apache-2.0 | C# | |
065094adf63922315d22eea3123e3cc291cc9f93 | Add test coverage | ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework | osu.Framework.Tests/Graphics/TripleBufferTest.cs | osu.Framework.Tests/Graphics/TripleBufferTest.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.
#nullable disable
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Extensions;
namespace ... | mit | C# | |
49aa5a78b14e4311bdfbd758c0c79ad9435e86ef | fix and licenses | eljeko/Untiled2D | Assets/PixelPerfectCamera.cs | Assets/PixelPerfectCamera.cs | /*
*
* Copyright 2014 Stefano Linguerri
*
* 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 ap... | apache-2.0 | C# | |
56cea9ff2173b38c95a953ced9ac9c3bf070d943 | Add Q264 | txchen/csharp-leet,txchen/csharp-leet | solutions/Q264.cs | solutions/Q264.cs | public class Solution {
public int NthUglyNumber(int n)
{
int[] queue = new int[n];
queue[0] = 1;
int t = 1;
int p2 = 0, p3 = 0, p5 = 0;
while (t < n)
{
queue[t] = Math.Min(Math.Min(queue[p2] * 2, queue[p3] * 3), queue[p5] * 5);
while (queu... | mit | C# | |
1b26fde405d51bbc8c96a4dd7cb12c1ff6de81ca | Create Preludes.cs | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/Preludes.cs | Kattis-Solutions/Preludes.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Preludes
{
class Program
{
struct fuck
{
public fuck(string n, string t)
{
this.note = n;this.tone = t;
}
... | mit | C# | |
f8ab953aaf85696a82c698a6a495c5b79bf0ddbe | Add Q207 | txchen/localleet | csharp/Q207_CourseSchedule.cs | csharp/Q207_CourseSchedule.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// There are a total of n courses you have to take, labeled from 0 to n - 1.
//
// Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is exp... | mit | C# | |
5b697dee0cd911ed0119dafa6d86584267950aaa | Add Basic Validator | jchristn/WatsonWebsocket | WatsonWebsocket/Validator.cs | WatsonWebsocket/Validator.cs | namespace WatsonWebsocket
{
/// <summary>
/// Util Validator Class.
/// </summary>
public static class Validator
{
/// <summary>
/// Validate host name or ip.
/// </summary>
/// <param name="host">Host (Url or IP).</param>
/// <returns>Boolean indi... | mit | C# | |
501d78958181a724fc45db5cda3703d7e7dc2094 | Add internal `IVertexBuffer` interface | ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework | osu.Framework/Graphics/Rendering/IVertexBuffer.cs | osu.Framework/Graphics/Rendering/IVertexBuffer.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.
#nullable disable
namespace osu.Framework.Graphics.Rendering
{
/// <summary>
/// Internal interface for all vertex buffers for use in <see cref="Renderer"/>.
... | mit | C# | |
ad4b8c0504a56c4f652a763c26e52ccbbb7f9f9b | Replace AuthConsts to separate file. | denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem | src/DiplomContentSystem/Authentication/AuthConsts.cs | src/DiplomContentSystem/Authentication/AuthConsts.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DiplomContentSystem.Authentication
{
public class AuthConsts
{
public const string ClaimUserType = "UserType";
public const string PolicyAdmin = "AdminPolicy";
public const string... | apache-2.0 | C# | |
93340b2e243f4d03c5c4f48f49152479abb3a2a9 | Add LocalizedText tests | convertersystems/opc-ua-client | UaClient.UnitTests/UnitTests/LocalizedTextTests.cs | UaClient.UnitTests/UnitTests/LocalizedTextTests.cs | using FluentAssertions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Workstation.ServiceModel.Ua;
using Xunit;
namespace Workstation.UaClient.UnitTests
{
public class LocalizedTextTests
{
public static IEnumerable<Func<Locali... | mit | C# | |
f6960a2723d5d1ddc8a64cbb71dc4872aef5aaa1 | load generator unit tests | AlonAmsalem/NLoad | src/NLoad.Tests/LoadGeneratorTests.cs | src/NLoad.Tests/LoadGeneratorTests.cs | using Moq;
using System.Threading;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace NLoad.Tests
{
[TestClass]
public class LoadGeneratorTests
{
[TestMethod]
public void ShouldSetResultWhenCompleted()
{
var loadTest = new Mock<ILoadTest>();
var ... | apache-2.0 | C# | |
423c89b9f31f3bbd62e4a909aceee7c92f09f3df | Create AnimationC.cs | Irraquated/CrossyRoadScripts | AnimationC.cs | AnimationC.cs | using UnityEngine;
using System.Collections;
public class AnimationC : MonoBehaviour {
Animator anim;
public GameObject player;
void Start () {
anim = gameObject.GetComponent<Animator> ();
}
void Update () {
Bounce bounceScript = player.GetComponent<Bounce> ();
if(bounceScript.justJump == true) {
a... | mit | C# | |
598d08b374d3f40696d2935b0ad8d355c4318f7c | Add skeleton chat implementation | tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server-tools,Cyberboss/tgstation-server,tgstation/tgstation-server | src/Tgstation.Server.Host/Components/Chat/Chat.cs | src/Tgstation.Server.Host/Components/Chat/Chat.cs | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Api.Models;
namespace Tgstation.Server.Host.Components.Chat
{
/// <inheritdoc />
sealed class Chat : IChat
{
/// <inheritdoc />
public bool IrcConnected => throw new System.NotImplementedException();
... | agpl-3.0 | C# | |
1502c14b6c60655e8750b4dccb6cc2c440e0249d | Add RepositoryProxy unit tests | rpaschoal/DynamicRepository | DynamicRepository.Tests/AddOn/RepositoryProxyTests.cs | DynamicRepository.Tests/AddOn/RepositoryProxyTests.cs | using DynamicRepository.AddOn;
using DynamicRepository.Filter;
using DynamicRepository.Tests.Support;
using FluentAssertions;
using Moq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace DynamicRepo... | mit | C# | |
052e2c19772f832dba74eeb7af93618096317ba9 | Remove duplicates from list | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | LeetCode/remote/remove_duplicates_from_sorted_list.cs | LeetCode/remote/remove_duplicates_from_sorted_list.cs | // https://leetcode.com/submissions/detail/52724586/
//
//
// Submission Details
// 164 / 164 test cases passed.
// Status: Accepted
// Runtime: 160 ms
//
// Submitted: 0 minutes ago
//
/**
* Definition for singly-linked list.
* public class ListNode {
* public int val;
* ... | mit | C# | |
395d5776317ec24344e87adec3f83b8527812963 | Add integration test to ensure SwaggerGen runs ok | brentstineman/nether,navalev/nether,MicrosoftDX/nether,ankodu/nether,ankodu/nether,vflorusso/nether,ankodu/nether,navalev/nether,brentstineman/nether,ankodu/nether,stuartleeks/nether,vflorusso/nether,oliviak/nether,navalev/nether,stuartleeks/nether,vflorusso/nether,vflorusso/nether,navalev/nether,stuartleeks/nether,bre... | tests/Nether.Web.IntegrationTests/SwaggerTests.cs | tests/Nether.Web.IntegrationTests/SwaggerTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace Nether.Web.IntegrationTests
{
public class SwaggerTests
{
[Fact]
public async Task GET_Swagger_returns_200_OK()
{
... | mit | C# | |
6474a01737611c8cd978936106a96334c7b8a62b | Add PathElement class for array like access | Domysee/Pather.CSharp | src/Pather.CSharp/PathElements/EnumerableAccess.cs | src/Pather.CSharp/PathElements/EnumerableAccess.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace Pather.CSharp.PathElements
{
public class EnumerableAccess : IPathElement
{
private string property;
private int index;
public ... | mit | C# | |
2a0de87bc8af32c0d64c2f9f9633a0df97a77893 | Create SpellChecker.cs | Alshaymaa/Assignment-2 | SpellChecker.cs | SpellChecker.cs | using System;
namespace SpellChecker
{
class MainClass
{
public static string[] ReadDictionary(string filename){
string input;
System.IO.StreamReader file;
file = new System.IO.StreamReader (filename);
input = file.ReadLine ();
int N;
N = int.Parse (input);
string[] dictionary = new string[N]... | mit | C# | |
a8175a35879a120d4de11b859d5ec56d9c1ce883 | add VectorTest example | geektoni/shogun,sorig/shogun,geektoni/shogun,Saurabh7/shogun,Saurabh7/shogun,Saurabh7/shogun,lambday/shogun,sorig/shogun,besser82/shogun,shogun-toolbox/shogun,karlnapf/shogun,besser82/shogun,lisitsyn/shogun,geektoni/shogun,shogun-toolbox/shogun,sorig/shogun,karlnapf/shogun,geektoni/shogun,sorig/shogun,lisitsyn/shogun,l... | examples/undocumented/csharp_modular/VectorTest.cs | examples/undocumented/csharp_modular/VectorTest.cs | using System;
public class VectorTest
{
public static void Main(string[] args) {
modshogun.init_shogun_with_defaults();
double[] y = new double[4] {1, 2, 3, 4};
Labels x = new Labels(y);
double[] r = x.get_labels();
for (int i = 0; i < r.Length; i++) {
Console.WriteLine(r[i]);
}
modshogun.exit_sh... | bsd-3-clause | C# | |
d51c28f6f1b76ed8cd0b7a9da206732126020d1a | Add facade for the game (interface) | arkeine/Fierce-Galaxy,arkeine/Fierce-Galaxy | fierce-galaxy/FierceGalaxyInterface/IGameFacade.cs | fierce-galaxy/FierceGalaxyInterface/IGameFacade.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FierceGalaxyInterface
{
interface IGameFacade
{
IPlayerManager PlayerManager { get; }
}
}
| apache-2.0 | C# | |
aaf1d187ef667ae7514a850961a55b065af25d70 | Add issue | ericgreenmix/marten,mysticmind/marten,JasperFx/Marten,JasperFx/Marten,mysticmind/marten,JasperFx/Marten,mysticmind/marten,ericgreenmix/marten,ericgreenmix/marten,ericgreenmix/marten,mysticmind/marten | src/Marten.Testing/Bugs/codegen_issue_with_IEvent.cs | src/Marten.Testing/Bugs/codegen_issue_with_IEvent.cs | using System;
using System.Collections.Generic;
using Marten.Events;
using Marten.Events.Projections;
using Marten.Testing.Harness;
using Xunit;
namespace Marten.Testing.Bugs
{
public class CodeGenIEventIssue : BugIntegrationContext
{
[Fact]
public void TestAggregation()
{
v... | mit | C# | |
1b0ca5f5d893ed7de6d651951aa57a4e30bc17d0 | Update assembly version | mgmoody42/FluentValidation,IRlyDontKnow/FluentValidation,GDoronin/FluentValidation,ruisebastiao/FluentValidation,roend83/FluentValidation,glorylee/FluentValidation,robv8r/FluentValidation,deluxetiky/FluentValidation,cecilphillip/FluentValidation,roend83/FluentValidation,regisbsb/FluentValidation,olcayseker/FluentValida... | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | #region License
// Copyright 2008-2009 Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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/LIC... | #region License
// Copyright 2008-2009 Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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/LIC... | apache-2.0 | C# |
4a23218adb1b9f37af9cb06788a2cfb1dda0a481 | Add DbKind | xin9le/DeclarativeSql | src/DeclarativeSql/DbKind.cs | src/DeclarativeSql/DbKind.cs | namespace DeclarativeSql
{
/// <summary>
/// Represents kind of database.
/// </summary>
public enum DbKind
{
/// <summary>
/// SQL Server
/// </summary>
SqlServer = 0,
/*
/// <summary>
/// SQL Server Compact
/// </summary>
Sq... | mit | C# | |
813be9c20d203215a484f9dace6ef380fb626dc2 | add IFilePathProvider | zmira/abremir.AllMyBricks | abremir.AllMyBricks/Providers/IFilePathProvider.cs | abremir.AllMyBricks/Providers/IFilePathProvider.cs | namespace abremir.AllMyBricks.Providers
{
public interface IFilePathProvider
{
string GetLocalPathToFile(string filename);
}
}
| mit | C# | |
d449e2ad9895580fc67e7650be1d64d9dc5112f4 | add linterhelper | jwldnr/VisualLinter | VisualLinter/Helpers/LinterHelper.cs | VisualLinter/Helpers/LinterHelper.cs | using System;
using System.IO;
using System.Linq;
namespace jwldnr.VisualLinter.Helpers
{
internal static class LinterHelper
{
private static readonly string[] SupportedConfigs =
{
".eslintrc.js",
".eslintrc.yaml",
".eslintrc.yml",
".eslintrc.jso... | mit | C# | |
2ae936db359112e50a3752397dbd2c33263ca91e | add TccModule attribute | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/TccModuleAttribute.cs | TCC.Core/TccModuleAttribute.cs | using System;
namespace TCC
{
public class TccModuleAttribute : Attribute { }
} | mit | C# | |
97ac90b666cc66b7fc9c896587efed66fa09b681 | Add tests for NSec key blob format | ektrah/nsec | tests/Formatting/NSecTests.cs | tests/Formatting/NSecTests.cs | using System;
using NSec.Cryptography;
using Xunit;
namespace NSec.Tests.Formatting
{
public static class NSecTests
{
[Theory]
[InlineData(typeof(Aes256Gcm), new byte[] { 0x7F, 0x31, 0x44, 0 })]
[InlineData(typeof(ChaCha20Poly1305), new byte[] { 0x7F, 0x31, 0x43, 0 })]
public st... | mit | C# | |
8150823d157843b434f329659eb6446732313782 | Add CrudService | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | src/Diploms.Services/CrudService.cs | src/Diploms.Services/CrudService.cs | using System;
using System.Threading.Tasks;
using AutoMapper;
using Diploms.Core;
using Diploms.Dto;
using Diploms.Dto.Departments;
namespace Diploms.Services
{
public class CrudService<TEntity, TAddModel, TEditModel> where TEntity : BaseEntity
{
private readonly IMapper _mapper;
private readon... | mit | C# | |
1db603686c0c2cba135cffad4435dab518cd5ce7 | Add PointcutUtilities | AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Lite,AspectCore/Abstractions | src/AspectCore.Lite/Internal/PointcutUtilities.cs | src/AspectCore.Lite/Internal/PointcutUtilities.cs | using AspectCore.Lite.Abstractions;
using System;
using System.Collections.Concurrent;
using System.Linq;
using System.Reflection;
namespace AspectCore.Lite.Internal
{
internal static class PointcutUtilities
{
private readonly static TypeInfo InterceptorTypeInfo = typeof(IInterceptor).GetTypeInfo();
... | mit | C# | |
a5144a2ba5df33440eec8da039bb9c0a66239cde | add back HttpRequestExtensions | volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity | src/Serenity.Net.Web/Mvc/HttpRequestExtensions.cs | src/Serenity.Net.Web/Mvc/HttpRequestExtensions.cs | using Microsoft.AspNetCore.Http;
using System;
namespace Serenity.Web
{
public static class HttpRequestExtensions
{
public static Uri GetBaseUri(this HttpRequest request)
{
var hostComponents = request.Host.ToUriComponent().Split(':');
var builder = new UriB... | mit | C# | |
307679552f4c39d0f1bf565a58f8afd286f2d81a | Add GetValueConversionTests. | mysql-net/MySqlConnector,mysql-net/MySqlConnector | tests/Conformance.Tests/GetValueConversionTests.cs | tests/Conformance.Tests/GetValueConversionTests.cs | using System;
using System.Data;
using AdoNet.Specification.Tests;
namespace Conformance.Tests
{
public class GetValueConversionTests : GetValueConversionTestBase<SelectValueFixture>
{
public GetValueConversionTests(SelectValueFixture fixture)
: base(fixture)
{
}
// GetBoolean allows conversions from any... | mit | C# | |
45dc19436327e2cc3d1547170007e34f72581550 | Add UserController for testing purposes | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | src/Diploms.WebUI/Controllers/UserController.cs | src/Diploms.WebUI/Controllers/UserController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Diploms.Core;
using Diploms.Dto.Login;
using Diploms.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Diploms.WebUI.Controllers
{
[Route("api/[controller]")]
publi... | mit | C# | |
baa924121620a9d4b93adb93d876230d0cbabf07 | Revert "Changes to this file no longer needed" | chkr1011/MQTTnet,chkr1011/MQTTnet,JTrotta/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,JTrotta/MQTTnet,JTrotta/MQTTnet,chkr1011/MQTTnet,JTrotta/MQTTnet | Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs | Source/MQTTnet.Extensions.ManagedClient/ManagedMqttApplicationMessage.cs | using System;
namespace MQTTnet.Extensions.ManagedClient
{
public class ManagedMqttApplicationMessage : IEquatable<ManagedMqttApplicationMessage>
{
public Guid Id { get; set; } = Guid.NewGuid();
public MqttApplicationMessage ApplicationMessage { get; set; }
public bool Equals(... | mit | C# | |
e09380af50ce86ebd1ee6e2f06730ee9e43b3e06 | Add test that ensures our exported components can be loaded | Moq/moq | test/Proxy.Tests/CompositionTests.cs | test/Proxy.Tests/CompositionTests.cs | using System;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host.Mef;
using Xunit;
using Xunit.Abstractions;
namespace Moq.Proxy.Tests
{
public class CompositionTests
{
ITestOutputHelper output;
public CompositionTests(ITestOu... | apache-2.0 | C# | |
379fdadbe54e34ea99e57a86106b94bdd9b8bcd9 | Add test scene for setup screen | smoogipoo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,ppy/osu | osu.Game.Tests/Visual/Editing/TestSceneSetupScreen.cs | osu.Game.Tests/Visual/Editing/TestSceneSetupScreen.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.Allocation;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Osu.Beatmaps;
using osu.Game.Screens.Edit;
using osu.Game.Scr... | mit | C# | |
563b81a099205a312014f3b8fd882d507186f02a | check for #76 | InvertGames/UniRx,neuecc/UniRx,zillakot/UniRx,zhutaorun/UniRx,juggernate/UniRx,ic-sys/UniRx,kimsama/UniRx,ic-sys/UniRx,endo0407/UniRx,cruwel/UniRx,saruiwa/UniRx,zhutaorun/UniRx,ufcpp/UniRx,TORISOUP/UniRx,juggernate/UniRx,cruwel/UniRx,ppcuni/UniRx,OrangeCube/UniRx,zhutaorun/UniRx,ataihei/UniRx,cruwel/UniRx,ic-sys/UniRx,... | Assets/ObjectTest/Sandbox2.cs | Assets/ObjectTest/Sandbox2.cs | using UnityEngine;
using UniRx;
using UniRx.Triggers;
using System.Collections;
using System.Linq;
using System;
using System.Collections.Generic;
// for Scenes/NextSandBox
public class Sandbox2 : MonoBehaviour
{
private class Operator : IEnumerator
{
public object Current
{
get { ... | using UnityEngine;
using UniRx;
using UniRx.Triggers;
using System.Collections;
using System.Linq;
using System;
using System.Collections.Generic;
public class Sandbox2 : MonoBehaviour
{
[SerializeField]
public MySerializable MS;
[SerializeField]
public IntReactiveProperty Direct;
[SerializeFiel... | mit | C# |
40fc655b50244d0b0d588abb1b97f3ae9cbde831 | Add equality check test to ensure correct values | ppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,johnneijzen/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,johnneijzen/osu,ppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,EVAST9919/osu,peppy/osu-new,2yangk23/osu,peppy/osu,2yangk23/osu,EVAST9919/osu | osu.Game.Tests/NonVisual/BeatmapSetInfoEqualityTest.cs | osu.Game.Tests/NonVisual/BeatmapSetInfoEqualityTest.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.Beatmaps;
namespace osu.Game.Tests.NonVisual
{
[TestFixture]
public class BeatmapSetInfoEqualityTest
{
[Test]
... | mit | C# | |
bab239552eefe9597dc4926267fb9bc8ac390529 | Add in byte array serializer | sceneskope/service-fabric | src/ServiceFabric.Bond/ByteArrayStateSerializer.cs | src/ServiceFabric.Bond/ByteArrayStateSerializer.cs | using Microsoft.ServiceFabric.Data;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceFabric.Bond
{
public class ByteArrayStateSerializer : IStateSerializer<byte[]>
{
public byte[] Read(BinaryReader bin... | mit | C# | |
b75ff1440955af93a59c9ca2fd6970b60a683159 | add general APIException; | ceee/PocketSharp | PocketSharp/APIException.cs | PocketSharp/APIException.cs | using System;
using System.Runtime.Serialization;
namespace PocketSharp
{
class APIException
{
[Serializable]
public class APIException : Exception
{
/// <summary>
/// necessary constructors for the exception
/// including inner exceptions and serialization
/// </summary>
... | mit | C# | |
78f5855b870e7fff311fe0ecbe3d70964887ae08 | Add spring easing | AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia | src/Avalonia.Base/Animation/Easings/SpringEasing.cs | src/Avalonia.Base/Animation/Easings/SpringEasing.cs | namespace Avalonia.Animation.Easings;
/// <summary>
/// Eases a <see cref="double"/> value using a user-defined spring formula.
/// </summary>
public class SpringEasing : Easing
{
private readonly Spring _internalSpring;
/// <summary>
/// The spring mass.
/// </summary>
public double Mass
{
... | mit | C# | |
e92d69b5602d55b056df436fa46992ad0bf54231 | Add missing BoxIconsExtension | MahApps/MahApps.Metro.IconPacks | src/MahApps.Metro.IconPacks/PackIconBoxIconsExtension.cs | src/MahApps.Metro.IconPacks/PackIconBoxIconsExtension.cs | #if (NETFX_CORE || WINDOWS_UWP)
using Windows.UI.Xaml;
using Windows.UI.Xaml.Markup;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Animation;
#else
using System.Windows.Markup;
using System.Windows.Media.Animation;
#endif
namespace MahApps.Metro.IconPacks
{
#if (NETFX_CORE || WINDOWS_UWP)
[MarkupExtens... | mit | C# | |
9fd2ace6e6ec2b6b1b7d0e0bdc4c6774b030d80b | Increase R version cap to 3.9 | karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArk... | src/R/Actions/Impl/Utility/SupportedRVersionList.cs | src/R/Actions/Impl/Utility/SupportedRVersionList.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
namespace Microsoft.R.Actions.Utility {
public static class SupportedRVersionList {
// TODO: this probably needs configuration file
... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
namespace Microsoft.R.Actions.Utility {
public static class SupportedRVersionList {
// TODO: this probably needs configuration file
... | mit | C# |
273ebf61f3bfe3924261c6f188c7cff7e45b1edc | Prepare for working on OWLValidatorStandardRuleset | mdesalvo/RDFSharp.Semantics | RDFSharp.Semantics/Validator/OWLValidatorStandardRuleset.cs | RDFSharp.Semantics/Validator/OWLValidatorStandardRuleset.cs | /*
Copyright 2012-2022 Marco De Salvo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | apache-2.0 | C# | |
d1a062fc37df29a0631bb5705dc3df85e0376760 | Create ITest.cs | ilgazdotcom/Arches | ArchesFramework/Arches.BusinessLogic/Abstract/ITest.cs | ArchesFramework/Arches.BusinessLogic/Abstract/ITest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Arches.Models;
namespace Arches.BusinessLogic.Abstract
{
public interface ITest
{
Test Find(Test test);
List<Test> FindAll();
void Insert(Test test);
void Update(Te... | mpl-2.0 | C# | |
d7fb41c2279c6bcb5515633afe3b88313abd64e5 | move wallet type to its own cs file | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/AddWallet/WalletType.cs | WalletWasabi.Fluent/ViewModels/AddWallet/WalletType.cs | namespace WalletWasabi.Fluent.ViewModels.AddWallet
{
public enum WalletType
{
Normal,
Hardware,
Coldcard,
Trezor,
Ledger
}
} | mit | C# | |
68028ba9a5318584a91273dcecd3a83850dd942e | Add PythonBaseParser with CheckVersion() and SetVersion() methods to check specific (Python 2 or 3) syntax | antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4 | python/CSharp/PythonParser.cs | python/CSharp/PythonParser.cs | using Antlr4.Runtime;
namespace PythonParseTree
{
public enum PythonVersion
{
Autodetect,
Python2 = 2,
Python3 = 3
}
public abstract class PythonBaseParser : Parser
{
public PythonVersion Version { get; set; }
protected PythonBaseParser(ITokenStream input) ... | mit | C# | |
f74b1c7e4f8292e37e0d29a541412730752e5cef | Add OnClickTrigger script | mikelovesrobots/throw-a-ball-tutorial | app/Assets/Scripts/OnClickTrigger.cs | app/Assets/Scripts/OnClickTrigger.cs | using UnityEngine;
using System.Collections;
public class OnClickTrigger : MonoBehaviour {
public float MinTimeBetweenPresses = 1f;
public ActionBase Action;
private bool isDisabled = false;
void OnClick() {
if (!isDisabled) {
Action.Act();
if (ShouldWaitBetweenPresses) {
isDisabled =... | mit | C# | |
87168df2c4b7a7200428b3bf8d10eefcf96b7a9c | Allow to specify which package to assert against | faustoscardovi/nuproj,DavidAnson/nuproj,NN---/nuproj,PedroLamas/nuproj,nuproj/nuproj,kovalikp/nuproj,AArnott/nuproj,DavidAnson/nuproj,zbrad/nuproj,ericstj/nuproj,oliver-feng/nuproj | src/NuProj.Tests/Infrastructure/Scenario.cs | src/NuProj.Tests/Infrastructure/Scenario.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using NuGet;
namespace NuProj.Tests.Infrastructure
{
public static class Scenario
{
public static async Task<IPackage> RestoreAndBuildSinglePackage(string scenarioName, string packageId =... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using NuGet;
namespace NuProj.Tests.Infrastructure
{
public static class Scenario
{
public static async Task<IPackage> RestoreAndBuildSinglePackage(string scenarioName, IDictionary<string... | mit | C# |
c545bcfd778f0a7cef261220b57b5aa9243583a0 | Create SmsController.cs | 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 | quickstart/csharp/sms/receive-sms/SmsController.cs | quickstart/csharp/sms/receive-sms/SmsController.cs | // In Package Manager, run:
// Install-Package Twilio.AspNet.Mvc -DependencyVersion HighestMinor
using System.Web.Mvc;
using Twilio.AspNet.Mvc;
using Twilio.TwiML;
namespace YourNewWebProject.Controllers
{
public class SmsController : TwilioController
{
[HttpPost]
public TwiMLResult Index()
... | mit | C# | |
89087266ba1954344c27a485a91d3ac18e398dc3 | Add the OutfitMaterialSettings ScriptableObject | stevefsp/Lizitt-Unity3D-Outfitter | Source/Plugins/Lizitt/Outfitter/OutfitMaterialSettings.cs | Source/Plugins/Lizitt/Outfitter/OutfitMaterialSettings.cs | /*
* Copyright (c) 2016 Stephen A. Pratt
*
* 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, merge, ... | mit | C# | |
4caf737b103418c9096a7eae16c76056302629bc | Remove attributes from Skill | gitChuckD/allReady,dpaquette/allReady,jonatwabash/allReady,aliiftikhar/allReady,mipre100/allReady,binaryjanitor/allReady,chinwobble/allReady,bcbeatty/allReady,shanecharles/allReady,chinwobble/allReady,jonhilt/allReady,jonhilt/allReady,JowenMei/allReady,auroraocciduusadmin/allReady,joelhulen/allReady,dangle1/allReady,an... | AllReadyApp/Web-App/AllReady/Models/Skill.cs | AllReadyApp/Web-App/AllReady/Models/Skill.cs | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AllReady.Models
{
public class Skill
{
public int Id { get; set; }
public string Name { get; set; }
public int ParentSkillId { get; set; }
... | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AllReady.Models
{
public class Skill
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public string Name... | mit | C# |
79e150fa70337335c592f6daa9c04db1c5ad8678 | Add view model factory interface | Branimir123/ZobShop,Branimir123/ZobShop,Branimir123/ZobShop | src/ZobShop.ModelViewPresenter/IViewModelFactory.cs | src/ZobShop.ModelViewPresenter/IViewModelFactory.cs | using ZobShop.ModelViewPresenter.Product.Details;
namespace ZobShop.ModelViewPresenter
{
public interface IViewModelFactory
{
ProductDetailsViewModel CreateProductDetailsViewModel(string name, string category, decimal price, double volume, string maker);
}
}
| mit | C# | |
1954dea1a82d085839770f51965a41a55c4c7a4b | Add [ThreadSafe] attribute so it can be used for documentation purpose (not just for bindings) | cwensley/maccore,jorik041/maccore,mono/maccore | src/ObjCRuntime/ThreadSafeAttribute.cs | src/ObjCRuntime/ThreadSafeAttribute.cs | //
// ThreadSafe attribute
//
// Copyright 2012, Xamarin 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 restriction, including
// without limitation the rights to use, cop... | apache-2.0 | C# | |
87dd0e1a19b0f870f7e90a9540274d5b2928a935 | add test for logging enumerable | icarus-consulting/Yaapii.Atoms | tests/Yaapii.Atoms.Tests/Enumerable/LoggingTests.cs | tests/Yaapii.Atoms.Tests/Enumerable/LoggingTests.cs | using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
using Yaapii.Atoms.Enumerable;
namespace Yaapii.Atoms.Tests.Enumerable
{
public sealed class LoggingTests
{
[Fact]
public void DumpsItemsOnRead()
{
string result = string.Empty;
new... | mit | C# | |
3a667e70b1dd4fdec467cde7168cbfd946e8c61c | add QuickStart.cs | NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity | ncmb_unity/Assets/NCMB/QuickStart.cs | ncmb_unity/Assets/NCMB/QuickStart.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using NCMB;
public class QuickStart : MonoBehaviour {
// Use this for initialization
void Start () {
// クラスのNCMBObjectを作成
NCMBObject testClass = new NCMBObject("TestClass");
// オブジェクトに値を設定
testClass["me... | apache-2.0 | C# | |
f61a6c746752d671a9e6b2f657b1e738e9c09179 | Change key for ExpirableAdapterHelper's dictionary from Tuple to int. | peteraritchie/Rock.Core,RockFramework/Rock.Core,bfriesen/Rock.Core | Rock.Core/IO/KeyValueStore/ExpirableAdapterHelper.cs | Rock.Core/IO/KeyValueStore/ExpirableAdapterHelper.cs | using System;
using System.Collections.Concurrent;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Rock.IO
{
public class ExpirableAdapterHelper
{
private const int _timerDueTime = 30000;
private readonly Timer _timer;
private readonly ConcurrentDict... | using System;
using System.Collections.Concurrent;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Rock.IO
{
public class ExpirableAdapterHelper
{
private const int _timerDueTime = 30000;
private readonly Timer _timer;
private readonly ConcurrentDict... | mit | C# |
a962e20ffd19dc8870da5d98a81391552d469516 | Add Image | praeclarum/Ooui,praeclarum/Ooui,praeclarum/Ooui | Ooui/Image.cs | Ooui/Image.cs | using System;
namespace Ooui
{
public class Image : Element
{
string src = "";
public string Source {
get => src;
set => SetProperty (ref src, value ?? "", "src");
}
public Image ()
: base ("img")
{
}
}
}
| mit | C# | |
8fa776ca1cd16965d5895e4d5724b3a318040f6c | Add CarriageReturnParser | StevenLiekens/TextFx,StevenLiekens/Txt | src/Txt.ABNF/Core/CR/CarriageReturnParser.cs | src/Txt.ABNF/Core/CR/CarriageReturnParser.cs | using Txt.Core;
namespace Txt.ABNF.Core.CR
{
public class CarriageReturnParser : Parser<CarriageReturn, char>
{
protected override char ParseImpl(CarriageReturn value)
{
return value.Text[0];
}
}
}
| mit | C# | |
be424056b00f97864c0fdb03701724d091a966c3 | Add DescribeInstanceTypesRequest | carbon/Amazon | src/Amazon.Ec2/Actions/DescribeInstanceTypesRequest.cs | src/Amazon.Ec2/Actions/DescribeInstanceTypesRequest.cs | using System.Collections.Generic;
namespace Amazon.Ec2
{
public sealed class DescribeInstanceTypesRequest : DescribeRequest, IEc2Request
{
public DescribeInstanceTypesRequest(params string[] instanceTypes)
{
InstanceTypes = instanceTypes;
}
public strin... | mit | C# | |
3f7e2e0db99383aeb186e428fb80f595046d8e8c | Add missing file. | esskar/Canon.Eos.Framework | EosLiveViewEventArgs.cs | EosLiveViewEventArgs.cs | using System;
using System.Drawing;
namespace Canon.Eos.Framework
{
[Obsolete("Use EosLiveViewEventArgs instead.")]
public class LiveViewEventArgs : EventArgs
{
internal LiveViewEventArgs(Image image)
{
this.Image = image;
}
public Image Image { get; private ... | mit | C# | |
056f464b7482daafed92f5e83c8dd7d3bb805a28 | Rename Directory | lamyauping/BanGLiver | SongTitle/BanGLiver/Properties/Settings.Designer.cs | SongTitle/BanGLiver/Properties/Settings.Designer.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | agpl-3.0 | C# | |
02d79e61d7fa603321325c9e9a7a9a459baf1a62 | Make MDTable public, and add a IsSorted property | picrap/dnlib,yck1509/dnlib,modulexcite/dnlib,kiootic/dnlib,jorik041/dnlib,ilkerhalil/dnlib,0xd4d/dnlib,ZixiangBoy/dnlib,Arthur2e5/dnlib | src/DotNet/Writer/MDTable.cs | src/DotNet/Writer/MDTable.cs | using System.Collections.Generic;
using dot10.DotNet.MD;
namespace dot10.DotNet.Writer {
/// <summary>
/// Creates rows in a table. Rows can optionally be shared to create a compact table.
/// </summary>
/// <typeparam name="T">The raw row type</typeparam>
public class MDTable<T> {
readonly Table table;
read... | using System.Collections.Generic;
using dot10.DotNet.MD;
namespace dot10.DotNet.Writer {
/// <summary>
/// Creates rows in a table. Rows can optionally be shared to create a compact table.
/// </summary>
/// <typeparam name="T">The raw row type</typeparam>
class MDTable<T> {
readonly Table table;
readonly Di... | mit | C# |
2c9c860953d0c9b2cdf5e1a4ada4a7a10ee4c405 | Add firstvisiblebehaviour. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/Behaviors/CommandOnFirstVisible.cs | WalletWasabi.Gui/Behaviors/CommandOnFirstVisible.cs | using Avalonia;
using Avalonia.Input;
using Avalonia.Interactivity;
using ReactiveUI;
using System;
using System.Collections.Generic;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WalletWasabi.Gui.Behaviors
{
internal class CommandOnFirstVisi... | mit | C# | |
8090acf2e3d6116751c8261755a7edb5ebf50611 | Add RouteInitializer attribute. | jgoz/beeline,jgoz/beeline,jgoz/beeline | src/Beeline/Routing/RouteInitializerAttribute.cs | src/Beeline/Routing/RouteInitializerAttribute.cs | namespace Beeline.Routing
{
using System;
using System.Web.Routing;
/// <summary>
/// Indicates that a method will be used during route initialization.
/// </summary>
/// <remarks>
/// A route initializer method must accept a <see cref="RouteCollection"/> as its only parameter.
/// </remarks>
[Att... | mit | C# | |
6644e191e3d28f67af2fc31f8f4998a8aef6c128 | Create Courses.cs | RobinsonMann/UWaterlooApi | courses/Courses.cs | courses/Courses.cs | using System.Collections.Generic;
using Newtonsoft.Json;
using UWaterlooApi.ApiRequest;
namespace UWaterlooAPI.Courses
{
/// <summary> "This method returns all the courses offered under a given subject" (Offical Documentation) </summary>
public class CourseSubject
{
[JsonProperty("course_id")]
public string Cou... | mit | C# | |
c3eed0426f651f1ee84105a9a7f284cd5ade7899 | Move Base64 URL Encoder from thnetii/dotnet-jose to THNETII.Common.Serialization | thnetii/dotnet-common | src/THNETII.Common.Serialization/Base64UrlEncoder.cs | src/THNETII.Common.Serialization/Base64UrlEncoder.cs | using System;
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace THNETII.Common.Serialization
{
/// <summary>
/// Provides encoding and decoding functionality for URL-safe Bas64 encoding as defined in
/// <a href="https://tools.ietf.org/html/rfc7515#appendix-C">RFC 7515: Appendix C. Notes... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.