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 |
|---|---|---|---|---|---|---|---|---|
2e1505c69f52045fb8800708726c24630feafaac | Add file missed in bug fix 440109 | nunit/nunit-console,nunit/nunit-console,nunit/nunit-console | src/framework/Templates/Contains.template.cs | src/framework/Templates/Contains.template.cs | // ***********************************************************************
// Copyright (c) 2009 Charlie Poole
//
// 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,... | mit | C# | |
5ef4ed24fd10679e90092f2c0c90fbf1c44d243b | Add Q221 | txchen/localleet | csharp/Q221_MaximalSquare.cs | csharp/Q221_MaximalSquare.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.
//
// For example, given the following matrix:
//
// 1 0 1 0 0
// 1 0 1 1 1
/... | mit | C# | |
caa207f59f5c7e9160715172e22bd59659abbeb4 | Add ossl level test for removing an unowned npc | ft-/opensim-optimizations-wip-tests,RavenB/opensim,bravelittlescientist/opensim-performance,bravelittlescientist/opensim-performance,ft-/opensim-optimizations-wip-extras,OpenSimian/opensimulator,TomDataworks/opensim,M-O-S-E-S/opensim,TomDataworks/opensim,RavenB/opensim,BogusCurry/arribasim-dev,justinccdev/opensim,Miche... | OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs | OpenSim/Region/ScriptEngine/Shared/Tests/OSSL_ApiNpcTests.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# | |
38693035eeacdf4113691d914e31058019cb9f65 | Add MySqlDbUpdateExpression.cs. | shuxinqin/Chloe | src/Chloe.MySql/MySqlDbUpdateExpression.cs | src/Chloe.MySql/MySqlDbUpdateExpression.cs | using Chloe.DbExpressions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Chloe.MySql
{
class MySqlDbUpdateExpression : DbUpdateExpression
{
public MySqlDbUpdateExpression(DbTable table)
: this(table, null)
{
}
public M... | mit | C# | |
dc19cdbd96894460ba70856685d9326d44bf9d6d | Create Armor.cs | TeamLockheed/LockheedTheGame | Lockheed_Inventory/Slots/Armor.cs | Lockheed_Inventory/Slots/Armor.cs | namespace Lockheed_Inventory
{
using System;
using System.Collections.Generic;
using Slots.Interfaces;
public class Armor : Slot, IArmor
{
private List<Item> armorList;
public Armor() :
base()
{
}
public override void Equip(Item item... | mit | C# | |
1e2de017c256c508bede3cac5779cce014f29842 | Create RouteExtensions.cs | drawcode/labs-csharp | extension/RouteExtensions.cs | extension/RouteExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
using System.Web.Mvc;
public class LowercaseRoute : Route {
public LowercaseRoute(string url, IRouteHandler routeHandler)
: base(url, routeHandler) { }
public LowercaseRoute(string url, RouteV... | mit | C# | |
009123d040ee97f0b1fae42ae7617263c00d420f | refactor CollectionMetaDataRecord into CollectionRoot | markmeeus/MarcelloDB | Marcello/Records/CollectionRoot.cs | Marcello/Records/CollectionRoot.cs | using System;
using Marcello.Serialization;
namespace Marcello.Records
{
internal class RootBlock
{
internal ListEndPoints DataListEndPoints { get; set;}
internal ListEndPoints EmptyListEndPoints { get; set;}
internal Int64 NamedRecordIndexAddress { get; set;}
internal RootBlock()... | mit | C# | |
0e607ac629d194f54d15057a985b7633a80201d2 | Create Day_3_CSharp.cs | leocabrallce/HackerRank,leocabrallce/HackerRank | 30_Days_of_Code_Challenges/Day_3/Day_3_CSharp.cs | 30_Days_of_Code_Challenges/Day_3/Day_3_CSharp.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static void Main(String[] args) {
int N = Convert.ToInt32(Console.ReadLine());
if (N % 2 == 1)
{
Console.WriteLine("Weird");
}
else if (N % 2 == 0)
... | mit | C# | |
45808e6983fe8c685ccec2b9cec37a30c19e4f12 | Add IRemovalListener interface. | NextMethod/Tamarind | Tamarind/Cache/IRemovalListener.cs | Tamarind/Cache/IRemovalListener.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tamarind.Cache
{
public interface IRemovalListener<TKey, TValue>
{
void onRemoval(RemovalNotification<TKey, TValue> notification);
}
}
| mit | C# | |
75bc376e564a617030df699fcef4ad31c7503f54 | add UserGroupController. | robertzml/Phoebe | Phoebe.WebAPI/Controllers/UserGroupController.cs | Phoebe.WebAPI/Controllers/UserGroupController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Phoebe.WebAPI.Controllers
{
using Phoebe.Core.BL;
using Phoebe.Core.Entity;
using Phoebe.WebAPI.Model;
/// <summary>
/// 用户组控... | mit | C# | |
c587fd04230a71ee6c4dc1e1713f6aef22341744 | Convert Comparables | danielwertheim/Ensure.That,danielwertheim/Ensure.That | src/EnsureThat/EnsureArg.Comparables.cs | src/EnsureThat/EnsureArg.Comparables.cs | using System;
using System.Diagnostics;
using EnsureThat.Extensions;
namespace EnsureThat
{
public static partial class EnsureArg
{
[DebuggerStepThrough]
public static void Is<T>(T param, T expected, string paramName = Param.DefaultName) where T : struct, IComparable<T>
{
i... | mit | C# | |
3babb41574ea13c469d9c453c98a34f1ab83bab8 | Allow overriding default static files in theme | MattHarrington/sample-sandra-snow-blog,Pxtl/Sandra.Snow,tareq-s/Sandra.Snow,fekberg/Sandra.Snow,darrelmiller/Sandra.Snow,MattHarrington/sample-sandra-snow-blog,tareq-s/Sandra.Snow,Sandra/Sandra.Snow,tareq-s/Sandra.Snow,amitapl/blogamitapple,Sandra/Sandra.Snow,Sandra/Sandra.Snow,darrelmiller/Sandra.Snow,fekberg/Sandra.S... | src/Snow/SnowViewLocationConventions.cs | src/Snow/SnowViewLocationConventions.cs | namespace Snow
{
using System;
using System.Collections.Generic;
using Nancy.Conventions;
using Nancy.ViewEngines;
public class SnowViewLocationConventions : IConvention
{
public static SnowSettings Settings { get; set; }
public void Initialise(NancyConventions conv... | namespace Snow
{
using System;
using System.Collections.Generic;
using Nancy.Conventions;
using Nancy.ViewEngines;
public class SnowViewLocationConventions : IConvention
{
public static SnowSettings Settings { get; set; }
public void Initialise(NancyConventions conv... | mit | C# |
0ed7722a575517e7e3e8437169a1b1d822adc923 | Add pushconsumer wrap to donet | StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTang/incubator-rocketmq-externals,StyleTan... | rocketmq-client-donet/src/PushConsumerWrap.cs | rocketmq-client-donet/src/PushConsumerWrap.cs | using System;
using System.Runtime.InteropServices;
namespace RocketMQ.Interop
{
public static class PushConsumerWrap
{
[DllImport(ConstValues.RocketMQDriverDllName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr CreatePushConsumer(string groupId);
[DllImpor... | apache-2.0 | C# | |
dd306666e893f5f94c0451cd6b770d86f5984a41 | Add some provider tests | CoraleStudios/Colore | src/Colore.Tests/ColoreProviderTests.cs | src/Colore.Tests/ColoreProviderTests.cs | // ---------------------------------------------------------------------------------------
// <copyright file="ColoreProviderTests.cs" company="Corale">
// Copyright © 2015-2019 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this ... | mit | C# | |
033fc4b3d61f47c32828e636e1136c8cb6b9002c | Create IMarkdownViewEngine | hishamco/MarkdownViewEngine | src/MarkdownViewEngine/IMarkdownViewEngine.cs | src/MarkdownViewEngine/IMarkdownViewEngine.cs | using Microsoft.AspNetCore.Mvc.ViewEngines;
namespace MarkdownViewEngine
{
public interface IMarkdownViewEngine : IViewEngine
{
string GetAbsolutePath(string executingFilePath, string pagePath);
}
}
| mit | C# | |
309fe4a21cf48709c4310431afea7ebb7dd27cfb | Fix byte[] compare | k2workflow/Chasm,jannesrsa/Chasm,jcdickinson/Chasm | src/SourceCode.Chasm/Blob.cs | src/SourceCode.Chasm/Blob.cs | using SourceCode.Clay.Buffers;
using System;
namespace SourceCode.Chasm
{
public struct Blob : IEquatable<Blob>
{
#region Constants
public static Blob Empty { get; }
#endregion
#region Properties
public byte[] Data { get; }
#endregion
#region De/Co... | using System;
namespace SourceCode.Chasm
{
public struct Blob : IEquatable<Blob>
{
#region Constants
public static Blob Empty { get; }
#endregion
#region Properties
public byte[] Data { get; }
#endregion
#region De/Constructors
public Blob... | mit | C# |
e5ad7097623c77d945096ea421f422f66c5bdb92 | add new test's to redirect action | takenet/blip-sdk-csharp | src/Take.Blip.Builder.UnitTests/Actions/RedirectActionTests.cs | src/Take.Blip.Builder.UnitTests/Actions/RedirectActionTests.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using NSubstitute;
using Serilog;
using Take.Blip.Builder.Actions.Redirect;
using Take.Blip.Builder.Actions.SetVariable;
using Xunit;
namespace Take.Blip.Builder.UnitTests.Actions
{
public class RedirectAction... | apache-2.0 | C# | |
ed61975f3320d2341ed54337c1ac42d0ca6a8703 | Test project | themehrdad/NetTelebot,vertigra/NetTelebot-2.0 | NetTelebot.Tests/TestGetUpdates.cs | NetTelebot.Tests/TestGetUpdates.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace NetTelebot.Tests
{
[TestClass]
public class TestGetUpdates
{
TelegramBotClient client;
[TestInitialize]
public void Initialize()
{
client = new TelegramBotClient()
{
... | mit | C# | |
7a6ed27bef998e815cab43870a1135c98033e61f | Remove unused method | FakeItEasy/FakeItEasy,blairconrad/FakeItEasy,thomaslevesque/FakeItEasy,thomaslevesque/FakeItEasy,adamralph/FakeItEasy,blairconrad/FakeItEasy,adamralph/FakeItEasy,FakeItEasy/FakeItEasy | src/FakeItEasy.Analyzer/DiagnosticDefinitions.cs | src/FakeItEasy.Analyzer/DiagnosticDefinitions.cs | namespace FakeItEasy.Analyzer
{
using Microsoft.CodeAnalysis;
internal static class DiagnosticDefinitions
{
public static DiagnosticDescriptor UnusedCallSpecification { get; } =
CreateDiagnosticDescriptor(
nameof(UnusedCallSpecification), "FakeItEasy0001", "FakeI... | namespace FakeItEasy.Analyzer
{
using System;
using System.Collections.Immutable;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using Microsoft.CodeAnalysis;
internal static class DiagnosticDefinitions
{
public static DiagnosticDescriptor UnusedCallSpecif... | mit | C# |
fd5459076e5033c4cef18c72d3481f712ce54988 | Add ControllerTypeMerger | folkelib/Folke.Mvc.Extensions | src/Folke.Mvc.Extensions/ControllerTypeMerger.cs | src/Folke.Mvc.Extensions/ControllerTypeMerger.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using Microsoft.AspNet.Mvc.Controllers;
using Microsoft.Extensions.DependencyInjection;
namespace Folke.Mvc.Extensions
{
public class ControllerTypeMerger : IControllerTypeProvider
{
private readonly IServiceProvider serviceLocat... | mit | C# | |
633e1ed62cadbdc06592e19bbb1cfaa6fbae72b2 | Add missing ConsoleUtil from last commit | RavenB/opensim,TomDataworks/opensim,QuillLittlefeather/opensim-1,BogusCurry/arribasim-dev,rryk/omp-server,TomDataworks/opensim,BogusCurry/arribasim-dev,OpenSimian/opensimulator,ft-/opensim-optimizations-wip-tests,ft-/opensim-optimizations-wip-tests,justinccdev/opensim,BogusCurry/arribasim-dev,TomDataworks/opensim,Quill... | OpenSim/Framework/Console/ConsoleUtil.cs | OpenSim/Framework/Console/ConsoleUtil.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# | |
f48e9679969842030b933fafb8b3958941432c17 | Create Problem134.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem134.cs | Problems/Problem134.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Numerics;
namespace ProjectEuler.Problems
{
class Problem134
{
private static BigInteger CommonP1P2(long p1, long p2)
{
string p1Str = p1.ToString();
string p2str;
for (BigInteger i... | mit | C# | |
f9e2e808743403cafd862f1fd1177a1bc0f8b4f1 | Add testing for auto-restart behaviour | peppy/osu,peppy/osu-new,ppy/osu,smoogipooo/osu,ppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu | osu.Game.Tests/Visual/Mods/TestSceneModFailCondition.cs | osu.Game.Tests/Visual/Mods/TestSceneModFailCondition.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.Containers;
using osu.Framework.Testing;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Osu;
usin... | mit | C# | |
574a8b5c52097434d3bf8bbba3e392d903a9deeb | Create SNI.cs | imba-tjd/CSharp-Code-Repository | 单个文件的程序/SNI.cs | 单个文件的程序/SNI.cs | using System;
using System.Diagnostics;
class SNI
{
const string TargetIP = "104.131.212.184"; // 用于域前置的IP;community.notepad-plus-plus.org
const string NormalNCNHost = "usa.baidu.com"; // 用于检测TargetIP是否被封,必须用正常的域名
const string NormalCNHost = "www.baidu.com"; // 用于检测是否联网,可换成其它普通国内域名/IP
static int Main(... | mit | C# | |
c02b92fef3a9da24849515f3f3beb3781c1aefce | add missing file | esskar/Serialize.Linq | src/Serialize.Linq/Internals/ValueConverter.cs | src/Serialize.Linq/Internals/ValueConverter.cs | using System;
namespace Serialize.Linq.Internals
{
public static class ValueConverter
{
public static object Convert(object value, Type type)
{
if (value == null)
return type.IsValueType ? Activator.CreateInstance(type) : null;
if (type.IsInstanceOfType... | mit | C# | |
8e0536e1e2d2eb66a7572dcf27f19d65cb4f5e7c | Add failing test scene | smoogipoo/osu,peppy/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu-new,ppy/osu,NeoAdonis/osu | osu.Game.Tests/Visual/Editing/TestSceneBlueprintSelection.cs | osu.Game.Tests/Visual/Editing/TestSceneBlueprintSelection.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.Testing;
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Objects;
using osu.Game.R... | mit | C# | |
85cd88e490b853b09260daf9693342380423ea49 | Create registry | ektrah/nsec | tests/Registry.cs | tests/Registry.cs | using System;
using NSec.Cryptography;
using Xunit;
namespace NSec.Tests
{
internal static class Registry
{
#region Algorithms By Base Class
public static readonly TheoryData<Type> AeadAlgorithms = new TheoryData<Type>
{
};
public static readonly TheoryData<Type> Authe... | mit | C# | |
b3899c1de9a398cbfdbd1e444b09fd3b34d8d48f | Add Create.cshtml page | Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog | SpaceBlog/SpaceBlog/Views/Home/Create.cshtml | SpaceBlog/SpaceBlog/Views/Home/Create.cshtml | @{
ViewBag.Title = "Create";
Layout = null;
}
<div class="container">
<h2>@ViewBag.Title</h2>
<div class="container body-content span=8 offset=2">
<form class="form-horizontal">
<fieldset>
<legend>New Post</legend>
<div class="form-group">
... | mit | C# | |
a3deb4ca626615291462c6b6bd2c240b720cb759 | add MSharpException | marihachi/MSharp | src/MSharp/Core/MSharpException.cs | src/MSharp/Core/MSharpException.cs | using System;
namespace MSharp.Core
{
/// <summary>
/// MSharpの全般的なエラーを表します。
/// </summary>
public class MSharpException : ApplicationException
{
public MSharpException(string message)
: base(message) { }
public MSharpException(string message, Exception innerException)
: base(message, innerException) ... | mit | C# | |
ce67fd075972ba82cefb896c0a5185f7c9715898 | set scheme to default for default key values. | morkt/GARbro,morkt/GARbro,dsp2003/GARbro,dsp2003/GARbro,dsp2003/GARbro | ArcFormats/WidgetDPK.xaml.cs | ArcFormats/WidgetDPK.xaml.cs | using System.Windows.Controls;
using GameRes.Formats.Dac;
using GameRes.Formats.Properties;
namespace GameRes.Formats.GUI
{
/// <summary>
/// Interaction logic for WidgetDPK.xaml
/// </summary>
public partial class WidgetDPK : Grid
{
public WidgetDPK ()
{
InitializeComp... | using System.Windows.Controls;
using GameRes.Formats.Dac;
using GameRes.Formats.Properties;
namespace GameRes.Formats.GUI
{
/// <summary>
/// Interaction logic for WidgetDPK.xaml
/// </summary>
public partial class WidgetDPK : Grid
{
public WidgetDPK ()
{
InitializeComp... | mit | C# |
fd961287d0cb70f5e4cedfbe12e7c797158874b1 | Add SingleCalloutSample | pauldendulk/Mapsui,charlenni/Mapsui,charlenni/Mapsui | Samples/Mapsui.Samples.Common/Maps/Callouts/SingleCalloutSample.cs | Samples/Mapsui.Samples.Common/Maps/Callouts/SingleCalloutSample.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using Mapsui.Layers;
using Mapsui.Logging;
using Mapsui.Projection;
using Mapsui.Providers;
using Mapsui.Rendering.Skia;
using Mapsui.Styles;
using Mapsui.UI;
using Mapsui.Utilities;
u... | mit | C# | |
6d14e91dd317399d87408690b97a41cf4cf28040 | Create MultipartFormDataExtension.cs | oceanho/MultipartFormData,Mr-hai/MultipartFormData | MultipartFormDataExtension.cs | MultipartFormDataExtension.cs | mit | C# | ||
1b62f9ebcb08c1953d4e72d382a9dd5e375b9a7a | Add HeapBase.IsBig property | modulexcite/dnlib,jorik041/dnlib,ilkerhalil/dnlib,kiootic/dnlib,0xd4d/dnlib,Arthur2e5/dnlib,yck1509/dnlib,ZixiangBoy/dnlib,picrap/dnlib | src/DotNet/Writer/HeapBase.cs | src/DotNet/Writer/HeapBase.cs | using System.IO;
using dot10.IO;
using dot10.PE;
namespace dot10.DotNet.Writer {
/// <summary>
/// Base class of most heaps
/// </summary>
public abstract class HeapBase : IHeap {
FileOffset offset;
RVA rva;
/// <inheritdoc/>
public FileOffset FileOffset {
get { return offset; }
}
/// <inheritdoc... | using System.IO;
using dot10.IO;
using dot10.PE;
namespace dot10.DotNet.Writer {
/// <summary>
/// Base class of most heaps
/// </summary>
public abstract class HeapBase : IHeap {
FileOffset offset;
RVA rva;
/// <inheritdoc/>
public FileOffset FileOffset {
get { return offset; }
}
/// <inheritdoc... | mit | C# |
69fc32a09b6d955973d1f09732258ad63c91215a | Create MainWindow.xaml.cs | ewasow/learning-cs | MainWindow.xaml.cs | MainWindow.xaml.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Window... | mit | C# | |
8d1c5a58fea3be02b97ee597aaae28816ac290b6 | Add UtcHelper with only a "Now" method | rapidcore/rapidcore,rapidcore/rapidcore | src/core/main/Globalization/UtcHelper.cs | src/core/main/Globalization/UtcHelper.cs | using System;
namespace RapidCore.Globalization
{
/// <summary>
/// Knows how to handle UTC.
/// </summary>
public class UtcHelper
{
/// <summary>
/// Get the current date and time in UTC
/// </summary>
public virtual DateTime Now()
{
return Date... | mit | C# | |
f8dfa99be7b2c30386562446326ed40daf3b65e8 | access point | AlejoJamC/invoper-cli | invoper-cli/Program.cs | invoper-cli/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace invoper_cli
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# | |
cf3bc2bb338d39c9f359d4326b9ddd2f8a76b917 | Add visual-only execution mode toggle test scene | ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ZLima12/osu-framework | osu.Framework.Tests/Visual/Platform/TestSceneExecutionModes.cs | osu.Framework.Tests/Visual/Platform/TestSceneExecutionModes.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.Configuration;
using osu.Framework.Platform;
namespace osu.Fram... | mit | C# | |
72742d31fa6aedd2da7802bc83084f6b58f89123 | Add abstract Effect class | axazeano/ImageEditor | ImageEditor/Effect.cs | ImageEditor/Effect.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ImageEditor
{
abstract class Effect
{
public String name;
private Bitmap prevImage;
private Bitmap newImage;
abstract public Bitm... | mit | C# | |
765421264b374014b59ddf7308099f0d6a5206bd | Create a new diagram example | aspose-diagram/Aspose.Diagram-for-.NET,asposediagram/Aspose_Diagram_NET | Examples/CSharp/ProgrammersGuide/Load-Save-Convert/CreateNewVisio.cs | Examples/CSharp/ProgrammersGuide/Load-Save-Convert/CreateNewVisio.cs | using Aspose.Diagram;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CSharp.ProgrammersGuide.Load_Save_Convert
{
public class CreateNewVisio
{
public static void Run()
{
//ExStart:CreateNewVisio
// The path... | mit | C# | |
2025dd25f6041e276e9ecde6829d0c51a565fae5 | Add missing file BaseOutputStreamHandler.cs from recent commit e19defd | Michelle-Argus/ArribasimExtract,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,M-O-S-E-S/opensim,TomDataworks/opensim,Michelle-Argus/ArribasimExtract,ft-/arribasim-dev-tests,M-O-S-E-S/opensim,ft-/opensim-optimizations-wip-extras,RavenB/opensim,M-O-S-E-S/opensim,OpenSimian/opensimulator,ft-/opensim-optimizations-wip,bravelittlesc... | OpenSim/Framework/Servers/HttpServer/BaseOutputStreamHandler.cs | OpenSim/Framework/Servers/HttpServer/BaseOutputStreamHandler.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# | |
ac8624c0bb2240d6de749116f2ea9045524c00ba | Create Anagram.cs | ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs... | strings/string_fundamental/csharp/Anagram.cs | strings/string_fundamental/csharp/Anagram.cs | static void Main(string[] args)
{
Console.WriteLine(Anagram("Tom Marvolo Riddle", "I am Lord Voldemort"));
Console.ReadKey();
}
public static Boolean Anagram(String input1, String input2)
{
// Convert both inputs to lower case, and remove non-alphabetical characters
Regex rgx = new System.Text.Regular... | cc0-1.0 | C# | |
fae5741c045865880cfa8637c9c267e7c063aaaa | Test fixed | kaffeebrauer/Lean,kaffeebrauer/Lean,redmeros/Lean,kaffeebrauer/Lean,redmeros/Lean,AnshulYADAV007/Lean,StefanoRaggi/Lean,AnshulYADAV007/Lean,QuantConnect/Lean,redmeros/Lean,StefanoRaggi/Lean,Jay-Jay-D/LeanSTP,jameschch/Lean,jameschch/Lean,Jay-Jay-D/LeanSTP,AlexCatarino/Lean,QuantConnect/Lean,Jay-Jay-D/LeanSTP,JKarathiya... | Tests/Indicators/MovingAverageConvergenceDivergenceTests.cs | Tests/Indicators/MovingAverageConvergenceDivergenceTests.cs | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 ... | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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 ... | apache-2.0 | C# |
b46c1d47797306340dccb9b599af1ade6fdee23f | Rename command (#6091) | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Server/Mind/Commands/RenameCommand.cs | Content.Server/Mind/Commands/RenameCommand.cs | using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Content.Server.Access.Systems;
using Content.Server.Administration;
using Content.Server.Cloning;
using Content.Server.Mind.Components;
using Content.Server.PDA;
using Content.Shared.Access.Components;
using Content.Shared.Administration;
u... | mit | C# | |
70ca929d17cf6fd064eaa6af1dad9cd5bce66bef | create tests against test infrastructure | sqlkata/querybuilder | QueryBuilder.Tests/InfrastructureTests.cs | QueryBuilder.Tests/InfrastructureTests.cs | using System;
using System.Linq;
using SqlKata.Compilers;
using Xunit;
namespace SqlKata.Tests.Infrastructure
{
public class InfrastructureTests : TestSupport
{
[Fact]
public void CanGetCompiler()
{
var compiler = Compilers.Get(EngineCodes.SqlServer);
Assert.No... | mit | C# | |
4eac3848a15380b7c6dbac307ed200c222716e0d | Revert removal of MissingNamespaceId | reaction1989/roslyn,dpoeschl/roslyn,swaroop-sridhar/roslyn,dotnet/roslyn,davkean/roslyn,yeaicc/roslyn,jasonmalinowski/roslyn,orthoxerox/roslyn,shyamnamboodiripad/roslyn,AmadeusW/roslyn,bartdesmet/roslyn,DustinCampbell/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,ErikSchierboom/roslyn,AlekseyTs/roslyn,Giftednewt/roslyn... | src/VisualStudio/Xaml/Impl/Diagnostics/XamlDiagnosticIds.cs | src/VisualStudio/Xaml/Impl/Diagnostics/XamlDiagnosticIds.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.
namespace Microsoft.CodeAnalysis.Editor.Xaml.Diagnostics
{
internal static class XamlDiagnosticIds
{
public const string UnnecessaryNamespace... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.CodeAnalysis.Editor.Xaml.Diagnostics
{
internal static class XamlDiagnosticIds
{
public const string UnnecessaryNamespace... | mit | C# |
397749887959537f2aa38739201d36fae3b80c74 | Add SmtpServer class to simplify server creation. | msoler8785/ExoMail | ExoMail.Smtp/Network/SmtpServer.cs | ExoMail.Smtp/Network/SmtpServer.cs | using ExoMail.Smtp.Extensions;
using ExoMail.Smtp.Interfaces;
using ExoMail.Smtp.Protocol;
using ExoMail.Smtp.Server.Authentication;
using ExoMail.Smtp.Services;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
namespace ExoMail.Smtp.... | mit | C# | |
4fab0eccbe3d3593785ab8c81c7fa3961b9f00f9 | Insert interval | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | LeetCode/remote/insert_interval.cs | LeetCode/remote/insert_interval.cs | // https://leetcode.com/problems/insert-interval/
//
// Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
//
// You may assume that the intervals were initially sorted according to their start times.
//
// Example 1:
// Given intervals [1,3],[6,9], insert and merge... | mit | C# | |
4b9235831e1cf668ac91e1591bb05d69057aa9a8 | add ProductVariantService | vinhch/BizwebSharp | src/BizwebSharp/Services/ProductVariant/ProductVariantService.cs | src/BizwebSharp/Services/ProductVariant/ProductVariantService.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using BizwebSharp.Entities;
using BizwebSharp.Infrastructure;
using BizwebSharp.Options;
namespace BizwebSharp.Services
{
public class ProductVariantService : BaseServiceWithSimpleCRUD<ProductVariant, ListOption>
{
public ProductVariantSe... | mit | C# | |
81d0b42930426bddb6793411ae9dce234fbd9c9f | Add failing test case | ppy/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,ppy/osu,smoogipoo/osu,peppy/osu-new,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,UselessToucan/osu | osu.Game.Tests/NonVisual/Skinning/LegacySkinAnimationTest.cs | osu.Game.Tests/NonVisual/Skinning/LegacySkinAnimationTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framewo... | mit | C# | |
f8d357f9926e039a74336fc85348e0a5515f361e | Add UmbracoAuthorizedController | robertjf/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,abjerner/Umbraco-CMS,umbraco/Umbraco-CMS,umbraco/Umbraco-CMS,abjerner/Umbraco-CMS,marcemarc/Umbraco-CMS,umbraco/Umbraco-CMS,dawoe/Umbraco-CMS,arknu/Umbraco-CMS,KevinJump/Umbraco-CMS,robertjf/Umbraco-CMS,arknu/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,abjerner/Umbraco-C... | src/Umbraco.Web.Common/Controllers/UmbracoAuthorizedController.cs | src/Umbraco.Web.Common/Controllers/UmbracoAuthorizedController.cs | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Umbraco.Cms.Web.Common.Authorization;
using Umbraco.Cms.Web.Common.Filters;
namespace Umbraco.Cms.Web.Common.Controllers
{
/// <summary>
/// Provides a base class for backoffice authorized controllers.
/// </summary>
[Autho... | mit | C# | |
3fe4297cd808a4b55eda74e6987ddfc3b5def30a | Create Encrypt.cs | Anand1907/cordova-plugin-encrypt,Anand1907/cordova-plugin-encrypt | src/wp/Encrypt.cs | src/wp/Encrypt.cs | /*
MIT License
*/
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Info;
usin... | mit | C# | |
092d0f9b7678a075011029b3300a07b5d111f70f | add breadcrumb header test scene | NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,peppy/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu | osu.Game.Tests/Visual/UserInterface/TestSceneBreadcrumbControlHeader.cs | osu.Game.Tests/Visual/UserInterface/TestSceneBreadcrumbControlHeader.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Overlays;
namespace osu.Game.Tests.Visual.UserInte... | mit | C# | |
f466c636bef825822eb7510c63dd5798977e61ba | Add csharp 5.x rest/taskrouter/statistics | TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snip... | rest/taskrouter/statistics/workflow/example-1/example-1.5.x.cs | rest/taskrouter/statistics/workflow/example-1/example-1.5.x.cs | // Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using Newtonsoft.Json.Linq;
using System;
using Twilio;
using Twilio.Rest.Taskrouter.V1.Workspace.Workflow;
class Example
{
static void Main(string[] args)
{
// Find your Account Sid and Auth Token a... | // Download the twilio-csharp library from
// https://www.twilio.com/docs/libraries/csharp#installation
using Newtonsoft.Json.Linq;
using System;
using Twilio;
using Twilio.Rest.Taskrouter.V1.Workspace.Workflow;
class Example
{
static void Main(string[] args)
{
// Find your Account Sid and Auth Token a... | mit | C# |
bfe97ce2150b653eff375ad032a069fe4cbdd032 | Create RoadsandLibraries.cs | shivkrthakur/HackerRankSolutions,shivkrthakur/HackerRankSolutions,shivkrthakur/HackerRankSolutions,shivkrthakur/HackerRankSolutions | Practice/AllDomains/Algorithms/GraphTheory/RoadsandLibraries.cs | Practice/AllDomains/Algorithms/GraphTheory/RoadsandLibraries.cs | mit | C# | ||
8559f589f234416977322fdfe43ca9a3aa6f51ea | Revert "Delete Program.cs" | wangzheng888520/CefSharp,wangzheng888520/CefSharp,wangzheng888520/CefSharp,wangzheng888520/CefSharp | CefSharp.WinForms.Example/Program.cs | CefSharp.WinForms.Example/Program.cs | // Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Forms;
using CefSharp.Example;
using CefSharp.WinForms.Example.Minimal;
namespace CefSharp.WinForms.Example
{
... | bsd-3-clause | C# | |
2bf2bee0ecc04c1ae6ab0990a3e1de77314ea14f | Create DeltaCVVCPhonemizer.cs | stakira/OpenUtau,stakira/OpenUtau | OpenUtau.Plugin.Builtin/DeltaCVVCPhonemizer.cs | OpenUtau.Plugin.Builtin/DeltaCVVCPhonemizer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenUtau.Api;
namespace OpenUtau.Plugin.Builtin {
[Phonemizer("English CVVC Phonemizer", "EN CVVC", "nago")]
public class DeltaCVVCPhonemizer : SyllableBasedPhonemizer {
private readonly string[] vowels = "a,A,... | mit | C# | |
646833a059991206691530888626748ce34e7501 | Add test scene | NeoAdonis/osu,UselessToucan/osu,ppy/osu,peppy/osu,smoogipoo/osu,peppy/osu,ppy/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new,ppy/osu,NeoAdonis/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# | |
9c708025b9a828e913aadf33f8cdca4370c69bbc | add IEnumerable extensions | wangkanai/Detection | src/Extensions/IEnumerableExtensions.cs | src/Extensions/IEnumerableExtensions.cs | // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Wangkanai.Detection.Extensions
{
public static class IEnumerable... | apache-2.0 | C# | |
339a89ab9bfaca241514a0e7eaa47d7dd846d93a | Add combine dictionary test. | AxeDotNet/AxePractice.CSharpViaTest | src/CSharpViaTest.Collections/40_CombineCaseInsensitiveDictionarys.cs | src/CSharpViaTest.Collections/40_CombineCaseInsensitiveDictionarys.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace CSharpViaTest.Collections
{
public class CombineCaseInsensitiveDictionarys
{
#region Please modifies the code to pass the test
static IDictionary<string, ISet<T>> Combine<T>(IDictionary<string, ISet<T>> ... | mit | C# | |
4c2640bd23e8dd8ec6e6b42df8c1e4fb10801550 | create ObejctFactory for AutoFac DI | csyntax/BlogSystem | src/BlogSystem.Web/ObjectFactory.cs | src/BlogSystem.Web/ObjectFactory.cs | namespace BlogSystem.Web
{
using Autofac;
public class ObjectFactory
{
private static IContainer container = AutofacConfig.Container;
public static T GetInstance<T>() where T : class
{
using (var con = container.BeginLifetimeScope())
{
retur... | mit | C# | |
2ed1ab0142f4c6ee1222cba93c3e4b6a933a6565 | Create Program.cs | Zooloo2014/Download-Scheduler | TestApp/Program.cs | TestApp/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace NDM
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Applicati... | mit | C# | |
07bdc70a188d8eb7afba7d5ed05ff44d02f776f3 | Add test class 'LoadInfoCarrierTest' | azabluda/InfoCarrier.Core | test/InfoCarrier.Core.EFCore.FunctionalTests/LoadInfoCarrierTest.cs | test/InfoCarrier.Core.EFCore.FunctionalTests/LoadInfoCarrierTest.cs | namespace InfoCarrier.Core.EFCore.FunctionalTests
{
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Specification.Tests;
public class LoadInfoCarrierTest
: LoadTestBase<TestStore, LoadInfoCarrierTest.LoadInfoCarrierFixture>
{
public LoadInfoCarrierTest(LoadInfo... | mit | C# | |
feccf302894df67bae6af2a160477bfd18f68478 | add interface for SupermarketsChain db context | DatabaseApp-Team-Linnaeus/DatabasesApp,DatabaseApp-Team-Linnaeus/DatabasesApp | SupermarketsChain/SupermarketsChain.Data/ISupermarketsChainDbContext.cs | SupermarketsChain/SupermarketsChain.Data/ISupermarketsChainDbContext.cs | namespace SupermarketsChain.Data.Contracts
{
public interface IVotingSystemDbContext
{
IDbSet<Poll> Polls { get; set; }
IDbSet<Vote> Votes { get; set; }
IDbSet<Question> Question { get; set; }
IDbSet<Answer> Answers { get; set; }
IDbSet<Candidate... | mit | C# | |
239d468a66e3f37913f7944ee966384cbe975510 | Add test class with other attribute on method | PKRoma/refit | Refit.Tests/IFooWithOtherAttribute.cs | Refit.Tests/IFooWithOtherAttribute.cs | using System.ComponentModel;
using System.Threading.Tasks;
using Refit;
interface IFooWithOtherAttribute
{
[Get("/")]
Task GetRoot();
[DisplayName("/")]
Task PostRoot();
}
| mit | C# | |
e99d8f13c68981b481ed37fc27a8e4973459a72e | Write Kebab Casing Tests | WarpSpideR/SuitCase | SuitCase.Tests/KebabCasingHelpersTest.cs | SuitCase.Tests/KebabCasingHelpersTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace SuitCase.Tests
{
public class KebabCasingHelpersTest
{
public static IEnumerable<object[]> FromData
{
get
{
return new List<object[]>... | mit | C# | |
867249813eacd18691bdcb1e1d9c2240e27444aa | Create BuffAppliedPopup.cs | prrovoss/THUD | plugins/Prrovoss/BuffAppliedPopup.cs | plugins/Prrovoss/BuffAppliedPopup.cs | using System.Collections.Generic;
using System;
using System.Linq;
using Turbo.Plugins.Default;
namespace Turbo.Plugins.Prrovoss
{
public class BuffApplied : BasePlugin
{
public class Buff
{
public bool Displayed { get; set; }
public uint SNO { get; set; }
... | mit | C# | |
3bcf9e962c8279cf63ec05e6404ff63cc1507db7 | Test really committed. | FUSEEProjectTeam/JSIL,hach-que/JSIL,FUSEEProjectTeam/JSIL,hach-que/JSIL,iskiselev/JSIL,sq/JSIL,iskiselev/JSIL,FUSEEProjectTeam/JSIL,FUSEEProjectTeam/JSIL,sq/JSIL,sq/JSIL,hach-que/JSIL,hach-que/JSIL,FUSEEProjectTeam/JSIL,iskiselev/JSIL,sq/JSIL,hach-que/JSIL,sq/JSIL,iskiselev/JSIL,iskiselev/JSIL | Tests.DCE/DCETests/StripInterfaceImplementation.cs | Tests.DCE/DCETests/StripInterfaceImplementation.cs | using System;
public static class Program
{
public static void Main(string[] args)
{
ProcessIUsedInterface(new UsedType());
}
public static void ProcessIUsedInterface(IUsedInterface item)
{
item.Run();
}
}
public interface IUnUsedInterface
{ }
public interface IUsedInterface... | mit | C# | |
896601ccbcc1ae5a72ca96a769ce5cfbaef087fb | Annotate the test with ActiveIssue | nbarbettini/corefx,YoupHulsebos/corefx,weltkante/corefx,zhenlan/corefx,stephenmichaelf/corefx,mazong1123/corefx,gkhanna79/corefx,richlander/corefx,dotnet-bot/corefx,rjxby/corefx,fgreinacher/corefx,mmitche/corefx,weltkante/corefx,YoupHulsebos/corefx,tijoytom/corefx,YoupHulsebos/corefx,YoupHulsebos/corefx,jlin177/corefx,... | src/System.Data.SqlClient/tests/FunctionalTests/SqlConnectionTest.cs | src/System.Data.SqlClient/tests/FunctionalTests/SqlConnectionTest.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.Data.SqlClient.Tests
{
public class SqlConnectionBasicTests
{
[Fac... | // 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.Data.SqlClient.Tests
{
public class SqlConnectionBasicTests
{
[Fac... | mit | C# |
b873c4e49614f6cbde69d3f7fd65bca50ddb1a61 | add BuildEmscripten task | lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino,lriki/Lumino | tools/LuminoBuild/Tasks/BuildEmscripten.cs | tools/LuminoBuild/Tasks/BuildEmscripten.cs | using System;
using System.Collections.Generic;
using System.IO;
namespace LuminoBuild.Tasks
{
class BuildEmscripten : BuildTask
{
public override string CommandName { get { return "BuildEmscripten"; } }
public override string Description { get { return "Build Emscripten"; } }
... | mit | C# | |
c6a7f48382a07ea58af2349e7dc8f4d79dd91efd | Add class to load client in private load context. | sharpjs/PSql,sharpjs/PSql | PSql/_Utilities/PSqlClient.cs | PSql/_Utilities/PSqlClient.cs | /*
Copyright 2020 Jeffrey Sharp
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS A... | isc | C# | |
3007a59eeca4041473e98fe4abcd53b2effebd49 | Update TODO | llytvynenko/Orleankka,pkese/Orleankka,yevhen/Orleankka,yevhen/Orleankka,OrleansContrib/Orleankka,mhertis/Orleankka,AntyaDev/Orleankka,mhertis/Orleankka,llytvynenko/Orleankka,ElanHasson/Orleankka,OrleansContrib/Orleankka,pkese/Orleankka,AntyaDev/Orleankka,ElanHasson/Orleankka | Source/Orleankka.Tests/TODO.cs | Source/Orleankka.Tests/TODO.cs | using System;
using System.Linq;
using NUnit.Framework;
namespace Orleankka
{
[TestFixture]
public class TodoFixture
{
[Test, Ignore]
public void Envelopes()
{
// - Envelope and Body attributte
// - Proper selection of Receive channel based on Body typ... | using System;
using System.Linq;
using NUnit.Framework;
namespace Orleankka
{
[TestFixture]
public class TodoFixture
{
[Test, Ignore]
public void Envelopes()
{
// - Envelope and Body attributte
// - Proper selection of Receive channel based on Body typ... | apache-2.0 | C# |
ae08d00e80f1e1e8c13c05873282f3d2aaf3c22c | Fix test mock | karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadi... | src/Host/Client/Test/Mocks/RSessionProviderMock.cs | src/Host/Client/Test/Mocks/RSessionProviderMock.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.R.Host.Client.Host;
using Microsoft.R.Host.Clie... | // 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 System.Threading;
using System.Threading.Tasks;
using Microsoft.R.Host.Client.Host;
using Microsoft.R.Host.Clie... | mit | C# |
c582b47de1c98d4302874182813ea948f397550f | Add user service | Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife | PhotoLife/PhotoLife.Services/UserService.cs | PhotoLife/PhotoLife.Services/UserService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PhotoLife.Data.Contracts;
using PhotoLife.Models;
using PhotoLife.Services.Contracts;
namespace PhotoLife.Services
{
public class UserService : IUserService
{
private readonly IRep... | mit | C# | |
5e04efc886bfc7c302c7848063ea8ac9554e9fb4 | Fix SymbolicReference debugger display | whoisj/libgit2sharp,jorgeamado/libgit2sharp,Zoxive/libgit2sharp,ethomson/libgit2sharp,libgit2/libgit2sharp,psawey/libgit2sharp,github/libgit2sharp,mono/libgit2sharp,dlsteuer/libgit2sharp,xoofx/libgit2sharp,Skybladev2/libgit2sharp,nulltoken/libgit2sharp,vivekpradhanC/libgit2sharp,red-gate/libgit2sharp,Zoxive/libgit2shar... | LibGit2Sharp/SymbolicReference.cs | LibGit2Sharp/SymbolicReference.cs | using System.Diagnostics;
using System.Globalization;
namespace LibGit2Sharp
{
/// <summary>
/// A SymbolicReference is a reference that points to another reference
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class SymbolicReference : Reference
{
private readonly Re... | using System.Diagnostics;
using System.Globalization;
namespace LibGit2Sharp
{
/// <summary>
/// A SymbolicReference is a reference that points to another reference
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class SymbolicReference : Reference
{
private readonly Re... | mit | C# |
e17d053fa6b6d95284a629cca4d60034c78e3426 | Create AccessControlModule.cs | liamning/BlueCrossStaffPortal | AccessControlModule.cs | AccessControlModule.cs | using System;
using System.Collections.Generic;
using System.Web;
/// <summary>
/// Summary description for AccessControl
/// </summary>
public class AccessControl
{
public AccessControl()
{
//
// TODO: Add constructor logic here
//
}
public static Dictionary<string, string> getDisabledFunctionDict()
... | bsd-2-clause | C# | |
5b8155be1fab7a47d560bc3ac442d6d129853ca6 | add average-points grader | ruarai/Trigrad,ruarai/Trigrad | Trigrad/ColorGraders/AverageGrader.cs | Trigrad/ColorGraders/AverageGrader.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Trigrad.ColorGraders
{
public class AverageGrader : IGrader
{
public Color Grade(Color cU, Color cV, Color cW, double u, double v, double w, int x, int y... | mit | C# | |
baa8e837e54267becb1ea50e65fecc49c9bc7e23 | Add FlagsHelper class | bartlomiejwolk/FileLogger | Include/FlagsHelper.cs | Include/FlagsHelper.cs | namespace ATP.LoggingTools {
/// <summary>
/// Helper class for logical bitwise combination setting of Enums with the Flag attribute.
/// This allows code as below where Names is an enum containing a number of names.
/// </summary>
/// <remarks>https://github.com/Maxii/CodeEnv.Master/blob/... | mit | C# | |
05efba8b1ad84fe354bcba8b239e01f38459fac9 | Set AssemblyConfiguration attribute to a simple/default value. | hlltbrk/autofac,neoe1984/autofac,satish860/autofac,neoe1984/autofac,hlltbrk/autofac,hlltbrk/autofac,neoe1984/autofac,satish860/autofac,satish860/autofac,satish860/autofac,neoe1984/autofac,hlltbrk/autofac | VersionAssemblyInfo.cs | VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.239
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.239
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
... | mit | C# |
1659b11b40069a2abb7121b34bbc270f27bdf1f8 | Add failing test | nunit/nunit-console,nunit/nunit-console,nunit/nunit-console | src/NUnitEngine/nunit.engine.tests/Acceptance/InstantiateEngineInsideTest.cs | src/NUnitEngine/nunit.engine.tests/Acceptance/InstantiateEngineInsideTest.cs | // Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt
using System.IO;
using NUnit.Framework;
namespace NUnit.Engine.Tests.Acceptance
{
class InstantiateEngineInsideTest
{
/// <summary>
/// Historically it wasn't possible to instantiate a full engine insi... | mit | C# | |
0e1a59d152c61f5a5c15742caf21a945c06b0987 | Create NumberExtension.cs | lzinga/ComLib | ComLib.Extensions/NumberExtensions.cs | ComLib.Extensions/NumberExtensions.cs | using System;
using System.IO;
namespace ComLib.Extension
{
public static class NumberExtensions
{
/// <summary>
/// Turns the size into a human readable file size.
/// </summary>
public static string FileSizeToString(this long size)
{
string[] sizes = { "B",... | mit | C# | |
2defb5d666816775e57bc65f625abb2e70c04d04 | Test coverage | Grinderofl/FluentModelBuilder,Grinderofl/FluentModelBuilder | test/FluentModelBuilder.Tests/AssemblyTests/AddingEntitiesFromConventions.cs | test/FluentModelBuilder.Tests/AssemblyTests/AddingEntitiesFromConventions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FluentModelBuilder.Conventions.Core.Options.Extensions;
using FluentModelBuilder.Conventions.EntityConvention.Options.Extensions;
using FluentModelBuilder.Extensions;
using FluentModelBuilder.Options;
using FluentMod... | mit | C# | |
18800c6066245814f6b8cbe99f96b6e43abe7789 | Drop in a Content file on install to disable WPF's scaling | minhthuanit/PerMonitorDpi,paulcbetts/PerMonitorDpi,CrimsonArc/PerMonitorDpi | Content/DisableSystemDpiAwareness.cs | Content/DisableSystemDpiAwareness.cs | using System.Windows.Media;
// Disable WPF's built-in scaling, we're doing it ourselves
[assembly:DisableDpiAwareness]; | mit | C# | |
7d4200d0a430c5d0bfb06575c42eb9fa58d17c11 | Add unit tests to validate the value of properties set in ISecurityCapabilities. | mconnew/wcf,mconnew/wcf,StephenBonikowsky/wcf,StephenBonikowsky/wcf,imcarolwang/wcf,dotnet/wcf,dotnet/wcf,dotnet/wcf,imcarolwang/wcf,imcarolwang/wcf,mconnew/wcf | src/System.ServiceModel.Security/tests/ServiceModel/ISecurityCapabilitiesTest.cs | src/System.ServiceModel.Security/tests/ServiceModel/ISecurityCapabilitiesTest.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.ServiceModel;
using System.ServiceModel.Channels;
using Infrastructure.Common;
using Xu... | mit | C# | |
1fcda808caca25276319d6aab6e1d616368b7dfc | Add comment. | gafter/roslyn,AmadeusW/roslyn,mgoertz-msft/roslyn,VSadov/roslyn,pdelvo/roslyn,genlu/roslyn,MattWindsor91/roslyn,MichalStrehovsky/roslyn,mmitche/roslyn,diryboy/roslyn,mavasani/roslyn,gafter/roslyn,stephentoub/roslyn,OmarTawfik/roslyn,vslsnap/roslyn,bkoelman/roslyn,CaptainHayashi/roslyn,AdamSpeight2008/roslyn-AdamSpeight... | src/Workspaces/Remote/Core/Storage/RemotePersistentStorageLocationService.cs | src/Workspaces/Remote/Core/Storage/RemotePersistentStorageLocationService.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Composition;
using System.IO;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host.Mef;
names... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Composition;
using System.IO;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host.Mef;
names... | apache-2.0 | C# |
468f2ee9bb066041f56dbe96d675dfca758db03d | Add file | dkschlos/PVM.NET | src/PVM.Core/Plan/Operations/DynamicOperation.cs | src/PVM.Core/Plan/Operations/DynamicOperation.cs | using System;
using PVM.Core.Data;
using PVM.Core.Runtime;
namespace PVM.Core.Plan.Operations
{
public class DynamicOperation<T> : IOperation<T> where T : ICopyable<T>
{
private readonly Action<IExecution<T>> action;
public DynamicOperation(Action<IExecution<T>> action)
{
... | apache-2.0 | C# | |
530a90695fb7fd2e78ce856a16f8d80c26184361 | Create Problem27.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problems/Problem27.cs | Problems/Problem27.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectEuler
{
class Problem27
{
public void Run()
{
int x = 1000;
Sieve s = new Sieve(x*x + x*x + x); // n^2 + a*n + b @ n,a,b = 1000
List<int> primes = new List<... | mit | C# | |
6677e509cc1fb398437f89d6a9f08d129d15b185 | Implement GameCreateViewModel and GameEditViewModel | lucasdavid/Gamedalf,lucasdavid/Gamedalf | Gamedalf/ViewModels/GameViewModels.cs | Gamedalf/ViewModels/GameViewModels.cs | using System.ComponentModel.DataAnnotations;
namespace Gamedalf.ViewModels
{
public class GameCreateViewModel
{
[Required]
[Display(Name = "Title")]
public string Title { get; set; }
[Display(Name = "Description")]
public string Description { get; set; }
... | mit | C# | |
15792bd9c95f57852e2a6883d244437d80a9808a | Test for GoogleOptimizeRouteService | forestcheng/allReady,forestcheng/allReady,forestcheng/allReady,forestcheng/allReady | AllReadyApp/Web-App/AllReady.UnitTest/Services/GoogleOptimizeRouteServiceTest.cs | AllReadyApp/Web-App/AllReady.UnitTest/Services/GoogleOptimizeRouteServiceTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AllReady.UnitTest.Services
{
public class GoogleOptimizeRouteServiceTest : InMemoryContextTest
{
private const string EncodedStartAddress = "252 Dundas St, London, ON N6A 1H3";
private co... | mit | C# | |
d4a6f3cf93731a2aaecc5395ce084e6b823d1448 | Create SinglyLinkedList.cs | vishipayyallore/CSharp-DotNet-Core-Samples | LearningDesignPatterns/Source/Alogithms/LogicPrograms/Common/SinglyLinkedList.cs | LearningDesignPatterns/Source/Alogithms/LogicPrograms/Common/SinglyLinkedList.cs | namespace LogicPrograms.Common
{
public class SinglyLinkedList
{
public SinglyLinkedListNode Head;
public SinglyLinkedListNode Tail;
public SinglyLinkedList()
{
Head = null;
Tail = null;
}
public void InsertNode(int nodeData)
{
... | apache-2.0 | C# | |
22e3d0d64c189b4744b7a5da337b82aa54423510 | Add LinkElement. | x335/scriptsharp,nikhilk/scriptsharp,x335/scriptsharp,x335/scriptsharp,nikhilk/scriptsharp,nikhilk/scriptsharp | src/Libraries/Web/Html/LinkElement.cs | src/Libraries/Web/Html/LinkElement.cs | // LinkElement.cs
// Script#/Libraries/Web
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System;
using System.Runtime.CompilerServices;
namespace System.Html {
[ScriptIgnoreNamespace]
[ScriptImport]
public sealed class LinkElement : Element {
... | apache-2.0 | C# | |
38d3d3aa549dc81ea7ec6342601a2c7be93f1577 | Create _Layout.cshtml | CarmelSoftware/Generic-Data-Repository-With-Caching | Views/Shared/_Layout.cshtml | Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://max... | mit | C# | |
7ed5c418b0e7bb9226b18ae3f959645da6c67503 | Create CompDir.cs | etormadiv/njRAT_0.7d_Stub_ReverseEngineering | j_csharp/OK/CompDir.cs | j_csharp/OK/CompDir.cs | //Reversed by Etor Madiv
private static bool CompDir(System.IO.FileInfo F1, System.IO.FileInfo F2)
{
if ( Microsoft.VisualBasic.CompilerServices.Operators.CompareString(
F1.Name.ToLower(),
F2.Name.ToLower(),
false
) != 0
)
return false;
System.IO.DirectoryInfo leftDir = F1.Directory;
System.IO.... | unlicense | C# | |
859572931a3f1e2bdc2f39d25774a10406b4b807 | Create ConditionalRequiredAttribute.cs | karaxuna/ConditionalRequiredAttribute,karaxuna/ConditionalRequiredAttribute | ConditionalRequiredAttribute.cs | ConditionalRequiredAttribute.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Web.Mvc;
namespace CustomAttributes
{
public class ConditionalRequiredAttribute : RequiredAttribute, IClientValid... | mit | C# | |
21772997283247156b6a144fe1a1d672fa91c89f | Add Status tests | jasonracey/iTunesAssistant | iTunesAssistantLibTest/StatusTests.cs | iTunesAssistantLibTest/StatusTests.cs | using FluentAssertions;
using iTunesAssistantLib;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace iTunesAssistantLibTest
{
[TestClass]
public class StatusTests
{
private readonly Random _random = new Random();
[TestMethod]
public void ItemsTotal_MustBeG... | mit | C# | |
a2b9dc3aada6c45c9285ad9873b8494ccdc1fc7e | Add ISerializer impl. that uses JSON.NET | smarts/log4net.Ext.Json.Serializers | shared/JsonDotNetSerializer.cs | shared/JsonDotNetSerializer.cs | using System.IO;
using System.Text;
using log4net.ObjectRenderer;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace log4net.Util.Serializer
{
public class JsonDotNetSerializer : ISerializer
{
public RendererMap Map { get; set; }
public object Serialize(object obj)
{... | mit | C# | |
b928b1b52972c6d42735ae3649a2855fe43d66d8 | Add MaskingTests | Carbon/Css | src/Carbon.Css.Tests/Modules/MaskingTests.cs | src/Carbon.Css.Tests/Modules/MaskingTests.cs | using Xunit;
namespace Carbon.Css.Tests
{
public class MaskingTests
{
[Fact]
public void A()
{
var text = @"
//= support Safari >= 5
div {
mask-image: url('mask.svg');
}
";
Assert.Equal(@"
div {
-webkit-mask-image: url('mask.svg');... | mit | C# | |
602a9ff3cd675fc4f2dee8b477cdff6ab565a0d8 | Revert "Delete SlackIntegration.cs" | Sankra/DIPSbot,Sankra/DIPSbot | src/Hjerpbakk.DIPSbot/SlackIntegration.cs | src/Hjerpbakk.DIPSbot/SlackIntegration.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Hjerpbakk.DIPSbot.Extensions;
using Hjerpbakk.DIPSBot;
using Hjerpbakk.DIPSBot.Configuration;
using SlackConnector;
using SlackConnector.EventHandlers;
using SlackConnector.Models;
namespace Hjerpbakk.DIPSbot
{
///... | mit | C# | |
63087379529da64b902dc139db8b9f80172a0a42 | Add employee and manager as user roles | alexandraholcombe/PetAdoptionCRM,alexandraholcombe/PetAdoptionCRM,alexandraholcombe/PetAdoptionCRM | src/PetAdoptionCRM/Models/EmployeeRole.cs | src/PetAdoptionCRM/Models/EmployeeRole.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PetAdoptionCRM.Models
{
public class EmployeeRole : IdentityRole
{
}
}
| mit | C# | |
243538a6fd9b5f187f1d4a97f0bbd6a9f018cb3b | Create effect profile | Ziggeo/ZiggeoCSharpSDK,Ziggeo/ZiggeoCSharpSDK | demos/ADD_Effect_Profile.cs | demos/ADD_Effect_Profile.cs | using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
namespace Add_effect_Profile
{
public class ADD_Effect_Profile
{
public static void Main(string[] args)
{
Ziggeo ziggeo =... | apache-2.0 | C# | |
37726f403a777e567f2f580ea3ed84ab19ffe787 | Add unit test for GetSymmetricAlgorithm. | StephenBonikowsky/wcf,mconnew/wcf,dotnet/wcf,mconnew/wcf,imcarolwang/wcf,StephenBonikowsky/wcf,dotnet/wcf,imcarolwang/wcf,dotnet/wcf,imcarolwang/wcf,mconnew/wcf | src/System.ServiceModel.Primitives/tests/IdentityModel/SymmetricSecurityKeyTest.cs | src/System.ServiceModel.Primitives/tests/IdentityModel/SymmetricSecurityKeyTest.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 System.Security.Cryptography;
using Infrastructure.Common;
using Xunit... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.