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 |
|---|---|---|---|---|---|---|---|---|
c5b7888e917a6e7db0c6193de9f987fbcef5e826 | Add ElapsedTracker.cs | lerthe61/Snippets,lerthe61/Snippets | dotNet/Logging/ElapsedTracker.cs | dotNet/Logging/ElapsedTracker.cs | using System;
using System.Diagnostics;
namespace Common.Utils
{
public sealed class ElapsedTracker : IDisposable
{
private readonly string _name;
private readonly Action<string, TimeSpan> _report;
private readonly Stopwatch _stopWatch;
public ElapsedTracker(string n... | unlicense | C# | |
abc708085226ab0ce0ff996c8d877b90160ddc6b | add an excluded file from previous commit | AerysBat/slimCat,WreckedAvent/slimCat | slimCat/Utilities/Converters/OneWayConverter.cs | slimCat/Utilities/Converters/OneWayConverter.cs | #region Copyright
// <copyright file="OneWayConverter.cs">
// Copyright (c) 2013-2015, Justin Kadrovach, All rights reserved.
//
// This source is subject to the Simplified BSD License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INF... | bsd-2-clause | C# | |
1acd0ea4694d63bca0c6a068a8b2be0c5cd846ab | Implement TypeConverter for CameraUpdate | amay077/Xamarin.Forms.GoogleMaps,JKennedy24/Xamarin.Forms.GoogleMaps,JKennedy24/Xamarin.Forms.GoogleMaps,quesera2/Xamarin.Forms.GoogleMaps | Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps/Internals/CameraUpdateConverter.cs | Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps/Internals/CameraUpdateConverter.cs | using System;
using System.Collections.Generic;
namespace Xamarin.Forms.GoogleMaps
{
internal sealed class CameraUpdateConverter : TypeConverter
{
public override bool CanConvertFrom(Type sourceType)
{
return sourceType == typeof(CameraUpdate);
}
public override ob... | mit | C# | |
b2a66b42015ec1d7e188dbfc60066470015a4c16 | Add helper methods for numeric | xin9le/DeclarativeSql | src/DeclarativeSql/Internals/NumericHelper.cs | src/DeclarativeSql/Internals/NumericHelper.cs | using System;
namespace DeclarativeSql.Internals
{
/// <summary>
/// Provides helper methods for numeric.
/// </summary>
internal static class NumericHelper
{
/// <summary>
/// Gets the number of digits of the specified value.
/// </summary>
/// <param name="value... | mit | C# | |
d20fb36f71478471452462fa753de92769facc50 | Add a behaviour to drop nodes if all the current connected nodes are behind. | bokobza/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,Aprogiena/StratisBitcoinFullNode,mikedennis/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,mikedennis/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,fassadlr/StratisBitcoinFullNode,bokobza/StratisBitcoi... | Stratis.Bitcoin/Connection/DropNodesBehaviour.cs | Stratis.Bitcoin/Connection/DropNodesBehaviour.cs | using System;
using System.Linq;
using NBitcoin;
using NBitcoin.Protocol;
using NBitcoin.Protocol.Behaviors;
namespace Stratis.Bitcoin.Connection
{
/// <summary>
/// If the light wallet is only connected to nodes behind
/// it cannot progress progress to the tip to get the full balance
/// this behav... | mit | C# | |
7437feed10d9bb6357ad645729368f1b88a78183 | Add TypeForwards file with type forwarding (#12467) | marcemarc/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,abjerner/Umbraco-CMS,abryukhov/Umbraco-CMS,umbraco/Umbraco-CMS,arknu/Umbraco-CMS,marcemarc/Umbraco-CMS,marcemarc/Umbraco-CMS,umbraco/Umbraco-CMS,abryukhov/Umbraco-CMS,marcemarc/Umbraco-CMS,arknu/Umbraco-CMS,abjerner/Umbraco-CMS,arknu/Umbraco-CMS,umbraco/U... | src/Umbraco.Infrastructure/TypeForwards.cs | src/Umbraco.Infrastructure/TypeForwards.cs | using System.Runtime.CompilerServices;
[assembly:TypeForwardedTo(typeof(Umbraco.Cms.Core.PropertyEditors.ConfigurationEditor<>))]
| mit | C# | |
95afc2f227110054db8d5a8e054042f8d8a47056 | add subscription | jefking/King.Service.ServiceBus | King.Service.ServiceBus.Tests/Integration/Wrappers/BusSubscriptionClientTests.cs | King.Service.ServiceBus.Tests/Integration/Wrappers/BusSubscriptionClientTests.cs | namespace King.Service.ServiceBus.Test.Integration.Wrappers
{
using global::Azure.Data.Wrappers;
using King.Service.ServiceBus.Models;
using King.Service.ServiceBus.Wrappers;
using Microsoft.Azure.ServiceBus;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using Sy... | mit | C# | |
1ed670b658a3048c7894e678f1d5b8faa3333672 | Add BufferedQueueTests skeleton | unity-chicken/SharpNav,sangdaekim/SharpNav,unity-chicken/SharpNav,sangdaekim/SharpNav | SharpNavTests/Collections/Generic/BuferedQueueTests.cs | SharpNavTests/Collections/Generic/BuferedQueueTests.cs | #region License
/**
* Copyright (c) 2014 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file).
* Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE
*/
#endregion
using System;
using System.Collections;
using System.Collections.Generi... | mit | C# | |
8cecf605dac9d1401c5a6611fb92521c9e1c6793 | add LiteClientBase | ctiller/grpc,jtattermusch/grpc,jtattermusch/grpc,ctiller/grpc,sreecha/grpc,jtattermusch/grpc,nicolasnoble/grpc,firebase/grpc,vjpai/grpc,sreecha/grpc,ejona86/grpc,donnadionne/grpc,pszemus/grpc,firebase/grpc,firebase/grpc,sreecha/grpc,grpc/grpc,nicolasnoble/grpc,ejona86/grpc,sreecha/grpc,nicolasnoble/grpc,grpc/grpc,fireb... | src/csharp/Grpc.Core.Api/LiteClientBase.cs | src/csharp/Grpc.Core.Api/LiteClientBase.cs | #region Copyright notice and license
// Copyright 2019 The gRPC Authors
//
// 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 ... | apache-2.0 | C# | |
43d9b3340ffddd1188595dbd648fc5608c11447a | add ReplaceTypeMethodExpander | AlejandroCano/framework,avifatal/framework,avifatal/framework,AlejandroCano/framework,signumsoftware/framework,signumsoftware/framework | Signum.Utilities/ExpressionTrees/ReplaceTypeMethodExpander.cs | Signum.Utilities/ExpressionTrees/ReplaceTypeMethodExpander.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Signum.Utilities.ExpressionTrees
{
class ReplaceTypeVisitor : ExpressionVisitor
{
public static Expression ReplaceExpres... | mit | C# | |
970b8d16e7141b47c9972ee8425dd563d774a8f2 | Add missing file | madferreiro/Paymetheus-Fork | Paymetheus.Decred/Util/TupleValue.cs | Paymetheus.Decred/Util/TupleValue.cs | // Copyright (c) 2016 The btcsuite developers
// Copyright (c) 2016 The Decred developers
// Licensed under the ISC license. See LICENSE file in the project root for full license information.
namespace Paymetheus.Decred.Util
{
public struct TupleValue<T1, T2>
{
public TupleValue(T1 item1, T2 item2)
... | isc | C# | |
ee6044354577ee11fc0b7f657e7a697b254cbcb0 | Add missing file | tomkuijsten/vsjenkinsmanager | Devkoes.VSJenkinsManager/Devkoes.JenkinsClient/Managers/SettingManager.cs | Devkoes.VSJenkinsManager/Devkoes.JenkinsClient/Managers/SettingManager.cs | using Devkoes.JenkinsClient.Model;
using Devkoes.JenkinsClient.Properties;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Devkoes.JenkinsClient.Managers
{
public static class SettingManager
{
static SettingManager()
{
if (Settings.Default.S... | mit | C# | |
19aa4235ba73a89701b18741062b88cc14eb7e7c | Disable concurrency for storage integration tests | googleapis/google-cloud-dotnet,benwulfe/google-cloud-dotnet,chrisdunelm/google-cloud-dotnet,chrisdunelm/google-cloud-dotnet,ctaggart/google-cloud-dotnet,chrisdunelm/google-cloud-dotnet,jskeet/gcloud-dotnet,evildour/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,evildour/google-cloud-dotne... | apis/Google.Storage.V1/Google.Storage.V1.IntegrationTests/AssemblyInfo.cs | apis/Google.Storage.V1/Google.Storage.V1.IntegrationTests/AssemblyInfo.cs | // Copyright 2016 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 applic... | apache-2.0 | C# | |
5a9490979ad1cdd548df4814a19513bb7bfa2062 | add argumentexceptiontests | code-cracker/code-cracker,eriawan/code-cracker,AlbertoMonteiro/code-cracker,dlsteuer/code-cracker,baks/code-cracker,robsonalves/code-cracker,modulexcite/code-cracker,dmgandini/code-cracker,GuilhermeSa/code-cracker,thomaslevesque/code-cracker,giggio/code-cracker,carloscds/code-cracker,code-cracker/code-cracker,carloscds... | test/CodeCracker.Test/ArgumentExceptionTests.cs | test/CodeCracker.Test/ArgumentExceptionTests.cs | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using System;
using TestHelper;
using CodeCracker;
using Xunit;
namespace CodeCracker.Test
{
public class ArgumentExceptionTests : CodeFixVerifier
{
private const string test = @"
using ... | apache-2.0 | C# | |
6cfb6bfe4e427912314f00b3f0cf0958e777ae23 | add missing test file | apache/npanday,apache/npanday,apache/npanday,apache/npanday | dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/Log4NetConfigTest.cs | dotnet/assemblies/NPanday.VisualStudio.Addin/src/test/csharp/Log4NetConfigTest.cs | #region Apache License, Version 2.0
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License,... | apache-2.0 | C# | |
bdd67adb4bf004c80b84cc8d9bcdd07c33ad4469 | Add Result class to handle results and errors more elegantly | GodTamIt/.NET-Google-Music-API | GoogleMusicAPI.NET/Result.cs | GoogleMusicAPI.NET/Result.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GoogleMusic
{
public class Result<T>
{
#region Members
private bool _Success;
private T _ResultValue;
private Clients.IClient _Client;
private s... | mit | C# | |
20fdfc603da0407734e9c5577a35bb1d3165f553 | Create EnumerableExtensions.cs | strvmarv/Extensions | EnumerableExtensions.cs | EnumerableExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Extensions
{
public static class EnumerableExtensions
{
public static int SequenceHashCode<T>(this IEnumerable<T> seq)
{
unchecked
{
return seq != null ? seq.A... | mit | C# | |
2483039e3aef8ca594c883797356bfc8477ac735 | add DragSnapper.cs | v2tmobile/drag-snapper-horizontal-menu | DragSnapper.cs | DragSnapper.cs | using System.Collections;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
/// <summary>
/// Drag snapper.
/// @author: v2tmobile
/// </summary>
public class DragSnapper : UIBehaviour, IEndDragHandler, IBeginDragHandler
{
public ScrollRect scrollRect; // the scroll rect to scroll
public int i... | mit | C# | |
98f704d3fe47c73f16e517312c41d5794e4c94fe | Create camfollow.cs | afroraydude/First_Unity_Game,afroraydude/First_Unity_Game,afroraydude/First_Unity_Game | Real_Game/Assets/Scripts/camfollow.cs | Real_Game/Assets/Scripts/camfollow.cs | using UnityEngine;
using System.Collections;
public class SmoothFollowScript: MonoBehaviour {
// The target we are following
public Transform target;
// The distance in the x-z plane to the target
public int distance = 10.0;
// the height we want the camera to be above the target
public int height = 10.0... | mit | C# | |
a20338aa2d50608ed83d0183bf1b8ac0c1db712f | Remove unnecessary code. | DustinCampbell/roslyn,jcouv/roslyn,CyrusNajmabadi/roslyn,akrisiun/roslyn,vslsnap/roslyn,stephentoub/roslyn,mattscheffer/roslyn,bartdesmet/roslyn,pdelvo/roslyn,lorcanmooney/roslyn,reaction1989/roslyn,tvand7093/roslyn,Hosch250/roslyn,jeffanders/roslyn,cston/roslyn,CaptainHayashi/roslyn,mavasani/roslyn,mavasani/roslyn,xas... | src/VisualStudio/Core/Def/Experimentation/IVsExperimentationService.cs | src/VisualStudio/Core/Def/Experimentation/IVsExperimentationService.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;
using System.Runtime.InteropServices;
namespace Microsoft.Internal.VisualStudio.Shell.Interop
{
[Guid("DFF66CB5-603C-4716-89BD-24BD0E8C172... | // 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;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Shell.Interop;
namespace Microsoft.Internal.VisualStudio.Shell.Interop
{
... | mit | C# |
167e9580828a71b21ca498b378baf2e2ba0a2720 | Add missing AssemblyInfo file | MrHant/tiver-fowl,MrHant/tiver-fowl | Tests/Properties/AssemblyInfo.cs | Tests/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The follow... | mit | C# | |
a559e0ed0e4afa2af7f7ed2578d5e587a0316120 | Create MapperProfileTests.cs | tiksn/TIKSN-Framework | TIKSN.Framework.Core.Tests/Data/MapperProfileTests.cs | TIKSN.Framework.Core.Tests/Data/MapperProfileTests.cs | using System;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using TIKSN.DependencyInjection;
using Xunit;
namespace TIKSN.Data.Tests
{
public class MapperProfileTests
{
private readonly IServiceProvider serviceProvider;
public MapperProfileTests()
{
... | mit | C# | |
10c3643448d1f3d70db9acf76c67a26aaaf894f6 | Bump version to 3.6.4 | Antaris/RazorEngine,aviatrix/RazorEngine,MetSystem/RazorEngine,bcuff/RazorEngine,HongJunRen/RazorEngine,SharpeRAD/RazorEngine,HongJunRen/RazorEngine,csantero/RazorEngine,SharpeRAD/RazorEngine,Antaris/RazorEngine,bcuff/RazorEngine,aviatrix/RazorEngine,csantero/RazorEngine,MetSystem/RazorEngine | src/SharedAssemblyInfo-Razor4.cs | src/SharedAssemblyInfo-Razor4.cs | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyCompanyAttribute("RazorEngine")]
[assembly: AssemblyProductAttribute("RazorEngine")]
[assembly: AssemblyCopyrightAttribute("RazorEngine Copyright © RazorEngine Project 2011-2015")]
[assembly: AssemblyVersionAttribute("4.1.4")]
[assembly: AssemblyFileVer... | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyCompanyAttribute("RazorEngine")]
[assembly: AssemblyProductAttribute("RazorEngine")]
[assembly: AssemblyCopyrightAttribute("RazorEngine Copyright © RazorEngine Project 2011-2015")]
[assembly: AssemblyVersionAttribute("4.1.4")]
[assembly: AssemblyFileVer... | apache-2.0 | C# |
c0658a102ebbff6ea8ef1ef510d30da890aacded | Add automated TestllCreateLink() | Michelle-Argus/ArribasimExtract,justinccdev/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,M-O-S-E-S/opensim,ft-/opensim-optimizations-wip-tests,ft-/arribasim-dev-tests,ft-/arribasim-dev-tests,M-O-S-E-S/opensim,QuillLittlefeather/opensim-1,rryk/omp-server,QuillLittlefeather/opensim-1,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,... | OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiLinkingTests.cs | OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiLinkingTests.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# | |
13fe2e180b5c5d8041c1f77a95b1150e6d9d747e | add RuntimeParams | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Helpers/RuntimeParams.cs | WalletWasabi/Helpers/RuntimeParams.cs | using System;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Nito.AsyncEx;
using WalletWasabi.Logging;
namespace WalletWasabi.Helpers
{
public class RuntimeParams
{
[JsonProperty(PropertyName = "NetworkNodeTimeout")]
public int NetworkNodeT... | mit | C# | |
13ba081aa2f88041ec0ccb27fe9bef6063f9c708 | create ClientCommandList enum | ivayloivanof/C-Sharp-Chat-Programm | Client/ChatClient/ChatClient/ClientCommandList.cs | Client/ChatClient/ChatClient/ClientCommandList.cs | namespace ChatClient
{
public enum ClientCommandList
{
Connect,
SendMsg, // (1,Nachricht)
Disconnect, // (2)
ChangeName,
Login, // (4;Benutzername;BenutzerPW[;ServerPW])
GetLatestMsgLog, // (5)
GetLoggedUserList, // (6)
GetAllUserList,
Set... | unlicense | C# | |
ba3fdca96e512437e9a979904048086e1cb54782 | Create SherlockAndBeast.cs | costincaraivan/hackerrank,costincaraivan/hackerrank | algorithms/implementation/C#/SherlockAndBeast.cs | algorithms/implementation/C#/SherlockAndBeast.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static void Main(String[] args) {
int t = Convert.ToInt32(Console.ReadLine());
for(int a0 = 0; a0 < t; a0++){
int n = Convert.ToInt32(Console.ReadLine());
var le... | mit | C# | |
2f8bef17dbefa3db887a05af1021ba260e5be439 | fix test | GeertvanHorrik/Fody,furesoft/Fody,shanselman/Fody,ichengzi/Fody,ColinDabritzViewpoint/Fody,jasonholloway/Fody,shanselman/Fody,distantcam/Fody,shanselman/Fody,Fody/Fody,huoxudong125/Fody,PKRoma/Fody | Fody.Tests/SearchDirectories/AddToolsAssemblyLocationToAddinSearchTests.cs | Fody.Tests/SearchDirectories/AddToolsAssemblyLocationToAddinSearchTests.cs | using System.IO;
using NUnit.Framework;
[TestFixture]
public class AddToolsAssemblyLocationToAddinSearchTests
{
[Test]
public void Simple()
{
var processor = new AddinFinder();
processor.AddToolsAssemblyLocationToAddinSearch();
var expected = Path.GetFullPath(Path.Combine(AssemblyLo... | using System.IO;
using NUnit.Framework;
[TestFixture]
public class AddToolsAssemblyLocationToAddinSearchTests
{
[Test]
public void Simple()
{
var processor = new AddinFinder();
processor.AddToolsAssemblyLocationToAddinSearch();
Assert.AreEqual(Path.GetFullPath(Path.Combine(AssemblyL... | mit | C# |
047e5fbb455a94979638f387aed413e2ed81df44 | Add DocumentationExampleAttribute | oxyplot/oxyplot,ze-pequeno/oxyplot | Source/Examples/ExampleLibrary/Attributes/DocumentationExampleAttribute.cs | Source/Examples/ExampleLibrary/Attributes/DocumentationExampleAttribute.cs | using System;
namespace ExampleLibrary
{
/// <summary>
/// Marks the model as documentation example to be exported by the ExampleGenerator program.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class DocumentationExampleAttribute : Attribute
{
/// <summary>
//... | mit | C# | |
0a9b3f6a695deb770b8e828307c252f2d2b441d6 | Add missing file | kzu/clide,tondat/clide,kzu/clide,clariuslabs/clide,clariuslabs/clide,tondat/clide,clariuslabs/clide,kzu/clide,tondat/clide | src/Clide/Adapters/SolutionToVsAdapter.cs | src/Clide/Adapters/SolutionToVsAdapter.cs | using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
namespace Clide
{
[Adapter]
class SolutionToVsAdapter :
IAdapter<SolutionExplorerNode, IVsHierarchyItem>,
IAdapter<SolutionExplorerNode, IVsHierarchy>,
IAdapter<SolutionNode, IVsSolution>,
... | mit | C# | |
2c29c16b33594930656c10214c7b76fddeef4781 | Define 'System.IO.IOException' | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | stdlib/system-io/IOException.cs | stdlib/system-io/IOException.cs | namespace System.IO
{
public class IOException : SystemException
{
public IOException()
: base("An IO exception occurred.")
{ }
public IOException(string message)
: base(message)
{ }
public IOException(string message, Exception innerException)
... | mit | C# | |
da4c29777b83b362b34e661fc74d2b19ca14c316 | Add TimeRepo to store times | HerrLoesch/DataInputFrontend | DataInputt/DataInputt/TimeRepo.cs | DataInputt/DataInputt/TimeRepo.cs | using DataInputt.DataInputServiceReference;
using DataInputt.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataInputt
{
static class TimeRepo
{
public static List<Time> Times { get; set; }
public delegate v... | mit | C# | |
12d47dd0c9d39f44cd96ac5bb2c17602a6a41d5b | add an IDialog that inherits from IDialog<object> | dr-em/BotBuilder,yakumo/BotBuilder,dr-em/BotBuilder,mmatkow/BotBuilder,digibaraka/BotBuilder,Clairety/ConnectMe,jockorob/BotBuilder,yakumo/BotBuilder,xiangyan99/BotBuilder,stevengum97/BotBuilder,digibaraka/BotBuilder,navaei/BotBuilder,yakumo/BotBuilder,msft-shahins/BotBuilder,jockorob/BotBuilder,stevengum97/BotBuilder,... | CSharp/Library/Dialogs/IDialog.cs | CSharp/Library/Dialogs/IDialog.cs | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Builder SDK Github:
// https://github.com/Microsoft/BotBuilder
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
/... | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Builder SDK Github:
// https://github.com/Microsoft/BotBuilder
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
/... | mit | C# |
8342be3dc77e0ba763b0af92451c87a802a82177 | implement IntersectionEval | stuartwmurray/npoi,Yijtx/npoi,JesseQin/npoi,antony-liu/npoi,akrisiun/npoi,tkalubi/npoi-1,vinod1988/npoi,jcridev/npoi,tonyqus/npoi,xl1/npoi | main/HSSF/Record/Formula/Eval/IntersectionEval.cs | main/HSSF/Record/Formula/Eval/IntersectionEval.cs | /* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for Additional information regarding copyright ownership.
The ASF licenses this file ... | apache-2.0 | C# | |
7b10fb4f3701766b0bfdee3c319e213a1537e6a6 | Add Tag.cs to repo. | trieb/feedme | Tag.cs | Tag.cs | namespace feedme
{
class Tag
{
private static int Id = 0;
public string TagName { get; set; }
public Tag(string tagName)
{
// TODO: check if tag already exist, if not, add to table.
Id++;
this.TagName = tagName;
}
}... | mit | C# | |
050dba1d7fd46dd3062b8c5325da4a1b690c3f47 | Create FindIndex.cs | shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/hackerrank,shreeharshas/hackerrank,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms,shreeharshas/Algorithms | FindIndex.cs | FindIndex.cs | # File : FindIndex.cs
# Author : Shree Harsha Sridharamurthy
# Author email : s.shreeharsha@gmail.com
# Disclaimer : For use by concerned personnel only. Released under MIT License - permitted to use this but need to quote the source origin.
# Program : Solution for hackerrank question po... | mit | C# | |
ef71c98a96991f0924abffc3038766495019ca3b | Add BasePluginAction | KpdApps/KpdApps.Common.MsCrm2013 | BasePluginAction.cs | BasePluginAction.cs | using System;
using Microsoft.Xrm.Sdk;
namespace KpdApps.Common.MsCrm2013
{
public class BasePluginAction
{
public PluginState State { get; set; }
public IOrganizationService Service => State.Service;
public BasePluginAction(PluginState state)
{
State = state;
... | mit | C# | |
5cd2841080caf8e41b135d740a246f5d6535abae | Add test scene showing off the skinnable catch-specific combo counter | UselessToucan/osu,smoogipooo/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,ppy/osu,ppy/osu,UselessToucan/osu,peppy/osu-new,peppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu | osu.Game.Rulesets.Catch.Tests/TestSceneComboCounter.cs | osu.Game.Rulesets.Catch.Tests/TestSceneComboCounter.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.Bindables;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Catch.Objec... | mit | C# | |
e6fea86b15e3254bb3ebbaaf5f109d35fcd26b88 | move dice rolls to a proper CQRS Command | pseale/monopoly-dotnet,pseale/monopoly-dotnet | src/MonopolyDotNet/MonopolyWeb/Models/Commands/RollDiceCommand.cs | src/MonopolyDotNet/MonopolyWeb/Models/Commands/RollDiceCommand.cs | using MonopolyWeb.Models.Core;
namespace MonopolyWeb.Models.Commands
{
public class RollDiceCommand
{
public static void Execute(Game game)
{
game.Roll();
}
}
} | mit | C# | |
25a8cbe59c77f98860e9ddca7d910f7cead0ab0b | Add controller for Groups(basic) | denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem | src/DiplomContentSystem/Controllers/GroupController.cs | src/DiplomContentSystem/Controllers/GroupController.cs | using System;
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authorization;
using DiplomContentSystem.Authentication;
using DiplomContentSystem.Core;
using DiplomContentSystem.Dto;
namespace DiplomContentSystem.Controllers
{
[Route("api/groups")]
[Authorize(Policy=AuthConsts.Polic... | apache-2.0 | C# | |
717ad70e2b3e5ad12f6628dcd314fce417c76692 | Add RoomInfo class into model which based on RoomInfo table new file: CMS/ItcastCaterModel/RoomInfo.cs | lizhen325/Catering-Management-System | CMS/ItcastCaterModel/RoomInfo.cs | CMS/ItcastCaterModel/RoomInfo.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ItcastCater.Model
{
//RoomInfo table
//RoomId, RoomName, RoomType, RoomMinimumConsumer
//RoomMaxConsumer, IsDefault, DelFlag, SubTime, SubBy
public class RoomInfo
{
... | mit | C# | |
8e734665c71279eada67e6ec5633320dba337c4c | Add example | aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cell... | Examples/CSharp/Data/AddOn/Hyperlinks/AddingLinkToURL2.cs | Examples/CSharp/Data/AddOn/Hyperlinks/AddingLinkToURL2.cs | using System.IO;
using System.Drawing;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Data.AddOn.Hyperlinks
{
public class AddingLinkToURL2
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Util... | mit | C# | |
bdd9bafc5ab3ce872df2ce17fc75293d6e83c96d | Add an instance provider for Colore | CoraleStudios/Colore | src/Corale.Colore/ColoreProvider.cs | src/Corale.Colore/ColoreProvider.cs | // ---------------------------------------------------------------------------------------
// <copyright file="ColoreProvider.cs" company="Corale">
// Copyright © 2015-2017 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this soft... | mit | C# | |
ca97655619d5f0e1de3e4e8f84e3079cc5c1493a | Add missing source file | mike-ward/Nancy.Markdown.Blog,mike-ward/Nancy.Markdown.Blog | Nancy.Blog/Post.cs | Nancy.Blog/Post.cs | using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
namespace Nancy.Markdown.Blog
{
public class Post : IEquatable<Post>, IComparable<Post>
{
private string _title;
public DateTime Created { get; set; }
public string Text { get; set; }
public... | mit | C# | |
55b385d4457bba48e45bbd7cd213fc6832898cb0 | Create MouseControl.cs | zachsaw/PlayerExtensions | PlayerExtensions/MouseControl.cs | PlayerExtensions/MouseControl.cs | using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Mpdn.PlayerExtensions.Example
{
public class MouseControl : IPlayerExtension
{
private IPlayerControl m_PlayerControl;
public ExtensionDescriptor Descriptor
{
get
{
... | mit | C# | |
674ea882b1bd0a8f806514fb297466776aa45a8b | add ColorToTransparentConverter | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Converters/ColorToTransparentConverter.cs | TCC.Core/Converters/ColorToTransparentConverter.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Media;
namespace TCC.Converters
{
public class ColorToTransparentConverter : IValueConverter
{
public object C... | mit | C# | |
344569e9df218a0ea2eebbb7c2b35d1ddb8c408c | Add RFC3986 test string | haripo/CoreTweet,azyobuzin/LibAzyotter,cannorin/CoreTweet,chitoku-k/CoreTweet | CoreTweet.Tests/ApiTests.cs | CoreTweet.Tests/ApiTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CoreTweet.Tests
{
static partial class ApiTests
{
public static void StatusesUpdate()
{
var text =
#if NET35
"[CoreTweet.Test::net35]"
#elif NET40
"[CoreT... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CoreTweet.Tests
{
static partial class ApiTests
{
public static void StatusesUpdate()
{
var text =
#if NET35
"[CoreTweet.Test::net35]"
#elif NET40
"[CoreT... | mit | C# |
e7dc58f113f9665b54a89f7d7bf2ac2875ffa2b6 | Add missing Contract helper function file | codespecs/daikon-dot-net-front-end,codespecs/daikon-dot-net-front-end,codespecs/daikon-dot-net-front-end,codespecs/daikon-dot-net-front-end | DaikonDotNetFrontEnd/DotNetFrontEnd/Contracts/ContractExtensions.cs | DaikonDotNetFrontEnd/DotNetFrontEnd/Contracts/ContractExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics.Contracts;
namespace DotNetFrontEnd.Contracts
{
public static class ContractExtensions
{
[Pure]
public static bool Implies(this bool antecedent, bool consequent)
{
Contract... | mit | C# | |
7d7d44b34ae73637fcd225be1fb762548ea2dbd2 | 添加 MessageTemplate 缓存,优化相同模板的解析效率 | CosmosProgramme/Cosmos.Core | Logging/src/Cosmos.Logging/MessageTemplates/MessageTemplateCache.cs | Logging/src/Cosmos.Logging/MessageTemplates/MessageTemplateCache.cs | using System;
using System.Collections;
using Cosmos.Logging.Core;
namespace Cosmos.Logging.MessageTemplates {
internal class MessageTemplateCache : IMessageTemplateParser {
private readonly IMessageTemplateParser _messageTemplateParser;
private readonly Hashtable _messageTemplateCache = new Hasht... | mit | C# | |
d278b1dc1de4b716ebcff00d9523e2a9359f6b30 | Add DrawCallManager to help with injecting shaders during draw | Thraka/SadConsole | SadConsole.Host.MonoGame/DrawCalls/DrawCallManager.cs | SadConsole.Host.MonoGame/DrawCalls/DrawCallManager.cs | using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using SadConsole.Host;
namespace SadConsole.DrawCalls
{
/// <summary>
/// Helps manage the <see cref="Global.SharedSpriteBatch"/> while draw calls are drawing.
... | mit | C# | |
3722cbfa97e7c154ca864c3624c8261ef8cdcc9f | Add remove extra components command (#2640) | 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/Commands/RemoveExtraComponents.cs | Content.Server/Commands/RemoveExtraComponents.cs | #nullable enable
using Content.Server.Administration;
using Content.Shared.Administration;
using Robust.Server.Interfaces.Console;
using Robust.Server.Interfaces.Player;
using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Prototypes;
namespace Cont... | mit | C# | |
60397f81091e0c37e1abe671b59a7cb7706ee22e | Add DllInjector | Inndy/NewBeanfunStarter | NewBeanfunStarter/DllInjector.cs | NewBeanfunStarter/DllInjector.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace NewBeanfunStarter
{
class DllInjector
{
[DllImport("kernel32.dll", SetLastError = true)]
public static extern int CloseHandle(IntPtr h... | mit | C# | |
a1066edb1e9941d4e24f099e904c3b405e49b8cb | Fix typo | shekr/SCAMP,brentstineman/SCAMP,CodeFluent/SCAMP,CodeFluent/SCAMP,GabrieleCastellani/SCAMP,calebdre/SCAMP,zbrad/SCAMP,CodeFluent/SCAMP,calebdre/SCAMP,zbrad/SCAMP,PIC123/SCAMP,GabrieleCastellani/SCAMP,zbrad/SCAMP,PIC123/SCAMP,brentstineman/SCAMP,calebdre/SCAMP,zbrad/SCAMP,PIC123/SCAMP,CodeFluent/SCAMP,GabrieleCastellani... | ScampApi/Controllers/GroupResourcesController.cs | ScampApi/Controllers/GroupResourcesController.cs | using System;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc;
using ScampApi.ViewModels;
namespace ScampApi.Controllers
{
[Route("api/groups/{groupId}/resources")]
public class GroupResourcesController : Controller
{
[HttpGet]
public IEnumerable<GroupResourceSummary> GetAll(i... | using System;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc;
using ScampApi.ViewModels;
namespace ScampApi.Controllers
{
[Route("api/groups/{groupId}/resources")]
public class GroupResourcesController : Controller
{
[HttpGet]
public IEnumerable<GroupResourceSummary> GetAll(i... | mit | C# |
f58a50924cf10dbf0bc798560e0f76189b550707 | add githubflow todo | Philo/GitVersion,GitTools/GitVersion,pascalberger/GitVersion,DanielRose/GitVersion,GitTools/GitVersion,GeertvanHorrik/GitVersion,MarkZuber/GitVersion,ParticularLabs/GitVersion,Kantis/GitVersion,TomGillen/GitVersion,onovotny/GitVersion,orjan/GitVersion,ermshiperete/GitVersion,onovotny/GitVersion,DanielRose/GitVersion,op... | GitVersionTask/VersionCache.cs | GitVersionTask/VersionCache.cs | using System.Collections.Generic;
using GitVersion;
public static class VersionCache
{
static Dictionary<string, CachedVersion> versionCacheVersions = new Dictionary<string, CachedVersion>();
public static CachedVersion GetVersion(string gitDirectory)
{
using (var repo = RepositoryLoader.GetRepo(... | using System.Collections.Generic;
using GitVersion;
public static class VersionCache
{
static Dictionary<string, CachedVersion> versionCacheVersions = new Dictionary<string, CachedVersion>();
public static CachedVersion GetVersion(string gitDirectory)
{
using (var repo = RepositoryLoader.GetRepo(... | mit | C# |
62e7a49ee840b0ea366b8df55149144417c05f88 | Clean up Regex tests | pacificIT/FluentValidation,GDoronin/FluentValidation,robv8r/FluentValidation,roend83/FluentValidation,regisbsb/FluentValidation,IRlyDontKnow/FluentValidation,olcayseker/FluentValidation,mgmoody42/FluentValidation,cecilphillip/FluentValidation,roend83/FluentValidation,glorylee/FluentValidation,ruisebastiao/FluentValidat... | src/FluentValidation.Tests/RegularExpressionValidatorTests.cs | src/FluentValidation.Tests/RegularExpressionValidatorTests.cs | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2... | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2... | apache-2.0 | C# |
279c92a7fadc25d5a76f15226af8c1bce3e087d2 | Add Q236 | txchen/localleet | csharp/Q236_LowestCommonAncestorOfABinaryTree.cs | csharp/Q236_LowestCommonAncestorOfABinaryTree.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
//
// According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined betwee... | mit | C# | |
48b3196865e4a4d8da5f59de6ab4a33d2ea9236c | Fix add signature and comment | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Commands/AddSUTAComment.cs | Battery-Commander.Web/Commands/AddSUTAComment.cs | using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using BatteryCommander.Web.Models;
using BatteryCommander.Web.Queries;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace BatteryCommander.Web.Commands
{
public class AddSUTAComment : IRequest
{... | mit | C# | |
37a9f776b188caa15fca0a42bd12937b7295c323 | fix broken tests | ZocDoc/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon | source/ZocMonLib.Web.Test/Framework/TestForManifestReaderProvider.cs | source/ZocMonLib.Web.Test/Framework/TestForManifestReaderProvider.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Xunit;
namespace ZocMonLib.Web.Test
{
public class TestForManifestReaderProvider
{
public class UsingGetNames
{
[Fact]
public void ReturnsMultipleResources()
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Xunit;
namespace ZocMonLib.Web.Test
{
public class TestForManifestReaderProvider
{
public class UsingGetNames
{
[Fact]
public void ReturnsMultipleResources()
... | apache-2.0 | C# |
41d5d9a353871f4b61be6a487690673b9e45c5d9 | Add action test. | jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr | test/app.tests/WebApi/Actions/GetTotalNumberOfGreetingsActionTest.cs | test/app.tests/WebApi/Actions/GetTotalNumberOfGreetingsActionTest.cs | using System.Threading.Tasks;
using Xunit;
using Moq;
using FluentAssertions;
using HelloWorldApp.Data;
using HelloWorldApp.WebApi.Actions;
namespace HelloWorldApp.Test.WebApi.Actions
{
public class GetTotalNumberOfGreetingsActionTest
{
[Fact]
public async Task ExecuteAsyncTest()
{
... | mit | C# | |
8949d0e201bf8e7288cc05aea425d5b2112f1776 | add untracked file | jobeland/NeuralNetwork | NeuralNetwork/UnsupervisedTraining/GenerationConfigurationSettings.cs | NeuralNetwork/UnsupervisedTraining/GenerationConfigurationSettings.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UnsupervisedTraining
{
public class GenerationConfigurationSettings
{
public bool UseMultithreading { get; set; }
public int GenerationPopulation { get; set; }
}
}
| mit | C# | |
97cbce1c7c485a258f1a2b12d99d9ec6bc8c92a4 | add ConsoleOutput | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Helpers/ConsoleOutput.cs | src/WeihanLi.Common/Helpers/ConsoleOutput.cs | using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace WeihanLi.Common.Helpers
{
public class ConsoleOutput : IDisposable
{
private TextWriter _originalOutputWriter;
private TextWriter _originalErrorWriter;
private readonly StringWriter _outputWr... | mit | C# | |
8f9bf5b4fff759dbb408679b4d80284fce4698e0 | Create AnimatorExtensions.cs | drawcode/labs-unity | extensions/AnimatorExtensions.cs | extensions/AnimatorExtensions.cs | using System;
using System.Collections.Generic;
using Engine.Utility;
using UnityEngine;
public static class AnimatorExtentions {
public static void PlayOneShotBool(this Animator animator, string paramName) {
AnimatorHelper.PlayOneShotBool(animator, paramName);
}
public static void PlayOneShotFlo... | mit | C# | |
7d0be191998b8ba9e27119c57881ddfbea0e6c3b | Add PagedViewModel (#12955) | abjerner/Umbraco-CMS,arknu/Umbraco-CMS,arknu/Umbraco-CMS,abjerner/Umbraco-CMS,umbraco/Umbraco-CMS,abryukhov/Umbraco-CMS,umbraco/Umbraco-CMS,arknu/Umbraco-CMS,arknu/Umbraco-CMS,umbraco/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,abryukhov/Umbraco-CMS,umbraco/Umbraco-... | src/Umbraco.Cms.ManagementApi/ViewModels/Pagination/PagedViewModel.cs | src/Umbraco.Cms.ManagementApi/ViewModels/Pagination/PagedViewModel.cs | namespace Umbraco.Cms.ManagementApi.ViewModels.Pagination;
public class PagedViewModel<T>
{
public long Total { get; set; }
public IEnumerable<T> Items { get; set; } = Enumerable.Empty<T>();
}
| mit | C# | |
85cec989fdd5e00b87f49c29464cec52c0daf5cb | Add CombatMultplier psuedo-enum | BoomaNation/Booma.Combat.Formula.Server,BoomaNation/Booma.Combat.Formula.Server | src/Booma.Combat.Formula.Server/MeleeFormulas/Multipliers/CombatMeleeAttackTypeMultiplier.cs | src/Booma.Combat.Formula.Server/MeleeFormulas/Multipliers/CombatMeleeAttackTypeMultiplier.cs | using Booma.Stats.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Booma.Combat.Formula.Server
{
//Values from http://www.freewebs.com/azurepso/psostatistics.htm
/// <summary>
/// Psuedo-float-enum class that provides constant float values for mulitpliers on d... | mit | C# | |
0e01ba70d832d2d8eab44cbfdec4d579a5e62f54 | Add CustomBase32Encoding tests. | wiry-net/Base32,wiry-net/Wiry.Base32,wiry-net/Base32,wiry-net/Wiry.Base32 | tests/UnitTests/CustomBase32EncodingTests.cs | tests/UnitTests/CustomBase32EncodingTests.cs | // Copyright (c) Dmitry Razumikhin, 2016-2019.
// Licensed under the MIT License.
// See LICENSE in the project root for license information.
using System.Text;
using Wiry.Base32;
using Xunit;
namespace UnitTests
{
public class CustomBase32EncodingTests
{
private const string Rfc4648Alphabet = "ABCDE... | mit | C# | |
5aed71e14a9de66eb537c4f961a10d0df2adf78e | Update #9 | lucasdavid/Gamedalf,lucasdavid/Gamedalf | Gamedalf.Tests/Testdata/DevelopersTestData.cs | Gamedalf.Tests/Testdata/DevelopersTestData.cs | using Gamedalf.Core.Models;
using Gamedalf.Tests.Infrastructure;
using System.Collections.Generic;
namespace Gamedalf.Tests.Testdata
{
public class DevelopersTestData : ITestData<Developer>
{
public ICollection<Developer> Data { get; set; }
public DevelopersTestData()
{
... | mit | C# | |
6fbfb366b452aaf62c32a3f47a6da2976fb8c0ab | add Team model - represents teams with their names and id's | Team-LemonDrop/NBA-Statistics | NBAStatistics.Data.FillMongoDB/Models/Team.cs | NBAStatistics.Data.FillMongoDB/Models/Team.cs | using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace NBAStatistics.Data.FillMongoDB.Models
{
public class Team : IEntity
{
public Team(
int teamId,
string name)
{
this.TeamId = teamId;
this.Name = name;
}
[B... | mit | C# | |
8b744bc3b5c423c680abe2087a05c19ddfcbdb79 | Make the BlockSpan non-structural. We don't want to show an indent-guide for them. | mavasani/roslyn,jmarolf/roslyn,amcasey/roslyn,drognanar/roslyn,VSadov/roslyn,tvand7093/roslyn,MattWindsor91/roslyn,pdelvo/roslyn,mgoertz-msft/roslyn,heejaechang/roslyn,CyrusNajmabadi/roslyn,davkean/roslyn,srivatsn/roslyn,bartdesmet/roslyn,gafter/roslyn,Giftednewt/roslyn,davkean/roslyn,bkoelman/roslyn,CaptainHayashi/ros... | src/Features/CSharp/Portable/Structure/Providers/ArrowExpressionClauseStructureProvider.cs | src/Features/CSharp/Portable/Structure/Providers/ArrowExpressionClauseStructureProvider.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.Threading;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.Structure;
using Micro... | // 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.Threading;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.Structure;
using Micro... | mit | C# |
5f81fe65e4c45e42ddefdcb8af29a531d91b85e6 | Add tests for nullable keys | AutoMapper/AutoMapper.Collection,TylerCarlson1/Automapper.Collection | src/AutoMapper.Collection.Tests/NullableIdTests.cs | src/AutoMapper.Collection.Tests/NullableIdTests.cs | using System.Collections.Generic;
using AutoMapper.EquivalencyExpression;
using FluentAssertions;
using Xunit;
namespace AutoMapper.Collection
{
public class NullableIdTests
{
[Fact]
public void Should_Work_With_Null_Id()
{
Mapper.Reset();
Mapper.Initialize(x =>... | mit | C# | |
96db611595ae8a0fadf420561dc0d971b44637c9 | Update flusher to have defaults | ZocDoc/ZocMon,ZocDoc/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,modulexcite/ZocMon,ZocDoc/ZocMon | ZocMon/ZocMon/ZocMonLib/Framework/IRecordFlush.cs | ZocMon/ZocMon/ZocMonLib/Framework/IRecordFlush.cs | using System.Data;
namespace ZocMonLib
{
public interface IRecordFlush
{
/// <summary>
/// Flush all data accumulated thus far.
/// </summary>
void FlushAll();
/// <summary>
/// Flush data for the lowest reduce resolution for the given configuration.
///... | using System.Data;
namespace ZocMonLib
{
public interface IRecordFlush
{
/// <summary>
/// Flush all data accumulated thus far.
/// </summary>
void FlushAll();
/// <summary>
/// Flush data for the lowest reduce resolution for the given configuration.
///... | apache-2.0 | C# |
78046c0706454726f1f895201c5e3c0c47334a49 | Add missing file to samples | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | samples/MvcSandbox/Pages/Index.cshtml | samples/MvcSandbox/Pages/Index.cshtml | @page Test
<div class="row">
<div class="col-md-3">
<h2>RazorPages Test</h2>
<ul>
<li>This file should give you a quick view of a Mvc Raor Page in action.</li>
</ul>
</div>
</div>
| apache-2.0 | C# | |
d5a76484993364cb5be4d1ddc17a7add00fb1707 | fix Logger | josealencar/Aritter,arsouza/Aritter,josealencar/Aritter,aritters/Ritter,josealencar/Aritter,arsouza/Aritter,josealencar/Aritter,josealencar/Aritter | src/Aritter.Infra.IoC/Modules/CrossCuttingModule.cs | src/Aritter.Infra.IoC/Modules/CrossCuttingModule.cs | using Aritter.Infra.CrossCutting.Logging;
using Ninject.Modules;
namespace Aritter.Infra.IoC.Modules
{
internal sealed class CrossCuttingModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<ILogger>().ToMethod(p => Logger.CreateLogger());
}
}
}
| using Aritter.Infra.CrossCutting.Logging;
using Ninject.Modules;
namespace Aritter.Infra.IoC.Modules
{
internal sealed class CrossCuttingModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<ILogger>().To<Logger>();
}
}
}
| mit | C# |
b79e3b0e1d5c77ceffe28eedbeae082df5c9be8c | Add TokenAllocator UnitTests | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | test/AsmResolver.DotNet.Tests/TokenAllocatorTest.cs | test/AsmResolver.DotNet.Tests/TokenAllocatorTest.cs | using AsmResolver.PE.DotNet.Metadata.Tables;
using Xunit;
namespace AsmResolver.DotNet.Tests
{
public class TokenAllocatorTest
{
[Fact]
public void AsigningAvailableTokenShouldSetMetadataToken()
{
var module = ModuleDefinition.FromBytes(Properties.Resources.HelloWorld);
... | mit | C# | |
9c7c1b741b132cd78bfc9db2654227bc2aec2e45 | Add basic Span<T> test | tijoytom/coreclr,mmitche/coreclr,parjong/coreclr,botaberg/coreclr,hseok-oh/coreclr,cydhaselton/coreclr,yeaicc/coreclr,JonHanna/coreclr,gkhanna79/coreclr,gkhanna79/coreclr,James-Ko/coreclr,yizhang82/coreclr,krk/coreclr,mmitche/coreclr,cydhaselton/coreclr,jamesqo/coreclr,poizan42/coreclr,sjsinju/coreclr,sagood/coreclr,Dm... | tests/src/CoreMangLib/system/span/BasicSpanTest.cs | tests/src/CoreMangLib/system/span/BasicSpanTest.cs | using System;
using System.Collections.Generic;
class My
{
static int Sum(Span<int> span)
{
int sum = 0;
for (int i = 0; i < span.Length; i++)
sum += span[i];
return sum;
}
static void Main()
{
int[] a = new int[] { 1, 2, 3 };
Span<int> span = ne... | mit | C# | |
b0cd96aff561895c69dd2da59e68cb0f0c7a5770 | Create VectorExtensions.cs | drawcode/labs-unity | extensions/VectorExtensions.cs | extensions/VectorExtensions.cs | using System;
using UnityEngine;
public static class VectorExtensions {
public static bool IsBiggerThanDeadzone(this Vector3 inst, float deadZone) {
if(Mathf.Abs(inst.x) > deadZone
|| Mathf.Abs(inst.y) > deadZone
|| Mathf.Abs(inst.z) > deadZone) {
return true;
}
... | mit | C# | |
4745de39533710a9e8c7da23ee7ba03ba7d618eb | Create runlengthencoding.cs | MaideCa/misc,MaideCa/misc | runlengthencoding.cs | runlengthencoding.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RLE
{
class Program
{
static string RLEncode(string Input)
{
if (Input.Length <= 2)
{
return Input;
}
StringBuilder EncodedOutput = new StringBu... | mit | C# | |
2129b745a8e374333301379ec1fb6d8b1d4e1796 | Add test | peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework | osu.Framework.Tests/Visual/Platform/TestSceneClipboard.cs | osu.Framework.Tests/Visual/Platform/TestSceneClipboard.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.Extensions;
using osu.Framework.Platform;
using SixLabors.ImageSharp;
using SixLabors.ImageShar... | mit | C# | |
0aab62a43432e1a10807814d5fd99e67430e9c20 | Create ConsoleHelper.cs | Quadrat1c/OpJinx | Epoch/Helpers/ConsoleHelper.cs | Epoch/Helpers/ConsoleHelper.cs | using System;
namespace Epoch
{
public class ConsoleHelpers
{
public static void Intro()
{
Console.ForegroundColor = ConsoleColor.DarkCyan;
Console.WriteLine(@"___________ .__ ");
Console.WriteLine(@"\_ _____/_____ ____ ____ | |_... | mit | C# | |
5d0df9a5b8d8a751abe3a3c1075925136a8426c4 | Remove unused directives | D3-LucaPiombino/NEventStore,gael-ltd/NEventStore,paritoshmmmec/NEventStore,marcoaoteixeira/NEventStore,jamiegaines/NEventStore,NEventStore/NEventStore,nerdamigo/NEventStore,adamfur/NEventStore,deltatre-webplu/NEventStore,chris-evans/NEventStore,AGiorgetti/NEventStore | src/tests/EventStore.Persistence.MySql.Tests/PersistenceEngineFixture.cs | src/tests/EventStore.Persistence.MySql.Tests/PersistenceEngineFixture.cs | namespace EventStore.Persistence.AcceptanceTests
{
using Serialization;
using SqlPersistence;
using SqlPersistence.SqlDialects;
public partial class PersistenceEngineFixture
{
public PersistenceEngineFixture()
{
this.CreatePersistence = () =>
new SqlPer... | namespace EventStore.Persistence.AcceptanceTests
{
using System;
using System.Configuration;
using System.Data;
using System.Data.Common;
using Serialization;
using SqlPersistence;
using SqlPersistence.SqlDialects;
public partial class PersistenceEngineFixture
{
public Pers... | mit | C# |
ec8f9d352dec310e2871ca159f90a635881a037a | bump version | Fody/Anotar,modulexcite/Anotar,mstyura/Anotar,distantcam/Anotar | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Anotar")]
[assembly: AssemblyProduct("Anotar")]
[assembly: AssemblyVersion("2.0.1.0")]
[assembly: AssemblyFileVersion("2.0.1.0")]
| using System.Reflection;
[assembly: AssemblyTitle("Anotar")]
[assembly: AssemblyProduct("Anotar")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
| mit | C# |
4618728bf016fc3253d0cce337c230a2ed0f2fac | Add test case | ppy/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu-new,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,ppy/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu | osu.Game.Rulesets.Osu.Tests/Editor/TestSceneOsuEditorSelectInvalidPath.cs | osu.Game.Rulesets.Osu.Tests/Editor/TestSceneOsuEditorSelectInvalidPath.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Types;
using osu.Game.Rulesets.Osu.Objects;
using osu.Gam... | mit | C# | |
dae1182fd55db29f613efc2a3c7627a55b093f5c | Create INotesRepository.cs | CarmelSoftware/MVCDataRepositoryXML | INotesRepository.cs | INotesRepository.cs | public interface INotesRepository
{
IEnumerable<Note> GetAll();
Note Get(int id);
Note Add(Note item);
bool Update(Note item);
bool Delete(int id);
}
| mit | C# | |
77d7dcc4b0a2bfef2b6b382ea38f5ffa68a0ca9d | Make a working copy of an PCB design | sts-CAD-Software/PCB-Investigator-Scripts | MakeWorking_Copy.cs | MakeWorking_Copy.cs | //-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 2014-04-24
// Autor
//
// Make copy of job and open it in temporary path.
//-----------------------------------------------------------------------------------
using Syste... | bsd-3-clause | C# | |
f9e98abbc31fa6811fa8abce1ed37e87b700bbd4 | Add a light manager for all level lights | cmilr/Unity2D-Components,jguarShark/Unity2D-Components | Level/LightManager.cs | Level/LightManager.cs | using DG.Tweening;
using Matcha.Dreadful;
using UnityEngine;
using UnityEngine.Assertions;
public class LightManager : BaseBehaviour
{
private Light playerLight;
private Light creatureLight;
private Light pickupLight;
private Light tileLight;
private Light decorationLight;
private float fadeAfter = 0f;
pr... | mit | C# | |
2ca84097e2fe247168f9e56f31b53d70b419e0b1 | Add missing file | Tratcher/IndecisionEngine,Tratcher/IndecisionEngine,Tratcher/IndecisionEngine | src/IndecisionEngine/Models/StoryDbContext.cs | src/IndecisionEngine/Models/StoryDbContext.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Data.Entity;
namespace IndecisionEngine.Models
{
public class StoryDbContext : DbContext
{
public DbSet<StoryEntry> StoryEntries { get; set; }
}
} | apache-2.0 | C# | |
c80ce5551da8861913d5a4929db3633cbbf31f9a | rework ConfigurePersistentSessions | darraghoriordan/Thinktecture.IdentityModel.45,rmorris8812/Thinktecture.IdentityModel.45,nguyenbanguyen/Thinktecture.IdentityModel.45,yonglehou/Thinktecture.IdentityModel.45,shashwatchandra/Thinktecture.IdentityModel.45,jbn566/Thinktecture.IdentityModel.45,IdentityModel/Thinktecture.IdentityModel.45 | IdentityModel/Thinktecture.IdentityModel/Web/PassiveSessionConfiguration.cs | IdentityModel/Thinktecture.IdentityModel/Web/PassiveSessionConfiguration.cs | using System;
using System.Collections.Generic;
using System.IdentityModel.Services;
using System.IdentityModel.Services.Tokens;
using System.IdentityModel.Tokens;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Thinktecture.IdentityModel.Web
{
public static class PassiveSessionConfi... | using System;
using System.Collections.Generic;
using System.IdentityModel.Services;
using System.IdentityModel.Services.Tokens;
using System.IdentityModel.Tokens;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Thinktecture.IdentityModel.Web
{
public static class PassiveSessionConfi... | bsd-3-clause | C# |
1e82fd337d15fed083d8fdcec148d1d640b3bfd7 | Update to avoid an execption if there are no jobs and therefore no jobs folder. | MironovDmitry/dashing.net,voiddog/dashing.net,voiddog/dashing.net,MironovDmitry/dashing.net,Davlind/dashing.net,MironovDmitry/dashing.net,Davlind/dashing.net,voiddog/dashing.net | src/dashing.net/App_Start/JobConfig.cs | src/dashing.net/App_Start/JobConfig.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Linq;
using System.Reflection;
using System.Web;
using dashing.net.common;
namespace dashing.net.App_Start
{
using System.IO;
public class JobCon... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Linq;
using System.Reflection;
using System.Web;
using dashing.net.common;
namespace dashing.net.App_Start
{
public class JobConfig
{
publ... | mit | C# |
473bc5b6d2caa761a0a657fbb086f3b955a4c1b4 | Prepare an initial model. | lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager | src/Zuehlke.Eacm.Web.Backend/DomainModel/Project.cs | src/Zuehlke.Eacm.Web.Backend/DomainModel/Project.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Zuehlke.Eacm.Web.Backend.DomainModel
{
public class Project
{
public ModelDefinition Definition { get; } = new ModelDefinition();
}
public class ModelDefinition
{
private r... | mit | C# | |
efec9e0fec79a3f07c9bb83fbc83a10430975589 | Add WindowTrigger and WindowAction classes. | cube-soft/Cube.Net,cube-soft/Cube.Net,cube-soft/Cube.Net | Applications/Rss.Reader/Xui/Triggers/WindowTrigger.cs | Applications/Rss.Reader/Xui/Triggers/WindowTrigger.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# | |
0dd23c46b04caebae04a115ce6c7f1591ae21e6f | Add basic `RealmScore` implementation | peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu | osu.Game/Models/RealmScore.cs | osu.Game/Models/RealmScore.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 osu.Framework.Testing;
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Rulesets;
using osu.Game.Sco... | mit | C# | |
77e5bebe01c74f65f4f6629ebca1e0d020c5224d | Move object | bkorkmaz/vesa | ObjectMove.cs | ObjectMove.cs | using UnityEngine;
using System.Collections;
public class ObjectMove : MonoBehaviour
{
public float speed = 15;
void Update ()
{
transform.Translate(Vector3.forward * Time.deltaTime * speed);
}
}
| unlicense | C# | |
e083c0d1df9bc290b519256dd9175e2a2695e81f | implement relaycommand | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Controls/RelayCommand.cs | TCC.Core/Controls/RelayCommand.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace TCC.Controls
{
public class RelayCommand : ICommand
{
private Action<object> _execute;
private Func<object, bool> _canExecute;
publ... | mit | C# | |
9633e93a9a6bf4bcbabe839f2492402ac2d86956 | add c# implementation | pauldardeau/python-concurrent-disk-io,pauldardeau/python-concurrent-disk-io,pauldardeau/python-concurrent-disk-io,pauldardeau/python-concurrent-disk-io,pauldardeau/python-concurrent-disk-io,pauldardeau/python-concurrent-disk-io,pauldardeau/python-concurrent-disk-io | SimulatedDiskIOServer.cs | SimulatedDiskIOServer.cs | // simulate occasional problematic (long blocking) requests for disk IO
using System;
using System.IO;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace diskioserver {
public class SimulatedDiskIOServer {
public static int NUM_WORKER_THREADS = 5;
public static int READ_TIMEOUT_SECS =... | bsd-3-clause | C# | |
a4a943b009fe957952f1c2c0d094a8af6e80b833 | Create Problem153.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problem153.cs | Problem153.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace ProjectEuler.Problems
{
class Problem153
{
public static void Run()
{
int upper = 35;
List<int> intList = new List<int>();
for (int x = 2; x <= upper; x++)
... | mit | C# | |
dfd7f1cd38163c7ca3525c1781f94b07c092e0bd | Add Q219 | txchen/localleet | csharp/Q219_ContainsDuplicateII.cs | csharp/Q219_ContainsDuplicateII.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between i and j is at most k.
... | mit | C# | |
d3bad7bd1d5612901ff0f3f74080ca5349091228 | Add ColorViewTab enum | SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia | src/Avalonia.Controls.ColorPicker/ColorView/ColorViewTab.cs | src/Avalonia.Controls.ColorPicker/ColorView/ColorViewTab.cs | namespace Avalonia.Controls
{
/// <summary>
/// Defines a specific tab (subview) within the <see cref="ColorView"/>.
/// </summary>
public enum ColorViewTab
{
/// <summary>
/// The components view with sliders and numeric input boxes.
/// </summary>
Components,
... | mit | C# | |
f4b191c4c889690063d76ec45c63e56e5b9c51d7 | Create Chapter1.aspx.cs | lerwine/JSCookbook,lerwine/JSCookbook,lerwine/JSCookbook | JSCookbook/Chapter1.aspx.cs | JSCookbook/Chapter1.aspx.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace JSCookbook
{
public partial class Chapter1_Page : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
| apache-2.0 | C# | |
054b560bda747bbec1059b63d584b4426f8c33b8 | Add draft integration version | funkyOne/facts,funkyOne/facts,funkyOne/facts | server/Intergation/JiraAdapter.cs | server/Intergation/JiraAdapter.cs | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace Facts.Intergation
{
public class JiraAdapter
{
const string apiBaseUrl = "/rest/api/2/search";
const string apiHo... | apache-2.0 | C# | |
f9091d8aca204e9f744ed0c98c418e0c63f43936 | Create 19-2.cs | rikkus/adventofcode2016,rikkus/adventofcode2016 | 19-2.cs | 19-2.cs | using System;
namespace AoC2016_19
{
class Elf
{
public Elf(string name)
{
Name = name;
Value = 1;
Previous = this;
Next = this;
}
public override string ToString()
{
return Name;
}
public stri... | mit | C# | |
9445ced998bd33bb316f370d89e23afd9b0f3312 | Add tests class for NoteSubparser | mdileep/NFugue | tests/Staccato.Tests/Subparsers/NoteSubparserTests.cs | tests/Staccato.Tests/Subparsers/NoteSubparserTests.cs | using FluentAssertions;
using NFugue.Parser;
using NFugue.Theory;
using Staccato.Subparsers.NoteSubparser;
using Xunit;
namespace Staccato.Tests.Subparsers
{
public class NoteSubparserTests : SubparserTestBase<NoteSubparser>
{
[Fact]
public void Should_match_simple_notes()
{
... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.