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 |
|---|---|---|---|---|---|---|---|---|
ac16181cd9643171e6e457388b8e65b96ae5b7f2 | Update bot builder history assembly version to 3.0.6 | msft-shahins/BotBuilder,stevengum97/BotBuilder,stevengum97/BotBuilder,msft-shahins/BotBuilder,yakumo/BotBuilder,yakumo/BotBuilder,yakumo/BotBuilder,msft-shahins/BotBuilder,stevengum97/BotBuilder,msft-shahins/BotBuilder,yakumo/BotBuilder,stevengum97/BotBuilder | CSharp/Library/Microsoft.Bot.Builder.History/Properties/AssemblyInfo.cs | CSharp/Library/Microsoft.Bot.Builder.History/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Microsoft.Bot.Builder.History")]
[... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Microsoft.Bot.Builder.History")]
[... | mit | C# |
413899585109acec4bee4ef3ce5efac8ceaec9b7 | Change response to be Json | Red-Folder/WebCrawl-Functions | WebCrawlStart/run.csx | WebCrawlStart/run.csx | #r "Microsoft.WindowsAzure.Storage"
using System;
using System.Net;
using Microsoft.Azure; // Namespace for CloudConfigurationManager
using Microsoft.WindowsAzure.Storage; // Namespace for CloudStorageAccount
using Microsoft.WindowsAzure.Storage.Queue; // Namespace for Queue storage types
public static async Task<Ht... | #r "Microsoft.WindowsAzure.Storage"
using System;
using System.Net;
using Microsoft.Azure; // Namespace for CloudConfigurationManager
using Microsoft.WindowsAzure.Storage; // Namespace for CloudStorageAccount
using Microsoft.WindowsAzure.Storage.Queue; // Namespace for Queue storage types
public static async Task<Ht... | mit | C# |
0f34378abe6f0585a95b37a707714ba738980390 | Change version | InfinniPlatform/Infinni.Node | .common/VersionInfo.cs | .common/VersionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.0.8.0")]
[assembly: AssemblyFileVersion("1.0.8.0")]
| using System.Reflection;
[assembly: AssemblyVersion("1.0.6.0")]
[assembly: AssemblyFileVersion("1.0.6.0")]
| mit | C# |
af2759c187284fd3ebfa9043625363df681462e9 | Add missing print to SimpleSatProgram.cs | google/or-tools,google/or-tools,or-tools/or-tools,or-tools/or-tools,or-tools/or-tools,or-tools/or-tools,or-tools/or-tools,google/or-tools,google/or-tools,google/or-tools,or-tools/or-tools,google/or-tools | ortools/sat/samples/SimpleSatProgram.cs | ortools/sat/samples/SimpleSatProgram.cs | // Copyright 2010-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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2010-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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | apache-2.0 | C# |
6d14c6fa78c7a0780b544937ff72691b970b8e56 | fix copyright | OBeautifulCode/OBeautifulCode.AutoFakeItEasy | OBeautifulCode.AutoFakeItEasy.Test/Properties/AssemblyInfo.cs | OBeautifulCode.AutoFakeItEasy.Test/Properties/AssemblyInfo.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="OBeautifulCode">
// Copyright (c) OBeautifulCode. All rights reserved.
// </copyright>
// -------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="OBeautifulCode">
// Copyright (c) OBeautifulCode. All rights reserved.
// </copyright>
// -------------------------------------------------------------... | mit | C# |
84b7a5353832f25c29c2393fdda35512ff96fc73 | Rename Foo to FooCommand | appharbor/appharbor-cli | src/AppHarbor.Tests/TypeNameMatcherTest.cs | src/AppHarbor.Tests/TypeNameMatcherTest.cs | using System;
using System.Collections.Generic;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests
{
public class TypeNameMatcherTest
{
interface IFoo
{
}
class FooCommand : IFoo { }
private static Type FooCommandType = typeof(FooCommand);
[Fact]
public void ShouldThrowIfInitializedWith... | using System;
using System.Collections.Generic;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests
{
public class TypeNameMatcherTest
{
interface IFoo
{
}
class Foo : IFoo { }
private static Type FooType = typeof(Foo);
[Fact]
public void ShouldThrowIfInitializedWithUnnasignableType()
... | mit | C# |
3c154a847253d26d719bf863894b3e213a165d5b | Remove unnecessary clone | smoogipooo/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,peppy/osu-framework | osu.Framework/Input/States/MidiState.cs | osu.Framework/Input/States/MidiState.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.
namespace osu.Framework.Input.States
{
public class MidiState
{
public readonly ButtonStates<MidiKey> Keys = new ButtonStates<MidiKey>();
}
}
| // 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.
namespace osu.Framework.Input.States
{
public class MidiState
{
public ButtonStates<MidiKey> Keys { get; private set; } = new ButtonStates<MidiKey>();
... | mit | C# |
8094b502cb104dad68cb7b1df77e7c1841307e21 | Remove test-specific logic from `RulesetConfigCache` | ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,peppy/osu | osu.Game/Rulesets/RulesetConfigCache.cs | osu.Game/Rulesets/RulesetConfigCache.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Database;
using osu.Game.Extensions;
using osu... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Database;
using osu.Game.Rulesets.Configuration;
namespace ... | mit | C# |
b3628e541136d7024eba0b83e4ca91231755babb | Add comments to CameraFollow | momo-the-monster/workshop-trails | Assets/PDXcc/Trails/Code/CameraFollow.cs | Assets/PDXcc/Trails/Code/CameraFollow.cs | using UnityEngine;
using System.Collections;
namespace pdxcc
{
public class CameraFollow : MonoBehaviour
{
// Target for the camera to follow
public Transform target;
// Distance to maintain between camera and target
public Vector3 offset;
// How quickly to follow
... | using UnityEngine;
using System.Collections;
namespace pdxcc
{
public class CameraFollow : MonoBehaviour
{
public GameObject target;
public Vector3 offset;
public float speed = 1f;
void Start()
{
}
void Update()
{
Vector3 targetPo... | mit | C# |
0991f4db4df3f75164c80cb254360ef84b32eac6 | Build 1.2.8.8 | DataBooster/DbWebApi,DataBooster/DbWebApi,DataBooster/DbWebApi,DataBooster/DbWebApi | Server/DataBooster.DbWebApi/Razor/SerializableResponseData.cs | Server/DataBooster.DbWebApi/Razor/SerializableResponseData.cs | // Copyright (c) 2015 Abel Cheng <abelcys@gmail.com> and other contributors.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// Repository: https://github.com/DataBooster/DbWebApi
using System;
using System.Collections.Generic;
using DbParallel.DataAccess;
namesp... | // Copyright (c) 2015 Abel Cheng <abelcys@gmail.com> and other contributors.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// Repository: https://github.com/DataBooster/DbWebApi
using System;
using System.Collections.Generic;
using DbParallel.DataAccess;
namesp... | mit | C# |
3db42bd629b64d39d5893c68b43d9adb497ad913 | allow further args down the line to override input in piping | darvell/Coremero | Coremero/Coremero.Plugin.Classic/Pipe.cs | Coremero/Coremero.Plugin.Classic/Pipe.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Coremero.Commands;
using Coremero.Messages;
using Coremero.Registry;
using Coremero.Utilities;
namespace Coremero.Plugin.Classic
{
public class Pipe : IPlugin
{
private CommandRegi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Coremero.Commands;
using Coremero.Messages;
using Coremero.Registry;
using Coremero.Utilities;
namespace Coremero.Plugin.Classic
{
public class Pipe : IPlugin
{
private CommandRegi... | mit | C# |
8b55cdaa53e2e6ea9798384144c5faaa3af52d49 | Update NotFoundHttpHandler to handle '/' not found correctly | jmptrader/jessica,jmptrader/jessica,jmptrader/jessica | src/Jessica/Routing/NotFoundHttpHandler.cs | src/Jessica/Routing/NotFoundHttpHandler.cs | using System.Web;
using System.Web.Routing;
using Jessica.Extensions;
namespace Jessica.Routing
{
public class NotFoundHttpHandler : IHttpHandler
{
RequestContext _requestContext;
public NotFoundHttpHandler(RequestContext requestContext)
{
_requestContext = requestContext;
... | using System.Web;
using System.Web.Routing;
using Jessica.Extensions;
namespace Jessica.Routing
{
public class NotFoundHttpHandler : IHttpHandler
{
RequestContext _requestContext;
public NotFoundHttpHandler(RequestContext requestContext)
{
_requestContext = requestContext;
... | mit | C# |
15364eeb923d5556a956d840938ecab8c90440e2 | Update copyright | InfinniPlatform/Infinni.Node | .files/Packaging/GlobalAssemblyInfo.cs | .files/Packaging/GlobalAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Infinnity Solutions")]
[assembly: AssemblyProduct("InfinniPlatform")]
[assembly: AssemblyCopyright("Copyright © Infinnity Solutions 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Infinnity Solutions")]
[assembly: AssemblyProduct("InfinniPlatform")]
[assembly: AssemblyCopyright("Copyright © Infinnity Solutions 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible... | mit | C# |
ebe81c8ec971d35d178c7a0c3684ceaf1ed63837 | Remove duplicate using | oysteinkrog/SQLite.Net-PCL,fernandovm/SQLite.Net-PCL | src/SQLite.Net/SQLiteConnectionWithLock.cs | src/SQLite.Net/SQLiteConnectionWithLock.cs | //
// Copyright (c) 2012 Krueger Systems, Inc.
// Copyright (c) 2013 ystein Krog (oystein.krog@gmail.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... | //
// Copyright (c) 2012 Krueger Systems, Inc.
// Copyright (c) 2013 ystein Krog (oystein.krog@gmail.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... | mit | C# |
7da802ffcc82ca2439a3486b5ce39e6bbb23c613 | enable disc merge using disc number | jasonracey/iTunesAssistant | iTunesAssistantLib/TrackComparerFactory.cs | iTunesAssistantLib/TrackComparerFactory.cs | using System.Collections.Generic;
using iTunesLib;
namespace iTunesAssistantLib
{
public class TrackComparerFactory
{
public static IComparer<IITTrack> GetTrackComparer(List<IITTrack> tracks)
{
var trackNumbers = new Dictionary<string, int>();
foreach (var track in tra... | using System.Collections.Generic;
using iTunesLib;
namespace iTunesAssistantLib
{
public class TrackComparerFactory
{
public static IComparer<IITTrack> GetTrackComparer(List<IITTrack> tracks)
{
var trackNumbers = new Dictionary<int, int>();
foreach (var track in tracks... | mit | C# |
a0131b8b25a739de25dac928ec76715597ec8e36 | Fix slider velocity not being applied. | DrabWeb/osu,DrabWeb/osu,NotKyon/lolisu,peppy/osu,ppy/osu,Nabile-Rahmani/osu,smoogipoo/osu,johnneijzen/osu,NeoAdonis/osu,EVAST9919/osu,peppy/osu-new,theguii/osu,ZLima12/osu,Drezi126/osu,UselessToucan/osu,nyaamara/osu,ppy/osu,DrabWeb/osu,default0/osu,peppy/osu,EVAST9919/osu,ppy/osu,smoogipoo/osu,naoey/osu,2yangk23/osu,Us... | osu.Game/Beatmaps/Beatmap.cs | osu.Game/Beatmaps/Beatmap.cs | //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using OpenTK.Graphics;
using osu.Game.Beatmaps.Timing;
using osu.Game.Database;
using osu.Game.Modes.Objects;
namespace osu.Gam... | //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using OpenTK.Graphics;
using osu.Game.Beatmaps.Timing;
using osu.Game.Database;
using osu.Game.Modes.Objects;
namespace osu.Gam... | mit | C# |
72079893f163242bdec38487396a94e625eb3af4 | Initialize CreateCommand with AppHarborApi | appharbor/appharbor-cli | src/AppHarbor/Commands/CreateCommand.cs | src/AppHarbor/Commands/CreateCommand.cs | using System;
namespace AppHarbor.Commands
{
public class CreateCommand : ICommand
{
private readonly AppHarborApi _appHarborApi;
public CreateCommand(AppHarborApi appHarborApi)
{
_appHarborApi = appHarborApi;
}
public void Execute(string[] arguments)
{
throw new NotImplementedException();
}
... | using System;
namespace AppHarbor.Commands
{
public class CreateCommand : ICommand
{
public void Execute(string[] arguments)
{
throw new NotImplementedException();
}
}
}
| mit | C# |
aa129f54cd84252cdcc0ff39ced1c48e5d971db8 | Speed up GetAll calls slightly | canton7/Stylet,cH40z-Lord/Stylet,cH40z-Lord/Stylet,canton7/Stylet | Stylet/StyletIoC/Internal/Registrations/GetAllRegistration.cs | Stylet/StyletIoC/Internal/Registrations/GetAllRegistration.cs | using StyletIoC.Creation;
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
namespace StyletIoC.Internal.Registrations
{
/// <summary>
/// Knows how to generate an IEnumerable{T}, which contains all implementations of T
/// </summary>
internal class GetAllRegistra... | using StyletIoC.Creation;
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
namespace StyletIoC.Internal.Registrations
{
/// <summary>
/// Knows how to generate an IEnumerable{T}, which contains all implementations of T
/// </summary>
internal class GetAllRegistra... | mit | C# |
27b18166e3b8503a711ba6afd984d188456dcdb9 | Bump version | canton7/SyncTrayzor,canton7/SyncTrayzor,canton7/SyncTrayzor | src/SyncTrayzor/Properties/AssemblyInfo.cs | src/SyncTrayzor/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 ... | mit | C# |
abdfd402d510079481c70a3b5fbfe1d44ca93792 | change namespace of SuppressBecause | OBeautifulCode/OBeautifulCode.Build | Analyzers/analyzers/SuppressBecause.cs | Analyzers/analyzers/SuppressBecause.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="SuppressBecause.cs" company="OBeautifulCode">
// Copyright (c) OBeautifulCode 2018. All rights reserved.
// </copyright>
// <auto-generated>
// Sourced from NuGet package. Wil... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="SuppressBecause.cs" company="OBeautifulCode">
// Copyright (c) OBeautifulCode 2018. All rights reserved.
// </copyright>
// <auto-generated>
// Sourced from NuGet package. Wil... | mit | C# |
c2c082410e904d5077baf4cc8d069b4aec2ed8f1 | Fix runner test | AzureRT/azure-powershell,AzureRT/azure-powershell,AzureRT/azure-powershell,AzureRT/azure-powershell,AzureRT/azure-powershell,AzureRT/azure-powershell | src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VMDynamicTests.cs | src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VMDynamicTests.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 | C# |
908e1773b8d7a15e1c5765b5269e68f629e2b50a | Add new assert checks | patchkit-net/patchkit-patcher-unity,patchkit-net/patchkit-patcher-unity,mohsansaleem/patchkit-patcher-unity,patchkit-net/patchkit-patcher-unity,mohsansaleem/patchkit-patcher-unity,patchkit-net/patchkit-patcher-unity | src/Assets/Scripts/Debug/AssertChecks.cs | src/Assets/Scripts/Debug/AssertChecks.cs | using UnityEngine.Assertions;
namespace PatchKit.Unity.Patcher.Debug
{
public class AssertChecks : BaseChecks
{
static AssertChecks()
{
Assert.raiseExceptions = true;
}
private static ValidationFailedHandler ArgumentValidationFailed(string name)
{
... | using UnityEngine.Assertions;
namespace PatchKit.Unity.Patcher.Debug
{
public class AssertChecks : BaseChecks
{
static AssertChecks()
{
Assert.raiseExceptions = true;
}
private static ValidationFailedHandler ArgumentValidationFailed(string name)
{
... | mit | C# |
f8d561b7bd074a9ce4b9b1d3213cdbf3a285cb88 | Update KentBoogaart.cs | stvansolano/planetxamarin,planetxamarin/planetxamarin,beraybentesen/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin,MabroukENG/planetxamarin,beraybentesen/planetxamarin,stvansolano/planetxamarin,beraybentesen/planetxamarin,stvansolano/planetxamarin,planetxamarin/planetxama... | src/Firehose.Web/Authors/KentBoogaart.cs | src/Firehose.Web/Authors/KentBoogaart.cs | using Firehose.Web.Infrastructure;
using System;
using System.Collections.Generic;
namespace Firehose.Web.Authors
{
public class KentBoogaart : IAmAMicrosoftMVP
{
public string FirstName => "Kent";
public string LastName => "Boogaart";
public string StateOrRegion => "Australia";
... | using Firehose.Web.Infrastructure;
using System;
using System.Collections.Generic;
namespace Firehose.Web.Authors
{
public class KentBoogaart : IAmAMicrosoftMVP
{
public string FirstName => "Kent";
public string LastName => "Boogaart";
public string StateOrRegion => "Australia";
... | mit | C# |
2a67602da1ca1474e12f5d8455f9b6d5fc930495 | Update asset menu entries | bartlomiejwolk/AnimationPathAnimator | Editor/AssetCreator.cs | Editor/AssetCreator.cs | using ATP.SimplePathAnimator.Animator;
using ATP.SimplePathAnimator.Events;
using UnityEditor;
namespace ATP.SimplePathAnimator {
// TODO Specify name for newly created asset.
public class AssetCreator {
[MenuItem("Assets/Create/ATP/SimplePathAnimator/Path Data")]
private static void CreateP... | using ATP.SimplePathAnimator.Animator;
using ATP.SimplePathAnimator.Events;
using UnityEditor;
namespace ATP.SimplePathAnimator {
// TODO Specify name for newly created asset.
public class AssetCreator {
[MenuItem("Assets/Create/ATP/SimplePathAnimator/Path")]
private static void CreatePathAs... | mit | C# |
df807c819e6705ea082d79541a59c79cbf3a57e1 | Fix incorrect merge | caslan/MIEngine,faxue-msft/MIEngine,wesrupert/MIEngine,caslan/MIEngine,wesrupert/MIEngine,edumunoz/MIEngine,devilman3d/MIEngine,edumunoz/MIEngine,caslan/MIEngine,rajkumar42/MIEngine,edumunoz/MIEngine,pieandcakes/MIEngine,pieandcakes/MIEngine,orbitcowboy/MIEngine,Microsoft/MIEngine,chuckries/MIEngine,edumunoz/MIEngine,c... | src/MICore/Transports/LocalTransport.cs | src/MICore/Transports/LocalTransport.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Diagnostics;
using System.IO;
using System.Collections.Speciali... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Diagnostics;
using System.IO;
using System.Collections.Speciali... | mit | C# |
6dc8d8e0857b484a118eb7ec3a55fec497f47da7 | Check if logger is null and throw | merbla/serilog,CaioProiete/serilog,serilog/serilog,merbla/serilog,serilog/serilog | src/Serilog/Core/ForContextExtension.cs | src/Serilog/Core/ForContextExtension.cs | using System;
using Serilog.Events;
namespace Serilog
{
/// <summary>
/// Extension method 'ForContext' for ILogger.
/// </summary>
public static class ForContextExtension
{
/// <summary>
/// Create a logger that enriches log events with the specified property based on log event le... | using Serilog.Events;
namespace Serilog
{
/// <summary>
/// Extension method 'ForContext' for ILogger.
/// </summary>
public static class ForContextExtension
{
/// <summary>
/// Create a logger that enriches log events with the specified property based on log event level.
/... | apache-2.0 | C# |
3392e8a6ac74faa23bfa71f1146c319e908bfa58 | Add global sprite batch to graphics 2d | Faseway/GameLibrary | GameLibrary/Code/Rendering/Graphics2D.cs | GameLibrary/Code/Rendering/Graphics2D.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Faseway.GameLibrary.Components;
namespace Faseway.GameLibrary.Rendering
{
public class Graphics2D : IComponen... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Faseway.GameLibrary.Components;
namespace Faseway.GameLibrary.Rendering
{
public class Graphics2D : IComponen... | mit | C# |
596fbfe5e8bb9341f587e9e4ac0cafb0b87857b3 | Use default C# formatting options for generated code. | Giorgi/Dynamic-PInvoke | DemoPinvokeConsoleApplication/Program.cs | DemoPinvokeConsoleApplication/Program.cs | using System.IO;
using System.Reflection;
using Roslyn.Compilers;
using Roslyn.Compilers.CSharp;
using Roslyn.Services;
using Roslyn.Services.Formatting;
namespace DemoPinvokeConsoleApplication
{
class Program
{
static void Main(string[] args)
{
var directory = Path.GetDirectoryNa... | using System.IO;
using System.Reflection;
using Roslyn.Compilers;
using Roslyn.Compilers.CSharp;
namespace DemoPinvokeConsoleApplication
{
class Program
{
static void Main(string[] args)
{
var directory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
... | mit | C# |
8dcbc7feba9223ba9a1f005769cf7a9eb6525d02 | Bump version | oozcitak/imagelistview | ImageListView/Properties/AssemblyInfo.cs | ImageListView/Properties/AssemblyInfo.cs | // ImageListView - A listview control for image files
// Copyright (C) 2009 Ozgur Ozcitak
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/... | // ImageListView - A listview control for image files
// Copyright (C) 2009 Ozgur Ozcitak
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/... | apache-2.0 | C# |
65ad52c26cbdee036e616b61263c214abf3b8a27 | Increase the maximum time we wait for long running tests from 5 to 10. | eric-davis/JustSaying,Intelliflo/JustSaying,Intelliflo/JustSaying | JustSaying.TestingFramework/Patiently.cs | JustSaying.TestingFramework/Patiently.cs | using System;
using System.Threading;
using NUnit.Framework;
namespace JustSaying.TestingFramework
{
public static class Patiently
{
public static void VerifyExpectation(Action expression)
{
VerifyExpectation(expression, 5.Seconds());
}
public static v... | using System;
using System.Threading;
using NUnit.Framework;
namespace JustSaying.TestingFramework
{
public static class Patiently
{
public static void VerifyExpectation(Action expression)
{
VerifyExpectation(expression, 5.Seconds());
}
public static v... | apache-2.0 | C# |
f7361824d79bb15502f0d4b28cbf66aa6d73c4db | optimize cs | kbilsted/LineCounter.Net | LineCounter/Strategies/CSharpStrategy.cs | LineCounter/Strategies/CSharpStrategy.cs | using System;
using System.IO;
using LineCounter;
namespace TeamBinary.LineCounter
{
class CSharpStrategy : IStrategy
{
static TrimStringLens l = new TrimStringLens();
public Statistics Count(string path)
{
var res = new Statistics();
var lines = File.ReadAllLines(path);
... | using System;
using System.IO;
using LineCounter;
namespace TeamBinary.LineCounter
{
class CSharpStrategy : IStrategy
{
static TrimStringLens l = new TrimStringLens();
public Statistics Count(string path)
{
var res = new Statistics();
var lines = File.ReadAllLines(path);
... | apache-2.0 | C# |
5f6ed3816ef3c7d7a785950773f01fb9c35629c4 | update AssemblyInfo | p76984275/MahApps.Metro,psinl/MahApps.Metro,xxMUROxx/MahApps.Metro,batzen/MahApps.Metro,jumulr/MahApps.Metro,pfattisc/MahApps.Metro,chuuddo/MahApps.Metro,Danghor/MahApps.Metro,ye4241/MahApps.Metro,MahApps/MahApps.Metro,Jack109/MahApps.Metro,Evangelink/MahApps.Metro | MahApps.Metro/Properties/AssemblyInfo.cs | MahApps.Metro/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Markup;
[assembly: AssemblyCopyright("Copyright © MahApps.Metro 2011-2016")]
[assembly: ComVisible(false)]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
[asse... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Markup;
[assembly: AssemblyCopyright("Copyright © MahApps.Metro 2011-2016")]
[assembly: ComVisible(false)]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
[asse... | mit | C# |
0a1dd45e446bc35615d019a734047ed662e6fd48 | Improve responses from pdf controller | mondeun/PdfAutofill | PdfAutofill/Controllers/PdfController.cs | PdfAutofill/Controllers/PdfController.cs | using System.Linq;
using Microsoft.AspNetCore.Mvc;
using PdfAutofill.Model;
using PdfAutofill.Service;
using PdfAutofill.Service.Impl;
namespace PdfAutofill.Controllers
{
[Route("api/[controller]")]
public class PdfController : Controller
{
private readonly IPdfService _service = new PdfService();... | using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using PdfAutofill.Model;
using PdfAutofill.Service;
using PdfAutofill.Service.Impl;
namespace PdfAutofill.Controllers
{
[Route("api/[controller]")]
public class PdfController : Controller
{
private readonly IPdfSe... | agpl-3.0 | C# |
d2324786e8555ab44fd368d875cf1a3057be3685 | Remove cursor color type for now | BigEggTools/PowerMode | PowerMode/Settings/ParticlesColorType.cs | PowerMode/Settings/ParticlesColorType.cs | namespace BigEgg.Tools.PowerMode.Settings
{
public enum ParticlesColorType
{
Random,
Fixed
}
}
| namespace BigEgg.Tools.PowerMode.Settings
{
public enum ParticlesColorType
{
Cursor,
Random,
Fixed
}
}
| mit | C# |
0536c5afa0403eacf0499c6be2dff3bf7b21ba41 | Add method to unescape string. | NickCraver/dotless,r2i-sitecore/dotless,rytmis/dotless,modulexcite/dotless,modulexcite/dotless,modulexcite/dotless,NickCraver/dotless,r2i-sitecore/dotless,r2i-sitecore/dotless,dotless/dotless,modulexcite/dotless,NickCraver/dotless,r2i-sitecore/dotless,r2i-sitecore/dotless,r2i-sitecore/dotless,NickCraver/dotless,rytmis/... | dotlessjs.Core/Tree/Quoted.cs | dotlessjs.Core/Tree/Quoted.cs | using System.Text.RegularExpressions;
using dotless.Infrastructure;
namespace dotless.Tree
{
public class Quoted : Node
{
public string Value { get; set; }
public string Contents { get; set; }
public Quoted(string value, string contents)
{
Value = value;
Contents = contents;
}
... | using dotless.Infrastructure;
namespace dotless.Tree
{
public class Quoted : Node
{
public string Value { get; set; }
public string Contents { get; set; }
public Quoted(string value, string contents)
{
Value = value;
Contents = contents;
}
public override string ToCSS(Env env... | apache-2.0 | C# |
e88e32cb0622474a8d49eb3503533428bca2ad67 | Revert visibility change and add null check | ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework | osu.Framework/Audio/Callbacks/DataStreamFileProcedures.cs | osu.Framework/Audio/Callbacks/DataStreamFileProcedures.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.IO;
#nullable enable
namespace osu.Framework.Audio.Callbacks
{
/// <summary>
/// Implementation of <see cref="IFileProcedures"/> tha... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.IO;
#nullable enable
namespace osu.Framework.Audio.Callbacks
{
/// <summary>
/// Implementation of <see cref="IFileProcedures"/> tha... | mit | C# |
f9976e21e7d38292bb0f63118f11f65c17edef82 | Use notification instead of debug to allow testing outside of editor | loicteixeira/gj-unity-api | Assets/Tests/Load/LoadTest.cs | Assets/Tests/Load/LoadTest.cs | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class LoadTest : MonoBehaviour
{
public void SignInButtonClicked()
{
GameJolt.UI.Manager.Instance.ShowSignIn((bool success) => {
if (success)
{
GameJolt.UI.Manager.Instance.QueueNotification("Welcome");
}
else
{
GameJ... | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class LoadTest : MonoBehaviour
{
public void SignInButtonClicked()
{
GameJolt.UI.Manager.Instance.ShowSignIn((bool success) => {
if (success)
{
Debug.Log("Logged In");
}
else
{
Debug.Log("Dismissed");
}
});
}
... | mit | C# |
387227f3909f34fba142f6814d0464f601d640b4 | Add comments for none generic generator | inputfalken/Sharpy | GeneratorAPI/IGenerator.cs | GeneratorAPI/IGenerator.cs | namespace GeneratorAPI {
/// <summary>
/// Represents a generic generator which can generate any ammount of elements.
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IGenerator<out T> : IGenerator {
/// <summary>
/// Generate next element.
/// </... | namespace GeneratorAPI {
/// <summary>
/// Represents a generic generator which can generate any ammount of elements.
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IGenerator<out T> : IGenerator {
/// <summary>
/// Generate next element.
/// </... | mit | C# |
f91dd06a3d2c0b70c8a92f757955ef40c30edf09 | add test for loadAllEvents | Pondidum/Ledger.Stores.Fs,Pondidum/Ledger.Stores.Fs | Ledger.Stores.Fs.Tests/LoadAllTests.cs | Ledger.Stores.Fs.Tests/LoadAllTests.cs | using System;
using System.IO;
using System.Linq;
using Ledger.Acceptance;
using Ledger.Acceptance.TestDomain.Events;
using Ledger.Acceptance.TestObjects;
using Shouldly;
using Xunit;
namespace Ledger.Stores.Fs.Tests
{
public class LoadAllTests
{
private const string StreamName = "LoadStream";
private readonly... | using System;
using System.IO;
using Ledger.Acceptance;
using Ledger.Acceptance.TestObjects;
using Shouldly;
using Xunit;
namespace Ledger.Stores.Fs.Tests
{
public class LoadAllTests
{
private const string StreamName = "LoadStream";
private readonly string _root;
private readonly FileEventStore _store;
pri... | lgpl-2.1 | C# |
5730b8dcd0aa5b27e7cbc3b475716c4211d6c46e | bump version down | kalotay/Log4Rx.NET | Log4Rx/Log4Rx/Properties/AssemblyInfo.cs | Log4Rx/Log4Rx/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("Lo... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Lo... | mit | C# |
51bfde8d121450065e2e94022d87be2bcabac632 | Allow UuidTypeConverter to convert to Nullable<Uuid>. | brendanjbaker/Bakery | src/Bakery/UuidTypeConverter.cs | src/Bakery/UuidTypeConverter.cs | namespace Bakery
{
using System;
using System.ComponentModel;
using System.Globalization;
public class UuidTypeConverter
: TypeConverter
{
public override Boolean CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
return
sourceType == typeof(String) ||
sourceType == t... | namespace Bakery
{
using System;
using System.ComponentModel;
using System.Globalization;
public class UuidTypeConverter
: TypeConverter
{
public override Boolean CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
return
sourceType == typeof(String) ||
sourceType == t... | mit | C# |
d3890ebb63cd520556b7f7ebc51cba0a1b8d011c | fix bug audioManager et potion | ifgx/rtm-phase2 | Assets/scripts/item/Potion.cs | Assets/scripts/item/Potion.cs | using UnityEngine;
using System.Collections;
/**
* @author Adrien D
* @version 1.0
*/
/**
* Potion script
*/
public abstract class Potion : MonoBehaviour {
private AudioManager audioManager;
public Potion(){
}
public Vector3 GetPosition()
{
float x = this.transform.position.x;
float y = this.... | using UnityEngine;
using System.Collections;
/**
* @author Adrien D
* @version 1.0
*/
/**
* Potion script
*/
public abstract class Potion : MonoBehaviour {
private AudioManager audioManager;
public Potion(){
audioManager = GameObject.Find("Main Camera").GetComponent<AudioManager>();
}
public Vect... | cc0-1.0 | C# |
490c0c70d6c144a2ab0a76dc696aa91e071c67b0 | Format comments. | AIWolfSharp/AIWolfCore,AIWolfSharp/AIWolf_NET | AIWolfLibCommon/Data/Guard.cs | AIWolfLibCommon/Data/Guard.cs | //
// Guard.cs
//
// Copyright (c) 2016 Takashi OTSUKI
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
using System.Runtime.Serialization;
namespace AIWolf.Common.Data
{
/// <summary>
/// Guard class.
/// </summary>
/// <remarks></remarks>
... | //
// Guard.cs
//
// Copyright (c) 2016 Takashi OTSUKI
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
using System.Runtime.Serialization;
namespace AIWolf.Common.Data
{
/// <summary>
/// Information of the guard carried out by the bodyguard.
//... | mit | C# |
7e3495bb26f86ddaa0d909dc1c95ceaf26302303 | Remove LINQ dependency | mstrother/BmpListener | BmpListener/Bgp/Capability.cs | BmpListener/Bgp/Capability.cs | using System;
namespace BmpListener.Bgp
{
public abstract class Capability
{
protected Capability(ArraySegment<byte> data)
{
var offset = data.Offset;
CapabilityType = (CapabilityCode)data.Array[offset];
Length = data.Array[data.Offset + 1];
}
... | using System;
using System.Linq;
namespace BmpListener.Bgp
{
public abstract class Capability
{
//private readonly int length;
protected Capability(ArraySegment<byte> data)
{
CapabilityType = (CapabilityCode)data.First();
Length = data.ElementAt(1);... | mit | C# |
2caff2c1341a4bc4b8f8cae0da859ec7ccf09d7c | use Rusty.Core for dummy MsgBox call | maul-esel/CobaltAHK,maul-esel/CobaltAHK | CobaltAHK/ExpressionTree/Scope.cs | CobaltAHK/ExpressionTree/Scope.cs | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace CobaltAHK.ExpressionTree
{
public class Scope
{
public Scope() : this(null) { }
public Scope(Scope parentScope) {
parent = parentScope;
#if DEBUG
var msgbox = Expression.Lambda<Action>(
Expression.Block(
Expr... | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace CobaltAHK.ExpressionTree
{
public class Scope
{
public Scope() : this(null) { }
public Scope(Scope parentScope) {
parent = parentScope;
#if DEBUG
var msgbox = Expression.Lambda<Action>(
Expression.Block(
Expr... | mit | C# |
2c8adffc55598a8af1ce1e8eda69866dd2da258e | call ChangeRoom() on Collision with door | whoa-algebraic/game-off-2016,virtuoushub/game-off-2016,virtuoushub/game-off-2016,virtuoushub/game-off-2016,whoa-algebraic/game-off-2016,whoa-algebraic/game-off-2016 | Assets/Scripts/DoorDetails.cs | Assets/Scripts/DoorDetails.cs | using UnityEngine;
using System.Collections;
public class DoorDetails : MonoBehaviour {
public int Id;
private int connectedRoomId;
private int connectedDoorId;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnCollisionEnter2D(... | using UnityEngine;
using System.Collections;
public class DoorDetails : MonoBehaviour {
public int Id;
private int connectedRoomId;
private int connectedDoorId;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnCollisionEnter2D(... | mit | C# |
af6cabdee789ffdffca26e1893bafd6daf695643 | Set velocity and forward vector when resetting ball position | Double-Fine-Game-Club/pongball | Assets/scripts/entity/Ball.cs | Assets/scripts/entity/Ball.cs | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class Ball : NetworkBehaviour {
private Rigidbody rigidBody = null;
private Vector3 startingPosition = Vector3.zero;
float minimumVelocity = 5;
float startingMinVelocity = ... | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class Ball : NetworkBehaviour {
private Rigidbody rigidBody = null;
private Vector3 startingPosition = Vector3.zero;
float minimumVelocity = 5;
float startingMinVelocity = ... | mit | C# |
1964f76691f3bbd4e7abcca5d72e0644c4a1dbcd | Add CloudinaryInfo | dataccountzXJ9/Lynx | Lynx/Database/Models/LynxModel.cs | Lynx/Database/Models/LynxModel.cs | using Lynx.Database;
using System.Collections.Generic;
namespace Lynx.Models.Database
{
public class LynxModel
{
public string BotToken { get; set; }
public string BotPrefix { get; set; }
public string ClarifaiAPIKey { get; set; }
public bool Debug { get; set; }
public ... | using System.Collections.Generic;
namespace Lynx.Models.Database
{
public class LynxModel
{
public string BotToken { get; set; }
public string BotPrefix { get; set; }
public string ClarifaiAPIKey { get; set; }
public bool Debug { get; set; }
public string Id { get; set;... | mit | C# |
61618e17fb7b66f631e7aac5b358d5a21559322c | Update Transpilers.cs | pardeike/Harmony | Harmony/Public/Transpilers.cs | Harmony/Public/Transpilers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
namespace HarmonyLib
{
/// <summary>A collection of commonly used transpilers</summary>
///
public static class Transpilers
{
/// <summary>A transpiler that replaces all occurrences of a giv... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
namespace HarmonyLib
{
/// <summary>A collection of commonly used transpilers</summary>
///
public static class Transpilers
{
/// <summary>A transpiler that replaces all occurrences of a giv... | mit | C# |
f49ae738a91a01b17c543785dbf617ac6b9266ce | resolve Jason's comments | markradacz/monotouch-samples,hongnguyenpro/monotouch-samples,haithemaraissia/monotouch-samples,a9upam/monotouch-samples,iFreedive/monotouch-samples,andypaul/monotouch-samples,albertoms/monotouch-samples,sakthivelnagarajan/monotouch-samples,nelzomal/monotouch-samples,YOTOV-LIMITED/monotouch-samples,YOTOV-LIMITED/monotou... | Chat/Chat/Cells/BubbleCell.cs | Chat/Chat/Cells/BubbleCell.cs | using System;
using UIKit;
using CoreGraphics;
namespace Chat
{
public abstract class BubbleCell : UITableViewCell
{
public UIImageView BubbleImageView { get; private set; }
public UILabel MessageLabel { get; private set; }
public UIImage BubbleImage { get; set; }
public UIImage BubbleHighlightedImage { ge... | using System;
using UIKit;
using CoreGraphics;
namespace Chat
{
public abstract class BubbleCell : UITableViewCell
{
public UIImageView BubbleImageView { get; private set; }
public UILabel MessageLabel { get; private set; }
public UIImage BubbleImage { get; set; }
public UIImage BubbleHighlightedImage { ge... | mit | C# |
e992335f8eb1f907b3bcae908b094509049f2916 | Update Applications.cs | datanets/kask-kiosk,datanets/kask-kiosk | Models/Applications.cs | Models/Applications.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Empty.Models
{
public class Applications
{
public int Application_ID { get; set; }
public string ApplicationStatus { get; set; }
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Empty.Models
{
public class Applications
{
public int PK { get; set; }
public char applicationStatus { get; set; }
}
} | mit | C# |
358bb5c310a0399e762a9821b2f8ab96f7ae7fd9 | Add license disclaimer | windygu/CefSharp,NumbersInternational/CefSharp,ruisebastiao/CefSharp,Livit/CefSharp,wangzheng888520/CefSharp,windygu/CefSharp,VioletLife/CefSharp,VioletLife/CefSharp,Livit/CefSharp,zhangjingpu/CefSharp,joshvera/CefSharp,jamespearce2006/CefSharp,illfang/CefSharp,AJDev77/CefSharp,twxstar/CefSharp,dga711/CefSharp,ITGlobal... | CefSharp/TransitionType.cs | CefSharp/TransitionType.cs | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp
{
[Flags]
public enum TransitionType : uint
{
/// <summary>
/// Source is a link click or the JavaScript ... | using System;
namespace CefSharp
{
[Flags]
public enum TransitionType : uint
{
/// <summary>
/// Source is a link click or the JavaScript window.open function. This is
/// also the default value for requests like sub-resource loads that are not navigations.
/// </summary>
LinkClicked = 0,
/// <summary... | bsd-3-clause | C# |
f81ebe7ffdb682a5938a0d654487d28eeaac11f7 | Simplify datetime validation to compare Date value only. | mconnew/wcf,mconnew/wcf,dotnet/wcf,imcarolwang/wcf,mconnew/wcf,StephenBonikowsky/wcf,imcarolwang/wcf,imcarolwang/wcf,dotnet/wcf,StephenBonikowsky/wcf,dotnet/wcf | src/System.ServiceModel.Security/tests/IdentityModel/GenericXmlSecurityTokenTest.cs | src/System.ServiceModel.Security/tests/IdentityModel/GenericXmlSecurityTokenTest.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IdentityModel.T... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IdentityModel.T... | mit | C# |
d9609c6c9e9eb7f72c1c949dfb6cc498d542beae | Add validation rule | ahanusa/facile.net,peasy/Samples,peasy/Samples,peasy/Peasy.NET,peasy/Samples,ahanusa/Peasy.NET | Orders.com.BLL/IntentoryItemService.cs | Orders.com.BLL/IntentoryItemService.cs | using System;
using Orders.com.Core.DataProxy;
using Orders.com.Core.Domain;
using Facile.Core;
using Facile.Extensions;
using System.Collections.Generic;
using Facile.Core.Extensions;
namespace Orders.com.BLL
{
public class InventoryItemService : OrdersDotComServiceBase<InventoryItem>
{
public Inven... | using System;
using Orders.com.Core.DataProxy;
using Orders.com.Core.Domain;
using Facile.Core;
using System.Collections.Generic;
namespace Orders.com.BLL
{
public class InventoryItemService : OrdersDotComServiceBase<InventoryItem>
{
public InventoryItemService(IInventoryItemDataProxy dataProxy) : ba... | mit | C# |
2f436342edead059eb1561a928efda37e876b926 | Update Version | AyrA/fcfh | fcfh/Properties/AssemblyInfo.cs | fcfh/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("fcfh")]
[assembly: AssemblyDescription("E... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("fcfh")]
[assembly: AssemblyDescription("E... | mit | C# |
db5e6d06fe41901f884497de9d6135404adc1e09 | change text on button | IdentityModel/AuthorizationServer,IdentityModel/AuthorizationServer,s093294/Thinktecture.AuthorizationServer,yfann/AuthorizationServer,yfann/AuthorizationServer,s093294/Thinktecture.AuthorizationServer | source/WebHost/Areas/Admin/Views/Application/Scope.cshtml | source/WebHost/Areas/Admin/Views/Application/Scope.cshtml | @{
ViewBag.Title = "Scope";
}
<h2><span data-bind="text: editDescription"></span> Scope</h2>
<ul class="nav nav-pills hide" data-bind="css: { hide: !menusEnabled() }">
<li>
<a data-href="@Url.Action("ScopeClients")"
data-bind="attr: { href: $element.dataset.href + '#' + $data.id() }">Clie... | @{
ViewBag.Title = "Scope";
}
<h2><span data-bind="text: editDescription"></span> Scope</h2>
<ul class="nav nav-pills hide" data-bind="css: { hide: !menusEnabled() }">
<li>
<a data-href="@Url.Action("ScopeClients")"
data-bind="attr: { href: $element.dataset.href + '#' + $data.id() }">Clie... | bsd-3-clause | C# |
41b6a9ed6a4ee0df7f3eddca404d1f170430d73b | Remove excess IPageObject<TOwner> generic type constraint from ScrollBehaviorAttribute.Execute method | atata-framework/atata,atata-framework/atata,YevgeniyShunevych/Atata,YevgeniyShunevych/Atata | src/Atata/Attributes/Behaviors/ScrollBehaviorAttribute.cs | src/Atata/Attributes/Behaviors/ScrollBehaviorAttribute.cs | namespace Atata
{
/// <summary>
/// Represents the base behavior class for scrolling to control.
/// </summary>
public abstract class ScrollBehaviorAttribute : MulticastAttribute
{
public abstract void Execute<TOwner>(IControl<TOwner> control)
where TOwner : PageObject<TOwner>;
... | namespace Atata
{
/// <summary>
/// Represents the base behavior class for scrolling to control.
/// </summary>
public abstract class ScrollBehaviorAttribute : MulticastAttribute
{
public abstract void Execute<TOwner>(IControl<TOwner> control)
where TOwner : PageObject<TOwner>, ... | apache-2.0 | C# |
3f5519e18b10cbbde7ab55877317c9505535c56c | Fix MAL result invalid Url property | bcanseco/common-bot-library,bcanseco/common-bot-library | src/CommonBotLibrary/Services/Models/MyAnimeListResult.cs | src/CommonBotLibrary/Services/Models/MyAnimeListResult.cs | using System;
using System.Net;
using System.Text.RegularExpressions;
using System.Xml.Linq;
using CommonBotLibrary.Interfaces.Models;
namespace CommonBotLibrary.Services.Models
{
public class MyAnimeListResult : AnimeBase, IWebpage, IEquatable<MyAnimeListResult>
{
public MyAnimeListResult(XContainer ... | using System;
using System.Net;
using System.Text.RegularExpressions;
using System.Xml.Linq;
using CommonBotLibrary.Interfaces.Models;
namespace CommonBotLibrary.Services.Models
{
public class MyAnimeListResult : AnimeBase, IWebpage, IEquatable<MyAnimeListResult>
{
public MyAnimeListResult(XContainer ... | mit | C# |
eb437e7a8857b9d7b7e8cf8875eed715c30cf34c | Fix the wrong conditional statement. | pratikkagda/nuget,mrward/NuGet.V2,zskullz/nuget,chocolatey/nuget-chocolatey,alluran/node.net,dolkensp/node.net,atheken/nuget,mrward/NuGet.V2,dolkensp/node.net,zskullz/nuget,indsoft/NuGet2,oliver-feng/nuget,rikoe/nuget,akrisiun/NuGet,antiufo/NuGet2,chocolatey/nuget-chocolatey,dolkensp/node.net,mrward/NuGet.V2,OneGet/nug... | src/Dialog/PackageManagerUI/SmartOutputConsoleProvider.cs | src/Dialog/PackageManagerUI/SmartOutputConsoleProvider.cs | using NuGet.OutputWindowConsole;
using NuGetConsole;
namespace NuGet.Dialog.PackageManagerUI {
internal class SmartOutputConsoleProvider : IOutputConsoleProvider {
private readonly IOutputConsoleProvider _baseProvider;
private bool _isFirstTime = true;
public SmartOutputConsoleP... | using NuGet.OutputWindowConsole;
using NuGetConsole;
namespace NuGet.Dialog.PackageManagerUI {
internal class SmartOutputConsoleProvider : IOutputConsoleProvider {
private readonly IOutputConsoleProvider _baseProvider;
private bool _isFirstTime = true;
public SmartOutputConsoleP... | apache-2.0 | C# |
9584881fc265c092c79c91660bbea9ec958ad8dd | Update PersonalDataAttribute.cs (#36067) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Identity/Extensions.Core/src/PersonalDataAttribute.cs | src/Identity/Extensions.Core/src/PersonalDataAttribute.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace Microsoft.AspNetCore.Identity
{
/// <summary>
/// Used to indicate that a something is considered personal data.
/// </summary>
[AttributeUsa... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace Microsoft.AspNetCore.Identity
{
/// <summary>
/// Used to indicate that a something is considered personal data.
/// </summary>
[AttributeUsa... | apache-2.0 | C# |
e785d499b29dcfdb568a2222b2bbefc0d91c9c1e | Change parameter names in FluentAstBuilder | akatakritos/SassSharp | SassSharp/Ast/FluentAstBuilder.cs | SassSharp/Ast/FluentAstBuilder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SassSharp.Ast
{
public class FluentAstBuilder
{
private IList<Node> nodes;
public FluentAstBuilder()
{
nodes = new List<Node>();
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SassSharp.Ast
{
public class FluentAstBuilder
{
private IList<Node> nodes;
public FluentAstBuilder()
{
nodes = new List<Node>();
}
... | mit | C# |
b5c7bdc8ad9c33413f4db93998ec60b1642ed70f | Update CIDSizeInfo.cs | EricZimmerman/RegistryPlugins | RegistryPlugin.CIDSizeMRU/CIDSizeInfo.cs | RegistryPlugin.CIDSizeMRU/CIDSizeInfo.cs | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.CIDSizeMRU
{
public class CIDSizeInfo:IValueOut
{
public CIDSizeInfo(string exeName, int mruPos, DateTimeOffset? openedOn)
{
Executable = exeName;
MRUPosition = mruPos;
OpenedOn = op... | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.CIDSizeMRU
{
public class CIDSizeInfo:IValueOut
{
public CIDSizeInfo(string exeName, int mruPos, DateTimeOffset? openedOn)
{
Executable = exeName;
MRUPosition = mruPos;
OpenedOn = op... | mit | C# |
9850579b0df397e0582f112d56fe194b3e3ba64c | add infrastructure/servers | lvermeulen/BuildMaster.Net | src/BuildMaster.Net/Infrastructure/BuildMasterClient.cs | src/BuildMaster.Net/Infrastructure/BuildMasterClient.cs | using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using BuildMaster.Net.Infrastructure.Models;
using Flurl.Http;
// ReSharper disable CheckNamespace
namespace BuildMaster.Net
{
public partial class BuildMasterClient
{
private IFlurlClient GetInfrastructureApiClien... | using Flurl.Http;
// ReSharper disable CheckNamespace
namespace BuildMaster.Net
{
public partial class BuildMasterClient
{
private IFlurlClient GetInfrastructureApiClient(string path, object queryParamValues = null) => GetApiClient("/api/infrastructure")
.AppendPathSegment(path)
... | mit | C# |
5d1c216846782b888eeeaaabce985ab325b8b8ca | use tls1.2 for WebProxyRequests | 0x53A/Paket,0x53A/Paket,theimowski/Paket,thinkbeforecoding/Paket,mrinaldi/Paket,inosik/Paket,cloudRoutine/Paket,sergey-tihon/Paket,jam40jeff/Paket,thinkbeforecoding/Paket,vbfox/Paket,baronfel/Paket,mrinaldi/Paket,0x53A/Paket,cloudRoutine/Paket,isaacabraham/Paket,thinkbeforecoding/Paket,mrinaldi/Paket,thinkbeforecoding/... | src/Paket.Bootstrapper/HelperProxies/WebRequestProxy.cs | src/Paket.Bootstrapper/HelperProxies/WebRequestProxy.cs | using System.IO;
using System.Net;
namespace Paket.Bootstrapper.HelperProxies
{
public class WebRequestProxy : IWebRequestProxy
{
public WebRequestProxy()
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
Client = new WebClient();
}
p... | using System.IO;
using System.Net;
namespace Paket.Bootstrapper.HelperProxies
{
public class WebRequestProxy : IWebRequestProxy
{
public WebRequestProxy()
{
Client = new WebClient();
}
private WebClient Client { get; set; }
public string DownloadString(str... | mit | C# |
278afa3380fed4bb1596fcca7006f6032c569629 | delete a broken MC input in intel-syntax-encoding.s.cs | bigendiansmalls/capstone,sigma-random/capstone,fvrmatteo/capstone,code4bones/capstone,krytarowski/capstone,zneak/capstone,xia0pin9/capstone,zneak/capstone,pombredanne/capstone,krytarowski/capstone,bSr43/capstone,AmesianX/capstone,techvoltage/capstone,sigma-random/capstone,pranith/capstone,8l/capstone,capturePointer/cap... | suite/MC/X86/intel-syntax-encoding.s.cs | suite/MC/X86/intel-syntax-encoding.s.cs | # CS_ARCH_X86, CS_MODE_64, None
0x66,0x83,0xf0,0x0c = xor ax, 12
0x83,0xf0,0x0c = xor eax, 12
0x48,0x83,0xf0,0x0c = xor rax, 12
0x66,0x83,0xc8,0x0c = or ax, 12
0x83,0xc8,0x0c = or eax, 12
0x48,0x83,0xc8,0x0c = or rax, 12
0x66,0x83,0xf8,0x0c = cmp ax, 12
0x83,0xf8,0x0c = cmp eax, 12
0x48,0x83,0xf8,0x0c = cmp rax, 12
0x4... | # CS_ARCH_X86, CS_MODE_64, None
0x66,0x83,0xf0,0x0c = xor ax, 12
0x83,0xf0,0x0c = xor eax, 12
0x48,0x83,0xf0,0x0c = xor rax, 12
0x66,0x83,0xc8,0x0c = or ax, 12
0x83,0xc8,0x0c = or eax, 12
0x48,0x83,0xc8,0x0c = or rax, 12
0x66,0x83,0xf8,0x0c = cmp ax, 12
0x83,0xf8,0x0c = cmp eax, 12
0x48,0x83,0xf8,0x0c = cmp rax, 12
0x4... | bsd-3-clause | C# |
7cb38f774a9f40ec48b52c3ca4a97810aafb4128 | Update b/c of new dockpanel | superputty/superputty,alsanchez/SuperPutty | SuperPutty/ToolWindow.Designer.cs | SuperPutty/ToolWindow.Designer.cs | namespace SuperPutty
{
partial class ToolWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | namespace SuperPutty
{
partial class ToolWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | mit | C# |
03de129346e598be247829982069211ab16ce8c9 | Update to 1.4. | darrencauthon/AutoMoq,darrencauthon/AutoMoq,darrencauthon/AutoMoq | src/AutoMoq/Properties/AssemblyInfo.cs | src/AutoMoq/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AutoMoq")]
[assembly: AssemblyDescription... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AutoMoq")]
[assembly: AssemblyDescription... | mit | C# |
a8d57ffb1187ef15da6de8019c65008aa6ec6d67 | increment to 0.14.0 | config-r/config-r | src/ConfigR/Properties/AssemblyInfo.cs | src/ConfigR/Properties/AssemblyInfo.cs | // <copyright file="AssemblyInfo.cs" company="ConfigR contributors">
// Copyright (c) ConfigR contributors. (configr.net@gmail.com)
// </copyright>
using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("ConfigR")]
[assembly: AssemblyDescription("Write your .N... | // <copyright file="AssemblyInfo.cs" company="ConfigR contributors">
// Copyright (c) ConfigR contributors. (configr.net@gmail.com)
// </copyright>
using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("ConfigR")]
[assembly: AssemblyDescription("Write your .N... | mit | C# |
fb9c8e99eec35456cdd55e9472115b151d4c66bb | Support StringEnums that are lists | twilio/twilio-csharp | Twilio/Converters/StringEnumConverter.cs | Twilio/Converters/StringEnumConverter.cs | using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.Collections;
using Twilio.Types;
namespace Twilio.Converters
{
public class StringEnumConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serialize... | using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.Collections;
using Twilio.Types;
namespace Twilio.Converters
{
public class StringEnumConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serialize... | mit | C# |
82a4c4a82046b1ac59cb17540d4695c0bd598dec | Make getinfo obsolete | lontivero/NBitcoin,MetacoSA/NBitcoin,MetacoSA/NBitcoin,NicolasDorier/NBitcoin | NBitcoin/RPC/RPCOperations.cs | NBitcoin/RPC/RPCOperations.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBitcoin.RPC
{
//from rpcserver.h
public enum RPCOperations
{
getconnectioncount,
getpeerinfo,
ping,
addnode,
getaddednodeinfo,
getnettotals,
dumpprivkey,
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBitcoin.RPC
{
//from rpcserver.h
public enum RPCOperations
{
getconnectioncount,
getpeerinfo,
ping,
addnode,
getaddednodeinfo,
getnettotals,
dumpprivkey,
... | mit | C# |
c6b287aa4f165f47264309c60e636a26651ec02e | Add NotificationFeatureSupported and AlarmFeatureSupported peoperties to WellKnownServerFeatures class. | ZEISS-PiWeb/PiWeb-Api | src/Common/Data/WellKnownServerFeatures.cs | src/Common/Data/WellKnownServerFeatures.cs | #region copyright
/* * * * * * * * * * * * * * * * * * * * * * * * * */
/* Carl Zeiss IMT (IZfM Dresden) */
/* Softwaresystem PiWeb */
/* (c) Carl Zeiss 2015 */
/* * * * * * * * * * * * * * * * * * * * * * * * * */
#endregion
using Zeiss... | #region copyright
/* * * * * * * * * * * * * * * * * * * * * * * * * */
/* Carl Zeiss IMT (IZfM Dresden) */
/* Softwaresystem PiWeb */
/* (c) Carl Zeiss 2015 */
/* * * * * * * * * * * * * * * * * * * * * * * * * */
#endregion
using Zeiss... | bsd-3-clause | C# |
4b52e405a4119e50709abe3ddb8ead99d1d15be0 | Fix script compilation settings (#4853) | elastic/elasticsearch-net,elastic/elasticsearch-net | tests/Tests.Core/ManagedElasticsearch/Clusters/ClientTestClusterBase.cs | tests/Tests.Core/ManagedElasticsearch/Clusters/ClientTestClusterBase.cs | // Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
using System.IO;
using Elastic.Elasticsearch.Ephemeral;
using Elastic.Elasticsearch.Ephemeral.Plugins;
using Elas... | // Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
using System.IO;
using Elastic.Elasticsearch.Ephemeral;
using Elastic.Elasticsearch.Ephemeral.Plugins;
using Elas... | apache-2.0 | C# |
b2011a339848413e333f2d4612b7e8bbea3e43b7 | Adjust admin layout | PioneerCode/pioneer-blog,PioneerCode/pioneer-blog,PioneerCode/pioneer-blog,PioneerCode/pioneer-blog | src/Pioneer.Blog/Areas/Admin/Views/Shared/_LayoutAdmin.cshtml | src/Pioneer.Blog/Areas/Admin/Views/Shared/_LayoutAdmin.cshtml | @{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section headEnd {
<base href="/admin/portal">
<link href="~/admin/styles.css" rel="stylesheet" />
}
<section class="body-content-admin">
<header>
<div class="clearfix">
<div class="home float-left">
<a href="/">
<i class="fa fa-hom... | @{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section headEnd {
<base href="/admin/portal">
<link href="~/admin/styles.css" rel="stylesheet" />
}
<section class="body-content-admin">
<header>
<div class="clearfix">
<div class="home float-left">
<a href="/">
<i class="fa fa-hom... | mit | C# |
0f711b3a4db40b6d609b0cee90f63e6856ce606a | Read colors using values between 0-255 instead of 0-1. | samfun123/KtaneTwitchPlays,CaitSith2/KtaneTwitchPlays | Assets/Scripts/Helpers/SettingsConverter.cs | Assets/Scripts/Helpers/SettingsConverter.cs | using Newtonsoft.Json;
using System;
using System.Linq;
using UnityEngine;
class SettingsConverter
{
public static string Serialize(object obj)
{
return JsonConvert.SerializeObject(obj, Formatting.Indented, new ColorConverter());
}
public static T Deserialize<T>(string json)
{
return JsonConvert.Deserialize... | using Newtonsoft.Json;
using System;
using System.Linq;
using UnityEngine;
class SettingsConverter
{
public static string Serialize(object obj)
{
return JsonConvert.SerializeObject(obj, Formatting.Indented, new ColorConverter());
}
public static T Deserialize<T>(string json)
{
return JsonConvert.Deserialize... | mit | C# |
1bb841d33dcfe76120880d5a22125a72abfff03f | fix CatContext Serialize | chinaboard/PureCat | PureCat/Context/CatContext.cs | PureCat/Context/CatContext.cs | using System;
using System.Collections;
using System.Collections.Generic;
namespace PureCat.Context
{
public class CatContext
{
private Dictionary<string, string> _dict = new Dictionary<string, string>();
private const string _catRootId = "X-Cat-RootId";
private const strin... | using System;
using System.Collections;
using System.Collections.Generic;
namespace PureCat.Context
{
public class CatContext : IEnumerable<KeyValuePair<string, string>>
{
private Dictionary<string, string> _dict = new Dictionary<string, string>();
private const string _catRootId = ... | mit | C# |
08ed10d7d31d058cc25ff3cc606c3c76fff39b9b | Create server side API for single multiple answer question | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | mit | C# |
a80e8aa01827461c6e31c28528d944fce3aa229b | Fix NRE | gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer | Client/Extensions/CelestialBodyExtension.cs | Client/Extensions/CelestialBodyExtension.cs | using System;
namespace LunaClient.Extensions
{
public static class CelestialBodyExtension
{
public static double SiderealDayLength(this CelestialBody body)
{
if (body == null) return 0;
var siderealOrbitalPeriod = 6.28318530717959 * Math.Sqrt(Math.Pow(Math.Abs(body.or... | using System;
namespace LunaClient.Extensions
{
public static class CelestialBodyExtension
{
public static double SiderealDayLength(this CelestialBody body)
{
var siderealOrbitalPeriod = 6.28318530717959 * Math.Sqrt(Math.Pow(Math.Abs(body.orbit.semiMajorAxis), 3) / body.orbit.refer... | mit | C# |
42a93f448e21e46224f0017db3bcc544316bb9ac | Set the document language to English | alastairs/cgowebsite,alastairs/cgowebsite | src/CGO.Web/Views/Shared/_Layout.cshtml | src/CGO.Web/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/themes/base/css", "~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
@RenderBody()
@Scripts.Ren... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/themes/base/css", "~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
@RenderBody()
@Scripts.R... | mit | C# |
4553997f58528ed9df0058102194d88d9a74125b | Update Oneway.cs | hprose/hprose-dotnet | src/Hprose.RPC.Plugins/Oneway/Oneway.cs | src/Hprose.RPC.Plugins/Oneway/Oneway.cs | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | mit | C# |
2585e15c389aca4f39887b6d624990efbb2c822d | Create object fields for save directory and image type | robertgreiner/Slapshot | Slapshot/Slapshot.cs | Slapshot/Slapshot.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Slapshot
{
public partial class Slapshot : Form
{
private string SaveDirector... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Slapshot
{
public partial class Slapshot : Form
{
public Slapshot()
{
... | mit | C# |
a54f570a7666e9697e99b0838472156e3c22a7a5 | Update website URI to root domain | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/MattBobke.cs | src/Firehose.Web/Authors/MattBobke.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
public class MattBobke : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Matt";
public string LastName => "Bobke";
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
public class MattBobke : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Matt";
public string LastName => "Bobke";
... | mit | C# |
b77fe41a745dc33c83acb7330784eaac592117a2 | Add ImportTestAsync, ImportUpdateTestAsync | ats124/backlog4net | src/Backlog4net.Test/ImportMethodsTest.cs | src/Backlog4net.Test/ImportMethodsTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.Remoting;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Backlog4net.Test
{
using Api;
using Api.Option;
using Backlog4net.Internal.Json;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.Remoting;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Backlog4net.Test
{
using Api;
using Api.Option;
using Backlog4net.Internal.Json;... | mit | C# |
cfbd1108a7328af5cbc5d532ada4c6a8915d9d2f | Remove Category link in menu | webSportENIProject/webSport,webSportENIProject/webSport | WUI/Views/Shared/_Menu.cshtml | WUI/Views/Shared/_Menu.cshtml | <li>@Html.ActionLink("Courses", "Index", "Race")</li>
@if (User.IsInRole("Administrateur"))
{
<li>@Html.ActionLink("Liste des points", "Index", "Point")</li>
<li>@Html.ActionLink("Importer les résultats", "Import", "Resultat")</li>
}
@if (User.IsInRole("Administrateur"))
{
<li>@Html.ActionLink("Type de P... | <li>@Html.ActionLink("Courses", "Index", "Race")</li>
<li>@Html.ActionLink("Catégories", "Index", "Category")</li>
@if (User.IsInRole("Administrateur"))
{
<li>@Html.ActionLink("Liste des points", "Index", "Point")</li>
<li>@Html.ActionLink("Importer les résultats", "Import", "Resultat")</li>
}
@if (User.IsIn... | apache-2.0 | C# |
9bcbf094679c9cab2c266baa3b9b5b4f862fd7da | Disable ConsoleLogAdapter in test output | github-for-unity/Unity,github-for-unity/Unity,github-for-unity/Unity | src/tests/IntegrationTests/SetUpFixture.cs | src/tests/IntegrationTests/SetUpFixture.cs | using System;
using GitHub.Unity;
using NUnit.Framework;
namespace IntegrationTests
{
[SetUpFixture]
public class SetUpFixture
{
[SetUp]
public void Setup()
{
Logging.TracingEnabled = true;
Logging.LogAdapter = new MultipleLogAdapter(
new Fil... | using System;
using GitHub.Unity;
using NUnit.Framework;
namespace IntegrationTests
{
[SetUpFixture]
public class SetUpFixture
{
[SetUp]
public void Setup()
{
Logging.TracingEnabled = true;
Logging.LogAdapter = new MultipleLogAdapter(
new Fil... | mit | C# |
2525de24467f57006a875853deb8123fc8c1f6b1 | Update kind functionapp -> functionappdev | projectkudu/AzureFunctions,agruning/azure-functions-ux,chunye/azure-functions-ux,agruning/azure-functions-ux,agruning/azure-functions-ux,projectkudu/AzureFunctions,projectkudu/AzureFunctions,projectkudu/WebJobsPortal,projectkudu/AzureFunctions,chunye/azure-functions-ux,projectkudu/WebJobsPortal,projectkudu/WebJobsPorta... | AzureFunctions/Common/Constants.cs | AzureFunctions/Common/Constants.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace AzureFunctions.Common
{
public static class Constants
{
public const string SubscriptionTemplate = "{0}/subscriptions/{1}?api-version={2}";
public const string CSMApiVersion = "2014-04-01";
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace AzureFunctions.Common
{
public static class Constants
{
public const string SubscriptionTemplate = "{0}/subscriptions/{1}?api-version={2}";
public const string CSMApiVersion = "2014-04-01";
p... | apache-2.0 | C# |
6d1c15130aadd62ad8360881d1077202c7153827 | Remove unnecessary code | DkoSoftware/WebPlataform,DkoSoftware/WebPlataform | FamintusApi/Controllers/ValuesController.cs | FamintusApi/Controllers/ValuesController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace FamintusApi.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace FamintusApi.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return... | mit | C# |
a29ac5970b1b701fed715d77892e0b691ed5f961 | Fix unit-test | SharpeRAD/Cake.Powershell,SharpeRAD/Cake.Powershell | src/PowerShell.Tests/Tests/FileTests.cs | src/PowerShell.Tests/Tests/FileTests.cs | #region Using Statements
using Cake.Core.IO;
using System.Linq;
using System.Collections.ObjectModel;
using System.Management.Automation;
using Xunit;
#endregion
namespace Cake.Powershell.Tests
{
public class FileTests
{
[Fact]
public void Should_Start_Local_File()
{
Coll... | #region Using Statements
using Cake.Core.IO;
using System.Collections.ObjectModel;
using System.Management.Automation;
using Xunit;
#endregion
namespace Cake.Powershell.Tests
{
public class FileTests
{
[Fact]
public void Should_Start_Local_File()
{
Collection<PSObject> re... | mit | C# |
53fd7588c4b606d30dbbd8da382a6101170adb49 | Fix incorrect increment when assigning a new tick value [#18] (#20) | Mpdreamz/shellprogressbar | src/ShellProgressBar/ProgressBarBase.cs | src/ShellProgressBar/ProgressBarBase.cs | using System;
using System.Collections.Concurrent;
using System.Text;
using System.Threading;
namespace ShellProgressBar
{
public abstract class ProgressBarBase
{
static ProgressBarBase()
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
}
protected readonly DateTime _startDate = DateTime.... | using System;
using System.Collections.Concurrent;
using System.Text;
using System.Threading;
namespace ShellProgressBar
{
public abstract class ProgressBarBase
{
static ProgressBarBase()
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
}
protected readonly DateTime _startDate = DateTime.... | mit | C# |
419ea36284692ab5245a1b285649167b2cb5a5c9 | Remove row div. | strayfatty/ShowFeed,strayfatty/ShowFeed | src/ShowFeed/Views/Account/LogIn.cshtml | src/ShowFeed/Views/Account/LogIn.cshtml | @model ShowFeed.ViewModels.AccountLogInViewModel
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="page-header">
<h3>Log In</h3>
</div>
<form class="form-horizontal" action="@Url.RouteUrl("login")" method="post">
<div class="form-group">
@Html.LabelFor(m => m.Username, new { @class = "c... | @model ShowFeed.ViewModels.AccountLogInViewModel
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="page-header">
<h3>Log In</h3>
</div>
<div class="row">
<form class="form-horizontal" action="@Url.RouteUrl("login")" method="post">
<div class="form-group">
@Html.LabelFor(m =>... | mit | C# |
b8e02ca7e4302116e747552ec9caa8a167ed6aaf | Bump version to 0.8 | arnovb-github/CmcLibNet | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Cm... | 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("Cm... | mit | C# |
0e82900753f66d61347a3356bd58f930677d7497 | Update copyright | github/GitPad | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Gi... | 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("Gi... | mit | C# |
3cf61dce7b5c66778bcaa9312f73efe1ee83a491 | Move hardcoded values into static fields | billboga/silverpop-dotnet-api,kendaleiv/silverpop-dotnet-api,kendaleiv/silverpop-dotnet-api,ritterim/silverpop-dotnet-api | test/Silverpop.Core.Performance/Program.cs | test/Silverpop.Core.Performance/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Silverpop.Core.Performance
{
internal class Program
{
private static IEnumerable<int> TestRecipientCounts = new List<int>()
{
1000000,
5000000,
};
private static int TestRecipi... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Silverpop.Core.Performance
{
internal class Program
{
private static void Main(string[] args)
{
var tagValue = new string(
Enumerable.Repeat("ABC", 1000)
.SelectMany(x =... | mit | C# |
a6482210026a85a1897776dfbf5c41519aa44f77 | Add SupportedInterface strings to allow discovery. Including VideoApp for new directive. | stoiveyp/alexa-skills-dotnet,timheuer/alexa-skills-dotnet | Alexa.NET/Request/SupportedInterfaces.cs | Alexa.NET/Request/SupportedInterfaces.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Alexa.NET.Request
{
public static class SupportedInterfaces
{
public const string Display = "Display";
public const string AudioPlayer = "AudioPlayer";
public const string VideoAp... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Alexa.NET.Request
{
public class SupportedInterfaces
{
}
}
| mit | C# |
c539d01c1726bded71e3f6d32210b9a520ca7c91 | Fix test for 64-bit platforms | cshung/coreclr,cshung/coreclr,wtgodbe/coreclr,poizan42/coreclr,wtgodbe/coreclr,poizan42/coreclr,wtgodbe/coreclr,krk/coreclr,poizan42/coreclr,wtgodbe/coreclr,cshung/coreclr,krk/coreclr,poizan42/coreclr,krk/coreclr,krk/coreclr,poizan42/coreclr,wtgodbe/coreclr,krk/coreclr,cshung/coreclr,krk/coreclr,wtgodbe/coreclr,cshung/... | tests/src/JIT/Methodical/largeframes/skip4/skippage4.cs | tests/src/JIT/Methodical/largeframes/skip4/skippage4.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Passing a very large struct by value on the stack, on arm32 and x86,
// can cause it to be copied from a temp to ... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Passing a very large struct by value on the stack, on arm32 and x86,
// can cause it to be copied from a temp to ... | mit | C# |
c30096580813d0d0d9655d0e7cbe9fbc652aef57 | Add slot for datasource | tobyclh/UnityCNTK,tobyclh/UnityCNTK | Assets/UnityCNTK/Scripts/Models/Model.cs | Assets/UnityCNTK/Scripts/Models/Model.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine.Assertions;
using System.Linq;
using UnityEngine;
using System.Timers;
using System.Threading;
using System.Threading.Tasks;
using CNTK;
using System;
using UnityEngine.Events;
namespace UnityCNTK
{
/// <summary>
/// B... | using System.Collections;
using System.Collections.Generic;
using UnityEngine.Assertions;
using System.Linq;
using UnityEngine;
using System.Timers;
using System.Threading;
using System.Threading.Tasks;
using CNTK;
using System;
using UnityEngine.Events;
namespace UnityCNTK
{
/// <summary>
/// B... | mit | C# |
f3695cde54df4f7cc1ad98827628905cff2e3e34 | Fix typo. | Invenietis/CK-AspNet-Auth,Invenietis/CK-AspNet-Auth,Invenietis/CK-AspNet-Auth,Invenietis/CK-AspNet-Auth | CK.AspNet.Auth/Extensions/IWebFrontAuthDynamicScopeProvider.cs | CK.AspNet.Auth/Extensions/IWebFrontAuthDynamicScopeProvider.cs | using CK.Auth;
using CK.Core;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace CK.AspNet.Auth
{
/// <summary>
/// Optional service that can handle dynamic scopes.
/// </summary>
public interface IWebFrontAuthDyna... | using CK.Auth;
using CK.Core;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace CK.AspNet.Auth
{
/// <summary>
/// Optional service that can handle dynamic scopes.
/// </summary>
public interface IWebFrontAuthDyna... | mit | C# |
85e733933c03d2a5a2b69b36c684bb6295fe04f3 | Fix teamcity build | martin211/aimp_dotnet,martin211/aimp_dotnet,martin211/aimp_dotnet,martin211/aimp_dotnet,martin211/aimp_dotnet | build/GitVersion/GitVersionAttribute2.cs | build/GitVersion/GitVersionAttribute2.cs | // ----------------------------------------------------
//
// AIMP DotNet SDK
//
// Copyright (c) 2014 - 2020 Evgeniy Bogdan
// https://github.com/martin211/aimp_dotnet
//
// Mail: mail4evgeniy@gmail.com
//
// ----------------------------------------------------
using System.Reflection;
using Nuke.Com... | // ----------------------------------------------------
//
// AIMP DotNet SDK
//
// Copyright (c) 2014 - 2020 Evgeniy Bogdan
// https://github.com/martin211/aimp_dotnet
//
// Mail: mail4evgeniy@gmail.com
//
// ----------------------------------------------------
using System.Reflection;
using Nuke.Com... | apache-2.0 | C# |
900bc3146cf986948dcba649e87a1b0b6f1638a3 | clear guild members on different task to avoid deadlocks | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Data/GuildInfo.cs | TCC.Core/Data/GuildInfo.cs | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Nostrum;
using TeraDataLite;
namespace TCC.Data
{
public class GuildInfo
{
public bool InGuild { get; private set; }
public GuildMemberData Master { get; private set; }
public TSObservableCollecti... | using System.Collections.Generic;
using System.Linq;
using Nostrum;
using TeraDataLite;
namespace TCC.Data
{
public class GuildInfo
{
public bool InGuild { get; private set; }
public GuildMemberData Master { get; private set; }
public TSObservableCollection<GuildMemberData> Members { ... | mit | C# |
2d544cbe3933a5b6baeaa247fa2a294b49e44e40 | Update PlusPersonResponse.cs | pdcdeveloper/QpGoogleApi | OAuth/Models/PlusPersonResponse.cs | OAuth/Models/PlusPersonResponse.cs | /*
Date : Monday, June 13, 2016
Author : pdcdeveloper (https://github.com/pdcdeveloper)
Objective :
Version : 1.0
*/
using Newtonsoft.Json;
namespace QPGoogleAPI.OAuth.Models
{
///
/// <remarks>
///
/// Scopes:
/// https://www.googleapis.com/auth/useri... | /*
Date : Monday, June 13, 2016
Author : QualiP (https://github.com/QualiP)
Objective :
Version : 1.0
*/
using Newtonsoft.Json;
namespace QPGoogleAPI.OAuth.Models
{
///
/// <remarks>
///
/// Scopes:
/// https://www.googleapis.com/auth/userinfo.profile
... | mit | C# |
bfb3a81ff197ac20b2c10d8c2ba1c3b44657a32c | Use expression bodied function | githuis/BolTDL,githuis/BolTDL | BolTDL/BolTDLCore.NetStandard/ToDoList.cs | BolTDL/BolTDLCore.NetStandard/ToDoList.cs | using System.Collections.Generic;
using BolTDLCore.NetStandard.Tasks;
using Newtonsoft.Json;
namespace BolTDLCore.NetStandard
{
public class ToDoList
{
[JsonProperty("listtitle")]
public string Name { get; private set; }
public int Length => Tasks.Count;
public List<BolTask> GetAllT... | using System.Collections.Generic;
using BolTDLCore.NetStandard.Tasks;
using Newtonsoft.Json;
namespace BolTDLCore.NetStandard
{
public class ToDoList
{
[JsonProperty("listtitle")]
public string Name { get; private set; }
public int Length
{
get
{
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.