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 |
|---|---|---|---|---|---|---|---|---|
fe12164cd0dd6ee494a42ee7d46e019ab94790c4 | add docker blob tests | lvermeulen/ProGet.Net | test/ProGet.Net.Tests/Native/DockerBlobs/ProGetClientShould.cs | test/ProGet.Net.Tests/Native/DockerBlobs/ProGetClientShould.cs | using System.Threading.Tasks;
using Xunit;
// ReSharper disable CheckNamespace
namespace ProGet.Net.Tests
{
public partial class ProGetClientShould
{
[Fact]
public async Task DockerBlobs_GetBlobsAsync()
{
var results = await _client.DockerBlobs_GetBlobsAsync(6);
... | mit | C# | |
3070a8ef7d5e2183cb2461f5b13c8f0d49996bd5 | Set up migrations | azure-appservice-samples/ToDoApp,mkliu/ToDoApp,mkliu/ToDoApp,azure-appservice-samples/ToDoApp,c4arun/Azure,mkliu/ToDoApp,c4arun/Azure,sriramdasbalaji/ToDoApp,halkasimi/ToDoApp,mkliu/ToDoApp,sriramdasbalaji/ToDoApp,halkasimi/ToDoApp,jaouher77/ToDoApp,azure-appservice-samples/ToDoApp,sriramdasbalaji/ToDoApp,halkasimi/ToD... | src/MultiChannelToDo/Models/MultiChannelToDoContext.cs | src/MultiChannelToDo/Models/MultiChannelToDoContext.cs | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using MultiChannelToDo.Migrations;
namespace MultiChannelToDo.Models
{
public class MultiChannelToDoContext : DbContext
{
// You can add custom code to this file. Changes will not be overwrit... | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
namespace MultiChannelToDo.Models
{
public class MultiChannelToDoContext : DbContext
{
// You can add custom code to this file. Changes will not be overwritten.
//
// If you ... | mit | C# |
28bd6bf1bd3d9783b85ff26658e294984c7e2698 | switch to implementation FormatDocumentOnBeforeSave | segrived/VSE-FormatDocumentOnSave,Elders/VSE-FormatDocumentOnSave | src/NMSD.VSE-FormatDocumentOnSave/FormatDocumentOnSavePackage.cs | src/NMSD.VSE-FormatDocumentOnSave/FormatDocumentOnSavePackage.cs | using System.Runtime.InteropServices;
using EnvDTE;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.TextManager.Interop;
namespace NMSD.VSE_FormatDocumentOnSave
{
/// <summary>
/// This is the class that implements the package exposed by this assembly.
///
/// The minimum re... | using System.Runtime.InteropServices;
using EnvDTE;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.TextManager.Interop;
namespace NMSD.VSE_FormatDocumentOnSave
{
/// <summary>
/// This is the class that implements the package exposed by this assembly.
///
/// The minimum re... | apache-2.0 | C# |
6fb79e7c89ed2d8930c391e9990e611627fd9618 | Add settings for backward compatibility | jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet | apis/Google.Cloud.Container.V1/Google.Cloud.Container.V1/ClusterManagerSettings.cs | apis/Google.Cloud.Container.V1/Google.Cloud.Container.V1/ClusterManagerSettings.cs | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | apache-2.0 | C# | |
98af1cb3191dd0af93b02f6c97fee021efa0e654 | Create Window510.xaml.cs | LavishSoftware/PropertyTools,punker76/PropertyTools,jogibear9988/PropertyTools,johnsonlu/PropertyTools,ZHZG/PropertyTools,Mitch-Connor/PropertyTools,objorke/PropertyTools,ZHZG/PropertyTools,jogibear9988/PropertyTools | Source/Examples/DataGrid/DataGridDemo/Examples/Window510.xaml.cs | Source/Examples/DataGrid/DataGridDemo/Examples/Window510.xaml.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Window510.xaml.cs" company="PropertyTools">
// Copyright (c) 2014 PropertyTools contributors
// </copyright>
// <summary>
// Interaction logic for Window510.xaml
// </summary>
... | mit | C# | |
59142375bbd33b03a45352827590a1e08bda0699 | Fix build break | kant2002/nodejstools,kant2002/nodejstools,paulvanbrenk/nodejstools,lukedgr/nodejstools,Microsoft/nodejstools,kant2002/nodejstools,kant2002/nodejstools,lukedgr/nodejstools,paulvanbrenk/nodejstools,Microsoft/nodejstools,paulvanbrenk/nodejstools,Microsoft/nodejstools,lukedgr/nodejstools,paulvanbrenk/nodejstools,lukedgr/no... | Nodejs/Product/TestAdapterImpl/SerializationHelpers.cs | Nodejs/Product/TestAdapterImpl/SerializationHelpers.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.
internal sealed class NodejsProjectSettings
{
public NodejsProjectSettings()
{
this.NodeExePath = string.Empty;
this.SearchPath = st... | apache-2.0 | C# | |
d7547e7c6919342e17b74259bbe61f0dedcdb453 | Create TokenSnapshotLine.cs | Zebrina/PapyrusScriptEditorVSIX,Zebrina/PapyrusScriptEditorVSIX | PapyrusScriptEditorVSIX/Language/Containers/TokenSnapshotLine.cs | PapyrusScriptEditorVSIX/Language/Containers/TokenSnapshotLine.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Papyrus.Language {
public class TokenSnapshotLine : IList<Token>, IReadOnlyList<Token>, ICollection<Token>, IReadOnlyCollection<Token>, IEnumerable<Token>, IEnumerable {
private Lis... | mit | C# | |
192d1f62f870d9b2b8909c2d2351a524c172afa5 | Add tests for Id struct serialization and deserialization | PKI-InVivo/reactive-domain | src/ReactiveDomain.Messaging.Tests/when_serializing_ids.cs | src/ReactiveDomain.Messaging.Tests/when_serializing_ids.cs | using System;
using Newtonsoft.Json;
using Xunit;
namespace ReactiveDomain.Messaging.Tests
{
public sealed class when_serializing_ids
{
private readonly CorrelationId _corrId;
private readonly SourceId _sourceId;
private readonly SourceId _nullSourceId;
public when_serializing... | mit | C# | |
4a009666b0cdd388e5c8fd010a2902adaac18def | Add IReadonlyDataContext | ericburcham/Highway.Data,HighwayFramework/Highway.Data | src/Highway.Data/Interfaces/IReadonlyDataContext.cs | src/Highway.Data/Interfaces/IReadonlyDataContext.cs | using System;
using System.Linq;
namespace Highway.Data
{
public interface IReadonlyDataContext : IDisposable
{
/// <summary>
/// This gives a mock-able wrapper around normal Set method that allows for testability
/// </summary>
/// <typeparam name="T">The Entity being quer... | mit | C# | |
4a755d940ccc45bdcf0e7bd1bca88b13a5a9e4ed | Add designer pdf viewer (#29) | neiesc/Problem-solving,neiesc/Problem-solving,neiesc/Problem-solving,neiesc/Problem-solving | HackerRank/Algorithms/Implementation/designer-pdf-viewer.cs | HackerRank/Algorithms/Implementation/designer-pdf-viewer.cs | // Designer PDF Viewer
// https://www.hackerrank.com/challenges/designer-pdf-viewer/problem
using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using Syst... | mit | C# | |
81b07dee563b9ef01da5b8571061c09ccf0b417d | Introduce `IExpandable` interface | ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu | osu.Game/Overlays/IExpandable.cs | osu.Game/Overlays/IExpandable.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.Bindables;
using osu.Framework.Graphics;
namespace osu.Game.Overlays
{
/// <summary>
/// An interface for drawables with ability to expand/co... | mit | C# | |
3bab4befd725fa3e156311076d27caea514f9b55 | Add async Main pattern | lerthe61/Snippets,lerthe61/Snippets | dotNet/Tasks/AsyncMain.cs | dotNet/Tasks/AsyncMain.cs | class Program
{
static void Main(string[] args)
{
Task.Run(async () =>
{
// Do any async anything you need here without worry
}).GetAwaiter().GetResult();
}
} | unlicense | C# | |
2fba351bc45406dfddfd44bd76c36802ea405bed | Fix Unix build of System.IO.MemoryMappedFiles | parjong/corefx,shahid-pk/corefx,andyhebear/corefx,mazong1123/corefx,FiveTimesTheFun/corefx,mazong1123/corefx,shrutigarg/corefx,jcme/corefx,larsbj1988/corefx,twsouthwick/corefx,PatrickMcDonald/corefx,CloudLens/corefx,JosephTremoulet/corefx,tstringer/corefx,richlander/corefx,gkhanna79/corefx,misterzik/corefx,dotnet-bot/c... | src/System.IO.MemoryMappedFiles/src/System/IO/MemoryMappedFiles/MemoryMappedFile.Unix.cs | src/System.IO.MemoryMappedFiles/src/System/IO/MemoryMappedFiles/MemoryMappedFile.Unix.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Win32.SafeHandles;
using System.Security;
namespace System.IO.MemoryMappedFiles
{
public partial class MemoryMappedFile
{
/// <summary>... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Win32.SafeHandles;
using System.Security;
namespace System.IO.MemoryMappedFiles
{
public partial class MemoryMappedFile
{
/// <summary>... | mit | C# |
41783f4b5af0f5bb75b25b52549c5b9e94c6a518 | test for NetworkCredentials | aloneguid/config | src/Config.Net.Tests/TypeParsers/NetworkCredentialsTest.cs | src/Config.Net.Tests/TypeParsers/NetworkCredentialsTest.cs | using Config.Net.TypeParsers;
using System.Globalization;
using System.Net;
using System.Threading;
using Xunit;
namespace Config.Net.Tests.TypeParsers
{
public class NetworkCredentialsParserTest
{
private static readonly ITypeParser TypeParser = new NetworkCredentialParser();
[Theory]
[Inlin... | mit | C# | |
092f3ff9b69885031842af6c84091757f5df07dd | Add benchmark | smoogipooo/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework | osu.Framework.Benchmarks/BenchmarkAggregateBindable.cs | osu.Framework.Benchmarks/BenchmarkAggregateBindable.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using BenchmarkDotNet.Attributes;
using osu.Framework.Bindables;
namespace osu.Framework.Benchmarks
{
[MemoryDiagnoser]
public class BenchmarkAggregateBindable
... | mit | C# | |
ba604bdc446593b94db20ee07ffd0f52dd86b1f1 | Add QueueDataGraphic.cs | 60071jimmy/UartOscilloscope,60071jimmy/UartOscilloscope | QueueDataGraphic/QueueDataGraphic/CSharpFiles/QueueDataGraphic.cs | QueueDataGraphic/QueueDataGraphic/CSharpFiles/QueueDataGraphic.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QueueDataGraphic.CSharpFiles
{
class QueueDataGraphic
{
}
}
| apache-2.0 | C# | |
45cbd13fa465f132b7c6d6c9c248955fefc2f612 | Add SearchItemGroup | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/Search/SearchItemGroup.cs | WalletWasabi.Fluent/ViewModels/Search/SearchItemGroup.cs | using System.Collections.Generic;
namespace WalletWasabi.Fluent.ViewModels.Search
{
public class SearchItemGroup
{
public SearchItemGroup(string category, IEnumerable<SearchItemViewModel> searchItems)
{
Category = category;
SearchItems = searchItems;
}
public string Category { get; }
public IEnumer... | mit | C# | |
cf9bdd46c42e3ea091fcfd27c05b0e90e6379336 | Add Pawn! | Vasilev87/BananaChessFinal | StartUp/Pawn.cs | StartUp/Pawn.cs | namespace Banana_Chess
{
internal class Pawn : Figure
{
internal Pawn(ColorsOfFigures color) : base(TypesOfFigures.Pawn, color) { }
public override void getPossibleCells(bool[,] outArr)
{
// pawn is a different animal, it needs dedicated moving logic
if... | mit | C# | |
dea4fd9499449ee9f46c52eb767d7cecd08b7274 | Add sample code to the unit test project for now. | jbct/LonoNet | LonoNetTest/UnitTest1.cs | LonoNetTest/UnitTest1.cs | using LonoNet.Client;
using LonoNet.Models;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading;
namespace LonoNetTest
{
/// <summary>
/// Early stage. At this point, this is more of sample code to get you started. Will work on actual unit tests soon.
/// </summary>
[TestClass... | apache-2.0 | C# | |
fae5ebaf857dcd7cb6152add3a0e63759ec1f3e6 | Create MainForm.cs | Kivitoe/Web-Status | src/MainForm.cs | src/MainForm.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
namespace Web_Stats
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class MainForm : Form
{
public MainForm()
{
//
// The InitializeComponent() call is requ... | mit | C# | |
0b61a3bb63183cdb07187b99553ed7d00b625361 | Create AssemblyInfo.cs | LeeHebert337/FolderCompare | FolderCompare/Properties/AssemblyInfo.cs | FolderCompare/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Fol... | unlicense | C# | |
cc74998e8b67d727754f189fceb0d1f181eefee9 | add assembly file | x3platform/x-sdk | src/CodeBuilder/CodeBuilder.Tests/Properties/AssemblyInfo.cs | src/CodeBuilder/CodeBuilder.Tests/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("CodeArtisan.NUnit")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Yoshow")]
[asse... | apache-2.0 | C# | |
9398f74d355bb706ff8f1acba8433921d6db03d7 | add seidel method class | pashchuk/Numerical-methods,pashchuk/Numerical-methods | CSharp/Nums/SeidelMethod.cs | CSharp/Nums/SeidelMethod.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nums
{
class SeidelMethod
{
}
}
| mit | C# | |
616f4101c3482657dbcb1d1f78f03391fdf30b99 | Add view for "Initiative Create Closed" error page. | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | src/CompetitionPlatform/Views/Shared/CreateInitiativeClosed.cshtml | src/CompetitionPlatform/Views/Shared/CreateInitiativeClosed.cshtml | @{
ViewData["Title"] = "Access Denied";
}
<br>
<br>
<br>
<div class="container">
<h2 class="text-danger">Creating Initiative projects is unavailable.</h2>
<p>
You do not have appropriate permissions to create Initiative projects. Please create a Draft project.
</p>
</div> | mit | C# | |
90298da69bba1308d012a56892af71a8efd8f0ba | Create WinForms.cs | keith-hall/Extensions,keith-hall/Extensions | src/WinForms.cs | src/WinForms.cs | using System.Windows.Forms;
namespace HallLibrary.Extensions
{
class TextBoxWithDoubleClickSupport : TextBox
{
const int WM_LBUTTONDBLCLK = 0x0203;
char[] WordSeparators = new [] {
'.',
'/',
'\\',
'(',
')',
'"',
'\'',
'-',
':',
',',
';',
'<',
'>',
'~',
'!',
'@',... | apache-2.0 | C# | |
b66ba43bc56f27a096912255c147d31453dba659 | Add failing test scene | smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,peppy/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu | osu.Game.Tests/Visual/Editing/TestSceneEditorSeeking.cs | osu.Game.Tests/Visual/Editing/TestSceneEditorSeeking.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.Utils;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Osu;
us... | mit | C# | |
695fafad7f158d0357f4e28b434fdf44db66a5cd | add interface for acme client | fszlin/certes,fszlin/certes | src/Certes/IAcmeClient.cs | src/Certes/IAcmeClient.cs | using System;
using System.Threading.Tasks;
using Certes.Acme;
using Certes.Pkcs;
namespace Certes
{
/// <summary>
/// Represents a ACME client.
/// </summary>
public interface IAcmeClient
{
/// <summary>
/// Submits the challenge for the ACME server to validate.
/// </summ... | mit | C# | |
fd2b64ae7ec65b9b8cf1e8d85f26658257fc20a1 | Address PR feedback | shimingsg/corefx,ptoonen/corefx,jlin177/corefx,parjong/corefx,nchikanov/corefx,BrennanConroy/corefx,jlin177/corefx,twsouthwick/corefx,wtgodbe/corefx,Ermiar/corefx,Jiayili1/corefx,twsouthwick/corefx,tijoytom/corefx,parjong/corefx,mazong1123/corefx,krk/corefx,mmitche/corefx,ericstj/corefx,ericstj/corefx,richlander/corefx... | src/System.Runtime.Numerics/tests/BigInteger/TryWriteBytes.cs | src/System.Runtime.Numerics/tests/BigInteger/TryWriteBytes.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Xunit;
namespace System.Numerics.Tests
{
public partial class ExtractBytesMembersTests
{
[Th... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Xunit;
namespace System.Numerics.Tests
{
public partial class ExtractBytesMembersTests
{
[Th... | mit | C# |
7edfd0ce63d74f828e8e37e012f6fad21a2c0991 | Implement roomData data contract | Zalodu/Schedutalk,Zalodu/Schedutalk | Schedutalk/Schedutalk/Schedutalk/Logic/KTHPlaces/RoomDataContract.cs | Schedutalk/Schedutalk/Schedutalk/Logic/KTHPlaces/RoomDataContract.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace Schedutalk.Logic.KTHPlaces
{
[DataContract]
public class RoomDataContract
{
[DataMember(Name = "floorUid")]
public string FloorU... | mit | C# | |
263bd80f242f29fd8b7dd5093f1443543a9aedda | Check in missing XmlSerializableServices.cs | lggomez/corefx,shimingsg/corefx,alexperovich/corefx,pallavit/corefx,ericstj/corefx,ericstj/corefx,cydhaselton/corefx,benpye/corefx,rubo/corefx,twsouthwick/corefx,rahku/corefx,ellismg/corefx,tstringer/corefx,dsplaisted/corefx,dotnet-bot/corefx,wtgodbe/corefx,axelheer/corefx,kkurni/corefx,BrennanConroy/corefx,parjong/cor... | src/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlSerializableServices.cs | src/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlSerializableServices.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.Serialization
{
using System.Collections.Generic;
using System.Xml;
using System.Xml.Schema;
public static class XmlSerializab... | mit | C# | |
d73763884a3175ac58dc765a3b9b8ff95f69b338 | add traversal btree stack version | jackzhenguo/leetcode-csharp | Tree/Tree.TreeLib/TraversalTreeUsingStack.cs | Tree/Tree.TreeLib/TraversalTreeUsingStack.cs | /* ==============================================================================
* 功能描述:TraversalTreeUsingStack
* 创 建 者:gz
* 创建日期:2017/4/24 10:39:19
* ==============================================================================*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.... | mit | C# | |
4ac8956abf8d43e8b97a804fc72c4c09874493a9 | Create OffsetScroller.cs | felladrin/unity-scripts,felladrin/unity3d-scripts | OffsetScroller.cs | OffsetScroller.cs | using UnityEngine;
public class OffsetScroller : MonoBehaviour
{
public float VerticalScrollSpeed;
public float HorizontalScrollSpeed;
Vector2 savedOffset;
Renderer rendererComponent;
void Start ()
{
rendererComponent = GetComponent<Renderer> ();
savedOffset = rendererComponent.material.mainTextureOffset;
... | mit | C# | |
bddc8ed92a022f17c2eb9e5b414ed4a03846ae7b | add DynamicJson | IvanZheng/IFramework,IvanZheng/IFramework,IvanZheng/IFramework | Src/iFramework.Plugins/IFramework.JsonNetCore/DynamicObject.cs | Src/iFramework.Plugins/IFramework.JsonNetCore/DynamicObject.cs | using System;
using System.Collections.Generic;
using System.Dynamic;
using IFramework.Infrastructure;
using Newtonsoft.Json.Linq;
namespace IFramework.JsonNet
{
public class DynamicJson : DynamicObject
{
private readonly JObject _json;
public DynamicJson(JObject json)
{
_... | mit | C# | |
016bda13412ef5d6b96ff3b3bcf9eb1ef24578c3 | Create data source for local storage | tenevdev/ClumsyWords | ClumsyWordsUniversal/ClumsyWordsUniversal.Shared/DataModel/DataSources/LocalDataSource.cs | ClumsyWordsUniversal/ClumsyWordsUniversal.Shared/DataModel/DataSources/LocalDataSource.cs | using Microsoft.Live;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.Storage;
namespace ClumsyWor... | mit | C# | |
c96442052be9424ea44861d4d27cad53281fb3b5 | implement [Index] attribute | NaamloosDT/ModCore,NaamloosDT/ModCore | ModCore/Logic/EntityFramework/AttributeImpl/IndexAttribute.cs | ModCore/Logic/EntityFramework/AttributeImpl/IndexAttribute.cs | // mostly taken from from jsakamoto/EntityFrameworkCore.IndexAttribute
// MIT License
//
// Copyright (c) 2017 J.Sakamoto
//
// 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 res... | mit | C# | |
d1ef8acedfc03803160159c80231ffc026e7cceb | Create KidVersion.cs | fairmat/OpenKID,fairmat/OpenKID | client-sample/c-sharp/Model/KidVersion.cs | client-sample/c-sharp/Model/KidVersion.cs | ///
// This file contains utility classes to access easily OpenKID repositories
// in order to extract information from them
//
// LICENCE:
// Copyright (c) 2016 Fairmat SRL.
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files
// (the "S... | mit | C# | |
b25fa980466304dc01834ea7d4a7c111196a5f6e | Add Q241 | txchen/localleet | csharp/Q241_DifferentWaysToAddParentheses.cs | csharp/Q241_DifferentWaysToAddParentheses.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operators are +, - and *.
//
// E... | mit | C# | |
fbc664822d4acfbd8e2a10607e638d3c3c9702f8 | Add failing test covering RomanisableString usage in SpriteText | ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework | osu.Framework.Tests/Visual/Sprites/TestSceneRomanisableSpriteText.cs | osu.Framework.Tests/Visual/Sprites/TestSceneRomanisableSpriteText.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Co... | mit | C# | |
c14f5e0e670eaea322e7e5a501167a60b579da78 | add missing file | HASystem/HASystem,HASystem/HASystem,HASystem/HASystem | HASystem/HASystem.Server.Service/ProjectInstaller.Designer.cs | HASystem/HASystem.Server.Service/ProjectInstaller.Designer.cs | namespace HASystem.Server.Service
{
partial class ProjectInstaller
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </s... | apache-2.0 | C# | |
61ea879f735b4f0d68e078ee6edf5c31ab8e7b3e | Add AssemblyInfo for Diagnostics | bingbing8/PowerShell,bingbing8/PowerShell,kmosher/PowerShell,JamesWTruher/PowerShell-1,PaulHigin/PowerShell,KarolKaczmarek/PowerShell,JamesWTruher/PowerShell-1,JamesWTruher/PowerShell-1,kmosher/PowerShell,daxian-dbw/PowerShell,TravisEz13/PowerShell,jsoref/PowerShell,KarolKaczmarek/PowerShell,bingbing8/PowerShell,bmanik... | src/Microsoft.PowerShell.Commands.Diagnostics/AssemblyInfo.cs | src/Microsoft.PowerShell.Commands.Diagnostics/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
[assembly:AssemblyFileVersionAttribute("3.0.0.0")]
[assembly:AssemblyVersion("3.0.0.0")]
[assembly:AssemblyCulture("")]
[assembly:NeutralResourcesLanguage("en-US")]
#if !CORECLR
[assembly:AssemblyKeyFileAttribute(@"..\signing\visualstudiopublic.snk")]
[assembly:Assemb... | mit | C# | |
e69c651d8a689057b6e4a6c73b3c6d57081f3353 | add missing file | IvanZheng/IFramework,IvanZheng/IFramework,IvanZheng/IFramework | Src/Sample/Sample.CommandService/Test/CommandBusTests.cs | Src/Sample/Sample.CommandService/Test/CommandBusTests.cs | using IFramework.Command;
using IFramework.Config;
using IFramework.Infrastructure;
using IFramework.Infrastructure.Logging;
using Sample.Command;
using Sample.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sample.CommandService.Tests... | mit | C# | |
733c7f58dc7b614ae6d3a2185c206c11d28434a7 | Add delete auto index creation | 89sos98/LiteDB,Xicy/LiteDB,prepare/LiteDB,Skysper/LiteDB,falahati/LiteDB,icelty/LiteDB,falahati/LiteDB,masterdidoo/LiteDB,masterdidoo/LiteDB,prepare/LiteDB,89sos98/LiteDB,RytisLT/LiteDB,mbdavid/LiteDB,prepare/LiteDB,prepare/LiteDB,RytisLT/LiteDB | LiteDB/Core/Collections/Delete.cs | LiteDB/Core/Collections/Delete.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace LiteDB
{
public partial class LiteCollection<T>
{
/// <summary>
/// Remove all document based on a Query object. Returns removed document counts
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace LiteDB
{
public partial class LiteCollection<T>
{
/// <summary>
/// Remove all document based on a Query object. Returns removed document counts
... | mit | C# |
5a0c947d26e84cb132979605b5c3662d46b4fb13 | Remove reference to settings icon | grae22/TeamTracker | Settings.aspx.cs | Settings.aspx.cs | using System;
public partial class Settings : System.Web.UI.Page
{
//---------------------------------------------------------------------------
protected void Page_Load( object sender, EventArgs e )
{
// Don't allow people to skip the login page.
if( Session[ SettingsLogin.SES_SETTINGS_LOGGED_IN ] == ... | mit | C# | |
26df68c235b0db266b993d42c654430b38078c9b | Add a header to the recent view | mono-soc-2011/banshee,arfbtwn/banshee,stsundermann/banshee,Dynalon/banshee-osx,stsundermann/banshee,directhex/banshee-hacks,directhex/banshee-hacks,eeejay/banshee,GNOME/banshee,stsundermann/banshee,Dynalon/banshee-osx,GNOME/banshee,dufoli/banshee,mono-soc-2011/banshee,dufoli/banshee,allquixotic/banshee-gst-sharp-work,m... | src/Extensions/Banshee.Moblin/Banshee.Moblin/MediaPanelContents.cs | src/Extensions/Banshee.Moblin/Banshee.Moblin/MediaPanelContents.cs | //
// MediaPanelContents.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// 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 restr... | //
// MediaPanelContents.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// 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 restr... | mit | C# |
a98c461859d30f21ea31df97cdda728e4e5889f2 | Create SwipeManager.cs | neervfx/swipe | SwipeManager.cs | SwipeManager.cs | using UnityEngine;
public enum Swipes { None, Up, Down, Left, TopLeft, BottomLeft, Right, TopRight, BottomRight};
public class SwipeManager : MonoBehaviour
{
public float minSwipeLength = 200f;
Vector2 currentSwipe;
private Vector2 fingerStart;
private Vector2 fingerEnd;
public static Swipes di... | mit | C# | |
c3e46f46205627a4dd8b95e9cc89f907a2804e57 | Create OrganizationUnitsHelper.cs | os2kitos/kitos,os2kitos/kitos,os2kitos/kitos,os2kitos/kitos | Presentation.Web/Controllers/OData/Helpers/OrganizationUnitsHelper.cs | Presentation.Web/Controllers/OData/Helpers/OrganizationUnitsHelper.cs | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web.Http;
using Microsoft.AspNet.OData;
using Microsoft.AspNet.OData.Routing;
using System.Net;
using Core.DomainModel.ItContract;
using Core.DomainModel.ItSystemUsage;
using Core.DomainServices;
using Core.Domain... | mpl-2.0 | C# | |
d4140cc0c7778d418c1f464b0e8add7489b21267 | add extension to quote a quote in a string (needed for pg to properly handle quotes) | YoloDev/elephanet,YoloDev/elephanet,jmkelly/elephanet,jmkelly/elephanet | Elephanet/StringHelpers.cs | Elephanet/StringHelpers.cs | using System;
using System.Linq;
using System.Text;
namespace Elephanet.Helpers
{
public static class StringHelpers
{
public static string EscapeQuotes(this string text)
{
return text.Replace("'", "''");
}
}
}
| mit | C# | |
b146e0f97884bbfbf9859ab13fb57ee8a1e7bffc | Add test for F.First | farity/farity | Farity.Tests/FirstTests.cs | Farity.Tests/FirstTests.cs | using Xunit;
using System.Linq;
namespace Farity.Tests
{
public class FirstTests
{
[Fact]
public void FirstReturnsFirstElement()
{
var data = new[] { 1, 2, 3, 4, 5 };
var expected = 1;
var actual = F.First(data);
Assert.Equal(expected, ac... | mit | C# | |
7f51dd76f6a7d65dd2827e3f03c3a591ca23354e | Disable unit test parallelization | borisdj/EFCore.BulkExtensions | EFCore.BulkExtensions.Tests/Properties/AssemblyInfo.cs | EFCore.BulkExtensions.Tests/Properties/AssemblyInfo.cs | [assembly: Xunit.CollectionBehavior(DisableTestParallelization = true)]
| mit | C# | |
db833e0aacf1b6a267b71acf5c7d76ef35a16497 | Add files via upload | Hwigaro/Multimedia-Timer | Clock.cs | Clock.cs | using System;
using System.Runtime.InteropServices;
namespace MultimediaTimer
{
public class Clock
{
private delegate void TimerEventHandler(int id, int msg, IntPtr user, int dw1, int dw2);
private const int TIME_PERIODIC = 1;
private const int EVENT_TYPE = TIME_PERIODIC;
... | apache-2.0 | C# | |
05b648edb4f280beb611aae89563c76fe8dbf149 | update ios examples | angelovstanton/AutomateThePlanet,angelovstanton/AutomateThePlanet,angelovstanton/AutomateThePlanet | Appium-Series/GettingStartedAppiumIOSMacOSCSharp/GestureTests.cs | Appium-Series/GettingStartedAppiumIOSMacOSCSharp/GestureTests.cs | // <copyright file="GestureTests.cs" company="Automate The Planet Ltd.">
// Copyright 2018 Automate The Planet Ltd.
// 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/lice... | apache-2.0 | C# | |
5adc86c55f1008298d68420383fdf65679bf90c3 | Create TimeConversion.cs | michaeljwebb/Algorithm-Practice | HackerRank/TimeConversion.cs | HackerRank/TimeConversion.cs | //Convert 12-hour AM/PM time format to military time.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static string timeConversion(string s) {
DateTime t = DateTime.Parse(s);
return t.ToString("HH:mm:ss");
}
static void Main(Str... | mit | C# | |
679e4ae049bfedb2182a2b31ffa33ee6bfa85fbc | Fix bug #636 | YOTOV-LIMITED/poshtools,erwindevreugd/poshtools,mgreenegit/poshtools,KevinHorvatin/poshtools,adamdriscoll/poshtools,daviwil/poshtools,Microsoft/poshtools,SpotLabsNET/poshtools | PowerShellTools/Commands/UserInterface/Converters/ErrorIconConverter.cs | PowerShellTools/Commands/UserInterface/Converters/ErrorIconConverter.cs | using System;
using System.Reflection;
using System.Windows.Data;
using System.Windows.Media.Imaging;
namespace PowerShellTools.Commands.UserInterface
{
internal class ErrorIconConverter : IValueConverter
{
private BitmapImage _errorIcon;
private BitmapImage _warningIcon;
pr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Media.Imaging;
namespace PowerShellTools.Commands.UserInterface
{
internal class ErrorIconConverter : IValueConverter
{
privat... | apache-2.0 | C# |
da8a1692d9cbdcf8ba24dde2ac30e43cfc6ccf11 | Add test coverage of multiplayer room/state messagepack serialisation | peppy/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,ppy/osu,ppy/osu,NeoAdonis/osu | osu.Game.Tests/Online/TestMultiplayerMessagePackSerialization.cs | osu.Game.Tests/Online/TestMultiplayerMessagePackSerialization.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 MessagePack;
using NUnit.Framework;
using osu.Game.Online;
using osu.Game.Online.Multiplayer;
using osu.Game.Online.Multiplayer.MatchTypes.TeamVersus;
namespace os... | mit | C# | |
4b023cfe59335a77674bc32ac1a0178184ad4c2d | add a behavior to fix bug in tooltip | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/Behaviors/PreventTooltipStuckBehavior.cs | WalletWasabi.Gui/Behaviors/PreventTooltipStuckBehavior.cs | using Avalonia.Controls;
using Avalonia.Xaml.Interactivity;
namespace WalletWasabi.Gui.Behaviors
{
/// <summary>
/// Ensures Tooltips are closed when parent control is removed from visual tree.
/// This is a workaround and should be removed when Avalonia 0.10.0 upgrade is complete. TODO
/// </summary>
public cla... | mit | C# | |
91b3aa2914427cfa0af3cd1dbc58ea4b25ad9919 | Implement interval list | NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu | osu.Game/Lists/IntervalList.cs | osu.Game/Lists/IntervalList.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;
using System.Collections.Generic;
using osu.Framework.Lists;
namespace osu.Game.Lists
{
/// <summary>
/// Represents a li... | mit | C# | |
0c1adca72c3012bbee372ba5e461b392c4377e61 | Revert "Revert "#218 global assembly for global version changes"" | horrorcode/keymaster,horrorcode/keymaster,horrorcode/keymaster,horrorcode/keymaster,horrorcode/keymaster | src/GlobalAssembly.cs | src/GlobalAssembly.cs | using System;
public class Class1
{
public Class1()
{
}
}
| mit | C# | |
e1c4c8f3d5401ce298c4f3392a1464103a931385 | Add failing test coverage of gameplay sample pausing (during seek) | peppy/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,peppy/osu-new | osu.Game.Tests/Visual/Gameplay/TestSceneGameplaySamplePlayback.cs | osu.Game.Tests/Visual/Gameplay/TestSceneGameplaySamplePlayback.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Graphics.Audio;
using osu.Framework.Testing;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Osu;
using osu... | mit | C# | |
0ed849f95ed7d8c352b8834f317bd1ac273641e9 | Add assembly info to OneSignal.Core | one-signal/OneSignal-Xamarin-SDK,one-signal/OneSignal-Xamarin-SDK | Com.OneSignal.Core/Properties/AssemblyInfo.cs | Com.OneSignal.Core/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Com.OneSignal.Core")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
... | mit | C# | |
676486683cb0f221ccb9cf0304bf4b82ffa3e43f | Add another client test | Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server,Cyberboss/tgstation-server | tests/Tgstation.Server.Client.Tests/Components/TestDreamDaemonClient.cs | tests/Tgstation.Server.Client.Tests/Components/TestDreamDaemonClient.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Api;
using Tgstation.Server.Api.Models;
namespace Tgstation.Server.Client.Components.Tests
{
[TestClass]
publ... | agpl-3.0 | C# | |
e19ca0c12011b86ca9cfb5093a04fe29e85172c2 | Add nomod mod type | peppy/osu-new,DrabWeb/osu,naoey/osu,naoey/osu,johnneijzen/osu,2yangk23/osu,ppy/osu,DrabWeb/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,peppy/osu,UselessToucan/osu,ZLima12/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,EVAST9919/osu,peppy/osu,UselessToucan/osu,naoey/osu,ppy/osu,2yangk23/osu,smoogi... | osu.Game/Rulesets/Mods/NoModMod.cs | osu.Game/Rulesets/Mods/NoModMod.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Rulesets.Mods
{
/// <summary>
/// Indicates a type of mod that doesn't do anything.
/// </summary>
public sealed class NoModMod : Mod... | mit | C# | |
2c57c2b3f8d610f97ca5b9d0c420445c7cb1e0d4 | Add LatticeSlimeNetworkGeneratorTests.cs to VCS | willb611/SlimeSimulation | SlimeSimulationTests/Model/Generation/LatticeSlimeNetworkGeneratorTests.cs | SlimeSimulationTests/Model/Generation/LatticeSlimeNetworkGeneratorTests.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using SlimeSimulation.Configuration;
using SlimeSimulation.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlimeSimulation.Model.Generation.Tests
{
[TestClass()]
public class... | apache-2.0 | C# | |
7862397774bc3041657b6290c9cca6919fbbd6a5 | Add C# SDK v5.x snippet for ip-messaging | teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snip... | ip-messaging/users/token-generation-server/token-generation-server.5.x.cs | ip-messaging/users/token-generation-server/token-generation-server.5.x.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Web;
using System.Web.Mvc;
using Twilio;
using Twilio.Auth;
using Twilio.Jwt.AccessToken;
using Faker;
namespace TwilioIpMessaging.Controllers
{
public class TokenController : Controller
{
// GET: /token
pu... | mit | C# | |
e83a57f669727885b59c59d484a283a58b89d238 | Add key Model | mplacona/twilio-csharp,twilio/twilio-csharp | src/Twilio.Api/Model/Key.cs | src/Twilio.Api/Model/Key.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Twilio
{
public class Key : TwilioBase
{
public string Sid { get; set; }
public string FriendlyName { get; set; }
public string Secret { get; set; }
public DateTime DateCreated { get;... | mit | C# | |
d4d899ce08de347503f19f3be04323b09e464760 | Create Test.cs | mhplong/Sample_Code,mhplong/Sample_Code,mhplong/Sample_Code,mhplong/Sample_Code,mhplong/Sample_Code,mhplong/Sample_Code,mhplong/Sample_Code | C/Test.cs | C/Test.cs | using System
public class Test
{
static void main() {
Console.WriteLine("Testing");
return;
}
}
| mit | C# | |
cfb5f54d0f8e3ab3c384dba37130474f1a4e88b8 | fix manifest in android bindings | mattleibow/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,topgenorth/XamarinComponents,mattleibow/XamarinComponents,JonDouglas/XamarinComponents,bholmes/XamarinComponents,topgenorth/XamarinComponents,JonDouglas/XamarinComponents,mattleibow/XamarinComponents,xamarin/Xamar... | XPlat/Mapbox/Android/source/MapboxSDK.Android/Additions/Manifest.cs | XPlat/Mapbox/Android/source/MapboxSDK.Android/Additions/Manifest.cs | using System;
using Android.Runtime;
using Android.App;
using Android.OS;
using Android.Content;
// Mapzen Lost
[assembly: UsesPermission (Android.Manifest.Permission.AccessCoarseLocation)]
[assembly: UsesPermission (Android.Manifest.Permission.AccessFineLocation)]
[assembly: UsesFeature ("android.hardware.sensor.acc... | using System;
using Android.Runtime;
using Android.App;
using Android.OS;
using Android.Content;
// Mapzen Lost
[assembly: UsesPermission (Android.Manifest.Permission.AccessCoarseLocation)]
[assembly: UsesPermission (Android.Manifest.Permission.AccessFineLocation)]
[assembly: UsesFeature ("android.hardware.sensor.acc... | mit | C# |
6a556991548ea6ae16a23710ebb2ba5096ec2d4b | Add GameObject view | feliwir/openSage,feliwir/openSage | src/OpenSage.Game/Diagnostics/AssetViews/GameObjectView.cs | src/OpenSage.Game/Diagnostics/AssetViews/GameObjectView.cs | using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using ImGuiNET;
using OpenSage.Data.Ini;
using OpenSage.Logic.Object;
namespace OpenSage.Diagnostics.AssetViews
{
internal sealed class GameObjectView : AssetView
{
private GameObject _gameObject;
private readonly List... | mit | C# | |
c42e8cdcd0cbd427bc42ecb895704d8edaa10b0c | Create Two-sum.cs | SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming | Kattis-Solutions/Two-sum.cs | Kattis-Solutions/Two-sum.cs | using System;
namespace Two_Sum
{
class Program
{
static void Main(string[] args)
{
string[] arr = Console.ReadLine().Split();
Console.WriteLine(int.Parse(arr[0]) + int.Parse(arr[1]));
}
}
}
| mit | C# | |
efd263867411df2d201937095e6fc8236d7bb9fe | Patch Participation | FlorianTDK/quiz,FlorianTDK/quiz,esaip-dotnet/quiz,esaip-dotnet/quiz,FlorianTDK/quiz,arry61/quiz,esaip-dotnet/quiz,arry61/quiz,arry61/quiz | api-core.net/src/api-core.net/Controllers/ParticipationController.cs | api-core.net/src/api-core.net/Controllers/ParticipationController.cs | using api_core.net.Daos;
using api_core.net.Models;
using Microsoft.AspNetCore.JsonPatch;
using Microsoft.AspNetCore.Mvc;
using MongoDB.Bson;
using System.Threading.Tasks;
namespace api_core.net.Controllers
{
[Route("quiz/{idQuiz}/participation")]
public class ParticipationController : Controller
{
... | using api_core.net.Daos;
using api_core.net.Models;
using Microsoft.AspNetCore.Mvc;
using MongoDB.Bson;
using System.Threading.Tasks;
namespace api_core.net.Controllers
{
[Route("quiz/{idQuiz}/participation")]
public class ParticipationController : Controller
{
ParticipationDao participationDao;
... | mit | C# |
689e60597785116d8d50340528b0d56af3c8b688 | Add is_prime csharpt | felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecustodio/algorithms,felipecu... | math/is_prime/c#/is_prime.cs | math/is_prime/c#/is_prime.cs | class Program
{
static void Main(string[] args)
{
Console.WriteLine("Accept number:");
int number = Convert.ToInt32(Console.ReadLine());
if (IsPrime(number))
{
Console.WriteLine("It is prime");
}
else
... | mit | C# | |
873dc02e1dde179415978d9fdcf2388a94f2fa3c | Add Cancelation Test | bytefish/PostgreSQLCopyHelper | src/PostgreSQLCopyHelper.Test/Issues/Issue58_CancelRequest_Test.cs | src/PostgreSQLCopyHelper.Test/Issues/Issue58_CancelRequest_Test.cs | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Npgsql;
using NUnit.Framework;
namespace PostgreSQLCopyHelper.Test.Issues
{
[TestFixture]
[Description("A Unit Test to see, if PostgreSQLCopyHelper works with Canceling Requests.")]
public class Iss... | mit | C# | |
bcbe3a4c5a8e86ce0c9d4c51dd1ed5c7a88cd2a9 | Add stub endpoint for getting vehicle info | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Controllers/API/VehiclesController.cs | Battery-Commander.Web/Controllers/API/VehiclesController.cs | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BatteryCommander.Web.Controllers.API
{
[Route("api/[controller]"), Authoriz... | mit | C# | |
ac175deea29a0f84d9c843a93839bde33acbfae4 | Add ${aspnet-request-contenttype} (ASP.NET Core only) | 304NotModified/NLog.Web,NLog/NLog.Web | NLog.Web.AspNetCore/LayoutRenderers/AspNetRequestContentTypeLayoutRenderer.cs | NLog.Web.AspNetCore/LayoutRenderers/AspNetRequestContentTypeLayoutRenderer.cs | #if NETSTANDARD_1plus
using NLog.LayoutRenderers;
using System.Text;
using Microsoft.AspNetCore.Routing;
using NLog.Web.Internal;
namespace NLog.Web.LayoutRenderers
{
/// <summary>
/// ASP.NET content type.
/// </summary>
/// <example>
/// <code lang="NLog Layout Renderer">
/// ${aspnet-reque... | bsd-3-clause | C# | |
3f4a66c4ae6036b98cb3512ba2440d75596c056e | Add realtime multiplayer test scene abstract class | peppy/osu,peppy/osu,ppy/osu,peppy/osu-new,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,peppy/osu,ppy/osu,NeoAdonis/osu | osu.Game/Tests/Visual/RealtimeMultiplayer/RealtimeMultiplayerTestScene.cs | osu.Game/Tests/Visual/RealtimeMultiplayer/RealtimeMultiplayerTestScene.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.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Gam... | mit | C# | |
4dafdf93e997537736e1ed75d236746514521a28 | Add Unit Test for issue #3903 SecurityKeyType | mconnew/wcf,imcarolwang/wcf,dotnet/wcf,StephenBonikowsky/wcf,imcarolwang/wcf,dotnet/wcf,dotnet/wcf,mconnew/wcf,StephenBonikowsky/wcf,imcarolwang/wcf,mconnew/wcf | src/System.ServiceModel.Security/tests/ServiceModel/SecurityKeyTypeTest.cs | src/System.ServiceModel.Security/tests/ServiceModel/SecurityKeyTypeTest.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.IdentityModel.Tokens;
using Infrastructure.Common;
using Xunit;
public static class SecurityKeyTypeT... | mit | C# | |
296e0099c138cf43317c64cb43956e473a6e6429 | Add a note class | wrightg42/todo-list,It423/todo-list | Todo-List/Todo-List/Note.cs | Todo-List/Todo-List/Note.cs | // Note.cs
// <copyright file="Note.cs"> This code is protected under the MIT License. </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Todo_List
{
/// <summary>
/// A data reprisentation of a note.
/// </summary>
... | mit | C# | |
2b944b4b8a898372a010931baef808a9b7b14f75 | Create TS2.cs | neilopet/TeamSpeak2-Session-Hijack | TS2.cs | TS2.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TS2Terrorist
{
class TS2
{
/* Class */
public const ushort STANDARD = 0xbef0;
public const ushort ACK = 0xbef1;
public const ushort CLIENT_VOICE = 0xbef2... | apache-2.0 | C# | |
feba615105152482c5cc0361b71c6c7186346784 | Add choosemodule | Auxes/Dogey | src/Dogey/Modules/ChooseModule.cs | src/Dogey/Modules/ChooseModule.cs | using Discord.Commands;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Dogey.Modules
{
[RequireEnabled]
public class ChooseModule : DogeyModuleBase
{
private readonly Random _random;
public ChooseModule(Random random)
{
... | apache-2.0 | C# | |
aae6f1460c48f3df0ed484ea39e4e0f280aa38e0 | Fix break | Janisku7/live.asp.net,jmatthiesen/VSTACOLive,peterblazejewicz/live.asp.net,reactiveui/website,hanu412/live.asp.net,rmarinho/live.asp.net,aspnet/live.asp.net,sejka/live.asp.net,SaarCohen/live.asp.net,peterblazejewicz/live.asp.net,yongyi781/live.asp.net,pakrym/kudutest,hanu412/live.asp.net,M-Zuber/live.asp.net,pakrym/kud... | src/live.asp.net/Models/LiveShowDetails.cs | src/live.asp.net/Models/LiveShowDetails.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace live.asp.net.Models
{
public class LiveShowDetails
{
public int Id { get; set; }
public string LiveShowEmbedUrl { get; set; }
public DateTime? NextShowDateUtc { get; set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace live.asp.net.Models
{
public class LiveShowDetails
{
public int Id { get; set; }
public string LiveShowEmbedUrl { get; set; }
public DateTime? NextShowDate { get; set; }
... | mit | C# |
3cb86d2226222d77d671ce48bd85f8668a1d9299 | Add code behind for the Navigation Panel resource file | grantcolley/wpfcontrols | DevelopmentInProgress.WPFControls/NavigationPanel/NavigationPanelResources.cs | DevelopmentInProgress.WPFControls/NavigationPanel/NavigationPanelResources.cs | using System.Windows.Controls;
using System.Windows.Input;
namespace DevelopmentInProgress.WPFControls.NavigationPanel
{
partial class NavigationPanelResources
{
private void ExpanderImageMouseDown(object sender, MouseButtonEventArgs e)
{
throw new System.NotImplementedException();... | apache-2.0 | C# | |
ce2d6d20b08043c2239aba5467965d5ba85e23b0 | Add a failing test with a nullable generic struct (#624) | Fody/PropertyChanged | TestAssemblies/AssemblyToProcess/ClassWithNullableGenericStruct.cs | TestAssemblies/AssemblyToProcess/ClassWithNullableGenericStruct.cs | using PropertyChanged;
[AddINotifyPropertyChangedInterface]
public class ParentOfNullableGenericStruct<T>
{
public GenericStruct<T>? ChildProperty { get; set; }
}
public struct GenericStruct<T>
{
public T Value { get; }
}
| mit | C# | |
4249fca7f90845eb9bac340003f29c1d0f07bed7 | Add NumberUtils class | whampson/bft-spec,whampson/cascara | Src/WHampson.BFT/NumberUtils.cs | Src/WHampson.BFT/NumberUtils.cs | #region License
/* Copyright (c) 2017 Wes Hampson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | mit | C# | |
fa3654fe4622f491e8a72d51fbf532db03c2bc6c | Create RegistrationInfoDump.cs | Excel-DNA/Samples | Misc/RegistrationInfoDump.cs | Misc/RegistrationInfoDump.cs | using System;
using System.Collections.Generic;
using Excel = Microsoft.Office.Interop.Excel;
using ExcelDna.Integration;
using System.Diagnostics;
public static class RegistrationInfoDump
{
// This macro retrieves and dumpt to a new sheet (in the ActiveWorkbook) a list of all the loaded add-ins,
// as well ... | mit | C# | |
54c72db118edcb37908c95b685c8225cf8001c9b | Add search item view model | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/NavBar/SearchItemViewModel.cs | WalletWasabi.Fluent/ViewModels/NavBar/SearchItemViewModel.cs | using System;
using System.Windows.Input;
using ReactiveUI;
namespace WalletWasabi.Fluent.ViewModels.NavBar
{
public class SearchItemViewModel : RoutableViewModel
{
public SearchItemViewModel(NavigationStateViewModel navigationState, NavigationTarget navigationTarget, string iconName, string title, Func<RoutableVi... | mit | C# | |
f00bef518a9f42489abd730da584fa1a96372e3c | remove quotes | pashute/docs.particular.net,pedroreys/docs.particular.net,WojcikMike/docs.particular.net,eclaus/docs.particular.net,yuxuac/docs.particular.net | samples/pipeline/stream-properties/Version_4/Shared/StreamReceiveBehavior.cs | samples/pipeline/stream-properties/Version_4/Shared/StreamReceiveBehavior.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using NServiceBus.Pipeline;
using NServiceBus.Pipeline.Contexts;
#pragma warning disable 618
public class StreamReceiveBehavior : IBehavior<ReceiveLogicalMessageContext>
{
string location;
public StreamReceiveBehavior(St... | using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using NServiceBus.Pipeline;
using NServiceBus.Pipeline.Contexts;
#pragma warning disable 618
public class StreamReceiveBehavior : IBehavior<ReceiveLogicalMessageContext>
{
string location;
public StreamReceiveBehavior(St... | apache-2.0 | C# |
4ff4f14b50495898b76a347cbba0fdba1f155334 | Use value formatters to describe asserted call | adamralph/FakeItEasy,blairconrad/FakeItEasy,FakeItEasy/FakeItEasy,FakeItEasy/FakeItEasy,blairconrad/FakeItEasy,adamralph/FakeItEasy,thomaslevesque/FakeItEasy,thomaslevesque/FakeItEasy | src/FakeItEasy/Expressions/ArgumentConstraints/EqualityArgumentConstraint.cs | src/FakeItEasy/Expressions/ArgumentConstraints/EqualityArgumentConstraint.cs | namespace FakeItEasy.Expressions.ArgumentConstraints
{
using System;
using System.Diagnostics.CodeAnalysis;
using FakeItEasy.Core;
internal class EqualityArgumentConstraint
: IArgumentConstraint
{
public EqualityArgumentConstraint(object expectedValue)
{
... | namespace FakeItEasy.Expressions.ArgumentConstraints
{
using System;
using System.Diagnostics.CodeAnalysis;
using FakeItEasy.Core;
internal class EqualityArgumentConstraint
: IArgumentConstraint
{
public EqualityArgumentConstraint(object expectedValue)
{
... | mit | C# |
cb0ee66c8990ee64659248c5511f92e79f3947d2 | Create QuarkPairChallenge.cs | Zephyr-Koo/sololearn-challenge | QuarkPairChallenge.cs | QuarkPairChallenge.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// https://www.sololearn.com/Discuss/622449/?ref=app
namespace SoloLearn
{
class Program
{
static void Main(string[] zephyr_koo)
{
var input1 = Console.ReadLine();
... | apache-2.0 | C# | |
35763a74fd75c18897d7236b4f58f2218c80135e | Add test scene | NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu,peppy/osu,smoogipoo/osu,peppy/osu | osu.Game.Rulesets.Taiko.Tests/Skinning/TestSceneKiaiHitExplosion.cs | osu.Game.Rulesets.Taiko.Tests/Skinning/TestSceneKiaiHitExplosion.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Taiko.Objects;
using osu.Game.Rulesets.Taiko.UI;
na... | mit | C# | |
5c52b9a462320f47795645d9e96f53912271a440 | add ViewModelBase class | pashchuk/Hospital-MVVM- | Hospital/DesktopApp/ViewModel/ViewModelBase.cs | Hospital/DesktopApp/ViewModel/ViewModelBase.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DesktopApp.ViewModel
{
public class ViewModelBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public virtual void O... | mit | C# | |
68cf40d61b085255809f043c74a554f157142376 | Add tests for synchronizer | binarymash/evelyn,binarymash/evelyn | src/Evelyn.Client.Tests/Synchronization/EnvironmentStateSynchronizerSpecs.cs | src/Evelyn.Client.Tests/Synchronization/EnvironmentStateSynchronizerSpecs.cs | namespace Evelyn.Client.Tests.Synchronization
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using AutoFixture;
using Client.Repository;
using Client.Synchronization;
using Domain;
using FluentAssertions;
using NSubstitute... | mit | C# | |
daa4c41905522d42287a3339dc88d017a052364a | Add AccountController file | StefH/KendoGridBinderEx | KendoGridBinderEx.Examples.MVC/Controllers/AccountController.cs | KendoGridBinderEx.Examples.MVC/Controllers/AccountController.cs | using System.Web.Mvc;
using KendoGridBinderEx.Examples.MVC.Models;
namespace KendoGridBinderEx.Examples.MVC.Controllers
{
public class AccountController : Controller
{
public ActionResult Login(LoginUserVM model)
{
return View();
}
}
} | mit | C# | |
2804519d3e404a29680753d19e9a480ebe5da930 | Create CPmult.cs | InfernumDeus/Csharp-PokemonGO-battle-simulation | source/CPmult.cs | source/CPmult.cs | using System;
using System.Collections.Generic;
namespace CPmult
{
public static class cp_mult
{
public static List<float> m = new List<float> {
0.094F, 0.135137432F, //1-1.5
0.16639787F, 0.192650919F, //2-2.5
0.21573247F, 0.236572661F,
0.25... | mit | C# | |
70b273a6ab90901d307013b45b73e0128005fb3c | verify users can serialize custom errors | Research-Institute/json-api-dotnet-core,json-api-dotnet/JsonApiDotNetCore,Research-Institute/json-api-dotnet-core | test/JsonApiDotNetCoreExampleTests/Acceptance/Extensibility/CustomErrorTests.cs | test/JsonApiDotNetCoreExampleTests/Acceptance/Extensibility/CustomErrorTests.cs | using DotNetCoreDocs;
using JsonApiDotNetCoreExample;
using DotNetCoreDocs.Writers;
using Newtonsoft.Json;
using JsonApiDotNetCore.Internal;
using JsonApiDotNetCore.Serialization;
using Xunit;
using System.Diagnostics;
namespace JsonApiDotNetCoreExampleTests.Acceptance.Extensibility
{
public class CustomErrorTests... | mit | C# | |
5bf498eb5e7ad316248ed4200904218c5255b1e2 | Add V1 tests | sharwell/roslyn,panopticoncentral/roslyn,CyrusNajmabadi/roslyn,AlekseyTs/roslyn,weltkante/roslyn,wvdd007/roslyn,KirillOsenkov/roslyn,aelij/roslyn,tannergooding/roslyn,wvdd007/roslyn,davkean/roslyn,mgoertz-msft/roslyn,shyamnamboodiripad/roslyn,AlekseyTs/roslyn,heejaechang/roslyn,ErikSchierboom/roslyn,reaction1989/roslyn... | src/VisualStudio/CSharp/Test/PersistentStorage/SQLiteV1PersistentStorageTests.cs | src/VisualStudio/CSharp/Test/PersistentStorage/SQLiteV1PersistentStorageTests.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;
using System.IO;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Host;
using Microsoft.Cod... | mit | C# | |
342ef10ad51cc111478a928e72455c07e368d744 | increase timeout to 10 minutes | half-ogre/qed,Haacked/qed | qed/Functions/RunProcess.cs | qed/Functions/RunProcess.cs | using System;
using System.Diagnostics;
using System.Threading.Tasks;
namespace qed
{
public static partial class Functions
{
public static int RunProcess(
Process process,
Action<string> log)
{
const int timeout = 10 /* minutes */ * 60 /* seconds */ * 1000... | using System;
using System.Diagnostics;
using System.Threading.Tasks;
namespace qed
{
public static partial class Functions
{
public static int RunProcess(
Process process,
Action<string> log)
{
const int timeout = 5 /* minutes */ * 60 /* seconds */ * 1000 ... | mit | C# |
a556ced9b07f18e328cc311b1688ccd09055e547 | fix replacement char | dhoehna/corefx,MaggieTsang/corefx,alexperovich/corefx,marksmeltzer/corefx,Jiayili1/corefx,rahku/corefx,krk/corefx,nchikanov/corefx,jlin177/corefx,seanshpark/corefx,cydhaselton/corefx,weltkante/corefx,krk/corefx,twsouthwick/corefx,marksmeltzer/corefx,ptoonen/corefx,stone-li/corefx,DnlHarvey/corefx,fgreinacher/corefx,nba... | src/System.Security.Cryptography.Xml/tests/TestHelpers.cs | src/System.Security.Cryptography.Xml/tests/TestHelpers.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.IO;
namespace System.Security.Cryptography.Xml.Tests
{
internal static class TestHelpers
{
... | // 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.IO;
namespace System.Security.Cryptography.Xml.Tests
{
internal static class TestHelpers
{
... | mit | C# |
0fb1c0ab595ac451e69051bede1c39ed40b1c10a | Add enum description practice. | AxeDotNet/AxePractice.CSharpViaTest | src/CSharpViaTest.OtherBCLs/HandleReflections/GetCustomAttributeOfEnumValue.cs | src/CSharpViaTest.OtherBCLs/HandleReflections/GetCustomAttributeOfEnumValue.cs | using System;
using System.Linq;
using System.Reflection;
using Xunit;
namespace CSharpViaTest.OtherBCLs.HandleReflections
{
static class EnumDescriptionExtension
{
public static string GetDescription<T>(this T value)
{
if (!(value is Enum))
{
throw new ... | mit | C# | |
9ff010d36c8e9afb4ab1d3ab2ad64aedce7147e0 | Add Collection Extension Tests | NickPolyder/FreeParkingSystem | Tests/FreeParkingSystem.Common.Tests/ExtensionMethods/CollectionExtensionsTests.cs | Tests/FreeParkingSystem.Common.Tests/ExtensionMethods/CollectionExtensionsTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using FreeParkingSystem.Common.ExtensionMethods;
using FreeParkingSystem.Testing;
using Shouldly;
using Xunit;
namespace FreeParkingSystem.Common.Tests.ExtensionMethods
{
public class CollectionExtensionsTests
{
[Theory, FixtureData]
public void... | mit | C# | |
c792c2f67695dc112956bb4378a68bddb25335b9 | Create BinaryObjectSerializationTypedTestCase.cs | SteamDatabase/ValveKeyValue | ValveKeyValue/ValveKeyValue.Test/Binary/BinaryObjectSerializationTypedTestCase.cs | ValveKeyValue/ValveKeyValue.Test/Binary/BinaryObjectSerializationTypedTestCase.cs | using System;
using System.IO;
using NUnit.Framework;
namespace ValveKeyValue.Test
{
class BinaryObjectSerializationTypedTestCase
{
class TestObject
{
public string key { get; set; } = "value";
public string key_utf8 { get; set; } = "邪恶的战";
[KVProperty("int"... | mit | C# | |
d905ef53b37ac287c2072fb8bcb26c8704211c27 | Add test scene for mania composer | UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu-new,peppy/osu,ppy/osu,smoogipoo/osu | osu.Game.Rulesets.Mania.Tests/TestSceneManiaHitObjectComposer.cs | osu.Game.Rulesets.Mania.Tests/TestSceneManiaHitObjectComposer.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 NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containe... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.