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
396cefcd210fac9db350986e32394aa8015f28b7
Implement ClickJacking protection module - This module checks to see if protection against click jacking attacks is disabled for any paths. If the appSettings section of web.config file contains an etry CMSXFrameOptionsExclude, that means that the protection is disabled for the paths specified in the result . https://d...
ChristopherJennings/KInspector,Kentico/KInspector,Kentico/KInspector,ChristopherJennings/KInspector,ChristopherJennings/KInspector,JosefDvorak/KInspector,Kentico/KInspector,ChristopherJennings/KInspector,Kentico/KInspector,JosefDvorak/KInspector,JosefDvorak/KInspector
KInspector.Modules/Modules/Security/ClickJackingModule.cs
KInspector.Modules/Modules/Security/ClickJackingModule.cs
using System; using System.Configuration; using Kentico.KInspector.Core; namespace Kentico.KInspector.Modules { public class ClickJackingModule : IModule { public ModuleMetadata GetModuleMetadata() { return new ModuleMetadata { Name = "ClickJacking Prote...
mit
C#
0fc1d78c20d7e834ad577a47fa2085f9e1dbb30c
Add tests in mirror of regex object and existing string implementation
mjedrzejek/nunit,mjedrzejek/nunit,nunit/nunit,nunit/nunit
src/NUnitFramework/tests/Constraints/RegexConstraintTests.cs
src/NUnitFramework/tests/Constraints/RegexConstraintTests.cs
// *********************************************************************** // Copyright (c) 2020 Charlie Poole // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, inclu...
mit
C#
968ed966363dc19c4cb51a4fcc9aaf9b6725f9d7
Add Matrix4x4.cs
galek/crown,dbartolini/crown,taylor001/crown,mikymod/crown,galek/crown,taylor001/crown,taylor001/crown,mikymod/crown,dbartolini/crown,dbartolini/crown,dbartolini/crown,galek/crown,mikymod/crown,taylor001/crown,galek/crown,mikymod/crown
tools/core/math/Matrix4x4.cs
tools/core/math/Matrix4x4.cs
/* * Copyright (c) 2012-2016 Daniele Bartolini and individual contributors. * License: https://github.com/taylor001/crown/blob/master/LICENSE */ using System; namespace Crown { public struct Matrix4x4 { public Vector4 x, y, z, t; public Matrix4x4(Vector4 x, Vector4 y, Vector4 z, Vector4 t) { this.x = ...
mit
C#
ef6522448307ef6bcec4884851fcbd74930f04f8
Make StyledDropDownList properly themed.
jlewin/MatterControl,ddpruitt/MatterControl,tellingmachine/MatterControl,unlimitedbacon/MatterControl,mmoening/MatterControl,CodeMangler/MatterControl,larsbrubaker/MatterControl,CodeMangler/MatterControl,tellingmachine/MatterControl,mmoening/MatterControl,MatterHackers/MatterControl,gregory-diaz/MatterControl,unlimited...
CustomWidgets/StyledDropDownList.cs
CustomWidgets/StyledDropDownList.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MatterHackers.Agg; using MatterHackers.Agg.Image; using MatterHackers.Agg.UI; using MatterHackers.Agg.OpenGlGui; using MatterHackers.PolygonMesh; using MatterHackers.RenderOpenGl; using MatterHackers.VectorMath; using MatterHa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using MatterHackers.Agg; using MatterHackers.Agg.Image; using MatterHackers.Agg.UI; using MatterHackers.Agg.OpenGlGui; using MatterHackers.PolygonMesh; using MatterHackers.RenderOpenGl; using MatterHackers.VectorMath; using MatterHa...
bsd-2-clause
C#
c80c0f2fa4eeda5642349ecc26e310f70f1e2873
Add convenience method to update data objects in list.
ZhangLeiCharles/mobile,eatskolnikov/mobile,peeedge/mobile,ZhangLeiCharles/mobile,masterrr/mobile,eatskolnikov/mobile,masterrr/mobile,peeedge/mobile,eatskolnikov/mobile
Phoebe/Data/DataExtensions.cs
Phoebe/Data/DataExtensions.cs
using System; using System.Collections.Generic; using Toggl.Phoebe.Data.DataObjects; namespace Toggl.Phoebe.Data { public static class DataExtensions { /// <summary> /// Checks if the two objects share the same type and primary key. /// </summary> /// <param name="data">Data ob...
using System; using Toggl.Phoebe.Data.DataObjects; namespace Toggl.Phoebe.Data { public static class DataExtensions { /// <summary> /// Checks if the two objects share the same type and primary key. /// </summary> /// <param name="data">Data object.</param> /// <param n...
bsd-3-clause
C#
23966d70e08ea0c8110bb7e85701b1237fc3ce12
Add tests for HkdfSha256 class
ektrah/nsec
tests/Algorithms/HkdfSha256Tests.cs
tests/Algorithms/HkdfSha256Tests.cs
using System; using NSec.Cryptography; using Xunit; namespace NSec.Tests.Algorithms { public static class HkdfSha256Tests { public static readonly TheoryData<string, string, string, string, string> Rfc5869TestVectors = new TheoryData<string, string, string, string, string> { { "0b0b...
mit
C#
75556558ae7e8cbc0e406f41fdb5ba419fa98e6b
Add Custom Exception classes
rlamasb/Firebase.Xamarin
Auth/FirebaseAuthException.cs
Auth/FirebaseAuthException.cs
using System; using System.Runtime.Serialization; namespace MrQuickie { /* * Sign In Exceptions */ public class FirebaseIncorrectPasswordException : Exception { /// <summary> /// Default constructor /// </summary> public FirebaseIncorrectPasswordException() : base() { } /// <summary> /// Argu...
mit
C#
14f62c0528b0ef9c49bda1e29c166ad37825b2ae
Add GeoRegionClient class
FinVamp1/AppLensV2,FinVamp1/AppLensV2,FinVamp1/AppLensV2,FinVamp1/AppLensV2,ShekharGupta1988/AppLensV2,ShekharGupta1988/AppLensV2,ShekharGupta1988/AppLensV2,ShekharGupta1988/AppLensV2
AppLensV2/Helpers/GeoRegionClient.cs
AppLensV2/Helpers/GeoRegionClient.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; using System.Web; namespace AppLensV2 { public sealed class GeoRegionClient { private const string...
mit
C#
c5324b4dc39173bd97437e16ae51072f912400a4
Create implementation for Inspectors InspectorStartup
zanetdev/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Protot...
src/Glimpse.Agent.Web/Framework/InspectorsInspectorStartup.cs
src/Glimpse.Agent.Web/Framework/InspectorsInspectorStartup.cs
using System.Collections.Generic; namespace Glimpse.Agent.Web { public class InspectorsInspectorStartup : IInspectorStartup { private readonly IEnumerable<IInspector> _inspectors; public InspectorsInspectorStartup(IInspectorProvider inspectorProvider) { _inspectors = inspe...
mit
C#
d5c9ade63f843995c41cce5c99d8350d4d5eaf38
Add (wrong) MessageModel
gparlakov/chat-teamwork,gparlakov/chat-teamwork
WS-Team-Work/Chat.Repositories/MessageModel.cs
WS-Team-Work/Chat.Repositories/MessageModel.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Chat.Repositories { public class MessageModel { public int Id { get; set; } public string Content { get; set; } } }
mit
C#
d96ac8bdb4b03dc56489348ea038e1cfbc5798c7
rename neuron factory method
jobeland/NeuralNetwork
NeuralNetwork/NeuralNetwork/Neuron.cs
NeuralNetwork/NeuralNetwork/Neuron.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArtificialNeuralNetwork { [Serializable] public class Neuron : INeuron { private readonly ISoma _soma; private readonly IAxon _axon; private Neuron(ISoma s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArtificialNeuralNetwork { [Serializable] public class Neuron : INeuron { private readonly ISoma _soma; private readonly IAxon _axon; private Neuron(ISoma s...
mit
C#
46eb26332dd37fc8fb5c8f52f11f7f5f217d955f
Add C# unit tests for `values`.
msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline
test/csharp/VecTest.cs
test/csharp/VecTest.cs
using NUnit.Framework; using System.Collections.Generic; using TinySpline; namespace csharp; public class VecTest { [Test] public void TestValuesVec2() { // Given Vec2 vec = new Vec2(1, 2); // When IList<double> values = vec.Values; // Then Assert.That(val...
mit
C#
dfbce2144a5b1544df641a1b770ce1f993f81b34
Add provider for accessing Request Authorizers
peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototy...
src/Glimpse.Web.Common/Framework/IRequestAuthorizerProvider.cs
src/Glimpse.Web.Common/Framework/IRequestAuthorizerProvider.cs
using System.Collections.Generic; namespace Glimpse.Web { public interface IRequestAuthorizerProvider { IEnumerable<IRequestAuthorizer> Authorizers { get; } } }
mit
C#
fc836721244ae2ff3682b731f9013e135eb18c12
Create vol_01.cs
webjug/vol
vol_01.cs
vol_01.cs
unlicense
C#
71fa0da7f4dc1b57700e68277e4fed251b22df71
Add failing test cases
ppy/osu,UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu
osu.Game.Tests/Audio/SampleInfoEqualityTest.cs
osu.Game.Tests/Audio/SampleInfoEqualityTest.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.Audio; namespace osu.Game.Tests.Audio { [TestFixture] public class SampleInfoEqualityTest { [Test] publ...
mit
C#
e584af59bc98b0b51ef89d996072afc3369347b0
Create StatInfo.cs
NinjaVault/NinjaHive,NinjaVault/NinjaHive
NinjaHive.Contract/DTOs/StatInfo.cs
NinjaHive.Contract/DTOs/StatInfo.cs
using System; using System.ComponentModel.DataAnnotations; using NinjaHive.Core.Validations; namespace NinjaHive.Contract.DTOs { public class StatInfo { [NonEmptyGuid] public Guid Id { get; set; } public int Health { get; set; } public int Magic { get; set; } public in...
apache-2.0
C#
f873ecc0344ee42ea32e7741749747cfcf290f4f
Revert "test"
guitarrapc/AzureFunctionsIntroduction
v2/src/AzureFunctionsIntroduction/SasUrlRequestWebhookCSharp.cs
v2/src/AzureFunctionsIntroduction/SasUrlRequestWebhookCSharp.cs
using System; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using AzureFunctionsIntroduction.Features; using Microsoft.Azure.KeyVault; using Microsoft.Azure.KeyVault.Models; using Microsoft.Azure.Services.AppAuthentication; using Microsoft.Azure.WebJobs; using Microsoft.Azure...
mit
C#
ea7a6f1b865c8ab0f59a68945ed037a12ff9b95f
Create Clicks.cs
danesparza/MailChimp.NET,marmind/MailChimp.NET-APIv2
MailChimp/Reports/Clicks.cs
MailChimp/Reports/Clicks.cs
using System.Runtime.Serialization; using System.Collections.Generic; namespace MailChimp.Reports { [DataContract] public class Clicks { /// <summary> ///the url being tracked - urls are tracked individually, so duplicates can exist with vastly different stats /// </summary> ...
mit
C#
c38424369a782fd670f37246c19249fc18df1895
Add AuthProvider.cs
pimanac/RedditSharp,justcool393/RedditSharp-1,Jinivus/RedditSharp,SirCmpwn/RedditSharp,ekaralar/RedditSharpWindowsStore,chuggafan/RedditSharp-1,theonlylawislove/RedditSharp,angelotodaro/RedditSharp,IAmAnubhavSaini/RedditSharp,tomnolan95/RedditSharp,nyanpasudo/RedditSharp,epvanhouten/RedditSharp,CrustyJew/RedditSharp,Ro...
RedditSharp/AuthProvider.cs
RedditSharp/AuthProvider.cs
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Security.Authentication; using System.Text; using Newtonsoft.Json.Linq; namespace RedditSharp { public class AuthProvider { private const string AccessUrl = "https://ssl.reddit.com/api/v1/access_token"; ...
mit
C#
77949a3ef19838aa3e5b370d67659c49d28f87db
Create SerialPortEnum.cs
Armdroid/Armdroid-Tools-Windows
ArmdroidTools/ArmTest/SerialPortEnum.cs
ArmdroidTools/ArmTest/SerialPortEnum.cs
using System; using System.Collections.Generic; using Microsoft.Win32; namespace ArmdroidTools.ArmTest { public class SerialPortEnum { private const string SERIAL_DEVICEMAP_KEY = "HARDWARE\\DEVICEMAP\\SERIALCOMM"; public static string[] AvailablePorts() { List<string> devi...
mit
C#
3c708c67e26a4d64c73232d23c2c2e26f5dbcf8f
Create ResponseMessage.cs
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ResponseMessage.cs
src/Nancy.WebApi.HelpPages.Demo/HelpPage/ResponseMessage.cs
using System; namespace Nancy.WebApi.Help { public class ResponseMessage<T> { private readonly Func<INancyModule, object> _constructResult; public ResponseMessage(Func<INancyModule, object> constructResult) { _constructResult = constructResult; } public dyn...
mit
C#
65707441c8b7ffc97babdd7c576b2af95acbd56e
Fix for System.ArgumentException : Property set method not found on read only properties.
vladen/SolrNet,doss78/SolrNet,mausch/SolrNet,vladen/SolrNet,SolrNet/SolrNet,yonglehou/SolrNet,vmanral/SolrNet,chang892886597/SolrNet,drakeh/SolrNet,chang892886597/SolrNet,SolrNet/SolrNet,vmanral/SolrNet,erandr/SolrNet,vyzvam/SolrNet,doss78/SolrNet,MetSystem/SolrNet,Laoujin/SolrNet,tombeany/SolrNet,mausch/SolrNet,yongle...
SolrNet/Impl/DocumentPropertyVisitors/RegularDocumentVisitor.cs
SolrNet/Impl/DocumentPropertyVisitors/RegularDocumentVisitor.cs
#region license // Copyright (c) 2007-2010 Mauricio Scheffer // // 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 requir...
#region license // Copyright (c) 2007-2010 Mauricio Scheffer // // 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 requir...
apache-2.0
C#
9fe2317649756720032f43570d7127b03d94dd3f
Add example for When failing
critr/Xunit.ScenarioReporting,critr/Xunit.ScenarioReporting,Aardware-Ltd/Xunit.ScenarioReporting,jageall/Xunit.ScenarioReporting,jageall/Xunit.ScenarioReporting,Aardware-Ltd/Xunit.ScenarioReporting
Examples/FailingWhen.cs
Examples/FailingWhen.cs
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Xunit; using Xunit.ScenarioReporting; namespace Examples { public class FailingWhen { [Fact] public Task<ScenarioRunResult> ShouldFail() { return new TestRunner().Run(def ...
mit
C#
ab40249eec8342ac97a6f18ea18de8e8cce8630c
Add AlphaParser
StevenLiekens/Txt,StevenLiekens/TextFx
src/Txt.ABNF/Core/ALPHA/AlphaParser.cs
src/Txt.ABNF/Core/ALPHA/AlphaParser.cs
using Txt.Core; namespace Txt.ABNF.Core.ALPHA { public class AlphaParser : Parser<Alpha, char> { protected override char ParseImpl(Alpha value) { return value.Text[0]; } } }
mit
C#
43f0055dc93e7cd035bd33a612e29961b25625ab
Create missing train describer context factory
tomlane/RailDataEngine,tomlane/RailDataEngine
RailDataEngine.Data.TrainDescriber/TrainDescriberContextFactory.cs
RailDataEngine.Data.TrainDescriber/TrainDescriberContextFactory.cs
using System.Data.Entity.Infrastructure; using RailDataEngine.Data.Common; namespace RailDataEngine.Data.TrainDescriber { public class TrainDescriberContextFactory : IDbContextFactory<TrainDescriberContext> { public TrainDescriberContext Create() { ITrainDescriberDatabase db = new ...
mit
C#
ea77ea4a08757dc77cf2d1470666395efe79f349
Add basic testing of new beatmaps persistence
peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu-new,UselessToucan/osu
osu.Game.Tests/Visual/Editing/TestSceneEditorBeatmapCreation.cs
osu.Game.Tests/Visual/Editing/TestSceneEditorBeatmapCreation.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; using osu.Game.Storyboards; namespace osu.Game.Tests.Visual.Editing...
mit
C#
f5e08b824e3c63a4675100e03471b16c060d860a
Add entity lump test
SteamDatabase/ValveResourceFormat
Tests/EntityLumpTest.cs
Tests/EntityLumpTest.cs
using System; using System.Collections.Generic; using System.IO; using System.Linq; using NUnit.Framework; using ValveResourceFormat; using ValveResourceFormat.ResourceTypes; namespace Tests { [TestFixture] public class EntityLumpTest { [Test] public void TestEntityLump() { ...
mit
C#
055c18fc9063f358de59a682286213d0e33dddb4
Add Q201
txchen/localleet
csharp/Q201_BitwiseANDOfNumbersRange.cs
csharp/Q201_BitwiseANDOfNumbersRange.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. // // For example, given the range [5, 7], you should return 4. // https://leetcode.com/problems/b...
mit
C#
35abfe6cf08278571505edbb021ef038a1a7e848
Add unit tests for binary search and sorting methods.
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
WalletWasabi.Tests/UnitTests/ListExtensionTests.cs
WalletWasabi.Tests/UnitTests/ListExtensionTests.cs
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Text; using Xunit; namespace WalletWasabi.Tests.UnitTests { public class ListExtensionTests { [Fact] public void InsertSorted_Orders_Items_Correctly () { var actual = new List<int>(); actual.InsertSorted(...
mit
C#
78ef377b8777e8c4a375d5f9894fa68c9c06755b
configure prefix not dependent on configure server name
circleback/statsd-csharp-client,diptanu/statsd-csharp-client,agileharbor/telegraf-client,bilal-fazlani/statsd-csharp-client,Pereingo/statsd-csharp-client,diptanu/statsd-csharp-client,DarrellMozingo/statsd-csharp-client,goncalopereira/statsd-csharp-client,Kyle2123/statsd-csharp-client
StatsdClient/Metrics.cs
StatsdClient/Metrics.cs
using System; namespace StatsdClient { public static class Metrics { private static Statsd _statsD; private static string _prefix; public static void Configure(MetricsConfig config) { if (config == null) { throw new ArgumentNullException("config"); } _prefix = config.Pref...
using System; namespace StatsdClient { public static class Metrics { private static Statsd _statsD; private static string _prefix; public static void Configure(MetricsConfig config) { if (config == null) { throw new ArgumentNullException("config"); } if (! string.IsNullOr...
mit
C#
587f6bf0a5ecafd5f6994b5beb10b34211576b49
modify options.
geffzhang/equeue,tangxuehua/equeue,geffzhang/equeue,Aaron-Liu/equeue,tangxuehua/equeue,tangxuehua/equeue,Aaron-Liu/equeue
src/EQueue/Clients/Consumers/ConsumerSettings.cs
src/EQueue/Clients/Consumers/ConsumerSettings.cs
using ECommon.Socketing; namespace EQueue.Clients.Consumers { public class ConsumerSetting { private static ConsumerSetting _default = new ConsumerSetting(); public string BrokerAddress { get; set; } public int BrokerPort { get; set; } public int RebalanceInterval { get; set; ...
using ECommon.Socketing; namespace EQueue.Clients.Consumers { public class ConsumerSetting { private static ConsumerSetting _default = new ConsumerSetting(); public string BrokerAddress { get; set; } public int BrokerPort { get; set; } public int RebalanceInterval { get; set; ...
mit
C#
349c1b87c2719020188f9e03fc1bafc5f45cce8f
Add PositionTextureNormalTangent vertex type.
eylvisaker/AgateLib
AgateLib/Geometry/VertexTypes/PositionTextureNormalTangent.cs
AgateLib/Geometry/VertexTypes/PositionTextureNormalTangent.cs
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; namespace AgateLib.Geometry.VertexTypes { [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct PositionTextureNormalTangent { public Vector3 Position; public Vector2 ...
mit
C#
5b89f0e0b8f7b62fe72b4c892f5ab45041ba9e03
Add example of const interpolated string.
github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql
csharp/ql/test/library-tests/csharp10/ConstInterpolatedString.cs
csharp/ql/test/library-tests/csharp10/ConstInterpolatedString.cs
using System; public class MyConstStringInterpolationClass { public const string hello = "Hello"; public const string helloWorld = $"{hello} World"; public const string reallyHelloWorld = $"Really {helloWorld}"; }
mit
C#
8b9496166e289a8ad051264817e69d32731bab7a
Add TestPlatformIdentifier
Cyberboss/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server
tests/Tgstation.Server.Host.Tests/Core/TestPlatformIdentifier.cs
tests/Tgstation.Server.Host.Tests/Core/TestPlatformIdentifier.cs
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Runtime.InteropServices; namespace Tgstation.Server.Host.Core.Tests { [TestClass] public sealed class TestPlatformIdentifier { [TestMethod] public void TestCorrectPlatform() { var identifier = new PlatformIdentifier(); Assert.AreEqual(Run...
agpl-3.0
C#
108846fabefc31132021ac655a28632c3c7972a7
Add IProvideExpenditureDataProvider contract
xyon1/Expenditure-App
GeneralUseClasses/Contracts/IProvideExpenditureDataProvider.cs
GeneralUseClasses/Contracts/IProvideExpenditureDataProvider.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GeneralUseClasses.Services; namespace GeneralUseClasses.Contracts { public interface IProvideExpenditureDataProvider { IProvideExpenditureData GetExpenditureDataProvider(); } }...
apache-2.0
C#
288a89af4dbf933d84aa7e3c6e5a94df54de9df7
Remove Obsolete attribute. bugid: 294
MarimerLLC/csla,jonnybee/csla,JasonBock/csla,jonnybee/csla,jonnybee/csla,MarimerLLC/csla,ronnymgm/csla-light,rockfordlhotka/csla,ronnymgm/csla-light,rockfordlhotka/csla,BrettJaner/csla,JasonBock/csla,BrettJaner/csla,JasonBock/csla,BrettJaner/csla,ronnymgm/csla-light,rockfordlhotka/csla,MarimerLLC/csla
cslalightcs/Csla/Security/CslaIdentity.partial.cs
cslalightcs/Csla/Security/CslaIdentity.partial.cs
using System; using System.Security.Principal; using Csla.Serialization; using System.Collections.Generic; using Csla.Core.FieldManager; using System.Runtime.Serialization; using Csla.Core; namespace Csla.Security { public abstract partial class CslaIdentity : ReadOnlyBase<CslaIdentity>, IIdentity { ...
using System; using System.Security.Principal; using Csla.Serialization; using System.Collections.Generic; using Csla.Core.FieldManager; using System.Runtime.Serialization; using Csla.Core; namespace Csla.Security { public abstract partial class CslaIdentity : ReadOnlyBase<CslaIdentity>, IIdentity { ...
mit
C#
225b56cb2b96f0fa26a4c94465ace6be8cf9e047
Update countingSorter to take a IList<int> instead of int[]
aalhour/C-Sharp-Algorithms,ivandrofly/C-Sharp-Algorithms
Algorithms/Sorting/CountingSorter.cs
Algorithms/Sorting/CountingSorter.cs
using System; using System.Collections.Generic; using Algorithms.Common; namespace Algorithms.Sorting { public static class CountingSorter { public static void CountingSort(this IList<int> collection) { if (collection == null || collection.Count == 0) return; ...
using System; using System.Collections.Generic; using Algorithms.Common; namespace Algorithms.Sorting { public static class CountingSorter { public static void CountingSort(this int[] array) { if (array == null || array.Length == 0) return; // ...
mit
C#
c2381fef4babe04bc121c05c731b470d1e31ebad
Create WebCrawler.cs
Quadrat1c/OpJinx
JinxCrawler/WebCrawler/WebCrawler.cs
JinxCrawler/WebCrawler/WebCrawler.cs
using System; using System.Linq; using System.Collections.Generic; using System.IO; using HtmlAgilityPack; using System.Text.RegularExpressions; namespace OpJinx.Web { public class Crawler { public static void Start() { CrawlSite("http://abovetopsecret.com", "//div[@class='headline'...
mit
C#
fbd24a72cd048d0dc435c670b50009a8133739ca
add niblack and thinning tests
shimat/opencvsharp,shimat/opencvsharp,shimat/opencvsharp
test/OpenCvSharp.Tests/ximgproc/XimgProcTest.cs
test/OpenCvSharp.Tests/ximgproc/XimgProcTest.cs
using System; using System.Collections.Generic; using NUnit.Framework; using OpenCvSharp.XImgProc; namespace OpenCvSharp.Tests.XImgProc { [TestFixture] public class XImgProcTest : TestBase { [Test] public void Thinning() { using (var src = Image("blob/shapes2.png", Imre...
apache-2.0
C#
75d61f40d51d7063af84b5dcc6078d8e51349dcf
Make HandleRef fields private
shimingsg/corefx,wtgodbe/corefx,ravimeda/corefx,wtgodbe/corefx,ptoonen/corefx,shimingsg/corefx,Jiayili1/corefx,ViktorHofer/corefx,Ermiar/corefx,zhenlan/corefx,ptoonen/corefx,Jiayili1/corefx,zhenlan/corefx,BrennanConroy/corefx,mmitche/corefx,ericstj/corefx,wtgodbe/corefx,wtgodbe/corefx,Ermiar/corefx,ptoonen/corefx,Jiayi...
src/Common/src/CoreLib/System/Runtime/InteropServices/HandleRef.cs
src/Common/src/CoreLib/System/Runtime/InteropServices/HandleRef.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. namespace System.Runtime.InteropServices { public struct HandleRef { // ! Do not add or rearrange fi...
// 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. namespace System.Runtime.InteropServices { public struct HandleRef { // ! Do not add or rearrange fi...
mit
C#
407d844190968889cf67cf126970d150c8211057
Use secondary card object
andburn/hs-art-extractor
HearthstoneDisunity/Util/CardObject.cs
HearthstoneDisunity/Util/CardObject.cs
using HearthstoneDisunity.Unity.Objects; using System.Text; namespace HearthstoneDisunity.Util { public class CardObject { public string Name { get; set; } public string PortraitName { get { if (string.IsNullOrWhiteSpace(PortraitPath)) { return null; } else { return Stri...
mit
C#
9f1ff6a48c62bf629b8d71ad5ec316d16580a521
Add codex for mater messages
PyramidTechnologies/netPyramid-RS-232
Apex7000_BillValidator/MasterCodex.cs
Apex7000_BillValidator/MasterCodex.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Apex7000_BillValidator { class MasterCodex { internal enum MasterMessage : int { // Byte0 - bit 0 Accept1 = 1 << 0, Accept2 = 1 << 1, ...
mit
C#
52de2c8853adcfd1f55e3fb8678e1a1a3f6ffc36
Add Q171
txchen/localleet
csharp/Q171_ExcelSheetColumnNumber.cs
csharp/Q171_ExcelSheetColumnNumber.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; // Given a column title as appear in an Excel sheet, return its corresponding column number. // // For example: // // A -> 1 // B -> 2 // C -> 3 // ... // Z -> 26 // AA -> 27 // AB -> 28 // h...
mit
C#
5213bd618054b66b41a511e29098f530e5acacc5
Address potential threading issue when sorting the list, by adding a lock around the sort process.
ronnymgm/csla-light,BrettJaner/csla,jonnybee/csla,MarimerLLC/csla,rockfordlhotka/csla,rockfordlhotka/csla,ronnymgm/csla-light,BrettJaner/csla,MarimerLLC/csla,JasonBock/csla,jonnybee/csla,JasonBock/csla,JasonBock/csla,MarimerLLC/csla,jonnybee/csla,ronnymgm/csla-light,BrettJaner/csla,rockfordlhotka/csla
csla20cs/Csla/Validation/RulesList.cs
csla20cs/Csla/Validation/RulesList.cs
using System; using System.Collections.Generic; namespace Csla.Validation { internal class RulesList { private List<IRuleMethod> _list = new List<IRuleMethod>(); private bool _sorted; private List<string> _dependantProperties; public void Add(IRuleMethod item) { _list.Add(item); _s...
using System; using System.Collections.Generic; namespace Csla.Validation { internal class RulesList { private List<IRuleMethod> _list = new List<IRuleMethod>(); private bool _sorted; private List<string> _dependantProperties; public void Add(IRuleMethod item) { _list.Add(item); _s...
mit
C#
b6dd4581094f557a994f3bcd8ef68833f9ccb28c
Create DrawCameraFrustumGizmos.cs
UnityCommunity/UnityLibrary
Scripts/Editor/Gizmos/DrawCameraFrustumGizmos.cs
Scripts/Editor/Gizmos/DrawCameraFrustumGizmos.cs
using UnityEngine; using UnityEditor; // draws camera frustum lines with Gizmo lines (when camera is not selected) // Usage: add this script into Editor/ folder on your project // WARNING: cam.transform.position does not work, DrawFrustum ignores the value, unity bug? static class DrawCameraFrustumGizmos { [DrawG...
mit
C#
14f0f1779bd78b8af49fbb392beb243c32590fc1
bump version
GeertvanHorrik/Fody,ColinDabritzViewpoint/Fody,Fody/Fody,distantcam/Fody
CommonAssemblyInfo.cs
CommonAssemblyInfo.cs
using System.Reflection; [assembly: AssemblyTitle("Fody")] [assembly: AssemblyProduct("Fody")] [assembly: AssemblyVersion("1.29.4")] [assembly: AssemblyFileVersion("1.29.4")]
using System.Reflection; [assembly: AssemblyTitle("Fody")] [assembly: AssemblyProduct("Fody")] [assembly: AssemblyVersion("1.29.3")] [assembly: AssemblyFileVersion("1.29.3")]
mit
C#
1505d7701510715463abb5a7887a82dd999d3d24
Create server.cs
ahmedkhaled4d/Dot-NET-Projects,ahmedkhaled4d/Dot-NET-Projects,ahmedkhaled4d/C-Projects
client-server/server.cs
client-server/server.cs
using System; using System.Threading; using System.Net; using System.Net.Sockets; using System.Text; namespace server { public class server { ManualResetEvent tcpClientConnected = new ManualResetEvent(false); void ProcessIncomingData(object obj) { TcpClient client = (TcpC...
mit
C#
851c1c8eac90f7ac20b54766493f0f850fd7e7ff
Add enumeration for deep linking types
JeffreyPerplex/Umbraco-CMS,Scott-Herbert/Umbraco-CMS,lingxyd/Umbraco-CMS,mittonp/Umbraco-CMS,Khamull/Umbraco-CMS,markoliver288/Umbraco-CMS,ordepdev/Umbraco-CMS,romanlytvyn/Umbraco-CMS,christopherbauer/Umbraco-CMS,NikRimington/Umbraco-CMS,nvisage-gf/Umbraco-CMS,robertjf/Umbraco-CMS,MicrosoftEdge/Umbraco-CMS,qizhiyu/Umbr...
umbraco/cms/helpers/DeepLinkType.cs
umbraco/cms/helpers/DeepLinkType.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace umbraco.cms.helpers { public enum DeepLinkType { Template, DocumentType, Content, Media, MediaType, XSLT, RazorScript, Css, J...
mit
C#
19be83181f234057d7abdd44064391a834d8314d
Add back missing test scene
peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,ZLima12/osu,peppy/osu-new,ppy/osu,peppy/osu,EVAST9919/osu,UselessToucan/osu,EVAST9919/osu,peppy/osu,2yangk23/osu,ZLima12/osu,smoogipooo/osu,2yangk23/osu,NeoAdonis/osu,johnneijzen/osu,smoogipoo/osu,UselessToucan/osu,johnneijzen/o...
osu.Game.Tests/Visual/Online/TestSceneChatOverlay.cs
osu.Game.Tests/Visual/Online/TestSceneChatOverlay.cs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.ComponentModel; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.C...
mit
C#
2fa7c72c6ad87eab1f56e2a801332b978bb0b48b
Add Base16 tests
ektrah/nsec
tests/Formatting/Base16Tests.cs
tests/Formatting/Base16Tests.cs
using System; using System.Text; using NSec.Cryptography.Formatting; using Xunit; namespace NSec.Tests.Formatting { public static class Base16Tests { [Theory] [InlineData("", "")] [InlineData("f", "66")] [InlineData("fo", "666F")] [InlineData("foo", "666F6F")] [I...
mit
C#
e0b49468e037c0d44f9a3cdffec5e63d9c5efe22
Add tcp client
caronyan/CSharpRecipe
CSharpRecipe/Recipe.Web/TcpClient.cs
CSharpRecipe/Recipe.Web/TcpClient.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Recipe.Web { public class TcpClient { } }
mit
C#
3a9851d68aa41887bf94ea37302de7319ec10393
remove log
algolia/algoliasearch-client-csharp
Algolia.Search.Test/BaseTest.cs
Algolia.Search.Test/BaseTest.cs
using System; using System.Collections.Generic; namespace Algolia.Search.Test { public class BaseTest { public static string _testApplicationID = ""; public static string _testApiKey = ""; public AlgoliaClient _client; public Index _index; public IndexHelper<TestModel> _indexHelper; ...
using System; using System.Collections.Generic; namespace Algolia.Search.Test { public class BaseTest { public static string _testApplicationID = ""; public static string _testApiKey = ""; public AlgoliaClient _client; public Index _index; public IndexHelper<TestModel> _indexHelper; ...
mit
C#
b5a0214ae5e38b223d79140fd0cd48db509d2780
add DefaultCronJobRegistry about Cap Job.
dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap,dotnetcore/CAP
src/Cap.Consistency/Job/CronJobRegistry.Default.cs
src/Cap.Consistency/Job/CronJobRegistry.Default.cs
using System; using System.Collections.Generic; using System.Text; using Cap.Consistency.Infrastructure; using Microsoft.Extensions.Options; namespace Cap.Consistency.Job { public class DefaultCronJobRegistry : CronJobRegistry { private readonly ConsistencyOptions _options; public DefaultCron...
mit
C#
9bd302096de5ce320cf9b09a0ab36236e2a51404
add test for RemoveAll bug
benjamin-hodgson/Sawmill
Sawmill.Tests/ChildrenTests.cs
Sawmill.Tests/ChildrenTests.cs
using Xunit; namespace Sawmill.Tests { public class ChildrenTests { [Fact] public void TestRemoveAll() { { var c = Children.Two(1, 2); Assert.Equal(Children.None<int>(), c.RemoveAll(x => true)); } { var ...
mit
C#
a4d5a01bc6e64694f79581721accb856ca66b779
Add benchmark for DiagnosticSourceSubscriber (#1391)
open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet
test/Benchmarks/Instrumentation/DiagnosticSourceSubscriberBenchmark.cs
test/Benchmarks/Instrumentation/DiagnosticSourceSubscriberBenchmark.cs
// <copyright file="DiagnosticSourceSubscriberBenchmark.cs" company="OpenTelemetry Authors"> // Copyright The OpenTelemetry 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 // // ...
apache-2.0
C#
2e919796d4ae6ade4637783f2855b32911c337ec
Build and publish nuget package
bfriesen/Rock.Core,RockFramework/Rock.Core,peteraritchie/Rock.Core
Rock.Core/Properties/AssemblyInfo.cs
Rock.Core/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: AssemblyTitle("Ro...
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: AssemblyTitle("Ro...
mit
C#
0b4c8b27124214c1a54e5bb148d57ba6cc7046d9
add hotels back
Azure-Samples/search-dotnet-getting-started
DotNetHowToIndexers/Hotel.cs
DotNetHowToIndexers/Hotel.cs
namespace AzureSearch.SDKHowTo { using System; using Microsoft.Azure.Search; using Microsoft.Azure.Search.Models; using Microsoft.Spatial; using Newtonsoft.Json; // The SerializePropertyNamesAsCamelCase attribute is defined in the Azure Search .NET SDK. // It ensures that Pascal-case prope...
mit
C#
806620bdad657597f2f07c2d82e5a8e115ae0417
Add AllMembers example.
StephenCleary/Comparers
test/UnitTests/Examples/AllMembers.cs
test/UnitTests/Examples/AllMembers.cs
using Nito.Comparers; using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Reflection; using System.Text; using Xunit; namespace UnitTests.Examples { public class AllMembers { [Fact] public void BasicTest() { var c1 = new Component ...
mit
C#
64ec14c8c4cb58552dc557f350024f505492b5a9
Add missing IDwellModule interface
rryk/omp-server,M-O-S-E-S/opensim,ft-/arribasim-dev-tests,bravelittlescientist/opensim-performance,QuillLittlefeather/opensim-1,ft-/arribasim-dev-tests,ft-/opensim-optimizations-wip-extras,BogusCurry/arribasim-dev,justinccdev/opensim,allquixotic/opensim-autobackup,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,justinccdev/opensi...
OpenSim/Region/Framework/Interfaces/IDwellModule.cs
OpenSim/Region/Framework/Interfaces/IDwellModule.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#
609e99bad5bac58692a044867b497fb7edc74749
Add C# next-gen snippets for rest/sending-messages
teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snip...
rest/sending-messages/example-1/example-1.5.x.cs
rest/sending-messages/example-1/example-1.5.x.cs
// Download the twilio-csharp library from twilio.com/docs/csharp/install using System; using Twilio; using Twilio.Rest.Api.V2010.Account; using Twilio.Types; using System.Collections.Generic; class Example { static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/console co...
mit
C#
5920541e2b759f7833b2aa7210c5f2a4b79a2cbe
add some tests around the parser state immediately after it has been initialised
damianh/fluent-command-line-parser,ghstahl/fluent-command-line-parser,spzSource/fluent-command-line-parser,EricSB/fluent-command-line-parser
FluentCommandLineParser.Tests/FluentCommandLineParserMSpecTests.cs
FluentCommandLineParser.Tests/FluentCommandLineParserMSpecTests.cs
using Fclp.Tests.Internals; using Machine.Specifications; namespace Fclp.Tests { class FluentCommandLineParserMSpecTests { [Subject(typeof(Fclp.FluentCommandLineParser))] abstract class FluentCommandLineParserTestContext : TestContextBase<Fclp.FluentCommandLineParser> { Establish context = () => ...
using Fclp.Tests.Internals; using Machine.Specifications; namespace Fclp.Tests { class FluentCommandLineParserMSpecTests { [Subject(typeof(Fclp.FluentCommandLineParser))] abstract class FluentCommandLineParserTestContext : TestContextBase<Fclp.FluentCommandLineParser> { Establish context = () => ...
bsd-2-clause
C#
29f72d1ea2369b3df3dad38c9cb8fcd91092675f
Add AssemblyInfo.cs
smarts/log4net.Ext.Json.Serializers
shared/AssemblyInfo.cs
shared/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: AssemblyTitle("lo...
mit
C#
57a0e1143dd4bbe6b8213c2c910b449199d45016
Add botowner commands
dataccountzXJ9/Lynx
Lynx/Modules/BotOwner.cs
Lynx/Modules/BotOwner.cs
using Discord.Commands; using System; using System.Collections.Generic; using System.Text; using Discord; using Discord.WebSocket; using Discord.Net; using System.Threading.Tasks; using Lynx.Handler; using Lynx.Services.Embed; namespace Lynx.Modules { [RequireOwner] public class BotOwner : ModuleBase { ...
mit
C#
a3c7262f6a939b2970bb118af38c834d9cf8c8c2
Add datadir to ChaumianTumbler
nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet
HiddenWallet.ChaumianTumbler/Global.cs
HiddenWallet.ChaumianTumbler/Global.cs
using HiddenWallet.Helpers; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace HiddenWallet.ChaumianTumbler { public static class Global { private static string _dataDir = null; public static string DataDir { get { if (_dataDir != null) return ...
mit
C#
c551ec24909f2b6b9102d25cd314b97bacc97143
Add encoder extension methods
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
src/Microsoft.AspNet.Http.Extensions/Encoders/EncoderExtensions.cs
src/Microsoft.AspNet.Http.Extensions/Encoders/EncoderExtensions.cs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.AspNet.Http; using Microsoft.Framework.DependencyInjection; namespace Microsoft.AspNet.WebUtilities.Enc...
apache-2.0
C#
7c685c1354772db320b4d0d17d125200f043085f
Add AssemblyInfo.cs to Microsoft.AspNetCore.NodeServices.Sockets package
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
src/Microsoft.AspNetCore.NodeServices.Sockets/Properties/AssemblyInfo.cs
src/Microsoft.AspNetCore.NodeServices.Sockets/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; using System.Runtime.CompilerServices; [assembly: AssemblyMetadata("Serviceable", "True")] [assembly: ...
apache-2.0
C#
c2b8dbc88c91eea2330dcadc4bde9fe616ed7f44
Add Extension Methods class that was not added in previous commit.
artemlos/SKGL-Extension-for-dot-NET,SerialKeyManager/SKGL-Extension-for-dot-NET
SKM/ExtensionMethods.cs
SKM/ExtensionMethods.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SKGL { public static class ExtensionMethods { public static bool IsValid(this KeyInformation keyInformation ) { if(keyInformation != null) { return true; ...
bsd-3-clause
C#
7af01674e47f99357904293c746f3e28f9047a87
Add automapping override for account entity
pavel07/Proyecto_MiniTrello,kmiloaguilar/minitrello,pavel07/Proyecto_MiniTrello,kmiloaguilar/minitrello
MiniTrello.Data/AutoMappingOverride/AccountOverride.cs
MiniTrello.Data/AutoMappingOverride/AccountOverride.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FluentNHibernate.Automapping; using FluentNHibernate.Automapping.Alterations; using FluentNHibernate.Mapping; using MiTrello.Domain.Entities; namespace MiniTrello.Data.AutoMappingOverride { pu...
mit
C#
965d4be302d5e28f0b58d9452f15b787ca8d3ffe
Implement Endpoints Repository
cmoussalli/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,cmoussalli/DynThings
DynThings.Data.Repositories/Repositories/EndPointTypesRepository.cs
DynThings.Data.Repositories/Repositories/EndPointTypesRepository.cs
///////////////////////////////////////////////////////////////// // Created by : Caesar Moussalli // // TimeStamp : 10-2-2016 // // Content : Handle EndpointTypes CRUD // // Notes : ...
mit
C#
9b99cc0843f01ea2888fc53a321b928a9af8ce49
Create Parking.cs
SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming,SurgicalSteel/Competitive-Programming
Kattis-Solutions/Parking.cs
Kattis-Solutions/Parking.cs
using System; namespace Parking { class Program { static void Main(string[] args) { int a1, b2, c3; string[] sarr; sarr = Console.ReadLine().Split(' '); int s, e; a1 = int.Parse(sarr[0]); b2 = int.Parse(sarr[1]); ...
mit
C#
acf8106c72fb2403d1cae0c93a4d4e8e7dd0df5d
Update ASM Network version.
jasper-schneider/azure-sdk-for-net,jasper-schneider/azure-sdk-for-net,dasha91/azure-sdk-for-net,AuxMon/azure-sdk-for-net,vladca/azure-sdk-for-net,felixcho-msft/azure-sdk-for-net,Nilambari/azure-sdk-for-net,bgold09/azure-sdk-for-net,felixcho-msft/azure-sdk-for-net,MabOneSdk/azure-sdk-for-net,herveyw/azure-sdk-for-net,po...
src/ServiceManagement/Network/NetworkManagement/Properties/AssemblyInfo.cs
src/ServiceManagement/Network/NetworkManagement/Properties/AssemblyInfo.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 applicable la...
// // 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 applicable la...
apache-2.0
C#
d8af20cf7bdf2014041c135eec4dfba5073a774a
Define 'Array.Clear' for byte arrays
jonathanvdc/flame-llvm,jonathanvdc/flame-llvm,jonathanvdc/flame-llvm
stdlib/corlib/Array.cs
stdlib/corlib/Array.cs
namespace System { // TODO: tweak the compiler to make all arrays implement 'System.Array'. public abstract class Array : Object { public static void Clear(byte[] array, int index, int length) { for (int i = 0; i < length; i++) { array[index + i] = 0; ...
mit
C#
e28afe016a17f5932610d5febd55f291e5c12ede
Add PrincipalCache.
BrettJaner/csla,jonnybee/csla,BrettJaner/csla,JasonBock/csla,JasonBock/csla,ronnymgm/csla-light,ronnymgm/csla-light,rockfordlhotka/csla,MarimerLLC/csla,MarimerLLC/csla,jonnybee/csla,ronnymgm/csla-light,rockfordlhotka/csla,jonnybee/csla,rockfordlhotka/csla,MarimerLLC/csla,BrettJaner/csla,JasonBock/csla
cslacs/Csla/Security/PrincipalCache.cs
cslacs/Csla/Security/PrincipalCache.cs
using System; using System.Collections.Generic; using System.Text; using System.Configuration; using System.Security.Principal; namespace Csla.Security { /// <summary> /// Provides a cache for a limited number of /// principal objects at the AppDomain level. /// </summary> public static class Pr...
mit
C#
4526ab0d1d397f5b107e89e437d0eecb95a047a1
update version
codehollow/FeedReader
FeedReader/Properties/AssemblyInfo.cs
FeedReader/Properties/AssemblyInfo.cs
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("FeedReader")] [assembly: AssemblyDescripti...
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("FeedReader")] [assembly: AssemblyDescripti...
mit
C#
31be480b0cbe0ba4ac5c0880ebe9dc9d74bf6dba
Create Program.cs
PUT-PTM/STM32F4_dotNet
Program.cs
Program.cs
using System; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using System.Diagnostics; using Microsoft.SPOT.Hardware.STM32F4; using System.Threading; namespace MFConsoleApplication1 { public class Program { static SPI MySPI = null; public static void TimerCallback(object state) { ...
mit
C#
e7f66b4e84882363b18c5045cfe99a4a9d006171
add component class
ketoo/NFrame,ketoo/NFrame,ketoo/NFrame
NFComm/NFPluginModule/NFIComponent.cs
NFComm/NFPluginModule/NFIComponent.cs
//----------------------------------------------------------------------- // <copyright file="NFIComponent.cs"> // Copyright (C) 2015-2015 lvsheng.huang <https://github.com/ketoo/NFActor> // </copyright> //----------------------------------------------------------------------- using System; using System.Collection...
apache-2.0
C#
2df49eded12d09843d06d6651705cfd21e1b11bf
Add P4Merge diff program
droyad/Assent
src/Assent/Reporters/DiffPrograms/P4MergeDiffProgram.cs
src/Assent/Reporters/DiffPrograms/P4MergeDiffProgram.cs
using System; using System.Collections.Generic; namespace Assent.Reporters.DiffPrograms { public class P4MergeDiffProgram : DiffProgramBase { static P4MergeDiffProgram() { var programFiles = Environment.GetEnvironmentVariable("ProgramFiles"); var x86 = Environment.GetEn...
mit
C#
a89e364e51e3eac7ff26459c9fec1b85f6850316
Create TransformPlus.cs
xxmon/unity
Editor/TransformPlus.cs
Editor/TransformPlus.cs
using UnityEngine; using System.Collections; using UnityEditor; [CustomEditor (typeof(Transform))] public class TransformPlus : Editor { Transform myTarget; float inch = 2.54f; float foot = 30.48f; public override void OnInspectorGUI () { myTarget = (Transform)target; myTarget.localPosition = EditorGUILay...
mit
C#
753f358c8a7f5e7f54dc9d215c7daebf507e8f8d
Create client.cs
ahmedkhaled4d/Dot-NET-Projects,ahmedkhaled4d/C-Projects,ahmedkhaled4d/Dot-NET-Projects
client-server/client.cs
client-server/client.cs
using System; using System.Threading; using System.Net; using System.Net.Sockets; using System.Text; namespace client { class Program { const int NUMBER_OF_THREADS = 2000; void Work(object obj) { IPEndPoint ep = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 5000); ...
mit
C#
3e4fc9dd1ca81a6be8a7c4f8ce4eeef7920ce51f
添加Wpf.Xaml的PopupHelper辅助类,用于解决Popup不跟随窗口的问题
i66soft/osharp-ns20,i66soft/osharp-ns20,i66soft/osharp-ns20,i66soft/osharp-ns20
src/OSharp.Wpf/Xaml/PopupHelper.cs
src/OSharp.Wpf/Xaml/PopupHelper.cs
// ----------------------------------------------------------------------- // <copyright file="PopupHelper.cs" company="OSharp开源团队"> // Copyright (c) 2014-2020 OSharp. All rights reserved. // </copyright> // <site>http://www.osharp.org</site> // <last-editor>郭明锋</last-editor> // <last-date>2020-10-09 1:58</l...
apache-2.0
C#
ffc4b007645683a85dbb57146ce9caf6e9ce6fdc
Generalize and harden ST-sync-context \n\nCommit migrated from https://github.com/dotnet/extensions/commit/247bb34a63a0ef097396cb939189b70e3a12321a
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
src/Shared/test/Shared.Tests/SingleThreadedSynchronizationContext.cs
src/Shared/test/Shared.Tests/SingleThreadedSynchronizationContext.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; using System.Collections.Concurrent; using System.Threading; namespace Microsoft.Extensions.Internal { internal class SingleThreadedS...
apache-2.0
C#
02bce53c3c7ca79f47740328bd2ce400365a99f0
test commit
mikhaelmurmur/RecognizeSumPossibility
SumRecognition/ORANDSolvingAlgorithm.cs
SumRecognition/ORANDSolvingAlgorithm.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SumRecognition { public static class ORANDSolvingAlgorithm { public static string CheckNumbersForSumEquation(string firstNumber, string secondNumber, string sumNumber) ...
mit
C#
89f46478505afc0378f541bdefe8c74184a01a12
Add file resource designer.cs
ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate,ARCNanotech/userAuthenticate
userAuth.cpl/Droid/Resources/Resource.designer.cs
userAuth.cpl/Droid/Resources/Resource.designer.cs
#pragma warning disable 1591 //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerate...
mit
C#
cbfc04900338c89ea4c03ab9249b7bcb9299c197
Create Game.cs
BorisMilkman/PathFinding3D
Unity3d/Scripts/Game.cs
Unity3d/Scripts/Game.cs
using UnityEngine; public class Game : MonoBehaviour { void initialise() { Grid.initialiseInstances(); } void Start () { initialise(); Grid.addInstance("grid", new Vector3(10, 10, 10)); Grid.getGrid("grid").setGridNode(new Vector3(0, 0, 0), GridNode.Type.START); Gr...
mit
C#
9954e9337c7661448376eb5ec125559c3e8ec1b6
Create Display.cs
dotman14/P3_CSharp
Display.cs
Display.cs
using System; namespace P3_oyedotunOyesanmi { public static class Display { public static void GetMenu() { Console.WriteLine("------------ Menu Display ------------"); Console.WriteLine("Option 0) Clear and Load data "); Console.WriteLine("Option 1) Add an it...
mit
C#
ab66d5c6d50065c3666b9ecd0369544d25463753
Create HaiTun_.cs
empso/haoll
HaiTun_.cs
HaiTun_.cs
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("LSharp海豚防封")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProd...
apache-2.0
C#
1e2163f55e0378604ebe2f083a84b1271a8e7f4d
Add a testable realtime multiplayer client
NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,peppy/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,smoogipooo/osu,ppy/osu,peppy/osu
osu.Game/Tests/Visual/RealtimeMultiplayer/TestRealtimeMultiplayerClient.cs
osu.Game/Tests/Visual/RealtimeMultiplayer/TestRealtimeMultiplayerClient.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. #nullable enable using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Game...
mit
C#
d7cfa45b3775a230a963bb97adec40c6221ea650
Add EngineAPI
dbartolini/crown,dbartolini/crown,mikymod/crown,dbartolini/crown,mikymod/crown,mikymod/crown,galek/crown,galek/crown,mikymod/crown,galek/crown,galek/crown,taylor001/crown,taylor001/crown,dbartolini/crown,taylor001/crown,taylor001/crown
tools/core/EngineAPI.cs
tools/core/EngineAPI.cs
/* * Copyright (c) 2012-2016 Daniele Bartolini and individual contributors. * License: https://github.com/taylor001/crown/blob/master/LICENSE */ using System; namespace Crown { public static class EngineAPI { public static string Compile(string type, string name, string platform) { return string.Format(@...
mit
C#
20d87ea9bc7e8c541228712e680a4ef4d6296166
add CmdCommand buildin subcommand
li-rongcheng/CoreCmd
CoreCmd/BuildinCommands/CmdCommand.cs
CoreCmd/BuildinCommands/CmdCommand.cs
using System; using System.Collections.Generic; using System.Text; namespace CoreCmd.BuildinCommands { class CmdCommand { public void DefaultMethod() { this.List(); } public void Add(string dllPath, bool local=false) { var userDir = Environment....
mit
C#
712909996c4a252640230e5c704dd568b7809501
Create DestroyIfNotVisibleBeyondScreenTop.cs
felladrin/unity-scripts,felladrin/unity3d-scripts
DestroyIfNotVisibleBeyondScreenTop.cs
DestroyIfNotVisibleBeyondScreenTop.cs
using UnityEngine; public class DestroyIfNotVisibleBeyondScreenTop : MonoBehaviour { public float HowFarBeyond; float limitPositionY; void Start() { limitPositionY = Camera.main.ScreenToWorldPoint(new Vector2(Screen.width, Screen.height)).y + HowFarBeyond; } void Update() { ...
mit
C#
068557461b5eaf6d1d7566d187d6b8817e0432b5
Add LineFeedParser
StevenLiekens/Txt,StevenLiekens/TextFx
src/Txt.ABNF/Core/LF/LineFeedParser.cs
src/Txt.ABNF/Core/LF/LineFeedParser.cs
using Txt.Core; namespace Txt.ABNF.Core.LF { public class LineFeedParser : Parser<LineFeed, char> { protected override char ParseImpl(LineFeed value) { return value.Text[0]; } } }
mit
C#
d1fa9ee118a98f459fbf93746aed370d95c82697
Add Static Background component
AikenParker/Expanse,LemonLube/Expanse
StandaloneUtility/StaticBackground.cs
StandaloneUtility/StaticBackground.cs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; namespace Expanse { [RequireComponent(typeof(SpriteRenderer))] public class StaticBackground : MonoBehaviour { [SerializeField, HideInInspector] private Transform Transform; [S...
mit
C#
607beed042d28296f173ffc7a71b6da5595ff321
Add benchmarking interface
googlestadia/vsi-lldb,googlestadia/vsi-lldb,googlestadia/vsi-lldb
YetiCommon/ITestBenchmarksRecorder.cs
YetiCommon/ITestBenchmarksRecorder.cs
// Copyright 2021 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
apache-2.0
C#
2e5a45bb5dc229abfc5dc8705a859c944b77a0e9
add is alive api
LykkeCity/bitcoinservice,LykkeCity/bitcoinservice
src/BitcoinApi/Controllers/IsAlive.cs
src/BitcoinApi/Controllers/IsAlive.cs
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace BitcoinApi.Controllers { [Route("api/[controller]")] public class IsAlive : Controller { [HttpGet] public IsAliveResponse Get() { r...
mit
C#
8e6eb5dced9bdf3c03f1ffcb7a4e5e487ed8a6d1
Create QuitClick.cs
MatrixNAN/Unity-Artist-Tools
QuitClick.cs
QuitClick.cs
using UnityEngine; using System.Collections; public class QuitClick : MonoBehaviour { public void QuitOnClick () { Application.Quit(); } }
apache-2.0
C#
0cbf0991c1e2ca481d345a5a46e3f6c43aefebc3
Create RouteCatelog.cshtml
MingLu8/Nancy.WebApi.HelpPages
src/Nancy.WebApi.HelpPages.Demo/Views/RouteCatelog.cshtml
src/Nancy.WebApi.HelpPages.Demo/Views/RouteCatelog.cshtml
<!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8"/> <link href="/Content/css/bootstrap.css" rel="stylesheet" /> <link href="/Content/css/HelpPage.css" rel="stylesheet" /> </head> <body> <div id="body" class="help-page"> <section class="content-wrapper main-content clear-fix"> ...
mit
C#
bc98f628cc5270d2378bb86bb23e59b457a838a5
Add Passing and Failing Async Function Tests
nilproject/NiL.JS,nilproject/NiL.JS,nilproject/NiL.JS
FunctionalTests/AsyncFunctionTests.cs
FunctionalTests/AsyncFunctionTests.cs
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; using NiL.JS.BaseLibrary; using NiL.JS.Core; using NiL.JS.Extensions; namespace FunctionalTests { [TestClass] public class AsyncFunctionTests { [Tes...
bsd-3-clause
C#
80dcfd52b3ed052b35b50a0e3d3b8c8ecd9629e9
Create JoinExtensions.cs
keith-hall/Extensions,keith-hall/Extensions
src/JoinExtensions.cs
src/JoinExtensions.cs
public static class JoinExtensions { public static IEnumerable<Tuple<TLeft, TRight>> LeftJoinEach<TLeft, TRight, TJoin> (this IEnumerable<TLeft> left, IEnumerable<TRight> right, Func<TLeft, TJoin> leftJoinOn, Func<TRight, TJoin> rightJoinOn) { var j = from l in left join r in right on leftJoinOn(l)...
apache-2.0
C#
780c15c49d706d8c061f3b67c3a1b875e256d4cb
add native api client
lvermeulen/ProGet.Net
src/ProGet.Net/Native/ProGetClient.cs
src/ProGet.Net/Native/ProGetClient.cs
using System.Collections.Generic; using System.Threading.Tasks; using Flurl.Http; // ReSharper disable CheckNamespace namespace ProGet.Net { public partial class ProGetClient { private IFlurlClient GetNativeApiClient(string path, object queryParamValues = null) => GetApiClient("/api/json") ...
mit
C#
2d4afa92637498560ccd2481f5a565403b32b7b5
Add new single window mode prototype
larsbrubaker/MatterControl,unlimitedbacon/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,mmoening/MatterControl,larsbrubaker/MatterControl,mmoening/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,mmoening...
MatterControlLib/CustomWidgets/SingleWindowProvider.cs
MatterControlLib/CustomWidgets/SingleWindowProvider.cs
/* Copyright (c) 2018, Lars Brubaker, John Lewin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and...
bsd-2-clause
C#