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
56ec14ee580b507b3cf4f84e3acb598082c8ec85
add MyAudioSource
tatmos/MyAudioSource
MyAudioSource.cs
MyAudioSource.cs
using UnityEngine; using System.Collections; #if UNITY_WEBPLAYER public class MyAudioSource : MonoBehaviour { private AudioSource _Mysource; public AudioSource source { get { return _Mysource; } } public void Awake() { if(_Mysource == null){ _Mysource = gameObject.AddComponent<AudioSource>(); source.ro...
mit
C#
24ad42e9de09159491dd2f53c574759a7463dad9
Create Timer.cs
UnityCommunity/UnityLibrary
Scripts/Helpers/Debug/Timer.cs
Scripts/Helpers/Debug/Timer.cs
// Timer: get time elapsed in milliseconds using UnityEngine; using System.Diagnostics; using Debug = UnityEngine.Debug; namespace UnityLibrary { public class Timer : MonoBehaviour { void Start() { // init and start timer var stopwatch = new Stopwatch(); stop...
mit
C#
7dfac2fd787f081986f7e9865323dcd85a0ef60a
Add assembly info for new project
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
src/Microsoft.Owin.Security.Cookies.Interop/Properties/AssemblyInfo.cs
src/Microsoft.Owin.Security.Cookies.Interop/Properties/AssemblyInfo.cs
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; using System.Resources; [assembly: AssemblyMetadata("Serviceable", "True")] [assembly: NeutralResourcesLanguage("en-us")]
apache-2.0
C#
4357f43d1b36cab47d44a78d9d9a14bbabfdd978
Revert "Fix AssemblyVersion to 3.0.0.1"
EzyWebwerkstaden/n2cms,SntsDev/n2cms,EzyWebwerkstaden/n2cms,VoidPointerAB/n2cms,EzyWebwerkstaden/n2cms,nimore/n2cms,VoidPointerAB/n2cms,SntsDev/n2cms,DejanMilicic/n2cms,SntsDev/n2cms,n2cms/n2cms,nimore/n2cms,nicklv/n2cms,DejanMilicic/n2cms,nicklv/n2cms,DejanMilicic/n2cms,SntsDev/n2cms,nicklv/n2cms,bussemac/n2cms,bussem...
src/Framework/AssemblyVersion.cs
src/Framework/AssemblyVersion.cs
using System.Reflection; // Version information for an assembly consists of the following four values: You can specify all the values or you can default the Revision and Build Numbers by using the '*' as shown below: [assembly: AssemblyVersion("3.0")] [assembly: AssemblyFileVersion("3.0.0.1-beta")]
using System.Reflection; // Version information for an assembly consists of the following four values: You can specify all the values or you can default the Revision and Build Numbers by using the '*' as shown below: [assembly: AssemblyVersion("3.0")] [assembly: AssemblyFileVersion("3.0.0.1")]
lgpl-2.1
C#
a27dd1caede68db2ac0c04c70260e232ad1e288a
Create TT2PrestigeStage.cs
cwesnow/Net_Fiddle
2017Dec/TT2PrestigeStage.cs
2017Dec/TT2PrestigeStage.cs
// https://www.reddit.com/r/TapTitans2/comments/7jbvzg/flipping_a_formula_in_excel/ // Formula posted by: CFMcGhee // Author: cwesnow - CrimsonWolfSage using System; public class Program { public static void Main() { // Input Book of Shadows int BookOfShadows = 750; // Input Desired Relics int Desir...
mit
C#
7321ced9fde3d3d5e7d7bbfa7c53b2b9aab558cd
Test cases for ISteamNews interface
ShaneC/SteamSharp
SteamSharp.TestFramework/ISteamNews.cs
SteamSharp.TestFramework/ISteamNews.cs
using System; using Xunit; using SteamSharp; using System.Net; namespace SteamSharp.TestFramework { public class ISteamNews { [Fact] public void GET_GetNewsForApp_ByUri() { SteamClient client = new SteamClient(); SteamRequest request = new SteamRequest( "ISteamNews/GetNewsForApp/v0002/" ); request.A...
apache-2.0
C#
23d7487bbc09bbe0444dfbd8a9171a31a9525912
add test for b2_list_buckets
NebulousConcept/b2-csharp-client
b2-csharp-client-test/B2.Client/Apis/ListBucketsV1/TestListBucketsV1.cs
b2-csharp-client-test/B2.Client/Apis/ListBucketsV1/TestListBucketsV1.cs
using System; using System.Threading.Tasks; using B2.Client.Apis.AuthorizeAccountV1; using B2.Client.Apis.ListBucketsV1; using B2.Client.Rest; using NUnit.Framework; namespace B2.Client.Test.Apis.ListBucketsV1 { [TestFixture] public class TestListBucketsV1 { [Test] public async Task TestL...
mit
C#
267b7d812c35d8a4fe48212bda8200c6e5c7287f
Add Region property to MatchReference (#314)
Challengermode/RiotSharp,Oucema90/RiotSharp,frederickrogan/RiotSharp,BenFradet/RiotSharp,Shidesu/RiotSharp,florinciubotariu/RiotSharp,oisindoherty/RiotSharp,JanOuborny/RiotSharp,jono-90/RiotSharp
RiotSharp/MatchEndpoint/MatchReference.cs
RiotSharp/MatchEndpoint/MatchReference.cs
using Newtonsoft.Json; using RiotSharp.MatchEndpoint.Enums; using System; namespace RiotSharp.MatchEndpoint { public class MatchReference { /// <summary> /// The ID of the champion played during the match. /// </summary> [JsonProperty("champion")] public long ChampionID...
using Newtonsoft.Json; using RiotSharp.MatchEndpoint.Enums; using System; namespace RiotSharp.MatchEndpoint { public class MatchReference { /// <summary> /// The ID of the champion played during the match. /// </summary> [JsonProperty("champion")] public long ChampionID...
mit
C#
cf0015ede96fb94b4dad7ad0b3ec813e816cc40f
add zone for UnitTesing subsystem (#1212)
JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity
resharper/resharper-unity/src/Rider/UnitTesting/IUnityUnitTestingZone.cs
resharper/resharper-unity/src/Rider/UnitTesting/IUnityUnitTestingZone.cs
using JetBrains.Application.BuildScript.Application.Zones; using JetBrains.ReSharper.UnitTestFramework; namespace JetBrains.ReSharper.Plugins.Unity.Rider.UnitTesting { [ZoneDefinition] [ZoneDefinitionConfigurableFeature("Exploration for UnityTests", "Support for [UnityTest] tests", false)] public interface...
apache-2.0
C#
d46d27e91f876b706e1fcbfb5061e186df5e9f25
Add converter
mstrother/BmpListener
src/BmpListener/Serialization/Converters/PathAttributeOriginConverter.cs
src/BmpListener/Serialization/Converters/PathAttributeOriginConverter.cs
using System; using BmpListener.Bgp; using Newtonsoft.Json; namespace BmpListener.Serialization.Converters { public class PathAttributeOriginConverter : JsonConverter { public override bool CanConvert(Type objectType) { return objectType == typeof(PathAttributeOrigin); } ...
mit
C#
08e1904a7e271e01eb6d7cd44ccbd0eea19eb67c
fix deserialisation in the case where the status is Ok but the empty response object is missing
luiseduardohdbackup/SevenDigital.Api.Wrapper,minkaotic/SevenDigital.Api.Wrapper,emashliles/SevenDigital.Api.Wrapper,raoulmillais/SevenDigital.Api.Wrapper,actionshrimp/SevenDigital.Api.Wrapper,knocte/SevenDigital.Api.Wrapper,bettiolo/SevenDigital.Api.Wrapper,danbadge/SevenDigital.Api.Wrapper,danhaller/SevenDigital.Api.W...
src/SevenDigital.Api.Wrapper.Unit.Tests/Deserialisation/User/Payment/DeleteCardTests.cs
src/SevenDigital.Api.Wrapper.Unit.Tests/Deserialisation/User/Payment/DeleteCardTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using NUnit.Framework; using SevenDigital.Api.Schema.Payment; using SevenDigital.Api.Schema.User.Payment; using SevenDigital.Api.Wrapper.Utility.Http; using SevenDigital.Api.Wrapper.Utility.Serialization; namespace...
mit
C#
5dd84eba221696e43d156c31fec7bdbe895ea409
add cs temp
punkieL/proCom,candywater/ProCon,candywater/ProCon,punkieL/proCom,candywater/ProCon,candywater/ProCon,candywater/ProCon,punkieL/proCom,candywater/ProCon,candywater/ProCon,candywater/ProCon,candywater/ProCon
_template/cs.cs
_template/cs.cs
using System.Collections; using System.Collections.Generic; using System; static void Main() { }
mit
C#
ddc25b3cf11b0f1e505109008e1a48c80ac81d72
Add TestServiceCollectionExtensions
tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server,Cyberboss/tgstation-server
tests/Tgstation.Server.Host.Tests/Core/TestServiceCollectionExtensions.cs
tests/Tgstation.Server.Host.Tests/Core/TestServiceCollectionExtensions.cs
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System; namespace Tgstation.Server.Host.Core.Tests { [TestClass] public sealed class TestServiceCollectionExtensions { class GoodConfig { public cons...
agpl-3.0
C#
85c7e8f5eba5505f236e0ab9f08e1dad0a6ed5d9
Create SetInputFieldSelected.cs
UnityCommunity/UnityLibrary
Assets/Scripts/UI/SetInputFieldSelected.cs
Assets/Scripts/UI/SetInputFieldSelected.cs
// sets input field selected (so that can start typing on it) // usage: attach to UI InputField gameobject using UnityEngine; using UnityEngine.UI; namespace UnityLibrary { [RequireComponent(typeof(InputField))] public class SetInputFieldSelected : MonoBehaviour { void Start() { ...
mit
C#
d9d563891b055c963d43fd4c5613260baa7a69d3
Fix README.md code samples
dsolovay/AutoSitecore
src/AutoSitecoreUnitTest/DocumentationTest.cs
src/AutoSitecoreUnitTest/DocumentationTest.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AutoSitecoreUnitTest { class DocumentationTest { } }
mit
C#
47a288927311c13af8d3ec135e8a12eb48e859bc
disable windows by default and add a note about IIS requiring configuration
jbijlsma/IdentityServer4,chrisowhite/IdentityServer4,chrisowhite/IdentityServer4,MienDev/IdentityServer4,jbijlsma/IdentityServer4,IdentityServer/IdentityServer4,jbijlsma/IdentityServer4,chrisowhite/IdentityServer4,MienDev/IdentityServer4,IdentityServer/IdentityServer4,jbijlsma/IdentityServer4,MienDev/IdentityServer4,Id...
src/Host/Quickstart/Account/AccountOptions.cs
src/Host/Quickstart/Account/AccountOptions.cs
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using System; namespace IdentityServer4.Quickstart.UI { public class AccountOptions { public static bool AllowLocalLogin = t...
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using System; namespace IdentityServer4.Quickstart.UI { public class AccountOptions { public static bool AllowLocalLogin = t...
apache-2.0
C#
b126dc44950997afa17a4c0bb6ed3903229ed71e
Update ContextState.cs
IDeliverable/Orchard,bedegaming-aleksej/Orchard,ehe888/Orchard,sfmskywalker/Orchard,jersiovic/Orchard,geertdoornbos/Orchard,hbulzy/Orchard,fassetar/Orchard,ehe888/Orchard,Lombiq/Orchard,aaronamm/Orchard,jtkech/Orchard,hbulzy/Orchard,Lombiq/Orchard,Serlead/Orchard,Dolphinsimon/Orchard,Praggie/Orchard,AdvantageCS/Orchard...
src/Orchard/Environment/State/ContextState.cs
src/Orchard/Environment/State/ContextState.cs
using System; using System.Runtime.Remoting; using System.Runtime.Remoting.Messaging; namespace Orchard.Environment.State { /// <summary> /// Holds some state through the logical call context /// </summary> /// <typeparam name="T">The type of data to store</typeparam> public class ContextState<T> ...
using System; using System.Runtime.Remoting.Messaging; using System.Web; namespace Orchard.Environment.State { /// <summary> /// Holds some state for the current HttpContext or thread /// </summary> /// <typeparam name="T">The type of data to store</typeparam> public class ContextState<T> where T...
bsd-3-clause
C#
e07dab6f1012500901806287565d222ed12f2a1e
Add property Count to ChangedItemsCollection
twsouthwick/poshgit2
src/PoshGit2/Status/ChangedItemsCollection.cs
src/PoshGit2/Status/ChangedItemsCollection.cs
using System.Collections.Generic; using System.Linq; namespace PoshGit2 { public class ChangedItemsCollection { public ChangedItemsCollection() { var empty = new List<string>().AsReadOnly(); Added = empty; Modified = empty; Deleted ...
using System.Collections.Generic; using System.Linq; namespace PoshGit2 { public class ChangedItemsCollection { public ChangedItemsCollection() { var empty = new List<string>().AsReadOnly(); Added = empty; Modified = empty; Deleted ...
mit
C#
be067b02e59f955dbaef3f8510fd737807b604a4
handle case when no account doc exists but vacancies do
SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice
src/SFA.DAS.EAS.Portal.Client/PortalClient.cs
src/SFA.DAS.EAS.Portal.Client/PortalClient.cs
using System.Linq; using System.Threading; using System.Threading.Tasks; using SFA.DAS.EAS.Portal.Client.Application.Queries; using SFA.DAS.EAS.Portal.Client.Services.DasRecruit; using SFA.DAS.EAS.Portal.Client.Types; using StructureMap; namespace SFA.DAS.EAS.Portal.Client { public class PortalClient : IPortalClie...
using System.Linq; using System.Threading; using System.Threading.Tasks; using SFA.DAS.EAS.Portal.Client.Application.Queries; using SFA.DAS.EAS.Portal.Client.Services.DasRecruit; using SFA.DAS.EAS.Portal.Client.Types; using StructureMap; namespace SFA.DAS.EAS.Portal.Client { public class PortalClient : IPortalClie...
mit
C#
a8bb1414708f2aef23e3f40bad63f79fb1558fcf
Create powerpanel.cs
p-blomberg/spaceengineers-ingame-scripts
powerpanel.cs
powerpanel.cs
const String LCD_NAME = "Power Panel"; const String MULTIPLIERS = ".kMGTPEZY"; void Main(string argument) { // Find solar panels. Sum their output. List<IMyTerminalBlock> solars = new List<IMyTerminalBlock>(); GridTerminalSystem.GetBlocksOfType<IMySolarPanel>(solars); String info = ""; // Why can...
bsd-3-clause
C#
ee6d65ed8475bdbacb6c3370c529bac514d8c16e
Add touch event manager
smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework
osu.Framework/Input/TouchEventManager.cs
osu.Framework/Input/TouchEventManager.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.Collections.Generic; using osu.Framework.Graphics; using osu.Framework.Input.Events; using osu.Framework.Input.States; using osuTK; using osuTK.Input; name...
mit
C#
f672f3dd8659c6be24924f5a2df6ebbbd7cdf0a3
Create SimpleObjectFadeInOut.cs
felladrin/unity3d-scripts,felladrin/unity-scripts
SimpleObjectFadeInOut.cs
SimpleObjectFadeInOut.cs
using UnityEngine; using UnityEngine.SceneManagement; public class SimpleObjectFadeInOut : MonoBehaviour { public float Speed = 0.5F; public int TimeInSecondsBeforeStartFadingOut = 1; bool apprearing = true; SpriteRenderer spriteRenderer; Color spriteRendererColor; void Start () { spriteRenderer = gameObjec...
mit
C#
0d58195a77a4a213040ee1a764c96ab434c6c96a
Update QueueConverter.cs
Shidesu/RiotSharp,Challengermode/RiotSharp,frederickrogan/RiotSharp,florinciubotariu/RiotSharp,oisindoherty/RiotSharp,Oucema90/RiotSharp,jono-90/RiotSharp,BenFradet/RiotSharp,JanOuborny/RiotSharp,aktai0/RiotSharp
RiotSharp/Misc/QueueConverter.cs
RiotSharp/Misc/QueueConverter.cs
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Reflection; namespace RiotSharp { class QueueConverter : JsonConverter { public override bool CanConvert(Type objectType) { return typeof(string).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); ...
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Reflection; namespace RiotSharp { class QueueConverter : JsonConverter { public override bool CanConvert(Type objectType) { return typeof(string).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); ...
mit
C#
dbf54ff6946a06e9b83200423866d0e02acb6b27
Add copyright to footer
cake-contrib/Cake.Prca.Website,cake-contrib/Cake.Prca.Website
input/_Footer.cshtml
input/_Footer.cshtml
<p class="text-muted"> Copyright &copy; <a href="http://bbtsoftware.ch" target="_blank">BBT Software AG</a> and <a href="https://github.com/cake-contrib/Cake.Prca/graphs/contributors" target="_blank">contributors</a>. <br/> Website generated by <a href="http://wyam.io" target="_blank">Wyam</a> </p>
mit
C#
b30b4b05df951a1739690f5e8ba94c5b16a4a9f4
Add simple CyclicArray for structures
AikenParker/Expanse,LemonLube/Expanse
StandaloneUtility/CyclicArray.cs
StandaloneUtility/CyclicArray.cs
using System; using System.Collections; using System.Collections.Generic; namespace Expanse { /// <summary> /// Fixed array data structure that cycles the index when adding more elements than the specified size. /// </summary> /// <typeparam name="T">Type of the structure to be contained.</typeparam> ...
mit
C#
c2fdaaa8fccbc016baa6f0af9418afaafa42a9d3
Create KidEntry.cs
fairmat/OpenKID,fairmat/OpenKID
client-sample/c-sharp/Model/KidEntry.cs
client-sample/c-sharp/Model/KidEntry.cs
/// // This file contains utility classes to access easily OpenKID repositories // in order to extract information from them // // LICENCE: // Copyright (c) 2016 Fairmat SRL. // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files // (the "S...
mit
C#
35f886799786dd7571747b15cd3e8c88b55cd9fd
Add exception handling for other input and add comments
kyulee1/coreclr,yizhang82/coreclr,yizhang82/coreclr,poizan42/coreclr,ruben-ayrapetyan/coreclr,wateret/coreclr,AlexGhiondea/coreclr,JosephTremoulet/coreclr,cshung/coreclr,parjong/coreclr,krk/coreclr,AlexGhiondea/coreclr,AlexGhiondea/coreclr,krk/coreclr,poizan42/coreclr,wtgodbe/coreclr,JosephTremoulet/coreclr,cshung/core...
src/mscorlib/shared/System/UnitySerializationHolder.cs
src/mscorlib/shared/System/UnitySerializationHolder.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Runtime.Serialization; using System.Reflection; namespace System { /// <summary> /// Holds Nul...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Runtime.Serialization; using System.Reflection; namespace System { /// <summary> /// Holds Nul...
mit
C#
1977d3cbb01403b4949467dd1fa6e58c13354ead
Add Q203
txchen/localleet
csharp/Q203_RemoveLinkedListElements.cs
csharp/Q203_RemoveLinkedListElements.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Remove all elements from a linked list of integers that have value val. // // Example // Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6 // Return: 1 --> 2 --> 3 --> 4 --> 5 // https://leetcode.com/problems/rem...
mit
C#
21ca44397cf754ec21aec6ccb61d703600bde00d
add dictionary extensions
SorenZ/Alamut.DotNet
src/Alamut.Helpers/Collection/DictionaryExtensions.cs
src/Alamut.Helpers/Collection/DictionaryExtensions.cs
using System.Collections.Generic; namespace Alamut.Helpers.Collection { public static class DictionaryExtensions { /// <summary> /// update the source dic or insert new fields from provided information by newOne /// </summary> /// <typeparam name="TKey"></typeparam> ///...
mit
C#
b416045304f4743d657f20f1e19afa4d6c6e4c2e
Add GetSource and Reader methods to FineFundamental
young-zhang/Lean,JKarathiya/Lean,andrewhart098/Lean,young-zhang/Lean,tomhunter-gh/Lean,andrewhart098/Lean,redmeros/Lean,kaffeebrauer/Lean,tomhunter-gh/Lean,AlexCatarino/Lean,QuantConnect/Lean,squideyes/Lean,AnshulYADAV007/Lean,Jay-Jay-D/LeanSTP,StefanoRaggi/Lean,Phoenix1271/Lean,AnObfuscator/Lean,AlexCatarino/Lean,JKar...
Common/Data/Fundamental/FineFundamental.cs
Common/Data/Fundamental/FineFundamental.cs
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy o...
/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy o...
apache-2.0
C#
80044fcfe8dd212e9587942972f4eb3ce7450244
Set CheckUnexpectedExtensions to lazy load (#162)
RichardHowells/Dnn.Platform,robsiera/Dnn.Platform,bdukes/Dnn.Platform,bdukes/Dnn.Platform,valadas/Dnn.Platform,EPTamminga/Dnn.Platform,EPTamminga/Dnn.Platform,dnnsoftware/Dnn.Platform,mitchelsellers/Dnn.Platform,dnnsoftware/Dnn.Platform,mitchelsellers/Dnn.Platform,mitchelsellers/Dnn.Platform,nvisionative/Dnn.Platform,m...
Extensions/Settings/Dnn.PersonaBar.Security/Components/Checks/CheckUnexpectedExtensions.cs
Extensions/Settings/Dnn.PersonaBar.Security/Components/Checks/CheckUnexpectedExtensions.cs
using System; using System.Collections.Generic; using System.Linq; namespace Dnn.PersonaBar.Security.Components.Checks { public class CheckUnexpectedExtensions : IAuditCheck { public string Id => "CheckUnexpectedExtensions"; public bool LazyLoad => true; public CheckResult Execute() ...
using System; using System.Collections.Generic; using System.Linq; namespace Dnn.PersonaBar.Security.Components.Checks { public class CheckUnexpectedExtensions : IAuditCheck { public string Id => "CheckUnexpectedExtensions"; public bool LazyLoad => false; public CheckResult Execute()...
mit
C#
aa08ecf85474d4ef90471aa75699e4d14608d643
Fix issue with line endings in AddAzureApiManagementApiToProduct
naveedaz/azure-powershell,krkhan/azure-powershell,krkhan/azure-powershell,ClogenyTechnologies/azure-powershell,pankajsn/azure-powershell,AzureAutomationTeam/azure-powershell,krkhan/azure-powershell,AzureAutomationTeam/azure-powershell,rohmano/azure-powershell,pankajsn/azure-powershell,rohmano/azure-powershell,hungmai-m...
src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementApiToProduct.cs
src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementApiToProduct.cs
// // Copyright (c) Microsoft. 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 app...
// // Copyright (c) Microsoft. 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 app...
apache-2.0
C#
ded24a65f8179bdb5c5f2c501c470f56f3791f01
Create BradleyWyatt.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/BradleyWyatt.cs
src/Firehose.Web/Authors/BradleyWyatt.cs
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class BradleyWyatt : IAmACommunityMember { public string FirstName => "Bradley"; public string La...
mit
C#
3b9d633292a75f7338857d00c638b7e50f35c0e6
Create PixelPerfectCamera.cs
UnityCommunity/UnityLibrary
Scripts/2D/Camera/PixelPerfectCamera.cs
Scripts/2D/Camera/PixelPerfectCamera.cs
using UnityEngine; // pixel perfect camera helpers, from old unity 2D tutorial videos [ExecuteInEditMode] public class PixelPerfectCamera : MonoBehaviour { public float pixelsToUnits = 100; void Start () { GetComponent<Camera>().orthographicSize = Screen.height / pixelsToUnits / 2; } }
mit
C#
8cf8c4eb02b4b537d806ea9078df7bef835647f5
Add SafeWait (anti dead lock)
lerthe61/Snippets,lerthe61/Snippets
dotNet/Tasks/SafeWait.cs
dotNet/Tasks/SafeWait.cs
Task.Run(() => this.FunctionAsync()).Wait();
unlicense
C#
654cfd4a4794e54ced02ccff37be1cd744579bc9
Add missing TypeExtensions file
sharpdx/SharpDX,andrewst/SharpDX,sharpdx/SharpDX,andrewst/SharpDX,waltdestler/SharpDX,waltdestler/SharpDX,sharpdx/SharpDX,mrvux/SharpDX,mrvux/SharpDX,waltdestler/SharpDX,waltdestler/SharpDX,andrewst/SharpDX,mrvux/SharpDX
Source/SharpDX/Reflection/TypeExtensions.cs
Source/SharpDX/Reflection/TypeExtensions.cs
using System.Collections.Generic; #if BEFORE_NET45 // Copyright (c) 2010-2017 SharpDX - Alexandre Mutel // // 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...
mit
C#
61446401e74ab6e2eb9183934fb99e616181befc
change the version to 3.2.3
SpectraLogic/ds3_net_sdk,rpmoore/ds3_net_sdk,rpmoore/ds3_net_sdk,RachelTucker/ds3_net_sdk,SpectraLogic/ds3_net_sdk,shabtaisharon/ds3_net_sdk,rpmoore/ds3_net_sdk,SpectraLogic/ds3_net_sdk,shabtaisharon/ds3_net_sdk,shabtaisharon/ds3_net_sdk,RachelTucker/ds3_net_sdk,RachelTucker/ds3_net_sdk
VersionInfo.cs
VersionInfo.cs
/* * ****************************************************************************** * Copyright 2014-2016 Spectra Logic 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. A copy of the License i...
/* * ****************************************************************************** * Copyright 2014-2016 Spectra Logic 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. A copy of the License i...
apache-2.0
C#
698f80a964c65d423505cc6c9237d68f9fa9bb2c
Implement CartSpecs to Control Specification
MrWooJ/WJStore
WJStore.Domain/Entities/Specifications/CartSpecs/CartCountShouldBeGreaterThanZeroSpec.cs
WJStore.Domain/Entities/Specifications/CartSpecs/CartCountShouldBeGreaterThanZeroSpec.cs
using WJStore.Domain.Interfaces.Validation; namespace WJStore.Domain.Entities.Specifications.CartSpecs { public class CartCountShouldBeGreaterThanZeroSpec : ISpecification<Cart> { public bool IsSatisfiedBy(Cart cart) { return cart.Count > 0; } } }
mit
C#
bfe80b06179ec2886da1c6818eadfcd96740e62d
Add missing properties of LogEntry
jerriep/auth0.net,auth0/auth0.net,jerriep/auth0.net,auth0/auth0.net,jerriep/auth0.net
src/Auth0.ManagementApi/Models/LogEntry.cs
src/Auth0.ManagementApi/Models/LogEntry.cs
using System; using Newtonsoft.Json; namespace Auth0.ManagementApi.Models { /// <summary> /// Information about a log entry /// </summary> public class LogEntry { /// <summary> /// The unique identifier for the log entry /// </summary> [JsonProperty("_id")] ...
using System; using Newtonsoft.Json; namespace Auth0.ManagementApi.Models { /// <summary> /// Information about a log entry /// </summary> public class LogEntry { /// <summary> /// The unique identifier for the log entry /// </summary> [JsonProperty("_id")] ...
mit
C#
5876e68efaae79c1b76ada607544a170ff293f8f
Add Q198
txchen/localleet
csharp/Q198_HouseRobber.cs
csharp/Q198_HouseRobber.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security s...
mit
C#
22bcf2cddc2db7d1f1ebd4c1e67efd904efcb937
add ForwardingApp unit tests
johnbeisner/cli,dasMulli/cli,ravimeda/cli,livarcocc/cli-1,svick/cli,dasMulli/cli,blackdwarf/cli,blackdwarf/cli,ravimeda/cli,ravimeda/cli,EdwardBlair/cli,blackdwarf/cli,svick/cli,EdwardBlair/cli,livarcocc/cli-1,svick/cli,livarcocc/cli-1,dasMulli/cli,Faizan2304/cli,harshjain2/cli,johnbeisner/cli,harshjain2/cli,EdwardBlai...
test/dotnet-msbuild.Tests/GivenForwardingApp.cs
test/dotnet-msbuild.Tests/GivenForwardingApp.cs
using System; using System.Collections.Generic; using System.Text; using Xunit; using FluentAssertions; using Microsoft.DotNet.Tools.Test.Utilities; namespace Microsoft.DotNet.Cli { public class GivenForwardingApp { [WindowsOnlyFact] public void DotnetExeIsExecuted() { new ...
mit
C#
2dd88f73d980b292409f003dcf68e38ea1578050
Create DLV.cs
etormadiv/njRAT_0.7d_Stub_ReverseEngineering
j_csharp/OK/DLV.cs
j_csharp/OK/DLV.cs
//Reversed by Etor Madiv public static void DLV(string n) { try { F.Registry.CurrentUser.OpenSubKey(System.String.Concat("Software\\", RG), true).DeleteValue(n); } catch(Exception) { } }
unlicense
C#
486d7b4dfdf6a5b23075af0999f788a742764c1e
Fix log FieldValueFactorModifier
elastic/elasticsearch-net,TheFireCookie/elasticsearch-net,elastic/elasticsearch-net,TheFireCookie/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/elasticsearch-net,CSGOpenSource/elasticsearch-net,TheFireCookie/elasticsearch-net,adam-mccoy/elasticsearch-net,adam-mccoy/elasticsearch-net,CSGOpenSource/elastic...
src/Nest/QueryDsl/Compound/FunctionScore/Functions/FieldValue/FieldValueFactorModifier.cs
src/Nest/QueryDsl/Compound/FunctionScore/Functions/FieldValue/FieldValueFactorModifier.cs
using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Nest { [JsonConverter(typeof(StringEnumConverter))] public enum FieldValueFactorModifier { [EnumMember(Value = "none")] None, [EnumMember(Value = "log")] Log, [EnumMember(Value = "log1p")] Log1P, [En...
using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Nest { [JsonConverter(typeof(StringEnumConverter))] public enum FieldValueFactorModifier { [EnumMember(Value = "none")] None, [EnumMember(Value = "count")] Log, [EnumMember(Value = "log1p")] Log1P, [...
apache-2.0
C#
b5bc31ca46a633fa28eb34cfee85adb10e7babe8
Fix for updating sources.
cube-soft/Cube.Core,cube-soft/Cube.Core
Components/Messenger.cs
Components/Messenger.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#
9736b9daf942c407fc380bf7e848104d7ffcc24a
work on Hebb Neuron
Boshchuk/neural_network
HebbNeuron/HebbNeuron/HebbNeuron.cs
HebbNeuron/HebbNeuron/HebbNeuron.cs
using System.Collections.Generic; using System.Linq; namespace HebbNeuron { public class HebbNeuron { public int Weight1 { get; set; } public int Weight2 { get; set; } public int Threshold { get; set; } /// <summary> /// Demostrate work of Neoron /// </summar...
unlicense
C#
04820694f9e54888046809d882693155d688fc43
Add game view
feliwir/openSage,feliwir/openSage
src/OpenSage.Game/Diagnostics/GameView.cs
src/OpenSage.Game/Diagnostics/GameView.cs
using System.Collections.Generic; using System.Numerics; using ImGuiNET; using OpenSage.Input; using OpenSage.Mathematics; using Veldrid; namespace OpenSage.Diagnostics { internal sealed class GameView : DiagnosticView { public override string DisplayName { get; } = "Game View"; public overri...
mit
C#
b4cd40c4447bb3aabc073072565b6b10cc198d86
Fix build
CatenaLogic/RepositoryCleaner
src/RepositoryCleaner.Tests/DummyFacts.cs
src/RepositoryCleaner.Tests/DummyFacts.cs
namespace RepositoryCleaner.Tests { using NUnit.Framework; [TestFixture] public class DummyFacts { [Test] public void DummyTest() { } } }
mit
C#
17ba3f01a8073ccbd513bc99a5c27d3925c28e20
Transform function
gjulianm/Ocell
Library/IEnumerableExtension.cs
Library/IEnumerableExtension.cs
using System; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Ink; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using System.Collections.Generic; namesp...
mpl-2.0
C#
1d8a28b2d7b4e2f848fa91ab697740c0ca212286
implement command line invoking
quwahara/Nana
NanaLib/ILASM/ILASMRunner.cs
NanaLib/ILASM/ILASMRunner.cs
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.IO; namespace Nana.ILASM { public class ILASMRunner { public string ILASMpath; public void DetectILASM() { if (ILASMpath == null) { ILASMpat...
mit
C#
2ad5244ba60387f8909b6ae732608388a9ee62bf
Test really committed.
iskiselev/JSIL,iskiselev/JSIL,hach-que/JSIL,iskiselev/JSIL,hach-que/JSIL,FUSEEProjectTeam/JSIL,hach-que/JSIL,iskiselev/JSIL,FUSEEProjectTeam/JSIL,sq/JSIL,sq/JSIL,FUSEEProjectTeam/JSIL,hach-que/JSIL,sq/JSIL,iskiselev/JSIL,FUSEEProjectTeam/JSIL,FUSEEProjectTeam/JSIL,sq/JSIL,hach-que/JSIL,sq/JSIL
Tests/SimpleTestCases/StructHashCode.cs
Tests/SimpleTestCases/StructHashCode.cs
using System; using System.Collections.Generic; public static class Program { public static void Main (string[] args) { var s1 = new Pair<int, int>(1, 1); var s2 = new Pair<int, int>(1, 1); var s3 = new Pair<int, int>(1, 2); var obj1 = new ClassWithCustomHashCode(1); va...
mit
C#
86bde4b6b253e87fd92ae8026878a4a5128f35cf
Use the correct icon for osu!direct in the toolbar
ZLima12/osu,peppy/osu,johnneijzen/osu,Drezi126/osu,NeoAdonis/osu,NeoAdonis/osu,johnneijzen/osu,naoey/osu,smoogipoo/osu,DrabWeb/osu,EVAST9919/osu,UselessToucan/osu,peppy/osu-new,UselessToucan/osu,peppy/osu,Frontear/osuKyzer,smoogipoo/osu,Nabile-Rahmani/osu,ppy/osu,Damnae/osu,UselessToucan/osu,naoey/osu,smoogipooo/osu,pp...
osu.Game/Overlays/Toolbar/ToolbarDirectButton.cs
osu.Game/Overlays/Toolbar/ToolbarDirectButton.cs
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Allocation; using osu.Game.Graphics; namespace osu.Game.Overlays.Toolbar { internal class ToolbarDirectButton : ToolbarOverlayToggleButt...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Allocation; using osu.Game.Graphics; namespace osu.Game.Overlays.Toolbar { internal class ToolbarDirectButton : ToolbarOverlayToggleButt...
mit
C#
9714c160b21425a5da8ee38602f34df4e1597aa4
Add TokenController
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.WebUI/Controllers/TokenController.cs
src/Diploms.WebUI/Controllers/TokenController.cs
using Diploms.Core; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Security.Principal...
mit
C#
9482ca4335f382e5686ff7aeb588b75bdedd964c
Add kind of database
xin9le/DeclarativeSql
src/DeclarativeSql/DbKind.cs
src/DeclarativeSql/DbKind.cs
namespace DeclarativeSql { /// <summary> /// Represents kind of database. /// </summary> public enum DbKind { /// <summary> /// SQL Server /// </summary> SqlServer = 0, /// <summary> /// MySQL / Amazon Aurora / MariaDB /// </summary> ...
mit
C#
54a4847b637eececf463da14c698d027d0848877
Create MichaelMilitoni.cs
planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell
src/Firehose.Web/Authors/MichaelMilitoni.cs
src/Firehose.Web/Authors/MichaelMilitoni.cs
mit
C#
e022fbb75064bff6e59ada83491f523791731cdb
Add extension for 'GetAll'
pardahlman/akeneo-csharp
Akeneo/Extensions/AkeneoClientExtension.cs
Akeneo/Extensions/AkeneoClientExtension.cs
using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; using Akeneo.Client; using Akeneo.Model; namespace Akeneo.Extensions { public static class AkeneoClientExtensions { public static Task<List<TModel>> GetAllAsync<TModel>(this IAkeneoClient clien...
mit
C#
94fc1231ce8e6143779905896239e88a9eff748f
Fix merge error
AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,AlexanderS...
src/Package/Impl/Documentation/OpenDocumentationCommand.cs
src/Package/Impl/Documentation/OpenDocumentationCommand.cs
using System; using System.Diagnostics; using Microsoft.VisualStudio.R.Package.Commands; namespace Microsoft.VisualStudio.R.Package.Documentation { internal class OpenDocumentationCommand : PackageCommand { private string _url; public OpenDocumentationCommand(Guid group, int id, string url) : ...
using System; <<<<<<< HEAD using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; ======= using System.Diagnostics; >>>>>>> e8f84d926731d276426348f7abea135faeefadda using Microsoft.VisualStudio.R.Package.Commands; namespace Microsoft.VisualStudi...
mit
C#
12e5bf232bec6b77c85a49f1fc00193d6b87bf19
Verify BST property
Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews
ElementsOfProgrammingInterviews/BinaryTrees/bst_property.cs
ElementsOfProgrammingInterviews/BinaryTrees/bst_property.cs
using System; using System.Collections.Generic; using System.Linq; class Node { public int Value { get; set; } public Node Left { get; set; } public Node Right { get; set; } } class Program { static Node Fill(int low, int high) { if (low > high) { return null; } ...
mit
C#
364d932c5cbd0dfd1108b187f493c79102f8102e
Create CursorBehavior.cs
brenpolley/leapmotion-cursorBehaviour
CursorBehavior.cs
CursorBehavior.cs
using UnityEngine; using System.Collections; using System.Collections.Generic; public class CursorBehavior : MonoBehaviour { public int _tickNumber; //number of 'ticks' surrounding the cursor public GameObject _tickTemplate; //tick Sprite public float _disatnceMin; //minimum distance from objects public float _d...
mit
C#
8c95f5277784141df67861794e8bb3f026613502
Add missing core tests.
McNeight/SharpZipLib
tests/Core/Core.cs
tests/Core/Core.cs
using NUnit.Framework; using ICSharpCode.SharpZipLib.Core; namespace ICSharpCode.SharpZipLib.Tests.Core { [TestFixture] public class Core { [Test] public void FilterQuoting() { string[] filters = NameFilter.SplitQuoted(""); Assert.AreEqual(0, filters.Length); filters = NameFilter.SplitQuoted(";...
mit
C#
010323605a42593493ab6c4af9c6e1f9f1f90d8c
Bring TimedExpiryGlyphStore back from the dead
EVAST9919/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework
osu.Framework/IO/Stores/TimedExpiryGlyphStore.cs
osu.Framework/IO/Stores/TimedExpiryGlyphStore.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. // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework....
mit
C#
fdb5608581b538c9d16c0801b7b16600645d0516
Add test fixture for secret splitting
0culus/ElectronicCash
ElectronicCash.Tests/SecretSplittingTests.cs
ElectronicCash.Tests/SecretSplittingTests.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace ElectronicCash.Tests { [TestFixture] class SecretSplittingTests { private static readonly byte[] _message = Helpers.GetBytes("Supersecretmessage"); ...
mit
C#
c0d1e02606a1bb8c26254ba785a6ff8880c94d66
Create Main.cs
neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu/Paiza-POH-MyAnswers,neetsdkasu...
POH7/SantaFuku/Main.cs
POH7/SantaFuku/Main.cs
// Try POH // author: Leonardone @ NEETSDKASU using System; using System.Collections.Generic; using System.Linq; public class Solver { public static void Main() { int x, y, z, n; Ib(Gis(), out x, out y, out z, out n); var xs = Arr(0, x).ToList(); var ys = Arr(0, y).ToList(); foreach...
mit
C#
8421f795a45c62844484f555135dc74dcd386de2
Add ArrayPointer class for creating pointers to fixed-size arrays
whampson/bft-spec,whampson/cascara
Src/WHampson.Cascara/Types/ArrayPointer.cs
Src/WHampson.Cascara/Types/ArrayPointer.cs
#region License /* Copyright (c) 2017 Wes Hampson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
mit
C#
99fb5ec03f0562003dc2528c739e4a00002d3d39
Add a test which shows that the ProjectFile works immutable
mfalda/FAKE,brianary/FAKE,ArturDorochowicz/FAKE,MiloszKrajewski/FAKE,MiloszKrajewski/FAKE,daniel-chambers/FAKE,featuresnap/FAKE,xavierzwirtz/FAKE,mglodack/FAKE,pmcvtm/FAKE,JonCanning/FAKE,mfalda/FAKE,NaseUkolyCZ/FAKE,JonCanning/FAKE,naveensrinivasan/FAKE,yonglehou/FAKE,tpetricek/FAKE,brianary/FAKE,pacificIT/FAKE,Kazark...
src/test/Test.FAKECore/ProjectSystemSpecs.cs
src/test/Test.FAKECore/ProjectSystemSpecs.cs
using Fake.MSBuild; using Machine.Specifications; namespace Test.FAKECore { public class when_checking_for_files { static ProjectSystem.ProjectFile _project; Because of = () => _project = ProjectSystem.ProjectFile.FromFile("ProjectTestFiles/FakeLib.fsproj"); It should_find_the_SpecsRe...
using Fake.MSBuild; using Machine.Specifications; namespace Test.FAKECore { public class when_checking_for_files { static ProjectSystem.ProjectFile _project; Because of = () => _project = ProjectSystem.ProjectFile.FromFile("ProjectTestFiles/FakeLib.fsproj"); It should_find_the_SpecsRe...
apache-2.0
C#
8bfceaf0be3cde0dc48eeddd4c8ff0bd91965382
add e50 with lydia.cs
neutronest/eulerproject-douby,neutronest/eulerproject-douby,neutronest/eulerproject-douby,neutronest/eulerproject-douby,neutronest/eulerproject-douby
e50/50.cs
e50/50.cs
using System; using System.Collections.Generic; using System.Linq; namespace Lydia_么么要玉潇 { public class Test { static void Main() { long ans = 0; init(); for (int i = 0; i < primes_sum.Count; i++) { for (int j = 0; j < i; j++) { ...
mit
C#
f5ead292ce9310ee2c21bba29b3adf6753462338
Add a logging effect to debug
Kerbas-ad-astra/SmokeScreen,sarbian/SmokeScreen
DebugEffect.cs
DebugEffect.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SmokeScreen { [EffectDefinition("DEBUG_EFFECT")] class DebugEffect : EffectBehaviour { public override void OnEvent() { Print(effectName.PadRight(16) + "OnEvent single --------------...
bsd-2-clause
C#
55dad6cf67eaa7113c967b33563890dbca422ce6
Add Clip
Schlechtwetterfront/snipp
Models/Clip.cs
Models/Clip.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.Windows; namespace clipman.Models { public class Clip : INotifyPropertyChanged { public String Content { get; se...
apache-2.0
C#
9a14741856974be767a6f266b431aad9d2487412
Create StarScythe.cs
Minesap/TheMinepack
Items/StarScythe.cs
Items/StarScythe.cs
using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; using Minepack.Items; namespace Minepack.Items.Weapons { public class StarScythe : ModItem { public override void SetDefaults() { item.name = "...
mit
C#
b85b382203042826e02b22ebb0b419fd6da64ca6
add the serializer interface scaffold
bolorundurowb/vCardLib
vCardLib/Interfaces/ISerializer.cs
vCardLib/Interfaces/ISerializer.cs
using System.Collections.Generic; using vCardLib.Models; namespace vCardLib.Interfaces { public interface ISerializer { string AddPhoneNumbers(IEnumerable<PhoneNumber> phoneNumbers); string AddEmailAddresses(IEnumerable<EmailAddress> emailAddresses); string AddAddresses(IEnumerable<A...
mit
C#
97d11781c58b9e4c2da4f5cd0781afd5de70a368
Create BasicAuthMiddleware.cs
am-creations/Owin.BasicAuthenticationMiddleware
BasicAuthMiddleware.cs
BasicAuthMiddleware.cs
using Microsoft.Owin; using System; using System.Net.Http.Headers; using System.Security.Claims; using System.Security.Principal; using System.Text; using System.Threading.Tasks; namespace AMC.Owin { public class BasicAuthMiddleware : OwinMiddleware { public const string AuthMode = "Basic"; ...
apache-2.0
C#
9e95eb963155adff3a79f15eccd7706d54f4e01e
fix build
tom-scott/Unified_Data_API_Client_DotNet,sportingsolutions/SS.Integration.UnifiedDataAPIClient.DotNet,ChrisL89/SS.Integration.UnifiedDataAPIClient.DotNet,sportingsolutions/SS.Integration.UnifiedDataAPIClient.DotNet
CommonAssemblyInfo.cs
CommonAssemblyInfo.cs
using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyProduct("Spin.TradingServices.C2E")] [assembly: AssemblyCompany("Sporting Index Ltd.")] [assembly: AssemblyCopyright("Copyright (c) Sporting Index Ltd. 2011")] [assembly: AssemblyTrad...
using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices;; [assembly: AssemblyProduct("Spin.TradingServices.C2E")] [assembly: AssemblyCompany("Sporting Index Ltd.")] [assembly: AssemblyCopyright("Copyright (c) Sporting Index Ltd. 2011")] [assembly: AssemblyTra...
apache-2.0
C#
656b2754c1d659f06e2f122d8d80631539f751ef
Create ViewArticle.aspx.cs
liamning/BlueCrossStaffPortal
ViewArticle.aspx.cs
ViewArticle.aspx.cs
using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class ViewArticle : System.Web.UI.Page { public System.Text.StringBuilder imageContent = new System.Text.StringBuilder(); protected void Page_Load(object sender, EventArgs e) ...
bsd-2-clause
C#
3a4c0043baa6b4e8bb1be779ff37832d232d8564
Create main.cs
win120a/ACClassRoomUtil,win120a/ACClassRoomUtil
LoginPasswordUtil/C-Sharp-Version/main.cs
LoginPasswordUtil/C-Sharp-Version/main.cs
using System.Diagnostics.Process; namespace ACLoginUtil{ }
apache-2.0
C#
9ab21acbc939ba89a996595a8be484c8fe8dcaaa
Add unit test
huysentruitw/pem-utils
tests/DerConverter.Tests/Asn/DerAsnUtcTime.cs
tests/DerConverter.Tests/Asn/DerAsnUtcTime.cs
using DerConverter.Asn; using NUnit.Framework; using System.Linq; namespace DerConverter.Tests.Asn { [TestFixture] public class DerAsnUtcTimeTests { [Test] public void DerAsnUtcTime_Parse_ShouldDecodeCorrectly() { var data = new byte[] { 0x17...
apache-2.0
C#
cc46fa3cb7af47dc869c0f8aeb03268072fc2b55
Create ServiceProviderCollection.cs
tiksn/TIKSN-Framework
TIKSN.Framework.IntegrationTests/ServiceProviderCollection.cs
TIKSN.Framework.IntegrationTests/ServiceProviderCollection.cs
using Xunit; namespace TIKSN.Framework.IntegrationTests { [CollectionDefinition("ServiceProviderCollection")] public class ServiceProviderCollection : ICollectionFixture<ServiceProviderFixture> { } }
mit
C#
a5026cf1aae8d465499a5281402a716c5c7c7215
Add tests for F.Map
farity/farity
Farity.Tests/MapTests.cs
Farity.Tests/MapTests.cs
using System.Linq; using Xunit; namespace Farity.Tests { public class MapTests { [Fact] public void MapExecutesFunctionsForAllElementsInTheList() { var expected = new[] {"1", "2", "3", "4", "5"}; var source = new[] { 1, 2, 3, 4, 5 }; var actual = F.M...
mit
C#
19d0360bd98b3845594c29da092e609cac8a7c64
Create ConsoleControlChar.cs
cheong00/MSDNDemos,cheong00/MSDNDemos,cheong00/MSDNDemos,cheong00/MSDNDemos
ConsoleControlChar/ConsoleControlChar.cs
ConsoleControlChar/ConsoleControlChar.cs
using System; using System.Runtime.InteropServices; using System.Text; namespace ConsoleControlChar { /// <summary> /// Examle on how to print non-printable character in Console application, /// also how to change font in Console application. /// /// This example will need /unsafe option to compil...
mit
C#
cc5b44e46681eb6b46c6c0fc1109cd5b64dd108b
Add test scene
ppy/osu,smoogipoo/osu,ppy/osu,johnneijzen/osu,NeoAdonis/osu,smoogipoo/osu,2yangk23/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu,peppy/osu,peppy/osu,ppy/osu,peppy/osu,johnneijzen/osu,EVAST9919/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu-new,2yangk23/osu
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModDoubleTime.cs
osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModDoubleTime.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.Rulesets.Osu.Mods; using osu.Game.Rulesets.Scoring; using osu.Game.Scoring; using osu.Game.Tests.Visual; namespace osu.Game.Ruleset...
mit
C#
3105736cda04f0662c35f607576b46b3dc9f0f7f
make base class for boss and mob viewmodels
Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns
TCC.Core/Controls/Npc/NpcViewModel.cs
TCC.Core/Controls/Npc/NpcViewModel.cs
using System; using System.Windows.Threading; using TCC.Data.NPCs; namespace TCC.Controls.NPCs { public class NpcViewModel : TSPropertyChanged { public const uint Delay = 5000; protected readonly DispatcherTimer _deleteTimer; public event Action Disposed; public event Action H...
mit
C#
576bbd8023e58a354cdde7d1dc393f2382716237
Create IPrivacyAudit.cs
saturn72/saturn72
src/Core/Saturn72.Core/Audit/IPrivacyAudit.cs
src/Core/Saturn72.Core/Audit/IPrivacyAudit.cs
using System; namespace Saturn72.Core.Audit { public interface IPrivacyAudit { bool IsPrivate { get; set; } DateTime? SetToPrivateOnUtc { get; set; } long? SetToPrivateByUserId { get; set; } } }
mit
C#
ae999b440afacfedefb2a322a07b727752cf140d
Create Problem26.cs
fireheadmx/ProjectEuler,fireheadmx/ProjectEuler
Problems/Problem26.cs
Problems/Problem26.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Numerics; namespace ProjectEuler.Problems { class Problem26 { private int upper = 1000; private int maxPrecision = 3000; private Sieve s = new Sieve(1000); private int RecurringC...
mit
C#
59b62753ad40dd0fbce520f89b07c3a09f9f09e0
Implement test for client login.
moegirlwiki/Kaleidoscope
test/ActionLibraryTest/Actions/ClientLoginTest.cs
test/ActionLibraryTest/Actions/ClientLoginTest.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using Moegirlpedia.MediaWikiInterop.Actions; using Moegirlpedia.MediaWikiInterop.Actions.Models; using Moegirlpedia.MediaWikiInterop.Actions.QueryProviders; using Moegirlpedia.MediaWikiInterop.Primitives.DependencyInjection; using System; using System.Threading.Tasks...
mit
C#
67d8455bd95c519220c70b17c88338619b75c787
Add new file userAuth.cpl/Droid/Properties/AssemblyInfo.cs
ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl
userAuth.cpl/Droid/Properties/AssemblyInfo.cs
userAuth.cpl/Droid/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.CompilerServices; using Android.App; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("userAuth.cpl.Droid")] [assembly: AssemblyDescription ("")] [assembly: Assembl...
mit
C#
e60fa8b141e10094ade43feeefed7c3fc99f140b
Add unit tests for PaymentLinkClient
Viincenttt/MollieApi,Viincenttt/MollieApi
Mollie.Tests.Unit/Client/PaymentLinkClientTests.cs
Mollie.Tests.Unit/Client/PaymentLinkClientTests.cs
using System; using System.Globalization; using System.Net.Http; using System.Threading.Tasks; using Mollie.Api.Client; using Mollie.Api.Models; using Mollie.Api.Models.List; using Mollie.Api.Models.PaymentLink.Request; using Mollie.Api.Models.PaymentLink.Response; using NUnit.Framework; using RichardSzalay.MockHttp; ...
mit
C#
719c96e88c0ca25cd044b2afd9f0b4202f36e527
Update version to 1.0.0.3
affandar/durabletask,ddobric/durabletask,jasoneilts/durabletask,Azure/durabletask,yonglehou/durabletask
Framework/Properties/AssemblyInfo.cs
Framework/Properties/AssemblyInfo.cs
// ---------------------------------------------------------------------------------- // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www....
// ---------------------------------------------------------------------------------- // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www....
apache-2.0
C#
af6ff34b4dc44bf38e814870bf2b121e3ab5de65
Create DateTimeRange.cs
HerrLoesch/ObjectFiller.NET,blmeyers/ObjectFiller.NET,DoubleLinePartners/ObjectFiller.NET,Tynamix/ObjectFiller.NET
ObjectFiller/Plugins/DateTime/DateTimeRange.cs
ObjectFiller/Plugins/DateTime/DateTimeRange.cs
using System; namespace Tynamix.ObjectFiller { public class DateTimeRange : IRandomizerPlugin<DateTime>, IRandomizerPlugin<DateTime?> { private readonly DateTime _earliestDate; private readonly DateTime _latestDate; public DateTimeRange(DateTime earliestDate) : this(earlies...
mit
C#
e17e24e6307590234d98ae86d641b1bec469be9d
Create hideSetColour.cs
Gytaco/RevitAPI,Gytaco/RevitAPI
Macros/CS/Views/hideSetColour.cs
Macros/CS/Views/hideSetColour.cs
/* This code will hide and set the colours of any elements in yoru active view. There are additional search functionalities I have left in as tags to query and access objects. */ public void hideSetColour() { //sets the variable to the current application Application app = this.Application; //sets the...
mit
C#
217e32eeeb41e078b200f76e341fdc742065d0dd
Add Composite implementation for Indexers
ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton
src/CK.Glouton.Lucene/CompositeIndexer.cs
src/CK.Glouton.Lucene/CompositeIndexer.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CK.Monitoring; namespace CK.Glouton.Lucene { class CompositeIndexer : IIndexer { private List<IIndexer> _indexers; public CompositeIndexer () { _indexe...
mit
C#
4f79211ac9e4254cf0a04809e0fb68dfe65f7094
Create Node.cs
GetSomeBlocks/Score_Soccer,GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soccer,GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soccer,GetSomeBlocks/Score_Soccer,GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soccer,GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soccer,GetSomeBlocks/ServerStatus,GetSomeBlocks/Score_Soc...
GUI/Node.cs
GUI/Node.cs
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Drawing; using Aga.Controls.Tree; namespace OpenHardwareMonitor.GUI { public class Node { private TreeModel treeModel; private Node parent; private NodeCollection nodes; private string text; priva...
mit
C#
903e3ea1991d77bc6494281458b9fdc96b33a949
Add a script for check if we are a tank.
TheNoobCompany/WorldQuestTNB
Profiles/Quester/IsTankScript.cs
Profiles/Quester/IsTankScript.cs
switch (ObjectManager.Me.WowSpecialization()) { case WoWSpecialization.PaladinProtection: case WoWSpecialization.WarriorProtection: case WoWSpecialization.MonkBrewmaster: case WoWSpecialization.DruidGuardian: case WoWSpecialization.DeathknightBlood: return true; default: return false; } // Usage: <ScriptCond...
mit
C#
d15f002dbda5ed715529c310dd0c308ada31cb57
Create DailyScraper.cs
aloisdg/DailyScraper
DailyScraper.cs
DailyScraper.cs
using System; using System.Collections.Generic; using System.Xml; using System.Linq; using System.Xml.Linq; public class Program { public enum CategoryType { Other, Easy, Intermediate, Hard } public class Item { public string Title { get; set; } public string Link { get; set; } public DateTime Dat...
mit
C#
4316f3e4ddb7418def2cf03d8247d2d8f73ad8d9
add a test for code actions
hal-ler/omnisharp-roslyn,ChrisHel/omnisharp-roslyn,hach-que/omnisharp-roslyn,hitesh97/omnisharp-roslyn,sreal/omnisharp-roslyn,nabychan/omnisharp-roslyn,khellang/omnisharp-roslyn,nabychan/omnisharp-roslyn,hach-que/omnisharp-roslyn,david-driscoll/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,sriramgd/omnisharp-roslyn,jtbm3...
tests/OmniSharp.Tests/CodeActionsFacts.cs
tests/OmniSharp.Tests/CodeActionsFacts.cs
#if ASPNET50 using System.Collections.Generic; using System.Threading.Tasks; using OmniSharp.Models; using OmniSharp.Services; using Xunit; namespace OmniSharp.Tests { public class CodingActionsFacts { [Fact] public async Task Can_get_code_actions() { var source = ...
mit
C#
6129b8ca1fae1c35ce44ce97350cc74ba0fae37a
Create Sigmoid.cs
Quadrat1c/OpJinx
Epoch/Network/Sigmoid.cs
Epoch/Network/Sigmoid.cs
using System; namespace Epoch.Network { public static class Sigmoid { public static double Output(double x) { return x < -45.0 ? 0.0 : x > 45.0 ? 1.0 : 1.0 / (1.0 + Math.Exp(-x)); } public static double Derivative(double x) { return x * (1 - x); ...
mit
C#
b98529ab920c8767cf1763713f0b52537a7a6d6e
Create Vector3.Lerp.cs
carcarc/unity3d
Vector3.Lerp.cs
Vector3.Lerp.cs
// Smoothly interpolate between the camera's current position and it's target position. transform.position = Vector3.Lerp (start.position, end.position, Time.deltaTime);
mit
C#
b14a9b65572500861e9082d6310836592b796cce
Create CorrelationID.cs
tiksn/TIKSN-Framework
TIKSN.Core/Integration/Correlation/CorrelationID.cs
TIKSN.Core/Integration/Correlation/CorrelationID.cs
using System; using System.Linq; namespace TIKSN.Integration.Correlation { /// <summary> /// Correlation ID /// </summary> public struct CorrelationID : IEquatable<CorrelationID> { /// <summary> /// Empty Correlation ID. /// </summary> public static readonly Correla...
mit
C#
535697d2b2aef9ac90e17eaad724de87eee18cf5
Add tests for LimitResult and OrderBy when splitting request
ZEISS-PiWeb/PiWeb-Api
src/Api.Rest.Tests/HttpClient/Data/DataServiceRestClientTest.cs
src/Api.Rest.Tests/HttpClient/Data/DataServiceRestClientTest.cs
#region copyright /* * * * * * * * * * * * * * * * * * * * * * * * * */ /* Carl Zeiss Industrielle Messtechnik GmbH */ /* Softwaresystem PiWeb */ /* (c) Carl Zeiss 2021 */ /* * * * * * * * * * * * * * * * * * * * * * * * * */ #endregion namespa...
bsd-3-clause
C#
0c7202fb1d1dd4ff6ac7b79c1171ea5473f3cd52
add missing file
commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs
Domain/ExceptionExtensions.cs
Domain/ExceptionExtensions.cs
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Linq; using System.Reflection; namespace Microsoft.Its.Domain { internal static class ExceptionExtensions { privat...
mit
C#
40d0d65fcddf6ebe369500f9d6957539ef511af9
Create task_1_3_8_2.cs
AndrewTurlanov/ANdrew
task_1_3_8_2.cs
task_1_3_8_2.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { Console.WriteLine("Введите пароль"); string UserPassword = Console.ReadLine(); ...
apache-2.0
C#
78760937b8faf83fc936123d3d073751eace8b54
Add missing file
felipebz/ndapi
Ndapi/PropertyAttribute.cs
Ndapi/PropertyAttribute.cs
using System; namespace Ndapi { internal sealed class PropertyAttribute : Attribute { internal int PropertyId { get; } public PropertyAttribute(int propertyId) { PropertyId = propertyId; } } }
mit
C#
eec9735ec9587e0255a632e8559e1987d8e78e65
Add Polyline helper
tom-englert/TomsToolbox
TomsToolbox.Wpf/XamlExtensions/Polyline.cs
TomsToolbox.Wpf/XamlExtensions/Polyline.cs
namespace TomsToolbox.Wpf.XamlExtensions { using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Media; /// <summary> /// Extensions to properly display a <see cref="System.Windows.Shapes.Polyline"/> in the coordinate...
mit
C#