doc_id stringlengths 36 36 | metadata dict | input stringlengths 28 4.3k | output stringlengths 11 5.45k |
|---|---|---|---|
e916b2ed-35a3-49d6-8fa4-24c0c6ce51e2 | {
"language": "C#"
} | ```c#
```
Add Singleton for the Session | ```c#
using ScheduleManager.forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ScheduleManager.model;
namespace ScheduleManager.common
{
class SingletonSesion
{
private volatile static SingletonSe... |
6b010976-610c-4b46-b20d-bc4dcc7088ba | {
"language": "C#"
} | ```c#
```
Check if the query is a projection-query before trying to add it to the cache (nhibernate will choke on that) | ```c#
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Cache;
using NHibernate.Cfg;
using NHibernate.Engine;
using NHibernate.Type;
namespace BoC.Persistence.NHibernate.Cache
{
/// <summary>
/// This class works aroun... |
a814ab46-d1ad-4a41-b178-1e0215475613 | {
"language": "C#"
} | ```c#
```
Verify correct output from ServiceBusConnection.GetEntityName | ```c#
/*
* Copyright (c) 2021, Norsk Helsenett SF and contributors
* See the file CONTRIBUTORS for details.
*
* This file is licensed under the MIT license
* available at https://raw.githubusercontent.com/helsenorge/Helsenorge.Messaging/master/LICENSE
*/
using Helsenorge.Messaging.ServiceBus;
using Microsoft.Ext... |
81e8ff2f-465c-4cd3-bd1d-092f3b1bea73 | {
"language": "C#"
} | ```c#
```
Add the skeleton for the temp attachments module | ```c#
/*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code ... |
36c2a838-8ee0-4d33-be69-2b81bcfacc4d | {
"language": "C#"
} | ```c#
using System;
using NUnit.Framework;
using SevenDigital.Api.Wrapper.Exceptions;
using SevenDigital.Api.Schema.ArtistEndpoint;
using SevenDigital.Api.Schema.LockerEndpoint;
namespace SevenDigital.Api.Wrapper.Integration.Tests.Exceptions
{
[TestFixture]
public class ApiXmlExceptionTests
{
[Test]
public void... | ```c#
using System;
using NUnit.Framework;
using SevenDigital.Api.Wrapper.Exceptions;
using SevenDigital.Api.Schema.ArtistEndpoint;
using SevenDigital.Api.Schema.LockerEndpoint;
namespace SevenDigital.Api.Wrapper.Integration.Tests.Exceptions
{
[TestFixture]
public class ApiXmlExceptionTests
{
[Test]
public void... |
6fda37d7-80f3-4c13-b2e0-e1375f2256db | {
"language": "C#"
} | ```c#
```
Add characterization tests for object members | ```c#
namespace FakeItEasy.Specs
{
using FakeItEasy.Core;
using FluentAssertions;
using Xbehave;
public static class ObjectMembersSpecs
{
[Scenario]
public static void DefaultEqualsWithSelf(IFoo fake, bool equals)
{
"Given a fake"
.x((... |
a8d258ca-0d05-4ccc-9392-ec7fa4cc53c0 | {
"language": "C#"
} | ```c#
namespace ZocMonLib.Web
{
public class WebSettingsExtensionOptions
{
public ISerializer Serializer { get; set; }
public IRuntime Runtime { get; set; }
public IStorageFactory StorageFactory { get; set; }
public ISystemLoggerProvider LoggerProvider { get; set; }
p... | ```c#
namespace ZocMonLib.Web
{
public class WebSettingsExtensionOptions
{
public IResourceFinder ResourceFinder { get; set; }
public ISerializer Serializer { get; set; }
public IRuntime Runtime { get; set; }
public IStorageFactory StorageFactory { get; set; }
public ... |
02777dfc-1e0a-48ed-b5e7-87e5dcf56b86 | {
"language": "C#"
} | ```c#
```
Support convert to or from struct type | ```c#
// Copyright (c) kuicker.org. All rights reserved.
// Modified By YYYY-MM-DD
// kevinjong 2016-03-04 - Creation
using System;
namespace IsTo.Tests
{
public struct TestStruct
{
public int Property11;
public int Property12;
public int Property13;
}
}
``` |
6bff9a6e-7c35-4b44-ae28-40aeb7058460 | {
"language": "C#"
} | ```c#
using BenchmarkDotNet.Tasks;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BenchmarkDotNet.Samples.Other
{
[BenchmarkTask(platform: BenchmarkPlatform.X64, jitVersion: BenchmarkJitVersion.RyuJit)]
public class Cpu_Atomics
{
private int a;
... | ```c#
using BenchmarkDotNet.Tasks;
namespace BenchmarkDotNet.Samples.CPU
{
[BenchmarkTask(platform: BenchmarkPlatform.X64, jitVersion: BenchmarkJitVersion.RyuJit)]
public class Cpu_Atomics
{
private int a;
private object syncRoot = new object();
[Benchmark]
[OperationsPerI... |
0d293d92-7863-4d52-b3dd-ac1cf59f92b8 | {
"language": "C#"
} | ```c#
```
Add test scene for `MultiplayerPlayer` | ```c#
// 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.Testing;
using osu.Game.Rulesets.Osu;
using osu.Game.Screens.OnlinePlay.Multiplayer;
namespace osu.Ga... |
3c16484d-0d7d-491c-839b-e6000ee55d93 | {
"language": "C#"
} | ```c#
```
Add a method for getting settings UI components automatically from a target class | ```c#
// 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 System.Reflection;
using JetBrains.Annotations;
using osu.Framework.Bindables;
using osu.Fr... |
5534aad0-0958-429a-89c7-8d8eebc23b75 | {
"language": "C#"
} | ```c#
```
Add possibility to mock ConfigurationManager | ```c#
using System;
using System.Configuration;
using System.Linq;
using System.Reflection;
namespace UnitTests.Helpers
{
// the default app.config is used.
/// <summary>
/// Allow to override default configuration file access via ConfigurationService for piece of code
/// Main purpos... |
73996772-51b7-4ab7-9079-ff6c5dc3dbf8 | {
"language": "C#"
} | ```c#
```
Add ApplicationUser class for Identity and DbContext | ```c#
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
namespace Gnx.Models
{
public class ApplicationUser : IdentityUser
{
... |
314a4616-a81e-491c-8a85-d139a5355cc5 | {
"language": "C#"
} | ```c#
```
Create read-only dictionary for .NET version 2.0 | ```c#
#if PS20
using System;
using System.Collections.Generic;
namespace WpfCLR
{
public class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>
{
public const string ReadOnlyErrorMessage = "Dictionary is read-only";
private IDictionary<TKey, TValue> _innerDictionary;
protected IDictionary<TKey,... |
b3211962-cd0d-4a70-ae9e-1e5118fe3efc | {
"language": "C#"
} | ```c#
```
Sort chars by freq - monad | ```c#
// https://leetcode.com/problems/sort-characters-by-frequency/
// https://leetcode.com/submissions/detail/83684155/
//
// Submission Details
// 34 / 34 test cases passed.
// Status: Accepted
// Runtime: 188 ms
// Submitted: 0 minutes ago
public class Solution {
public string FrequencyS... |
a1a853dd-3fbc-4601-a11c-1b32987b0276 | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.ComponentModel
{
/// <summary>
/// Provides functionality to commit or rollback changes to an object that is used as a data source.
/... | ```c#
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.ComponentModel
{
/// <summary>
/// Provides functionality to commit or rollback changes to an object that is used as a data source.
/... |
bbcc190b-a7b0-4b04-b0f4-cf47dcce4650 | {
"language": "C#"
} | ```c#
```
Check if an array is preorder | ```c#
// http://www.geeksforgeeks.org/check-if-a-given-array-can-represent-preorder-traversal-of-binary-search-tree/
//
// Given an array of numbers, return true if given array can represent preorder traversal of a Binary Search Tree,
// else return false. Expected time complexity is O(n).
//
using System;
using Syste... |
1c67e983-8b42-4985-abde-6e26e4a79e56 | {
"language": "C#"
} | ```c#
```
Revert "remove old assemblyinfo (wasn't included in the solution)" | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTit... |
28ff139e-12ac-4981-aeda-fb75517dc465 | {
"language": "C#"
} | ```c#
```
Add type to request comment help | ```c#
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
{
class Comme... |
2ed01144-4089-4b33-9e56-1233902acb45 | {
"language": "C#"
} | ```c#
```
Introduce exponential backoff for executors | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Gremlin.Net.Driver.Exceptions;
namespace ExRam.Gremlinq.Core
{
public static class GremlinQueryExecutorExtensions
{
private sealed class ExponentialBackoffExecutor : IGr... |
b289381e-0688-4b05-904d-32c2c6f14724 | {
"language": "C#"
} | ```c#
```
Cover DelegateInvokingLoadBalancerCreator by unit tests. | ```c#
using System;
using System.Threading.Tasks;
using Moq;
using Ocelot.Configuration;
using Ocelot.Configuration.Builder;
using Ocelot.LoadBalancer.LoadBalancers;
using Ocelot.Middleware;
using Ocelot.Responses;
using Ocelot.ServiceDiscovery.Providers;
using Ocelot.Values;
using Shouldly;
using TestStack.BDDfy;
usi... |
8ea7b525-ddf6-473a-a277-a9a279d302e9 | {
"language": "C#"
} | ```c#
```
Add http request reason provider for Abp.Web | ```c#
using Abp.Dependency;
using Abp.EntityHistory;
using Abp.Runtime;
using JetBrains.Annotations;
using System.Web;
namespace Abp.Web.EntityHistory
{
/// <summary>
/// Implements <see cref="IEntityChangeSetReasonProvider"/> to get reason from HTTP request.
/// </summary>
public class HttpRequestEnt... |
9e3c9bdf-7dd5-47de-b629-8dcbb2540573 | {
"language": "C#"
} | ```c#
```
Add usability overload for IMockFactory | ```c#
using System;
using System.ComponentModel;
using System.Reflection;
namespace Moq.Sdk
{
/// <summary>
/// Usability functions for <see cref="IMockFactory"/>.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Advanced)]
public static class MockFactoryExtensions
{
/// <summary>
... |
d035cf56-2044-4887-9583-278d77a4929c | {
"language": "C#"
} | ```c#
```
Add test cases for crashes involving integer casts | ```c#
using System;
using NUnit.Framework;
namespace FastExpressionCompiler.UnitTests
{
[TestFixture]
public class CastTests
{
[Test]
public void Expressions_with_small_int_casts_should_not_crash()
{
//currently crashes with NullReferenceException
var x = 65... |
3d6adb7a-cfd5-40f4-b8f6-4996ea436024 | {
"language": "C#"
} | ```c#
```
Test to verify that minimal message body can be redelivered via the delayed transport (serialization issue) | ```c#
namespace MassTransit.Tests
{
using System;
using System.Linq;
using System.Threading.Tasks;
using MassTransit.Serialization;
using NUnit.Framework;
using TestFramework;
using TestFramework.Messages;
[TestFixture]
public class When_consuming_a_minimal_message_body :
I... |
6c4f1c96-03a3-4ffd-9784-750efa0991f0 | {
"language": "C#"
} | ```c#
```
Remove dupes from list II | ```c#
// https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/
// Given a sorted linked list, delete all nodes that have duplicate numbers,
// leaving only distinct numbers from the original list.
// https://leetcode.com/submissions/detail/58844735/
//
// Submission Details
// 166 / 166 test ... |
81c0f1b0-784f-4a03-80b3-50fb87be3a98 | {
"language": "C#"
} | ```c#
```
Add tests for converting RGB with HSV | ```c#
namespace BigEgg.Tools.PowerMode.Tests.Utils
{
using System.Drawing;
using System.Linq;
using System.Reflection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BigEgg.Tools.PowerMode.Utils;
public class ColorExtensionTest
{
[TestClass]
public class HSVCon... |
c3ec0404-5f55-40ff-8256-f10ded285963 | {
"language": "C#"
} | ```c#
```
Copy Text objects to other layer and delete surce | ```c#
//Synchronous template
//-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 30.03.2017
// Autor Guenther.Schindler
//
// Empty template to fill for synchronous script.
//---------------------------------------------------... |
40cac8cb-be40-4d2c-b22a-81e2918a07b9 | {
"language": "C#"
} | ```c#
```
Implement betting and getting popular keywords | ```c#
using System;
using StackExchange.Redis;
using System.Threading;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace CollapsedToto
{
[Prefix("/round")]
public class RoundModule : BaseModule
{
private static ConnectionMultiplexer redis = null;
private static IDatabase Datab... |
0c8dea80-bca8-4082-9027-755f9b7d6d63 | {
"language": "C#"
} | ```c#
```
Add benchmark for dependency injection. | ```c#
/*
using BenchmarkDotNet.Attributes;
using Robust.Shared.IoC;
namespace Content.Benchmarks
{
// To actually run this benchmark you'll have to make DependencyCollection public so it's accessible.
public class DependencyInjectBenchmark
{
[Params(InjectMode.Reflection, InjectMode.DynamicMethod)... |
2f7dbf36-42a6-430b-b972-fe4c31538cee | {
"language": "C#"
} | ```c#
```
Add texture cropping test case | ```c#
// 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.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Primitives;
using osu.Framework.... |
54e946ad-7b9b-45c6-92c1-34c6d86f68e5 | {
"language": "C#"
} | ```c#
// 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.Diagnostics;
using System.Runtime.InteropServices;
using Xunit;
namespace System.IO.Tests
{
... | ```c#
// 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.Diagnostics;
using System.Runtime.InteropServices;
using Xunit;
namespace System.IO.Tests
{
... |
b84a0e45-cc73-4834-a75f-290e8c2dd4b1 | {
"language": "C#"
} | ```c#
```
Add unit tests for the SqlServerStorageEngine class | ```c#
// Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
6d274a81-365c-405c-9ec7-1e23b12d2d2b | {
"language": "C#"
} | ```c#
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio.Lookups;
class Example
{
static void Main(string[] args)
{
// Find your Account Sid and Auth Token at twilio.com/user/account
const string accountSid = "{{ account_sid }}";
const string authToken ... | ```c#
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio.Lookups;
class Example
{
static void Main(string[] args)
{
// Find your Account Sid and Auth Token at twilio.com/console
const string accountSid = "{{ account_sid }}";
const string authToken = "{{... |
c1f3fa78-1651-43f2-9107-3b7ff4614b99 | {
"language": "C#"
} | ```c#
```
Add order item delete support | ```c#
@model Orders.com.Web.MVC.ViewModels.OrderItemViewModel
@{
ViewBag.Title = "Delete";
}
<h2>Delete Item</h2>
<h3>Are you sure you want to delete this?</h3>
<div class="form-horizontal">
<div class="form-group">
<label class="control-label col-md-1">Category</label>
<div class="col-md-1... |
0d3ce9fa-bc7b-4965-ab39-c08a55b64fab | {
"language": "C#"
} | ```c#
```
Create a class that acts as a configuration node for cache providers | ```c#
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.IO;
using System.Configuration;
using Nohros.Resources;
namespace Nohros.Configuration
{
/// <summary>
/// Contains configuration informations for cache providers.
... |
beea8bbe-3c15-4d57-90a6-efd2dc8d4cc1 | {
"language": "C#"
} | ```c#
```
Add a more specific GenericListModel to reduce the amount of code | ```c#
using System.Collections;
using System.Collections.Generic;
using Xe.Tools.Wpf.Models;
namespace OpenKh.Tools.Common.Models
{
public class MyGenericListModel<T> : GenericListModel<T>, IEnumerable<T>
{
public MyGenericListModel(IEnumerable<T> list) : base(list)
{
}
public... |
b13b2acb-421c-4da0-a9bc-ba00468bffab | {
"language": "C#"
} | ```c#
```
Add build config info for ArtifactDependencies | ```c#
namespace FluentTc.Domain
{
public class SourceBuildType
{
public override string ToString()
{
return "source-buildType";
}
public string Id { get; set; }
public string Name { get; set; }
public string ProjectName { get; set; }
public s... |
1441d6de-c5ca-49f9-9751-a2f64bfdd709 | {
"language": "C#"
} | ```c#
```
Add realtime multiplayer test scene | ```c#
// 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.Game.Screens.Multi.Components;
namespace osu.Game.Tests.Visual.RealtimeMultiplayer
{
public class TestSceneRealtimeMultiplayer : RealtimeMultiplayerT... |
cc700456-7f50-48d6-b5a6-74b75673a190 | {
"language": "C#"
} | ```c#
```
Add tests for Get & AddToPayload | ```c#
using Bugsnag.Payload;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace Bugsnag.Tests
{
public class PayloadExtensionsTests
{
[Theory]
[MemberData(nameof(PayloadTestData))]
public void AddToPayloadTests(Dict... |
70832c75-fb34-4ea4-b4af-f4227094dc33 | {
"language": "C#"
} | ```c#
```
Add test case for TypeRegistry | ```c#
using Htc.Vita.Core.Util;
using Xunit;
namespace Htc.Vita.Core.Tests
{
public class TypeRegistryTest
{
[Fact]
public static void Default_0_RegisterDefault()
{
TypeRegistry.RegisterDefault<BaseClass, SubClass1>();
}
[Fact]
public static void De... |
cd81a582-0ce8-40e8-ba6d-d3ad8a9cd864 | {
"language": "C#"
} | ```c#
```
Add reflection exception log function | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
namespace Recipe.DebugAndException
{
public static class ReflectException
{
public static void ReflectionException()
{
Type reflectedCl... |
56fb3ef3-428c-4753-8b3a-e24734169b21 | {
"language": "C#"
} | ```c#
```
Create Global Supressions for CA warnings on THNETII.CommandLine.Hosting | ```c#
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMess... |
6a03d36e-dc8f-4bba-b91d-2178f1513574 | {
"language": "C#"
} | ```c#
```
Add test coverage of login dialog | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays.... |
9c6c7fbe-f322-433e-9051-e16faa655a5e | {
"language": "C#"
} | ```c#
```
Add .net 4.5 compatibility shim classes | ```c#
// ----------------------------------------------------
// THIS WHOLE File CAN GO AWAY WHEN WE TARGET 4.5 ONLY
// ----------------------------------------------------
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
namespace Octokit
{
[SuppressMessage("Micr... |
494f0955-6e32-447b-ad5f-26ca3cc7cd49 | {
"language": "C#"
} | ```c#
```
Add view model factory interface | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PhotoLife.Factories
{
interface IViewModelFactory
{
}
}
``` |
60059304-4de8-42c5-a0dc-f2dac3d95f09 | {
"language": "C#"
} | ```c#
```
Add an expression interpretation bug test | ```c#
using System;
using System.Linq.Expressions;
using Xunit;
namespace ExpressionToCodeTest
{
public class ExpressionInterpretationBug
{
struct AStruct
{
public int AValue;
}
class SomethingMutable
{
public AStruct AStructField... |
f8fa9f49-03de-4245-a58d-ed53f7b908c4 | {
"language": "C#"
} | ```c#
```
Add benchmarks for bindable binding | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using BenchmarkDotNet.Attributes;
using osu.Framework.Bindables;
namespace osu.Framework.Benchmarks
{
public class BenchmarkBindableInstantiation... |
3845064d-1936-4884-be17-a7993dabb321 | {
"language": "C#"
} | ```c#
```
Replace missing file lost during merge | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.Alias.Implementation.Holder;
using Orchard.Alias.Implementation.Storage;
namespace Orchard.Alias.Implementation.Updater {
public interface IAliasHolderUpdater : IDependency {
void Refresh();
}
... |
71bb3cc4-93c8-44c6-a5b1-c74cd6f5000c | {
"language": "C#"
} | ```c#
```
Add a static resources library | ```c#
// Resources.cs
// <copyright file="Resources.cs"> This code is protected under the MIT License. </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EnigmaUtilities
{
/// <summary>
/// A static class with commonly use... |
83076a30-6fbf-4027-969b-a9d65fe8faf8 | {
"language": "C#"
} | ```c#
```
Add namespace & type for experimental work | ```c#
#region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2018 Atif Aziz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... |
a2a2af20-44c2-428e-bedd-a38ae36b9d63 | {
"language": "C#"
} | ```c#
```
Add failing test for compiled queries with Includes | ```c#
using Marten.Linq;
using Marten.Services;
using Marten.Services.Includes;
using Marten.Testing.Documents;
using Shouldly;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Xunit;
namespace Marten.Testing.Bugs
{
public class compiled_query_pr... |
7e07f92d-2dca-4a42-997a-904f2f46c1c3 | {
"language": "C#"
} | ```c#
using System;
namespace ZocMonLib.Service.Reduce
{
public class ReduceServiceRunner
{
private readonly ISystemLogger _logger;
private System.Timers.Timer _timer;
private readonly ISettings _settings;
public ReduceServiceRunner(ISettings settings)
{
_lo... | ```c#
using System;
namespace ZocMonLib.Service.Reduce
{
public class ReduceServiceRunner
{
private readonly ISystemLogger _logger;
private System.Timers.Timer _timer;
private readonly ISettings _settings;
public ReduceServiceRunner(ISettings settings)
{
... |
5dcaa87a-bb96-4ab3-9ac9-4bcf26be29cc | {
"language": "C#"
} | ```c#
```
Add test to cover `RegisterBlockHelper` readme example | ```c#
using System.Collections.Generic;
using Xunit;
namespace HandlebarsDotNet.Test
{
public class ReadmeTests
{
[Fact]
public void RegisterBlockHelper()
{
var handlebars = Handlebars.Create();
handlebars.RegisterHelper("StringEqualityBlockHelper", (output, opti... |
e9802b0c-039a-4fec-9e3b-deae1283ad11 | {
"language": "C#"
} | ```c#
```
Add usage examples for double-checking doc examples. | ```c#
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
using static Nito.ConnectedProperties.ConnectedProperty;
namespace UnitTests
{
class UsageExamples
{
[Fact]
public void SimpleUsage()
{
var obj = new object();
var namePropert... |
5b94c3b9-82d1-428b-a110-958fa130cbb5 | {
"language": "C#"
} | ```c#
```
Add path.cs to source control | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Chutes.Optimization.Entities
{
public class Path
{
LinkedList<Gamespace> _path = new LinkedList<Gamespace>();
public Path()
{
_... |
0e45d1e2-dd7c-4174-98cc-35562472cb73 | {
"language": "C#"
} | ```c#
```
Add coin flipping command. Sometimes lands on it's side. No idea why! | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using TwitchLib;
using TwitchLib.TwitchClientClasses;
using System.Net;
namespace JefBot.Commands
{
internal class CoinPluginCommand : IPluginCommand
{
public string PluginName => "Coin";
public string Command => "coin";
... |
23fbbda5-9323-4aac-88ab-e8896aa018e0 | {
"language": "C#"
} | ```c#
```
Add suport of nullable reference type attributes for lower TFM | ```c#
#if !NETSTANDARD2_1
namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, Inherited = false)]
sealed class AllowNullAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
... |
daa8853d-7d95-424e-a647-fe8c848043b7 | {
"language": "C#"
} | ```c#
```
Add the builder of DateRange | ```c#
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace NBi.Core.Members.Ranges
{
internal class DateRangeBuilder : BaseBuilder
{
protected new DateRange Range
{
get
{
return (DateRange)... |
8984a275-653b-4c55-9621-935a481030b0 | {
"language": "C#"
} | ```c#
// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using OpenTK.Graphics.ES30;
namespace osu.Framework.Graphics
{
public struct BlendingInfo
{
public BlendingFactorSrc Source;
... | ```c#
// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using OpenTK.Graphics.ES30;
namespace osu.Framework.Graphics
{
public struct BlendingInfo
{
public BlendingFactorSrc Source;
... |
76003327-2cee-4ccd-b9fb-0b96864ba79b | {
"language": "C#"
} | ```c#
```
Add tests for the BarLineGenerator | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Beatmaps.Timing;
using osu.Game.Rulesets.Ob... |
48c318dc-10bb-4410-85bf-cb7c7f6a7942 | {
"language": "C#"
} | ```c#
```
Create a supplier that supply elements continually(Stream). | ```c#
using System;
namespace Nohros
{
/// <summary>
/// A implementation of the <see cref="ISupplier{T}"/> class that supply
/// elements of type <typeparamref name="T"/> in a sequence.
/// </summary>
/// <typeparam name="T">
/// The type of objects supplied.
/// </typeparam>
public interf... |
af64999d-3cd1-43af-874f-62abdbaff118 | {
"language": "C#"
} | ```c#
```
Add test scene for drawings screen | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.IO;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Platform;
using osu.Game.Graphics.Cursor;
using osu.Game.Tourname... |
e960d51c-cf54-4492-8022-8d1ac103caa6 | {
"language": "C#"
} | ```c#
```
Add examples and unit tests for comparing structs. | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using Nito.Comparers;
using Nito.Comparers.Util;
using Xunit;
namespace UnitTests
{
public class ComparableBase_Struct_DefaultComparerUnitTests
{
private struct Person : IComparable<Person>, IEquatable<Person>, IComparable
... |
e4679171-5fdb-45f3-a531-c6fb347a23f2 | {
"language": "C#"
} | ```c#
```
Reorder list - off by one | ```c#
// https://leetcode.com/problems/reorder-list/
//
// Given a singly linked list L: L0→L1→…→Ln-1→Ln,
// reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
//
// You must do this in-place without altering the nodes' values.
//
// For example,
// Given {1,2,3,4}, reorder it to {1,4,2,3}.
using System;
public class... |
858e058f-e666-4d47-9a14-d261c6b75835 | {
"language": "C#"
} | ```c#
```
Add unit test for compute max stack override. | ```c#
using AsmResolver.DotNet.Builder;
using AsmResolver.DotNet.Code.Cil;
using AsmResolver.DotNet.Signatures;
using AsmResolver.PE.DotNet.Cil;
using AsmResolver.PE.DotNet.Metadata.Tables.Rows;
using Xunit;
namespace AsmResolver.DotNet.Tests.Builder
{
public class CilMethodBodySerializerTest
{
[Theory... |
248e9d6c-5531-4088-ad54-9f2c8f7125df | {
"language": "C#"
} | ```c#
```
Add RenderTreeBuilder extension methods for "prevent default" and "stop bubbling" | ```c#
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Components.Rendering;
using Microsoft.AspNetCore.Components.RenderTree;
namespace Microsoft.AspNetCore.Components.Web
... |
6ec13d55-7920-4a1f-9ac0-a153e9bdaf3b | {
"language": "C#"
} | ```c#
```
Add a TestCase for looong combos | ```c#
// 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;
using osu.Game.Rulesets.Osu.Objects;
using osuTK;
namespace osu.Game.Rulesets.Osu.Tests
{
[TestFixture]
pub... |
22ace5a4-7f98-4c17-b794-38caacc2c3b7 | {
"language": "C#"
} | ```c#
using System;
namespace System.ComponentModel.DataAnnotations
{
/// <summary>
/// Specifies that a data field value must
/// fall within the specified range.
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class StringLengthAttribute : ValidationAttribute
{
private... | ```c#
using System;
namespace System.ComponentModel.DataAnnotations
{
/// <summary>
/// Specifies that a data field value must
/// fall within the specified range.
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class StringLengthAttribute : ValidationAttribute
{
private... |
4d649378-03fb-48d3-a1ac-8daa595f9382 | {
"language": "C#"
} | ```c#
```
Select everything outside of pcb profile | ```c#
//Synchronous template
//-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 14.10.2015
// Autor Fabio Gruber
//
// Select all elements outside the board contour, e.g. to delete them.
//------------------------------------... |
c384fd1b-3d40-444d-ad8e-e1bb77625b3c | {
"language": "C#"
} | ```c#
```
Transform repeat rules into a tree | ```c#
using System.Linq;
using slang.Lexing.Rules.Core;
using slang.Lexing.Trees.Nodes;
namespace slang.Lexing.Trees.Transformers
{
public static class RepeatRuleExtensions
{
public static Tree Transform (this Repeat rule)
{
var tree = rule.Value.Transform ();
var trans... |
92f414ae-87c2-46bc-84c3-9ff6c02150bb | {
"language": "C#"
} | ```c#
```
Remove duplicates from sorted list II | ```c#
// https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/
// Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
//
// For example,
// Given 1->2->3->3->4->4->5, return 1->2->5.
// Given 1->1->1->2->3, return 2->3. ... |
51558408-7d2f-4fc0-931e-56c0585a25ce | {
"language": "C#"
} | ```c#
```
Add mock builder for CarsContextQuery | ```c#
using System.Collections.Generic;
using System.Linq;
using PathFinder.Cars.DAL.Model;
using PathFinder.Cars.WebApi.Queries;
namespace CarsControllersTests
{
public class CarContextQueryMockBuilder
{
private readonly CarContextMock _fakeQuery;
public CarContextQueryMockBuilder()
... |
3fe1e00f-a541-4a29-ba93-cb5dcf113eb6 | {
"language": "C#"
} | ```c#
```
Make metadata accessible without reflection | ```c#
#region Apache License
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.... |
3dda81c8-6bb7-4b6a-94f8-8e334dcaa521 | {
"language": "C#"
} | ```c#
```
Set Profil to fix Rectangle | ```c#
//-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 2014-04-24
// Autor support@easylogix.de
// www.pcb-investigator.com
// SDK online reference http://www.pcb-investigator.com/sites/default/files/documents/InterfaceDocumen... |
c4ce9443-f097-4795-8986-2f86f77ab6b5 | {
"language": "C#"
} | ```c#
```
Add missing file for Map tests | ```c#
using System;
using NUnit.Framework;
namespace InfiniMap.Test
{
[TestFixture]
public class MapTests
{
private Map createMap(int chunkSize, int chunksToFill)
{
var map = new Map(chunkSize, chunkSize);
for (int x = 0; x <= (chunksToFill * chunkSize-1); x++)
... |
5fe4ace4-7fe0-444a-8a2f-eeb76d8a3733 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using Glimpse.AspNet.Extensions;
using Glimpse.AspNet.Model;
using Glimpse.Core.Extensibility;
namespace Glimpse.AspNet.SerializationConverter
{
public class SessionModelConverter : SerializationConverter<List<SessionModel>>
{
public override object Convert(List... | ```c#
using System.Collections.Generic;
using Glimpse.AspNet.Extensions;
using Glimpse.AspNet.Model;
using Glimpse.Core.Extensibility;
using Glimpse.Core.Plugin.Assist;
namespace Glimpse.AspNet.SerializationConverter
{
public class SessionModelConverter : SerializationConverter<List<SessionModel>>
{
p... |
4046416b-b0f0-4c6f-9b7a-bc1dec2a2694 | {
"language": "C#"
} | ```c#
```
Add unit tests for SingleDisposable. | ```c#
using System;
using System.Threading.Tasks;
using Nito.AsyncEx;
using System.Linq;
using System.Threading;
using System.Diagnostics.CodeAnalysis;
using Xunit;
namespace UnitTests
{
public class SingleDisposableUnitTests
{
[Fact]
public void ConstructedWithNullContext_DisposeIsANoop()
... |
e7071555-bc3b-4cac-a0a2-defab7a81fa6 | {
"language": "C#"
} | ```c#
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyProduct("Harbour.RedisSessionStateStore")]
[assembly: AssemblyCompany... | ```c#
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyProduct("Harbour.RedisSessionStateStore")]
[assembly: AssemblyCompany... |
d5c142be-18df-43ea-bdd3-d01e9f2985e7 | {
"language": "C#"
} | ```c#
using System;
using N2.Web.UI.WebControls;
namespace N2.Edit
{
[ToolbarPlugin("", "tpPreview", "{url}", ToolbarArea.Preview, Targets.Preview, "~/Edit/Img/Ico/Png/eye.png", 0, ToolTip = "edit", GlobalResourceClassName = "Toolbar")]
[ControlPanelLink("cpAdminister", "~/edit/img/ico/png/application_side_tre... | ```c#
using System;
using N2.Web.UI.WebControls;
namespace N2.Edit
{
[ToolbarPlugin("", "tpPreview", "{url}", ToolbarArea.Preview, Targets.Preview, "~/Edit/Img/Ico/Png/eye.png", 0, ToolTip = "edit", GlobalResourceClassName = "Toolbar")]
[ControlPanelLink("cpAdminister", "~/edit/img/ico/png/application_side_tre... |
61455fc5-15ed-4767-89ed-0ce976acc8e9 | {
"language": "C#"
} | ```c#
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless... | ```c#
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless... |
c6a10cb4-8678-41f9-988f-08198b2a5db4 | {
"language": "C#"
} | ```c#
```
Add test asserting reconnect works. | ```c#
using System.Threading.Tasks;
using NUnit.Framework;
using Robust.Client.Console;
using Robust.Shared.Interfaces.Network;
using Robust.Shared.IoC;
namespace Content.IntegrationTests.Tests
{
[TestFixture]
public class ReconnectTest : ContentIntegrationTest
{
[Test]
public async Task Te... |
4419c1d8-551d-4d26-9fa7-8b84cd4747b0 | {
"language": "C#"
} | ```c#
```
Add 'tabs' and header with converter on main page | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace Postolego.Converters {
public class TextDependentOnSelectedIndexConverter : IValueConverter {
public object Convert(object value, Type targetType, ... |
ca64e4f2-c25e-4f80-823d-ea7fdcbc62f2 | {
"language": "C#"
} | ```c#
```
Add an Rx-friendly HTTP downloader | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Text;
namespace NSync.Core
{
public static class Http
{
/// <summary>
/// Download data from an HTTP URL and insert the result into ... |
1a73171c-f1ab-4a9b-bd81-73665832bd7c | {
"language": "C#"
} | ```c#
@using System.Configuration;
@{
ViewBag.Title = "Login";
}
<div id="root" style="width: 280px; margin: 40px auto;">
</div>
@Html.AntiForgeryToken()
<script src="https://cdn.auth0.com/js/lock-7.9.min.js"></script>
<script>
if (!window.location.origin) {
window.location.origin = window.location.pr... | ```c#
@using System.Configuration;
@{
ViewBag.Title = "Login";
}
<div id="root" style="width: 280px; margin: 40px auto;">
</div>
@Html.AntiForgeryToken()
<script src="https://cdn.auth0.com/js/lock-7.11.min.js"></script>
<script>
if (!window.location.origin) {
window.location.origin = window.location.p... |
80813643-718b-4593-b8bd-fb6e4ef40618 | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Collections.Generic;
using UnityEngine.EventSystems;
namespace HoloToolkit.Unity
{
public class RaycastResultComparer : IComparer<RaycastResu... | ```c#
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using UnityEngine.EventSystems;
namespace HoloToolkit.Unity
{
public class RaycastResultComparer : ICompar... |
b392187c-5bde-4664-8104-8e92233b518c | {
"language": "C#"
} | ```c#
```
Add a default VS foregrounddispatcher | ```c#
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Shell;
namespace Microsoft.VisualStudio.LanguageServices.Razor
{
[Expo... |
f853135b-d101-4877-bb93-edc72d551e9a | {
"language": "C#"
} | ```c#
```
Write various unit tests for CustomerData, Name, and StreetAddress | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace ElectronicCash.Tests
{
[TestFixture]
class CustomerDataTests
{
//private static DateTime _dateTime = new DateTime();
private static re... |
c1527c56-fc26-4a06-a100-0738a3a15a6b | {
"language": "C#"
} | ```c#
```
Create server side API for single multiple answer question | ```c#
using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepos... |
3c15a4c3-2cb3-4ec2-8066-99c0f02bbb9a | {
"language": "C#"
} | ```c#
```
Add JsonWriter impl. that defaults to using a RendererMap | ```c#
using System.IO;
using log4net.ObjectRenderer;
using log4net.Util.Serializer;
namespace Newtonsoft.Json.Serialization
{
public class RendererMapJsonTextWriter : JsonTextWriter
{
private readonly RendererMap rendererMap;
private readonly TextWriter textWriter;
public RendererMapJ... |
7092a6c6-03ac-4e14-82fe-c4c37f87233e | {
"language": "C#"
} | ```c#
namespace dotless.Core
{
using System.Web;
using System.Web.SessionState;
public class LessCssWithSessionHttpHandler : LessCssHttpHandler, IRequiresSessionState
{
}
public class LessCssHttpHandler : LessCssHttpHandlerBase, IHttpHandler
{
public void ProcessRequest(HttpCo... | ```c#
namespace dotless.Core
{
using System.Web;
using System.Web.SessionState;
public class LessCssWithSessionHttpHandler : LessCssHttpHandler, IRequiresSessionState
{
}
public class LessCssHttpHandler : LessCssHttpHandlerBase, IHttpHandler
{
public void ProcessRequest(HttpCo... |
56aee095-994d-4166-b175-ffe5a7bd9f8f | {
"language": "C#"
} | ```c#
```
Add a sanity check for exported types | ```c#
using System.Linq;
using NUnit.Framework;
using ZeroLog.Tests.Support;
namespace ZeroLog.Tests;
[TestFixture]
public class SanityChecks
{
[Test]
public void should_export_expected_types()
{
// This test prevents mistakenly adding public types in the future.
var publicTypes = new[]
... |
c35fdd13-c485-438b-b497-6ef797fd058f | {
"language": "C#"
} | ```c#
```
Add missing file from code config branch | ```c#
using System;
using System.Collections.Generic;
using System.Text;
namespace Spring.Objects.Factory.Parsing
{
public interface IProblemReporter
{
void Fatal(Problem problem);
void Warning(Problem problem);
void Error(Problem problem);
}
}
``` |
f2ceb7ee-5785-412e-abf1-a8c8a7a5896f | {
"language": "C#"
} | ```c#
```
Add simple snippet to get InformationalVersion | ```c#
public static string GetProductVersion()
{
var attribute = (AssemblyVersionAttribute)Assembly
.GetExecutingAssembly()
.GetCustomAttributes( typeof(AssemblyVersionAttribute), true )
.Single();
return attribute.InformationalVersion;
}``` |
335be294-46a2-4b98-a900-ca6b39c27248 | {
"language": "C#"
} | ```c#
```
Add a testcase for unknown frame types | ```c#
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
using Http2;
namespace Http2Tests
{
public class ConnectionUnknownFrameTests
{
[Theory]
[InlineData(true, 0)]
[InlineData(true, 512)]
[InlineData(false, 0)]
[InlineData(fal... |
ec09d560-6d4f-4706-8430-fc97d4caabd2 | {
"language": "C#"
} | ```c#
#region License
/**
* Copyright (c) 2013-2014 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file).
* Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE
*/
#endregion
using System;
using System.Collections;
using System.Collection... | ```c#
#region License
/**
* Copyright (c) 2013-2014 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file).
* Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE
*/
#endregion
using System;
using System.Collections;
using System.Collection... |
fd6bfdbd-f430-4824-88c0-e21f91f45cae | {
"language": "C#"
} | ```c#
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Xunit;
namespace System.Globalization.Tests
{
public class KoreanCalendarTwoDigitYearMax
{
... | ```c#
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Xunit;
namespace System.Globalization.Tests
{
public class KoreanCalendarTwoDigitYearMax
{
... |
aa72d105-cba6-4fc6-9232-4dcbc8bf1ffd | {
"language": "C#"
} | ```c#
```
Extend the Rotorz Tile System api | ```c#
// This set of methods extends the most excellent Rotorz api. I built this set because,
// while I love Rotorz, I find its method paramaters frustrating to use. Specifically,
// I tend to send x coordinates first in my params, followed by y coordinates; while
// Rotorz transposes this. It has lead to many crazy-m... |
ef8b66e2-537e-433a-a1d5-cf1868fefdf2 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
namespace Cxxi
{
/// <summary>
/// Represents a C++ property.
/// </summary>
public class Property
{
public Property(string name, Declaration type)
{
Name = name;
Type = type;
}
public str... | ```c#
using System;
using System.Collections.Generic;
namespace Cxxi
{
/// <summary>
/// Represents a C++ property.
/// </summary>
public class Property : Declaration
{
public Property(string name, Declaration type)
{
Name = name;
Type = type;
}
... |
edbccbb5-28ec-4ae0-be4f-253939f6013d | {
"language": "C#"
} | ```c#
```
Move sort class to new file | ```c#
namespace ContractsWindow
{
public enum contractSortClass
{
Difficulty = 1,
Expiration = 2,
Acceptance = 3,
Reward = 4,
Type = 5,
Planet = 6,
}
}
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.