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 |
|---|---|---|---|---|---|---|---|---|
3f4e5d1dca41270d547ccbc3c328bcafba490315 | Improve JS Snippet unit test | Microsoft/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnet5,gzepeda/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnet5,gzepeda/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnet5,Microsoft/ApplicationInsights-aspnetcore,gzepe... | test/Microsoft.ApplicationInsights.AspNetCore.Tests/JavaScript/ApplicationInsightsJavaScriptTest.cs | test/Microsoft.ApplicationInsights.AspNetCore.Tests/JavaScript/ApplicationInsightsJavaScriptTest.cs | namespace Microsoft.Framework.DependencyInjection.Test
{
using Microsoft.ApplicationInsights.AspNetCore;
using Microsoft.ApplicationInsights.Extensibility;
using Xunit;
public static class ApplicationInsightsJavaScriptTest
{
[Fact]
public static void SnippetWillBeEmptyWhenInstrumen... | namespace Microsoft.Framework.DependencyInjection.Test
{
using Microsoft.ApplicationInsights.AspNetCore;
using Microsoft.ApplicationInsights.Extensibility;
using Xunit;
public static class ApplicationInsightsJavaScriptTest
{
[Fact]
public static void SnippetWillBeEmptyWhenInstrumen... | mit | C# |
c561b3f8894f1a4536a4af9a9f63fe8e19db3e00 | test db creation | olebg/Movie-Theater-Project | MovieTheater/MovieTheater.CLI/StartUp.cs | MovieTheater/MovieTheater.CLI/StartUp.cs | using MovieTheater.Data;
using MovieTheater.Data.Migrations;
using MovieTheater.Models;
using System.Data.Entity;
namespace MovieTheater.CLI
{
public class StartUp
{
public static void Main()
{
Database.SetInitializer(new MigrateDatabaseToLatestVersion<MovieTheaterDbContext, Config... | using MovieTheater.Data;
using MovieTheater.Data.Migrations;
using MovieTheater.Models;
using System.Data.Entity;
namespace MovieTheater.CLI
{
public class StartUp
{
public static void Main()
{
Database.SetInitializer(new MigrateDatabaseToLatestVersion<MovieTheaterDbContext, Config... | mit | C# |
1db53d2e60aed1ebcc09bee5892838155676acaa | Fix migration by truncating rooms table | johanhelsing/vaskelista,johanhelsing/vaskelista | Vaskelista/Migrations/201409021138021_RoomHouseholdRelation.cs | Vaskelista/Migrations/201409021138021_RoomHouseholdRelation.cs | namespace Vaskelista.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class RoomHouseholdRelation : DbMigration
{
public override void Up()
{
Sql("TRUNCATE TABLE dbo.Rooms");
AddColumn("dbo.Rooms", "HouseHold_HouseholdId", c => c... | namespace Vaskelista.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class RoomHouseholdRelation : DbMigration
{
public override void Up()
{
AddColumn("dbo.Rooms", "HouseHold_HouseholdId", c => c.Int(nullable: false));
... | mit | C# |
da8d1a473232457261f15a21ef5308888b8d6aec | Update assembly information, changed version to 0.1. | Gohla/renegadex-launcher | RXL.WPFClient/Properties/AssemblyInfo.cs | RXL.WPFClient/Properties/AssemblyInfo.cs | using System.Reflection;
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 with an assembly.
[assembly: AssemblyTitle("Alternative ... | using System.Reflection;
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 with an assembly.
[assembly: AssemblyTitle("RXL.WPFClien... | mit | C# |
0909144c85f5134aa112cad70f4b9303a4b0c913 | add `therad_ts` for NewMessage | Inumedia/SlackAPI | SlackAPI/WebSocketMessages/NewMessage.cs | SlackAPI/WebSocketMessages/NewMessage.cs | using System;
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("message")]
[SlackSocketRouting("message", "bot_message")]
public class NewMessage : SlackSocketMessage
{
public string user;
public string channel;
public string text;
public string team;
... | using System;
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("message")]
[SlackSocketRouting("message", "bot_message")]
public class NewMessage : SlackSocketMessage
{
public string user;
public string channel;
public string text;
public string team;
... | mit | C# |
1134d6250733c9d66abc2cb3662b74c3785c4c83 | Fix DocumentIndex: IEquatable<DocumentIndex> | InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform | InfinniPlatform.Sdk/Metadata/Documents/DocumentIndex.cs | InfinniPlatform.Sdk/Metadata/Documents/DocumentIndex.cs | using System;
using System.Collections.Generic;
namespace InfinniPlatform.Sdk.Metadata.Documents
{
/// <summary>
/// Индекс документа.
/// </summary>
public sealed class DocumentIndex : IEquatable<DocumentIndex>
{
/// <summary>
/// Имя индекса.
/// </summary>
public... | using System;
using System.Collections.Generic;
namespace InfinniPlatform.Sdk.Metadata.Documents
{
/// <summary>
/// Индекс документа.
/// </summary>
public sealed class DocumentIndex : IEquatable<DocumentIndex>
{
/// <summary>
/// Имя индекса.
/// </summary>
public... | agpl-3.0 | C# |
d565d6522b9a261e964be7cd0d627f5870a6b534 | Bump version to 2.0 | cergis-robert/SagePayMvc,IntegratedArts/SagePayMvc,AdtecSoftware/Adtec.SagePayMvc,JeremySkinner/SagePayMvc,AdtecSoftware/SagePayMvc | src/SagePayMvc/Properties/AssemblyInfo.cs | src/SagePayMvc/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... | apache-2.0 | C# |
9aa4773acbfadbcf95aaf0063510f8be8ddcbd86 | remove the NotFound event, as it is not used anymore | heftig/avahi-1,gloryleague/avahi,Distrotech/avahi,lathiat/avahi,heftig/avahi,Kisensum/xmDNS-avahi,heftig/avahi,everbase/catta,lathiat/avahi,Kisensum/xmDNS-avahi,lathiat/avahi,gloryleague/avahi,Distrotech/avahi,sunilghai/avahi-clone,heftig/avahi-1,heftig/avahi,sunilghai/avahi-clone,lathiat/avahi,Kisensum/xmDNS-avahi,glo... | avahi-sharp/BrowserBase.cs | avahi-sharp/BrowserBase.cs | /* $Id$ */
/***
This file is part of avahi.
avahi is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.
avahi is distribute... | /* $Id$ */
/***
This file is part of avahi.
avahi is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) any later version.
avahi is distribute... | lgpl-2.1 | C# |
4b74cc8bbc01dcb3673669fe52270d78652fdf99 | Fix Error in Median Calculation | iwillspeak/IronRure,iwillspeak/IronRure | bench/Alice/BenchResult.cs | bench/Alice/BenchResult.cs | using System;
using System.Linq;
using System.Collections.Generic;
namespace Alice
{
public class BenchResult
{
public BenchResult(string name, List<long> ticks)
{
Name = name;
_ticks = ticks;
_ticks.Sort();
Mean = _ticks.Sum() / _ticks.Count;
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Alice
{
public class BenchResult
{
public BenchResult(string name, List<long> ticks)
{
Name = name;
_ticks = ticks;
Mean = _ticks.Sum() / _ticks.Count;
Median = _ticks[_t... | mit | C# |
4cba595998248e10b6e3a3762437c4093de04fea | Use 'dotnet xunit' instead of dotnet test. | SQLStreamStore/SQLStreamStore,damianh/SqlStreamStore,SQLStreamStore/SQLStreamStore,damianh/Cedar.EventStore | build.cake | build.cake | #tool "nuget:?package=xunit.runner.console&version=2.1.0"
#tool "nuget:?package=ILRepack&Version=2.0.12"
#addin "Cake.FileHelpers"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var artifactsDir = Directory("./artifacts");
var solution = "./s... | #tool "nuget:?package=xunit.runner.console&version=2.1.0"
#tool "nuget:?package=ILRepack&Version=2.0.12"
#addin "Cake.FileHelpers"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var artifactsDir = Directory("./artifacts");
var solution = "./s... | mit | C# |
27c9139d0dfd8925e864537c3e6faf7a71f9db52 | Remove unnecessary cycle check from SynchroniseWithSystemClock | eightlittlebits/elbgb | elbgb_core/ClockedComponent.cs | elbgb_core/ClockedComponent.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace elbgb_core
{
public abstract class ClockedComponent
{
protected GameBoy _gb;
private SystemClock _clock;
protected ulong _lastUpdate;
public ClockedCom... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace elbgb_core
{
public abstract class ClockedComponent
{
protected GameBoy _gb;
protected ulong _lastUpdate;
public ClockedComponent(GameBoy gameBoy)
{
... | mit | C# |
e4b427dc3ceaefd2dc933dfae12716c90a8b5a6d | Add comment | sharwell/roslyn,KevinRansom/roslyn,jasonmalinowski/roslyn,sharwell/roslyn,dotnet/roslyn,eriawan/roslyn,weltkante/roslyn,KevinRansom/roslyn,mavasani/roslyn,CyrusNajmabadi/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,eriawan/roslyn,physhi/roslyn,KevinRansom/roslyn,wvdd007/roslyn,AmadeusW/roslyn,weltkante/roslyn,Amadeus... | src/Workspaces/Core/Portable/Workspace/Host/PersistentStorage/IPersistentStorage.cs | src/Workspaces/Core/Portable/Workspace/Host/PersistentStorage/IPersistentStorage.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.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.CodeAnaly... | // 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.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.CodeAnaly... | mit | C# |
bbcfc715fef35ab74d2cbcbf01d313cb360fa752 | Fix version number in assembly | GoodSoil/cqrs-starter-kit,GoodSoil/cqrs-starter-kit | starter-kit/Edument.CQRS.EntityFramework/Properties/AssemblyInfo.cs | starter-kit/Edument.CQRS.EntityFramework/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("Edu... | 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("Ed... | bsd-3-clause | C# |
a0014c3e1aa8afe9ba4673bb1755165451c378c3 | Update PingController.cs | miladinoviczeljko/GitTest1 | SimpleWebApi/SimpleWebApi/Controllers/PingController.cs | SimpleWebApi/SimpleWebApi/Controllers/PingController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace SimpleWebApi.Controllers
{
public class PingController : Controller
{
[HttpGet]
[Route("ping")]
public IActionResul... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace SimpleWebApi.Controllers
{
public class PingController : Controller
{
[HttpGet]
[Route("ping")]
public IActionResu... | mit | C# |
a9097751598bd0f1ceba0ae0dc4ae99fb407761d | make sure lag is positive | chrkon/helix-toolkit,JeremyAnsel/helix-toolkit,helix-toolkit/helix-toolkit,holance/helix-toolkit,smischke/helix-toolkit,Iluvatar82/helix-toolkit | Source/HelixToolkit.Wpf.SharpDX/Helpers/EventSkipper.cs | Source/HelixToolkit.Wpf.SharpDX/Helpers/EventSkipper.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelixToolkit.Wpf.SharpDX.Helpers
{
/// <summary>
/// Use to skip event if event frequency is too high.
/// </summary>
public sealed class EventSkipper... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelixToolkit.Wpf.SharpDX.Helpers
{
/// <summary>
/// Use to skip event if event frequency is too high.
/// </summary>
public sealed class EventSkipper... | mit | C# |
dde5577337feeaa5ff8a2a70a54fd0da272cb5cf | Use static HttpClient | awseward/Bugsnag.NET,awseward/Bugsnag.NET | lib/Bugsnag.Common/BugsnagClient.cs | lib/Bugsnag.Common/BugsnagClient.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Bugsnag.Common
{
public class BugsnagClient : IClient
{
static Uri _uri = new Uri("http://notify.bugsnag.com");
static Uri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Bugsnag.Common
{
public class BugsnagClient : IClient
{
static Uri _uri = new Uri("http://notify.bugsnag.com");
static Uri... | mit | C# |
a8e0a749630e337c638021ccdf15c1e3616fca44 | Fix the issue of workflow-recipe (#3290) | stevetayloruk/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,petedavis/Orchard2,OrchardCMS/Brochard,stevetayloruk/Orchard2,petedavis/Orchard2,petedavis/Orchard2,xkproject/Orchard2,xkproject/Orchard2,xkproject/Orchard2,OrchardCMS/Brochard,stevetayloruk/Orchard2,xkproject/Orchard2,OrchardCMS/Brochard,petedavis/Or... | src/OrchardCore.Modules/OrchardCore.Workflows/Recipes/WorkflowTypeStep.cs | src/OrchardCore.Modules/OrchardCore.Workflows/Recipes/WorkflowTypeStep.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using OrchardCore.Recipes.Models;
using OrchardCore.Recipes.Services;
using OrchardCore.Workflows.Models;
using OrchardCore.Workflows.Services;
using YesSql;
namespace OrchardCore.Workflows.Reci... | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using OrchardCore.Recipes.Models;
using OrchardCore.Recipes.Services;
using OrchardCore.Workflows.Models;
using OrchardCore.Workflows.Services;
using YesSql;
namespace OrchardCore.Workflows.Reci... | bsd-3-clause | C# |
f8b430f993cb2ad9308e83b9de07d55ac5cb888d | Change the error message | jamesqo/Sirloin | src/Sirloin/Internal/Binding.cs | src/Sirloin/Internal/Binding.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Typed.Xaml;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace Sirloin.Internal
{
public sealed class Binding
{
private Binding()
{
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Typed.Xaml;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace Sirloin.Internal
{
public sealed class Binding
{
private Binding()
{
... | bsd-2-clause | C# |
0ab77d0c6649de7df8c1eacc9448f3da6cb38290 | Add single argument description | CrOrc/Cr.ArgParse | src/Cr.ArgParse/Argument.cs | src/Cr.ArgParse/Argument.cs | using System.Collections.Generic;
namespace Cr.ArgParse
{
/// <summary>
/// Single argument description
/// </summary>
public class Argument
{
/// <summary>
/// strings to identify argument. Empty for positional arguments
/// </summary>
public IList<stri... | namespace Cr.ArgParse
{
public class Argument
{
}
} | mit | C# |
a5228016f5a2cc57a934f296c13e2f736281bfe4 | test for sourcelink | MindMatrix/Kamen | src/FileSystem/Directory.cs | src/FileSystem/Directory.cs | using System.Collections.Generic;
namespace Kamen.FileSystem
{
public static class Directory
{
public static string Test(string test)
{
return test;
}
public static string FindWithParents(string basePath, string directory)
{
foreach (var path in... | using System.Collections.Generic;
namespace Kamen.FileSystem
{
public static class Directory
{
public static string FindWithParents(string basePath, string directory)
{
foreach (var path in Parents(basePath, true))
{
var parentDirectory = System.IO.Path.... | mit | C# |
d2e050841af5ee42039e40dda4254f227a96920b | Use "is" operator | sakapon/Samples-2017 | ProxySample/CrossCuttingConsole/CrossCuttingProxy.cs | ProxySample/CrossCuttingConsole/CrossCuttingProxy.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Activation;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Proxies;
namespace CrossCuttingConsole
{
public class CrossCuttingP... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Activation;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Proxies;
namespace CrossCuttingConsole
{
public class CrossCuttingP... | mit | C# |
4d528c4e6703da6e93418e59f3d11db2b13e8031 | fix VisualTests and Samples still playing | ppy/osu,NeoAdonis/osu,smoogipooo/osu,johnneijzen/osu,naoey/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,naoey/osu,johnneijzen/osu,DrabWeb/osu,peppy/osu,EVAST9919/osu,naoey/osu,peppy/osu,smoogipoo/osu,DrabWeb/osu,ppy/osu,EVAST9919/osu,DrabWeb/osu,ZLima12/osu,2yangk23/osu,2yangk23/osu,ZLima12/osu,UselessToucan/osu,NeoAdon... | osu.Game/Graphics/Containers/OsuFocusedOverlayContainer.cs | osu.Game/Graphics/Containers/OsuFocusedOverlayContainer.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Sample;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using O... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Sample;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using O... | mit | C# |
ef29987f362bc51c39b43af4f4d6d4ca7f721652 | Remove FinalNotification | ppy/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu,ppy/osu | osu.Game/Online/Multiplayer/ServerShuttingDownCountdown.cs | osu.Game/Online/Multiplayer/ServerShuttingDownCountdown.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 MessagePack;
namespace osu.Game.Online.Multiplayer
{
/// <summary>
/// A countdown that indicates the current multiplayer server is shutting down.
/// ... | // 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 MessagePack;
namespace osu.Game.Online.Multiplayer
{
/// <summary>
/// A countdown that indicates the current multiplayer server is shutting down.
/// ... | mit | C# |
f8278822dfd8ff88534ffe2c1fac763ccbcf0250 | Fix category name not updated in preferences | mrward/monodevelop-template-creator-addin,mrward/monodevelop-template-creator-addin | src/MonoDevelop.TemplateCreator/MonoDevelop.Templating.Gui/TemplateCategoryWidget.cs | src/MonoDevelop.TemplateCreator/MonoDevelop.Templating.Gui/TemplateCategoryWidget.cs | //
// TemplateCategoryWidget.cs
//
// Author:
// Matt Ward <matt.ward@xamarin.com>
//
// Copyright (c) 2017 Xamarin Inc. (http://xamarin.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 t... | //
// TemplateCategoryWidget.cs
//
// Author:
// Matt Ward <matt.ward@xamarin.com>
//
// Copyright (c) 2017 Xamarin Inc. (http://xamarin.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 t... | mit | C# |
5a1848df167a2f8d407da6dcffd4f6e26eb3c094 | Implement IFeedSource abstraction layer | gahcep/App.Refoveo | App.Refoveo/Abstractions/IFeedSource.cs | App.Refoveo/Abstractions/IFeedSource.cs | using System.IO;
using App.Refoveo.Shared;
namespace App.Refoveo.Abstractions
{
public interface IFeedSource
{
/* Returns its FeedSource type */
FeedSourceType IdentifyItself();
/* Returns appcast.xml contents */
string AppcastAsString();
MemoryStream AppcastAsStream()... | namespace App.Refoveo.Abstractions
{
public interface IFeedSource
{
}
}
| mit | C# |
2dca80223b69914018f89ab64ec44d1328e74314 | Add more cardinal directions | martincostello/adventofcode,martincostello/adventofcode,martincostello/adventofcode,martincostello/adventofcode | src/AdventOfCode/CardinalDirection.cs | src/AdventOfCode/CardinalDirection.cs | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.AdventOfCode
{
/// <summary>
/// An enumeration of cardinal directions.
/// </summary>
public enum Cardi... | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.AdventOfCode
{
/// <summary>
/// An enumeration of cardinal directions.
/// </summary>
public enum Card... | apache-2.0 | C# |
aa83fbbe215ac3c0d1c27f974db7d331e2d04d83 | Fix Matt in name space | 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;
namespace Firehose.Web.Authors
{
public class MattBobke : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Matt";
public string Las... | 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";
public stri... | mit | C# |
a8103eed024d191833711d3955ef65f32a2b6f9a | Change static method to private | kendaleiv/silverpop-dotnet-api,kendaleiv/silverpop-dotnet-api,billboga/silverpop-dotnet-api,ritterim/silverpop-dotnet-api | src/Silverpop.Core/TransactMessage.cs | src/Silverpop.Core/TransactMessage.cs | using Silverpop.Core.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Silverpop.Core
{
public class TransactMessage
{
public TransactMessage()
{
SaveColumns = new List<string>();
Recipients = new List<TransactMessageRecipient>();
... | using Silverpop.Core.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Silverpop.Core
{
public class TransactMessage
{
public TransactMessage()
{
SaveColumns = new List<string>();
Recipients = new List<TransactMessageRecipient>();
... | mit | C# |
590c370ac4b03ef412f8369f9571e50a33bb44a0 | remove unessesary using and comments | ivayloivanof/C-Sharp-Chat-Programm | Client/ChatClient/ChatClient/Program.cs | Client/ChatClient/ChatClient/Program.cs | namespace ChatClient
{
using System;
using System.Windows.Forms;
public static class Program
{
[STAThread]
public static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ChatClient
{
static class Program
{
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
st... | unlicense | C# |
32fb3d41783fc8302d98b2e1fc577531cdc4151b | Rename DetectedStartCommand -> StartCommand for clarity | stefanschneider/windows_app_lifecycle,cloudfoundry/windows_app_lifecycle,cloudfoundry-incubator/windows_app_lifecycle | Launcher/Program.cs | Launcher/Program.cs | using System;
using System.Diagnostics;
using Newtonsoft.Json;
namespace Launcher
{
public class ExecutionMetadata
{
[JsonProperty("start_command")]
public string StartCommand { get; set; }
[JsonProperty("start_command_args")]
public string[] StartCommandArgs { get; set; }
... | using System;
using System.Diagnostics;
using Newtonsoft.Json;
namespace Launcher
{
public class ExecutionMetadata
{
[JsonProperty("start_command")]
public string DetectedStartCommand { get; set; }
[JsonProperty("start_command_args")]
public string[] StartCommandArgs { get; se... | apache-2.0 | C# |
9ed76fef033d459abf46e1bc23da3b0521fb2ded | Initialize ConsoleProgressBar with a writer | appharbor/appharbor-cli | src/AppHarbor/ConsoleProgressBar.cs | src/AppHarbor/ConsoleProgressBar.cs | using System.IO;
namespace AppHarbor
{
public class ConsoleProgressBar
{
private readonly TextWriter _writer;
public ConsoleProgressBar(TextWriter writer)
{
_writer = writer;
}
}
}
| namespace AppHarbor
{
public class ConsoleProgressBar
{
}
}
| mit | C# |
b43afc13f588f41dfb9e30182605a9fbbc75bbe2 | Fix type name in Generate doc example | morelinq/MoreLINQ,ddpruitt/morelinq,morelinq/MoreLINQ,fsateler/MoreLINQ,ddpruitt/morelinq,fsateler/MoreLINQ | MoreLinq/Generate.cs | MoreLinq/Generate.cs | #region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2009 Chris Ammerman. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | #region License and Terms
// MoreLINQ - Extensions to LINQ to Objects
// Copyright (c) 2009 Chris Ammerman. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | apache-2.0 | C# |
3e8b9d89ae62e117a7dd312bce0dcaaf2874c971 | remove space | lderache/LeTruck,lderache/LeTruck,lderache/LeTruck | src/mvc5/TheTruck.Web/Views/Home/Index.cshtml | src/mvc5/TheTruck.Web/Views/Home/Index.cshtml | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<img src="/images/letruck_logo.png" width="250" style="float:right" />
<h1>LE TRUCK</h1>
<p class="lead">Le Truck is a new delivery service that gives you access to all the products you love back home!</p>
<p><a href="/ProductListing"... | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<img src="/images/letruck_logo.png" width="250px" style="float:right" />
<h1>LE TRUCK</h1>
<br />
<br />
<p class="lead">Le Truck is a new delivery service that gives you access to all the products you love back home!</p>
<p><a... | mit | C# |
ad2f6ceb7f67e1a5305758e37f256ebdb7869338 | Indent code and remove HMAC string | ZixiangBoy/dnlib,picrap/dnlib,ilkerhalil/dnlib,modulexcite/dnlib,kiootic/dnlib,Arthur2e5/dnlib,yck1509/dnlib,jorik041/dnlib,0xd4d/dnlib | src/DotNet/AssemblyHashAlgorithm.cs | src/DotNet/AssemblyHashAlgorithm.cs | namespace dot10.DotNet {
/// <summary>
/// Any ALG_CLASS_HASH type in WinCrypt.h can be used by Microsoft's CLI implementation
/// </summary>
public enum AssemblyHashAlgorithm : uint {
/// <summary/>
None = 0,
/// <summary/>
MD2 = 0x8001,
/// <summary/>
MD4 = 0x8002,
/// <summary>This is a... | namespace dot10.DotNet {
/// <summary>
/// Any ALG_CLASS_HASH type in WinCrypt.h can be used by Microsoft's CLI implementation
/// </summary>
public enum AssemblyHashAlgorithm : uint {
/// <summary/>
None = 0,
/// <summary/>
MD2 = 0x8001,
/// <summary/>
MD4 = 0x8002,
/// <summary>This is a... | mit | C# |
d3e8e279c11e7804cb2f1004bbc22f936953135b | Fix typo | halcwb/FSharp.Formatting,mktange/FSharp.Formatting,modulexcite/FSharp.Formatting,halcwb/FSharp.Formatting,modulexcite/FSharp.Formatting,halcwb/FSharp.Formatting,Rickasaurus/FSharp.Formatting,modulexcite/FSharp.Formatting,theprash/FSharp.Formatting,tpetricek/FSharp.Formatting,halcwb/FSharp.Formatting,tpetricek/FSharp.Fo... | misc/templates/reference/type.cshtml | misc/templates/reference/type.cshtml | @using FSharp.MetadataFormat
@{
Layout = "template";
Title = Model.Type.Name + " - " + Properties["project-name"];
}
@{
var members = (IEnumerable<Member>)Model.Type.AllMembers;
var comment = (Comment)Model.Type.Comment;
var byCategory =
members.GroupBy(m => m.Category).OrderBy(g => String.IsNullOrEmpt... | @using FSharp.MetadataFormat
@{
Layout = "template";
Title = Model.Type.Name + " - " + Properties["project-name"];
}
@{
var members = (IEnumerable<Member>)Model.Type.AllMembers;
var comment = (Comment)Model.Type.Comment;
var byCategory =
members.GroupBy(m => m.Category).OrderBy(g => String.IsNullOrEmpt... | apache-2.0 | C# |
d79f1fb27149e4c8ed9488431e2fd3d05c2e63fa | Add VNDB as possible search site | IvionSauce/MeidoBot | WebSearches/Site.cs | WebSearches/Site.cs | using System;
using IvionWebSoft;
public class Site
{
public readonly Uri SiteUrl;
public readonly int DisplayMax;
public string GoogleSiteDeclaration
{
get { return "site:" + SiteUrl.Host; }
}
public static readonly Site None;
public static readonly Site YouTube;
public st... | using System;
using IvionWebSoft;
public class Site
{
public readonly Uri SiteUrl;
public readonly int DisplayMax;
public string GoogleSiteDeclaration
{
get { return "site:" + SiteUrl.Host; }
}
public static readonly Site None;
public static readonly Site YouTube;
public st... | bsd-2-clause | C# |
90a238cd9b8d5899ef75e077330e431f76534ffa | Add MethodCall match rule last to avoid feedback loop | openmedicus/dbus-sharp,arfbtwn/dbus-sharp,mono/dbus-sharp,mono/dbus-sharp,arfbtwn/dbus-sharp,openmedicus/dbus-sharp,Tragetaschen/dbus-sharp,Tragetaschen/dbus-sharp | tools/Monitor.cs | tools/Monitor.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.Collections.Generic;
using NDesk.DBus;
using org.freedesktop.DBus;
public class Monitor
{
public static void Main (string[] args)
{
Connection bus;
if (arg... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.Collections.Generic;
using NDesk.DBus;
using org.freedesktop.DBus;
public class Monitor
{
public static void Main (string[] args)
{
Connection bus;
if (arg... | mit | C# |
cd6fdcf0290a108e24a3bcb792095b6990a3c25a | Rename spinnerRotationRatio -> baseHitMultiplier. | 2yangk23/osu,UselessToucan/osu,UselessToucan/osu,naoey/osu,DrabWeb/osu,DrabWeb/osu,Frontear/osuKyzer,johnneijzen/osu,UselessToucan/osu,tacchinotacchi/osu,naoey/osu,peppy/osu,smoogipoo/osu,ZLima12/osu,peppy/osu-new,Nabile-Rahmani/osu,NeoAdonis/osu,osu-RP/osu-RP,peppy/osu,ppy/osu,smoogipoo/osu,naoey/osu,Damnae/osu,nyaama... | osu.Game.Modes.Taiko/Objects/Swell.cs | osu.Game.Modes.Taiko/Objects/Swell.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Game.Beatmaps.Timing;
using osu.Game.Database;
using osu.Game.Modes.Objects.Types;
namespace osu.Game.Modes.Taiko.Objects
{
publi... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Game.Beatmaps.Timing;
using osu.Game.Database;
using osu.Game.Modes.Objects.Types;
namespace osu.Game.Modes.Taiko.Objects
{
publi... | mit | C# |
e94d96f25093a2b32511554548e1a1314db6ce45 | Add local popover container to editor screens | ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,peppy/osu,peppy/osu,smoogipoo/osu,peppy/osu-new | osu.Game/Screens/Edit/EditorScreen.cs | osu.Game/Screens/Edit/EditorScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor;
namespace osu.Game.Screens.Ed... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Screens.Edit
{
/// <summary>
/// TODO: ... | mit | C# |
cdddb91eef03f13bedbc1878564bdde1eec6bc9d | Refactor FileHelpers in order to ensure all objects are properly disposed | aixasz/ImageShareTemplate | ImageShareTemplate/FileHelpers.cs | ImageShareTemplate/FileHelpers.cs | using System.IO;
using System.Net;
namespace ImageShareTemplate
{
public static class FileHelpers
{
public static byte[] LoadImageFormPath(string src)
{
return File.ReadAllBytes(src);
}
public static byte[] LoadImageFromUrl(string url)
{
try
... | using System;
using System.IO;
using System.Net;
namespace ImageShareTemplate
{
public static class FileHelpers
{
public static byte[] LoadImageFormPath(string src)
{
return File.ReadAllBytes(src);
}
public static byte[] LoadImageFromUrl(string url)
{
... | mit | C# |
140e905219d25d213f9942478b963743ad8dc271 | Allow no given option | KernowCode/UBADDAS | KernowCode.KTest.Ubaddas/IBase.cs | KernowCode.KTest.Ubaddas/IBase.cs | using System;
namespace KernowCode.KTest.Ubaddas
{
/// <summary>
/// BDD initiator
/// </summary>
public interface IBase : IAs
{
/// <summary>
/// <para>Specifies the start of the 'Given' section of BDD</para>
/// <para>This can be followed by 'And' and 'When'</para>
... | using System;
namespace KernowCode.KTest.Ubaddas
{
/// <summary>
/// BDD initiator
/// </summary>
public interface IBase : IAs
{
/// <summary>
/// <para>Specifies the start of the 'Given' section of BDD</para>
/// <para>This can be followed by 'And' and 'When'</para>
... | mit | C# |
567c7541e5303ff8cd5f15bbcda9702fcfb1cc53 | Add test data to mock view-model | lpatalas/ExpressRunner | ExpressRunner/DesignerMocks/TestExplorerViewModel.cs | ExpressRunner/DesignerMocks/TestExplorerViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExpressRunner.DesignerMocks
{
public class TestExplorerViewModel
{
private readonly TestGroup selectedTestGroup;
public TestGroup SelectedTestGroup
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExpressRunner.DesignerMocks
{
public class TestExplorerViewModel
{
private readonly TestGroup selectedTestGroup;
public TestGroup SelectedTestGroup
{
... | mit | C# |
59fcac77d069f014d92788c3ec66c80d4f7d8cc9 | Update index.cshtml | Aleksandrovskaya/apmathclouddif | site/index.cshtml | site/index.cshtml | @{
double t_0 = 0;
double t_end = 150;
double step = 0.1;
int N = Convert.ToInt32((t_end-t_0)/step) + 1;
String data = "";
bool show_chart = false;
if (IsPost){
show_chart = true;
var number = Request["text1"];
double xd = number.AsInt();
double t = 0;
double x1 = 0;
double x2 = 0;
d... | @{
double t_0 = 0;
double t_end = 150;
double step = 0.1;
int N = Convert.ToInt32((t_end-t_0)/step) + 1;
String data = "";
bool show_chart = false;
if (IsPost){
show_chart = true;
var number = Request["text1"];
double xd = number.AsInt();
double t = 0;
double x1 = 0;
double x2 = 0;
d... | mit | C# |
c86c07ea42cde6ae99a765fb9b0fa58cf1d66fdf | Order the throughput data by newest to oldest. | christopher-bimson/VstsMetrics | VstsMetrics/Commands/Throughput/ThroughputCommand.cs | VstsMetrics/Commands/Throughput/ThroughputCommand.cs | using System;
using System.Linq;
using System.Threading.Tasks;
using CommandLine;
using VstsMetrics.Abstractions;
using VstsMetrics.Extensions;
using VstsMetrics.Renderers;
namespace VstsMetrics.Commands.Throughput
{
public class ThroughputCommand : Command
{
[Option('d', "doneState", DefaultValue = "D... | using System;
using System.Linq;
using System.Threading.Tasks;
using CommandLine;
using VstsMetrics.Abstractions;
using VstsMetrics.Extensions;
using VstsMetrics.Renderers;
namespace VstsMetrics.Commands.Throughput
{
public class ThroughputCommand : Command
{
[Option('d', "doneState", DefaultValue = "D... | agpl-3.0 | C# |
0c84ec58bed5ce3ab0ec76e9e58fda7613d58953 | Remove cache for fields order | joinrpg/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net | JoinRpg.Domain/OrderingExtensions.cs | JoinRpg.Domain/OrderingExtensions.cs | using System.Collections.Generic;
using JoinRpg.DataModel;
using JoinRpg.Helpers;
namespace JoinRpg.Domain
{
public static class OrderingExtensions
{
public static IReadOnlyList<Character> GetOrderedCharacters(this CharacterGroup characterGroup) => characterGroup.GetCharactersContainer().OrderedItems;
pu... | using System.Collections.Concurrent;
using System.Collections.Generic;
using JoinRpg.DataModel;
using JoinRpg.Helpers;
namespace JoinRpg.Domain
{
public static class OrderingExtensions
{
public static IReadOnlyList<Character> GetOrderedCharacters(this CharacterGroup characterGroup) => characterGroup.GetCharac... | mit | C# |
302e4fe407426d2216521fedb76ea19f8168e5d4 | Fix note on is_postal_in_city | maxmind/minfraud-api-dotnet | MaxMind.MinFraud/Response/Address.cs | MaxMind.MinFraud/Response/Address.cs | using Newtonsoft.Json;
namespace MaxMind.MinFraud.Response
{
/// <summary>
/// General address response data.
/// </summary>
public abstract class Address
{
/// <summary>
/// This property is <c>true</c> if the address is in the
/// IP country.The property is <c>false</c> w... | using Newtonsoft.Json;
namespace MaxMind.MinFraud.Response
{
/// <summary>
/// General address response data.
/// </summary>
public abstract class Address
{
/// <summary>
/// This property is <c>true</c> if the address is in the
/// IP country.The property is <c>false</c> w... | apache-2.0 | C# |
882c3ca35c2d8745d4e7b8326008421f6b8c8709 | Fix Y coordinate for Obj spawn | Xeeynamo/KingdomHearts | OpenKh.Game/Entities/ObjectEntity.cs | OpenKh.Game/Entities/ObjectEntity.cs | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using OpenKh.Game.Debugging;
using OpenKh.Game.Infrastructure;
using OpenKh.Game.Models;
using OpenKh.Kh2;
using OpenKh.Kh2.Ard;
using OpenKh.Kh2.Extensions;
using System;
using System.Linq;
namespace OpenKh.Game.Entities
{
public class Object... | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using OpenKh.Game.Debugging;
using OpenKh.Game.Infrastructure;
using OpenKh.Game.Models;
using OpenKh.Kh2;
using OpenKh.Kh2.Ard;
using OpenKh.Kh2.Extensions;
using System;
using System.Linq;
namespace OpenKh.Game.Entities
{
public class Object... | mit | C# |
97814294bc7b8dda9039c25b0e96d860f03726ba | Correct CreateStateObject | sharpdx/SharpDX,sharpdx/SharpDX,sharpdx/SharpDX | Source/SharpDX.Direct3D12/Device5.cs | Source/SharpDX.Direct3D12/Device5.cs | // Copyright (c) 2010-2014 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... | // Copyright (c) 2010-2014 SharpDX - Alexandre Mutel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... | mit | C# |
d46f21e7cd209fe72aa740a5b024236e94c4cda1 | Clear Main | STzvetkov/Rambutan,petyakostova/Rambutan | Rambutan/Program.cs | Rambutan/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Rambutan
{
class Program
{
static void Main()
{
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Rambutan
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
b336f41481903fc85a9f5da06983dea07f49a591 | Make Lines private | 12joan/hangman | row.cs | row.cs | using System;
namespace Hangman {
public class Row {
public Cell[] Cells;
public Row(Cell[] cells) {
Cells = cells;
}
public string Draw(int width) {
// return new String(' ', width - Text.Length) + Text;
return String.Join("\n", Lines());
}
private string[] Lines() {
... | using System;
namespace Hangman {
public class Row {
public Cell[] Cells;
public Row(Cell[] cells) {
Cells = cells;
}
public string Draw(int width) {
// return new String(' ', width - Text.Length) + Text;
return String.Join("\n", Lines());
}
public string[] Lines() {
... | unlicense | C# |
28bd3bdf6dd7e39393ed588ef973f3e5f4dff865 | fix to 47841461e8bb7930083ae3c1d88b6df96f8ffb5d | yar229/WebDavMailRuCloud | MailRuCloud/MailRuCloudApi/Base/Credentials.cs | MailRuCloud/MailRuCloudApi/Base/Credentials.cs | using System;
using System.Linq;
using System.Security.Authentication;
namespace YaR.MailRuCloud.Api.Base
{
public class Credentials : IBasicCredentials
{
private static readonly string[] AnonymousLogins = { "anonymous", "anon", "anonym", string.Empty };
public Credentials(string login, strin... | using System;
using System.Linq;
using System.Security.Authentication;
namespace YaR.MailRuCloud.Api.Base
{
public class Credentials : IBasicCredentials
{
private static readonly string[] AnonymousLogins = { "anonymous", "anon", "anonym", string.Empty };
public Credentials(string login, strin... | mit | C# |
643aa894203b8ae0fd39230cba6145a566cd1cc3 | add comment for DOS part execution | MichelleLunoza/DOS-exec-CSharp | VRemover/Program.cs | VRemover/Program.cs | /*
* Created by SharpDevelop.
* User: MichelleLunoza
* Date: 12/12/2016
* Time: 8:12 PM
*
*/
using System;
using System.Diagnostics;
namespace VRemover
{
class Program
{
public static void Main(string[] args)
{
Process cmd = new Process();
cmd.StartInfo.FileName = "cmd.exe";
cmd.StartInfo.WindowS... | /*
* Created by SharpDevelop.
* User: MichelleLunoza
* Date: 12/12/2016
* Time: 8:12 PM
*
*/
using System;
using System.Diagnostics;
namespace VRemover
{
class Program
{
public static void Main(string[] args)
{
Process cmd = new Process();
cmd.StartInfo.FileName = "cmd.exe";
cmd.StartInfo.WindowS... | apache-2.0 | C# |
69c216a2fe3f08422aba9a7397df650f0c0f3068 | Update GoogleAnalyticsPlatform.cs | KSemenenko/GoogleAnalyticsForXamarinForms,KSemenenko/Google-Analytics-for-Xamarin-Forms | Plugin.GoogleAnalytics/Plugin.GoogleAnalytics.WindowsPhone8/GoogleAnalyticsPlatform.cs | Plugin.GoogleAnalytics/Plugin.GoogleAnalytics.WindowsPhone8/GoogleAnalyticsPlatform.cs | using System;
using System.Threading;
namespace Plugin.GoogleAnalytics
{
public partial class GoogleAnalytics
{
static GoogleAnalytics()
{
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
}
private static void CurrentDomain_UnhandledEx... | using System;
using System.Threading;
namespace Plugin.GoogleAnalytics
{
public partial class GoogleAnalytics
{
static GoogleAnalytics()
{
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
}
private static void CurrentDomain_UnhandledEx... | mit | C# |
feff6920821a8857e76fb38d5455cd45a98742ff | correct `HTMLTableCellElement`'s `ColSpan` and `RowSpan` properties | AndreyZM/Bridge,bridgedotnet/Bridge,AndreyZM/Bridge,AndreyZM/Bridge,bridgedotnet/Bridge,AndreyZM/Bridge,bridgedotnet/Bridge,bridgedotnet/Bridge | Html5/Elements/HTMLTableCellElement.cs | Html5/Elements/HTMLTableCellElement.cs | namespace Bridge.Html5
{
/// <summary>
/// The HTMLTableCellElement interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML documen... | namespace Bridge.Html5
{
/// <summary>
/// The HTMLTableCellElement interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML documen... | apache-2.0 | C# |
420eedfd4a9096f0187a0cf7ce28091dc2b0f6fe | Add BitCount | mgefvert/DotNetCommons | src/DotNetCommons/StructExtensions.cs | src/DotNetCommons/StructExtensions.cs | using System;
// ReSharper disable UnusedMember.Global
namespace DotNetCommons
{
public static class StructExtensions
{
public static T Limit<T>(this T value, T min, T max) where T : struct, IComparable<T>
{
if (value.CompareTo(min) < 0)
return min;
if ... | using System;
// ReSharper disable UnusedMember.Global
namespace DotNetCommons
{
public static class StructExtensions
{
public static T Limit<T>(this T value, T min, T max) where T : struct, IComparable<T>
{
if (value.CompareTo(min) < 0)
return min;
if ... | mit | C# |
5cf2dd3926c3392f2d3bcfa8c1d5e015b329b520 | Add author to assembly copyright field | jancowol/Shovel,modulexcite/Shovel,jancowol/Shovel | src/Shovel/Properties/AssemblyInfo.cs | src/Shovel/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("Sh... | 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("Sh... | mit | C# |
b82396a7be765acd80f33bfa4d640a8f7d9d6c93 | Bump version to 0.13.1 | quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot | CactbotOverlay/Properties/AssemblyInfo.cs | CactbotOverlay/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CactbotOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CactbotOverlay")]
[assembly: AssemblyC... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CactbotOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CactbotOverlay")]
[assembly: AssemblyC... | apache-2.0 | C# |
ce54923111ada0a9b186fa5c9dd589190d9d2ec2 | Set the same delivery time for Reprints Desk as for Subito | ChalmersLibrary/Chillin,ChalmersLibrary/Chillin,ChalmersLibrary/Chillin,ChalmersLibrary/Chillin | Chalmers.ILL/Providers/ProviderService.cs | Chalmers.ILL/Providers/ProviderService.cs | using Chalmers.ILL.Models;
using Examine;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Chalmers.ILL.Extensions;
using Chalmers.ILL.OrderItems;
namespace Chalmers.ILL.Providers
{
public class ProviderService : IProviderService
{
IOrde... | using Chalmers.ILL.Models;
using Examine;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Chalmers.ILL.Extensions;
using Chalmers.ILL.OrderItems;
namespace Chalmers.ILL.Providers
{
public class ProviderService : IProviderService
{
IOrde... | mit | C# |
e453bf9a07cefdabf904e7324e83ad83407208b0 | Fix failing test | uoinfusion/Infusion | Infusion/Commands/CommandAutocompleter.cs | Infusion/Commands/CommandAutocompleter.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Infusion.Commands
{
public class CommandAutocompleter
{
private readonly Func<IEnumerable<string>> commandNameSource;
public CommandAutocompleter(Func<IEnumerable<string>> commandNameSource)
{
this... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Infusion.Commands
{
public class CommandAutocompleter
{
private readonly Func<IEnumerable<string>> commandNameSource;
public CommandAutocompleter(Func<IEnumerable<string>> commandNameSource)
{
this... | mit | C# |
5788894e38994f95856e7a2380b8aee6c41aa1aa | Update version | takuya-takeuchi/RedArmory | source/RedArmory/AssemblyProperty.cs | source/RedArmory/AssemblyProperty.cs | namespace Ouranos.RedArmory
{
internal static class AssemblyProperty
{
/// <summary>
/// アセンブリ マニフェストに含める、製品名に関するカスタム属性を定義します。
/// </summary>
public const string Product = "Red Armory";
/// <summary>
/// RedArmory.exe の説明を指定します。
/// </summary>
public const ... | namespace Ouranos.RedArmory
{
internal static class AssemblyProperty
{
/// <summary>
/// アセンブリ マニフェストに含める、製品名に関するカスタム属性を定義します。
/// </summary>
public const string Product = "Red Armory";
/// <summary>
/// RedArmory.exe の説明を指定します。
/// </summary>
public const ... | mit | C# |
6cc3518cd6f5e48e7498685b1eb14dfafa2946a5 | Fix localization of Blocks | roman-yagodin/R7.Epsilon,roman-yagodin/R7.Epsilon,roman-yagodin/R7.Epsilon | R7.Epsilon/Components/ControlLocalizer.cs | R7.Epsilon/Components/ControlLocalizer.cs | //
// ControlLocalizer.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2015-2016 Roman M. Yagodin
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Fre... | //
// ControlLocalizer.cs
//
// Author:
// Roman M. Yagodin <roman.yagodin@gmail.com>
//
// Copyright (c) 2015-2016 Roman M. Yagodin
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software... | agpl-3.0 | C# |
7b1e854e97c6d136764dce9add7bd6a59b58db93 | Load team address instead of default sign-in page | rfgamaral/SlackUI | SlackUI/Handlers/BrowserRequestHandler.cs | SlackUI/Handlers/BrowserRequestHandler.cs | #region Copyright © 2014 Ricardo Amaral
/*
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
*/
#endregion
using CefSharp;
namespace SlackUI {
internal class BrowserRequestHandler : IRequestHandler {
#region Private Fields
private const st... | #region Copyright © 2014 Ricardo Amaral
/*
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
*/
#endregion
using CefSharp;
namespace SlackUI {
internal class BrowserRequestHandler : IRequestHandler {
#region Public Methods
public bool GetA... | mit | C# |
36f1610a2124bf15d0d2157061c71082faca030e | Update PowerShellModule.cs | tiksn/TIKSN-Framework | TIKSN.Core/PowerShell/PowerShellModule.cs | TIKSN.Core/PowerShell/PowerShellModule.cs | using Autofac;
namespace TIKSN.PowerShell
{
public class PowerShellModule : Module
{
protected override void Load(ContainerBuilder builder)
{
base.Load(builder);
builder.RegisterType<CurrentCommandContext>().As<ICurrentCommandStore>().As<ICurrentCommandProvider>()
... | using Autofac;
namespace TIKSN.PowerShell
{
public class PowerShellModule : Module
{
protected override void Load(ContainerBuilder builder)
{
base.Load(builder);
builder.RegisterType<CurrentCommandContext>().As<ICurrentCommandStore>().As<ICurrentCommandProvider>().Inst... | mit | C# |
6ffeebc161083a9d0dbe5b2f168c98cc98288f73 | Use more c# 6 in Utils namespace | henrikfroehling/TraktApiSharp | Source/Lib/TraktApiSharp/Utils/Json.cs | Source/Lib/TraktApiSharp/Utils/Json.cs | namespace TraktApiSharp.Utils
{
using Newtonsoft.Json;
internal static class Json
{
internal static readonly JsonSerializerSettings DEFAULT_JSON_SETTINGS
= new JsonSerializerSettings
{
Formatting = Formatting.None,
NullValueHandling = NullVal... | namespace TraktApiSharp.Utils
{
using Newtonsoft.Json;
internal static class Json
{
internal static readonly JsonSerializerSettings DEFAULT_JSON_SETTINGS
= new JsonSerializerSettings
{
Formatting = Formatting.None,
NullValueHandling = NullVal... | mit | C# |
7d80492a1268ec021bd66a012e67d62738378025 | Add Fullscreen to WindowState enum. | jkoritzinsky/Avalonia,Perspex/Perspex,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Perspex,grokys/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,grokys/Perspex,SuperJMN/Avalonia,Perspex/Perspex,akrisiun/Perspex,wieslawsoltes/Perspex,wieslawsolte... | src/Avalonia.Controls/WindowState.cs | src/Avalonia.Controls/WindowState.cs | namespace Avalonia.Controls
{
/// <summary>
/// Defines the minimized/maximized state of a <see cref="Window"/>.
/// </summary>
public enum WindowState
{
/// <summary>
/// The window is neither minimized or maximized.
/// </summary>
Normal,
/// <summary>
... | namespace Avalonia.Controls
{
/// <summary>
/// Defines the minimized/maximized state of a <see cref="Window"/>.
/// </summary>
public enum WindowState
{
/// <summary>
/// The window is neither minimized or maximized.
/// </summary>
Normal,
/// <summary>
... | mit | C# |
c971bfbb16cf6422033ac75eba25930145fe0676 | Revert "Add cancellationToken" | CatPhat/Fabrik.SimpleBus | src/Fabrik.SimpleBus.Demo/Program.cs | src/Fabrik.SimpleBus.Demo/Program.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Fabrik.SimpleBus.Demo
{
class Program
{
static void Main(string[] args)
{
new Program().Run();
}
private void Run()
{
var bus = new In... | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Fabrik.SimpleBus.Demo
{
class Program
{
static void Main(string[] args)
{
new Program().Run();
}
private void Run()
{
var bus = new In... | mit | C# |
f9fed2672e04f41ec20fd236d6fae791bb6bbcbe | Tidy up class xmldoc and naming | peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework | osu.Framework/Graphics/Video/VideoTextureUpload.cs | osu.Framework/Graphics/Video/VideoTextureUpload.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 osu.Framework.Graphics.Textures;
using osuTK.Graphics.ES30;
using FFmpeg.AutoGen;
using osu.Framework.Graphics.Primitives;
using SixLabors.ImageSharp... | // 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 osu.Framework.Graphics.Textures;
using osuTK.Graphics.ES30;
using FFmpeg.AutoGen;
using osu.Framework.Graphics.Primitives;
using SixLabors.ImageSharp... | mit | C# |
7a22041bc78598e90f5fb3cdb4dd6acde0c6be61 | Add collections to ValueObject tests. | xavierjohn/Railway-oriented-programming | test/DomainDrivenDesignTests/ValueObject{T}Spec.cs | test/DomainDrivenDesignTests/ValueObject{T}Spec.cs | using CWiz.DomainDrivenDesign;
using System.Collections.Generic;
using Xunit;
namespace DomainDrivenDesignTests
{
public class Person : ValueObject<Person>
{
public Person(string firstName, string lastName, int age, List<string> phoneNumbers)
{
FirstName = firstName;
La... | using CWiz.DomainDrivenDesign;
using Xunit;
namespace DomainDrivenDesignTests
{
public class Person : ValueObject<Person>
{
public Person(string firstName, string lastName, int age)
{
FirstName = firstName;
LastName = lastName;
Age = age;
}
... | mit | C# |
3e5d5ef46d42fdd14f2bf613a1893617bc77ebf4 | Fix Spain test | petergaal/Holiday,martinjw/Holiday | tests/PublicHolidayTests/TestSpainPublicHoliday.cs | tests/PublicHolidayTests/TestSpainPublicHoliday.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PublicHoliday;
namespace PublicHolidayTests
{
[TestClass]
public class TestSpainPublicHoliday
{
[TestMethod]
public void TestGoodFriday()
{
var goodFriday = SpainPublicHoliday.GoodFriday(2006);
... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PublicHoliday;
namespace PublicHolidayTests
{
[TestClass]
public class TestSpainPublicHoliday
{
[TestMethod]
public void TestGoodFriday()
{
var ascension = SpainPublicHoliday.GoodFriday(2006);
... | mit | C# |
11f0b4c6fab0d825102fe1fa08618d19a6fb46c9 | Improve error messages for invalid Guids in ItemData | dsolovay/AutoSitecore | src/AutoSitecore/ItemDataAttribute.cs | src/AutoSitecore/ItemDataAttribute.cs | using System;
using Sitecore.Data;
namespace AutoSitecore
{
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
public class ItemDataAttribute : Attribute
{
public static readonly ItemDataAttribute Null = new ItemDataAttribute();
public ItemDataAttribute(string name=null, string itemId ... | using System;
using Sitecore.Data;
namespace AutoSitecore
{
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
public class ItemDataAttribute : Attribute
{
public static readonly ItemDataAttribute Null = new ItemDataAttribute();
public ItemDataAttribute(string name=null, string id = nu... | mit | C# |
0807b03ffcabdc9b28bc0582b1aa4de4af370c61 | Upgrade version to 1.3.1 | geffzhang/equeue,tangxuehua/equeue,tangxuehua/equeue,tangxuehua/equeue,geffzhang/equeue,Aaron-Liu/equeue,Aaron-Liu/equeue | src/EQueue/Properties/AssemblyInfo.cs | src/EQueue/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("EQueue")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyPro... | mit | C# |
755cfe17b9e11b7e7928825f18a4ca95151087ff | fix crash | nerai/CMenu | src/ExampleMenu/Procedures/MI_Call.cs | src/ExampleMenu/Procedures/MI_Call.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using ConsoleMenu;
namespace ExampleMenu
{
public class MI_Call : CMenuItem
{
private readonly CMenu _Menu;
private readonly ProcManager _Mgr;
public MI_Call (CMenu menu, ProcManager mgr)
: base ("call")... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using ConsoleMenu;
namespace ExampleMenu
{
public class MI_Call : CMenuItem
{
private readonly CMenu _Menu;
private readonly ProcManager _Mgr;
public MI_Call (CMenu menu, ProcManager mgr)
: base ("call")... | mit | C# |
2bddaeb4a4fb04975588c94482eff23097c4c5c4 | Reorder lines within Advance to no longer interleve two distinct operations in play: advancing the input span by `length` items, and then analyzing the items advanced over to update the Position. This is a step towards extracting a method for each of the two distinct operations. | plioi/parsley | src/Parsley/ReadOnlySpanExtensions.cs | src/Parsley/ReadOnlySpanExtensions.cs | namespace Parsley;
public static class ReadOnlySpanExtensions
{
public static ReadOnlySpan<char> Peek(this ref ReadOnlySpan<char> input, int length)
=> length >= input.Length
? input.Slice(0)
: input.Slice(0, length);
public static void Advance(this ref ReadOnlySpan<char> input... | namespace Parsley;
public static class ReadOnlySpanExtensions
{
public static ReadOnlySpan<char> Peek(this ref ReadOnlySpan<char> input, int length)
=> length >= input.Length
? input.Slice(0)
: input.Slice(0, length);
public static void Advance(this ref ReadOnlySpan<char> input... | mit | C# |
d79c60f26239cf4be08ef61a6e059851bd2fb3c3 | correct api id | plivo/plivo-dotnet,plivo/plivo-dotnet | src/Plivo/Resource/Call/QueuedCall.cs | src/Plivo/Resource/Call/QueuedCall.cs | namespace Plivo.Resource.Call
{
/// <summary>
/// Queued call.
/// </summary>
public class QueuedCall : Resource
{
public string Direction { get; set; }
public string From { get; set; }
public string CallStatus { get; set; }
public string To { get; set; }
publ... | namespace Plivo.Resource.Call
{
/// <summary>
/// Queued call.
/// </summary>
public class QueuedCall : Resource
{
public string Direction { get; set; }
public string From { get; set; }
public string CallStatus { get; set; }
public string To { get; set; }
publ... | mit | C# |
96bfb0d997d5e54a15850d85e53a33d1a7c53ad4 | Remove PasswordMode and PasswordChar from interface definition | tsolarin/readline,tsolarin/readline | src/ReadLine/Abstractions/IConsole.cs | src/ReadLine/Abstractions/IConsole.cs | namespace Internal.ReadLine.Abstractions
{
internal interface IConsole
{
int CursorLeft { get; }
int CursorTop { get; }
int BufferWidth { get; }
int BufferHeight { get; }
void SetCursorPosition(int left, int top);
void SetBufferSize(int width, int height);
... | namespace Internal.ReadLine.Abstractions
{
internal interface IConsole
{
int CursorLeft { get; }
int CursorTop { get; }
int BufferWidth { get; }
int BufferHeight { get; }
bool PasswordMode { get; set; }
char PasswordChar { get; set; }
void SetCursorPositio... | mit | C# |
0fe1ace51da92c9c6b13b344055fb010cb0da580 | Bump the versino (#340) | RachelTucker/ds3_net_sdk,SpectraLogic/ds3_net_sdk,RachelTucker/ds3_net_sdk,RachelTucker/ds3_net_sdk,SpectraLogic/ds3_net_sdk,SpectraLogic/ds3_net_sdk | VersionInfo.cs | VersionInfo.cs | /*
* ******************************************************************************
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License i... | /*
* ******************************************************************************
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License i... | apache-2.0 | C# |
fb0be11930a8e37e971e6e26e48c16ba71cf7c3e | Add dbus-sharp-glib to friend assemblies | arfbtwn/dbus-sharp,openmedicus/dbus-sharp,mono/dbus-sharp,Tragetaschen/dbus-sharp,Tragetaschen/dbus-sharp,mono/dbus-sharp,openmedicus/dbus-sharp,arfbtwn/dbus-sharp | src/AssemblyInfo.cs | src/AssemblyInfo.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System.Reflection;
using System.Runtime.CompilerServices;
//[assembly: AssemblyVersion("0.0.0.*")]
[assembly: AssemblyTitle ("NDesk.DBus")]
[assembly: AssemblyDescription ("D-Bus IPC ... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System.Reflection;
using System.Runtime.CompilerServices;
//[assembly: AssemblyVersion("0.0.0.*")]
[assembly: AssemblyTitle ("NDesk.DBus")]
[assembly: AssemblyDescription ("D-Bus IPC ... | mit | C# |
3b66843ab6fbe1918eeeb7f1cacca46cef4249f6 | Fix home link | Azure/fieldengineer,lindydonna/fieldengineer,benlam62/app-service-mobile-dotnet-fieldengineer,Azure-Samples/app-service-mobile-dotnet-fieldengineer,Azure-Samples/app-service-mobile-donet-fieldengineer | server/FieldEngineer/Views/Shared/_Layout.cshtml | server/FieldEngineer/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="navbar navbar-in... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="navbar navbar-in... | mit | C# |
8404d4cf90b45de6fcaab773f2e4e4b0fdfea4eb | Update JsonConfigMapper | atata-framework/atata-configuration-json | src/Atata.Configuration.Json/JsonConfigMapper.cs | src/Atata.Configuration.Json/JsonConfigMapper.cs | using System;
namespace Atata
{
public static class JsonConfigMapper
{
public static AtataContextBuilder Map<TConfig>(TConfig config, AtataContextBuilder builder)
where TConfig : JsonConfig<TConfig>
{
if (config.BaseUrl != null)
builder.UseBaseUrl(config... | using System;
namespace Atata
{
public static class JsonConfigMapper
{
public static AtataContextBuilder Map<TConfig>(TConfig config, AtataContextBuilder builder)
where TConfig : JsonConfig<TConfig>
{
if (config.BaseUrl != null)
builder.UseBaseUrl(config... | apache-2.0 | C# |
468f81eaae4dcf81eb416d77cc88634d0d5a4f98 | Add CompetitionPlatformUser to Identity models. | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | src/CompetitionPlatform/Models/IdentityModels.cs | src/CompetitionPlatform/Models/IdentityModels.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CompetitionPlatform.Models
{
public class AuthenticateModel
{
public string FullName { get; set; }
public string Password { get; set; }
}
public class CompetitionPlatformUser
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CompetitionPlatform.Models
{
public class AuthenticateModel
{
public string FullName { get; set; }
public string Password { get; set; }
}
}
| mit | C# |
abc443775635a8e5d3244c71bd1f00959dc7d398 | fix sln usage in msbuild | NServiceBusSqlPersistence/NServiceBus.SqlPersistence | src/Integration/Shared/SqlPersistenceSettings.cs | src/Integration/Shared/SqlPersistenceSettings.cs | using NServiceBus.Persistence.Sql;
[assembly: SqlPersistenceSettings(
MsSqlServerScripts = true,
MySqlScripts = true,
OracleScripts = true,
PostgreSqlScripts = true,
ScriptPromotionPath = @"$(SolutionDir)Integration\PromotedSqlScripts")]
| using NServiceBus.Persistence.Sql;
[assembly: SqlPersistenceSettings(
MsSqlServerScripts = true,
MySqlScripts = true,
OracleScripts = true,
ScriptPromotionPath = @"$(SolutionDir)Integration\PromotedSqlScripts")]
| mit | C# |
8b97f3f847b993ac4c15586dc7414b10589ee463 | Add PATCH to http verbs enumeration | nikhilk/scriptsharp,x335/scriptsharp,nikhilk/scriptsharp,x335/scriptsharp,nikhilk/scriptsharp,x335/scriptsharp | src/Libraries/Node/Node.Core/Network/HttpVerb.cs | src/Libraries/Node/Node.Core/Network/HttpVerb.cs | // IPAddressType.cs
// Script#/Libraries/Node/Core
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System;
using System.Runtime.CompilerServices;
namespace NodeApi.Network {
[ScriptImport]
[ScriptIgnoreNamespace]
[ScriptConstants(UseNames = true)]
p... | // IPAddressType.cs
// Script#/Libraries/Node/Core
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System;
using System.Runtime.CompilerServices;
namespace NodeApi.Network {
[ScriptImport]
[ScriptIgnoreNamespace]
[ScriptConstants(UseNames = true)]
p... | apache-2.0 | C# |
ff5897fac1f6e2c9d94fdb5dc958b0ff32a1dbcd | disable caching of ajax call in sample project | romansp/MiniProfiler.Elasticsearch | src/Sample.Elasticsearch/Views/Home/Index.cshtml | src/Sample.Elasticsearch/Views/Home/Index.cshtml | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a>
</p>
<p><a h... | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a>
</p>
<p><a h... | mit | C# |
656d79dc0864a6d21fbe9a04c0b1e67d06e64b85 | Add null check | k2workflow/Clay | src/SourceCode.Clay.Correlation/CorrelationId.cs | src/SourceCode.Clay.Correlation/CorrelationId.cs | using System;
using System.Diagnostics;
using System.Globalization;
using SourceCode.Clay.Correlation.Internal;
namespace SourceCode.Clay.Correlation
{
/// <summary>
/// Factory methods for creating a <see cref="ICorrelationIdAccessor"/> instance.
/// </summary>
public static class CorrelationId
{
... | using System;
using System.Diagnostics;
using System.Globalization;
using SourceCode.Clay.Correlation.Internal;
namespace SourceCode.Clay.Correlation
{
/// <summary>
/// Factory methods for creating a <see cref="ICorrelationIdAccessor"/> instance.
/// </summary>
public static class CorrelationId
{
... | mit | C# |
ba03a63a9892714a58f938fbcfe2d9e239cc68cb | add request uuid | plivo/plivo-dotnet,plivo/plivo-dotnet | src/Plivo/Resource/Call/QueuedCall.cs | src/Plivo/Resource/Call/QueuedCall.cs | namespace Plivo.Resource.Call
{
/// <summary>
/// Queued call.
/// </summary>
public class QueuedCall : Resource
{
public string Direction { get; set; }
public string From { get; set; }
public string CallStatus { get; set; }
public string To { get; set; }
publ... | namespace Plivo.Resource.Call
{
/// <summary>
/// Queued call.
/// </summary>
public class QueuedCall : Resource
{
public string Direction { get; set; }
public string From { get; set; }
public string CallStatus { get; set; }
public string To { get; set; }
publ... | mit | C# |
ba4c964455d2696a5c8a14d4c037a09670f676f4 | Update login page | arvaris/HRI-Umbraco,Door3Dev/HRI-Umbraco,Door3Dev/HRI-Umbraco,Door3Dev/HRI-Umbraco,arvaris/HRI-Umbraco,arvaris/HRI-Umbraco,arvaris/HRI-Umbraco,Door3Dev/HRI-Umbraco,Door3Dev/HRI-Umbraco | src/Umbraco.Web.UI/Views/Login.cshtml | src/Umbraco.Web.UI/Views/Login.cshtml | @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = "MasterPage.cshtml";
}
@model Umbraco.Web.UI.Models.LoginViewModel
<div id="hri-content" class="hri-login">
<div class="row-fluid">
<div class="span4 offset4 well">
<h3 class="dark-purple">Member Login</h3>
<form id="login_form"... | @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = "MasterPage.cshtml";
}
@model Umbraco.Web.UI.Models.LoginViewModel
some code stuffs | mit | C# |
256c6a0071bfa6fefbfec871af326b05ee3e2c5e | Clean RewardGetter | bunashibu/kikan | Assets/Scripts/Skill/RewardGetter.cs | Assets/Scripts/Skill/RewardGetter.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RewardGetter : MonoBehaviour {
public void SetRewardReceiver(GameObject receiver, int team) {
_receiver = receiver;
_receiveTeam = team;
}
public void GetRewardFrom(GameObject target) {
var teammateList = Ge... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RewardGetter : MonoBehaviour {
public void SetRewardReceiver(GameObject receiver, int team) {
_receiver = receiver;
_receiveTeam = team;
}
public void GetRewardFrom(GameObject target) {
var teammateList = Ge... | mit | C# |
49a0b07583a070922e33fe4c3dfd25c4048c4908 | Exit program. | hfoffani/hypolambda | LLconsole/Program.cs | LLconsole/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LLconsole {
class Program {
static void run(string program) {
try {
var exp = new LambdaLang.Expression();
exp.SetExpression(program);
var ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LLconsole {
class Program {
static void run(string program) {
try {
var exp = new LambdaLang.Expression();
exp.SetExpression(program);
var ... | apache-2.0 | C# |
64c2cedabfb0e6cb61ee07c0c8c156a06a19c0f1 | Add back typescript gotodef on the client. | tannergooding/roslyn,CyrusNajmabadi/roslyn,stephentoub/roslyn,diryboy/roslyn,eriawan/roslyn,reaction1989/roslyn,weltkante/roslyn,shyamnamboodiripad/roslyn,abock/roslyn,panopticoncentral/roslyn,heejaechang/roslyn,reaction1989/roslyn,tannergooding/roslyn,jasonmalinowski/roslyn,KevinRansom/roslyn,AlekseyTs/roslyn,agocke/r... | src/Tools/ExternalAccess/LiveShare/GotoDefinition/RoslynGotoDefinitionService.Exports.cs | src/Tools/ExternalAccess/LiveShare/GotoDefinition/RoslynGotoDefinitionService.Exports.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.Composition;
using Microsoft.CodeAnalysis.Editor;
using Microsoft.CodeAnalysis.Editor.Host;
using Microsoft.CodeAnalysis.Editor.Shared.Utilities... | // 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.Composition;
using Microsoft.CodeAnalysis.Editor;
using Microsoft.CodeAnalysis.Editor.Host;
using Microsoft.CodeAnalysis.Editor.Shared.Utilities... | mit | C# |
ef0de5803501841530ae5f9e92442fbf27defb9c | update ConfigCore.cs | aliyun/aliyun-oss-csharp-sdk | test/Util/ConfigCore.cs | test/Util/ConfigCore.cs | using System.Configuration;
using System;
using System.IO;
namespace Aliyun.OSS.Test.Util
{
// Please update the values of the following variables before running the test cases;
public static class Config
{
public static readonly string Endpoint = ""; // your endpoint
public stati... | using System.Configuration;
using System;
using System.IO;
namespace Aliyun.OSS.Test.Util
{
// Please update the values of the following variables before running the test cases;
public static class Config
{
public static readonly string Endpoint = "10.101.200.203:8086";
public stat... | mit | C# |
ac29317ce3e87cf9a17cc5fd2502506f4d978435 | fix LambdaHelper | shinji-yoshida/gotanda | gotanda/LambdaHelper.cs | gotanda/LambdaHelper.cs | using UnityEngine;
using System.Collections;
using System;
namespace gotanda{
public class LambdaHelper {
public static Action NullAction(){
int saveFromAOT = 0;
return () => saveFromAOT.GetHashCode();
}
public static Action<T> NullAction<T>(){
int saveFromAOT = 0;
return _ => saveFromAOT.GetHashC... | using UnityEngine;
using System.Collections;
using System;
namespace gotanda{
public class LambdaHelper {
public static Action NullAction(){
return ()=>{};
}
public static Action<T> NullAction<T>(){
return (t)=>{};
}
}
} | mit | C# |
bc1128729ac69b15aed6d14bf6edd4ff5242fd9d | Bump version to 0.10.0 | ar3cka/Journalist | src/SolutionInfo.cs | src/SolutionInfo.cs | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.10.0")]
[assembly: AssemblyInformationalVersionAttribute("0.10.0")]
[assembly: AssemblyFileVersionAttribute("0.10.0")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namesp... | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.9.7")]
[assembly: AssemblyInformationalVersionAttribute("0.9.7")]
[assembly: AssemblyFileVersionAttribute("0.9.7")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namespace... | apache-2.0 | C# |
a5b8f8262a228944290b5d7e887a3442791e81cc | Update IScienceDataContainer.cs | Anatid/XML-Documentation-for-the-KSP-API | src/IScienceDataContainer.cs | src/IScienceDataContainer.cs | using System;
/// <summary>
/// Interface used by ModuleScienceExperiment and ModuleScienceContainer. Used for storing, transfering and transmitting Science Data.
/// </summary>
public interface IScienceDataContainer
{
/// <summary>
/// Removes science data from the part, called after transmission or EVA data ... | #region Assembly Assembly-CSharp.dll, v2.0.50727
// C:\Users\David\Documents\Visual Studio 2010\Projects\KSP Science\KSP DEV\Kerbal Space Program\KSP_Data\Managed\Assembly-CSharp.dll
#endregion
using System;
/// <summary>
/// Interface used by ModuleScienceExperiment and ModuleScienceContainer. Used for storing, tra... | unlicense | C# |
417e81baeac00b61110eb166c9faa1e5d34f4594 | Disable AntiAliasing to make the tiles align perfectly. | mjeanrichard/UniversalMapControl,mjeanrichard/WinRtMap | UniversalMapControl/Tiles/TileLayer.cs | UniversalMapControl/Tiles/TileLayer.cs | using Windows.UI;
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.UI;
using Microsoft.Graphics.Canvas.UI.Xaml;
using UniversalMapControl.Interfaces;
using UniversalMapControl.Tiles.Default;
namespace UniversalMapControl.Tiles
{
public class TileLayer : CanvasMapLayer
{
public TileLa... | using Windows.UI;
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.UI;
using Microsoft.Graphics.Canvas.UI.Xaml;
using UniversalMapControl.Interfaces;
using UniversalMapControl.Tiles.Default;
namespace UniversalMapControl.Tiles
{
public class TileLayer : CanvasMapLayer
{
public TileLa... | apache-2.0 | C# |
a56d5df42cef6691bcac2ab04d824a8a40b8006c | 削除を実装。 | SunriseDigital/cs-sdx-web,SunriseDigital/sdxweb,SunriseDigital/sdxweb,SunriseDigital/sdxweb,SunriseDigital/cs-sdx-web | _private/control/scaffold/list.ascx.cs | _private/control/scaffold/list.ascx.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Sdx.WebLib.Control.Scaffold
{
public partial class List : System.Web.UI.UserControl
{
protected Sdx.Scaffold.Manager scaffold;
protected dynamic recordSet;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Sdx.WebLib.Control.Scaffold
{
public partial class List : System.Web.UI.UserControl
{
protected Sdx.Scaffold.Manager scaffold;
protected dynamic recordSet;
... | mit | C# |
d4857b0483cbf0536cd9f803c471eb0e1120057f | Remove unneccesary build bits copied from steamvr. | OSVR/OSVR-Unreal,OSVR/OSVR-Unreal,OSVR/OSVR-Unreal,OSVR/OSVR-Unreal | OSVRUnreal/Plugins/OSVR/Source/OSVR/OSVR.Build.cs | OSVRUnreal/Plugins/OSVR/Source/OSVR/OSVR.Build.cs | using UnrealBuildTool;
public class OSVR : ModuleRules
{
public OSVR(TargetInfo Target)
{
PublicIncludePaths.AddRange(
new string[] {
// ... add public include paths required here ...
}
);
PrivateIncludePaths.AddRange(
new string[] {
"OSVR/Private",
"../../../.... | using UnrealBuildTool;
public class OSVR : ModuleRules
{
public OSVR(TargetInfo Target)
{
PublicIncludePaths.AddRange(
new string[] {
// ... add public include paths required here ...
}
);
PrivateIncludePaths.AddRange(
new string[] {
"OSVR/Private",
"../../../.... | apache-2.0 | C# |
9622dfd74e407ac5aec8d2d4d5a92258fe5b03cc | Reduce scope to Report function | jlewin/MatterControl,mmoening/MatterControl,unlimitedbacon/MatterControl,unlimitedbacon/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,mmoening/MatterControl,larsbrubaker/MatterControl,unlimitedbacon/MatterControl,jlewin/MatterControl,jlewin/MatterControl,larsbrubaker/MatterControl,mmoening/MatterControl... | PartPreviewWindow/View3D/SliceProgressReporter.cs | PartPreviewWindow/View3D/SliceProgressReporter.cs | /*
Copyright (c) 2017, Lars Brubaker, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and... | /*
Copyright (c) 2017, Lars Brubaker, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and... | bsd-2-clause | C# |
e62cb6423190925515106ea9963e720cad1ff28a | Use OnInit override instead of Page_Init | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University | R7.University.Launchpad/SettingsLaunchpad.ascx.cs | R7.University.Launchpad/SettingsLaunchpad.ascx.cs | using System;
using System.Web.UI.WebControls;
using System.Linq;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.UI.UserControls;
using R7.University;
namespace R7.University.Launchpad
{
public partial class SettingsLaunchpad : LaunchpadModuleSettingsBase
{
... | using System;
using System.Web.UI.WebControls;
using System.Linq;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.UI.UserControls;
using R7.University;
namespace R7.University.Launchpad
{
public partial class SettingsLaunchpad : LaunchpadModuleSettingsBase
{
... | agpl-3.0 | C# |
e613a539f01bdd2398d005b68ef91af5d3745e85 | Bump version to 3.3.0.0 | ning-yang/compute-image-windows,illfelder/compute-image-windows,GoogleCloudPlatform/compute-image-windows,GoogleCloudPlatform/compute-image-windows,adjackura/compute-image-windows,ning-yang/compute-image-windows,illfelder/compute-image-windows,adjackura/compute-image-windows | agent/Common/Properties/VersionInfo.cs | agent/Common/Properties/VersionInfo.cs | /*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | C# |
a68c407c7757ad55bd06104d01fd8eba789b8e6f | use StringComparison.InvariantCulture | tetrodoxin/NLog,tmusico/NLog,vladikk/NLog,bjornbouetsmith/NLog,nazim9214/NLog,kevindaub/NLog,thomkinson/NLog,thomkinson/NLog,breyed/NLog,vbfox/NLog,tohosnet/NLog,littlesmilelove/NLog,pwelter34/NLog,fringebits/NLog,matteobruni/NLog,nazim9214/NLog,luigiberrettini/NLog,bryjamus/NLog,zbrad/NLog,RRUZ/NLog,czema/NLog,sean-gi... | src/NLog/Internal/EncodingHelpers.cs | src/NLog/Internal/EncodingHelpers.cs | //
// Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net>
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the above c... | //
// Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net>
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the above c... | bsd-3-clause | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.