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 |
|---|---|---|---|---|---|---|---|---|
c25794e0b9f1086e7655f926d92742a8dc64ec34 | Revert "Delete ISlackIntegration.cs" | Sankra/DIPSbot,Sankra/DIPSbot | src/Hjerpbakk.DIPSbot/ISlackIntegration.cs | src/Hjerpbakk.DIPSbot/ISlackIntegration.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using SlackConnector.EventHandlers;
using SlackConnector.Models;
namespace Hjerpbakk.DIPSbot
{
/// <summary>
/// Interface for the Slack APIs needed for Profilebot.
/// </summary>
public interface ISlackIntegration
{
/// <summary... | mit | C# | |
a3eb56102e87edd18b635e34a3240e096834a71d | Add a test scene for non-top level menus | peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework | osu.Framework.Tests/Visual/UserInterface/TestSceneClosableMenu.cs | osu.Framework.Tests/Visual/UserInterface/TestSceneClosableMenu.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Testing;
namespace osu.Framework.Tests.Visual.UserIn... | mit | C# | |
4a9782f3ab3a69158f7b06a1e908c9abd296f703 | fix typo in HelloWorld HelloAkka example | stefansedich/akka.net,JeffCyr/akka.net,heynickc/akka.net,matiii/akka.net,Silv3rcircl3/akka.net,cdmdotnet/akka.net,tillr/akka.net,akoshelev/akka.net,ali-ince/akka.net,alexvaluyskiy/akka.net,skotzko/akka.net,numo16/akka.net,eloraiby/akka.net,adamhathcock/akka.net,nvivo/akka.net,thelegendofando/akka.net,dbolkensteyn/akka.... | src/examples/HelloWorld/HelloAkka/Program.cs | src/examples/HelloWorld/HelloAkka/Program.cs | using System;
using Akka.Actor;
namespace HelloAkka
{
class Program
{
static void Main(string[] args)
{
// create a new actor system (a container for actors)
var system = ActorSystem.Create("MySystem");
// create actor and get a reference to it.
... | using System;
using Akka.Actor;
namespace HelloAkka
{
class Program
{
static void Main(string[] args)
{
// create a new actor system (a container for actors)
var system = ActorSystem.Create("MySystem");
// create actor and get a reference to it.
... | apache-2.0 | C# |
6deea8a559e2f5c733325c861c49855926054f15 | Disable ShowMarkerOnStaticMethods for Unity projects (#2063) | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/Settings/Rider/ShowMarkerOnStaticMethodSettings.cs | resharper/resharper-unity/src/Settings/Rider/ShowMarkerOnStaticMethodSettings.cs | using JetBrains.Application.Settings;
using JetBrains.Application.Settings.Implementation;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Host.Features.RunMarkers;
using JetBrains.Util;
namespace JetBrains.ReSharper.Plugins.Unity.Settings
{
[SolutionComponent]
public class S... | apache-2.0 | C# | |
4eaf63aaf1746550c145b9c5c79844c36b31f81a | Create BBMatrixAtom.cs | ForNeVeR/wpf-math | src/WpfMath/Atoms/BBMatrixAtom.cs | src/WpfMath/Atoms/BBMatrixAtom.cs | using WpfMath.Boxes;
namespace WpfMath.Atoms
{
/// <summary>
/// Represents a matrix bounded by left and right curly braces.
/// </summary>
internal class BBMatrixAtom:Atom
{
public BBMatrixAtom(SourceSpan source, Atom atom, TexAtomType type = TexAtomType.Ordinary) : base(source, type)
... | mit | C# | |
e79f8777abf13897e15528b870ee304e178b3388 | Create HtmlHelperExtentions.cs | SilentPenguin/PartialScripts | HtmlHelperExtentions.cs | HtmlHelperExtentions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
namespace System.Web.Mvc
{
public static class HtmlHelperExtentions
{
public const String ScriptsKey = "ScriptContexts";
public static vo... | apache-2.0 | C# | |
a962983d4477d058d9a3de1de0b3a3a615a0c173 | add ViewModel for IdentificationCodes | KristianMariyanov/VotingSystem,KristianMariyanov/VotingSystem,KristianMariyanov/VotingSystem | VotingSystem.Web/Areas/User/ViewModels/IdentificationCodeViewModel.cs | VotingSystem.Web/Areas/User/ViewModels/IdentificationCodeViewModel.cs | namespace VotingSystem.Web.Areas.User.ViewModels
{
using System.ComponentModel.DataAnnotations;
using VotingSystem.Models;
using VotingSystem.Web.Infrastructure.Mapping;
public class VoteIdentificationCodeViewModel : IMapFrom<IdentificationCode>
{
public int VoteId { get; set; }
... | mit | C# | |
457e1b54b5656b8a67624d422dfcd23def5870b2 | Add failing tests for in parameters | jnm2/ApiContractGenerator,jnm2/ApiContractGenerator | src/ApiContractGenerator.Tests/Integration/SignatureTests.cs | src/ApiContractGenerator.Tests/Integration/SignatureTests.cs | using NUnit.Framework;
namespace ApiContractGenerator.Tests.Integration
{
public sealed class SignatureTests : IntegrationTests
{
[Test]
public static void Ref_readonly_method_parameter_should_use_in()
{
Assert.That("public struct A { public void Test(in int x) { } }", HasCo... | mit | C# | |
70377d095e0a88a71ddb2bf22687a1c2bd3e3770 | Add new air item too. Darn visual studio that can't do this proper :-( | MiPE-JP/RaNET,yungtechboy1/MiNET,InPvP/MiNET | src/MiNET/MiNET/Items/ItemAir.cs | src/MiNET/MiNET/Items/ItemAir.cs | namespace MiNET.Items
{
public class ItemAir : Item
{
public ItemAir() : base(0, 0, 0)
{
}
}
} | mpl-2.0 | C# | |
9c717a8a6285b2e949daefc71d4aefb4d804f953 | Add missing file | denxorz/HotChocolatey | HotChocolatey/View/About.xaml.cs | HotChocolatey/View/About.xaml.cs | using System.Windows;
namespace HotChocolatey.View
{
public partial class About : Window
{
public About()
{
InitializeComponent();
}
}
}
| mit | C# | |
1055e8092952a88b2bcddbe7dc0ce8a2889c8d23 | Create view model for tracking last logs | MarioZisov/Baskerville,MarioZisov/Baskerville,MarioZisov/Baskerville | BaskervilleWebsite/Baskerville.Models/ViewModels/LastLogsViewModel.cs | BaskervilleWebsite/Baskerville.Models/ViewModels/LastLogsViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Baskerville.Models.ViewModels
{
public class LastLogsViewModel
{
public string Username { get; set; }
public DateTime Date { get; set; }
}
}
| apache-2.0 | C# | |
8f57ce6cf2639872cc626416e74eebb257f8d51d | move TeeOutput from test project to main project | icarus-consulting/Yaapii.Atoms | src/Yaapii.Atoms/IO/TeeOutput.cs | src/Yaapii.Atoms/IO/TeeOutput.cs | using System;
using System.IO;
using System.Text;
using Yaapii.Atoms.IO;
namespace Yaapii.Atoms.IO
{
/// <summary>
/// A <see cref="IOutput"/> which will copy to another <see cref="IOutput"/> while writing.
/// </summary>
public sealed class TeeOutput : IOutput, IDisposable
{
private reado... | mit | C# | |
9aa1ec8926e7dc15c416e91af0f6d99e42d7887f | add get all languages tests | mzrimsek/resume-site-api | Test.Integration/ControllerTests/LanguageControllerTests/GetAllLanguagesShould.cs | Test.Integration/ControllerTests/LanguageControllerTests/GetAllLanguagesShould.cs | using Microsoft.AspNetCore.TestHost;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using Test.Integration.TestHelpers;
using Web.Models.LanguageModels;
namespace Test.Integration.ControllerTests.LanguageControllerTests
{
[TestClass]
... | mit | C# | |
8206defcf2665d8a00ca7f2013be51d74c9afbb7 | Add ContentTreeChangeNotification | dawoe/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,robertjf/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,umbraco/Umbraco-CMS,robertjf/Umbr... | src/Umbraco.Core/Services/Notifications/ContentTreeChangeNotification.cs | src/Umbraco.Core/Services/Notifications/ContentTreeChangeNotification.cs | using System.Collections.Generic;
using System.Linq;
using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Services.Changes;
namespace Umbraco.Cms.Core.Services.Notifications
{
public class ContentTreeChangeNotification : TreeChangeNotification<IContent>
{
public ContentT... | mit | C# | |
70e4f347ba06d5606f98c485df6858a3e5f39168 | Create XObjectExtensions | whampson/bft-spec,whampson/cascara | Cascara/Src/Extensions/XObjectExtensions.cs | Cascara/Src/Extensions/XObjectExtensions.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Linq;
namespace WHampson.Cascara.Extensions
{
internal static class XObjectExtensions
{
/// <summary>
/// Extracts source code line information from the specified <see cref="XElement"/>.
... | mit | C# | |
8e128c9b247a3f98f19d75c9d340e94a6fa3c980 | Add ValueConverterGroup | SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,grokys/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia | src/Avalonia.Controls.ColorPicker/Converters/ValueConverterGroup.cs | src/Avalonia.Controls.ColorPicker/Converters/ValueConverterGroup.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using Avalonia.Data.Converters;
namespace Avalonia.Controls.Primitives.Converters
{
/// <summary>
/// Converter to chain together multiple converters.
/// </summary>
public class ValueConverterGroup : List<IValueConverter>, IV... | mit | C# | |
4dab9a7560e4b0f796dbc4b3729b5e78e7934248 | Add ExtensionMethod class for supporting functions. Added function to shift number of decimal points | starknguyen/log-filter | LogFilterApplication/LogFilterApplication/ExtensionMethods.cs | LogFilterApplication/LogFilterApplication/ExtensionMethods.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LogFilterApplication
{
public static class ExtensionMethods
{
public static string ShiftDecimalPoint(double inputNumber, int decimalToShift)
{
string retVal = "";
inputNumbe... | apache-2.0 | C# | |
bf4ff190d8621335428384fbbc849e7485bf21ac | Add test cases for the CreateRawData case | ZEISS-PiWeb/PiWeb-Api | src/Api.Rest.Tests/HttpClient/RawData/RawDataServiceRestClientTest.cs | src/Api.Rest.Tests/HttpClient/RawData/RawDataServiceRestClientTest.cs | #region copyright
/* * * * * * * * * * * * * * * * * * * * * * * * * */
/* Carl Zeiss IMT (IZfM Dresden) */
/* Softwaresystem PiWeb */
/* (c) Carl Zeiss 2021 */
/* * * * * * * * * * * * * * * * * * * * * * * * * */
#endregion
namespa... | bsd-3-clause | C# | |
5745ff3af12c950efb9b47361f0d8f8aa633498c | Create EnumValueDescription.cs | MingLu8/Nancy.WebApi.HelpPages | src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/EnumValueDescription.cs | src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/EnumValueDescription.cs | namespace WebApplication1.Areas.HelpPage.ModelDescriptions
{
public class EnumValueDescription
{
public string Documentation { get; set; }
public string Name { get; set; }
public string Value { get; set; }
}
}
| mit | C# | |
e6d6d5765828ce213b9a626e0c3e99c5660122de | add NGUIPanelHelper.cs | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/NGUIUtil/NGUIPanelHelper.cs | Unity/NGUIUtil/NGUIPanelHelper.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NGUIPanelHelper : MonoBehaviour
{
public string CloseButtonPath = string.Empty;
public UIPanel Panel { get { return m_Panel ; } }
public float PanelAlpha { get { return (null!=m_Panel) ? m_Panel.alpha : 0.0f ; } }
publi... | mit | C# | |
eeda2af9624440211ebe609442f8e1082dab929e | Define the 'Environment' class in the stdlib | jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm | stdlib/corlib/Environment.cs | stdlib/corlib/Environment.cs | namespace System
{
/// <summary>
/// Defines logic that allows an application to interact with its environment.
/// </summary>
public static class Environment
{
/// <summary>
/// Initializes the environment.
/// </summary>
/// <param name="argc">
/// The numbe... | mit | C# | |
f3bb9a40c7988bfc9a59f45aada430d6725db636 | add tests for DataSynchronizationService | zmira/abremir.AllMyBricks | abremir.AllMyBricks.DataSynchronizer.Tests/Services/DataSynchronizerServiceTests.cs | abremir.AllMyBricks.DataSynchronizer.Tests/Services/DataSynchronizerServiceTests.cs | using abremir.AllMyBricks.Data.Interfaces;
using abremir.AllMyBricks.Data.Models;
using abremir.AllMyBricks.DataSynchronizer.Interfaces;
using abremir.AllMyBricks.DataSynchronizer.Services;
using abremir.AllMyBricks.Onboarding.Interfaces;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NSubstitute;
using Sys... | mit | C# | |
dcef45ffd21416c1d58a21a680ca81e7a68d901b | Update Twitterizer2.Streaming/Location.cs | yonglehou/Twitterizer,CruelCow/Twitterizer,GProulx/Twitterizer,yonglehou/Twitterizer,GProulx/Twitterizer,SwatantraYadav/Twitterizer,SwatantraYadav/Twitterizer,CruelCow/Twitterizer | Twitterizer2.Streaming/Location.cs | Twitterizer2.Streaming/Location.cs | namespace Twitterizer.Streaming
{
public class Location
{
/// <summary>
/// Gets or sets the latitude.
/// </summary>
/// <value>The latitude.</value>
public double Latitude { get; set; }
/// <summary>
/// Gets or sets the longitude.
... | namespace Twitterizer.Streaming
{
public class Location
{
/// <summary>
/// Gets or sets the latitude.
/// </summary>
/// <value>The latitude.</value>
public int Latitude { get; set; }
/// <summary>
/// Gets or sets the longitude.
///... | mit | C# |
c6866d8defdee6ef3c5ab20d10cc7a32cfa72735 | Revert "GraphQL: Default to use builtin GUID primitives" | SnowflakePowered/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,RonnChyran/snowflake | src/Snowflake.Support.GraphQLFrameworkQueries/Types/GuidGraphType.cs | src/Snowflake.Support.GraphQLFrameworkQueries/Types/GuidGraphType.cs | using System;
using GraphQL.Language.AST;
using GraphQL.Types;
namespace GraphQL.Types
{
public class GuidGraphType : ScalarGraphType
{
public GuidGraphType()
{
Name = "Guid";
Description = "Globally Unique Identifier.";
}
public override object ParseVa... | mpl-2.0 | C# | |
0e3adb013df848715a732d49dc8ba9ec58ee2737 | Disable unstable test | karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,karthiknadig... | src/Markdown/Editor/Test/Classification/InvalidateCodeTest.cs | src/Markdown/Editor/Test/Classification/InvalidateCodeTest.cs | using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using FluentAssertions;
using Microsoft.Languages.Editor.Test.Text;
using Microsoft.Languages.Editor.Test.Utility;
using Microsoft.Markdown.Editor.Classification.MD;
using Microsoft.Markdown.Editor.ContentTypes;
using Microsoft.UnitTests.Core.XUn... | using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using FluentAssertions;
using Microsoft.Languages.Editor.Test.Text;
using Microsoft.Languages.Editor.Test.Utility;
using Microsoft.Markdown.Editor.Classification.MD;
using Microsoft.Markdown.Editor.ContentTypes;
using Microsoft.UnitTests.Core.XUn... | mit | C# |
0d8ea72270b26c736e008637d9470344c7d1d139 | add missing file | sergii-s/full-build,sergii-s/full-build | src/FullBuild.Test/TemporaryDirectory.cs | src/FullBuild.Test/TemporaryDirectory.cs | // Copyright (c) 2014, Pierre Chalamet
// All rights reserved.
//
// 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 retain the above copyright
// notice, this list of co... | apache-2.0 | C# | |
633154902e7c0efdb88ba772f51e0650d4302f20 | Add tests for the standard system base state | openstardrive/server,openstardrive/server,openstardrive/server | OpenStardriveServer.UnitTests/Domain/Systems/Standard/StandardSystemBaseStateTests.cs | OpenStardriveServer.UnitTests/Domain/Systems/Standard/StandardSystemBaseStateTests.cs | using OpenStardriveServer.Domain.Systems;
using OpenStardriveServer.Domain.Systems.Standard;
namespace OpenStardriveServer.UnitTests.Domain.Systems.Standard;
public class StandardSystemBaseStateTests
{
[TestCase(true)]
[TestCase(false)]
public void When_checking_has_sufficient_power(bool hasSufficientPowe... | apache-2.0 | C# | |
64f0626ef12fb25de4e3d5e306872a16810e481f | Create SmoothMouseLook.cs | UnityCommunity/UnityLibrary | Scripts/Camera/SmoothMouseLook.cs | Scripts/Camera/SmoothMouseLook.cs | // original source: http://forum.unity3d.com/threads/a-free-simple-smooth-mouselook.73117/
// Very simple smooth mouselook modifier for the MainCamera in Unity
// by Francis R. Griffiths-Keam - www.runningdimensions.com
// Modified: Escape key for hide/show & lock/unlock mouse
using UnityEngine;
public class SmoothM... | mit | C# | |
439957a942c18d183dd13ec8ce9804d6d9b64fad | Add AppBuilder.UseDiscoveryClient extension | SteelToeOSS/Discovery,SteelToeOSS/Discovery,SteelToeOSS/Discovery | src/SteelToe.Discovery.Client/DiscoveryApplicationBuilderExtensions.cs | src/SteelToe.Discovery.Client/DiscoveryApplicationBuilderExtensions.cs | //
// Copyright 2015 the original author or 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 required by applicable ... | apache-2.0 | C# | |
0cc00df9e6a9a916f9275fb146ac24602f57e397 | create api controller for achievements | YeeRSoft/broken-shoe-league,YeeRSoft/broken-shoe-league,YeeRSoft/broken-shoe-league | Source/BrokenShoeLeague.Web.API/Controllers/AchievementsController.cs | Source/BrokenShoeLeague.Web.API/Controllers/AchievementsController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using BrokenShoeLeague.Domain.Repositories;
using BrokenShoeLeague.Services.Achievement;
namespace BrokenShoeLeague.Web.API.Controllers
{
[RoutePrefix("api/v1/achievements")]
publ... | mit | C# | |
9a2ead4381a60ca0cf2c812f5653eab461129bf0 | Add PagedViewModel (#12955) | abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,arknu/Umbraco-CMS,umbraco/Umbraco-CMS,arknu/Umbraco-CMS,umbraco/Umbraco-CMS,umbraco/Umbraco-CMS,abjerner/Umbraco-CMS,arknu/Umbraco-CMS,abjerner/Umbraco-CMS,abjerner/Umbraco-CMS,abryukhov/Umbraco-CMS,umbraco/Umbraco-CMS,arknu/Umbraco-CMS,abryukhov/Umbraco-CMS,abryukhov/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# | |
7a43106a01254eb5e7b0c6f47e8191eeddd17525 | Add ExtensionsByteArraysTest class | unosquare/swan | test/Unosquare.Swan.Test/ExtensionsByteArraysTest.cs | test/Unosquare.Swan.Test/ExtensionsByteArraysTest.cs | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
using Unosquare.Swan;
using Unosquare.Swan.Test.Mocks;
namespace Unosquare.Swan.Test
{
[TestFixture]
public class ExtensionsByteArraysTest
{
static int value = 1234... | mit | C# | |
c4b3f5d3d0fd15a1d4c776cea53f3280117d24ea | Add delivery client factory simple tests | Kentico/delivery-sdk-net,Kentico/Deliver-.NET-SDK | Kentico.Kontent.Delivery.Tests/Factories/DeliveryClientFactoryTests.cs | Kentico.Kontent.Delivery.Tests/Factories/DeliveryClientFactoryTests.cs | using FakeItEasy;
using FluentAssertions;
using Kentico.Kontent.Delivery.Abstractions;
using Kentico.Kontent.Delivery.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace Kentico.Kon... | mit | C# | |
95691ca06c2d33264485a7ea46128633b29d525c | Add partial class for retry settings | jskeet/gcloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet | apis/Google.Cloud.Redis.V1/Google.Cloud.Redis.V1/CloudRedisSettings.cs | apis/Google.Cloud.Redis.V1/Google.Cloud.Redis.V1/CloudRedisSettings.cs | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | apache-2.0 | C# | |
e00a72a3b612c2fc6a95c2957e00e126c6566aef | Create build.cake | Marusyk/Simple.HttpPatch,Marusyk/Simple.HttpPatch | build.cake | build.cake | // ARGUMENTS
var target = Argument("Target", "Default");
var configuration = Argument("Configuration", "Release");
var skipTests = Argument("SkipTests", true);
// GLOBAL VARIABLES
var artifactsDirectory = Directory("./artifacts");
var solutionFile = "./WebAPI.Patch.sln";
var solutionFileBackup = solutionFile + ".build... | mit | C# | |
05093f2bc8f4919e16336fa3ca743b776fb2c341 | update structuremap | yuxuac/docs.particular.net,eclaus/docs.particular.net,pedroreys/docs.particular.net,pashute/docs.particular.net,WojcikMike/docs.particular.net,SzymonPobiega/docs.particular.net | Snippets/Snippets_5/Containers.cs | Snippets/Snippets_5/Containers.cs | using Autofac;
using Castle.Windsor;
using Microsoft.Practices.Unity;
using Ninject;
using NServiceBus;
using Spring.Context.Support;
public class Containers
{
public void Simple()
{
IWindsorContainer windsorContainer = null;
ILifetimeScope lifetimeScope = null;
IKernel ninjectKernel =... | using NServiceBus;
public class Containers
{
public void Simple()
{
#region ContainersV5
var configuration = new BusConfiguration();
// Autofac
configuration.UseContainer<AutofacBuilder>();
// Ninject
configuration.UseContainer<NinjectBuilder>();
// ... | apache-2.0 | C# |
6f5b9fae8e6d4f726b2ae30f732952f1385032ee | Create ObjectReferenceEqualityComparer.cs | dlidstrom/EventStoreLite | ObjectReferenceEqualityComparer.cs | ObjectReferenceEqualityComparer.cs | using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace RavenEventStore
{
public class ObjectReferenceEqualityComparer<T> : EqualityComparer<T> where T : class
{
public static new readonly IEqualityComparer<T> Default = new ObjectReferenceEqualityComparer<T>();
publi... | mit | C# | |
37f4b0da86dfa7c9382677e4b8122c55ddcba55a | Create DeweyCreateViewModel | Programazing/Open-School-Library,Programazing/Open-School-Library | src/Open-School-Library/Models/DeweyViewModels/DeweyCreateViewModel.cs | src/Open-School-Library/Models/DeweyViewModels/DeweyCreateViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Open_School_Library.Models.DeweyViewModels
{
public class DeweyCreateViewModel
{
}
}
| mit | C# | |
48f08868b757ed9d90bd7e9279a6ff34a135cff2 | add TheFullCountingSort.cs | regeldso/hrank | Algorithms/Sorting/TheFullCountingSort.cs | Algorithms/Sorting/TheFullCountingSort.cs | using System;
using System.Collections;
using System.Text;
class Solution
{
static void Main(String[] args)
{
int n = Convert.ToInt32(Console.ReadLine());
int[] ar_val = new int[n];
int[] ar_n = new int[n];
string[] ar_str = new string[n];
for (int i = 0; i < n; i++)
... | mit | C# | |
4502f860dd9596618f4d3af6f60a092f2884c170 | Remove Culture info | bradur/TiledSharp,marshallward/TiledSharp,WaveEngine/TiledSharp,miaodadao/TiledSharp | src/AssemblyInfo.cs | src/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("TiledSharp")]
[assembly: AssemblyDescription("Tiled TMX parsing library")]
[assembly: AssemblyCon... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("TiledSharp")]
[assembly: AssemblyDescription("Tiled TMX parsing library")]
[assembly: AssemblyCon... | apache-2.0 | C# |
ecef7ae87524b7a7c2663a86ae56f46b2aaf7af9 | Add Q240 | txchen/localleet | csharp/Q240_SearchA2DMatrixII.cs | csharp/Q240_SearchA2DMatrixII.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
// Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
//
// Integers in each row are sorted in ascending from left to right.
// ... | mit | C# | |
4de2c90c263dc5f0f4b5e461aac3b992d87548b5 | Add missing ClusterStateInfo.cs | gayancc/elasticsearch-net,SeanKilleen/elasticsearch-net,junlapong/elasticsearch-net,alanprot/elasticsearch-net,robrich/elasticsearch-net,alanprot/elasticsearch-net,LeoYao/elasticsearch-net,ststeiger/elasticsearch-net,CSGOpenSource/elasticsearch-net,faisal00813/elasticsearch-net,wawrzyn/elasticsearch-net,NickCraver/NEST... | src/Nest/Enums/ClusterStateInfo.cs | src/Nest/Enums/ClusterStateInfo.cs | using System;
namespace Nest
{
[Flags]
public enum ClusterStateInfo
{
All = 0,
ExcludeNodes = 1 << 1,
ExcludeRoutingTable = 1 << 2,
ExcludeMetadata = 1 << 3,
ExcludeBlocks = 1 << 4
}
}
| apache-2.0 | C# | |
d4798abe963b1aeab9e059027871f9cdebe0d927 | bump version | ermshiperete/GitVersion,openkas/GitVersion,DanielRose/GitVersion,ParticularLabs/GitVersion,RaphHaddad/GitVersion,alexhardwicke/GitVersion,Philo/GitVersion,TomGillen/GitVersion,GitTools/GitVersion,onovotny/GitVersion,ParticularLabs/GitVersion,anobleperson/GitVersion,Kantis/GitVersion,JakeGinnivan/GitVersion,gep13/GitVer... | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("GitFlowVersion")]
[assembly: AssemblyProduct("GitFlowVersion")]
[assembly: AssemblyVersion("0.1.1")]
[assembly: AssemblyFileVersion("0.1.1")]
| using System.Reflection;
[assembly: AssemblyTitle("GitFlowVersion")]
[assembly: AssemblyProduct("GitFlowVersion")]
[assembly: AssemblyVersion("0.1.0")]
[assembly: AssemblyFileVersion("0.1.0")]
| mit | C# |
9c86abea84ae5584aeb9e412fcf0604ff0792828 | Liste des compétiteurs | angegar/CDI-WebApplication,angegar/CDI-WebApplication,angegar/CDI-WebApplication | KarateIsere/KarateIsere/Areas/Private/Views/Competitions/Details.cshtml | KarateIsere/KarateIsere/Areas/Private/Views/Competitions/Details.cshtml | @model IEnumerable<KarateIsere.DataAccess.Competiteur>
@{
ViewBag.Title = "Details";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Details</h2>
<p>
@Html.ActionLink("Retour", "Index")
</p>
<table class="table">
<tr>
<th>
Catégorie
</th>
<th>
@Html.Di... | apache-2.0 | C# | |
c98d6fbc56aaf9a86e0ebb6fa719b51e962a0fa8 | Add test for construction start and target nodes (#5037) | 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.IntegrationTests/Tests/Construction/ConstructionPrototypeTest.cs | Content.IntegrationTests/Tests/Construction/ConstructionPrototypeTest.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using Content.Shared.Construction.Prototypes;
using NUnit.Framework;
using Robust.Shared.Prototypes;
namespace Content.IntegrationTests.Tests.Construction
{
[TestFixture]
public sealed class ConstructionPrototypeTest : ContentIntegrationTest
{... | mit | C# | |
6e6922bc81ed0197ee638d3ed924cf2b2a4e03f9 | Add empty LightupGenerator | DotNetAnalyzers/StyleCopAnalyzers | StyleCop.Analyzers/StyleCop.Analyzers.CodeGeneration/LightupGenerator.cs | StyleCop.Analyzers/StyleCop.Analyzers.CodeGeneration/LightupGenerator.cs | // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
namespace StyleCop.Analyzers.CodeGeneration
{
using Microsoft.CodeAnalysis;
[Generator]
internal sealed class LightupGenerator : ISourceGenera... | mit | C# | |
9f8ad0da2a7d28ae3656176cb513b2406d1e7728 | Create ProblemsProblem142.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | ProblemsProblem142.cs | ProblemsProblem142.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
namespace ProjectEuler.Problems
{
class Problem142
{
private const int upper = 1000000;
private bool IsSquare(long number)
{
return Math.Sqrt(number) % 1 == 0;
}
public void... | mit | C# | |
3f7c57aeb30ac8b4f246f1081696968b955253fe | Add ZoomLock sample | pauldendulk/Mapsui,charlenni/Mapsui,charlenni/Mapsui | Samples/Mapsui.Samples.Common/Maps/Navigation/ZoomLockSample.cs | Samples/Mapsui.Samples.Common/Maps/Navigation/ZoomLockSample.cs | using Mapsui.UI;
using Mapsui.Utilities;
namespace Mapsui.Samples.Common.Maps.Navigation
{
class ZoomLockSample : ISample
{
public string Name => "ZoomLock";
public string Category => "Navigation";
public void Setup(IMapControl mapControl)
{
mapControl.Map = CreateM... | mit | C# | |
56ee8b07107ad58abc83d17ec8dd81a7740421c8 | Create Enemy.cs | highnet/Java-101,highnet/Java-101 | TowerTDAlpha/Enemy.cs | TowerTDAlpha/Enemy.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Enemy : MonoBehaviour {
GameObject pathGameObject;
Transform targetPathNode;
int pathNodeCount = 0;
int maxPathNodes;
public float speed;
float hoverOriginalY;
public int health;
public float ... | mit | C# | |
96ade0e362f0e5d926dda95d42a0447638e25abd | Add test file for FileCallbackResult action | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Shared.UnitTests/ActionResults/FileCallbackResultTests.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Shared.UnitTests/ActionResults/FileCallbackResultTests.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using NUnit.Framework;
using NUnit.Framework.Internal;
using SFA.DAS.CommitmentsV2.Shared.ActionResults;
namespace SFA.DAS.CommitmentsV2.Shared.UnitTests.ActionResults
{
... | mit | C# | |
2b38b477c4a2b6c6ba7b5ad0df16ea005f9e06d5 | Add missing OAuthAuthorizeHandler file. | Tyshark9/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet,AkshayHarshe/arcgis-runtime-samples-dotnet,sharifulgeo/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet,Esri/arcgis-runtime-samples-dotnet,Arc3D/arcgis-runtime-samples-dotnet | src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/Security/OAuthAuthorizeHandler.cs | src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/Security/OAuthAuthorizeHandler.cs | // (c) Copyright ESRI.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Linq;
using System.Windows;
using ... | apache-2.0 | C# | |
7d5e4af926e1df78489f298562fead807bd7365c | Add missing generated file | RazorGenerator/RazorGenerator,wizzardmr42/RazorGenerator,RazorGenerator/RazorGenerator | samples/PrecompiledMvcLibrary/Areas/MyPluggableArea/Views/Foo/Index.generated.cs | samples/PrecompiledMvcLibrary/Areas/MyPluggableArea/Views/Foo/Index.generated.cs | #pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.237
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is rege... | apache-2.0 | C# | |
ae73de5d2d1ed05414cc28d507c33380f20404b8 | add typography razor script | chrismlusk/accuraty-templates,chrismlusk/accuraty-templates | DesktopModules/RazorModules/RazorHost/Scripts/__ASL_ThemeTypography.cshtml | DesktopModules/RazorModules/RazorHost/Scripts/__ASL_ThemeTypography.cshtml | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, <a href="#">labore et dolore magna aliqua</a> enim ad minim veniam sed do eiusmod tempor incididunt ut quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p><strong>Tempore soluta corporis fuga esse atque ratione!</strong>... | mit | C# | |
b5472c6cd7a6cce19c45e0b9e361c96f26502fa3 | Add DownloadFileRequest Class | vik-borisov/TelegramClient | TLSharp.Core/Requests/DownloadFileRequest.cs | TLSharp.Core/Requests/DownloadFileRequest.cs | using System;
using System.IO;
using TeleSharp.TL;
namespace TLSharp.Core.Requests
{
public class DownloadFileRequest : MTProtoRequest
{
private GetFileArgs args = new GetFileArgs();
public TeleSharp.TL.File file;
public DownloadFileRequest(InputFileLocation loc,int offset=0,int limit=... | mit | C# | |
25fadf6093ba3ad6f3bf5a4126d85dd02162926d | add file lost in naming change... | kvr000/spring-net,djechelon/spring-net,yonglehou/spring-net,spring-projects/spring-net,likesea/spring-net,djechelon/spring-net,kvr000/spring-net,likesea/spring-net,spring-projects/spring-net,yonglehou/spring-net,likesea/spring-net,spring-projects/spring-net,dreamofei/spring-net,yonglehou/spring-net,dreamofei/spring-net... | src/Spring/Spring.Messaging.Nms/Messaging/Nms/Support/Destinations/MessageDestinationAccessor.cs | src/Spring/Spring.Messaging.Nms/Messaging/Nms/Support/Destinations/MessageDestinationAccessor.cs | #region License
/*
* Copyright 2002-2006 the original author or 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
... | apache-2.0 | C# | |
cccde201ffd500ffc4c5d3b551f82c246b1376b9 | Fix classifier instantiation | karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderS... | src/Markdown/Editor/Impl/Classification/MdClassifierProvider.cs | src/Markdown/Editor/Impl/Classification/MdClassifierProvider.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Microsoft.Languages.Core.Classification;
using Microsoft.Languages.Edi... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using Microsoft.Languages.Core.Classification;
using Microsoft.Languages.Edi... | mit | C# |
ac0f5dfe430c5efd985443eca04b08a5ea5ad725 | test fix - type on expected exception message | Azure/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,vasant... | src/Microsoft.WindowsAzure.Jobs.Host.UnitTestsSdk1/CloudBlobPathTests.cs | src/Microsoft.WindowsAzure.Jobs.Host.UnitTestsSdk1/CloudBlobPathTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.WindowsAzure.Jobs.Test;
namespace Microsoft.WindowsAzure.Jobs.UnitTestsSdk1
{
[TestClass]
public class CloudBlobPathTests
{
[TestMethod]
public void InvalidContainerName_ShouldThrowFormatException()
... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.WindowsAzure.Jobs.Test;
namespace Microsoft.WindowsAzure.Jobs.UnitTestsSdk1
{
[TestClass]
public class CloudBlobPathTests
{
[TestMethod]
public void InvalidContainerName_ShouldThrowFormatException()
... | mit | C# |
fdf165d226252aedf79e9b86527f036cc3fc671d | add get school tests | mzrimsek/resume-site-api | Test.Integration/ControllerTests/SchoolControllerTests/GetSchoolShould.cs | Test.Integration/ControllerTests/SchoolControllerTests/GetSchoolShould.cs | using Microsoft.AspNetCore.TestHost;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Net;
using System.Net.Http;
using Test.Integration.TestHelpers;
using Web.Models.SchoolModels;
namespace Test.Integration.ControllerTests.SchoolControllerTests
{
[TestClass]
public class GetSchoolShould
{
... | mit | C# | |
9e02798c113bf2d469f0cb4e2a36581bc283e5f9 | Add GetEquipmentByIdQueryHandler | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.BusinessLayer/QueryHandlers/GetEquipmentItemByIdQueryHandler.cs | NinjaHive.BusinessLayer/QueryHandlers/GetEquipmentItemByIdQueryHandler.cs | using System.Collections.Generic;
using System.Linq;
using NinjaHive.Contract.DTOs;
using NinjaHive.Contract.Queries;
using NinjaHive.Core;
using NinjaHive.Domain;
namespace NinjaHive.BusinessLayer.QueryHandlers
{
public class GetEquipmentItemByIdQueryHandler
: IQueryHandler<GetEquipmentItemByIdQuery, Eq... | apache-2.0 | C# | |
882d831912e1438d23e7ef592751fee13ae29944 | remove unused field | Microsoft/PTVS,Microsoft/PTVS,int19h/PTVS,DinoV/PTVS,DinoV/PTVS,Microsoft/PTVS,DinoV/PTVS,int19h/PTVS,Microsoft/PTVS,huguesv/PTVS,DEVSENSE/PTVS,int19h/PTVS,zooba/PTVS,huguesv/PTVS,DinoV/PTVS,Microsoft/PTVS,huguesv/PTVS,DEVSENSE/PTVS,DEVSENSE/PTVS,DinoV/PTVS,zooba/PTVS,zooba/PTVS,Microsoft/PTVS,DinoV/PTVS,zooba/PTVS,zoo... | Python/Product/PythonTools/PythonTools/Intellisense/ExpressionAnalysis.cs | Python/Product/PythonTools/PythonTools/Intellisense/ExpressionAnalysis.cs | // Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// 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
/... | // Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// 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
/... | apache-2.0 | C# |
57bf2ef8e02185bc83501ca28fc5fd76b11e43a0 | Add BuildAction to OAWebPiReference for Dev10 compat w/ publishing to azure | crwilcox/PTVS,juanyaw/PTVS,jkorell/PTVS,ChinaQuants/PTVS,ChinaQuants/PTVS,MetSystem/PTVS,bolabola/PTVS,xNUTs/PTVS,alanch-ms/PTVS,gomiero/PTVS,denfromufa/PTVS,DEVSENSE/PTVS,crwilcox/PTVS,bolabola/PTVS,juanyaw/PTVS,gomiero/PTVS,MetSystem/PTVS,alanch-ms/PTVS,xNUTs/PTVS,juanyaw/PTVS,Microsoft/PTVS,Habatchii/PTVS,fivejjs/PT... | Release/Product/Python/PythonTools/PythonTools/Project/Automation/VSProject/OAWebPiReference.cs | Release/Product/Python/PythonTools/PythonTools/Project/Automation/VSProject/OAWebPiReference.cs | /* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.html file at the root of this distribution.... | /* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.html file at the root of this distribution.... | apache-2.0 | C# |
31902195466badf1d10413536ef575b792c0c1d8 | Add AssemblyInfo.cs | crosswalk-project/crosswalk-extensions-twoinone,crosswalk-project/crosswalk-extensions-twoinone,crosswalk-project/crosswalk-extensions-twoinone | Properties/AssemblyInfo.cs | 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: AssemblyTi... | bsd-3-clause | C# | |
0bc11d681706f2e498f8147e882d5a730e4cd9c0 | Add SendGrid Sender Tests | lukencode/FluentEmail,lukencode/FluentEmail,anthonyvscode/FluentEmail,anthonyvscode/FluentEmail | test/FluentEmail.SendGrid.Tests/SendGridSenderTests.cs | test/FluentEmail.SendGrid.Tests/SendGridSenderTests.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using FluentEmail.Core;
using FluentEmail.Core.Models;
using NUnit.Framework;
namespace FluentEmail.SendGrid.Tests
{
public class SendGridSenderTests
{
const string apiKey = "";
co... | mit | C# | |
d75673405e39840ef9351ebc5a32f2d00dd59d01 | Add DomNode's event support from Alexander Shulgin | kangaroo/monomac,PlayScriptRedux/monomac,dlech/monomac | src/WebKit/DomNode.cs | src/WebKit/DomNode.cs | //
// Copyright 2010, Novell, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
... | apache-2.0 | C# | |
239833aaa0644c5ec54e5fd2197315a4a12a6407 | add SettingsViewModel | ueman/CommitStripReader | CommitStrip/CommitStrip/ViewModels/SettingsViewModel.cs | CommitStrip/CommitStrip/ViewModels/SettingsViewModel.cs | using CommitStrip.Core.Services;
using MvvmCross.Core.ViewModels;
namespace CommitStrip.Core.ViewModels
{
public class SettingsViewModel : BaseViewModel
{
public string Title { get; set; }
public SettingsViewModel(INetworkConnectivityService connectivityService) : base(connectivityService)
... | apache-2.0 | C# | |
fe213ca653ebcd9a643bba85c310820c3be7ad70 | Change VerifyUserToken to use same purpose as GenerateUserToken (#1714) | MisterJames/allReady,bcbeatty/allReady,GProulx/allReady,anobleperson/allReady,chinwobble/allReady,HTBox/allReady,stevejgordon/allReady,dpaquette/allReady,mipre100/allReady,gitChuckD/allReady,binaryjanitor/allReady,VishalMadhvani/allReady,BillWagner/allReady,mipre100/allReady,binaryjanitor/allReady,HamidMosalla/allReady... | AllReadyApp/Web-App/AllReady/Security/Middleware/TokenProtectedResource.cs | AllReadyApp/Web-App/AllReady/Security/Middleware/TokenProtectedResource.cs | using AllReady.Models;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using System.Linq;
using System.Threading.Tasks;
namespace AllReady.Security.Middleware
{
public static class TokenProtectedResourceExtensions
{
// extension method for easy... | using AllReady.Models;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using System.Linq;
using System.Threading.Tasks;
namespace AllReady.Security.Middleware
{
public static class TokenProtectedResourceExtensions
{
// extension method for easy... | mit | C# |
4cfb17bb811aee26ee0663064dbea54756ae208d | add missing Proxy file | korbengr/WiiControlUnity,zodsoft/Unity3d-InputMapper,winalex/Unity3d-InputMapper,winalex/Unity3d-InputMapper,korbengr/WiiControlUnity,zodsoft/Unity3d-InputMapper | Assets/Scripts/ws/winx/platform/Android/ReadWriteListenerProxy.cs | Assets/Scripts/ws/winx/platform/Android/ReadWriteListenerProxy.cs | #if UNITY_ANDROID
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace ws.winx.platform.android
{
public class ReadWriteListenerProxy:AndroidJavaProxy
{
HIDDevice.ReadCallback _readCallback;
HIDDevice.WriteCallback _writeCallback;
... | mit | C# | |
30e6f4ba8bc604c2fc994cb9455dfdb54749ecfe | Add RawKeyFormatter class | ektrah/nsec | src/Cryptography/Formatting/RawKeyFormatter.cs | src/Cryptography/Formatting/RawKeyFormatter.cs | using System;
using System.Diagnostics;
using static Interop.Libsodium;
namespace NSec.Cryptography.Formatting
{
internal class RawKeyFormatter
{
private readonly int _maxKeySize;
private readonly int _minKeySize;
public RawKeyFormatter(
int minKeySize,
int maxK... | mit | C# | |
c27b69470adb9c9497b45603f80dfdf145189a76 | Create TeacherDetailViewModel. | Programazing/Open-School-Library,Programazing/Open-School-Library | src/Open-School-Library/Models/TeacherViewModels/TeacherDetailViewModel.cs | src/Open-School-Library/Models/TeacherViewModels/TeacherDetailViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Open_School_Library.Models.TeacherViewModels
{
public class TeacherDetailViewModel
{
}
}
| mit | C# | |
377d900b03e9672c30c76b36a4770392e8023c44 | upgrade version to 2.1.0 | tangxuehua/equeue,Aaron-Liu/equeue,Aaron-Liu/equeue,tangxuehua/equeue,tangxuehua/equeue,geffzhang/equeue,geffzhang/equeue | src/EQueue/Properties/AssemblyInfo.cs | src/EQueue/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | mit | C# |
38120ba4e22dcd49d3743d977a981ff176c4a1ed | add SamlMessage.cs | elerch/SAML2,alexrster/SAML2 | src/Owin.Security.Saml/SamlMessage.cs | src/Owin.Security.Saml/SamlMessage.cs | namespace Microsoft.IdentityModel.Protocols
{
public class SamlMessage : AuthenticationProtocolMessage
{
}
} | mpl-2.0 | C# | |
a4e1cd98c3fb14cffc3bccef1568a74942ff8c7c | Fix Roslyn dependency | aelij/roslynpad | src/RoslynPad.Roslyn/SignatureHelp/PythiaSignatureHelpProviderImplementation.cs | src/RoslynPad.Roslyn/SignatureHelp/PythiaSignatureHelpProviderImplementation.cs | using System.Collections.Immutable;
using System.Composition;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.ExternalAccess.Pythia.Api;
namespace RoslynPad.Roslyn.SignatureHelp
{
[Export(typeof(IPythiaSig... | apache-2.0 | C# | |
e09c531404318fe32cae8197d99a2b40c1da2771 | Add two more guids to IntegerDataTypeModel identified from the Cultiv Razor Examples project | countrywide/Umbraco-CMS,dampee/Umbraco-CMS,iahdevelop/Umbraco-CMS,romanlytvyn/Umbraco-CMS,neilgaietto/Umbraco-CMS,tcmorris/Umbraco-CMS,kasperhhk/Umbraco-CMS,Tronhus/Umbraco-CMS,gkonings/Umbraco-CMS,abjerner/Umbraco-CMS,robertjf/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,wtct/Umbraco-CMS,hfloyd/Umbraco-CMS,ordepdev/Umbra... | umbraco.MacroEngines.Juno/RazorDataTypeModels/IntegerDataTypeModel.cs | umbraco.MacroEngines.Juno/RazorDataTypeModels/IntegerDataTypeModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace umbraco.MacroEngines.RazorDataTypeModels
{
[RazorDataTypeModel("1413afcb-d19a-4173-8e9a-68288d2a73b8", 90)]
[RazorDataTypeModel("f231cd8a-e447-424a-94a4-bc73b11736bb", 90)]
[RazorDataTypeModel("a52c7c1... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace umbraco.MacroEngines.RazorDataTypeModels
{
[RazorDataTypeModel("1413afcb-d19a-4173-8e9a-68288d2a73b8", 90)]
public class IntegerDataTypeModel : IRazorDataTypeModel
{
public bool Init(int Curre... | mit | C# |
72d098edfac372b9b2e68b596b5c75c2b1735bc1 | Create ModelNameHelper.cs | MingLu8/Nancy.WebApi.HelpPages | src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/ModelNameHelper.cs | src/Nancy.WebApi.HelpPages.Demo/HelpPage/ModelDescriptions/ModelNameHelper.cs | using System;
using System.Globalization;
using System.Linq;
using System.Reflection;
namespace WebApplication1.Areas.HelpPage.ModelDescriptions
{
internal static class ModelNameHelper
{
// Modify this to provide custom model name mapping.
public static string GetModelName(Type type)
{
... | mit | C# | |
d5ff0813e78669bb77108493b411979e0268766b | Create tests for builtin operators | escamilla/squirrel | test/test-library/OperatorTests.cs | test/test-library/OperatorTests.cs | using Xunit;
using Squirrel;
using Squirrel.Nodes;
namespace Tests
{
public class EvaluatorTests
{
[Theory]
[InlineData("add", "(add 1 2)", "3")]
[InlineData("block", "(block (add 1 2))", "3")]
[InlineData("def", "(def {x} 1)", "null")]
[InlineData("def", "(block (def {x... | mit | C# | |
4d5af5db35f4b298ab6175e0a5938dd02d76d73d | Add Unit Tests. | ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP | test/DotNetCore.CAP.Test/ConsumerServiceSelectorTest.cs | test/DotNetCore.CAP.Test/ConsumerServiceSelectorTest.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using DotNetCore.CAP.Abstractions;
using DotNetCore.CAP.Internal;
using Microsoft.Extensions.DependencyInjection;
using Xunit;
namespace DotNetCore.CAP.Test
{
public class ConsumerServiceSelectorTest
{
pr... | mit | C# | |
4301244af28d197111aeee8531ebca0d16640d27 | add datamodel for access_token | toofu37/twitter-for-unity | DataModels/Oauth/AccessToken.cs | DataModels/Oauth/AccessToken.cs | using System;
namespace Twity.DataModels.Oauth
{
[Serializable]
public class AccessToken
{
public string token_type;
public string access_token;
}
}
| mit | C# | |
0ba640f1049a3f8e99508702aa01384a53bb5a4a | remove ele | jackzhenguo/leetcode-csharp | Array/Array.Lib/RemoveElementSln.cs | Array/Array.Lib/RemoveElementSln.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Array.Lib
{
public class RemoveElementSln
{
public int RemoveElement(int[] nums, int val)
{
int i = 0; //指向不等于元素val
for (int j = 0; j < nums.Length; j++)
{
... | mit | C# | |
e700b054c76df9e54257a4779904859b7f0aea72 | exit tests | morganwm/reflectionCLI | src/ReflectionCli.Test/Standard/ExitTests.cs | src/ReflectionCli.Test/Standard/ExitTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReflectionCli.Lib.Enums;
using ReflectionCli.Test.HelperServices;
using Xunit;
using static ReflectionCli.extended.ScriptingCommandSet;
namespace ReflectionCli.Test.Services
{
public class ExitTests
{
private r... | mit | C# | |
23683003a33ce3642a08ad04e953958b3a68d523 | Update assembly description | Malgardian/TQVaultAE,NorthFury/TQVaultAE,EtienneLamoureux/TQVaultAE | src/TQVaultAE.GUI/Properties/AssemblyInfo.cs | src/TQVaultAE.GUI/Properties/AssemblyInfo.cs | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="None">
// Copyright (c) Brandon Wallace and Jesse Calhoun. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System;
using Syste... | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="None">
// Copyright (c) Brandon Wallace and Jesse Calhoun. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System;
using Syste... | mit | C# |
4f14a767856b0f770feebff9018566c764311e73 | Add IACT attr | 0xd4d/iced,0xd4d/iced,0xd4d/iced,0xd4d/iced,0xd4d/iced | Iced.UnitTests/IACT.cs | Iced.UnitTests/IACT.cs | using System.Runtime.CompilerServices;
[assembly: IgnoresAccessChecksTo("Iced")]
namespace System.Runtime.CompilerServices {
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
sealed class IgnoresAccessChecksToAttribute : Attribute {
public IgnoresAccessChecksToAttribute(string assemblyName) => Ass... | mit | C# | |
312cc9b1395124d9f539b81dafc2908591907ecb | Create Team.cshtml | Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog | SpaceBlog/SpaceBlog/Views/Home/Team.cshtml | SpaceBlog/SpaceBlog/Views/Home/Team.cshtml | @{
ViewBag.Title = "Team";
}
<h2>@ViewBag.Title</h2>
<h3>@ViewBag.Message</h3>
<div class="col-lg-4 col-sm-6 text-center">
<img class="img-circle img-responsive img-center" src="http://placehold.it/200x200" alt="">
<h3>
Georgi Stoyanov
<small>Job Title</small>
</h3>
<p>What does t... | mit | C# | |
612efd8d73ea4f7017254d7329377a5b03704ab2 | Create Movement_Circling.cs | Tech-Curriculums/101-GameDesign-2D-GameDesign-With-Unity | AngryHipsters/Movement_Circling.cs | AngryHipsters/Movement_Circling.cs | using UnityEngine;
using System.Collections;
public class Movement_Circling : MonoBehaviour
{
float walkDuration = 1.0f;
float timeLeft = 1.0f ;
bool goright=true;
// Update is called once per frame
void Update ()
{
Movement();
}
void Movement() {
if(timeLeft > 0 && goright)
{
transform.Trans... | mit | C# | |
1431191e1ad2ceeff16c51c3f1e3819a013f840a | Add a sample class | Viachaslau-Zinkevich/Template10,callummoffat/Template10,MichaelPetrinolis/Template10,kenshinthebattosai/Template10,GFlisch/Template10,Windows-XAML/Template10,bc3tech/Template10,pekspro/Template10,MichaelPetrinolis/Template10,gsantopaolo/Template10,dkackman/Template10,GFlisch/Template10,SimoneBWS/Template10,kenshintheba... | Samples/ParameterSerializationService/JsonParameterSerializationService.cs | Samples/ParameterSerializationService/JsonParameterSerializationService.cs | using System;
namespace Neusta.Commons.Template10.Utils
{
using System.Text;
using global::Template10.Services.NavigationService;
using Newtonsoft.Json;
public class JsonParameterSerializationService : ParameterSerializationService
{
private volatile Tuple<object, string> lastObject = new Tuple<object, string>... | apache-2.0 | C# | |
beef9405b2f85ac85f835251145e663605df9324 | Create UnparentMe.cs | UnityCommunity/UnityLibrary | Assets/Scripts/Editor/Hierarchy/UnparentMe.cs | Assets/Scripts/Editor/Hierarchy/UnparentMe.cs | // unparents selected gameobject in hierarchy (by moving to grandparents if available)
using UnityEditor;
namespace UnityLibrary
{
public class UnparentMe
{
// https://docs.unity3d.com/ScriptReference/MenuItem.html
// shift U shortcut key
[MenuItem("GameObject/Unparent #u")]
st... | mit | C# | |
64573799b170da5ddeea0e191c533010e0df6d53 | Create FibonacciProduct.cs | Zephyr-Koo/sololearn-challenge | FibonacciProduct.cs | FibonacciProduct.cs | using System;
using System.Collections.Generic;
using System.Linq;
// https://www.sololearn.com/Discuss/697164/?ref=app
namespace SoloLearn
{
class Program
{
static void Main(string[] zephyr_koo)
{
var numberList = new List<ulong> { 1, 2 }; // starting case (ulong == UInt64)
... | apache-2.0 | C# | |
9e6b39b2d0f1b23404dca92885b859b8823b097f | Test de création de classe | Fauth/memory | Memory/ClassTest.cs | Memory/ClassTest.cs | using System;
public class Class1
{
public Class1()
{
//test
}
}
| mit | C# | |
41126d549c70ad1e0a4b3a0836c147f7e4a30fd9 | add git implementation | AnthonySteele/NuKeeper,skolima/NuKeeper,NuKeeperDotNet/NuKeeper,AnthonySteele/NuKeeper,NuKeeperDotNet/NuKeeper,skolima/NuKeeper,AnthonySteele/NuKeeper,AnthonySteele/NuKeeper,NuKeeperDotNet/NuKeeper,skolima/NuKeeper,skolima/NuKeeper,NuKeeperDotNet/NuKeeper | NuKeeper/Git/Git.cs | NuKeeper/Git/Git.cs | using System;
using System.Threading.Tasks;
namespace NuKeeper.Git
{
class Git : IGit
{
public Task Pull(Uri pullEndpoint)
{
throw new NotImplementedException();
}
public void Checkout(string branchName)
{
throw new NotImplementedException();
... | apache-2.0 | C# | |
d4eff018b169d163e6d91de54c133c44c0212956 | Add explaining comment to IndexSettingsBuilder. | mbinot/PlainElastic.Net,VirtoCommerce/PlainElastic.Net,Yegoroff/PlainElastic.Net,yonglehou/PlainElastic.Net | src/PlainElastic.Net/Builders/IndexSettings/IndexSettingsBuilder.cs | src/PlainElastic.Net/Builders/IndexSettings/IndexSettingsBuilder.cs | using System;
using PlainElastic.Net.Builders;
using PlainElastic.Net.Utils;
namespace PlainElastic.Net.IndexSettings
{
/// <summary>
/// Allows to build index level settings.
/// see: http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings.html
/// </summary>
pub... | using System;
using PlainElastic.Net.Builders;
using PlainElastic.Net.Utils;
namespace PlainElastic.Net.IndexSettings
{
public class IndexSettingsBuilder
{
private string analysisJson;
/// <summary>
/// The index analysis module acts as a configurable registry of Analyzers
... | mit | C# |
377d3b43d4e6cc91cdc5103abe4c11e36be8ee6f | Create BolosAccountTest.cs | litrosqnk/codekata-Bowling-Game | BolosAccountTest.cs | BolosAccountTest.cs | using System;
using PuntuacionBolos;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace bowlingTest
{
[TestClass]
public class BolosAccountTest
{
[TestMethod]
public void TestStrikes()
{
Bolera bolo = new Bolera();
for (int i = 0; i < 10; i++)
... | mit | C# | |
2175f35f501d988ec2b8ffa2e0438cbde373a01d | Create ShopifyCustomCollectionFilterOptions.cs | mooglegiant/ShopifySharp,clement911/ShopifySharp,addsb/ShopifySharp,Yitzchok/ShopifySharp,nozzlegear/ShopifySharp,shajumohamed/ShopifySharp | ShopifySharp/Services/CustomCollection/ShopifyCustomCollectionFilterOptions.cs | ShopifySharp/Services/CustomCollection/ShopifyCustomCollectionFilterOptions.cs | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShopifySharp
{
public class ShopifyCustomCollectionFilterOptions : ShopifyFilterOptions
{
/// <summary>
/// Restrict results to after the specifi... | mit | C# | |
89607d7ad57f41ebbc3029a0de6fad26ef07b4f1 | Create Controls_Player_2D.cs | Tech-Curriculums/101-GameDesign-2D-GameDesign-With-Unity | AngryHipsters/Controls_Player_2D.cs | AngryHipsters/Controls_Player_2D.cs | //This is used for player control
//this script is yet to implement boundaries
using UnityEngine;
using System.Collections;
public class Controls_Player_2D : MonoBehaviour
{
// Update is called once per frame
void Update ()
{
Movement ();
}
void Movement ()
{
if (Input.GetKey (KeyCode.D)) {
... | mit | C# | |
69fe3f1e92b81862116af7280d004e257bd0e55a | tweak IFDEF to handle distinction between NET20 PORTABLE and net40 PORTABLE | net-commons/common-logging,net-commons/common-logging,ajayanandgit/common-logging,xlgwr/common-logging,meixger/common-logging,tablesmit/common-logging,Moily/common-logging | src/Common.Logging.Portable/Logging/Configuration/NameValueCollectionHelper.cs | src/Common.Logging.Portable/Logging/Configuration/NameValueCollectionHelper.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Common.Logging.Configuration
{
#if !PORTABLE || NET20
/// <summary>
/// Helper class for working with NameValueCollection
/// </summary>
public static class NameValueCollectionHelper
{
/// <summary>
/// C... | using System;
using System.Collections.Generic;
using System.Text;
namespace Common.Logging.Configuration
{
/// <summary>
/// Helper class for working with NameValueCollection
/// </summary>
public static class NameValueCollectionHelper
{
/// <summary>
/// Convert a <see cref="Syst... | apache-2.0 | C# |
57b5263ecf9b78534d71e147a7dc152d19cbc4a4 | add bare bones shared example module | OpenSimian/opensimulator,BogusCurry/arribasim-dev,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/opensim-optimizations-wip-extras,rryk/omp-server,OpenSimian/opensimulator,TomDataworks/opensim,rryk/omp-server,ft-/arribasim-dev-extras,RavenB/opensim,rryk/omp-server,TomDataworks/opensim,bravelittlescientist/opensim-performance,... | OpenSim/Region/OptionalModules/Example/BareBonesShared/BareBonesSharedModule.cs | OpenSim/Region/OptionalModules/Example/BareBonesShared/BareBonesSharedModule.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# | |
d8edb176c23116fd2750b27f10e869afac55ea8d | add unit test for ToExpiredFundsDataTable | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerFinance.UnitTests/Extensions/ExpiredFundsExtensionsTests.cs | src/SFA.DAS.EmployerFinance.UnitTests/Extensions/ExpiredFundsExtensionsTests.cs | using System.Data;
using FluentAssertions;
using NUnit.Framework;
using SFA.DAS.EmployerFinance.Extensions;
using SFA.DAS.EmployerFinance.Models.ExpiredFunds;
using SFA.DAS.Testing;
namespace SFA.DAS.EmployerFinance.UnitTests.Extensions
{
[TestFixture]
[Parallelizable]
public class ExpiredFundsExtensionsT... | mit | C# | |
64b99a1c5bec6d4e510b1ac6a4f6c1420dc79be0 | Add TransientStatContainer | BoomaNation/Booma.Stats.Common,BoomaNation/Booma.Stats.Common | src/Booma.Stats.Common/StatContainers/Transient/ImmutableTransientStatsContainer.cs | src/Booma.Stats.Common/StatContainers/Transient/ImmutableTransientStatsContainer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Booma.Stats.Common
{
//The reason this class isn't generic, and trust me I have the wizard skills to create such an amalgation,
//is because I expect the ITransientStatsContainer to eventually have functionality differen... | mit | C# | |
67b652722cc0798032877f2c573bfdc6c5c3e5d7 | Create DraggableEditing.cs | drawcode/labs-unity | gameobjects/DraggableEditing.cs | gameobjects/DraggableEditing.cs | using System;
using System.Collections;
using Engine.Events;
using UnityEngine;
public class DraggableEditing : MonoBehaviour {
public static DraggableEditing Instance;
public Transform grabbed;
public float grabDistance = 10.0f;
public int grabLayerMask;
public Vector3 grabOffset; //delta between... | mit | C# | |
ce2184999b342ac54947938ec71b59d9e6b4782f | Add Q258 | txchen/csharp-leet,txchen/csharp-leet | solutions/Q258.cs | solutions/Q258.cs | public class Solution
{
public int AddDigits(int num)
{
int result = 0;
while (num > 0)
{
result += num % 10;
if (result >= 10)
{
result -= 9;
}
num = num / 10;
}
return result;
}
} | mit | C# | |
691fc49d8c341e38282f3e8a8badaf0fc2a11b27 | Add query object release middleware | Saritasa/SaritasaTools,krasninja/SaritasaTools,krasninja/SaritasaTools | src/Saritasa.Tools.Messages/Queries/PipelineMIddlewares/QueryObjectReleaseMiddleware.cs | src/Saritasa.Tools.Messages/Queries/PipelineMIddlewares/QueryObjectReleaseMiddleware.cs | // Copyright (c) 2015-2016, Saritasa. All rights reserved.
// Licensed under the BSD license. See LICENSE file in the project root for full license information.
namespace Saritasa.Tools.Messages.Queries.PipelineMiddlewares
{
using System;
using Abstractions;
/// <summary>
/// Dispose QueryObject of m... | bsd-2-clause | C# | |
24a8557171ffa18112f6ce621b6eaab61f22d901 | Add ListConverter tests | Carbonfrost/ff-property-trees | test/Carbonfrost.Commons.PropertyTrees.Test/Src/Tests/ListConverterTests.cs | test/Carbonfrost.Commons.PropertyTrees.Test/Src/Tests/ListConverterTests.cs | //
// - ListConverterTests.cs -
//
// Copyright 2014 Carbonfrost Systems, Inc. (http://carbonfrost.com)
//
// 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/lic... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.