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 |
|---|---|---|---|---|---|---|---|---|
41fa22183a97f610875bc15edf019baac678077e | Remove NumPages, Total, and LastPageUri from ListBase | twilio/twilio-csharp,IRlyDontKnow/twilio-csharp,mplacona/twilio-csharp | src/Twilio.Api/Model/TwilioListBase.cs | src/Twilio.Api/Model/TwilioListBase.cs | using System;
using System.Collections.Generic;
namespace Twilio
{
/// <summary>
/// Base class for list resource data
/// </summary>
public class TwilioListBase : TwilioBase
{
/// <summary>
/// The current page number. Zero-indexed, so the first page is 0.
/// </summary>
public int Page { get; set; }
/... | using System;
using System.Collections.Generic;
namespace Twilio
{
/// <summary>
/// Base class for list resource data
/// </summary>
public class TwilioListBase : TwilioBase
{
/// <summary>
/// The current page number. Zero-indexed, so the first page is 0.
/// </summary>
public int Page { get; set; }
/... | mit | C# |
aa6faf40efb458808f2acb5117ddf6f642e974b6 | validate the use of the Select extension | Research-Institute/json-api-dotnet-core,Research-Institute/json-api-dotnet-core,json-api-dotnet/JsonApiDotNetCore | test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/SparseFieldSetTests.cs | test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/SparseFieldSetTests.cs | using System.Threading.Tasks;
using DotNetCoreDocs;
using DotNetCoreDocs.Writers;
using JsonApiDotNetCoreExample;
using Xunit;
using Microsoft.EntityFrameworkCore;
using JsonApiDotNetCoreExample.Data;
using JsonApiDotNetCore.Extensions;
using JsonApiDotNetCoreExample.Models;
using System.Linq;
namespace JsonApiDotNetC... | mit | C# | |
1fe324fee3614ae54ea6d317a94ecee7e475014a | Add missing enum for wood. | Petermarcu/minecraft.client,bleroy/minecraft.client,rschacherl/minecraft.client | Minecraft.Client/Orientation.cs | Minecraft.Client/Orientation.cs | namespace Decent.Minecraft.Client
{
public enum Orientation : ushort
{
UpDown = 0x0,
EastWest = 0x4,
NorthSouth = 0x8,
None = 0xC
}
}
| mit | C# | |
fdda0d854d1b07c0cb985a378421335e773da466 | Add `SCardProtocols` enumeration | Archie-Yang/PcscDotNet | src/PcscDotNet/SCardProtocols.cs | src/PcscDotNet/SCardProtocols.cs | using System;
namespace PcscDotNet
{
/// <summary>
/// Acceptable protocols for the connection.
/// </summary>
[Flags]
public enum SCardProtocols : uint
{
/// <summary>
/// Use the default transmission parameters and card clock frequency.
/// (For WinSCard in Windows pla... | mit | C# | |
3f892017148dc16aeb96b1c58db5d5345b3ea27f | Add some extensions | vostok/core | Vostok.Hosting/IVostokHostBuilder_Extensions.cs | Vostok.Hosting/IVostokHostBuilder_Extensions.cs | using System;
using Microsoft.Extensions.Configuration;
using Vostok.Hosting.Configuration;
namespace Vostok.Hosting
{
public static class IVostokHostBuilder_Extensions
{
public static IVostokHostBuilder ConfigureAppConfiguration(this IVostokHostBuilder hostBuilder, Action<IConfigurationBuilder> confi... | mit | C# | |
be0671eed76248e0f59c027949af0a8bee00f63b | implement BooleanPropertyAttribute | UNOPS/UiMetadataFramework,UNOPS/UiMetadataFramework,UNOPS/UiMetadataFramework | UiMetadataFramework.Core/Binding/BooleanPropertyAttribute.cs | UiMetadataFramework.Core/Binding/BooleanPropertyAttribute.cs | namespace UiMetadataFramework.Core.Binding
{
using System;
/// <summary>
/// <see cref="ICustomPropertyAttribute"/> implementation for <see cref="bool"/> properties.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
public class BooleanPr... | mit | C# | |
f7b301338cf3942ae25f499125fe43f028a04a0d | add tests for store info | YoloDev/elephanet,jmkelly/elephanet,YoloDev/elephanet,jmkelly/elephanet | Elephanet.Tests/StoreInfoTests.cs | Elephanet.Tests/StoreInfoTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Elephanet;
using Xunit;
using Shouldly;
namespace Elephanet.Tests
{
public class StoreInfoTests
{
[Fact]
public void StoreInfo_GivenANewTable_Should_AddItToItsTableNamesList()
{
StoreInfo storeInfo = n... | mit | C# | |
db5cf694aa5d2ab01c1d60a26963309d361de6c8 | Add to versioned files | NickStrupat/NameOf,jbijoux/NameOf | NameOf.Fody/PatternInstruction.cs | NameOf.Fody/PatternInstruction.cs | using System;
using Mono.Cecil.Cil;
namespace NameOf.Fody {
class PatternInstruction {
public OpCode[] EligibleOpCodes { get; private set; }
public Func<Instruction, ILProcessor, String> TerminalFunc { get; private set; }
public PatternInstruction(OpCode[] eligibleOpCodes, Func<Instruction... | mit | C# | |
00b7a3a4d506c0db7aa9629b4095a9f9ce0438e4 | Create MathGraph.cs | alchemz/ARL_Training | Math/MathGraph.cs | Math/MathGraph.cs | using UnityEngine;
public class MathGraph : MonoBehaviour {
public enum FunctionOption {
Linear,
Exponential,
Parabola,
Sine,
Ripple
}
private delegate float FunctionDelegate (Vector3 p, float t);
private static FunctionDelegate[] functionDelegates = {
Linear,
Exponential,
Parabola,
Sine,
Rip... | mit | C# | |
1d0ac56a12bd34595764103f4b2e4d21b5ec48b2 | Create MathExtras.cs | Moci1/ColorBox | MathExtras.cs | MathExtras.cs | using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace ColorBox
{
public class MathExtras
{
public static Rectangle CalcBoundingRectangle(Rectangle rectangle, Matrix transform)
{
Vector3[] rectOrigin = new Vector3[4];
rectOrigin[0] = new Vector3(rectangle.Width / -2,... | mit | C# | |
16d4abe5f9a7cf5669c177fafec171a614e11843 | Create SvgQRCodeRendererTests.cs | codebude/QRCoder | QRCoderTests/SvgQRCodeRendererTests.cs | QRCoderTests/SvgQRCodeRendererTests.cs | using System;
using Xunit;
using QRCoder;
using Shouldly;
using QRCoderTests.XUnitExtenstions;
using System.IO;
using System.Security.Cryptography;
#if !NETCOREAPP1_1
using System.Drawing;
#endif
namespace QRCoderTests
{
public class SvgQRCodeRendererTests
{
#if !NETCOREAPP1_1 && !NETCOREAPP2_0
[F... | mit | C# | |
90ef3e5b769ecea95512f71aa2e740b342836f8d | Add documentation for `none` on DataRequested enum | Shidesu/RiotSharp,florinciubotariu/RiotSharp,frederickrogan/RiotSharp,Oucema90/RiotSharp,oisindoherty/RiotSharp,JanOuborny/RiotSharp,aktai0/RiotSharp,BenFradet/RiotSharp,jono-90/RiotSharp,Challengermode/RiotSharp | RiotSharp/StaticDataEndpoint/DataRequested.cs | RiotSharp/StaticDataEndpoint/DataRequested.cs | namespace RiotSharp.StaticDataEndpoint
{
/// <summary>
/// Enum when requesting data for the Champion Static API.
/// </summary>
public enum ChampionData
{
/// <summary>
/// The default. Resolves to type, version, data, id, key, name, and title
/// </summary>
none,
... | namespace RiotSharp.StaticDataEndpoint
{
/// <summary>
/// Enum when requesting data for the Champion Static API.
/// </summary>
public enum ChampionData
{
none,
all,
image,
skins,
lore,
blurb,
allytips,
enemytips,
tags,
... | mit | C# |
c27f105d4489a9fad1201bd20c0170cb1f710d33 | Create Problem3.cs | neilopet/projecteuler_cs | Problem3.cs | Problem3.cs | /*
* Problem #3
* The prime factors of 13195 are 5, 7, 13 and 29.
* What is the largest prime factor of the number 600851475143 ?
*/
using System;
public class Problem3
{
public void Main()
{
Console.WriteLine( Factor( 6008514751430 ) );
}
public Int64 Factor( Int64 number )
{
Int64 ret = 1;
int mod =... | mit | C# | |
81825f46267edac7f7e85cbe83c622417e9aa874 | add skipped file | shortcutmedia/shortcut-deeplink-sdk-wp | ShortcutDeepLinkingPcl/SCDeepLinking.cs | ShortcutDeepLinkingPcl/SCDeepLinking.cs | using System;
using System.Collections.Generic;
namespace Shortcut.DeepLinking.Pcl
{
public class SCDeepLinking
{
private static SCDeepLinking scDeepLinking;
private SCPreference scPreference;
private SCSession scSession;
private SCConfig scConfig;
private Uri deepLink... | mit | C# | |
28db7ec26f5b3de818fd9890312ca07e0ca5063c | Create AssemblyInfo.cs | XamlBehaviors/XamlBehaviors,XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors | tests/Avalonia.Xaml.Interactions.Custom.UnitTests/Properties/AssemblyInfo.cs | tests/Avalonia.Xaml.Interactions.Custom.UnitTests/Properties/AssemblyInfo.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Reflection;
using Xunit;
[assembly: AssemblyTitle("Avalonia.Xaml.Interactions.Custom.UnitTests")]
[assembly: CollectionBehavior(DisableTestParal... | mit | C# | |
9ba3e97312e832f47261f3bc4bd9c022805ae972 | Bump to version 1.3.1 | robvdlv/OwinHttpMessageHandler,Jonne/OwinHttpMessageHandler,damianh/OwinHttpMessageHandler | src/SharedAssemblyInfo.cs | src/SharedAssemblyInfo.cs | // --------------------------------------------------------------------------------------------------------------------
// <Copyright company="BEAM Financial Solutions Ltd" file="SharedAssemblyInfo.cs">
// Copyright © 2009-2012 BEAM Financial Solutions Ltd
// </Copyright>
// -------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <Copyright company="BEAM Financial Solutions Ltd" file="SharedAssemblyInfo.cs">
// Copyright © 2009-2012 BEAM Financial Solutions Ltd
// </Copyright>
// -------------------------------------... | mit | C# |
a866c989aea224997acf1783542911172a2c2b8a | Create Ex338.cs | sonnypdx/lcoj-ex | CSharp/Ex338.cs | CSharp/Ex338.cs | /**
Exercise: #338 - Counting Bits
Description: Given a non negative integer number *num*. For every numbers *i* in the range 0 *≤ i ≤ num* calculate the number of 1's in their binary representation and return them as an array.
Example: For num = 5, it should return [0, 1, 1, 2, 1, 2].
Source: https://leetcode.com/pro... | mit | C# | |
415e653516636054c579f4140fd77383c9d201bc | Add StringBuilderCache to reduce allocations | carbon/Amazon | src/Amazon.DynamoDb/Helpers/StringBuilderCache.cs | src/Amazon.DynamoDb/Helpers/StringBuilderCache.cs | // Based on .NET Source code
namespace System.Text
{
internal static class StringBuilderCache
{
[ThreadStatic]
static StringBuilder? cachedInstance;
public static StringBuilder Aquire()
{
var sb = cachedInstance;
if (sb is null)
... | mit | C# | |
b6945ba983e9ce88e863721bcf8af142606dbb2e | add OnClickChangeScene.cs | NDark/ndinfrastructure,NDark/ndinfrastructure | Unity/UnityTools/OnClickChangeScene.cs | Unity/UnityTools/OnClickChangeScene.cs | /**
@file OnClickChangeScene.cs
@author NDark
@date 20170402 . file started.
*/
using UnityEngine;
public class OnClickChangeScene : MonoBehaviour
{
public string m_SceneName = string.Empty ;
void OnClick()
{
UnityEngine.SceneManagement.SceneManager.LoadScene ( m_SceneName );
}
}
| mit | C# | |
c73e82a01c5bd654d9b857421b4526dc19fc94ff | Add some test coverage for Ensure | naveensrinivasan/octokit.net,octokit/octokit.net,daukantas/octokit.net,shiftkey/octokit.net,Sarmad93/octokit.net,brramos/octokit.net,shiftkey-tester/octokit.net,kolbasov/octokit.net,shiftkey-tester/octokit.net,nsrnnnnn/octokit.net,gdziadkiewicz/octokit.net,geek0r/octokit.net,ivandrofly/octokit.net,darrelmiller/octokit.... | Burr.Tests/Helpers/EnsureTests.cs | Burr.Tests/Helpers/EnsureTests.cs | using System;
using Burr.Helpers;
using FluentAssertions;
using Xunit;
using Xunit.Extensions;
namespace Burr.Tests.Helpers
{
public class EnsureTests
{
public class TheArgumentNotNullMethod
{
[Fact]
public void ThrowsForNullArgument()
{
var ... | mit | C# | |
d59d0904f43997a8cc4dcbb6064d141543045091 | add test for tooltip | jkoritzinsky/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,jkorit... | tests/Avalonia.Controls.UnitTests/ToolTipTests.cs | tests/Avalonia.Controls.UnitTests/ToolTipTests.cs | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Reactive.Disposables;
using Avalonia.Platform;
using Avalonia.Threading;
using Avalonia.UnitTests;
using Avalonia.VisualTree;
u... | mit | C# | |
fe3fbdc84887f76e0bdb3667f581bad510e13fe2 | add class to calculate And parallel | icarus-consulting/Yaapii.Atoms | src/Yaapii.Atoms/AndInThreads.cs | src/Yaapii.Atoms/AndInThreads.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http.Headers;
using System.Runtime.CompilerServices;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
us... | mit | C# | |
f1d6ed9548dd697939b5573b499f811afd7cd634 | Build fix (included SignatureReader) | segrived/NSISInfoWriter | NSISInfoWriter/SignatureReader.cs | NSISInfoWriter/SignatureReader.cs | using System;
using System.IO;
namespace NSISInfoWriter
{
public class SignatureReader
{
private string FileName { get; set; }
public SignatureReader(string fileName) {
this.FileName = fileName;
}
private T ReadSignatureInternal<T>(Func<BinaryReader, ... | mit | C# | |
0e049deeea67ea73ab515ccf1133dc09fefaf8b9 | Add helper NSLocale file to improve the NSLocale API | jorik041/maccore,mono/maccore,cwensley/maccore | src/Foundation/NSLocale.cs | src/Foundation/NSLocale.cs | //
// NSLocale.cs: extensions for the NSLocale class
//
// Authors:
// Miguel de Icaza (miguel@xamarin.com)
//
// Copyright 2011 Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the So... | apache-2.0 | C# | |
b96c8d56928e2bc6619fa705540e23de268c3416 | Add an infraction search command | mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX,mariocatch/MODiX | Modix/Modules/InfractionModule.cs | Modix/Modules/InfractionModule.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using Modix.Data.Models;
using Modix.Data.Models.Moderation;
using Modix.Services.Moderation;
using Serilog;
using Tababular;
namespace Mo... | mit | C# | |
3d8d40fdfb53f207f3d290b3a2203a6938d3ab8a | Introduce `LocalisableStringExtensions` extension methods. | peppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework | osu.Framework/Extensions/LocalisationExtensions/LocalisableStringExtensions.cs | osu.Framework/Extensions/LocalisationExtensions/LocalisableStringExtensions.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 osu.Framework.Localisation;
namespace osu.Framework.Extensions.LocalisationExtensions
{
public static class LocalisableStringExtensions
{
/// <sum... | mit | C# | |
46900d203ee464bcb3eb8ac6257cfe67322fc868 | Add enumerable extensions | xin9le/DeclarativeSql | src/DeclarativeSql/Internals/EnumerableExtensions.cs | src/DeclarativeSql/Internals/EnumerableExtensions.cs | using System;
using System.Collections.Generic;
namespace DeclarativeSql.Internals
{
/// <summary>
/// Provides <see cref="IEnumerable{T}"/> extension methods
/// </summary>
internal static class EnumerableExtensions
{
/// <summary>
/// Generates a sequence of non-overlapping adj... | mit | C# | |
4f6718aabc8cef5785bf470165b1bbb2866922d1 | add scenario for a property being writable by multiple writers | Pondidum/Stronk,Pondidum/Stronk | src/Stronk.Tests/Scenarios/MultiplePropertyWrites.cs | src/Stronk.Tests/Scenarios/MultiplePropertyWrites.cs | using System.Collections.Generic;
using Shouldly;
using Stronk.ConfigurationSources;
using Stronk.PropertyWriters;
using Xunit;
namespace Stronk.Tests.Scenarios
{
public class MultiplePropertyWrites
{
[Fact]
public void When_a_property_is_selected_by_two_different_writers()
{
var config = new StronkConfig(... | lgpl-2.1 | C# | |
e52fa8f9f5961ea52feeb6e46cb0aa821d2d1c37 | Add IReadonlyDomainRepositoryFactory | HighwayFramework/Highway.Data,ericburcham/Highway.Data | src/Highway.Data.EntityFramework/Factories/IReadonlyDomainRepositoryFactory.cs | src/Highway.Data.EntityFramework/Factories/IReadonlyDomainRepositoryFactory.cs | using System;
namespace Highway.Data.Factories
{
/// <summary>
/// Interface for the factories of <see cref="IReadonlyRepository" />
/// </summary>
public interface IReadonlyDomainRepositoryFactory
{
/// <summary>
/// Creates a readonly repository for the specified <see cre... | mit | C# | |
498c6cea03a9556abfe3187ad22cb408dfdff1fe | Create avionics.cs | FireVolkhov/space-engineers-scripts | avionics.cs | avionics.cs | //Для функционирования кода понадобится текстовая панель или ЖК-панель с названием Монитор (по умолчанию),
//а также таймер запускающий этот код раз в секунду.
double codeExecutionRate = 1; //1 потому-что заточено под выполнение раз в секунду
double KoofSkorosti = 1.3333; //Коофициент скорости нужен потому-что сет... | mit | C# | |
c103f523228703e229c9ebe46e04b417b2a781b4 | Remove unused InputManager reference in FocusedOverlayContainer | paparony03/osu-framework,peppy/osu-framework,ppy/osu-framework,Tom94/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,paparony03/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,... | osu.Framework/Graphics/Containers/FocusedOverlayContainer.cs | osu.Framework/Graphics/Containers/FocusedOverlayContainer.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System.Linq;
using osu.Framework.Input;
using OpenTK.Input;
namespace osu.Framework.Graphics.Containers
{
/// <summary>
/// An overla... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System.Linq;
using osu.Framework.Input;
using OpenTK.Input;
namespace osu.Framework.Graphics.Containers
{
/// <summary>
/// An overla... | mit | C# |
a88cc6bba388b29d6defb65a2b1026873cfebfc6 | Create CargoContainerDisplay.cs | Pharap/SpengyUtils | Examples/CargoContainerDisplay.cs | Examples/CargoContainerDisplay.cs | // To use:
// 1. Have a text panel named "Text Panel"
// 2. Supply the name of the cargo container as the run argument
public void Main(string argument)
{
IMyTextPanel textPanel = GridTerminalSystem.GetBlockWithName("Text Panel") as IMyTextPanel; // Acquire text panel
IMyCargoContainer cargo = GridTerminalSys... | apache-2.0 | C# | |
d1777cf87bf8b4c28e19b3d92b8e54a9d5fd5e56 | add acceptance test for deeply nested inclusions | Research-Institute/json-api-dotnet-core,Research-Institute/json-api-dotnet-core,json-api-dotnet/JsonApiDotNetCore | test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DeeplyNestedInclusionTests.cs | test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DeeplyNestedInclusionTests.cs | using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Bogus;
using JsonApiDotNetCoreExample;
using JsonApiDotNetCoreExample.Data;
using JsonApiDotNetCoreExample.Models;
using Microsoft.AspNetCore.Hosting;
using Newtonsoft.Json;
using Xunit;
using Person = JsonApiDotNetCoreExample.Models.Person;
... | mit | C# | |
c46928c8c7f8c225afd9c0fad5482e70f8e9decd | Add IFileObject interface | whampson/bft-spec,whampson/cascara | Cascara/Src/IFileObject.cs | Cascara/Src/IFileObject.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# | |
c9a980d4eebd0852f08430971cb91e68af60e3c8 | add original SampleSpecsFocus project source files | BrainCrumbz/NSpec.NetCore,BrainCrumbz/NSpec.NetCore | NSpec/test/Samples/SampleSpecsFocus/describe_focus.cs | NSpec/test/Samples/SampleSpecsFocus/describe_focus.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NSpec;
public class describe_focus : nspec
{
[Tag("focus")]
void it_is_run() { }
void it_is_not_run() { }
}
public static class describe_focus_output
{
public static string Output = @"
describe focus
it is ... | mit | C# | |
6ceb95642e1925d8bae765b5a4045bca941bc61a | Create Main.cs | etormadiv/njRAT_0.7d_Stub_ReverseEngineering | j_csharp/A/Main.cs | j_csharp/A/Main.cs | public static void Main()
{
OK.ko();
}
| unlicense | C# | |
73c3c3bba7f9efa82c37fcb46fec1a6c24a1855a | Create ClientController.cs | fatmagazaile/Projet | ClientController.cs | ClientController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcMeublatexApp.Models;
namespace MvcMeublatexApp.Controllers
{
public class ClientController : Controller
{
//
// GET: /Client/
Models.MeublatexDataEntities clt = new Meublat... | apache-2.0 | C# | |
f98b0fc7e9c58ffbe0f98ee0a473fb70f1aec8f3 | rename SBParentGuid in output queue messages (issue#103) | gibwar/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,shrishrirang/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,oaastest/azure-webjobs-sdk,oliver-feng/azure-webjobs-sdk,brendankowitz/azure-webjobs-sdk,vasanthangel4/azure-webjobs-sdk,gibwar/azure-webjobs-sdk,Azure/azure-webjobs-sdk,brendankow... | src/Microsoft.WindowsAzure.Jobs.Host/RunnerInterfaces/Logging/IQueueCausalityLogger.cs | src/Microsoft.WindowsAzure.Jobs.Host/RunnerInterfaces/Logging/IQueueCausalityLogger.cs | using System;
using Microsoft.WindowsAzure.StorageClient;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Microsoft.WindowsAzure.Jobs
{
// This tracks causality via the queue message payload.
// Important that this can interoperate with external queue messages, so be resilient to a missing guid ... | using System;
using Microsoft.WindowsAzure.StorageClient;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Microsoft.WindowsAzure.Jobs
{
// This tracks causality via the queue message payload.
// Important that this can interoperate with external queue messages, so be resilient to a missing guid ... | mit | C# |
bbd42147bef97a379b00a0bbde628d792adee770 | Add swuber icon to gmaps marker and switch views to satelite | jerradmonagan/swuber,jerradmonagan/swuber,jerradmonagan/swuber | Swuber/Views/Login/UserDashBoard.cshtml | Swuber/Views/Login/UserDashBoard.cshtml |
@{
ViewBag.Title = "UserDashBoard";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>UserDashBoard</h2>
<fieldset>
@if (Session["NNumber"] != null) {
<text>
Welcome @Session["NNumber"].ToString()
@Session["FirstName"].ToString()
@Session["LastName"].ToString() </text>
} </fieldset>
<h2... | apache-2.0 | C# | |
ab7762c9a4988e44f885db55980ea83567bbfd5b | Add partial class for retry settings (compatibility) | jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet | apis/Google.Cloud.Scheduler.V1/Google.Cloud.Scheduler.V1/CloudSchedulerClientSettings.cs | apis/Google.Cloud.Scheduler.V1/Google.Cloud.Scheduler.V1/CloudSchedulerClientSettings.cs | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | apache-2.0 | C# | |
ad69d089ae8d0931fbe96aeab106320ee3ba8c97 | Introduce IGameServer interface. | AIWolfSharp/AIWolf_NET | AIWolfServer/IGameServer.cs | AIWolfServer/IGameServer.cs | //
// IGameServer.cs
//
// Copyright (c) 2016 Takashi OTSUKI
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
using AIWolf.Lib;
using System.Collections.Generic;
namespace AIWolf.Server
{
interface IGameServer
{
/// <summary>
/// The l... | mit | C# | |
549143dd48d2ee45583c88636e9bfa24708e105c | Add integration tests for Empiria Oracle Data Handler and Empiria ORM | Ontica/Empiria.Extended | Data.Oracle.Tests/Tests/OracleORMTests.cs | Data.Oracle.Tests/Tests/OracleORMTests.cs | /* Empiria Extensions ****************************************************************************************
* *
* Module : Oracle Data Handler Component : Test Helpers ... | agpl-3.0 | C# | |
78d58777f74daac04a1f79deb27914906e3b2882 | 更新2.2.0.28 | Laforeta/KanColleCacher,hakuame/KanColleCacher,Gizeta/KanColleCacher | KanColleCacher/Properties/AssemblyInfo.cs | KanColleCacher/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using d_f_32.KanColleCacher;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle(AssemblyInfo.Title)]
[assembly: AssemblyDescription(AssemblyInfo.Description)]
[assembly: Assembl... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using d_f_32.KanColleCacher;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle(AssemblyInfo.Title)]
[assembly: AssemblyDescription(AssemblyInfo.Description)]
[assembly: Assembl... | mit | C# |
aae64d19312e7bf17c6af587a74f60bf537326da | Create larser.cs | EverGen1/Ever,EverGen1/Ever,EverGen1/Ever | larser.cs | larser.cs | mit | C# | ||
7e9def9df4515de780b859c30834611467b9ce75 | Add tests | abjerner/Umbraco-CMS,arknu/Umbraco-CMS,robertjf/Umbraco-CMS,abjerner/Umbraco-CMS,robertjf/Umbraco-CMS,abryukhov/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/Umbraco-CMS,umbraco/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,KevinJump/Umbraco-CMS,umbraco/Umbraco-CMS,abjerner/Umbraco-CMS,abryukhov/Umbraco-CMS,umbraco... | tests/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentTypeHistoryCleanupTests.cs | tests/Umbraco.Tests.UnitTests/Umbraco.Core/Models/ContentTypeHistoryCleanupTests.cs | using System.Linq;
using NUnit.Framework;
using Umbraco.Cms.Core.Models.ContentEditing;
using Umbraco.Cms.Tests.Common.Builders;
namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core.Models
{
[TestFixture]
public class ContentTypeHistoryCleanupTests
{
[Test]
public void Changing_Keep_all_Make... | mit | C# | |
17ec47a70ff18af1804dbe83d620a03a37eaf35e | add Upgrade_20220426_React18 | signumsoftware/framework,signumsoftware/framework | Signum.Upgrade/Upgrades/Upgrade_20220426_React18.cs | Signum.Upgrade/Upgrades/Upgrade_20220426_React18.cs | namespace Signum.Upgrade.Upgrades;
class Upgrade_20220426_React18 : CodeUpgradeBase
{
public override string Description => "Update to React 18 and other NPM upgrades";
public override void Execute(UpgradeContext uctx)
{
uctx.ChangeCodeFile("Southwind.React/App/MainPublic.tsx", file =>
... | mit | C# | |
ce5d308d232a37ea3840185bb513b83c1254d7f0 | Add some regression tests for previous commit 0e23374 | M-O-S-E-S/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,TomDataworks/opensim,ft-/arribasim-dev-tests,QuillLittlefeather/opensim-1,OpenSimian/opensimulator,QuillLittlefeather/opensim-1,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,ft-/opensim-optimizations-wip-extras,Michelle-Argus/ArribasimExtract,ft-/arribasim-dev-tests,QuillLi... | OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiAvatarTests.cs | OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiAvatarTests.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# | |
2e78ceafcb08380ad48caa3e2daa61dabdf6f86d | Add missing file for #34 | smatsson/tusdotnet,tusdotnet/tusdotnet,tusdotnet/tusdotnet,tusdotnet/tusdotnet,smatsson/tusdotnet,tusdotnet/tusdotnet | Source/tusdotnet/Models/Configuration/OnBeforeDeleteContext.cs | Source/tusdotnet/Models/Configuration/OnBeforeDeleteContext.cs | namespace tusdotnet.Models.Configuration
{
/// <summary>
/// Context for the OnBeforeDelete event
/// </summary>
public class OnBeforeDeleteContext : ValidationContext
{
}
}
| mit | C# | |
471a12269fe2eaac555b1116f87e7f21b62bdedc | Fix for last commit | OS2CPRbroker/cprbroker,magenta-aps/cprbroker,OS2CPRbroker/cprbroker,magenta-aps/cprbroker,magenta-aps/cprbroker | PART/Source/CprBroker/InstallerActions.Tests/Program.cs | PART/Source/CprBroker/InstallerActions.Tests/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CprBroker.Tests.InstallerActions
{
class Program
{
public static void Main()
{
new CprBrokerCustomActionTests.PatchWebsite_2_2_7().PatchWebsite_2_2_7_Passes... | using CprBroker.Tests.CprBrokerCustomActionTests;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CprBroker.InstallerActions.Tests
{
class Program
{
public static void Main()
{
new PatchWebsite_2_2_7().Pa... | mpl-2.0 | C# |
1c865682ae3b0d4116fa8483b1e173c67ab079a3 | Add tablet configuration tests | peppy/osu-new,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,ppy/osu,peppy/osu,UselessToucan/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu | osu.Game.Tests/Visual/Settings/TestSceneTabletAreaSelection.cs | osu.Game.Tests/Visual/Settings/TestSceneTabletAreaSelection.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 OpenTabletDriver.Plugin.Tablet;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using ... | mit | C# | |
c07770e4e5e6a4149348a4bce8c374e4f60cf633 | Add iOSHardware class | dannycabrera/Get-iOS-Model | iOSHardware.cs | iOSHardware.cs | class iOSHardware
{
public String GetModel(String hardware)
{
if (hardware.StartsWith("iPhone"))
{
if (hardware == "iPhone1,1")
return "iPhone 2G";
if (hardware == "iPhone1,2")
return "iPhone 3G";
if (hardware == "iPhone2,1")
... | mit | C# | |
f05e179a5b859bab122aef2c580c62ebf9e74be6 | Create server.cs | TDXDigital/TPS,TDXDigital/TPS,TDXDigital/TPS,TDXDigital/TPS,TDXDigital/TPS | comserver/server.cs | comserver/server.cs | using System;
using System.Text;
using System.Net.Sockets;
using System.Threading;
using System.Net;
namespace TCPServerTutorial
{
class Server
{
private TcpListener tcpListener;
private Thread listenThread;
public Server()
{
this.tcpListener = new TcpListener(IPAddress.Any, 3000);
thi... | mit | C# | |
4a26e574a04ac2b4ed7b07c4667111b550bedfac | Move extensions to appropriate project | boumenot/Grobid.NET | src/Grobid.PdfToXml/Extensions.cs | src/Grobid.PdfToXml/Extensions.cs | using System;
namespace Grobid.PdfToXml
{
public static class Extensions
{
// Same rules as pdftoxml.
// Max difference in primary font sizes on two lines in the same
// block. Delta1 is used when examining new lines above and below the
// current block.
pr... | apache-2.0 | C# | |
328b133b1bd1e16542341f5cb52f2280f5138c06 | Add AspNetCoreOperationSecurityScopeProcessor (#2090) | RSuter/NSwag,quails4Eva/NSwag,RSuter/NSwag,RSuter/NSwag,RSuter/NSwag,quails4Eva/NSwag,quails4Eva/NSwag,quails4Eva/NSwag,RSuter/NSwag | src/NSwag.SwaggerGeneration.AspNetCore/Processors/AspNetCoreOperationSecurityScopeProcessor.cs | src/NSwag.SwaggerGeneration.AspNetCore/Processors/AspNetCoreOperationSecurityScopeProcessor.cs | //-----------------------------------------------------------------------
// <copyright file="AspNetCoreOperationSecurityScopeProcessor.cs" company="NSwag">
// Copyright (c) Rico Suter. All rights reserved.
// </copyright>
// <license>https://github.com/NSwag/NSwag/blob/master/LICENSE.md</license>
// <author>Rico ... | mit | C# | |
0e61ccd2b356110b7b021db5780da554c1722e99 | Create view-master.cshtml | go4web/Umbraco-Snippets | view-master.cshtml | view-master.cshtml | @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = null;
var homepage = Model.Content.AncestorOrSelf(1);
}
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="da" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="da" > <!--<![endif]-->
<head>
<meta charset="utf-8" />
<me... | mit | C# | |
4731ba51955fe45cd2fc63c0e990858daa9ec1eb | Add some sample console output | jshall/VersionTasks,martinbuberl/VersionTasks | src/ConsoleApplicationSample/Program.cs | src/ConsoleApplicationSample/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplicationSample
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Changeset: " + VersionInfo.Changeset);
C... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplicationSample
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
2ac3f815ad3560713b8a8b731895eedca568c1e4 | Create enum UpdateInterval. | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW | src/NadekoBot/Common/UpdateInterval.cs | src/NadekoBot/Common/UpdateInterval.cs | namespace Mitternacht.Common
{
public enum UpdateInterval : int
{
TeamUpdate = 1 * 60 * 1000,
Birthday = 1* 60 * 1000
}
}
| mit | C# | |
4029099d42aa4f2bd8a0d5c646acc5c5f62a26bc | Create FerCorrales.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/FerCorrales.cs | src/Firehose.Web/Authors/FerCorrales.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 FerCorrales : IAmACommunityMember
{
public string FirstName => "Fer";
public string LastNam... | mit | C# | |
15be8b3b1c3053e6f1e79e7c48ed7caea0347323 | Add public facing Resolver class and simplest path resolving via properties | Domysee/Pather.CSharp | src/Pather.CSharp/Resolver.cs | src/Pather.CSharp/Resolver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Reflection;
namespace Pather.CSharp
{
public class Resolver
{
public object Resolve(object target, string path)
{
var pathElements = path.Split('.');
var tempRe... | mit | C# | |
995640b92ff9ce332a65edacb5e058b91fa975bb | Create NumberPlateStyle.cs | Ruffo324/UsefulGT-MPEnums | NumberPlateStyle.cs | NumberPlateStyle.cs |
namespace Enums
{
public enum NumberPlateStyle
{
BlueRedFontWhite = 0,
YellowFontBlack = 1,
YellowFontDarkBlue = 2,
BlueRedFontWhite2 = 3,
BlueRedFontWhiteNoIcons = 4,
BlueWhiteFontWhiteRed = 5
}
}
| mit | C# | |
f1782b5f501afd017329a8073bac444afa09d8c4 | Add test case for clamp in MathHelper | unity-chicken/SharpNav,sangdaekim/SharpNav,sangdaekim/SharpNav,unity-chicken/SharpNav | SharpNavTests/MathHelperTests.cs | SharpNavTests/MathHelperTests.cs | #region License
/**
* Copyright (c) 2014 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file).
* Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE
*/
#endregion
using System;
using NUnit.Framework;
using SharpNav;
namespace SharpNavTes... | #region License
/**
* Copyright (c) 2014 Robert Rouhani <robert.rouhani@gmail.com> and other contributors (see CONTRIBUTORS file).
* Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE
*/
#endregion
using System;
using NUnit.Framework;
using SharpNav;
namespace SharpNavTes... | mit | C# |
7e2870a07d22e907e2ca31df380d65ff6c430cc3 | Create Test.cs | suchrep/Pervexel | Test.cs | Test.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Pervexel {
class Test {
public static void Main (string[] args) {
if (args.Length == 0) {
Console.WriteLine("I need xls file path.");
return;
}
int worksheet = 0;
if (args.Leng... | mit | C# | |
080b072392aebe11a193add00bedc425f0b5d719 | Fix build | sboulema/CodeNav,sboulema/CodeNav | CodeNav/Models/CodePropertyItem.cs | CodeNav/Models/CodePropertyItem.cs | namespace CodeNav.Models
{
public class CodePropertyItem : CodeFunctionItem
{
}
}
| mit | C# | |
f8ca95750307c466798d76d606e408036d95a274 | Add two numbers | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | LeetCode/remote/add_two_numbers.cs | LeetCode/remote/add_two_numbers.cs | // https://leetcode.com/problems/add-two-numbers/
// You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
//
// Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
// Output: ... | mit | C# | |
87a767ce807846ea0b61d87e6dc69ecf485415cf | Add files via upload | ShammyLevva/FTAnalyzer,ShammyLevva/FTAnalyzer,ShammyLevva/FTAnalyzer | FTAnalyser/Mapping/GoogleAPIKey.cs | FTAnalyser/Mapping/GoogleAPIKey.cs | using FTAnalyzer.Utilities;
using System;
namespace FTAnalyzer.Mapping
{
static class GoogleAPIKey
{
static string APIkeyValue = string.Empty;
public static string KeyValue
{
get
{
if (string.IsNullOrEmpty(APIkeyValue))
... | apache-2.0 | C# | |
325eba338500affb34196459ba4ff4b73ace2c80 | add converter for ilvl tiers | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Converters/ItemLevelTierToColorConverter.cs | TCC.Core/Converters/ItemLevelTierToColorConverter.cs | using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;
using TCC.Data;
namespace TCC.Converters
{
public class ItemLevelTierToColorConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
... | mit | C# | |
f10462e5402fab603c0185932bd8f87dac0c8335 | Make Spanner.Data.CommonTesting internals available to test projects | jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet | apis/Google.Cloud.Spanner.Data/Google.Cloud.Spanner.Data.CommonTesting/AssemblyInfo.cs | apis/Google.Cloud.Spanner.Data/Google.Cloud.Spanner.Data.CommonTesting/AssemblyInfo.cs | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | apache-2.0 | C# | |
a4955275b5e1a4a6d0b3df3c7733a85b1d1b53a6 | Implement 3-ways quick sort | cschen1205/cs-algorithms,cschen1205/cs-algorithms | Algorithms/Sorting/ThreeWayQuickSort.cs | Algorithms/Sorting/ThreeWayQuickSort.cs | using System;
using Algorithms.Utils;
namespace Algorithms.Sorting
{
public class ThreeWayQuickSort
{
public static void Sort<T>(T[] a) where T : IComparable<T>
{
Sort(a, 0, a.Length-1, (a1, a2) => a1.CompareTo(a2));
}
public static void Sort<T>(T[] a, int ... | mit | C# | |
2c5f86e49562ccee3257677f81ec11355b69c1d5 | add missing file | mmanela/chutzpah,mmanela/chutzpah,mmanela/chutzpah,mmanela/chutzpah | Chutzpah/Server/ChutzpahServerFileProvider.cs | Chutzpah/Server/ChutzpahServerFileProvider.cs | using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Primitives;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Chutzpah.Server
{
public class ChutzpahServerFileProvider : IFileProvider
{
PhysicalFileProvide... | apache-2.0 | C# | |
665f7dab6b5fcf60dd2a72220465711b9caff750 | Test for #1979 (#1980) | linq2db/linq2db,linq2db/linq2db,MaceWindu/linq2db,LinqToDB4iSeries/linq2db,LinqToDB4iSeries/linq2db,MaceWindu/linq2db | Tests/Linq/UserTests/Issue1979Tests.cs | Tests/Linq/UserTests/Issue1979Tests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using LinqToDB;
using LinqToDB.Mapping;
using NUnit.Framework;
namespace Tests.UserTests
{
[TestFixture]
public class Issue1979Tests : TestBase
{
[Table]
public class Issue
{
[PrimaryKey] public int Id { get;... | mit | C# | |
86f3d8b2ae806407d4e881df86bfd884d30ce721 | Add ExceptionTest | selvasingh/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,Azure/azure-sdk-for-java,selvasingh/azure-sdk-for-java | net/Azure.Test.PerfStress/ExceptionTest.cs | net/Azure.Test.PerfStress/ExceptionTest.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Azure.Test.PerfStress
{
// Measures the overhead of creating, throwing, and catching an exception (compared to NoOpTest)
public class ExceptionTest : PerfStressTest<PerfStressOptions>
{
public ExceptionTest(PerfStressOpt... | mit | C# | |
bb4542890d0d4d12fbc53748cdb6297c74d3d1ef | Create INotesRepository.cs | CarmelSoftware/MVCDataRepositoryXML | Models/INotesRepository.cs | Models/INotesRepository.cs | public interface INotesRepository
{
IEnumerable<Note> GetAll();
Note Get(int id);
Note Add(Note item);
bool Update(Note item);
bool Delete(int id);
}
| mit | C# | |
5492e88513bbdf6111c8ef0e1b6a3cc99620b75f | Add MediaType | NicatorBa/Porthor | src/Porthor/ContentValidation/MediaType.cs | src/Porthor/ContentValidation/MediaType.cs | namespace Porthor.ContentValidation
{
public static class MediaType
{
public static readonly string Json = "application/json";
public static readonly string Xml = "application/xml";
}
}
| apache-2.0 | C# | |
4c732ddf6fb86b8b1f9948ff352d3d614b54efbe | Create Building.cs | RobinsonMann/UWaterlooApi | Building/Building.cs | Building/Building.cs | using System.Collections.Generic;
using Newtonsoft.Json;
using UWaterlooApi.ApiRequest;
namespace UWaterlooAPI.Building
{
/// <summary>
/// Server API
/// </summary>
public class BuildingApi
{
// The Users University of Waterloo Open Data API Key
private readonly string _apiKey;
/// <summary> Default const... | mit | C# | |
717b55f42c4e3f888462704246b92f08586fc909 | Add ScriptModuleFactory basic tests. | andrewdavey/cassette,honestegg/cassette,BluewireTechnologies/cassette,andrewdavey/cassette,damiensawyer/cassette,BluewireTechnologies/cassette,honestegg/cassette,damiensawyer/cassette,damiensawyer/cassette,andrewdavey/cassette,honestegg/cassette | src/Cassette.UnitTests/ScriptModuleFactory.cs | src/Cassette.UnitTests/ScriptModuleFactory.cs | using Should;
using Xunit;
namespace Cassette
{
public class ScriptModuleFactory_Tests
{
[Fact]
public void CreateModuleReturnsScriptModule()
{
var factory = new ScriptModuleFactory();
var module = factory.CreateModule("c:\\test");
module... | mit | C# | |
1c10c2136ed0c41cdce5ad4271cf28ea0ae87a3d | Update TODO | llytvynenko/Orleankka,ElanHasson/Orleankka,AntyaDev/Orleankka,mhertis/Orleankka,yevhen/Orleankka,llytvynenko/Orleankka,yevhen/Orleankka,ElanHasson/Orleankka,pkese/Orleankka,OrleansContrib/Orleankka,mhertis/Orleankka,OrleansContrib/Orleankka,pkese/Orleankka,AntyaDev/Orleankka | Source/Orleankka.Tests/TODO.cs | Source/Orleankka.Tests/TODO.cs | using System;
using System.Linq;
using NUnit.Framework;
namespace Orleankka
{
[TestFixture]
public class TodoFixture
{
[Test, Ignore]
public void Envelopes()
{
// - Envelope and Body attributte
// - Proper selection of Receive channel based on Body typ... | using System;
using System.Linq;
using NUnit.Framework;
namespace Orleankka
{
[TestFixture]
public class TodoFixture
{
[Test, Ignore]
public void Envelopes()
{
// - Envelope and Body attributte
// - Proper selection of Receive channel based on Body typ... | apache-2.0 | C# |
c8155bf4ad0c157e5f10dfffb77f00af1a43bf3a | Add placeholder file for project type | prasannavl/ConsoleUtils | ConsoleUtils/EmptyProjectPlaceholder.cs | ConsoleUtils/EmptyProjectPlaceholder.cs |
... | apache-2.0 | C# | |
52614946125c7383b2f1f9e9ed946a5be267db19 | Create UriExtensions.cs | ungood/DotaBird | DotaBird.Core/Net/UriExtensions.cs | DotaBird.Core/Net/UriExtensions.cs | public static class UriExtensions
{
// From: http://stackoverflow.com/a/10836145
public static Uri AddQuery(this Uri uri, string name, string value)
{
var ub = new UriBuilder(uri);
// decodes urlencoded pairs from uri.Query to HttpValueCollection
var queryString = HttpUtility.ParseQ... | apache-2.0 | C# | |
86f3d9b066bd13b540feb642a2761fe8c1d1aced | Create ClientCommande.cs | fatmagazaile/Projet | ClientCommande.cs | ClientCommande.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace MvcMeublatexApp
{
public class ClientCommande
{
public int Id_clt;
public int Id_cmd;
public int prix_total;
}
}
| apache-2.0 | C# | |
b525fe5f2fad8ee4733af5b78877e3fd3d582fb6 | Add stun-turn example for C# next-gen | teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snip... | stun-turn/list-post-example/list-post-example.5.x.cs | stun-turn/list-post-example/list-post-example.5.x.cs | // Download the twilio-csharp library from twilio.com/docs/libraries/csharp
using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account;
public class Example
{
public static void Main(string[] args)
{
// Find your Account SID and Auth Token at twilio.com/console
const string accountSid = "A... | mit | C# | |
72bf05681f2dcb1e2de489c128120b4f355d4bd1 | add object mapping, new refactor begins | JohnMasen/ChakraCore.NET,JohnMasen/ChakraCore.NET,JohnMasen/ChakraCore.NET | source/Chakra.NET/JSObjectMap.cs | source/Chakra.NET/JSObjectMap.cs | using Chakra.NET.API;
using System;
using System.Collections.Generic;
using System.Text;
namespace Chakra.NET
{
public class JSObjectMap
{
//TODO: it's a map!
public JavaScriptValue JavaScriptValue { get; set; }
public object CLRValue { get; set; }
public List<JavaScriptNat... | mit | C# | |
2b98500aaf9c2e0a86761b33695d65d27d2709cb | add simple viewbox implementation | SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,grokys/Perspex,Perspex/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,w... | src/Avalonia.Controls/ViewBox.cs | src/Avalonia.Controls/ViewBox.cs | using System;
using Avalonia.Media;
namespace Avalonia.Controls
{
/// <summary>
/// Viewbox is used to scale single child.
/// </summary>
/// <seealso cref="Avalonia.Controls.Decorator" />
public class Viewbox : Decorator
{
/// <summary>
/// The stretch property
/// </s... | mit | C# | |
a95550324e591152c14ab638b5783a132928bc50 | Add dto for Teacher's list item | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | src/Diploms.Dto/Teachers/TeacherListItem.cs | src/Diploms.Dto/Teachers/TeacherListItem.cs | namespace DiplomContentSystem.Dto
{
public class TeacherListItem
{
public int Id {get;set;}
public string FIO {get;set;}
public string Position {get;set;}
public string Department {get;set;}
public int WorkCount {get;set;}
public int MaxWorkCount {get;set;}
}
... | mit | C# | |
2f780f04e7d707de267c5577665bb19557ecb13c | Add new SQLite driver | lecaillon/Evolve | src/Evolve/Driver/SystemDataSQLiteDriver.cs | src/Evolve/Driver/SystemDataSQLiteDriver.cs | namespace Evolve.Driver
{
public class SystemDataSQLiteDriver : ReflectionBasedDriver
{
public const string DriverAssemblyName = "System.Data.SQLite";
public const string ConnectionTypeName = "System.Data.SQLite.SQLiteConnection";
public SystemDataSQLiteDriver() : base(DriverAssemblyNa... | mit | C# | |
d38beb73dc523433d82a220fad34215c945d2c43 | Add a ROOT lock #177 | gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT,gordonwatts/LINQtoROOT | LINQToTTree/LINQToTTreeLib/Utils/ROOTLock.cs | LINQToTTree/LINQToTTreeLib/Utils/ROOTLock.cs | using Nito.AsyncEx;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LINQToTTreeLib.Utils
{
/// <summary>
/// A helper class to help lock down ROOT from multiple access
/// </summary>
public static class ROOTLock
{
... | lgpl-2.1 | C# | |
73246bb3e4a1d978831e58d8c23a4cd1d11fbbc0 | Create Crazy-Demand-Mod.cs | KhanAcademyAmateurs/Blaze,KhanAcademyAmateurs/Blaze,KhanAcademyAmateurs/Blaze | Cities-Skylines/Crazy-Demand-Mod.cs | Cities-Skylines/Crazy-Demand-Mod.cs | //wip
| mit | C# | |
2678f71d81b6302bf56ef25149e2f84d23fa93d8 | Create LinearCongRandom.cs | PokemonUnity/PokemonUnity | PokemonUnity.Shared/Extensions/Utility/LinearCongRandom.cs | PokemonUnity.Shared/Extensions/Utility/LinearCongRandom.cs | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
namespace PokemonUnity.Utility
{
/// <summary>
/// Linear congruential random number generator
/// </summary>
public partial class LinearCongRandom
{
public static event EventHandler<OnSeedEventArgs> SeedGenerated;
public cla... | bsd-3-clause | C# | |
960ad1981ac87682f877ab80403391dabadf8d88 | Create EventManager.cs | felladrin/unity3d-scripts,felladrin/unity-scripts | EventManager.cs | EventManager.cs | public static class EventManager
{
public delegate void GameOverEventHandler ();
public static event GameOverEventHandler OnGameOver;
public static void InvokeGameOver ()
{
if (OnGameOver != null)
OnGameOver ();
}
public delegate void GamePausedEventHandler (bool paused);
public static event GamePausedEven... | mit | C# | |
0581a1973f694035336fb8c13200f9fb90a4648a | Create 一行转置方阵.cs | imba-tjd/CSharp-Code-Repository | 单个文件的程序/一行转置方阵.cs | 单个文件的程序/一行转置方阵.cs | // 然而需要输入有多少列才能一行完成(Range的第二个参数)
using System.Linq;
class ReverseSquare
{
static void Main()
{
string s = "1,2,3\n4,5,6\n7,8,9";
var lines = s.Split('\n').Select(line => line.Split(',')).ToList();
var data = lines.Aggregate(Enumerable.Range(0, 3).Select(x=>Enumerable.Empty<string>()),
... | mit | C# | |
6963d3e1abd8cc10ff0f1e68e30a199030c111e5 | Create Delete.cshtml | CarmelSoftware/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4,kelong/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4 | Views/Comments/Delete.cshtml | Views/Comments/Delete.cshtml | @model RepositoryWithCaching.Models.Comment
@{
ViewBag.Title = "Delete";
}
<h2>Delete</h2>
<h3>Are you sure you want to delete this?</h3>
<fieldset>
<legend>Comment</legend>
<div class="display-label">
@Html.DisplayNameFor(model => model.Title )
</div>
<div class="display-field">
... | mit | C# | |
9f4aa23f0b2f811fbd8ae04489258c189ebddcdb | add LinterResult | jwldnr/VisualLinter | VisualLinter/LinterResult.cs | VisualLinter/LinterResult.cs | using Newtonsoft.Json;
using System.Collections.Generic;
namespace jwldnr.VisualLinter
{
[JsonObject]
internal class LinterResult
{
[JsonProperty("errorCount")]
public int ErrorCount { get; set; }
[JsonProperty("filePath")]
public string FilePath { get; set; }
[Js... | mit | C# | |
cb2b90882c1e7f3b241344e249872db244709816 | Create FrancisSetash.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/FrancisSetash.cs | src/Firehose.Web/Authors/FrancisSetash.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 FrancisSetash : IAmACommunityMember
{
public string FirstName => "Francis";
public string ... | mit | C# | |
326c7a2444bf8e26fc06bf04342f019262baead0 | Revert "Add optional PipeTo completion handlers" | akoshelev/akka.net,thelegendofando/akka.net,d--g/akka.net,skotzko/akka.net,heynickc/akka.net,nanderto/akka.net,trbngr/akka.net,AntoineGa/akka.net,alex-kondrashov/akka.net,simonlaroche/akka.net,michal-franc/akka.net,jordansjones/akka.net,derwasp/akka.net,thelegendofando/akka.net,alexvaluyskiy/akka.net,alexpantyukhin/akk... | src/core/Akka/Actor/PipeToSupport.cs | src/core/Akka/Actor/PipeToSupport.cs | //-----------------------------------------------------------------------
// <copyright file="PipeToSupport.cs" company="Akka.NET Project">
// Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
// Copyright (C) 2013-2015 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyright>
//-... | //-----------------------------------------------------------------------
// <copyright file="PipeToSupport.cs" company="Akka.NET Project">
// Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
// Copyright (C) 2013-2015 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyright>
//-... | apache-2.0 | C# |
8685d17f9f57216606399d847a4a52101b3064dc | Add missing help links for string representation analyzer | modulexcite/code-cracker,dmgandini/code-cracker,code-cracker/code-cracker,robsonalves/code-cracker,kindermannhubert/code-cracker,gerryaobrien/code-cracker,dlsteuer/code-cracker,thomaslevesque/code-cracker,andrecarlucci/code-cracker,GuilhermeSa/code-cracker,carloscds/code-cracker,thorgeirk11/code-cracker,AlbertoMonteiro... | src/CodeCracker/StringRepresentationAnalyzer.cs | src/CodeCracker/StringRepresentationAnalyzer.cs | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using System.Collections.Immutable;
namespace CodeCracker
{
/// <summary>
/// This analyzer produce 2 different hidden diagnostics one for regular string lite... | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using System.Collections.Immutable;
namespace CodeCracker
{
/// <summary>
/// This analyzer produce 2 different hidden diagnostics one for regular string lite... | apache-2.0 | C# |
e53eeb232f38c497da904d6ba41655f9b3c29372 | Add F.Map | farity/farity | Farity/Map.cs | Farity/Map.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Farity
{
public static partial class F
{
/// <summary>
/// Projects each element of a sequence into a new form.
/// Functions that do not mutate are recommended as projection functions.
/// </s... | mit | C# | |
e1d53b1359ee6d490c43382c2186c0f6c8d65778 | Create Problem145.cs | fireheadmx/ProjectEuler,fireheadmx/ProjectEuler | Problem145.cs | Problem145.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
namespace ProjectEuler.Problems
{
class Problem145
{
private int Reverse(int number)
{
int res = 0;
if (number % 10 > 0)
{
while (number > 0)
... | mit | C# | |
56508b0f50735c66b5c4b1b4655ccf8088583f60 | add datetime example parser | datalust/superpower,datalust/superpower | sample/DateTimeParser/DateTimeParser.cs | sample/DateTimeParser/DateTimeParser.cs | using System;
using Superpower;
using Superpower.Parsers;
namespace DateTimeParser
{
static public class DateTimeParser
{
private static TextParser<string> _2DigitParser =
from d1 in Character.Digit
from d2 in Character.Digit
select new string(new char[] {d1, d2});
... | apache-2.0 | C# | |
5cc0d1a480483f6686d32c35314488cb417bccab | Create SimpleArraySum.cs | michaeljwebb/Algorithm-Practice | HackerRank/SimpleArraySum.cs | HackerRank/SimpleArraySum.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static int simpleArraySum(int n, int[] ar) {
int result = 0;
for(n = 0; n < ar.Length; n++){
result += ar[n];
}
return result;
}
static void Main(String[] args)... | mit | C# | |
65fc5fc90aaaad1e07b7f74fa7fe8515af1df7cc | Create Owin.HTML5.Extensions.cs | GarethWright/OWIN.SelfHost.HTML5.Extension | Owin.HTML5.Extensions.cs | Owin.HTML5.Extensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Owin;
using Microsoft.Owin.FileSystems;
using Microsoft.Owin.StaticFiles;
namespace Owin
{
using AppFunc = Func<
IDictionary<string, object>, // Environment
Task>; // Done
publi... | apache-2.0 | C# | |
5050699cd50e706134d04cc52d8b83690e2920c0 | Add LateBoundConfigurationSection | RockFramework/RockLib.Configuration | RockLib.Configuration/LateBoundConfigurationSection.cs | RockLib.Configuration/LateBoundConfigurationSection.cs | using Microsoft.Extensions.Configuration;
using RockLib.Immutable;
using System;
using System.Reflection;
namespace RockLib.Configuration
{
/// <summary>
/// An object that is bindable to an instance of <see cref="IConfigurationSection"/> of a specific
/// format: one containing a <see cref="Type"/> prope... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.