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 |
|---|---|---|---|---|---|---|---|---|
76e0fc251c104a6acc9f4d8f86463dfe8c2cea4e | Add Repeat attribute (dotnet/extensions#1375) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Testing/src/xunit/ConditionalFactAttribute.cs | src/Testing/src/xunit/ConditionalFactAttribute.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 Xunit;
using Xunit.Sdk;
namespace Microsoft.AspNetCore.Testing.xunit
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple =... | // 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 Xunit;
using Xunit.Sdk;
namespace Microsoft.AspNetCore.Testing.xunit
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple =... | apache-2.0 | C# |
ffea18032a2da9ffd93a8d167a63f94dfe19f4a9 | delete the test repos | octokit/octokit.net,forki/octokit.net,eriawan/octokit.net,shiftkey-tester/octokit.net,khellang/octokit.net,octokit-net-test-org/octokit.net,devkhan/octokit.net,Sarmad93/octokit.net,hitesh97/octokit.net,octokit-net-test-org/octokit.net,Red-Folder/octokit.net,naveensrinivasan/octokit.net,ChrisMissal/octokit.net,gabrielwe... | clean-up-after-tests/Program.cs | clean-up-after-tests/Program.cs | using System;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Octokit;
using Octokit.Tests.Integration;
namespace clean_up_after_tests
{
class Program
{
static readonly Regex _repoNameRegex = new Regex(@"\-[0-9]{17}$");
static void Main()
{
if (He... | using System;
using Octokit.Tests.Integration;
namespace clean_up_after_tests
{
class Program
{
static void Main()
{
if (Helper.Credentials == null)
{
Console.WriteLine("The environment variable OCTOKIT_GITHUBUSERNAME and OCTOKIT_GITHUBPASSWORD must be s... | mit | C# |
a19399498065ef1ecd42b78c6e171168ce7692c1 | Remove redundant property attribute | mstrother/BmpListener | BmpListener/Bmp/BmpPeerHeader.cs | BmpListener/Bmp/BmpPeerHeader.cs | using System;
using System.Linq;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace BmpListener.Bmp
{
public class PeerHeader
{
public PeerHeader(byte[] data)
{
Decode(data);
}
public PeerType PeerType { get; private set; }
... | using System;
using System.Linq;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace BmpListener.Bmp
{
public class PeerHeader
{
public PeerHeader(byte[] data)
{
Decode(data);
}
[JsonConverter(typeof(StringEnumConverter))]
pu... | mit | C# |
f090ac53cdedc4e071754eb8afa738e48d96246f | Fix github version scraping | sqt/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,sqt/cactbot,sqt/cactbot | CactbotOverlay/VersionChecker.cs | CactbotOverlay/VersionChecker.cs | using System;
using System.Text.RegularExpressions;
namespace Cactbot {
// This class can determine the current plugin version, as well as the latest version
// released of the plugin on GitHub. It is inspired by the work of anoyetta in
// https://github.com/anoyetta/ACT.SpecialSpellTimer/blob/master/ACT.Speci... | using System;
using System.Text.RegularExpressions;
namespace Cactbot {
// This class can determine the current plugin version, as well as the latest version
// released of the plugin on GitHub. It is inspired by the work of anoyetta in
// https://github.com/anoyetta/ACT.SpecialSpellTimer/blob/master/ACT.Speci... | apache-2.0 | C# |
10db62603a9bf449b0f796308eb022f074524c20 | Test for empty session id | thisdata/thisdata-dotnet | tests/ClientTests.cs | tests/ClientTests.cs | using System;
using System.Web;
using System.IO;
using NUnit.Framework;
using ThisData;
namespace ThisData.Net.Tests
{
[TestFixture]
public class ClientTests
{
private HttpRequest _request;
private string _signature;
private string _payload;
private Client _client;
... | using System;
using System.Web;
using System.IO;
using NUnit.Framework;
using ThisData;
namespace ThisData.Net.Tests
{
[TestFixture]
public class ClientTests
{
private HttpRequest _request;
private string _signature;
private string _payload;
private Client _client;
... | mit | C# |
b43046946eb61ec0a52632f74314e93bcfb9ae93 | Rename variable | appharbor/appharbor-cli | src/AppHarbor/MaskedConsoleInput.cs | src/AppHarbor/MaskedConsoleInput.cs | using System;
namespace AppHarbor
{
public class MaskedConsoleInput : IMaskedInput
{
public virtual string Get()
{
string input = "";
ConsoleKeyInfo consoleKey;
do
{
consoleKey = Console.ReadKey(true);
if (consoleKey.Key != ConsoleKey.Backspace && consoleKey.Key != ConsoleKey.Enter)
{
... | using System;
namespace AppHarbor
{
public class MaskedConsoleInput : IMaskedInput
{
public virtual string Get()
{
string input = "";
ConsoleKeyInfo key;
do
{
key = Console.ReadKey(true);
if (key.Key != ConsoleKey.Backspace && key.Key != ConsoleKey.Enter)
{
input += key.KeyChar;
... | mit | C# |
87c330c397af51a54d08803c8f351328a9d89f01 | Set AzureTenantId from options | serilog/serilog-sinks-mssqlserver | src/Serilog.Sinks.MSSqlServer/Configuration/Implementations/Microsoft.Extensions.Configuration/MicrosoftExtensionsSinkOptionsProvider.cs | src/Serilog.Sinks.MSSqlServer/Configuration/Implementations/Microsoft.Extensions.Configuration/MicrosoftExtensionsSinkOptionsProvider.cs | using System;
using System.Globalization;
using Microsoft.Extensions.Configuration;
namespace Serilog.Sinks.MSSqlServer.Configuration
{
internal class MicrosoftExtensionsSinkOptionsProvider : IMicrosoftExtensionsSinkOptionsProvider
{
public MSSqlServerSinkOptions ConfigureSinkOptions(MSSqlServerSinkOp... | using System;
using System.Globalization;
using Microsoft.Extensions.Configuration;
namespace Serilog.Sinks.MSSqlServer.Configuration
{
internal class MicrosoftExtensionsSinkOptionsProvider : IMicrosoftExtensionsSinkOptionsProvider
{
public MSSqlServerSinkOptions ConfigureSinkOptions(MSSqlServerSinkOp... | apache-2.0 | C# |
4a74cc7180ff28c7efd343ffa82ef746fff028ec | make the HIcon class sealed | milleniumbug/Taxonomy | TaxonomyWpf/NativeExplorerInterface.cs | TaxonomyWpf/NativeExplorerInterface.cs | using System;
using System.Drawing;
using System.Runtime.InteropServices;
namespace TaxonomyWpf
{
public static class NativeExplorerInterface
{
[StructLayout(LayoutKind.Sequential)]
private struct SHFILEINFO
{
public IntPtr hIcon;
public int iIcon;
public uint dwAttributes;
[MarshalAs(UnmanagedTyp... | using System;
using System.Drawing;
using System.Runtime.InteropServices;
namespace TaxonomyWpf
{
public static class NativeExplorerInterface
{
[StructLayout(LayoutKind.Sequential)]
private struct SHFILEINFO
{
public IntPtr hIcon;
public int iIcon;
public uint dwAttributes;
[MarshalAs(UnmanagedTyp... | mit | C# |
3b56d027f19699988a10eb5e534702a873be51b1 | Enable automatic database migrations | johanhelsing/vaskelista,johanhelsing/vaskelista | Vaskelista/Migrations/Configuration.cs | Vaskelista/Migrations/Configuration.cs | namespace Vaskelista.Migrations
{
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<Vaskelista.Models.VaskelistaContext>
{
public Configuration()
{
Automatic... | namespace Vaskelista.Migrations
{
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<Vaskelista.Models.VaskelistaContext>
{
public Configuration()
{
Automatic... | mit | C# |
b0598c6f7457f8ce4889b1a466d9fe55b829a601 | add test | MartinRL/WebDevApi | WebDevApi.Test/CustomerResourceTest.cs | WebDevApi.Test/CustomerResourceTest.cs | using FluentAssertions;
using Nancy;
using Nancy.Testing;
using Xunit;
namespace WebDevApi.Test
{
public class CustomerResourceTest
{
[Fact]
public void get_should_return_customer_as_json()
{
var browser = new Browser(new Bootstrapper());
var response = browser.Get("/customers/1", with =>
{
with... | using FluentAssertions;
using Nancy;
using Nancy.Testing;
using Xunit;
namespace WebDevApi.Test
{
public class CustomerResourceTest
{
[Fact]
public void get_should_return_customer_as_json()
{
var browser = new Browser(new Bootstrapper());
var response = browser.Get("/customers/1", with =>
{... | mit | C# |
7331ee97b730a60fd9234b2f0e2bbf27325017da | Tidy up AssemblyInfo.cs | rlipscombe/vs-welcome-page | WelcomePage/Properties/AssemblyInfo.cs | WelcomePage/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("WelcomePage")]
[assembly: AssemblyDescription("WelcomePage Visual Studio Extension")]
[assembly: AssemblyCompany("Roger Lipscombe")]
[assembly: Assembly... | using System;
using System.Reflection;
using System.Resources;
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 ... | apache-2.0 | C# |
d1cea2109a62cd12475d7f9aaca17aace3beb875 | change protection level | pashchuk/graphic_modeling-labs,pashchuk/graphic_modeling-labs | lab2/MainVindowViewModel.cs | lab2/MainVindowViewModel.cs | using System.ComponentModel;
namespace lab1
{
public class MainVindowViewModel : INotifyPropertyChanged
{
private double _m = 10, _r = 10;
public double M
{
get { return _m; }
set
{
_m = value;
OnPropertyChanged(nameo... | using System.ComponentModel;
namespace lab1
{
public class MainVindowViewModel : INotifyPropertyChanged
{
private double _m = 10, _r = 10;
public double M
{
get { return _m; }
set
{
_m = value;
OnPropertyChanged(nameo... | mit | C# |
c34e70e987112045e325e085c4ba2c03f176ccfe | Update example | chris-peterson/Spiffy,danvallejo/Spiffy,danvallejo/Spiffy | src/Tests/TestConsoleApp/Program.cs | src/Tests/TestConsoleApp/Program.cs | using System;
using System.Threading;
using Spiffy.Monitoring;
namespace TestConsoleApp
{
class Program
{
static void Main()
{
// this should be the first line of your application
NLog.Initialize();
// key-value-pairs set here appear in every event message
... | using System;
using System.Threading;
using Spiffy.Monitoring;
namespace TestConsoleApp
{
class Program
{
static void Main()
{
GlobalEventContext.Instance.Set("Application", "TestConsole");
NLog.Initialize();
using (var context = new EventContext())
... | mit | C# |
b4b82eee62dbbe4e61f2bdf9ca65e9aa4704fca2 | Add test. | diryboy/roslyn,CyrusNajmabadi/roslyn,wvdd007/roslyn,ErikSchierboom/roslyn,bartdesmet/roslyn,sharwell/roslyn,MichalStrehovsky/roslyn,diryboy/roslyn,sharwell/roslyn,VSadov/roslyn,KirillOsenkov/roslyn,weltkante/roslyn,brettfo/roslyn,AlekseyTs/roslyn,VSadov/roslyn,jmarolf/roslyn,sharwell/roslyn,davkean/roslyn,tmat/roslyn,h... | src/EditorFeatures/CSharpTest/UseCompoundAssignment/UseCompoundAssignmentTests.cs | src/EditorFeatures/CSharpTest/UseCompoundAssignment/UseCompoundAssignmentTests.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.UseCompoundAss... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.UseCompoundAss... | mit | C# |
1f4cd4138aa94a1fe9d58f3915dc7cdc6f10a1b4 | Debug log store saves logs only when debugger is attached | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework | src/Server/Bit.Owin/Implementations/DebugLogStore.cs | src/Server/Bit.Owin/Implementations/DebugLogStore.cs | #define DEBUG
using System;
using System.Threading.Tasks;
using Bit.Core.Contracts;
using Bit.Core.Models;
using System.Diagnostics;
namespace Bit.Owin.Implementations
{
public class DebugLogStore : ILogStore
{
private readonly IContentFormatter _formatter;
public DebugLogStore(IContentFormat... | #define DEBUG
using System;
using System.Threading.Tasks;
using Bit.Core.Contracts;
using Bit.Core.Models;
using System.Diagnostics;
namespace Bit.Owin.Implementations
{
public class DebugLogStore : ILogStore
{
private readonly IContentFormatter _formatter;
public DebugLogStore(IContentFormat... | mit | C# |
9502cf08b04976cbf80610db545baf64b5f1ec39 | Use null-forgiving operator rather than assertion | ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework | osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs | osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.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.Diagnostics.CodeAnalysis;
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
/// Extensions that apply to all objects.
/// </su... | // 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.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using NUnit.Framework;
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
/// E... | mit | C# |
7af33cce1b4b712538ea55a584e1243240126110 | Make sure ToSourceSpan always returns a legal SourceSpan | jonathanvdc/Pixie,jonathanvdc/Pixie | Pixie.Loyc/SourceHelpers.cs | Pixie.Loyc/SourceHelpers.cs | using System;
using Pixie.Code;
using Loyc.Syntax;
namespace Pixie.Loyc
{
/// <summary>
/// Helper methods that bride the divide between Loyc and Pixie
/// source source references.
/// </summary>
public static class SourceHelpers
{
/// <summary>
/// Creates a Pixie source regi... | using System;
using Pixie.Code;
using Loyc.Syntax;
namespace Pixie.Loyc
{
/// <summary>
/// Helper methods that bride the divide between Loyc and Pixie
/// source source references.
/// </summary>
public static class SourceHelpers
{
/// <summary>
/// Creates a Pixie source regi... | mit | C# |
b25b65b279338c56740307c8e1bbc02d3de28544 | Add TabPage constructor to pass single control for the tab and padding | l8s/Eto,bbqchickenrobot/Eto-1,l8s/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,l8s/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1 | Source/Eto/Forms/Controls/TabPage.cs | Source/Eto/Forms/Controls/TabPage.cs | using System;
using System.Collections;
using Eto.Drawing;
using System.Collections.ObjectModel;
namespace Eto.Forms
{
public interface ITabPage : IContainer
{
string Text { get; set; }
Image Image { get; set; }
}
/// <summary>
/// Enhanced tab pages that support
/// additional functionality
/// </summary... | using System;
using System.Collections;
using Eto.Drawing;
using System.Collections.ObjectModel;
namespace Eto.Forms
{
public interface ITabPage : IContainer
{
string Text { get; set; }
Image Image { get; set; }
}
/// <summary>
/// Enhanced tab pages that support
/// additional functionality
/// </summary... | bsd-3-clause | C# |
34c2c2a068283e26a0a0813caaa4345daf6180f8 | Update AssemblyInfo.cs | danshapir/DOTNET.Stringifier | Stringify/Properties/AssemblyInfo.cs | Stringify/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("Str... | 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("Str... | mit | C# |
e0c9b161851405b43b1757fd5c4f77483c3c8872 | use IsLocal in DatabaseInfo | NaamloosDT/ModCore,NaamloosDT/ModCore | ModCore/Database/DatabaseInfo.cs | ModCore/Database/DatabaseInfo.cs | using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ModCore.Logic.EntityFramework.AttributeImpl;
namespace ModCore.Database
{
[Table("mcore_database_info")]
public class DatabaseInfo
{
[Column("id")]
public int Id { get; set; }
... | using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ModCore.Logic.EntityFramework.AttributeImpl;
namespace ModCore.Database
{
[Table("mcore_database_info")]
public class DatabaseInfo
{
[Column("id")]
public int Id { get; set; }
... | mit | C# |
f97eaad7414dd9653059c714911e6b823bc132ff | Add test for SimpleJson List deserialization bug | github-for-unity/Unity,github-for-unity/Unity,github-for-unity/Unity | src/tests/UnitTests/Primitives/SerializationTests.cs | src/tests/UnitTests/Primitives/SerializationTests.cs | using GitHub.Unity;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace UnitTests.Primitives
{
[TestFixture]
class SerializationTests
{
[Test]
public void DateTimeSerializationRoundTrip()
... | using GitHub.Unity;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace UnitTests.Primitives
{
[TestFixture]
class SerializationTests
{
[Test]
public void DateTimeSerializationRoundTrip()
... | mit | C# |
9240b2e3fe54a27e506d56961e25473dcb2a0eb7 | Change Json Library | CloudBreadProject/CloudBread-Client-Unity,CloudBreadProject/CloudBread-Client-Unity,CloudBreadProject/CloudBread-Client-Unity,CloudBreadProject/CloudBread-Client-Unity | Assets/Scripts/CloudBread/JsonParser.cs | Assets/Scripts/CloudBread/JsonParser.cs | using System;
using System.IO;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using JsonFx.Json;
// Json Library Change
namespace AssemblyCSharp
{
public class JsonParser
{
public JsonParser ()
{
}
public static string Write(object obj){
return JsonUtility.ToJson(obj);
//... | using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using JsonFx.Json;
namespace AssemblyCSharp
{
public class JsonParser
{
public JsonParser ()
{
}
public static string Write(object obj){
return JsonFx.Json.JsonWriter.Serialize (obj);
}
public static string W... | mit | C# |
d5d365f022967365a3aeee0909cbea8693e81c80 | set character position on correct side of door collider | virtuoushub/game-off-2016,whoa-algebraic/game-off-2016,whoa-algebraic/game-off-2016,virtuoushub/game-off-2016,whoa-algebraic/game-off-2016,virtuoushub/game-off-2016 | Assets/Scripts/RoomNavigationManager.cs | Assets/Scripts/RoomNavigationManager.cs | using UnityEngine;
using System.Collections;
public class RoomNavigationManager : MonoBehaviour {
public GameObject PlayerGameObject;
public GameObject[] RoomPrefabs;
private GameObject activeRoomPrefab;
void Awake() {
activeRoomPrefab = Instantiate(RoomPrefabs[0]);
activeRoomPre... | using UnityEngine;
using System.Collections;
public class RoomNavigationManager : MonoBehaviour {
public GameObject PlayerGameObject;
public GameObject[] RoomPrefabs;
private GameObject activeRoomPrefab;
void Awake() {
activeRoomPrefab = Instantiate(RoomPrefabs[0]);
activeRoomPre... | mit | C# |
f823b64e04dad0ab6a2ff995185a53a8386f7c81 | Clean up and licenses | SimplePersistence/SimplePersistence.Model | SimplePersistence.Model/src/SimplePersistence.Model/EntityWithSoftDeleteAndVersionAsLong.cs | SimplePersistence.Model/src/SimplePersistence.Model/EntityWithSoftDeleteAndVersionAsLong.cs | #region License
// The MIT License (MIT)
//
// Copyright (c) 2016 SimplePersistence
//
// 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 ... | namespace SimplePersistence.Model
{
/// <summary>
/// Represents an entity that has an unique identifier, soft delete and version info,
/// using a long for the <see cref="IHaveVersion{T}.Version"/>.
/// </summary>
/// <typeparam name="TIdentity">The identifier type</typeparam>
public abstract... | mit | C# |
7fdbeb8c1ef4b1b0ce8c4fb397617d770896280a | add GetAssembly() | TakeAsh/cs-TakeAshUtility | TakeAshUtility/AssemblyHelper.cs | TakeAshUtility/AssemblyHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace TakeAshUtility {
public static class AssemblyHelper {
public static T GetAttribute<T>(this Assembly assembly)
where T : Attribute {
if (assembly ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace TakeAshUtility {
public static class AssemblyHelper {
public static T GetAttribute<T>(this Assembly assembly)
where T : Attribute {
if (assembly ... | mit | C# |
5a9dce8ea8f353710600058e9bf6029b9520c49b | Update tests | cube-soft/Cube.Core,cube-soft/Cube.Core | Tests/Operations/FileInfoTest.cs | Tests/Operations/FileInfoTest.cs | /* ------------------------------------------------------------------------- */
///
/// Copyright (c) 2010 CubeSoft, Inc.
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// ht... | /* ------------------------------------------------------------------------- */
///
/// Copyright (c) 2010 CubeSoft, Inc.
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// ht... | apache-2.0 | C# |
a8dfcdebf9c6ec918742ce58210a622e656f628d | Add obsolete wrappers for compatability | deckar01/libsodium-net,fraga/libsodium-net,BurningEnlightenment/libsodium-net,adamcaudill/libsodium-net,deckar01/libsodium-net,bitbeans/libsodium-net,tabrath/libsodium-core,fraga/libsodium-net,BurningEnlightenment/libsodium-net,adamcaudill/libsodium-net,bitbeans/libsodium-net | libsodium-net/SodiumCore.cs | libsodium-net/SodiumCore.cs | using System;
using System.Runtime.InteropServices;
namespace Sodium
{
/// <summary>
/// libsodium core information.
/// </summary>
public static class SodiumCore
{
static SodiumCore()
{
SodiumLibrary.init();
}
/// <summary>Gets random bytes</summary>
/// <param name="count">The co... | using System;
using System.Runtime.InteropServices;
namespace Sodium
{
/// <summary>
/// libsodium core information.
/// </summary>
public static class SodiumCore
{
static SodiumCore()
{
SodiumLibrary.init();
}
/// <summary>Gets random bytes</summary>
/// <param name="count">The co... | mit | C# |
924e2fbdbb410bc3d586ec8a03e9995022bf0711 | Use component | CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction | CollAction/Views/Donation/Donate.cshtml | CollAction/Views/Donation/Donate.cshtml | @using Stripe
@using Microsoft.Extensions.Options
@inject IOptions<RequestOptions> StripeOptions
@{
ViewData["Title"] = "Donate";
}
<div id="donation-box" /> | @using Stripe
@using Microsoft.Extensions.Options
@inject IOptions<RequestOptions> StripeOptions
@{
ViewData["Title"] = "Donate";
}
<h1>Donate</h1>
<form action="your-server-side-code" method="POST">
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="@StripeOpti... | agpl-3.0 | C# |
0afa3fa423f2e5994bd08037df548905e3488e14 | Make LocalizationManager use English by default | NitorInc/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare,uulltt/NitoriWare,plrusek/NitoriWare | Assets/Scripts/Localization/LocalizationManager.cs | Assets/Scripts/Localization/LocalizationManager.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
public class LocalizationManager : MonoBehaviour
{
private const string NotFoundString = "LOCALIZED TEXT NOT FOUND";
public static LocalizationManager instance;
[SerializeField]
private string forceLanguage;
private... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
public class LocalizationManager : MonoBehaviour
{
private const string NotFoundString = "LOCALIZED TEXT NOT FOUND";
public static LocalizationManager instance;
[SerializeField]
private string forceLanguage;
private... | mit | C# |
41e1b35006858deee994a553ca65bbc90148a494 | Add code to leave triggerboxes | stacy89/Authentic-Realities,stacy89/Authentic-Realities,stacy89/Authentic-Realities | Assets/scipts/MainPlayerController.cs | Assets/scipts/MainPlayerController.cs | using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class MainPlayerController : MonoBehaviour {
public float speed;
public GameObject cube1;
public GameObject cube2;
public GameObject cube3;
public GameObject cube4;
public GameObject cube5;
public GameOb... | using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class MainPlayerController : MonoBehaviour {
public float speed;
public GameObject cube1;
public GameObject cube2;
public GameObject cube3;
public GameObject cube4;
public GameObject cube5;
public GameOb... | mit | C# |
6b4e684ca81fc00eae79a1f8f47f5e867c1d89c2 | Add virtual keyword to TryGetProps() | ForsakenShell/CommunityCoreLibrary,RimWorldCCLTeam/CommunityCoreLibrary,isistoy/CommunityCoreLibrary | DLL_Project/Verbs/Verb_ShootExtended.cs | DLL_Project/Verbs/Verb_ShootExtended.cs | using RimWorld;
using Verse;
namespace CommunityCoreLibrary
{
public class Verb_ShootExtended : Verb_LaunchProjectile
{
private int pelletCount;
private float expMin;
private float expMid;
private float expMax;
private bool gotProps;
protected override int ShotsPerBurst =>... | using RimWorld;
using Verse;
namespace CommunityCoreLibrary
{
public class Verb_ShootExtended : Verb_LaunchProjectile
{
private int pelletCount;
private float expMin;
private float expMid;
private float expMax;
private bool gotProps;
protected override int ShotsPerBurst =>... | unlicense | C# |
748a4748d44b501e87f406c2c5d2f2bf05a9eb78 | Fix memory leak | Quickshot/DupImageLib,Quickshot/DupImage | DupImageLib/ImageMagickTransformer.cs | DupImageLib/ImageMagickTransformer.cs | using System.IO;
using ImageMagick;
namespace DupImageLib
{
/// <summary>
/// Implements IImageTransformer interface using Magick.NET for image transforms.
/// </summary>
public class ImageMagickTransformer : IImageTransformer
{
public byte[] TransformImage(Stream stream, int width, int he... | using System.IO;
using ImageMagick;
namespace DupImageLib
{
/// <summary>
/// Implements IImageTransformer interface using Magick.NET for image transforms.
/// </summary>
public class ImageMagickTransformer : IImageTransformer
{
public byte[] TransformImage(Stream stream, int width, int he... | unknown | C# |
4882556659cb85ce12b62c204e576e2b51c99223 | Set version. | Talagozis/EvolutionaryComputation | EvolutionaryComputation/Properties/AssemblyInfo.cs | EvolutionaryComputation/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | apache-2.0 | C# |
51e609edb1bd3b80620b2502325c022ef3093b33 | Modify IBiggyStore to include all CRUD methods, remove IUpdateableBiggyStore #103 | jjchiw/biggy,xivSolutions/biggy,garethbrown/biggy,jjchiw/biggy,garethbrown/biggy,jjchiw/biggy,garethbrown/biggy | Biggy/IBiggyStore.cs | Biggy/IBiggyStore.cs | using System.Collections.Generic;
using System.Linq;
namespace Biggy
{
public interface IBiggyStore<T> {
List<T> Load();
void SaveAll(List<T> items);
void Clear();
T Add(T item);
List<T> Add(List<T> items);
T Update(T item);
T Remove(T item);
List<T> Remove(List<T> items);
}
pub... | using System.Collections.Generic;
using System.Linq;
namespace Biggy
{
public interface IBiggyStore<T>
{
List<T> Load();
void SaveAll(List<T> items);
void Clear();
T Add(T item);
List<T> Add(List<T> items);
}
public interface IUpdateableBiggyStore<T> : IBi... | bsd-3-clause | C# |
63849684692d62211120b7577826a1d26cda6e04 | Fix Necronomicon not turning the correct number of pages when cycling | samfun123/KtaneTwitchPlays | TwitchPlaysAssembly/Src/ComponentSolvers/Modded/Misc/NecronomiconComponentSolver.cs | TwitchPlaysAssembly/Src/ComponentSolvers/Modded/Misc/NecronomiconComponentSolver.cs | using System;
using System.Collections;
using UnityEngine;
public class NecronomiconComponentSolver : ComponentSolver
{
public NecronomiconComponentSolver(TwitchModule module) :
base(module)
{
_component = Module.BombComponent.GetComponent(ComponentType);
selectables = Module.BombComponent.GetComponent<KMSele... | using System;
using System.Collections;
using UnityEngine;
public class NecronomiconComponentSolver : ComponentSolver
{
public NecronomiconComponentSolver(TwitchModule module) :
base(module)
{
_component = Module.BombComponent.GetComponent(ComponentType);
selectables = Module.BombComponent.GetComponent<KMSele... | mit | C# |
d5078bc5e3a14a311dbc4f9369153cb669190c19 | Attach SetEditorOnly function to GameObjects rather than MonoBehaviors | YesAndGames/YesAndEngine | Editor/YesAndEditor/YesAndEditorUtil.cs | Editor/YesAndEditor/YesAndEditorUtil.cs | using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using System.Linq;
namespace YesAndEditor {
// Static class packed to the brim with helpful Unity editor utilities.
public static class YesAndEditorUtil {
// Forcefully mark open loaded scenes dirty and save them.
[MenuItem ("File/Force ... | using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using System.Linq;
namespace YesAndEditor {
// Static class packed to the brim with helpful Unity editor utilities.
public static class YesAndEditorUtil {
// Forcefully mark open loaded scenes dirty and save them.
[MenuItem ("File/Force ... | apache-2.0 | C# |
23729245f76e9b35bfa6d821568262ab718430c0 | make sure events aren't null | JaredGG/GameWork | GameWork.Core.States/Event/EventStateTransition.cs | GameWork.Core.States/Event/EventStateTransition.cs | using System;
namespace GameWork.Core.States.Event
{
public abstract class EventStateTransition
{
internal event Action<string> EnterStateEvent;
internal event Action<string> ExitStateEvent;
protected virtual void OnEnter(string fromStateName)
{
}
protected virtual void OnExit(string toStateName)
{
... | using System;
namespace GameWork.Core.States.Event
{
public abstract class EventStateTransition
{
internal event Action<string> EnterStateEvent;
internal event Action<string> ExitStateEvent;
protected virtual void OnEnter(string fromStateName)
{
}
protected virtual void OnExit(string toStateName)
{
... | mit | C# |
caadf5a0055a5a93af6706cf302abb6be01ff263 | Add FileNameType.InstanceAllowStartWithDots, which allows file names starting with the dot character. | PenguinF/sandra-three | Eutherion/Win/Storage/FileNameType.cs | Eutherion/Win/Storage/FileNameType.cs | #region License
/*********************************************************************************
* FileNameType.cs
*
* Copyright (c) 2004-2019 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | #region License
/*********************************************************************************
* FileNameType.cs
*
* Copyright (c) 2004-2019 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | apache-2.0 | C# |
a34455eb9289fb950db75874f44996db933ba17d | Update cli command start | WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework | Framework.Cli/Command/CommandStart.cs | Framework.Cli/Command/CommandStart.cs | namespace Framework.Cli.Command
{
using Framework.Cli.Config;
using Microsoft.Extensions.CommandLineUtils;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
/// <summary>
/// C... | namespace Framework.Cli.Command
{
using Framework.Cli.Config;
using Microsoft.Extensions.CommandLineUtils;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
/// <summary>
/// C... | mit | C# |
7989dc49b6c40c5164a16acbedb23b477c6d1046 | Create node_modules/@types after project creation | paulvanbrenk/nodejstools,kant2002/nodejstools,kant2002/nodejstools,lukedgr/nodejstools,kant2002/nodejstools,paulvanbrenk/nodejstools,Microsoft/nodejstools,lukedgr/nodejstools,paulvanbrenk/nodejstools,Microsoft/nodejstools,kant2002/nodejstools,paulvanbrenk/nodejstools,kant2002/nodejstools,paulvanbrenk/nodejstools,Micros... | Nodejs/Product/ProjectWizard/NpmWizardExtension.cs | Nodejs/Product/ProjectWizard/NpmWizardExtension.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using Microsoft.VisualStudio.TemplateWizard;
namespace Microsoft.NodejsTools.Pro... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.VisualStudio.TemplateWizard;
namespace Microsoft.NodejsTools.ProjectWizard
{
... | apache-2.0 | C# |
4de71072386269d48813d508c085d305bbb79d32 | Update url | Franklin89/Blog,Franklin89/Blog | build.cake | build.cake | // The following environment variables need to be set for Publish target:
// NETLIFY_TOKEN
#tool "nuget:https://api.nuget.org/v3/index.json?package=Wyam&version=2.0.0"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Wyam&version=2.0.0"
#addin "NetlifySharp"
using NetlifySharp;
////////////////////////... | // The following environment variables need to be set for Publish target:
// NETLIFY_TOKEN
#tool "nuget:https://api.nuget.org/v3/index.json?package=Wyam&version=2.0.0"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Wyam&version=2.0.0"
#addin "NetlifySharp"
using NetlifySharp;
////////////////////////... | mit | C# |
133c01c171e531f674bb356440329ddd9331f1b8 | Add empty constructor for GenericPosition | Visagalis/Oxide,Visagalis/Oxide,LaserHydra/Oxide,LaserHydra/Oxide | Oxide.Core/Libraries/Covalence/IPlayerCharacter.cs | Oxide.Core/Libraries/Covalence/IPlayerCharacter.cs | namespace Oxide.Core.Libraries.Covalence
{
/// <summary>
/// Represents a position of a point in 3D space
/// </summary>
public class GenericPosition
{
public readonly float X, Y, Z;
public GenericPosition()
{
}
public GenericPosition(float x, float... | namespace Oxide.Core.Libraries.Covalence
{
/// <summary>
/// Represents a position of a point in 3D space
/// </summary>
public struct GenericPosition
{
public readonly float X, Y, Z;
public GenericPosition(float x, float y, float z)
{
X = x; Y = y; Z = z;
... | mit | C# |
4060ee7a42af7d990a62603d78b9b238ab379e77 | Fix cake error | stormpath/stormpath-dotnet-owin-middleware | build.cake | build.cake | var configuration = Argument("configuration", "Debug");
Task("Clean")
.Does(() =>
{
CleanDirectory("./artifacts/");
});
Task("Restore")
.Does(() =>
{
DotNetCoreRestore();
});
Task("Build")
.Does(() =>
{
var projects = GetFiles("./src/**/*.csproj");
Console.WriteLine("Building {0} projects", projects... | var configuration = Argument("configuration", "Debug");
Task("Clean")
.Does(() =>
{
CleanDirectory("./artifacts/");
});
Task("Restore")
.Does(() =>
{
DotNetCoreRestore();
});
Task("Build")
.Does(() =>
{
DotNetCoreBuild("./src/**/*.csproj", new DotNetCoreBuildSettings
{
Configuration = config... | apache-2.0 | C# |
a0a6bac7e3d7fe5a2c0d50e27cc8468c7d2486a5 | set nuget package include symbols fiels | dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP,ouraspnet/cap | build.cake | build.cake | #addin "nuget:https://www.nuget.org/api/v2?package=Newtonsoft.Json&version=9.0.1"
#load "./build/index.cake"
var target = Argument("target", "Default");
var build = BuildParameters.Create(Context);
var util = new Util(Context, build);
Task("Clean")
.Does(() =>
{
if (DirectoryExists("./artifacts"))
{
DeleteDire... | #addin "nuget:https://www.nuget.org/api/v2?package=Newtonsoft.Json&version=9.0.1"
#load "./build/index.cake"
var target = Argument("target", "Default");
var build = BuildParameters.Create(Context);
var util = new Util(Context, build);
Task("Clean")
.Does(() =>
{
if (DirectoryExists("./artifacts"))
{
DeleteDire... | mit | C# |
cbd24719e7c66f37f04bd170b6d83ee2d078061f | Add missing doc. Update NuGet. | maxmind/GeoIP2-dotnet | GeoIP2/Responses/AnonymousIPResponse.cs | GeoIP2/Responses/AnonymousIPResponse.cs | using Newtonsoft.Json;
namespace MaxMind.GeoIP2.Responses
{
/// <summary>
/// This class represents the GeoIP2 Anonymous IP response.
/// </summary>
public class AnonymousIPResponse : AbstractResponse
{
/// <summary>
/// Constructor
/// </summary>
public AnonymousIP... | using Newtonsoft.Json;
namespace MaxMind.GeoIP2.Responses
{
/// <summary>
/// This class represents the GeoIP2 Anonymous IP response.
/// </summary>
public class AnonymousIPResponse : AbstractResponse
{
/// <summary>
/// Constructor
/// </summary>
public AnonymousIP... | apache-2.0 | C# |
df01ae544c28da88e18146f0f8126194f388bddc | Remove unused field from previous commit | developerforce/visual-studio-tools | src/Salesforce.VisualStudio.Services/ConnectedService/SalesforceConnectedServiceProvider.cs | src/Salesforce.VisualStudio.Services/ConnectedService/SalesforceConnectedServiceProvider.cs | using Microsoft.VisualStudio.ConnectedServices;
using System;
using System.ComponentModel.Composition;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;
namespace Salesforce.VisualStudio.Services.ConnectedService
{
[Export(typeof(ConnectedServiceProvider))]
[ExportMeta... | using Microsoft.VisualStudio.ConnectedServices;
using System;
using System.ComponentModel.Composition;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace Salesforce.VisualStudio.Services.ConnectedService
{
[Export(typeof(ConnectedServic... | bsd-3-clause | C# |
77c4d73ae967f6645cdfc928ea920a12f04a4b1a | write exceptions on migration error | mehrandvd/Tralus,mehrandvd/Tralus | Framework/Source/Tralus.Framework.PowerShell/Migration/Cmdlets/UpdateTralusDatabaseCmdlet.cs | Framework/Source/Tralus.Framework.PowerShell/Migration/Cmdlets/UpdateTralusDatabaseCmdlet.cs | using System;
using System.Linq;
using System.Management.Automation;
namespace Tralus.Framework.PowerShell.Migration
{
[Cmdlet(VerbsData.Update, "TralusDatabase", SupportsShouldProcess = true)]
public class UpdateTralusDatabaseCmdlet : TralusMigrationCmdletBase
{
protected override void ProcessRec... | using System.Linq;
using System.Management.Automation;
namespace Tralus.Framework.PowerShell.Migration
{
[Cmdlet(VerbsData.Update, "TralusDatabase", SupportsShouldProcess = true)]
public class UpdateTralusDatabaseCmdlet : TralusMigrationCmdletBase
{
protected override void ProcessRecord()
... | apache-2.0 | C# |
a319fbe7ddef4ee8c29da2c2233fc95f5438db14 | Change way to handle default for version of SqlServer in batch xml element | Seddryck/NBi,Seddryck/NBi | NBi.Xml/Decoration/Command/SqlRunXml.cs | NBi.Xml/Decoration/Command/SqlRunXml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Serialization;
using NBi.Core.Etl;
using NBi.Xml.Items;
using System.IO;
using NBi.Core.Batch;
using NBi.Xml.Settings;
using System.ComponentModel;
namespace NBi.Xml.Decoration.Command
{
public class SqlRunXml : Decor... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Serialization;
using NBi.Core.Etl;
using NBi.Xml.Items;
using System.IO;
using NBi.Core.Batch;
using NBi.Xml.Settings;
using System.ComponentModel;
namespace NBi.Xml.Decoration.Command
{
public class SqlRunXml : Decor... | apache-2.0 | C# |
3c8f2a51b5f45692ab58dff0bb7e842225c7f907 | Clean Up | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api/Authentication/AuthenticationService.cs | src/CommitmentsV2/SFA.DAS.CommitmentsV2.Api/Authentication/AuthenticationService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Http;
using SFA.DAS.CommitmentsV2.Authentication;
using SFA.DAS.CommitmentsV2.Types;
using IAuthenticationService = SFA.DAS.CommitmentsV2.Authentication.IAuthenticationService;
namespace SFA.DAS.CommitmentsV2.Api.Authenticat... | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Http;
using SFA.DAS.CommitmentsV2.Authentication;
using SFA.DAS.CommitmentsV2.Types;
using IAuthenticationService = SFA.DAS.CommitmentsV2.Authentication.IAuthenticationService;
namespace SFA.DAS.CommitmentsV2.Api.Authenticat... | mit | C# |
80147fc4fda3a59b56ceb1360583a649d2f7b395 | remove repeated notifications | swsch/FacePalm | FacePalm/LineBase.cs | FacePalm/LineBase.cs | using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Controls;
using System.Windows.Media;
using FacePalm.Annotations;
namespace FacePalm {
public abstract class LineBase : INotifyPropertyChanged {
private Marker _m1;
private Marker _m2;
public string Id... | using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Controls;
using System.Windows.Media;
using FacePalm.Annotations;
namespace FacePalm {
public abstract class LineBase : INotifyPropertyChanged {
private Marker _m1;
private Marker _m2;
public string Id... | mit | C# |
ff1af2036da056aa873254daf811e8177a106940 | update getString() to use getElementWithLikeSearch() | yasokada/unity-160820-Inventory-UI | Assets/DataBaseManager.cs | Assets/DataBaseManager.cs | using UnityEngine;
//using System.Collections;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using NS_MyStringUtil;
/*
* - update getString() to use getElementWithLikeSearch()
* - add getElementWithLikeSearch()
* - add dictionary [m_dic]
* - add [kIndex_checkDate]
* - add [kInd... | using UnityEngine;
//using System.Collections;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using NS_MyStringUtil;
/*
* - add getElementWithLikeSearch()
* - add dictionary [m_dic]
* - add [kIndex_checkDate]
* - add [kIndex_XXX] such as kIndex_row
* v0.1 2016 Aug. 23
* - add ... | mit | C# |
2e853fca631cffa0369b1a86f787114eb4af53f8 | Fix a few | prepare/websocket-sharp,sinha-abhishek/websocket-sharp,microdee/websocket-sharp,hybrid1969/websocket-sharp,alberist/websocket-sharp,juoni/websocket-sharp,sta/websocket-sharp,alberist/websocket-sharp,prepare/websocket-sharp,juoni/websocket-sharp,Liryna/websocket-sharp,zq513705971/WebSocketApp,sta/websocket-sharp,hybrid1... | websocket-sharp/Server/ServerState.cs | websocket-sharp/Server/ServerState.cs | #region License
/*
* ServerState.cs
*
* The MIT License
*
* Copyright (c) 2013-2014 sta.blockhead
*
* 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 wit... | #region License
/*
* ServerState.cs
*
* The MIT License
*
* Copyright (c) 2014 sta.blockhead
*
* 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 ... | mit | C# |
f474e5f5e756905b1801c68a0ac1475d8f62ee07 | Update Iri.cs | mganss/HtmlSanitizer | src/HtmlSanitizer/Iri.cs | src/HtmlSanitizer/Iri.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ganss.XSS
{
/// <summary>
/// Represents an Internationalized Resource Identifier.
/// </summary>
public class Iri
{
/// <summary>
/// Gets or sets the value of the IRI.
/// </su... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ganss.XSS
{
/// <summary>
/// Represents an Internationalized Resource Identifier
/// </summary>
public class Iri
{
/// <summary>
/// Gets or sets the value of the IRI.
/// </sum... | mit | C# |
e0a39211495604411fc0f214a045e48365b410f1 | handle nested invokes | neilthompson19/nslim,unclebob/nslim | source/mtee/Operators/DefaultRuntime.cs | source/mtee/Operators/DefaultRuntime.cs | // Copyright © Syterra Software Inc. All rights reserved.
// The use and distribution terms for this software are covered by the Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
// which can be found in the file license.txt at the root of this distribution. By using this software in any fashion, you ... | // Copyright © Syterra Software Inc. All rights reserved.
// The use and distribution terms for this software are covered by the Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
// which can be found in the file license.txt at the root of this distribution. By using this software in any fashion, you ... | epl-1.0 | C# |
69ab015b38b6859f4215f99b90a501f65a1383ba | Revert "conf" | Portafolio-titulo2017-Grupo3/Sistema_escritorio_NET | OrionEscritorio/OrionEscritorio/TEST_RAMA.Designer.cs | OrionEscritorio/OrionEscritorio/TEST_RAMA.Designer.cs | namespace OrionEscritorio
{
partial class TEST_RAMA
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
///... | namespace OrionEscritorio
{
partial class TEST_RAMA
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
///... | mit | C# |
2c00a4791ca25d79bca0a06e80fd504ffead61a8 | Add Scheduler note | carbon/Amazon | src/Amazon.Core/Scheduling/Scheduler.cs | src/Amazon.Core/Scheduling/Scheduler.cs | using System;
using System.Threading.Tasks;
namespace Amazon.Scheduling
{
public static class Scheduler
{
public static async Task<T> ExecuteAsync<T>(this RetryPolicy policy, Func<Task<T>> action)
{
Exception lastError;
int retryCount = 0;
do
... | using System;
using System.Threading.Tasks;
namespace Amazon.Scheduling
{
public static class Scheduler
{
public static async Task<T> ExecuteAsync<T>(this RetryPolicy policy, Func<Task<T>> action)
{
Exception lastError;
int retryCount = 0;
do
... | mit | C# |
fbdf635f7f12804a2bd5cf69e0beee796a6c3dc8 | Fix typo in TextAlignLast.cs | AngleSharp/AngleSharp.Css,AngleSharp/AngleSharp.Css,AngleSharp/AngleSharp.Css | src/AngleSharp.Css/Dom/TextAlignLast.cs | src/AngleSharp.Css/Dom/TextAlignLast.cs | namespace AngleSharp.Css.Dom
{
/// <summary>
/// An enumeration with all possible text last alignments.
/// </summary>
public enum TextAlignLast : byte
{
/// <summary>
/// The affected line is aligned per the value of text-align, unless
/// text-align is justify, in which case the effect is the same as
/... | namespace AngleSharp.Css.Dom
{
/// <summary>
/// An enumeration with all possible text last alignments.
/// </summary>
public enum TextAlignLast : byte
{
/// <summary>
/// The affected line is aligned per the value of text-align, unless
/// text-align is justify, in which case the effect is the same as
/... | mit | C# |
132a6226bfebc30c075c1e19c4f4bd1de4d409bd | Initialize CreateCommand with an ApplicationConfiguration rather than IFileSystem | appharbor/appharbor-cli | src/AppHarbor/Commands/CreateCommand.cs | src/AppHarbor/Commands/CreateCommand.cs | using System;
namespace AppHarbor.Commands
{
public class CreateCommand : ICommand
{
private readonly AppHarborClient _appHarborClient;
private readonly ApplicationConfiguration _applicationConfiguration;
public CreateCommand(AppHarborClient appHarborClient, ApplicationConfiguration applicationConfiguration)... | using System;
namespace AppHarbor.Commands
{
public class CreateCommand : ICommand
{
private readonly AppHarborClient _appHarborClient;
private readonly IFileSystem _fileSystem;
public CreateCommand(AppHarborClient appHarborClient, IFileSystem fileSystem)
{
_appHarborClient = appHarborClient;
_fileSy... | mit | C# |
aefa58bdc4b1dabf5f8bb8832867b01ca5e39d26 | Optimize DefinitionList collection changed handler. | wieslawsoltes/Perspex,Perspex/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Perspex,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/... | src/Avalonia.Controls/DefinitionList.cs | src/Avalonia.Controls/DefinitionList.cs | using System.Collections;
using System.Collections.Specialized;
using Avalonia.Collections;
#nullable enable
namespace Avalonia.Controls
{
public abstract class DefinitionList<T> : AvaloniaList<T> where T : DefinitionBase
{
public DefinitionList()
{
ResetBehavior = ResetBehavior.Re... | using System;
using System.Collections.Specialized;
using System.Linq;
using Avalonia.Collections;
namespace Avalonia.Controls
{
public abstract class DefinitionList<T> : AvaloniaList<T> where T : DefinitionBase
{
public DefinitionList()
{
ResetBehavior = ResetBehavior.Remove;
... | mit | C# |
def6ae13145e7cf2532e9385b571fd1dfd81d143 | Set CreateOnly to false by defaultso publish is true by default. | mdavid/nuget,mdavid/nuget | src/CommandLine/Commands/PushCommand.cs | src/CommandLine/Commands/PushCommand.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using NuGet.Common;
namespace NuGet.Commands {
[Export(typeof(ICommand))]
[Command(typeof(NuGetResources), "push", "PushCommandDescription", AltName="pu",
MinArgs = 2, MaxArgs = 2, UsageD... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using NuGet.Common;
namespace NuGet.Commands {
[Export(typeof(ICommand))]
[Command(typeof(NuGetResources), "push", "PushCommandDescription", AltName="pu",
MinArgs = 2, MaxArgs = 2, UsageD... | apache-2.0 | C# |
f6a9a8d213e69c23fa7469f4b3c0d284ee857343 | Fix whitespace | spicypixel/cs-concurrency-kit,spicypixel/cs-concurrency-kit,spicypixel/cs-concurrency-kit | Source/SpicyPixel.Threading.Unity/SharedConcurrentBehaviour.cs | Source/SpicyPixel.Threading.Unity/SharedConcurrentBehaviour.cs | /*
Author: Aaron Oneal, http://aarononeal.info
Copyright (c) 2012 Spicy Pixel, http://spicypixel.com
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 limita... | /*
Author: Aaron Oneal, http://aarononeal.info
Copyright (c) 2012 Spicy Pixel, http://spicypixel.com
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 limita... | mit | C# |
04d5c90fc4d887100b99a1a6a92a2d5aa20bb849 | Comment on custom display option properties | bcemmett/SurveyMonkeyApi-v3,davek17/SurveyMonkeyApi-v3 | SurveyMonkey/Containers/QuestionDisplayOptionsCustomOptions.cs | SurveyMonkey/Containers/QuestionDisplayOptionsCustomOptions.cs | using Newtonsoft.Json;
using System.Collections.Generic;
namespace SurveyMonkey.Containers
{
[JsonConverter(typeof(TolerantJsonConverter))]
public class QuestionDisplayOptionsCustomOptions
{
public List<string> OptionSet { get; set; }
public int StartingPosition { get; set; } //slider ques... | using Newtonsoft.Json;
using System.Collections.Generic;
namespace SurveyMonkey.Containers
{
[JsonConverter(typeof(TolerantJsonConverter))]
public class QuestionDisplayOptionsCustomOptions
{
public List<string> OptionSet { get; set; }
public int StartingPosition { get; set; }
publi... | mit | C# |
3d856e7f604a61dbc382473dd3ad108008e8362f | Add GetHistory method | tsolarin/readline,tsolarin/readline | src/ReadLine/ReadLine.cs | src/ReadLine/ReadLine.cs | using System.Collections.Generic;
namespace System
{
public static class ReadLine
{
private static KeyHandler _keyHandler;
private static List<string> _history;
public static Func<string, int, string[]> AutoCompletionHandler { private get; set; }
static ReadLine()
{
... | using System.Collections.Generic;
namespace System
{
public static class ReadLine
{
private static KeyHandler _keyHandler;
private static List<string> _history;
public static List<string> History
{
get
{
return _history;
}
... | mit | C# |
996466763b3a56644db6769f570f595e2b55b99d | Add comment to count word number. | AxeDotNet/AxePractice.CSharpViaTest | src/CSharpViaTest.Collections/30_MapReducePractices/CountNumberOfWordsInMultipleTextFiles.cs | src/CSharpViaTest.Collections/30_MapReducePractices/CountNumberOfWordsInMultipleTextFiles.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CSharpViaTest.Collections.Annotations;
using CSharpViaTest.Collections.Helpers;
using Xunit;
namespace CSharpViaTest.Collections._30_MapReducePractices
{
[SuperEasy]
public class CountNumberOfWordsInMultipleTextFiles
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CSharpViaTest.Collections.Annotations;
using CSharpViaTest.Collections.Helpers;
using Xunit;
namespace CSharpViaTest.Collections._30_MapReducePractices
{
[SuperEasy]
public class CountNumberOfWordsInMultipleTextFiles
... | mit | C# |
8b88083853a2f937fcb947a8248cf6642721bd14 | Add total memory to cat indices response | gayancc/elasticsearch-net,starckgates/elasticsearch-net,LeoYao/elasticsearch-net,robertlyson/elasticsearch-net,tkirill/elasticsearch-net,KodrAus/elasticsearch-net,ststeiger/elasticsearch-net,CSGOpenSource/elasticsearch-net,elastic/elasticsearch-net,geofeedia/elasticsearch-net,cstlaurent/elasticsearch-net,ststeiger/elas... | src/Nest/Domain/Cat/CatIndicesRecord.cs | src/Nest/Domain/Cat/CatIndicesRecord.cs | using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class CatIndicesRecord : ICatRecord
{
[JsonProperty("docs.count")]
public string DocsCount { get; set; }
[JsonProperty("docs.deleted")]
public string DocsDeleted { get; set; }
[JsonProperty("health")]
public string Health { get; set; }
[J... | using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class CatIndicesRecord : ICatRecord
{
[JsonProperty("docs.count")]
public string DocsCount { get; set; }
[JsonProperty("docs.deleted")]
public string DocsDeleted { get; set; }
[JsonProperty("health")]
public string Health { get; set; }
[J... | apache-2.0 | C# |
ba59eec3f51b5e0b3cc747136064d3d1e3d680a3 | Switch to version 1.3.0 | rbouallou/Zebus,Abc-Arbitrage/Zebus,AtwooTM/Zebus,biarne-a/Zebus | src/SharedVersionInfo.cs | src/SharedVersionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.3.0")]
[assembly: AssemblyFileVersion("1.3.0")]
[assembly: AssemblyInformationalVersion("1.3.0")]
| using System.Reflection;
[assembly: AssemblyVersion("1.3.0")]
[assembly: AssemblyFileVersion("1.3.0")]
[assembly: AssemblyInformationalVersion("1.3.0-new-subs01")]
| mit | C# |
df59caf8c188509d40eadf7ed2c8af923294ed38 | Remove forced WebGL test code | HelloKitty/317refactor | src/Client/Rs317.Client.Unity/Platform/RsUnityPlatform.cs | src/Client/Rs317.Client.Unity/Platform/RsUnityPlatform.cs | using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
namespace Rs317.Sharp
{
public static class RsUnityPlatform
{
public static bool isWebGLBuild => Application.platform == RuntimePlatform.WebGLPlayer;
public static bool isPlaystationBuild => Application.platform == RuntimePla... | using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
namespace Rs317.Sharp
{
public static class RsUnityPlatform
{
public static bool isWebGLBuild => true;
public static bool isPlaystationBuild => Application.platform == RuntimePlatform.PS4 || Application.platform == RuntimePla... | mit | C# |
78408818c17bcc50eb941ee211531e4f13725152 | Add Insurance to Governance menu | croquet-australia/croquet-australia-website,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia.com.au,croquet-australia/website-application,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia-website,croquet-australia/we... | source/CroquetAustraliaWebsite.Application/app/Infrastructure/PublicNavigationBar.cs | source/CroquetAustraliaWebsite.Application/app/Infrastructure/PublicNavigationBar.cs | using System.Collections.Generic;
namespace CroquetAustraliaWebsite.Application.App.Infrastructure
{
public static class PublicNavigationBar
{
public static IEnumerable<NavigationItem> GetNavigationItems()
{
return new[]
{
new NavigationItem("Contact Us"... | using System.Collections.Generic;
namespace CroquetAustraliaWebsite.Application.App.Infrastructure
{
public static class PublicNavigationBar
{
public static IEnumerable<NavigationItem> GetNavigationItems()
{
return new[]
{
new NavigationItem("Contact Us"... | mit | C# |
903813cb4ee2e600b286a7cbb2f57054529191f4 | Move method GetScheme to StringUtils and remove LinkParser | mysticmind/reversemarkdown-net | src/ReverseMarkdown/StringUtils.cs | src/ReverseMarkdown/StringUtils.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
namespace ReverseMarkdown
{
public static class StringUtils
{
public static string Chomp(this string content)
{
return content.Trim().TrimEnd('\r', '\n');
}
publi... | using System.Collections.Generic;
using System.IO;
namespace ReverseMarkdown
{
public static class StringUtils
{
public static string Chomp(this string content)
{
return content.Trim().TrimEnd('\r', '\n');
}
public static IEnumerable<string> ReadLines(this string c... | mit | C# |
69282294f3e414b4c93fdca6002b99c8f90f8998 | Implement ProfileUpdate message, see #1. | DreamNetwork/Platform-Server,DreamNetwork/Platform-Server | src/platform/Networking/Messages/ProfileUpdateResponse.cs | src/platform/Networking/Messages/ProfileUpdateResponse.cs | using System;
using System.Collections.Generic;
namespace DreamNetwork.PlatformServer.Networking.Messages
{
[Message(3u << 16 | 1u, MessageDirection.ToClient)]
public class ProfileUpdateResponse : Message
{
public bool Success { get; set; }
public string[] FailedFields { get; set; }
}
... | namespace DreamNetwork.PlatformServer.Networking.Messages
{
[Message(3u << 16 | 1u, MessageDirection.ToClient)]
public class ProfileUpdateResponse : Message
{
public bool Success { get; set; }
public string[] FailedFields { get; set; }
}
} | agpl-3.0 | C# |
0bf38687683ff829d3a51e00525b1381a03b3d92 | Fix drag and drop method signature bug | chrisblock/Bumblebee,Bumblebee/Bumblebee,toddmeinershagen/Bumblebee,toddmeinershagen/Bumblebee,Bumblebee/Bumblebee,chrisblock/Bumblebee,qchicoq/Bumblebee,kool79/Bumblebee,qchicoq/Bumblebee,kool79/Bumblebee | Bumblebee/Implementation/DragAction.cs | Bumblebee/Implementation/DragAction.cs | using System;
using Bumblebee.Interfaces;
namespace Bumblebee.Implementation
{
public class DragAction<TParent> where TParent : IBlock
{
private TParent Parent { get; set; }
private IDraggable Draggable { get; set; }
public DragAction(TParent parent, Func<TParent, IDraggable> getDragg... | using System;
using Bumblebee.Interfaces;
namespace Bumblebee.Implementation
{
public class DragAction<TParent> where TParent : IBlock
{
private TParent Parent { get; set; }
private IDraggable Draggable { get; set; }
public DragAction(TParent parent, Func<TParent, IDraggable> getDragg... | mit | C# |
2f8c0cb098c1db580989ee069ad2e601e3333952 | Add label sample that uses a link | iainx/xwt,directhex/xwt,cra0zy/xwt,hamekoz/xwt,mono/xwt,TheBrainTech/xwt,lytico/xwt,sevoku/xwt,mminns/xwt,antmicro/xwt,residuum/xwt,steffenWi/xwt,akrisiun/xwt,mminns/xwt,hwthomas/xwt | Samples/Samples/Labels.cs | Samples/Samples/Labels.cs | //
// Labels.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 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 Software without restriction, i... | //
// Labels.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 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 Software without restriction, i... | mit | C# |
af59b6f2c2bf21401c39bfaafb54dbbd5a062d50 | Fix for serialization errors with Loadout events caused by game bug | DarkWanderer/DW.Inara.LogUploader | Interfaces/Events/ModuleEngineering.cs | Interfaces/Events/ModuleEngineering.cs | namespace DW.ELA.Interfaces.Events
{
using Newtonsoft.Json;
public class ModuleEngineering
{
[JsonProperty("Engineer")]
public string Engineer { get; set; }
[JsonProperty("EngineerID")]
public ulong EngineerId { get; set; }
[JsonProperty("BlueprintID")]
pu... | namespace DW.ELA.Interfaces.Events
{
using Newtonsoft.Json;
public class ModuleEngineering
{
[JsonProperty("Engineer")]
public string Engineer { get; set; }
[JsonProperty("EngineerID")]
public ulong EngineerId { get; set; }
[JsonProperty("BlueprintID")]
pu... | mit | C# |
c578d296367d6949ce5df18546e72a5ee0dab8bd | Allow variable parameters in CompositeOperation constructor | MHeasell/Mappy,MHeasell/Mappy | Mappy/Operations/CompositeOperation.cs | Mappy/Operations/CompositeOperation.cs | namespace Mappy.Operations
{
using System.Collections.Generic;
using System.Linq;
public class CompositeOperation : IReplayableOperation
{
private readonly IEnumerable<IReplayableOperation> ops;
public CompositeOperation(IEnumerable<IReplayableOperation> ops)
{
... | namespace Mappy.Operations
{
using System.Collections.Generic;
using System.Linq;
public class CompositeOperation : IReplayableOperation
{
private readonly IEnumerable<IReplayableOperation> ops;
public CompositeOperation(IReplayableOperation op1, IReplayableOperation op2)
... | mit | C# |
0b66e5abc1d950512557316d5c0dfeefe31b2648 | update TraceTransaction return type | Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum | src/Nethereum.Parity/RPC/Trace/TraceTransaction.cs | src/Nethereum.Parity/RPC/Trace/TraceTransaction.cs | using System.Threading.Tasks;
using Nethereum.JsonRpc.Client;
using Newtonsoft.Json.Linq;
namespace Nethereum.Parity.RPC.Trace
{
/// <Summary>
/// Returns all traces of given transaction
/// </Summary>
public class TraceTransaction : RpcRequestResponseHandler<JArray>, ITraceTransaction
{
... | using System.Threading.Tasks;
using Nethereum.JsonRpc.Client;
using Newtonsoft.Json.Linq;
namespace Nethereum.Parity.RPC.Trace
{
/// <Summary>
/// Returns all traces of given transaction
/// </Summary>
public class TraceTransaction : RpcRequestResponseHandler<JObject>, ITraceTransaction
{
... | mit | C# |
bca0ce6f764ebed35c5018bf14ada179159c7b8b | Document model updated as per save document changes. | aykanatm/ProjectMarkdown | ProjectMarkdown/Model/DocumentModel.cs | ProjectMarkdown/Model/DocumentModel.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using Awesomium.Core;
using ProjectMarkdown.Annotations;
namespace ProjectMarkdown.Model
{
public class DocumentModel : INotifyPro... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using Awesomium.Core;
using ProjectMarkdown.Annotations;
namespace ProjectMarkdown.Model
{
public class DocumentModel : INotifyPro... | mit | C# |
dcd8cfaf003c2521ee377feec39cf6bd83ee105f | Update Fun.cs | divega/UdfCodeFirstSample | UdfCodeFirstSample/Fun.cs | UdfCodeFirstSample/Fun.cs | using System;
using System.Data.Entity;
namespace UdfCodeFirstSample
{
public static class Fun
{
[DbFunction("CodeFirstDatabaseSchema", "GetAge")]
public static int? GetAge(DateTime? birthDate)
{
// this in-memory implementation will not be invoked when working on LINQ to En... | using System;
using System.Data.Entity;
namespace UdfCodeFirstSample
{
public static class Fun
{
[DbFunction("CodeFirstDatabaseSchema", "GetAge")]
public static int? GetAge(DateTime? birthDate)
{
// this in-memory implementation will not be invoked when working on LINQ to En... | apache-2.0 | C# |
55d226fa6fb5d2bd448aece39aae17f3624d7851 | добавить ItemConverterType для свойства ButtonActions | vknet/vk,vknet/vk | VkNet/Model/ClientInfo.cs | VkNet/Model/ClientInfo.cs | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using VkNet.Enums;
using VkNet.Enums.SafetyEnums;
using VkNet.Model.GroupUpdate;
using VkNet.Utils;
using VkNet.Utils.JsonConverter;
namespace VkNet.Model
{
/// <summary>
/// Информация о доступных пользователю функциях.
/// </summary>
[Seriali... | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using VkNet.Enums;
using VkNet.Enums.SafetyEnums;
using VkNet.Model.GroupUpdate;
using VkNet.Utils;
namespace VkNet.Model
{
/// <summary>
/// Информация о доступных пользователю функциях.
/// </summary>
[Serializable]
public class ClientInfo
... | mit | C# |
5761a9bd5f1a285d60b365e07f0ed8c598058dad | Check for nulls in Paragraphs members too. | PenguinF/sandra-three | Sandra.UI.WF/Storage/SettingComment.cs | Sandra.UI.WF/Storage/SettingComment.cs | /*********************************************************************************
* SettingComment.cs
*
* Copyright (c) 2004-2018 Henk Nicolai
*
* 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 cop... | /*********************************************************************************
* SettingComment.cs
*
* Copyright (c) 2004-2018 Henk Nicolai
*
* 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 cop... | apache-2.0 | C# |
d32ce420759697c03b38c352ec9884cc2d81c2c5 | Update CompositionRootSetup.cs | tiksn/TIKSN-Exchange | TIKSN.Exchange/CompositionRootSetup.cs | TIKSN.Exchange/CompositionRootSetup.cs | using Autofac;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Localization;
using TIKSN.Data;
using TIKSN.Data.LiteDB;
using TIKSN.DependencyInjection;
using TIKSN.Exchange.Commands;
using TIKSN.Finance.ForeignExchange;
using TIKSN.Finance.ForeignEx... | using Autofac;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Localization;
using TIKSN.Data;
using TIKSN.DependencyInjection;
using TIKSN.Finance.ForeignExchange;
using TIKSN.Finance.ForeignExchange.Data;
using TIKSN.Finance.ForeignExchange.Data.Li... | mit | C# |
e4e56bc668d7db933cbf680da34f23ce12796766 | add credentials | Alex141/CalcBinding | CalcBinding/Properties/AssemblyInfo.cs | CalcBinding/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("Ca... | 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("Ca... | apache-2.0 | C# |
60fda840f4d8b2aae8b0c9fb36a6fb917c5eb3ca | Change CssSelector to a class | Carbon/Css | src/Carbon.Css/Model/CssSelector.cs | src/Carbon.Css/Model/CssSelector.cs | using System.Collections;
using System.Collections.Generic;
using Carbon.Css.Parser;
namespace Carbon.Css
{
public class CssSelector : IEnumerable<CssSequence>
{
private readonly IReadOnlyList<CssSequence> items; // comma seperated
public CssSelector(IReadOnlyList<CssSequence> items... | using System.Collections;
using System.Collections.Generic;
using Carbon.Css.Parser;
namespace Carbon.Css
{
public readonly struct CssSelector : IEnumerable<CssSequence>
{
private readonly IReadOnlyList<CssSequence> items; // comma seperated
public CssSelector(IReadOnlyList<CssSeque... | mit | C# |
4d576aeccb8c8b5047ca389e05059425e38e88c9 | select Ignore over Explicit because the Explicit test is still being run | fluffynuts/NExpect,fluffynuts/NExpect,cobussmit74/NExpect,cobussmit74/NExpect | src/CoreConsumer/TestConsumption.cs | src/CoreConsumer/TestConsumption.cs | using NUnit.Framework;
using NExpect;
using static NExpect.Expectations;
namespace CoreConsumer
{
[TestFixture]
public class TestConsumption
{
[Test]
public void ShouldBeAbleToExpect_Pass()
{
// Arrange
// Pre-Assert
// Act
PerformExp... | using NUnit.Framework;
using NExpect;
using static NExpect.Expectations;
namespace CoreConsumer
{
[TestFixture]
public class TestConsumption
{
[Test]
public void ShouldBeAbleToExpect_Pass()
{
// Arrange
// Pre-Assert
// Act
PerformExp... | bsd-3-clause | C# |
da4998c6489e232e09223ef3f4c3573af3be491e | Create 8.3.2 release | dontjee/hyde | src/Hyde/Properties/AssemblyInfo.cs | src/Hyde/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( "T... | 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( "T... | bsd-3-clause | C# |
ebef439780030c7c151ac8107c89a2452f3282ca | remove dead code | Pondidum/Stronk,Pondidum/Stronk | src/Stronk.Tests/ExtensionsTests.cs | src/Stronk.Tests/ExtensionsTests.cs | using Shouldly;
using System;
using System.Collections.Generic;
using System.Linq;
using Stronk.ValueConversion;
using Xunit;
namespace Stronk.Tests
{
public class ExtensionsTests
{
private readonly List<IValueConverter> _valueConverters;
public ExtensionsTests()
{
_valueConverters = Default.ValueConverte... | using Shouldly;
using System;
using System.Collections.Generic;
using System.Linq;
using Stronk.PropertyMappers;
using Stronk.PropertyWriters;
using Stronk.ValueConversion;
using Xunit;
namespace Stronk.Tests
{
public class ExtensionsTests
{
private readonly List<IValueConverter> _valueConverters;
public Exten... | lgpl-2.1 | C# |
d2b67f160692fb8421ec30083e10a5f558f70c92 | Add HiddenAt property in TraktSyncSeasonsLastActivities | henrikfroehling/TraktApiSharp | Source/Lib/TraktApiSharp/Objects/Get/Syncs/Activities/TraktSyncSeasonsLastActivities.cs | Source/Lib/TraktApiSharp/Objects/Get/Syncs/Activities/TraktSyncSeasonsLastActivities.cs | namespace TraktApiSharp.Objects.Get.Syncs.Activities
{
using Newtonsoft.Json;
using System;
/// <summary>A collection of UTC datetimes of last activities for seasons.</summary>
public class TraktSyncSeasonsLastActivities
{
/// <summary>Gets or sets the UTC datetime, when a season was lastl... | namespace TraktApiSharp.Objects.Get.Syncs.Activities
{
using Newtonsoft.Json;
using System;
/// <summary>A collection of UTC datetimes of last activities for seasons.</summary>
public class TraktSyncSeasonsLastActivities
{
/// <summary>Gets or sets the UTC datetime, when a season was lastl... | mit | C# |
3a475ecdac81d42954a3d72560456d6c7486c84c | revert AsyncAspectTests.cs | AspectCore/Abstractions,AspectCore/AspectCore-Framework,AspectCore/AspectCore-Framework,AspectCore/Lite | core/test/AspectCore.Tests/Injector/AsyncBlockTest.cs | core/test/AspectCore.Tests/Injector/AsyncBlockTest.cs | using AspectCore.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace AspectCore.Tests.Injector
{
public class Intercept1 : AbstractInterceptorAttribute
{
public override Task Invoke(AspectContext context, AspectDelegate ... | using AspectCore.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace AspectCore.Tests.Injector
{
public class Intercept1 : AbstractInterceptorAttribute
{
public override Task Invoke(AspectContex... | mit | C# |
b47ced8c583d88cbec7fd5c89adc4f58ca3254b0 | Fix failing test | naoey/osu,naoey/osu,smoogipooo/osu,NeoAdonis/osu,naoey/osu,UselessToucan/osu,johnneijzen/osu,DrabWeb/osu,EVAST9919/osu,EVAST9919/osu,smoogipoo/osu,ZLima12/osu,ppy/osu,johnneijzen/osu,2yangk23/osu,DrabWeb/osu,peppy/osu-new,ZLima12/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,2yangk23/osu,peppy/osu,smoogipoo/osu,peppy/o... | osu.Game.Rulesets.Mania.Tests/ManiaDifficultyCalculatorTest.cs | osu.Game.Rulesets.Mania.Tests/ManiaDifficultyCalculatorTest.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.Difficulty;
using osu.Game.Rulesets.Mania.Difficulty;
using osu.Game.Tests.Beatmaps;
namespace os... | // 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.Difficulty;
using osu.Game.Rulesets.Mania.Difficulty;
using osu.Game.Tests.Beatmaps;
namespace os... | mit | C# |
71a871d7d1dede52cc9d75b435b7a70b664befc3 | Add loved enum on BeatmapApproval | UselessToucan/osu,johnneijzen/osu,NeoAdonis/osu,peppy/osu-new,EVAST9919/osu,UselessToucan/osu,ppy/osu,ppy/osu,UselessToucan/osu,2yangk23/osu,smoogipoo/osu,NeoAdonis/osu,EVAST9919/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu,peppy/osu,ppy/osu,2yangk23/osu,johnneijzen/osu,peppy/osu | osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs | osu.Game/Online/API/Requests/GetUserRecentActivitiesRequest.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetUserRecentActivitiesRequest... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetUserRecentActivitiesRequest... | mit | C# |
a2d0d9ac88d108ab82bfb07f618181416aea5b98 | Disable parallelization | rmandvikar/csharp-extensions,rmandvikar/csharp-extensions | tests/rm.ExtensionsTest/Properties/AssemblyInfo.cs | tests/rm.ExtensionsTest/Properties/AssemblyInfo.cs | using NUnit.Framework;
[assembly: Parallelizable(ParallelScope.None)]
| using NUnit.Framework;
[assembly: Parallelizable(ParallelScope.All)]
| mit | C# |
ecfa6b3eb72a113c6d28cd8e06cdee2603e1bdec | Change Interactive to IInteractable | manio143/ShadowsOfShadows | src/Consoles/MainConsole.cs | src/Consoles/MainConsole.cs | using SadConsole;
using System.Linq;
using Microsoft.Xna.Framework;
using ShadowsOfShadows.Entities;
using ShadowsOfShadows.Renderables;
namespace ShadowsOfShadows.Consoles
{
public class TestEntity : Entity {}
public class MainConsole : Console
{
private Room testRoom = new Room (new[]{ new TestEntity () });
... | using SadConsole;
using System.Linq;
using Microsoft.Xna.Framework;
using ShadowsOfShadows.Renderables;
namespace ShadowsOfShadows.Consoles
{
public class TestEntity : Entity {}
public class MainConsole : Console
{
private Room testRoom = new Room (new[]{ new TestEntity () });
public MainConsole (int width, ... | mit | C# |
a20ca0def90118d4d59a01d142b04f3c04349bfd | Add Snapshots option to listing shares | Azure/azure-storage-net,erezvani1529/azure-storage-net | Lib/Common/File/ShareListingDetails.cs | Lib/Common/File/ShareListingDetails.cs | //-----------------------------------------------------------------------
// <copyright file="ShareListingDetails.cs" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Li... | //-----------------------------------------------------------------------
// <copyright file="ShareListingDetails.cs" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Li... | apache-2.0 | C# |
86d3cad4c32e01389e9c4896ffc6e4c66af1464c | Fix #61, MapLocators should trim the fragment from the URI | NMFCode/NMF | Models/Models/Repository/MapLocator.cs | Models/Models/Repository/MapLocator.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace NMF.Models.Repository
{
public abstract class MapLocator : IModelLocator
{
public IDictionary<Uri, string> Mappings { get; private set; }
public MapLocator()
{
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace NMF.Models.Repository
{
public abstract class MapLocator : IModelLocator
{
public IDictionary<Uri, string> Mappings { get; private set; }
public MapLocator()
{
... | bsd-3-clause | C# |
d15b39a99b021414e2ff0e00ac2712bec51e2134 | Update BaseTest.cs | JamesYing/JCWX | test/FrameworkCoreTest/BaseTest.cs | test/FrameworkCoreTest/BaseTest.cs | using Moq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WX.Api;
using WX.Framework;
using WX.Logger;
using WX.Model;
namespace FrameworkCoreTest
{
public abstract class BaseTest
{
private static string tokenf... | using Moq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WX.Api;
using WX.Framework;
using WX.Logger;
using WX.Model;
namespace FrameworkCoreTest
{
public abstract class BaseTest
{
private static string tokenf... | mit | C# |
9f3dcaa67019914cff40aa3332cd341f413945e0 | Update Viktor.cs | FireBuddy/adevade | AdEvade/AdEvade/Data/Spells/SpecialSpells/Viktor.cs | AdEvade/AdEvade/Data/Spells/SpecialSpells/Viktor.cs | using System;
using EloBuddy;
using EloBuddy.SDK;
namespace AdEvade.Data.Spells.SpecialSpells
{
class Viktor : IChampionPlugin
{
static Viktor()
{
}
public const string ChampionName = "Viktor";
public string GetChampionName()
{
return ChampionName;
... | using System;
using EloBuddy;
using EloBuddy.SDK;
namespace AdEvade.Data.Spells.SpecialSpells
{
class Viktor : IChampionPlugin
{
static Viktor()
{
}
public const string ChampionName = "Viktor";
public string GetChampionName()
{
return ChampionName;
... | mit | C# |
3e51475d2f4a96e2ccbf2cf28796ec8b51a774dd | Add TagName/TagMode properties | bigfont/StackOverflow,bigfont/StackOverflow,bigfont/StackOverflow,bigfont/StackOverflow | AspNetCorePlayground/TagHelpers/MyFirstTagHelper.cs | AspNetCorePlayground/TagHelpers/MyFirstTagHelper.cs |
using System.Threading.Tasks;
using Microsoft.AspNetCore.Razor.TagHelpers;
namespace AspNetCorePlayground.TagHelpers
{
public class MyFirst : TagHelper
{
public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
{
// get the existing content
... |
using System.Threading.Tasks;
using Microsoft.AspNetCore.Razor.TagHelpers;
namespace AspNetCorePlayground.TagHelpers
{
public class MyFirst : TagHelper
{
public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
{
var childContent = await output.GetC... | mit | C# |
fbef6dc1a001c07d2d44d3887f9f773c124eaa24 | update assembly values | CityofSantaMonica/SODA.NET,chrismetcalf/SODA.NET | Source/SODA/Properties/AssemblyInfo.cs | Source/SODA/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | mit | C# |
497d3fb93163c3c64262a8f5abd9291b506e744b | Replace log4net dependency with LibLog | Elders/Multithreading.Scheduler | src/Elders.Multithreading.Scheduler/Properties/AssemblyInfo.cs | src/Elders.Multithreading.Scheduler/Properties/AssemblyInfo.cs | // <auto-generated/>
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitleAttribute("Elders.Multithreading.Scheduler")]
[assembly: AssemblyDescriptionAttribute("The idea is to create a dedicated threads for a particular work. The WorkPool class does not use the standard .NET thread p... | // <auto-generated/>
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitleAttribute("Elders.Multithreading.Scheduler")]
[assembly: AssemblyDescriptionAttribute("The idea is to create a dedicated threads for a particular work. The WorkPool class does not use the standard .NET thread p... | apache-2.0 | C# |
497f9908785fc85685f25bdc616f5fafda3916eb | update versin | Weingartner/XUnitRemote | XUnitRemote/Properties/AssemblyInfo.cs | XUnitRemote/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("XU... | 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("XU... | mit | C# |
bcf45f50872076aaab6706e9200ed047d293df22 | Update Host startup.cs | Arch/ApiHelp,Arch/ApiHelp,Arch/ApiHelp,Arch/ApiHelp | src/Host/Startup.cs | src/Host/Startup.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.ApiHelp;
using Microsoft.AspNetCore.ApiHelp.Core;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Depe... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.ApiHelp;
using Microsoft.AspNetCore.ApiHelp.Core;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Depe... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.