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 |
|---|---|---|---|---|---|---|---|---|
07e00db17cfeb05d2d9a738c135f093e98e0f93a | fix UriHelper | NicolasDorier/NBitcoin,bitcoinbrisbane/NBitcoin,MetacoSA/NBitcoin,HermanSchoenfeld/NBitcoin,lontivero/NBitcoin,thepunctuatedhorizon/BrickCoinAlpha.0.0.1,MetacoSA/NBitcoin,you21979/NBitcoin,stratisproject/NStratis,dangershony/NStratis | NBitcoin/Payment/UriHelper.cs | NBitcoin/Payment/UriHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace NBitcoin.Payment
{
static class UriHelper
{
public static Dictionary<string, string> DecodeQueryParameters(string uri)
{
if(uri == null)
throw new ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace NBitcoin.Payment
{
static class UriHelper
{
public static Dictionary<string, string> DecodeQueryParameters(string uri)
{
if(uri == null)
throw new ... | mit | C# |
f632c7c4cc3f6fe531a343d6f993de642f07ea28 | Sort stacks | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | ByteByByte/sort_stacks.cs | ByteByByte/sort_stacks.cs | // http://www.byte-by-byte.com/sortstacks/
//
// Given a stack, sort the elements in the stack using one additional stack.
// eg.
//
// sort([1, 3, 2, 4]) = [1, 2, 3, 4]
//
// Once you think that you’ve solved the problem, head to the next page for the solution.
using System;
using System.Collections.Generic;
st... | mit | C# | |
5cc7cddcbe7d21bd5683f9606a3dc2556487d33a | Add THE IDOLM@STER CINDERELLA GIRLS ANIMATION PROJECTシリーズCD発売記念イベント | mayuki/RadioWhip | Imas-Cinderella-ApEvent.cshtml | Imas-Cinderella-ApEvent.cshtml | @using System.Text
@using CsQuery
@RadioWhip.Feedify(
"http://columbia.jp/idolmaster/cinderellaapevent/",
"THE IDOLM@STER CINDERELLA GIRLS ANIMATION PROJECTシリーズCD発売記念イベント",
(content, cq) =>
{
return cq["#newsContent h3"]
.Select(x => x.Cq())
.Select(x =>
{
... | mit | C# | |
c438082fd2dde771f0b3f1628777a3e2bd12214f | add sampleindex file for droiddoc to customize the breadcrumbs | ND-3500/platform_manifest,fallouttester/platform_manifest,xorware/android_build,xorware/android_build,pranav01/platform_manifest,knone1/platform_manifest,xorware/android_build,xorware/android_build,xorware/android_build,see4ri/lolili,RR-msm7x30/platform_manifest,hagar006/platform_manifest,Hybrid-Power/startsync | tools/droiddoc/templates-sdk/sampleindex.cs | tools/droiddoc/templates-sdk/sampleindex.cs | <?cs include:"doctype.cs" ?>
<?cs include:"macros.cs" ?>
<?cs set:resources="true" ?>
<html>
<?cs include:"head_tag.cs" ?>
<?cs include:"header.cs" ?>
<body class="gc-documentation">
<a name="top"></a>
<div class="g-unit" id="doc-content">
<div id="jd-header" class="guide-header">
<span class="crumb">
<a h... | mit | C# | |
bac53343af48fc0648fb1bb10a71393a734e1e71 | Rename Emitter to match type name | tristanles/mapreduce-dojo-csharp | MapReduceDojo/IEmitter.cs | MapReduceDojo/IEmitter.cs | using System;
namespace MapReduceDojo
{
public interface IEmitter<in T>
{
void Emit(String key, T value);
}
}
| mit | C# | |
24de47c63e55dbf6f9d772ef81f9204b580f9ad9 | support ppedf env | rhencke/ARMExplorer,simongdavies/ARMExplorer,simongdavies/ARMExplorer,mabsimms/ARMExplorer,projectkudu/AzureResourceExplorer,mabsimms/ARMExplorer,simongdavies/ARMExplorer,projectkudu/AzureResourceExplorer,mabsimms/ARMExplorer,projectkudu/ARMExplorer,rhencke/ARMExplorer,projectkudu/ARMExplorer,rhencke/ARMExplorer,juvcha... | Controllers/Utils.cs | Controllers/Utils.cs | using System;
using System.Diagnostics;
using System.Net.Http;
using System.Threading.Tasks;
namespace ARMExplorer.Controllers
{
public static class Utils
{
public const string X_MS_OAUTH_TOKEN = "X-MS-OAUTH-TOKEN";
public const string X_MS_Ellapsed = "X-MS-Ellapsed";
public const stri... | using System;
using System.Diagnostics;
using System.Net.Http;
using System.Threading.Tasks;
namespace ARMExplorer.Controllers
{
public static class Utils
{
public const string X_MS_OAUTH_TOKEN = "X-MS-OAUTH-TOKEN";
public const string X_MS_Ellapsed = "X-MS-Ellapsed";
public const stri... | apache-2.0 | C# |
e84b901233010138d21784dfea00037d9d96317e | Make the HttpModule create the provider that the system needs in the context of asp.net | modulexcite/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon,ZocDoc/ZocMon | source/ZocMonLib.Web.AspNet/Framework/HttpModule.cs | source/ZocMonLib.Web.AspNet/Framework/HttpModule.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
namespace ZocMonLib.Web.AspNet
{
/// <summary>
/// Module is designed to trigger the load of ZocMonWeb
/// </summary>
public class HttpModule : IHttpModule
{
protected static volatile bo... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
namespace ZocMonLib.Web.AspNet
{
/// <summary>
/// Module is designed to trigger the load of ZocMonWeb
/// </summary>
public class HttpModule : IHttpModule
{
protected static volatile bo... | apache-2.0 | C# |
cb40b511d6c6b21425c5f538d60a51614ee17e7b | Create FormatUtil.cs | drawcode/labs-csharp | utilities/FormatUtil.cs | utilities/FormatUtil.cs | using System;
using System.Collections.Generic;
namespace Labs.Utility {
public class FormatUtil {
public static string GetFormattedTime(double seconds, string format) {
TimeSpan t = TimeSpan.FromSeconds(seconds);
string formatted = string.Format(format,
t.Hours,
... | mit | C# | |
1cc1f6957c0011f7a5620a29cd5fba4d04b1dd2b | Update version to 3.2.0.0 to reflect style refactor and metadata feature switches. | Derekolds/compute-image-windows,GoogleCloudPlatform/compute-image-windows,illfelder/compute-image-windows,illfelder/compute-image-windows,adjackura/compute-image-windows,ning-yang/compute-image-windows,adjackura/compute-image-windows,ning-yang/compute-image-windows,GoogleCloudPlatform/compute-image-windows | agent/Common/Properties/VersionInfo.cs | agent/Common/Properties/VersionInfo.cs | /*
* Copyright 2015 Google Inc. 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 required by applica... | /*
* Copyright 2015 Google Inc. 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 required by applica... | apache-2.0 | C# |
1a116c9e986ff6249f762d8f76bf39b08719eff2 | Add Validation tool tip helper | tom-englert/TomsToolbox | TomsToolbox.Wpf/XamlExtensions/Validation.cs | TomsToolbox.Wpf/XamlExtensions/Validation.cs | namespace TomsToolbox.Wpf.XamlExtensions
{
using System;
using System.ComponentModel;
using System.Linq;
using System.Windows;
using JetBrains.Annotations;
/// <summary>
/// Validation XAML extensions.
/// </summary>
public static class Validation
{
[NotNull]
/... | mit | C# | |
6671bee1823ca94b358b0a764503daee00b40947 | Add regression test for GetHashCode of default handles (#26202) | mmitche/corefx,Jiayili1/corefx,ericstj/corefx,ViktorHofer/corefx,ViktorHofer/corefx,ericstj/corefx,shimingsg/corefx,Ermiar/corefx,mmitche/corefx,ptoonen/corefx,Ermiar/corefx,ViktorHofer/corefx,ravimeda/corefx,wtgodbe/corefx,zhenlan/corefx,ViktorHofer/corefx,ViktorHofer/corefx,BrennanConroy/corefx,ericstj/corefx,shiming... | src/System.Runtime/tests/System/HandleTests.cs | src/System.Runtime/tests/System/HandleTests.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.Runtime;
using System.Reflection;
using Xunit;
public static class HandleTests
{
[F... | // 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.Runtime;
using System.Reflection;
using Xunit;
public static class HandleTests
{
[F... | mit | C# |
9b90978506bd4184f2d1710a0e4eedacb7f04a14 | add CoordinateUpdate2DWith3D.cs | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/UnityTools/CoordinateUpdate2DWith3D.cs | Unity/UnityTools/CoordinateUpdate2DWith3D.cs | u s i n g S y s t e m . C o l l e c t i o n s ;
u s i n g S y s t e m . C o l l e c t i o n s . G e n e r i c ;
u s i n g U n i t y E n g i n e ;
p u b l i c c l a s s C o o r d i n a t e U p d a t e 2 D W i t h 3 D : M o n o B e h a v i o u r
{
p u b l i c C a m e r a m _ ... | mit | C# | |
2b7f99c614044d1ad805285dcc3e8633d2a8a130 | Create TestPlayerBoardClass.cs | Minesweeper-6-Team-Project-Telerik/Minesweeper-6 | src2/Minesweeper.Test/Models/TestPlayerBoardClass.cs | src2/Minesweeper.Test/Models/TestPlayerBoardClass.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Minesweeper.Test.Models
{
using Minesweeper.Models;
using Minesweeper.Models.Exceptions;
[TestClass]
class TestPlayerBoardClass
{
[TestMethod]
public void TestCreateMinesweeperPlayerBoard()
{
... | mit | C# | |
ffeaca2df86eeac5e39f7b8e8117e6ffc6fa1131 | Create UmbracoPath.cs | sprintstar/UmbracoFileSystemProviders.SQLFileStream | UmbracoPath.cs | UmbracoPath.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UmbracoSQLMedia.Logic
{
class UmbracoPath
{
// Takes the standard Umbraco media path of nnnn\y where n is the directory and y the filename
// and splits it into director... | mit | C# | |
98a74a311ffdd9875f16f4e55a46e1c42418dbe7 | add FulfillmentService | vinhch/BizwebSharp | src/BizwebSharp/Services/Fulfillment/FulfillmentService.cs | src/BizwebSharp/Services/Fulfillment/FulfillmentService.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using BizwebSharp.Entities;
using BizwebSharp.Extensions;
using BizwebSharp.Infrastructure;
using BizwebSharp.Options;
namespace BizwebSharp.Services
{
public class FulfillmentService : BaseService
{
public FulfillmentService(BizwebAuthor... | mit | C# | |
c29a05572995e4a6c86cee578e9ce0b77ccd09ac | Add Themeable ToolStripComboBox control | jthorpe4/EDDiscovery,vendolis/EDDiscovery,jeoffman/EDDiscovery,jgoode/EDDiscovery,jeoffman/EDDiscovery,mwerle/EDDiscovery,jgoode/EDDiscovery,mwerle/EDDiscovery,vendolis/EDDiscovery | EDDiscovery/Controls/ToolStripComboBoxCustom.cs | EDDiscovery/Controls/ToolStripComboBoxCustom.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms.Design;
using System.Windows.Forms;
using System.Drawing;
namespace ExtendedControls
{
[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability... | apache-2.0 | C# | |
a48ed58f454bc12a68c5befdf7f358e74cbc861d | Index page for Customers added. | transactionCompleteDB/MAutoSS,transactionCompleteDB/MAutoSS | MAutoSS/MAutoSS.Web/Views/Customer/Index.cshtml | MAutoSS/MAutoSS.Web/Views/Customer/Index.cshtml | @{
ViewBag.Title = "Customers";
}
@Html.Partial("CustomerOptionsPartial") | mit | C# | |
66754e199066363c079cbfa84a34aafe70a5d1c5 | Add custom project exception type. | CoraleStudios/Colore,danpierce1/Colore,Sharparam/Colore,WolfspiritM/Colore | Colore/ColoreException.cs | Colore/ColoreException.cs | // ---------------------------------------------------------------------------------------
// <copyright file="ColoreException.cs" company="">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and ... | mit | C# | |
9ca2315a243add9cd781c5e227801a81041fab70 | Refactor IEnumerableExtensions | wangkanai/Detection | src/Extensions/EnumerableExtensions.cs | src/Extensions/EnumerableExtensions.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.Linq;
namespace Wangkanai.Detection.Extensions
{
internal static class EnumerableExtensions
{
... | apache-2.0 | C# | |
179f2f433a593adb7d31bdb970337fee7fd955be | add providersfacade to provider test project | dd4t/dd4t-2-net,dd4t/DD4T.Core | source/DD4T.Providers.Test/ProvidersFacade.cs | source/DD4T.Providers.Test/ProvidersFacade.cs | using DD4T.ContentModel.Contracts.Configuration;
using DD4T.ContentModel.Contracts.Logging;
using DD4T.ContentModel.Contracts.Providers;
using DD4T.ContentModel.Contracts.Resolvers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DD4T.Provi... | apache-2.0 | C# | |
2e0f599567131bc2cab02cf6b1bf101d169824f4 | Create AddressApi.cs | MingLu8/Nancy.WebApi.HelpPages | src/Nancy.WebApi.HelpPages.Demo/AddressApi.cs | src/Nancy.WebApi.HelpPages.Demo/AddressApi.cs | using System.Collections.Generic;
using System.Drawing;
using Nancy.WebApi.AttributeRouting;
namespace Nancy.WebApi.Demo
{
/// <summary>
/// Web API for Address.
/// </summary>
[RoutePrefix("api/address")]
public class AddressApi : ApiController
{
/// <summary>
/// Gets all addr... | mit | C# | |
d808f42feb8ca1c9ad89ef73b294e97ab911a1b3 | Work on derived ObservableBase. | georgebearden/ReactiveTests | Source/ReactiveTests/CustomObservable.cs | Source/ReactiveTests/CustomObservable.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ReactiveTests
{
public class CustomObservable : ObservableBase<DateTime>
{
protected override IDis... | mit | C# | |
7cd6a3d7cc1eea4ecca166bd5e7bd3908aefabab | Improve tests | carbon/Amazon | src/Amazon.Kinisis.Tests/DescribeStreamResultTests.cs | src/Amazon.Kinisis.Tests/DescribeStreamResultTests.cs | using System.Text.Json;
using Xunit;
namespace Amazon.Kinesis.Tests
{
public class DescribeStreamResultTests
{
[Fact]
public void Deserialize()
{
string text = @"{
""StreamDescription"": {
""HasMoreShards"": false,
""Shards"": [
{
""... | mit | C# | |
2733ae3f7a30c0dafcd0a3077cc88d1155e6bb58 | add char sugar | m5knt/BrownSugar | Sources/BrownSugar/Char/Char.cs | Sources/BrownSugar/Char/Char.cs | /**
* @file
* @brief 文字列回りのシュガー
* @author Yukio KANEDA
*/
using System.Globalization;
//
//
//
namespace ThunderEgg.BrownSugar {
public static partial class Sugar {
public static double GetNumericValue(this char c) {
return char.GetNumericValue(c);
}
public static Unic... | mit | C# | |
06ed350a3862a247c04abb30a38723a1956f76b1 | Add missing file for 0188bf6b. | KodrAus/elasticsearch-net,faisal00813/elasticsearch-net,abibell/elasticsearch-net,cstlaurent/elasticsearch-net,azubanov/elasticsearch-net,tkirill/elasticsearch-net,CSGOpenSource/elasticsearch-net,geofeedia/elasticsearch-net,Grastveit/NEST,DavidSSL/elasticsearch-net,starckgates/elasticsearch-net,wawrzyn/elasticsearch-ne... | src/ElasticSearch.Client/Domain/Hit/MultiHit.cs | src/ElasticSearch.Client/Domain/Hit/MultiHit.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace ElasticSearch.Client
{
[JsonObject]
public class MultiHit<T> where T : class
{
[JsonProperty("docs")]
public IEnumerable<Hit<T>> Hits { get; internal set; }
}
}
| apache-2.0 | C# | |
dce80c81011ea57f89d88b706bdb9d775ab15e6f | Add AddPackage command | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.GlobalTool/Program.AddPackage.cs | source/Nuke.GlobalTool/Program.AddPackage.cs | // Copyright 2021 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Common;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
using Nuke.Common.Tooling;
using Nuke.Common.Too... | mit | C# | |
0429fb5fe89762f9fdd83765dbd106e503e41794 | add ConcurrentSet | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Helpers/ConcurrentSet.cs | src/WeihanLi.Common/Helpers/ConcurrentSet.cs | using System.Collections.Concurrent;
using System.Collections.Generic;
namespace WeihanLi.Common.Helpers
{
public class ConcurrentSet<T>
{
private readonly ConcurrentDictionary<T, bool> _dictionary = new ConcurrentDictionary<T, bool>();
public bool IsEmpty => _dictionary.IsEmpty;
pub... | mit | C# | |
5bd9277823c24469b6a10231d7851ac7122117f9 | Create CiaccoPRNG.cs | CiaccoDavide/CiaccoPRNG,CiaccoDavide/CiaccoPRNG | CiaccoPRNG.cs | CiaccoPRNG.cs | using System;
public class CiaccoRandom
{
private static int tree=0;
// set the seed
public void plantSeed(int seed)
{
tree = Math.Abs(seed) % 9999999+1;
getRand(0, 9999999);
}
// get a random int between $min and $max [both included]
public int getRand(int min, int max)
... | mit | C# | |
5dda3d7ccaead4dee757c92a33c3eaa33acc14dd | Add ninject module for mvp | Branimir123/ZobShop,Branimir123/ZobShop,Branimir123/ZobShop | src/ZobShop.Web/App_Start/NinjectModules/MvpNinjectModule.cs | src/ZobShop.Web/App_Start/NinjectModules/MvpNinjectModule.cs | using System;
using System.Linq;
using Ninject;
using Ninject.Activation;
using Ninject.Modules;
using Ninject.Parameters;
using WebFormsMvp;
namespace ZobShop.Web.App_Start.NinjectModules
{
public class MvpNinjectModule : NinjectModule
{
private const string ViewConstructorArgumentName = "view";
... | mit | C# | |
842de091f13e8e59c3aa9ed3f20caf211db2389f | Create ShuffleBag.cs | efruchter/UnityUtilities | ShuffleBag.cs | ShuffleBag.cs | using System;
using System.Collections.Generic;
/*
* Generic version of: http://gamedevelopment.tutsplus.com/tutorials/shuffle-bags-making-random-feel-more-random--gamedev-1249
*
* A random generator that guarantees events occur with a controllable amount.
* It's a good idea to make sure that improbable events act... | mit | C# | |
566737d8259bb5629b4cfd39d06a3fa5a6c6becf | create flag attribute | mykeels/CommandLineParser | CommandLineParser/Attributes/FlagAttribute.cs | CommandLineParser/Attributes/FlagAttribute.cs | using System;
namespace CommandLineParser.Attributes
{
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
public sealed class FlagAttribute : Attribute
{
private readonly string shortName;
private readonly string name;
public readonly bool require... | mit | C# | |
44aade1038135fc981fe99f6a20b72cd00db69db | Add a RelativeOffset to make it easier to see that is going on | charlenni/Mapsui,charlenni/Mapsui | Mapsui/Styles/RelativeOffset.cs | Mapsui/Styles/RelativeOffset.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Mapsui.Styles
{
public class RelativeOffset : Offset
{
/// <summary>
/// Offset of an image to the center of the source. The unit of measure
/// is the width or height of an image. An offset of (0, 0.5) will b... | mit | C# | |
19104804c9fa4cf85b4f2452e9331def03185d97 | Add DepartmentsController | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | src/Diploms.WebUI/Controllers/DepartmentsController.cs | src/Diploms.WebUI/Controllers/DepartmentsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace Diploms.WebUI.Controllers
{
[Route("api/[controller]")]
public class DepartmentsController : Controller
{
[HttpGet("")]
public IEnumerable<Department> G... | mit | C# | |
01397e03d77906555d0e8e35a71d7f4b53f806d6 | Revert "Revert "Privide equivalent to System.currentTimeMillis()"" | AdaptiveMe/adaptive-arp-windows | adaptive-arp-impl-win/adaptive-arp-impl-win/Util/TimeUtils.cs | adaptive-arp-impl-win/adaptive-arp-impl-win/Util/TimeUtils.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Adaptive.Arp.Impl.Util
{
public class TimeUtils
{
private static readonly DateTime Jan1st1970 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
private TimeUtils(... | apache-2.0 | C# | |
679d17c1f2c50177abe6251d2d72dbd77ea35f39 | Create lesson2.cs | AndrewTurlanov/ANdrew | lesson2.cs | lesson2.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int d = Convert.ToInt32(Console.ReadLine());
if (d < 0)
{
Console.WriteLine("Отриц... | apache-2.0 | C# | |
dd43d98880bba5a3691ada26dce3efcaee4da5d3 | Create driver.cs | FrostCat/nefarious-octo-spork | driver.cs | driver.cs | using Intermediate;
using System;
public class driver
{
public static void Main(string[] args)
{
Int i = new Int();
Console.WriteLine("Asked for version, got [" + i.GetExt() + "]");
}
}
| mit | C# | |
2fdf3314931692b96ab8e127420da879dee42669 | add experimental `NullabilityAttribute` | Kukkimonsuta/Odachi | src/Odachi.Annotations/NullabilityAttribute.cs | src/Odachi.Annotations/NullabilityAttribute.cs | using System;
namespace Odachi.Annotations
{
/// <summary>
/// Denotes whether value / parameter / field / property can be null. Please note that this attribute is experimental and intended use
/// is to prepare for https://github.com/dotnet/csharplang/issues/36
/// </summary>
[AttributeUsage(AttributeTargets.Ret... | apache-2.0 | C# | |
41cced59b828af869948c387cf9b3e59652ee6bd | Create EditorTools.cs | Ibuprogames/Unity-Standard-Hierarchy | Scripts/Editor/Tools/EditorTools.cs | Scripts/Editor/Tools/EditorTools.cs | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Unity Standard Hierarchy.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Ibuprogames
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this... | mit | C# | |
40d0700fa514da9d4df1abd78fbe3a74a053d985 | Add structure for path control points | UselessToucan/osu,smoogipoo/osu,ppy/osu,peppy/osu,EVAST9919/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,ppy/osu,peppy/osu,johnneijzen/osu,2yangk23/osu,peppy/osu-new,2yangk23/osu,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,EVAST9919/osu,ppy/osu,UselessToucan/osu | osu.Game/Rulesets/Objects/PathControlPoint.cs | osu.Game/Rulesets/Objects/PathControlPoint.cs | using System;
using osu.Framework.Bindables;
using osu.Game.Rulesets.Objects.Types;
using osuTK;
namespace osu.Game.Rulesets.Objects
{
public class PathControlPoint : IEquatable<PathControlPoint>
{
public readonly Bindable<Vector2> Position = new Bindable<Vector2>();
public readonly Bindable<P... | mit | C# | |
2b69cbb7fbff392972b188b576beb3e036a3e0c8 | Add the plugboard component | It423/enigma-simulator,wrightg42/enigma-simulator | Enigma/EnigmaUtilities/Components/Plugboard.cs | Enigma/EnigmaUtilities/Components/Plugboard.cs | // Plugboard.cs
// <copyright file="Plugboard.cs"> This code is protected under the MIT License. </copyright>
using System.Collections.Generic;
using System.Linq;
namespace EnigmaUtilities.Components
{
/// <summary>
/// An implementation of the plug board component for the enigma machine.
/// </summary>
... | mit | C# | |
1a41c4eb7507166a2adfcec3dab372315038d6aa | Add ClosingBehavior. | cube-soft/Cube.Core,cube-soft/Cube.Forms,cube-soft/Cube.Core,cube-soft/Cube.Forms | Libraries/Sources/Behaviors/ClosingBehavior.cs | Libraries/Sources/Behaviors/ClosingBehavior.cs | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... | apache-2.0 | C# | |
3e6bfb086ae663fa58a9063557a9356d08a409df | Include WhistPlayer | ashfordl/cards | CardGames/Whist/WhistPlayer.cs | CardGames/Whist/WhistPlayer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CardsLibrary;
namespace CardGames.Whist
{
public abstract class WhistPlayer : Player<WhistInfo>
{
protected List<Card> DetectValidCards(WhistInfo args)
{
// Can... | mit | C# | |
2edb5432ff87b8aa04ab85ba7efceed8afb26961 | Revert "Delete MailChimpTest.cs" | brandonseydel/MailChimp.Net | MailChimp.Net.Tests/MailChimpTest.cs | MailChimp.Net.Tests/MailChimpTest.cs | using MailChimp.Net.Interfaces;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace MailChimp.Net.Tests
{
public abstract class MailChimpTest
{
protected IMailChimpManager _mailChimpManager;
[TestInitialize]
public void Initialize()
{
_mailChimpManager = ... | mit | C# | |
e92c7be096556d9ff6f94eac6a79238447ff7be5 | Improve string interpolation test | EamonNerbonne/ExpressionToCode,asd-and-Rizzo/ExpressionToCode | ExpressionToCodeTest/StringInterpolationTest.cs | ExpressionToCodeTest/StringInterpolationTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExpressionToCodeLib;
using Xunit;
namespace ExpressionToCodeTest
{
public class StringInterpolationTest
{
FormattableString Interpolation(FormattableString str) => str;
[Fact]
pub... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExpressionToCodeLib;
using Xunit;
namespace ExpressionToCodeTest
{
public class StringInterpolationTest
{
[Fact]
public void BasicStringInterpolation()
{
Assert.Equal(@... | apache-2.0 | C# |
fa9a24ee3e9d2ad02b615fba8ffe4fdf00bf59ac | Create main.cs | TeamZeto/ProjektJakis | main.cs | main.cs | /*Enter file contents here*/
| mit | C# | |
9756a835c039d87b137b5743a0253c6aca78646d | Add new Author: Victor Silva | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/VictorSilva.cs | src/Firehose.Web/Authors/VictorSilva.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class VictorSilva : IAmAMicrosoftMVP, IFilterMyBlogPosts
{
public string FirstName => "Victor";
p... | mit | C# | |
2102fe199958f11a29705a4a951058eac8aea4f2 | add gentoo utils cheatsheet | lesovsky/uber-scripts,lesovsky/uber-scripts,lesovsky/uber-scripts | cheatsheets/gentoo-tools.cs | cheatsheets/gentoo-tools.cs | portage-utils
qfile <filename> -- what package filename belongs.
qsize <pkg> -- get size used by pkg.
quse -D <useflag> -- describe USE flag
qlop -l -- list merge history (based on emerge.log), helps to answer when pkg was installed
qlop -u -- list unmerge histo... | mit | C# | |
22e9a896062563b7ab6ec354911dc47e89805783 | Create Question.cs | Si-143/Application-and-Web-Development | Question.cs | Question.cs | public class Questions
{
int questionID;
string questions;
public int qID
{
get { return questionID;}
set { questionID = value;}
}
public string q
{
get { return questions; }
set { questions ... | mit | C# | |
ca2b8aac6fcba22da400e66dd782eb1b58898647 | Add a test scene for textured triangles | ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ZLima12/osu-framework | osu.Framework.Tests/Visual/Sprites/TestSceneTexturedTriangle.cs | osu.Framework.Tests/Visual/Sprites/TestSceneTexturedTriangle.cs | using osu.Framework.Allocation;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using System;
using System.Collections.Generic;
using osuTK;
namespace osu.Framework.Tests.Visual.Sprites
{
public class TestSceneTexturedTriangle : FrameworkTestScene
{
... | mit | C# | |
0791b5cae6ce66da077f7a5406eca205356c55cd | Create webrtc.cs | Imporial/WebRTC_SignalR,Imporial/WebRTC_SignalR | webrtc.cs | webrtc.cs | using Microsoft.AspNet.SignalR;
using Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
/// WebRTC 的摘要说明
/// </summary>
public class WebRTC : Hub
{
public void Send(string UserName, string Message)
{
Clients.All.sendMessage(UserName, Message); ... | apache-2.0 | C# | |
8a60c5bdf5aa8dc09c71fb2cd44977a20277f205 | Add plug | CosmosOS/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos,zarlo/Cosmos,zarlo/Cosmos,CosmosOS/Cosmos | source/Cosmos.Core_Plugs/System/Threading/OverlappedDataImpl.cs | source/Cosmos.Core_Plugs/System/Threading/OverlappedDataImpl.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using IL2CPU.API.Attribs;
namespace Cosmos.Core_Plugs.System.Threading
{
class OverlappedDataImpl
{
[PlugMethod(Signature = "System_Threading_OverlappedData__Syst... | bsd-3-clause | C# | |
158d9237d322cd50756d336d2bdc916e4653b7ac | Create Server.cs | Lime-Parallelogram/Socket-Tutorial,Lime-Parallelogram/Socket-Tutorial,Lime-Parallelogram/Socket-Tutorial | ReverseDirection/Server.cs | ReverseDirection/Server.cs | //Required Libs
using System;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
//Vars
TcpListener server;
TcpClient clientconnection;
server = new TcpListener(IPAddress.Any, 8000); //Opens Server on said port
server.Start(); //Starts listener
clientconnection = server.AcceptT... | mit | C# | |
75bfa916e114909098180c4383463486013cda45 | Create GetAllStatsQuery.cs | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.Contract/Queries/GetAllStatsQuery.cs | NinjaHive.Contract/Queries/GetAllStatsQuery.cs | using NinjaHive.Contract.DTOs;
using NinjaHive.Core;
namespace NinjaHive.Contract.Queries
{
public class GetAllStatsQuery : IQuery<StatInfo[]>
{
}
}
| apache-2.0 | C# | |
8470b3e387934ad9d4fc53f4c9903059cdd8762d | Add files via upload | joshyy/Email | MailHost.cs | MailHost.cs | /*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In j... | unlicense | C# | |
92faaccb8659bad293286499e0173f2e822ad60b | Add holidays in Korea | tinohager/Nager.Date,tinohager/Nager.Date,tinohager/Nager.Date | Src/Nager.Date/PublicHolidays/KoreaProvider.cs | Src/Nager.Date/PublicHolidays/KoreaProvider.cs | using Nager.Date.Contract;
using Nager.Date.Model;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
namespace Nager.Date.PublicHolidays
{
/// <summary>
/// Korea
/// </summary>
public class KoreaProvider : IPublicHolidayProvider
{
/// <summary>
/// K... | mit | C# | |
2d919121bb5d5278952bcf4d326ae5d96fdba242 | Create PendulumTrack.cs | ypag/Unity | PendulumTrack.cs | PendulumTrack.cs | using UnityEngine;
using System.Collections;
public class TargetImageCoords : MonoBehaviour {
private ImageTargetBehaviour mImageTargetBehaviour = null;
public float XMax = Mathf.NegativeInfinity;
public float YMax = Mathf.NegativeInfinity;
public float XMin = Mathf.Infinity;
public float XAbs = 0f;
public floa... | cc0-1.0 | C# | |
009e1dc47acd03e5c4ef729f02c2c6e882dd7502 | refactor some common route data | RaghavAbboy/Orchard.ParkingData,CityofSantaMonica/Orchard.ParkingData | Routes/Routes.cs | Routes/Routes.cs | namespace CSM.ParkingData.Routes
{
internal static class Routes
{
public static readonly string Area = "CSM.ParkingData";
public static readonly string BaseEventRoute = "meters/events";
public static readonly string BaseEventAtRoute = "meters/{meterId}/events";
public static r... | mit | C# | |
0b3f98e4233071d8c61e64301c6695757f741e3e | Create FixedSizedQueue.cs | BenjaminAbt/snippets | CSharp/FixedSizedQueue.cs | CSharp/FixedSizedQueue.cs | public class FixedSizedQueue<T>
{
public FixedSizedQueue(int limit)
{
Limit = limit;
}
private ConcurrentQueue<T> _queue = new ConcurrentQueue<T>();
private volatile int _limit;
public int Limit
{
get { return _limit; }
set { _limit = value; }
}
... | mit | C# | |
448385e12717cef002d8a72505439e97cfc59e2c | Create AutoMapperAdapter.cs | tiksn/TIKSN-Framework | TIKSN.Framework.Core/Data/AutoMapperAdapter.cs | TIKSN.Framework.Core/Data/AutoMapperAdapter.cs | using System;
using AutoMapper;
namespace TIKSN.Data
{
public class AutoMapperAdapter<TSource, TDestination> : IMapper<TSource, TDestination>
{
private readonly IMapper mapper;
public AutoMapperAdapter(IMapper mapper)
{
this.mapper = mapper ?? throw new ArgumentNullExcepti... | mit | C# | |
bba228e32938d80527af150a5321331a8d45565c | Add UrlSegmentInfo tests | Krusen/ErgastApi.Net | src/ErgastApi.Tests/Client/UrlSegmentInfoTests.cs | src/ErgastApi.Tests/Client/UrlSegmentInfoTests.cs | using System.Collections.Generic;
using ErgastApi.Client;
using FluentAssertions;
using Xunit;
namespace ErgastApi.Tests.Client
{
public class UrlSegmentInfoTests
{
[Fact]
public void ListSort_SortedByOrderValueWithNullLast()
{
// Arrange
var order1 = new UrlSeg... | unlicense | C# | |
76054ceff7fbea1ffb3e831a15ade9454404410b | Add SettingsManager class to be shared between dataFactory's in order to avoid duplication of code | xyon1/Expenditure-App | ServiceProvider/SettingsManager.cs | ServiceProvider/SettingsManager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceProvider
{
public static class SettingsManager
{
internal static void CheckForXmlFileDirectory(Func<string> getXmlFilePath, Action<string, string> messageForUser)
... | apache-2.0 | C# | |
f5eb99a2f3e5bd405e07fa454c744909a77793a9 | Create Results.cs | zelbo/Number-Guessing | Results.cs | Results.cs | // difficutly setting should probably be done during the INITIALIZE game state.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NumberGuessing
{
public struct Result
{
public bool isCorrect;
public string rankMessage;
public int offBy;
... | mit | C# | |
a19daaff9a21fd1c61c0bbc97efc37768e0d96cf | Create MongoUnitOfWork.cs | tiksn/TIKSN-Framework | TIKSN.Core/Data/Mongo/MongoUnitOfWork.cs | TIKSN.Core/Data/Mongo/MongoUnitOfWork.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using MongoDB.Driver;
namespace TIKSN.Data.Mongo
{
public class MongoUnitOfWork : UnitOfWorkBase, IMongoUnitOfWork
{
protected readonly IClientSessionHandle _clientSessionHandle;
... | mit | C# | |
b6854b0cf4d718f1630facd9def90ef0681b5cd5 | Create PostProcessBuild.cs | UnityCommunity/UnityLibrary | Scripts/Editor/BuildProcess/PostProcessBuild.cs | Scripts/Editor/BuildProcess/PostProcessBuild.cs | // OnPostprocessBuild() gets called after build has completed
// usage: copy to Editor/ folder in your project
using UnityEditor;
using UnityEditor.Build;
using System.Diagnostics;
using Debug = UnityEngine.Debug;
namespace UnityLibrary
{
public class PostProcessBuild : IPostprocessBuild
{
public int ... | mit | C# | |
cf2340cafb8b7ce964935a410f3bd3af49041458 | Add a realtime room manager | ppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,peppy/osu,ppy/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu-new,UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu | osu.Game/Screens/Multi/RealtimeMultiplayer/RealtimeRoomManager.cs | osu.Game/Screens/Multi/RealtimeMultiplayer/RealtimeRoomManager.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.Diagnostics;
using System.Threading.Tasks;
using osu.Framework.Allocation;
using osu.Framework.Logging;
using osu.Game.Online.Multiplayer;
usin... | mit | C# | |
94829bd4950d93beef72a7dc228e8bbb0a68fe22 | Add Author JeromeBezetTorres | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/JeromeBezetTorres.cs | src/Firehose.Web/Authors/JeromeBezetTorres.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class JM2K69 : IAmACommunityMember
{
public string FirstName => "Jerome";
public string LastName... | mit | C# | |
59c158969ae44ccf6170fb18b699c55043407c51 | add DesignTimeDbContextFactory | tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web,tugberkugurlu/tugberk-web | src/Tugberk.Web/DesignTimeDbContextFactory.cs | src/Tugberk.Web/DesignTimeDbContextFactory.cs | using System.IO;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.Configuration;
using Tugberk.Persistance.SqlServer;
namespace Tugberk.Web
{
public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<BlogDbContext>
{
public BlogDbCo... | agpl-3.0 | C# | |
bddfdd34750f95dabbbd3ee1fa368652d6491297 | Add "Configuration" | DRFP/Personal-Library | _Build/PersonalLibrary/Library/Configuration.cs | _Build/PersonalLibrary/Library/Configuration.cs | namespace Library {
public class Configuration {
public const string DatabaseName = "PersonalLibrary.db";
}
} | mit | C# | |
0d75c021c628b94fc6c5ec03f47c84c1f715fc21 | add GET _sys/Traces | Isantipov/mqpi,Isantipov/mqpi | mqpi/Controllers/TracesController.cs | mqpi/Controllers/TracesController.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using IOFile = System.IO.File;
namespace mqpi.Controllers
{
[Route("_sys/Traces")]
public class TracesController : Controller
{
public string Get(int offset = 0, int limit = 100)
... | mit | C# | |
2395c535b8981b9f8a8aef7c7c0160c27c38f946 | Fix build | illblew/TrueCraft,flibitijibibo/TrueCraft,flibitijibibo/TrueCraft,SirCmpwn/TrueCraft,SirCmpwn/TrueCraft,illblew/TrueCraft,SirCmpwn/TrueCraft,flibitijibibo/TrueCraft,illblew/TrueCraft | TrueCraft.Core/Logic/Blocks/WoodenPlanksBlock.cs | TrueCraft.Core/Logic/Blocks/WoodenPlanksBlock.cs | using System;
using TrueCraft.API;
using TrueCraft.API.Logic;
namespace TrueCraft.Core.Logic.Blocks
{
public class WoodenPlanksBlock : BlockProvider, ICraftingRecipe, IBurnableItem
{
public static readonly byte BlockID = 0x05;
public override byte ID { get { return 0x05; } }
... | using System;
using TrueCraft.API;
using TrueCraft.API.Logic;
namespace TrueCraft.Core.Logic.Blocks
{
public class WoodenPlanksBlock : BlockProvider, ICraftingRecipe, IBurnableItem, IBurnableItem
{
public static readonly byte BlockID = 0x05;
public override byte ID { get { return 0x05;... | mit | C# |
a4f4985628ff0ad42669305a1eea8d5c5064b9c7 | Remove info that's now elsewhere. | EamonNerbonne/ExpressionToCode,asd-and-Rizzo/ExpressionToCode | ExpressionToCodeLib/Properties/AssemblyInfo.cs | ExpressionToCodeLib/Properties/AssemblyInfo.cs | /* DOESN'T WORK YET!
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 assemb... | /* DOESN'T WORK YET!
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 assemb... | apache-2.0 | C# |
9d6fba3403c38b5d50c73b0abc6940fb99cbb992 | Allow test assembly to access internals | EamonNerbonne/ExpressionToCode,asd-and-Rizzo/ExpressionToCode | ExpressionToCodeLib/Properties/AssemblyInfo.cs | ExpressionToCodeLib/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: Assembly... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ExpressionToCodeLib")]
[assembly... | apache-2.0 | C# |
7c063d3c51fc7c249e73a11bc3acb458d89d42bc | Refactor TreeViewExt into its own file and add GetNodeByValue method | marth8880/SWBF2-AutomationTool,marth8880/SWBF2-AutomationTool | ZeroMunge/Modules/TreeViewExt.cs | ZeroMunge/Modules/TreeViewExt.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace ZeroMunge
{
internal static class TreeViewExt
{
// Adapted from https://stackoverflow.com/a/26543212/3639133
internal static IEnumerable<TreeNode> Descendants(this TreeNodeCollection c)
{
foreach (var n... | bsd-3-clause | C# | |
034a72175c5f7cbc8be7097f26f5ff67881e85ff | Add another missing file. | mcartoixa/NetMonkey | NetMonkey/SortDirection.cs | NetMonkey/SortDirection.cs | using System;
namespace NetMonkey
{
//public enum SortDirection
//{
// Descending=0,
// Ascending
//}
} | mit | C# | |
2c9dc5590e50f9292a35fc3d0cfd322dfb8a1430 | Add test cases | peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,ppy/osu-framework,smoogipooo/osu-framework | osu.Framework.Tests/Containers/ContainerEnumerableTest.cs | osu.Framework.Tests/Containers/ContainerEnumerableTest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics... | mit | C# | |
a0b6cadab58a9c733469785619221b11610e9c58 | add test scene | EVAST9919/osu,2yangk23/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu,ppy/osu,johnneijzen/osu,NeoAdonis/osu,smoogipoo/osu,johnneijzen/osu,ppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,EVAST9919/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu,UselessToucan/osu,2yangk23/osu,smoogipoo/osu | osu.Game.Tests/Visual/UserInterface/TestSceneModButton.cs | osu.Game.Tests/Visual/UserInterface/TestSceneModButton.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framewo... | mit | C# | |
684594656047f5110591540282267fbc6a25f902 | Update src/MvcPaging.Demo/Views/Paging/ProductsByCategory.cshtml | onurgoker/MvcPaging,rsaladrigas/MvcPaging,onurgoker/MvcPaging,martijnboland/MvcPaging,rippo/MvcPaging | src/MvcPaging.Demo/Views/Paging/ProductsByCategory.cshtml | src/MvcPaging.Demo/Views/Paging/ProductsByCategory.cshtml | @model IPagedList<MvcPaging.Demo.Models.Product>
@{
ViewBag.Title = "Browse products by category";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("ViewByCategory", "Paging", FormMethod.Get))
{
<p>
Select a category:
@Html.DropDownList("categoryName")
<input type="submit" value="Browse" />
</p>
}
@if (Model.... | @model IPagedList<MvcPaging.Demo.Models.Product>
@{
ViewBag.Title = "Browse products by category";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("ViewByCategory", "Paging", FormMethod.Get))
{
<p>
Select a category:
@Html.DropDownList("categoryName")
<input type="submit" value="Browse" />
</p>
}
@if (Model.... | mit | C# |
cd2a17697d80baa9dea211c66604c7d32035473a | Implement extension method get max array element | PowerShell/PowerShellEditorServices | src/PowerShellEditorServices/Utility/Extensions.cs | src/PowerShellEditorServices/Utility/Extensions.cs | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
using System.Linq;
using System.Collections.Generic;
using System.Management.Automation.Language;
namespace Microsoft.PowerShell.EditorServices.Ut... | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
namespace Microsoft.PowerShell.EditorServices.Utility
{
internal static class ObjectExtensions
{
/// <summary>
/// Extensi... | mit | C# |
07821d034dc9a47490de18a0b9bc3295a52453a0 | Create rocksalt.cs | ShibumiWare/Blog | rocksalt.cs | rocksalt.cs | /* rock-salt-regular - latin */
@font-face {
font-family: 'Rock Salt';
font-style: normal;
font-weight: 400;
local('../Rock Salt'), local('RockSalt'), url('rock-salt-v6-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../rock-salt-v6-latin-regular.woff2') format('woff2'... | mit | C# | |
95861a5ff509bc15d6a6facad816513864337d03 | add getFilmSeasonsCount | Sunnyline2/FilmWeb-API | src/FilmWebAPI/Requests/Get/GetFilmSeasonsCount.cs | src/FilmWebAPI/Requests/Get/GetFilmSeasonsCount.cs | using System.Net.Http;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace FilmWebAPI.Requests.Get
{
class GetFilmSeasonsCount : RequestBase<int>
{
private const int SEASONS_COUNT_INDEX = 16;
public GetFilmSeasonsCou... | mit | C# | |
9cf570335d28a8396985ce2f992423e8e170a089 | Simplify null check. | MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/R... | src/Package/Impl/DataInspect/Viewers/GridViewer.cs | src/Package/Impl/DataInspect/Viewers/GridViewer.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.ComponentModel.Composition;
using Microsoft.R.DataInspection;
namespace Microsoft.VisualStudio.R.Package.DataInspect.Viewers {
[Export(typeof(IObje... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.ComponentModel.Composition;
using Microsoft.R.DataInspection;
namespace Microsoft.VisualStudio.R.Package.DataInspect.Viewers {
[Export(typeof(IObje... | mit | C# |
72086fd62072e3d1e2d09d76476b3674aa988723 | Create road_generation.cs | carcarc/unity3d | road_generation.cs | road_generation.cs | mit | C# | ||
f3ee487c681a3b886dfe57fca54927aed7ffcb03 | Create Map.cs | Eversm4nn/Project | GTE/GTE/GTE/GTE/Map.cs | GTE/GTE/GTE/GTE/Map.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace GTE
{
public class Map
{
private List<CollisionTiles> collisionTiles = new List<CollisionTiles>();
public Lis... | unlicense | C# | |
b960468b5ca5f32cee6f0e1e65e84b2163f2cb33 | Add 'CascaraChar8' | whampson/bft-spec,whampson/cascara | Src/WHampson.Cascara/Types/CascaraChar8.cs | Src/WHampson.Cascara/Types/CascaraChar8.cs | #region License
/* Copyright (c) 2017 Wes Hampson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | mit | C# | |
c90fff0f5578dd5533edfc815887ea493a69cf6e | Add SyntaxTrivia unit tests | KirillOsenkov/XmlParser | src/Microsoft.Language.Xml.Tests/TestTrivia.cs | src/Microsoft.Language.Xml.Tests/TestTrivia.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Xunit;
namespace Microsoft.Language.Xml.Test
{
public class TestTrivia
{
const string ThreeSpaces = " ";
const string XmlElementWithAttributeAndContent = "<foo attribute=\"value\">content</foo>";
... | apache-2.0 | C# | |
2d5026a5c76f23ed59cba3adae2b3640783a3751 | add for renaming file | IvanZheng/IFramework,IvanZheng/IFramework,IvanZheng/IFramework | Src/iFramework.Plugins/IFramework.EntityFrameworkCore/MsDbContext.cs | Src/iFramework.Plugins/IFramework.EntityFrameworkCore/MsDbContext.cs | using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using IFramework.Domain;
using IFramework.Infrastructure;
using IFramework.Repositories;
using Microsoft.EntityFrameworkCore;
namespace IFramework.EntityFrameworkCore
{
public class MsDbContext : DbContext, IDbContext
{
public Ms... | mit | C# | |
2bc647ce6a9332a604ba55e3dd692d18044f30cd | Add UriBehavior class. | cube-soft/Cube.Core,cube-soft/Cube.Core,cube-soft/Cube.Forms,cube-soft/Cube.Forms | Libraries/Sources/Behaviors/Messages/UriBehavior.cs | Libraries/Sources/Behaviors/Messages/UriBehavior.cs | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... | apache-2.0 | C# | |
194484f9f9454242453cf37d7d554f8703532b50 | Create NullTracerPlugin.cs | revlucio/NullTracer.SpecflowPlugin | NullTracerPlugin.cs | NullTracerPlugin.cs | using MinTracer.SpecflowPlugin;
using TechTalk.SpecFlow.Plugins;
using TechTalk.SpecFlow.Tracing;
[assembly: RuntimePlugin(typeof(NullTracerPlugin))]
namespace MinTracer.SpecflowPlugin
{
public class NullTracerPlugin : IRuntimePlugin
{
public void Initialize(RuntimePluginEvents runtimePluginEvents... | apache-2.0 | C# | |
063020a554bcb2f35a8acaef47180d7f3800fc18 | Add integration test for relative path | emgarten/Sleet,emgarten/Sleet | test/Sleet.Integration.Tests/LocalFeedTests.cs | test/Sleet.Integration.Tests/LocalFeedTests.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using FluentAssertions;
using NuGet.Test.Helpers;
using Sleet.Test;
using Xunit;
namespace Sleet.Integration.Test
{
public class LocalFeedTests
{
[Fact]
public async Task LocalFeed_... | mit | C# | |
8366dd7cfa96176421bc1439d3839f8adaac737a | Add new file userAuth.cpl/Droid/InitBroadcast.cs | ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl | userAuth.cpl/Droid/InitBroadcast.cs | userAuth.cpl/Droid/InitBroadcast.cs |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace userAuth.cpl.Droid
{
[BroadcastReceiver]
public class InitBroadcast : BroadcastReceiver
{
... | mit | C# | |
66b9bd29a2f6ef61db5654b3ae48475c063763bd | Implement SimulatorFeatures CAP for newer SL viewers. | TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim | Aurora/Modules/World/SimulatorFeatures/SimulatorFeatures.cs | Aurora/Modules/World/SimulatorFeatures/SimulatorFeatures.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
using OpenSim.Framework;
using OpenSim.Framework.Capabilities;
using log4net;
using Nini.Config;
using OpenMetaver... | bsd-3-clause | C# | |
6d825403c3b680672ff5579ae8105c142f9f1092 | Add basic VirtualTrack retrieval test | peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework | osu.Framework.Tests/Audio/AudioComponentTest.cs | osu.Framework.Tests/Audio/AudioComponentTest.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.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.Audio;
using osu.Framework.IO.Stores;
using osu.Framework.Threading;
namespace osu.Framework.Tes... | mit | C# | |
632246a3b31eed8c7a52378268a9b814c69a00e7 | Add failing test scene | peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu | osu.Game.Rulesets.Taiko.Tests/TestSceneDrumRollJudgements.cs | osu.Game.Rulesets.Taiko.Tests/TestSceneDrumRollJudgements.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.Game.Beatmaps;
using osu.Game.Rulesets.Taiko.Objects;
namespace osu.Game.Rulesets.Taiko.Tests
{
public class Test... | mit | C# | |
5a69894e10ec7428a53347fdbb57c304ff987f22 | add IQueryable extension | sitkoru/ModelSelector | Extensions/QueryableExtension.cs | Extensions/QueryableExtension.cs | using System.Linq;
using Sitko.ModelSelector.Base;
namespace Sitko.ModelSelector.Extensions
{
public static class QueryableExtension
{
public static IQueryable<T> ApplySelector<T>(this IQueryable<T> model, ModelSelector<T> selector)
{
if (selector != null)
model = s... | mit | C# | |
72684e32c1dd06cf7c01265d254d5e1d63f3808f | add DateTimeFormatConverter.cs | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Json/DateTimeFormatConverter.cs | src/WeihanLi.Common/Json/DateTimeFormatConverter.cs | using Newtonsoft.Json.Converters;
namespace WeihanLi.Common.Json
{
public class DateTimeFormatConverter : IsoDateTimeConverter
{
public DateTimeFormatConverter(string format)
{
DateTimeFormat = format;
}
}
}
| mit | C# | |
7677c3c03cd3175f9734eea2afef049710248925 | Add test for IResettingEntitySystem resetting (#2442) | space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14-content,space-wizards/space-station-14-content,space-wizards/space-station-14,space-wizards/space-station-14 | Content.IntegrationTests/Tests/ResettingEntitySystemTests.cs | Content.IntegrationTests/Tests/ResettingEntitySystemTests.cs | using System.Threading.Tasks;
using Content.Server.GameTicking;
using Content.Server.Interfaces.GameTicking;
using Content.Shared.GameTicking;
using NUnit.Framework;
using Robust.Shared.GameObjects.Systems;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC;
namespace Content.IntegrationTests.Tests
{... | mit | C# | |
6abdcde9296ced0a067b16bbc2910975e281c702 | Add JS zone requirement to asmdef namespace | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/Json/ZoneMarker.cs | resharper/resharper-unity/src/Json/ZoneMarker.cs | using JetBrains.Application.BuildScript.Application.Zones;
using JetBrains.ReSharper.Psi.JavaScript;
namespace JetBrains.ReSharper.Plugins.Unity.Json
{
[ZoneMarker]
public class ZoneMarker : IRequire<ILanguageJavaScriptZone>
{
}
} | apache-2.0 | C# | |
bff1e2569fffbcdf7c09004c2f78efe65629a121 | Add files via upload | sunnysetia93/competitive-coding-problems,sunnysetia93/competitive-coding-problems,sunnysetia93/competitive-coding-problems,sunnysetia93/competitive-coding-problems,sunnysetia93/competitive-coding-problems,sunnysetia93/competitive-coding-problems | sudoku_solver.cs | sudoku_solver.cs | using System;
namespace sudokuSolver
{
class Program
{
static void Main(string[] args)
{
int n = Convert.ToInt32(Console.ReadLine());
if(n==6 || n==9) // for board of size 6 or 9
{
int[,] board = new int[n, n];
... | mit | C# | |
d7481a4488452339c6e923ead9ca122335852a01 | Fix AssemblyVersion to 3.0.0.1 | EzyWebwerkstaden/n2cms,DejanMilicic/n2cms,SntsDev/n2cms,nimore/n2cms,EzyWebwerkstaden/n2cms,n2cms/n2cms,nicklv/n2cms,nimore/n2cms,bussemac/n2cms,DejanMilicic/n2cms,n2cms/n2cms,DejanMilicic/n2cms,VoidPointerAB/n2cms,VoidPointerAB/n2cms,EzyWebwerkstaden/n2cms,VoidPointerAB/n2cms,n2cms/n2cms,n2cms/n2cms,nimore/n2cms,busse... | src/Framework/AssemblyVersion.cs | src/Framework/AssemblyVersion.cs | using System.Reflection;
// Version information for an assembly consists of the following four values: You can specify all the values or you can default the Revision and Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("3.0")]
[assembly: AssemblyFileVersion("3.0.0.1")]
| using System.Reflection;
// Version information for an assembly consists of the following four values: You can specify all the values or you can default the Revision and Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("3.0")]
[assembly: AssemblyFileVersion("3.0.0.1-beta")]
| lgpl-2.1 | C# |
506d8abfc548a4abbee6cfc38a21d41fbcf9cc77 | Add RazorRockstarsTests | timba/NServiceKit,meebey/ServiceStack,ZocDoc/ServiceStack,meebey/ServiceStack,MindTouch/NServiceKit,MindTouch/NServiceKit,MindTouch/NServiceKit,ZocDoc/ServiceStack,timba/NServiceKit,ZocDoc/ServiceStack,NServiceKit/NServiceKit,MindTouch/NServiceKit,nataren/NServiceKit,NServiceKit/NServiceKit,NServiceKit/NServiceKit,NSer... | tests/RazorRockstars.Console/RazorRockstarsTests.cs | tests/RazorRockstars.Console/RazorRockstarsTests.cs | using NUnit;
using System;
using System.Collections.Generic;
using System.Web;
using ServiceStack;
using ServiceStack.Common;
using ServiceStack.Text;
using ServiceStack;
namespace RazorRockstars.Console
{
[TestFixture]
public class RazorRockstarsTests
{
public static string AcceptContentType = "*/*";
public vo... | bsd-3-clause | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.