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 |
|---|---|---|---|---|---|---|---|---|
33ecae7337fd3c4ead228300e88506be962558ee | Add StopAsync method | erikipedia/MediaCaptureWPF,erikipedia/MediaCaptureWPF,mmaitre314/MediaCaptureWPF,mmaitre314/MediaCaptureWPF,mmaitre314/MediaCaptureWPF,erikipedia/MediaCaptureWPF | MediaCaptureWPF/CapturePreview.cs | MediaCaptureWPF/CapturePreview.cs | using MediaCaptureWPF.Native;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Interop;
using System.Windows.Media;
using Windows.Media;
using Windows.Media.Capture;
using Windows.Media.MediaProperties;
namespace MediaCaptureWPF
{... | using MediaCaptureWPF.Native;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Interop;
using System.Windows.Media;
using Windows.Media;
using Windows.Media.Capture;
using Windows.Media.MediaProperties;
namespace MediaCaptureWPF
{... | apache-2.0 | C# |
10135cb6b52fedc0d076cfaf35e2ce6e7f39524d | bump version | Fody/InfoOf | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("InfoOf")]
[assembly: AssemblyProduct("InfoOf")]
[assembly: AssemblyVersion("1.2.0")]
| using System.Reflection;
[assembly: AssemblyTitle("InfoOf")]
[assembly: AssemblyProduct("InfoOf")]
[assembly: AssemblyVersion("1.1.1")]
| mit | C# |
4c59925d4b4b11e0797f3c740764f8064ebdb448 | Make DllImport exclusive to iOS | sanukin39/UniVersionManager | Assets/UniVersionManager/UniVersionManager.cs | Assets/UniVersionManager/UniVersionManager.cs | using UnityEngine;
using System;
using System.Runtime.InteropServices;
#if UNITY_EDITOR
using UnityEditor;
#endif
public static class UniVersionManager
{
#if UNITY_IOS
[DllImport("__Internal")]
private static extern string GetVersionName_();
[DllImport("__Internal")]
private static extern string GetB... | using UnityEngine;
using System;
using System.Runtime.InteropServices;
#if UNITY_EDITOR
using UnityEditor;
#endif
public static class UniVersionManager
{
[DllImport("__Internal")]
private static extern string GetVersionName_();
[DllImport("__Internal")]
private static extern string GetBuildVersionNam... | mit | C# |
a8c09f8e76c06638e00f7bad7c6bcafaa73f00ec | Split tests and deduplicated code | Wolfolo/DesignPatternsCSharp | DesignPatternsExercise/CreationalPatterns/FactoryMethod/FactoryMethodTest.cs | DesignPatternsExercise/CreationalPatterns/FactoryMethod/FactoryMethodTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DesignPatternsExercise.CreationalPatterns.FactoryMethod.Mocks;
using System.Collections.Generic;
namespace DesignPatternsExercise.CreationalPatterns.FactoryMethod
{
[TestClass]
public class FactoryMethodTest
{
private Dictiona... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DesignPatternsExercise.CreationalPatterns.FactoryMethod.Mocks;
namespace DesignPatternsExercise.CreationalPatterns.FactoryMethod
{
[TestClass]
public class FactoryMethodTest
{
[TestMethod]
public void TestProduction()
... | unlicense | C# |
cac41997fc2a94b606541fcc0e5a76f5fe6ce6e4 | Use double checked lock to improve performance. | castleproject/Castle.Transactions,castleproject/Castle.Facilities.Wcf-READONLY,codereflection/Castle.Components.Scheduler,castleproject/castle-READONLY-SVN-dump,castleproject/Castle.Transactions,castleproject/Castle.Facilities.Wcf-READONLY,carcer/Castle.Components.Validator,castleproject/castle-READONLY-SVN-dump,castle... | InversionOfControl/Castle.MicroKernel/Lifestyle/SingletonLifestyleManager.cs | InversionOfControl/Castle.MicroKernel/Lifestyle/SingletonLifestyleManager.cs | // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
//
// 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 ... | // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
//
// 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 ... | apache-2.0 | C# |
05e6c3ef6a0b030234922736c36b4f3cef8f097a | Create JSon Reader command is ready | olebg/Movie-Theater-Project | MovieTheater/MovieTheater.Framework/Core/Commands/CreateJsonReaderCommand.cs | MovieTheater/MovieTheater.Framework/Core/Commands/CreateJsonReaderCommand.cs | using System.Collections.Generic;
using MovieTheater.Framework.Core.Commands.Contracts;
using MovieTheater.Framework.Core.Providers;
using MovieTheater.Framework.Core.Providers.Contracts;
namespace MovieTheater.Framework.Core.Commands
{
public class CreateJsonReaderCommand : ICommand
{
private IReader... | using System;
using System.Collections.Generic;
using MovieTheater.Framework.Core.Commands.Contracts;
namespace MovieTheater.Framework.Core.Commands
{
public class CreateJsonReaderCommand : ICommand
{
public string Execute(List<string> parameters)
{
throw new NotImplementedExceptio... | mit | C# |
30ff4990fb05a72b9cbb006c95a1bd2e6220d7ef | Fix enum starting value | uo-lca/CalRecycleLCA,uo-lca/CalRecycleLCA | Database/DataModel/Enum.cs | Database/DataModel/Enum.cs |
namespace LcaDataModel {
using System;
public enum DataProviderEnum {
append=1,
fragments,
scenarios
}
public enum DataTypeEnum {
Flow=1,
FlowProperty,
Process,
UnitGroup,
Source,
LCIAMethod,
Contact,
Fragment
... |
namespace LcaDataModel {
using System;
public enum DataProviderEnum {
append,
fragments,
scenarios
}
public enum DataTypeEnum {
Flow,
FlowProperty,
Process,
UnitGroup,
Source,
LCIAMethod,
Contact,
Fragment
}
... | bsd-2-clause | C# |
9a4a3b18594c883ed72750a5e0e457bb4f397243 | Update src/Compilers/Core/Portable/SourceGeneration/GlobalAliases.cs | CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,mavasani/roslyn,weltkante/roslyn,dotnet/roslyn,shyamnamboodiripad/roslyn,bartdesmet/roslyn,weltkante/roslyn,mavasani/roslyn,dotnet/roslyn,jasonmalinowski/roslyn,weltkante/roslyn,mavasani/roslyn,dotnet/roslyn,shyamnamboodiripad/roslyn,shyamnamboodiripad/roslyn,CyrusNajmabadi/... | src/Compilers/Core/Portable/SourceGeneration/GlobalAliases.cs | src/Compilers/Core/Portable/SourceGeneration/GlobalAliases.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.Immutable;
using Microsoft.CodeAnalysis.PooledObjects;
using Roslyn.Utilitie... | // 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.Immutable;
using Microsoft.CodeAnalysis.PooledObjects;
using Roslyn.Utilitie... | mit | C# |
b24f568940f37b3b70caf98e4af2a7ce5fceea33 | Remove unused method | OrleansContrib/Orleankka,pkese/Orleankka,yevhen/Orleankka,OrleansContrib/Orleankka,mhertis/Orleankka,mhertis/Orleankka,yevhen/Orleankka,pkese/Orleankka | Source/Orleankka.Runtime/Actor.cs | Source/Orleankka.Runtime/Actor.cs | using System;
using System.Threading.Tasks;
namespace Orleankka
{
using Core;
using Behaviors;
using Services;
using Utility;
public abstract class Actor
{
ActorRef self;
protected Actor()
{
Behavior = ActorBehavior.Null(this);
}
pr... | using System;
using System.Threading.Tasks;
namespace Orleankka
{
using Core;
using Behaviors;
using Services;
using Utility;
public abstract class Actor
{
ActorRef self;
protected Actor()
{
Behavior = ActorBehavior.Null(this);
}
pr... | apache-2.0 | C# |
9859a7ac62bc158cf5a599bdef536f00eec90cb6 | Update assembly info | 5andr0/PogoLocationFeeder,5andr0/PogoLocationFeeder | PogoLocationFeeder/Properties/AssemblyInfo.cs | PogoLocationFeeder/Properties/AssemblyInfo.cs | /*
PogoLocationFeeder gathers pokemon data from various sources and serves it to connected clients
Copyright (C) 2016 PogoLocationFeeder Development Team <admin@pokefeeder.live>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
publish... | /*
PogoLocationFeeder gathers pokemon data from various sources and serves it to connected clients
Copyright (C) 2016 PogoLocationFeeder Development Team <admin@pokefeeder.live>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
publish... | agpl-3.0 | C# |
cd863434be087a72772b4ed2f82feaf5f80b0796 | Fix TreeDataTemplate. | AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,grokys/Perspex,wieslawsoltes/Perspex,wieslawsoltes/Perspex,OronDF343/Avalonia,wieslawsoltes/Perspex,grokys/Perspex,SuperJMN/Avalonia,Perspex/Perspex,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,MrDae... | src/Markup/Avalonia.Markup.Xaml/Templates/TreeDataTemplate.cs | src/Markup/Avalonia.Markup.Xaml/Templates/TreeDataTemplate.cs | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Collections;
using System.Reactive.Linq;
using System.Reflection;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
u... | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Collections;
using System.Reactive.Linq;
using System.Reflection;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
u... | mit | C# |
7884c85140f17ea51954bb536c8fb35fda5f24e6 | Update addin versions | cake-contrib/Cake.Recipe,cake-contrib/Cake.Recipe | Cake.Recipe/Content/addins.cake | Cake.Recipe/Content/addins.cake | ///////////////////////////////////////////////////////////////////////////////
// ADDINS
///////////////////////////////////////////////////////////////////////////////
#addin nuget:?package=Cake.AppVeyor&version=1.1.0.9
#addin nuget:?package=Cake.Coveralls&version=0.4.0
#addin nuget:?package=Cake.Gitter&version=0.5.... | ///////////////////////////////////////////////////////////////////////////////
// ADDINS
///////////////////////////////////////////////////////////////////////////////
#addin nuget:?package=Cake.AppVeyor&version=1.1.0.9
#addin nuget:?package=Cake.Coveralls&version=0.4.0
#addin nuget:?package=Cake.Gitter&version=0.5.... | mit | C# |
e2339acdad001c9bde4bf125dd53008dfaa27bf4 | update sinus script | jump4r/Outsider | Outsider/Assets/Scripts/Sinus.cs | Outsider/Assets/Scripts/Sinus.cs | using UnityEngine;
using System.Collections;
using System;
public class Sinus : MonoBehaviour {
//unoptimized version
private static System.Random RandomNumber = new System.Random();
public double frequency;
public double frequency2 = 220;
public double gain = 0.02;
public static int[] pitchClass = new int[] {0... | using UnityEngine;
using System.Collections;
using System;
public class Sinus : MonoBehaviour {
//unoptimized version
private static System.Random RandomNumber = new System.Random();
public double frequency = 440;
public double frequency2;
public double gain = 0.02;
public double skew;
private double incremen... | mit | C# |
3fa53f59c5b1dc0c015945288a7e2b7c3814c4cd | Remove old commented code | mrahhal/MR.AspNetCore.Jobs,mrahhal/MR.AspNetCore.Jobs | src/MR.AspNetCore.Jobs.SqlServer/SqlServerStorage.cs | src/MR.AspNetCore.Jobs.SqlServer/SqlServerStorage.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using MR.AspNetCore.Jobs.Models;
namespace MR.AspNetCore.Jobs
{
public class SqlServerStorage : IStorage
{
private IServicePro... | using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using MR.AspNetCore.Jobs.Models;
namespace MR.AspNetCore.Jobs
{
public class SqlServerStorage : IStorage
{
private IServicePro... | mit | C# |
36fa63e68cb50d4c55e074929a8f0bbc84598173 | simplify path to sln in compiler test | scichelli/Nautilus-Build,scichelli/Nautilus-Build | src/Nautilus.Tests/BuildInstructionsCompilerTests.cs | src/Nautilus.Tests/BuildInstructionsCompilerTests.cs | using Should;
namespace Nautilus.Tests
{
public class BuildInstructionsCompilerTests
{
private readonly BuildInstructionsCompiler _buildInstructionsCompiler;
public BuildInstructionsCompilerTests()
{
_buildInstructionsCompiler = new BuildInstructionsCompiler();
}
... | using Should;
namespace Nautilus.Tests
{
public class BuildInstructionsCompilerTests
{
private readonly BuildInstructionsCompiler _buildInstructionsCompiler;
public BuildInstructionsCompilerTests()
{
_buildInstructionsCompiler = new BuildInstructionsCompiler();
}
... | mit | C# |
6df6e07f736ec681deed56c8323c40677d632207 | Add menu bar | pleonex/deblocus,pleonex/deblocus | Deblocus/MainWindow.Designer.cs | Deblocus/MainWindow.Designer.cs | //
// MainWindow.Designer.cs
//
// Author:
// Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez (c) 2015
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published ... | //
// MainWindow.Designer.cs
//
// Author:
// Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez (c) 2015
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published ... | agpl-3.0 | C# |
3d8f88533593b390831600013d585c5aaceffcb4 | Add getInbox, fix naming on messagesurl | justcool393/RedditSharp-1,ekaralar/RedditSharpWindowsStore,RobThree/RedditSharp,angelotodaro/RedditSharp,Jinivus/RedditSharp,theonlylawislove/RedditSharp,nyanpasudo/RedditSharp,IAmAnubhavSaini/RedditSharp,tomnolan95/RedditSharp,SirCmpwn/RedditSharp,pimanac/RedditSharp,epvanhouten/RedditSharp,chuggafan/RedditSharp-1,Cru... | RedditSharp/AuthenticatedUser.cs | RedditSharp/AuthenticatedUser.cs | using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
namespace RedditSharp
{
public class AuthenticatedUser : RedditUser
{
private const string ModeratorUrl = "/reddits/mine/moderator.json";
private const string UnreadMessagesUrl = "/message/unread.json?mark=true&limit=25";
private const... | using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
namespace RedditSharp
{
public class AuthenticatedUser : RedditUser
{
private const string ModeratorUrl = "/reddits/mine/moderator.json";
private const string UnreadMessagesUrl = "/message/unread.json?mark=true&limit=25";
private const... | mit | C# |
08b0aedeca04b49ae251681981009d1c06918d6b | Simplify out when viewing files with no changes | terrajobst/git-istage,terrajobst/git-istage | src/git-istage/FileDocument.cs | src/git-istage/FileDocument.cs | using System.Text;
using LibGit2Sharp;
namespace GitIStage;
internal sealed class FileDocument : Document
{
private readonly int _indexOfFirstFile;
private readonly string[] _lines;
private readonly TreeEntryChanges[] _changes;
private FileDocument(int indexOfFirstFile, string[] lines, TreeChanges c... | using System.Text;
using LibGit2Sharp;
namespace GitIStage;
internal sealed class FileDocument : Document
{
private readonly int _indexOfFirstFile;
private readonly string[] _lines;
private readonly TreeEntryChanges[] _changes;
private FileDocument(int indexOfFirstFile, string[] lines, TreeChanges c... | mit | C# |
559aa797da9d4e2475b85bed2935b30914985c36 | Simplify dictionary reading code - use iterator block, not linq. | EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an | WikipediaAvsAnTrieExtractor/RegexTextUtils.cs | WikipediaAvsAnTrieExtractor/RegexTextUtils.cs | using System.Reflection;
using System.Text.RegularExpressions;
using System.Linq;
using System;
using System.IO;
using System.Collections.Generic;
namespace WikipediaAvsAnTrieExtractor {
public partial class RegexTextUtils {
//Note: regexes are NOT static and shared between threads because of... ... | using System.Reflection;
using System.Text.RegularExpressions;
using System.Linq;
using System;
using System.IO;
using System.Collections.Generic;
namespace WikipediaAvsAnTrieExtractor {
public partial class RegexTextUtils {
//Note: regexes are NOT static and shared between threads because of... ... | apache-2.0 | C# |
26d6f96c4e2decdba1836a98280a2ba6381c379d | Fix LabelledTextBox not correctly forwarding focus to its underlying TextBox component | NeoAdonis/osu,ppy/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new,peppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu | osu.Game/Graphics/UserInterfaceV2/LabelledTextBox.cs | osu.Game/Graphics/UserInterfaceV2/LabelledTextBox.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.UserInterface;
using osu.Framework.In... | // 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.UserInterface;
using osu.Game.Graphic... | mit | C# |
f73169702bb98b01a50ced0d8635ba4ac9544e2f | Fix fields serialization format | elastic/elasticsearch-net,elastic/elasticsearch-net | src/Nest/CommonAbstractions/Infer/Field/FieldFormatter.cs | src/Nest/CommonAbstractions/Infer/Field/FieldFormatter.cs | using Elasticsearch.Net;
namespace Nest
{
internal class FieldFormatter : IJsonFormatter<Field>, IObjectPropertyNameFormatter<Field>
{
private static readonly AutomataDictionary Fields = new AutomataDictionary
{
{ "field", 0 },
{ "boost", 1 },
{ "format", 2 },
};
public Field Deserialize(ref Json... | using Elasticsearch.Net;
namespace Nest
{
internal class FieldFormatter : IJsonFormatter<Field>, IObjectPropertyNameFormatter<Field>
{
private static readonly AutomataDictionary Fields = new AutomataDictionary
{
{ "field", 0 },
{ "boost", 1 },
{ "format", 2 },
};
public Field Deserialize(ref Json... | apache-2.0 | C# |
fc523bdbde7cfeaacce8f7128e775cf112745636 | Remove extra `public`s from interface | TehPers/StardewValleyMods | src/TehPers.FishingOverhaul.Api/Effects/IFishingEffect.cs | src/TehPers.FishingOverhaul.Api/Effects/IFishingEffect.cs | using StardewValley;
namespace TehPers.FishingOverhaul.Api.Effects
{
/// <summary>
/// An effect that can be applied while fishing.
/// </summary>
public interface IFishingEffect
{
/// <summary>
/// Applies this effect.
/// </summary>
/// <param name="fishingInfo">I... | using StardewValley;
namespace TehPers.FishingOverhaul.Api.Effects
{
/// <summary>
/// An effect that can be applied while fishing.
/// </summary>
public interface IFishingEffect
{
/// <summary>
/// Applies this effect.
/// </summary>
/// <param name="fishingInfo">I... | mit | C# |
e749e2e3651ea40969c6a5d6c560f92f2784e8ed | Change suffix separator | ComputerWorkware/TeamCityApi | src/TeamCityApi/Consts.cs | src/TeamCityApi/Consts.cs | namespace TeamCityApi
{
public class Consts
{
public const string SuffixSeparator = " -- ";
}
} | namespace TeamCityApi
{
public class Consts
{
public const string SuffixSeparator = "` ";
}
} | mit | C# |
f77b9d101de73f55d8597b649785ac6f782a72fc | move pack out to separate step | shiftkey/Reactive.EventAggregator | build.cake | build.cake | #tool nuget:?package=xunit.runner.console&version=2.1.0
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
/////... | #tool nuget:?package=xunit.runner.console&version=2.1.0
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
/////... | mit | C# |
2f62362261b20504c6b62bd9fc2636b67f97076f | use reprap settings as default | gradientspace/gsSlicerApps | MeshToGCodeDemo/Program.cs | MeshToGCodeDemo/Program.cs | using System;
using System.IO;
using g3;
using gs;
using gs.info;
namespace MeshToGCodeDemo
{
class Program
{
static void Main(string[] args)
{
CappedCylinderGenerator cylgen = new CappedCylinderGenerator() {
BaseRadius = 10, TopRadius = 5, Height = 20, Slices = 32
... | using System;
using System.IO;
using g3;
using gs;
using gs.info;
namespace MeshToGCodeDemo
{
class Program
{
static void Main(string[] args)
{
CappedCylinderGenerator cylgen = new CappedCylinderGenerator() {
BaseRadius = 10, TopRadius = 5, Height = 20, Slices = 32
... | mit | C# |
541d652427ff84124199699012ee529280a580fc | bump pause before running data tests to give db time to come online | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | tests/FilterLists.Data.Tests/SeedFilterListsDbContextTests.cs | tests/FilterLists.Data.Tests/SeedFilterListsDbContextTests.cs | using System.Threading;
using FilterLists.Data.Seed.Extensions;
using Microsoft.EntityFrameworkCore;
using Xunit;
namespace FilterLists.Data.Tests
{
public class SeedFilterListsDbContextTests
{
[Fact]
public async void SeedOrUpdateAsync_DoesNotThrowException()
{
//TODO: repl... | using System.Threading;
using FilterLists.Data.Seed.Extensions;
using Microsoft.EntityFrameworkCore;
using Xunit;
namespace FilterLists.Data.Tests
{
public class SeedFilterListsDbContextTests
{
[Fact]
public async void SeedOrUpdateAsync_DoesNotThrowException()
{
//TODO: repl... | mit | C# |
75a666b2120593b1690f18d991a523b2575052aa | Update DbConnection.cs | hMatoba/tetsujin,hMatoba/tetsujin,hMatoba/tetsujin,hMatoba/tetsujin,hMatoba/tetsujin | tetsujin/tetsujin/Scripts/DbConnection.cs | tetsujin/tetsujin/Scripts/DbConnection.cs | using MongoDB.Bson;
using MongoDB.Driver;
using System;
using System.Net.Sockets;
public class DbConnection
{
public static IMongoDatabase Db { get; set; }
public static void Connect(string connectionString, string dbName)
{
var url = new MongoUrl(connectionString);
var clientSettings = M... | using MongoDB.Bson;
using MongoDB.Driver;
using System;
using System.Net.Sockets;
public class DbConnection
{
public static IMongoDatabase Db { get; set; }
public static void Connect(string connectionString, string dbName)
{
var url = new MongoUrl(connectionString);
var clientSettings = M... | mit | C# |
3cdaccf370c270258dfb61fba792605c569539bb | change space to tabs on AndroidKeyAction | bitcake/bitstrap | Assets/BitStrap/Plugins/Editor/UMake/BuildActions/Scripts/AndroidKeyAction.cs | Assets/BitStrap/Plugins/Editor/UMake/BuildActions/Scripts/AndroidKeyAction.cs | using UnityEditor;
using UnityEngine;
namespace BitStrap
{
public sealed class AndroidKeyAction : UMakeBuildAction
{
public string keyStoreName = "user.keystore";
public string keyStorePassword = "keyStorePassword";
public string keyAliasName = "aliasName";
public string keyAliasPassword = "keyAliasPassword"... | using UnityEditor;
using UnityEngine;
namespace BitStrap
{
public sealed class AndroidKeyAction : UMakeBuildAction
{
public string keyStoreName = "user.keystore";
public string keyStorePassword = "keyStorePassword";
public string keyAliasName = "aliasName";
public string keyAlia... | mit | C# |
56204b9165fbcde35690c030c29f2a04b443c117 | Update WebApiConfig.cs | aspnet/WebHooks,aspnet/WebHooks,garora/WebHooks | samples/MyGetReceiver/App_Start/WebApiConfig.cs | samples/MyGetReceiver/App_Start/WebApiConfig.cs | using System.Web.Http;
namespace MyGetReceiver
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
// Web API routes
config.MapHttpAttributeRoutes();
config.Routes.M... | using System.Web.Http;
namespace MyGetReceiver
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
// Web API routes
config.MapHttpAttributeRoutes();
config.Routes.M... | apache-2.0 | C# |
60d42fbb44a590640eb54b338dd66b141771079b | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | autofac/Autofac.Extras.DynamicProxy,jango2015/Autofac.Extras.DynamicProxy | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Extras.DynamicProxy2")]
[assembly: ComVisible(false)] | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Extras.DynamicProxy2")]
[assembly: AssemblyDescription("Autofac Castle.DynamicProxy2 Integration")]
[assembly: ComVisible(false)] | mit | C# |
ae66264a570c51a02650e187610ef667db091e2d | Update AssemblyInfo.cs | sarbian/DDSLoader | 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("DD... | 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("DD... | mit | C# |
ca467bafd4b5ba2b2c49897ce93350e67337ec1f | Clean up task naming | sqeezy/FibonacciHeap,sqeezy/FibonacciHeap | build.cake | build.cake | var target = Argument("target", "Default");
var outputDir = "./bin";
Task("Default")
.IsDependentOn("Test");
Task("Test")
.IsDependentOn("Build")
.Does(()=>
{
DotNetCoreTest("./src/FibonacciHeap.Tests/FibonacciHeap.Tests.csproj");
});
Task("Build")
.IsDependentOn("NugetRestore")
.Does(()=>
{
... | var target = Argument("target", "Default");
var outputDir = "./bin";
Task("Default")
.IsDependentOn("Xunit");
Task("Xunit")
.IsDependentOn("Build")
.Does(()=>
{
DotNetCoreTest("./src/FibonacciHeap.Tests/FibonacciHeap.Tests.csproj");
});
Task("Build")
.IsDependentOn("NugetRestore")
.Does(()=>
{
... | mit | C# |
4821be7246b34253d365678acdd3bb3c2f9adaef | remove unneeded versioning tasks | bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity | build.cake | build.cake | #addin nuget:?package=Cake.Git
#tool "nuget:?package=NUnit.ConsoleRunner"
var target = Argument("target", "Default");
var solution = File("./BugsnagUnity.sln");
var configuration = Argument("configuration", "Release");
var project = File("./src/BugsnagUnity/BugsnagUnity.csproj");
var version = "5.1.0";
Task("Restore-... | #addin nuget:?package=Cake.Git
#tool "nuget:?package=NUnit.ConsoleRunner"
var target = Argument("target", "Default");
var solution = File("./BugsnagUnity.sln");
var configuration = Argument("configuration", "Release");
var project = File("./src/BugsnagUnity/BugsnagUnity.csproj");
var version = "5.1.0";
Task("Restore-... | mit | C# |
1e7cb3d9ed3ffeb00977cb17fb4846d2c35751ab | Fix build | Catel/Catel.Fody | build.cake | build.cake | //=======================================================
// DEFINE PARAMETERS
//=======================================================
// Define the required parameters
var Parameters = new Dictionary<string, object>();
Parameters["SolutionName"] = "Catel.Fody";
Parameters["Company"] = "CatenaLogic";
Parameters["Rep... | //=======================================================
// DEFINE PARAMETERS
//=======================================================
// Define the required parameters
var Parameters = new Dictionary<string, object>();
Parameters["SolutionName"] = "Catel.Fody";
Parameters["Company"] = "CatenaLogic";
Parameters["Rep... | mit | C# |
d4cd35f5f0319880c5d70e8d164a4e0a993bac0e | Remove unnecessary tasks. | olsh/todoist-net | build.cake | build.cake | #addin "Cake.Incubator"
var target = Argument("target", "Default");
var extensionsVersion = Argument("version", "1.1.4");
var buildConfiguration = "Release";
var projectName = "Todoist.Net";
var testProjectName = "Todoist.Net.Tests";
var projectFolder = string.Format("./src/{0}/", projectName);
var testProjectFolder ... | #addin "Cake.Incubator"
var target = Argument("target", "Default");
var extensionsVersion = Argument("version", "1.1.4");
var buildConfiguration = "Release";
var projectName = "Todoist.Net";
var testProjectName = "Todoist.Net.Tests";
var projectFolder = string.Format("./src/{0}/", projectName);
var testProjectFolder ... | mit | C# |
0ba608f677b371a0d652fc67bc50e6fc652e7287 | update cake | jguertl/SharePlugin,jguertl/SharePlugin | build.cake | build.cake | #addin nuget:https://nuget.org/api/v2/?package=Cake.FileHelpers&version=1.0.3.2
#addin nuget:https://nuget.org/api/v2/?package=Cake.Xamarin&version=1.2.3
var TARGET = Argument ("target", Argument ("t", "Default"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
Task ... | #addin "Cake.FileHelpers"
var TARGET = Argument ("target", Argument ("t", "Default"));
var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999");
Task ("Default").Does (() =>
{
const string sln = "./Share.sln";
const string cfg = "Release";
NuGetRestore (sln);
if... | mit | C# |
e651fa9e9094c6ff42231889b6af823e8e9e1623 | remove unused code in cake file | chrisowhite/IdentityServer4,siyo-wang/IdentityServer4,siyo-wang/IdentityServer4,jbijlsma/IdentityServer4,siyo-wang/IdentityServer4,MienDev/IdentityServer4,MienDev/IdentityServer4,IdentityServer/IdentityServer4,chrisowhite/IdentityServer4,IdentityServer/IdentityServer4,chrisowhite/IdentityServer4,jbijlsma/IdentityServer... | build.cake | build.cake | var target = Argument("target", "Default");
var configuration = Argument<string>("configuration", "Release");
///////////////////////////////////////////////////////////////////////////////
// GLOBAL VARIABLES
///////////////////////////////////////////////////////////////////////////////
var isLocalBuild ... | var target = Argument("target", "Default");
var configuration = Argument<string>("configuration", "Release");
///////////////////////////////////////////////////////////////////////////////
// GLOBAL VARIABLES
///////////////////////////////////////////////////////////////////////////////
var isLocalBuild ... | apache-2.0 | C# |
da42b47a35315c46426314c3ba479bd1b097c4ad | move iso copy nupkgs | MCGPPeters/Eru,MCGPPeters/Eru | build.cake | build.cake | #tool "nuget:?package=GitVersion.CommandLine"
#tool "nuget:?package=xunit.runner.console&version=2.2.0"
#addin "Cake.FileHelpers"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var artifactsDir = Directory("./artifacts");
var solution = "./sr... | #tool "nuget:?package=GitVersion.CommandLine"
#tool "nuget:?package=xunit.runner.console&version=2.2.0"
#addin "Cake.FileHelpers"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var artifactsDir = Directory("./artifacts");
var solution = "./sr... | mit | C# |
e1162a87e17d4acf137ce6a13b0bb569a6352b33 | add restore task before building | mderriey/version-release-brown-bag | build.cake | build.cake | var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var sourceDirectory = Directory("./src").Path;
var testResultsDirectory = Directory("./test-results").Path;
var artifactsDirectory = Directory("./build-artifacts").Path;
var projectName = "MickaelDerriey.UsefulExtens... | var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var sourceDirectory = Directory("./src").Path;
var testResultsDirectory = Directory("./test-results").Path;
var artifactsDirectory = Directory("./build-artifacts").Path;
var projectName = "MickaelDerriey.UsefulExtens... | mit | C# |
e70e8c7235c261205b4d48446fc41b8e43f96e25 | Remove unused namespaces | yonglehou/AttributeRouting,kenny-evitt/AttributeRouting,kenny-evitt/AttributeRouting,modulexcite/AttributeRouting,mccalltd/AttributeRouting,mccalltd/AttributeRouting,yonglehou/AttributeRouting,modulexcite/AttributeRouting | src/AttributeRouting.Http/HttpRouteAttribute.cs | src/AttributeRouting.Http/HttpRouteAttribute.cs | using System;
namespace AttributeRouting.Http
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public class HttpRouteAttribute : Attribute, IRouteAttribute
{
public HttpRouteAttribute(string routeUrl, params string[] allowedMethods) {
if (routeUrl == ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Routing;
namespace AttributeRouting.Http
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public class HttpRouteAttribute : Attr... | mit | C# |
3cc6b86d415093d52114caaf52ed0c3e3116142b | add message to monitoring response | LykkeCity/bitcoinservice,LykkeCity/bitcoinservice | src/BitcoinApi/Controllers/IsAliveController.cs | src/BitcoinApi/Controllers/IsAliveController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BitcoinApi.Filters;
using Core.Bitcoin;
using Core.Exceptions;
using Core.Providers;
using Core.Settings;
using LkeServices.Providers;
using Microsoft.AspNetCore.Mvc;
using QBitNinja.Client;
namespace BitcoinApi.Con... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Core.Bitcoin;
using Core.Providers;
using Core.Settings;
using LkeServices.Providers;
using Microsoft.AspNetCore.Mvc;
using QBitNinja.Client;
namespace BitcoinApi.Controllers
{
[Route("api/[controller]")]
pu... | mit | C# |
0de2ecc747ec078389727ae70be40a015cdcf31b | comment edit | DeathCradle/Terraria-s-Dedicated-Server-Mod,DeathCradle/Terraria-s-Dedicated-Server-Mod,DeathCradle/Terraria-s-Dedicated-Server-Mod,DeathCradle/Terraria-s-Dedicated-Server-Mod | Terraria_Server/Statics.cs | Terraria_Server/Statics.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Terraria_Server
{
public static class Statics
{
public static int build = 4;
public static bool cmdMessages = true;
public static bool debugMode = false;
public static int platform ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Terraria_Server
{
public static class Statics
{
public static int build = 4;
public static bool cmdMessages = true;
public static bool debugMode = false;
public static int platform ... | mit | C# |
65dddb5f57e740da3e292d3f53802808288dcb70 | Add class LuryExceptionStrings | HaiTo/lury,nokok/lury,lury-lang/lury | src/Lury/Runtime/Exception/LuryExceptionType.cs | src/Lury/Runtime/Exception/LuryExceptionType.cs | //
// LuryExceptionType.cs
//
// Author:
// Tomona Nanase <nanase@users.noreply.github.com>
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Tomona Nanase
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software")... | //
// LuryExceptionType.cs
//
// Author:
// Tomona Nanase <nanase@users.noreply.github.com>
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Tomona Nanase
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software")... | mit | C# |
7c03a69e4d7977972b976af4a14b5dba0aae85b7 | Change TaskFile to store rows as Strings. | jcheng31/todoPad | TodoPad/Models/TaskFile.cs | TodoPad/Models/TaskFile.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TodoPad.Models
{
class TaskFile
{
public String Path { get; set; }
public String[] Rows { get; set; }
public TaskFile(String path, String contents... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TodoPad.Models
{
class TaskFile
{
public String Path { get; set; }
public List<Row> Rows { get; set; }
public TaskFile(String path, String content... | mit | C# |
aca0d881ecbf4ccc09d18135883808a76bed13af | Add webhooks to the client interface. | kirilsi/csharp-sparkpost,darrencauthon/csharp-sparkpost,ZA1/csharp-sparkpost,SparkPost/csharp-sparkpost,kirilsi/csharp-sparkpost,darrencauthon/csharp-sparkpost | src/SparkPost/IClient.cs | src/SparkPost/IClient.cs | namespace SparkPost
{
/// <summary>
/// Provides access to the SparkPost API.
/// </summary>
public interface IClient
{
/// <summary>
/// Gets or sets the key used for requests to the SparkPost API.
/// </summary>
string ApiKey { get; set; }
/// <summary>
... | namespace SparkPost
{
/// <summary>
/// Provides access to the SparkPost API.
/// </summary>
public interface IClient
{
/// <summary>
/// Gets or sets the key used for requests to the SparkPost API.
/// </summary>
string ApiKey { get; set; }
/// <summary>
... | apache-2.0 | C# |
b0ae2c345b8aebfe8d0671b522fc3ae2ac4e290a | Add more info when EqualTolerance() assert fails | anjdreas/UnitsNet,anjdreas/UnitsNet | UnitsNet.Tests/AssertEx.cs | UnitsNet.Tests/AssertEx.cs | using Xunit;
namespace UnitsNet.Tests
{
/// <summary>
/// Additional assert methods to XUnit's <see cref="Xunit.Assert" />.
/// </summary>
public static class AssertEx
{
public static void EqualTolerance(double expected, double actual, double tolerance)
{
Assert.Tru... | using Xunit;
namespace UnitsNet.Tests
{
/// <summary>
/// Additional assert methods to XUnit's <see cref="Xunit.Assert" />.
/// </summary>
public static class AssertEx
{
public static void EqualTolerance(double expected, double actual, double tolerance)
{
Assert.True... | mit | C# |
7abf9d4363b63c18d1e428e801975fba96e62dff | create file locator from factory | vorou/play.NET,vorou/play.NET | Src/playNET.App/Bootstrapper.cs | Src/playNET.App/Bootstrapper.cs | using System.IO;
using Nancy;
using Nancy.TinyIoc;
namespace playNET.App
{
public class Bootstrapper : DefaultNancyBootstrapper
{
protected override void ConfigureApplicationContainer(TinyIoCContainer container)
{
base.ConfigureApplicationContainer(container);
... | using System.IO;
using Nancy;
using Nancy.TinyIoc;
namespace playNET.App
{
public class Bootstrapper : DefaultNancyBootstrapper
{
protected override void ConfigureApplicationContainer(TinyIoCContainer container)
{
base.ConfigureApplicationContainer(container);
... | mit | C# |
4046f07839495c751ceadf5db8446b01bb6b1b37 | Sort battle roster by group, then by position desc | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | BatteryCommander.Web/Controllers/BattleRosterController.cs | BatteryCommander.Web/Controllers/BattleRosterController.cs | using BatteryCommander.Common;
using BatteryCommander.Common.Models;
using BatteryCommander.Web.Models;
using Microsoft.AspNet.Identity;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace BatteryCommander.Web.Controllers
{
public class BattleRosterController... | using BatteryCommander.Common;
using BatteryCommander.Common.Models;
using BatteryCommander.Web.Models;
using Microsoft.AspNet.Identity;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace BatteryCommander.Web.Controllers
{
public class BattleRosterController... | mit | C# |
c7bc14ecce5ab744fec39f64b05709c27e8c3a97 | Fix example 4 code | suvroc/selenium-mail-course,ronlouw/selenium-mail-course,Bartty9/selenium-mail-course,osieckiAdam/selenium-mail-course | EndToEndMailCourse/EndToEndMailCourse/04/Example04Tests.cs | EndToEndMailCourse/EndToEndMailCourse/04/Example04Tests.cs | using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
namespace EndToEndMailCourse._04
{
[TestFixture]
public class Example04Tests
{
private string testUrl = "https://suvroc.github.io/selenium-mail-course/04/example.html";
[Test]
public void ShouldTestExampl... | using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
namespace EndToEndMailCourse._04
{
[TestFixture]
public class Example04Tests
{
private string testUrl = "https://suvroc.github.io/selenium-mail-course/04/example.html";
[Test]
public void ShouldTestExampl... | mit | C# |
d1774fbcdd789bcd5420c8b410c7f1391bbbd0b5 | Add request body test | stoiveyp/Alexa.NET.Management | Tests/Alexa.NET.Management.Tests/UtteranceProfilerTests.cs | Tests/Alexa.NET.Management.Tests/UtteranceProfilerTests.cs | using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Alexa.NET.Management.Api;
using Alexa.NET.Management.UtteranceProfiler;
using Newtonsoft.Json;
using Xunit;
namespace Alexa.NET.Management.Tests
{
public class UtteranceProfilerTests
{
[Fact]
public async Task Analyze... | using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Alexa.NET.Management.Api;
using Alexa.NET.Management.UtteranceProfiler;
using Xunit;
namespace Alexa.NET.Management.Tests
{
public class UtteranceProfilerTests
{
[Fact]
public async Task AnalyzeCreatesCorrectUrl()
... | mit | C# |
12db7874cc36c4075512a6a29362df6928361546 | Add getMe bot method | Dsouzavl/Talkative | src/Talkative/Bot.cs | src/Talkative/Bot.cs | using System;
using System.Text.RegularExpressions;
using System.Net.Http;
using System.Net;
using Newtonsoft.Json;
using System.Threading.Tasks;
namespace Talkative
{
internal class Bot
{
public string Id { get; set; }
public string FirstName { get; set; }
public string LastName { get;... | using System;
using System.Text.RegularExpressions;
using System.Net.Http;
using Newtonsoft.Json;
namespace Talkative
{
internal class Bot
{
public string Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string UserName { get; se... | mit | C# |
aa07b42acbe15436823024d22f11347f82c0aaaf | increment to 2.1.0 | adamralph/xbehave.net,mvalipour/xbehave.net,mvalipour/xbehave.net,xbehave/xbehave.net | src/VersionInfo.2.cs | src/VersionInfo.2.cs | // <copyright file="VersionInfo.2.cs" company="xBehave.net contributors">
// Copyright (c) xBehave.net contributors. All rights reserved.
// </copyright>
using System.Reflection;
[assembly: AssemblyVersion("2.1.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: AssemblyInformationalVersion("2.1.0")... | // <copyright file="VersionInfo.2.cs" company="xBehave.net contributors">
// Copyright (c) xBehave.net contributors. All rights reserved.
// </copyright>
using System.Reflection;
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyInformationalVersion("2.0.0"... | mit | C# |
67abdc8eba810a9b018626e7b004ec8c06b35bb1 | Validate volatile scope in VolatileContext.Resolve. | pzavolinsky/Autocore | Autocore/Implementation/VolatileContext.cs | Autocore/Implementation/VolatileContext.cs | // The MIT License (MIT)
//
// Copyright (c) 2014 Patricio Zavolinsky
//
// 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
// ... | // The MIT License (MIT)
//
// Copyright (c) 2014 Patricio Zavolinsky
//
// 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
// ... | mit | C# |
5025c2be0a1e9edda6a5ab07be7d862aeb0ef9be | Comment code | mstrother/BmpListener | BmpListener/Bgp/SubsequentAddressFamily.cs | BmpListener/Bgp/SubsequentAddressFamily.cs | namespace BmpListener.Bgp
{
// http://www.iana.org/assignments/safi-namespace/safi-namespace.xhtml
public enum SubsequentAddressFamily
{
Unicast = 1,
Multicast = 2
}
}
| namespace BmpListener.Bgp
{
public enum SubsequentAddressFamily
{
Unicast = 1,
Multicast = 2
}
}
| mit | C# |
90c0338ed6406a44015fbe9a547dbe6b932f0e5c | Return ShaderContent for built-in shader stages. | izrik/ChamberLib,izrik/ChamberLib,izrik/ChamberLib | ChamberLib.OpenTK/BuiltinShaderImporter.cs | ChamberLib.OpenTK/BuiltinShaderImporter.cs | using System;
using ChamberLib.Content;
namespace ChamberLib.OpenTK
{
public class BuiltinShaderImporter
{
public BuiltinShaderImporter(ShaderImporter next, ShaderStageImporter next2)
{
if (next == null) throw new ArgumentNullException("next");
if (next2 == null) throw ... | using System;
using ChamberLib.Content;
namespace ChamberLib.OpenTK
{
public class BuiltinShaderImporter
{
public BuiltinShaderImporter(ShaderImporter next, ShaderStageImporter next2)
{
if (next == null) throw new ArgumentNullException("next");
if (next2 == null) throw ... | lgpl-2.1 | C# |
782f87a82d0ff3fe9c3574116df429b93d3523d3 | Throw ArgumentNullException. | alastairs/cgowebsite,alastairs/cgowebsite | src/CGO.Web.Tests/Controllers/UserControllerFacts.cs | src/CGO.Web.Tests/Controllers/UserControllerFacts.cs | using System;
using CGO.Web.Controllers;
using CGO.Web.Infrastructure;
using NSubstitute;
using NUnit.Framework;
using MvcContrib.TestHelper;
namespace CGO.Web.Tests.Controllers
{
class UserControllerFacts
{
[TestFixture]
public class ConstructorShould
{
[Test]
... | using CGO.Web.Controllers;
using CGO.Web.Infrastructure;
using NSubstitute;
using NUnit.Framework;
using MvcContrib.TestHelper;
namespace CGO.Web.Tests.Controllers
{
class UserControllerFacts
{
[TestFixture]
public class LoginShould
{
[Test]
public void Displ... | mit | C# |
af2acbcd368ac4411eefa426e1cf92e3af4d0772 | Make mutable struct members readonly. | mysql-net/MySqlConnector,mysql-net/MySqlConnector | src/MySqlConnector/MySql.Data.Types/MySqlDateTime.cs | src/MySqlConnector/MySql.Data.Types/MySqlDateTime.cs | using System;
namespace MySql.Data.Types
{
public struct MySqlDateTime : IComparable
{
public MySqlDateTime(int year, int month, int day, int hour, int minute, int second, int microsecond)
{
Year = year;
Month = month;
Day = day;
Hour = hour;
Minute = minute;
Second = second;
Microsecond = m... | using System;
namespace MySql.Data.Types
{
public struct MySqlDateTime : IComparable
{
public MySqlDateTime(int year, int month, int day, int hour, int minute, int second, int microsecond)
{
Year = year;
Month = month;
Day = day;
Hour = hour;
Minute = minute;
Second = second;
Microsecond = m... | mit | C# |
0b1429cded35cf3b7b3337beeeb8c56bc2a1c080 | Add Public to build target | jinyuliao/GenericGraph,jinyuliao/GenericGraph,jinyuliao/GenericGraph | Source/GenericGraphEditor/GenericGraphEditor.Build.cs | Source/GenericGraphEditor/GenericGraphEditor.Build.cs | using UnrealBuildTool;
public class GenericGraphEditor : ModuleRules
{
public GenericGraphEditor(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
bLegacyPublicIncludePaths = false;
ShadowVariableWarningLevel = WarningLevel.Error;
PublicIncludePaths.AddRa... | using UnrealBuildTool;
public class GenericGraphEditor : ModuleRules
{
public GenericGraphEditor(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
bLegacyPublicIncludePaths = false;
ShadowVariableWarningLevel = WarningLevel.Error;
PublicIncludePaths.AddRa... | mit | C# |
39463c8dd07d5d6fa4d1d1040e049ae0a30d29ee | Use AllFlags constant in TypeInfo extension | pharring/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet,Microsoft/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet | Test/CoreSDK.Test/Net40/System/Reflection/TypeInfo.cs | Test/CoreSDK.Test/Net40/System/Reflection/TypeInfo.cs | using System.Collections.Generic;
namespace System.Reflection
{
internal class TypeInfo
{
private const BindingFlags AllFlags = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic;
private Type type;
public TypeInfo(T... | using System.Collections.Generic;
namespace System.Reflection
{
internal class TypeInfo
{
public const BindingFlags AllFlags = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic;
private Type type;
public TypeInfo(Ty... | mit | C# |
1f4a1872512a6d810d905ded980cf3594844bb40 | Support listing charges by PaymentIntent id | richardlawley/stripe.net,stripe/stripe-dotnet | src/Stripe.net/Services/Charges/ChargeListOptions.cs | src/Stripe.net/Services/Charges/ChargeListOptions.cs | namespace Stripe
{
using System;
using Newtonsoft.Json;
public class ChargeListOptions : ListOptionsWithCreated
{
/// <summary>
/// Only return charges for the customer specified by this customer ID.
/// </summary>
[JsonProperty("customer")]
public string Custome... | namespace Stripe
{
using Newtonsoft.Json;
public class ChargeListOptions : ListOptionsWithCreated
{
[JsonProperty("customer")]
public string CustomerId { get; set; }
[JsonProperty("source")]
public ChargeSourceListOptions Source { get; set; }
}
}
| apache-2.0 | C# |
631d084a33694696cd75729642842afd47488e08 | allow RecursiveFileEnumerator to enumerate a single file | GNOME/f-spot,Sanva/f-spot,mono/f-spot,Sanva/f-spot,nathansamson/F-Spot-Album-Exporter,mono/f-spot,nathansamson/F-Spot-Album-Exporter,mans0954/f-spot,mans0954/f-spot,mono/f-spot,mono/f-spot,mono/f-spot,NguyenMatthieu/f-spot,GNOME/f-spot,mans0954/f-spot,GNOME/f-spot,dkoeb/f-spot,dkoeb/f-spot,NguyenMatthieu/f-spot,mono/f-... | src/Utils/RecursiveFileEnumerator.cs | src/Utils/RecursiveFileEnumerator.cs | using System;
using System.Collections;
using System.Collections.Generic;
using GLib;
namespace FSpot.Utils
{
public class RecursiveFileEnumerator : IEnumerable<File>
{
Uri root;
bool recurse;
public RecursiveFileEnumerator (Uri root) : this (root, true)
{
}
public Recursi... | using System;
using System.Collections;
using System.Collections.Generic;
using GLib;
namespace FSpot.Utils
{
public class RecursiveFileEnumerator : IEnumerable<File>
{
Uri root;
bool recurse;
public RecursiveFileEnumerator (Uri root) : this (root, true)
{
}
public Recursi... | mit | C# |
ed6a0cbb06cec276a52423632b875f499f8866fb | update encoder | ceee/ReadSharp,alexeib/ReadSharp | ReadSharp/Encodings/Encoder.cs | ReadSharp/Encodings/Encoder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ReadSharp.Encodings
{
public class Encoder
{
/// <summary>
/// All available custom encodings
/// </summary>
private static Dictionary<string, string> customEncodings = new Dictionary<string, string>()
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ReadSharp.Encodings
{
public class Encoder
{
/// <summary>
/// All available custom encodings
/// </summary>
private static Dictionary<string, string> customEncodings = new Dictionary<string, string>()
... | mit | C# |
e6fea23a34395c4e449cd9e1cf61ec77540e4f9a | Update AppCenterExceptionTelemeter.cs | tiksn/TIKSN-Framework | TIKSN.Framework.SharedMobile/Analytics/Telemetry/AppCenterExceptionTelemeter.cs | TIKSN.Framework.SharedMobile/Analytics/Telemetry/AppCenterExceptionTelemeter.cs | using System;
using System.Threading.Tasks;
using Microsoft.AppCenter;
namespace TIKSN.Analytics.Telemetry
{
public class AppCenterExceptionTelemeter : IExceptionTelemeter
{
public Task TrackExceptionAsync(Exception exception)
{
return TrackExceptionAsync(exception, TelemetrySeverit... | using System;
using System.Threading.Tasks;
using Microsoft.AppCenter;
namespace TIKSN.Analytics.Telemetry
{
public class AppCenterExceptionTelemeter : IExceptionTelemeter
{
public Task TrackException(Exception exception)
{
return TrackException(exception, TelemetrySeverityLevel.Inf... | mit | C# |
aecc135d9c7afb9914b74c4c83eee7a8afa99625 | Extend test for Jobs list | LordMike/TMDbLib | TMDbLibTests/ClientJobTests.cs | TMDbLibTests/ClientJobTests.cs | using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TMDbLib.Objects.General;
namespace TMDbLibTests
{
[TestClass]
public class ClientJobTests
{
private TestConfig _config;
/// <summary>
/// Run once, on every test
... | using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TMDbLib.Objects.General;
namespace TMDbLibTests
{
[TestClass]
public class ClientJobTests
{
private TestConfig _config;
/// <summary>
/// Run once, on every test
... | mit | C# |
59b24078ea10ba5d84f12fae6e4cc804b2ad8d90 | fix MoneyUtils | linfx/LinFx,linfx/LinFx | src/LinFx/Utils/MoneyUtils.cs | src/LinFx/Utils/MoneyUtils.cs | using System;
namespace LinFx.Utils
{
public static class MoneyUtils
{
/// <summary>
/// 元转分
/// </summary>
/// <param name="yuan"></param>
/// <returns></returns>
public static string ToFen(decimal yuan)
{
int result = (int)(yuan * 100);
... | using System;
namespace LinFx.Utils
{
public static class MoneyUtils
{
public static string ToFen(decimal yuan)
{
int result = (int)(yuan * 100);
return result.ToString();
}
/// <summary>
/// 保留两位小数
/// </summary>
/// <param name... | mit | C# |
afd50052fc96cb8b1f1f241363d63e4f4b2302b3 | Update ImageKey.cs | Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/Renderer/ImageKey.cs | src/Core2D/Renderer/ImageKey.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
namespace Core2D.Renderer
{
/// <summary>
/// Image key.
/// </summary>
public struct ImageKey
{
/// <summary>
/... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Core2D.Renderer
{
/// <summary>
/// Image key.
/// </summary>
public struct ImageKey
{
/// <summary>
/// Gets or set... | mit | C# |
d9792e28f8b4e572d079448b4133506864e740e6 | implement MilkHttpClient.Post | masaru-b-cl/MilkSharp | src/MilkSharp/MilkHttpClient.cs | src/MilkSharp/MilkHttpClient.cs | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
namespace MilkSharp
{
public class MilkHttpClient : IMilkHttpClient
{
public async Task<MilkHttpResponseMessage> Post(string url, IDictionary<string, string> parameters)
{
... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace MilkSharp
{
public class MilkHttpClient : IMilkHttpClient
{
public async Task<MilkHttpResponseMessage> Post(string url, IDictionary<string, string> parameters)
{
return await Task.From... | mit | C# |
0f05588ab183d4627a0d7213d7bea40a519a7f23 | Revert "Update comment to reflect possible config.json path" | Workshop2/noobot,noobot/noobot | src/Noobot.Runner/NoobotHost.cs | src/Noobot.Runner/NoobotHost.cs | using System;
using Common.Logging;
using Noobot.Core;
using Noobot.Core.Configuration;
using Noobot.Core.DependencyResolution;
namespace Noobot.Runner
{
/// <summary>
/// NoobotHost is required due to TopShelf.
/// </summary>
public class NoobotHost
{
private readonly IConfigReader _confi... | using System;
using Common.Logging;
using Noobot.Core;
using Noobot.Core.Configuration;
using Noobot.Core.DependencyResolution;
namespace Noobot.Runner
{
/// <summary>
/// NoobotHost is required due to TopShelf.
/// </summary>
public class NoobotHost
{
private readonly IConfigReader _confi... | mit | C# |
60743d1693d17686f9171d148faacaf0384a60e3 | Fix ConfigDumpParser format check. | nitrocaster/ListPlayers | src/Parsers/ConfigDumpParser.cs | src/Parsers/ConfigDumpParser.cs | /*
====================================================================================
This file is part of ListPlayers, the open-source S.T.A.L.K.E.R. multiplayer
statistics organizing tool for game server administrators.
Copyright (C) 2013 Pavel Kovalenko.
You should have received a copy of the MIT License along w... | /*
====================================================================================
This file is part of ListPlayers, the open-source S.T.A.L.K.E.R. multiplayer
statistics organizing tool for game server administrators.
Copyright (C) 2013 Pavel Kovalenko.
You should have received a copy of the MIT License along w... | mit | C# |
1f54e9bb01196f1ed1648c4416cdedbaaecdb638 | Update program.cs | Jolka/indywidualneEla | program.cs | program.cs | int a=2;
int b=3;
| int a=2;
| mit | C# |
f04f2cb4a4cd337b288eae268272081b8d1fb537 | Fix test not waiting for async stop | EVAST9919/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework | osu.Framework.Tests/Visual/Audio/TestSceneLoopingSample.cs | osu.Framework.Tests/Visual/Audio/TestSceneLoopingSample.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Audio.Sample;
using osu.Framework.Audio.Track;
namespace osu.Framework.Tests.Visual.Audio
{
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Audio.Sample;
using osu.Framework.Audio.Track;
namespace osu.Framework.Tests.Visual.Audio
{
... | mit | C# |
e38055c03cd2e16f1ceb73ea828380f4f6c7cb91 | Update Program.cs | cemdervis/SharpConfig | Sample/Program.cs | Sample/Program.cs | using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Sample
{
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault( false );
Applicati... | using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Sample
{
static class Program
{
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisua... | mit | C# |
8262b77a3678d030e201f01cc48422ffe3e08e22 | Fix indentation global.asax | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner | Zk/Global.asax.cs | Zk/Global.asax.cs | using System;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Security;
using System.Web.Routing;
using WebMatrix.WebData;
using Zk.Models;
namespace Zk
{
public class MvcApplication : HttpApplication
{
public static void RegisterRoutes... | using System;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Security;
using System.Web.Routing;
using WebMatrix.WebData;
using Zk.Models;
namespace Zk
{
public class MvcApplication : HttpApplication
{
public static void RegisterRoutes(RouteCollec... | mit | C# |
44ef098b55b14c01bd0b13669a332522df7ed5ca | use correct casing in edit link | rtpHarry/OrchardDoc,dcinzona/OrchardDoc,dcinzona/OrchardDoc,MetSystem/OrchardDoc,SzymonSel/OrchardDoc,rtpHarry/OrchardDoc,wharri220/OrchardDoc,dcinzona/OrchardDoc,OrchardCMS/OrchardDoc,wharri220/OrchardDoc,OrchardCMS/OrchardDoc,SzymonSel/OrchardDoc,abhishekluv/OrchardDoc,armanforghani/OrchardDoc,armanforghani/OrchardDo... | _PageStart.cshtml | _PageStart.cshtml | @{
var path = Request.PhysicalPath.Trim('\\');
if (path == Request.PhysicalApplicationPath.Trim('\\')) {
Page.DocumentTitle = "Orchard Documentation";
Page.Title = Page.DocumentTitle;
Page.EditUrl = "https://github.com/OrchardCMS/OrchardDoc/blob/master/Index.markdown";
}
else {
... | @{
var path = Request.PhysicalPath.Trim('\\');
if (path == Request.PhysicalApplicationPath.Trim('\\')) {
Page.DocumentTitle = "Orchard Documentation";
Page.Title = Page.DocumentTitle;
Page.EditUrl = "https://github.com/OrchardCMS/OrchardDoc/blob/master/Index.markdown";
}
else {
... | bsd-3-clause | C# |
fcbb114467cdbdad0b90f1345a19b373d891dcb0 | Fix `OverlayContainer` no longer blocking mouse move events | ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework | osu.Framework/Graphics/Containers/OverlayContainer.cs | osu.Framework/Graphics/Containers/OverlayContainer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System.Collections.Generic;
using osu.Framework.Input;
using osu.Framework.Input.Events;
namespace osu.Framework.Graphics.Containers
{
/// ... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System.Collections.Generic;
using osu.Framework.Input;
using osu.Framework.Input.Events;
namespace osu.Framework.Graphics.Containers
{
/// ... | mit | C# |
5ae9b4c79152e0e9489cf5e5c3a8e4267a6a92c4 | Make CatchStacker testcase more useful | smoogipoo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,Frontear/osuKyzer,johnneijzen/osu,peppy/osu,smoogipoo/osu,naoey/osu,naoey/osu,peppy/osu-new,smoogipoo/osu,2yangk23/osu,ppy/osu,ZLima12/osu,UselessToucan/osu,DrabWeb/osu,Nabile-Rahmani/osu,johnneijzen/osu,2yangk23/osu,DrabWeb/osu,EVAST9919/osu,naoey/osu,smoogipooo/osu,Useles... | osu.Game.Rulesets.Catch/Tests/TestCaseCatchStacker.cs | osu.Game.Rulesets.Catch/Tests/TestCaseCatchStacker.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 NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Catch.Objects;
namespace osu.Game.Rulesets.Catch.Tests
{
[TestFixture]
[Ignor... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using NUnit.Framework;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Catch.Objects;
namespace osu.Game.Rulesets.Catch.Tests
{
[TestFixture]
[Ignor... | mit | C# |
361ef755dba6cb7bdb45996f1e5807af05002d07 | Add equipped weapons info to Weapons console | iridinite/shiftdrive | Client/ConsoleWeapons.cs | Client/ConsoleWeapons.cs | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace ShiftDrive {
/// <summary>
/// The interface for the Weapons console.
/// </summary>
internal sealed class ConsoleWeapons : Console {
public override... | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace ShiftDrive {
internal sealed class ConsoleWeapons : Console {
public override void Draw(GraphicsDevice graphicsDevice, SpriteBatch spriteBatch) {
gra... | bsd-3-clause | C# |
c50380ae715ab516e1de0c1a7304fd7a75fde638 | Remove the nuget environment variable. | shibayan/kudu,sitereactor/kudu,duncansmart/kudu,juvchan/kudu,WeAreMammoth/kudu-obsolete,chrisrpatterson/kudu,WeAreMammoth/kudu-obsolete,puneet-gupta/kudu,shrimpy/kudu,kali786516/kudu,shibayan/kudu,juoni/kudu,badescuga/kudu,duncansmart/kudu,chrisrpatterson/kudu,badescuga/kudu,sitereactor/kudu,barnyp/kudu,bbauya/kudu,Eri... | Kudu.Core/Deployment/MsBuildSiteBuilder.cs | Kudu.Core/Deployment/MsBuildSiteBuilder.cs | using System;
using System.Linq;
using System.Threading.Tasks;
using Kudu.Contracts.Tracing;
using Kudu.Core.Infrastructure;
namespace Kudu.Core.Deployment
{
public abstract class MsBuildSiteBuilder : ISiteBuilder
{
private const string NuGetCachePathKey = "NuGetCachePath";
private readonly E... | using System;
using System.Linq;
using System.Threading.Tasks;
using Kudu.Contracts.Tracing;
using Kudu.Core.Infrastructure;
namespace Kudu.Core.Deployment
{
public abstract class MsBuildSiteBuilder : ISiteBuilder
{
private const string NuGetCachePathKey = "NuGetCachePath";
private readonly E... | apache-2.0 | C# |
8a6d72bc07562fe9babf800de5de89efbec63dae | Fix null ref | manesiotise/Opserver,GABeech/Opserver,manesiotise/Opserver,opserver/Opserver,GABeech/Opserver,opserver/Opserver,manesiotise/Opserver,mqbk/Opserver,mqbk/Opserver,opserver/Opserver | Opserver/Views/Dashboard/Node.Stats.cshtml | Opserver/Views/Dashboard/Node.Stats.cshtml | @model StackExchange.Opserver.Data.Dashboard.Node
<div class="row small">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
CPU Utilization
</div>
<div class="panel-body">
<div class="history-graph" id="c... | @model StackExchange.Opserver.Data.Dashboard.Node
<div class="row small">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
CPU Utilization
</div>
<div class="panel-body">
<div class="history-graph" id="c... | mit | C# |
2d3cba6c7c6ad799086c24d37a71ec3262706769 | Set WebResourceName comparison to case sensitive | aluxnimm/outlookcaldavsynchronizer | CalDavSynchronizer/DataAccess/WebResourceName.cs | CalDavSynchronizer/DataAccess/WebResourceName.cs | // This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)
// Copyright (c) 2015 Gerhard Zehetbauer
// Copyright (c) 2015 Alexander Nimmervoll
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License a... | // This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)
// Copyright (c) 2015 Gerhard Zehetbauer
// Copyright (c) 2015 Alexander Nimmervoll
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License a... | agpl-3.0 | C# |
5f7dc9b3f81f98a1c43e07132111e42263399acb | Make SingleJointInverseKinematicsSolver use the new Swing class | virtuallynaked/virtually-naked,virtuallynaked/virtually-naked | Viewer/src/actor/animation/inversekinematics/SingleJointInverseKinematicsSolver.cs | Viewer/src/actor/animation/inversekinematics/SingleJointInverseKinematicsSolver.cs | using SharpDX;
public class SingleJointInverseKinematicsSolver : IInverseKinematicsSolver {
private const int TwistAxis = Swing.XAxis;
private readonly string boneName;
public SingleJointInverseKinematicsSolver(string boneName) {
this.boneName = boneName;
}
public void Solve(RigidBoneSystem boneSystem, In... | using SharpDX;
public class SingleJointInverseKinematicsSolver : IInverseKinematicsSolver {
private readonly string boneName;
public SingleJointInverseKinematicsSolver(string boneName) {
this.boneName = boneName;
}
public void Solve(RigidBoneSystem boneSystem, InverseKinematicsProblem problem, RigidBoneSyst... | mit | C# |
9b922ff78f55184991b215dbe79a1807ecd2e9c8 | Make constructor as public | JKennedy24/Xamarin.Forms.GoogleMaps,amay077/Xamarin.Forms.GoogleMaps,JKennedy24/Xamarin.Forms.GoogleMaps | Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps/Helpers/CameraUpdateConverter.cs | Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps/Helpers/CameraUpdateConverter.cs | using System;
using System.Collections.Generic;
namespace Xamarin.Forms.GoogleMaps.Helpers
{
public sealed class CameraUpdateConverter : TypeConverter
{
public override bool CanConvertFrom(Type sourceType)
{
return sourceType == typeof(CameraUpdate);
}
public over... | using System;
using System.Collections.Generic;
namespace Xamarin.Forms.GoogleMaps.Helpers
{
public sealed class CameraUpdateConverter : TypeConverter
{
internal CameraUpdateConverter()
{
}
public override bool CanConvertFrom(Type sourceType)
{
return sour... | mit | C# |
e7bd98d8a4ed84ad142ceb8a53c9100f34e0b122 | Fix AssemblyInfo | imasm/PrismSamples | DemoEventAgregator/TestApp/Properties/AssemblyInfo.cs | DemoEventAgregator/TestApp/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// La información general de un ensamblado se controla mediante el siguiente
// conjunto de atributos. Cambie estos valores de atributo para modificar la información
// asociada con un ensamblado.
[assembly: AssemblyTitle("TestApp")]
[assembly: AssemblyD... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// La información general de un ensamblado se controla mediante el siguiente
// conjunto de atributos. Cambie estos valores de atributo para modificar la información
// asociada con un ensamblado.
[assembly: Assembl... | apache-2.0 | C# |
7f5328663200954897ac3c50815ccf3ce960b894 | disable new command scheduler tests | askheaves/Its.Cqrs,commonsensesoftware/Its.Cqrs,askheaves/Its.Cqrs,commonsensesoftware/Its.Cqrs,commonsensesoftware/Its.Cqrs,askheaves/Its.Cqrs | Domain.Sql.Tests/SqlCommandSchedulerTests_New.cs | Domain.Sql.Tests/SqlCommandSchedulerTests_New.cs | using System;
using System.Threading.Tasks;
using Microsoft.Its.Domain.Sql.CommandScheduler;
using NUnit.Framework;
using Sample.Domain.Ordering;
namespace Microsoft.Its.Domain.Sql.Tests
{
[Ignore("Not ready")]
[TestFixture]
public class SqlCommandSchedulerTests_New : SqlCommandSchedulerTests
... | using System;
using System.Threading.Tasks;
using Microsoft.Its.Domain.Sql.CommandScheduler;
using NUnit.Framework;
using Sample.Domain.Ordering;
namespace Microsoft.Its.Domain.Sql.Tests
{
[TestFixture]
public class SqlCommandSchedulerTests_New : SqlCommandSchedulerTests
{
protected over... | mit | C# |
10a66c812f0dcbf890fbd76730771298fa9ed45c | reformat all after .editorconfig | mariotoffia/FluentDocker,mariotoffia/FluentDocker,mariotoffia/FluentDocker,mariotoffia/FluentDocker | Ductus.FluentDocker/Executors/ProcessExecutor.cs | Ductus.FluentDocker/Executors/ProcessExecutor.cs | using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using Ductus.FluentDocker.Common;
using Ductus.FluentDocker.Extensions;
using Ductus.FluentDocker.Model.Containers;
namespace Ductus.FluentDocker.Executors
{
public sealed class ProcessExecutor<T, TE> where T : IProcessResponseParser<TE>,... | using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using Ductus.FluentDocker.Common;
using Ductus.FluentDocker.Extensions;
using Ductus.FluentDocker.Model.Containers;
namespace Ductus.FluentDocker.Executors
{
public sealed class ProcessExecutor<T, TE> where T : IProcessResponseParser<TE>,... | apache-2.0 | C# |
4f9f82d660650c502d4806718c0b94df791a27cb | Fix for issue#1 - random direction selector was throwing an exception | vnads/Fight-Fleet,vnads/Fight-Fleet,vnads/Fight-Fleet | FightFleetApi/FightFleet/RandomBoardGenerator.cs | FightFleetApi/FightFleet/RandomBoardGenerator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FightFleet
{
/// <summary>
/// Randomly places 5 ships to a game board.
/// </summary>
public class RandomlyGenerateBoard : GenerateBoard
{
public override void Generate() {
// Place... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FightFleet
{
/// <summary>
/// Randomly places 5 ships to a game board.
/// </summary>
public class RandomlyGenerateBoard : GenerateBoard
{
public override void Generate() {
// Place... | mit | C# |
a742bf87c455084bc17fa4a2dbe90db11d4a6ef7 | add comment | martinlindhe/Punku | punku/Extensions/ByteArrayExtensions.cs | punku/Extensions/ByteArrayExtensions.cs | using System;
using System.Text;
public static class ByteArrayExtensions
{
/**
* Returns a hex string representation of the content
*/
public static string ToHexString (this byte[] bytes)
{
byte b;
var res = new StringBuilder ();
for (int bx = 0; bx < bytes.Length; bx++) {
b = (byte)(bytes [bx] >> ... | using System;
using System.Text;
public static class ByteArrayExtensions
{
/**
* Returns a hex string representation of the content
*/
public static string ToHexString (this byte[] bytes)
{
byte b;
var res = new StringBuilder ();
for (int bx = 0; bx < bytes.Length; bx++) {
b = (byte)(bytes [bx] >> ... | mit | C# |
4c8cc28d58516e8613a02d1c0ee39c056dd2b55e | Fix for redirect port | ppittle/pMixins,ppittle/pMixins,ppittle/pMixins | pMixins.Mvc/Controllers/HomeController.cs | pMixins.Mvc/Controllers/HomeController.cs | //-----------------------------------------------------------------------
// <copyright file="HomeController.cs" company="Copacetic Software">
// Copyright (c) Copacetic Software.
// <author>Philip Pittle</author>
// <date>Friday, May 2, 2014 2:50:42 PM</date>
// Licensed under the Apache License, Version 2.0,
/... | //-----------------------------------------------------------------------
// <copyright file="HomeController.cs" company="Copacetic Software">
// Copyright (c) Copacetic Software.
// <author>Philip Pittle</author>
// <date>Friday, May 2, 2014 2:50:42 PM</date>
// Licensed under the Apache License, Version 2.0,
/... | apache-2.0 | C# |
ff9dd7f8add303e2f8aff32acd7caaef026b3447 | build fx | andreyleskov/GridDomain,linkelf/GridDomain | GridDomain.Logging/DefaultLoggerConfiguration.cs | GridDomain.Logging/DefaultLoggerConfiguration.cs | using System.Configuration;
using Serilog;
namespace GridDomain.Logging
{
public class DefaultLoggerConfiguration : LoggerConfiguration
{
public DefaultLoggerConfiguration()
{
var filePath = ConfigurationManager.AppSettings["logFilePath"] ?? @"C:\Logs";
var elasticEndpoi... | using System.Configuration;
using Serilog;
namespace GridDomain.Logging
{
public class DefaultLoggerConfiguration : LoggerConfiguration
{
public DefaultLoggerConfiguration()
{
var filePath = ConfigurationManager.AppSettings["logFilePath"] ?? @"C:\Logs";
var elasticEndpoi... | apache-2.0 | C# |
32deee84f4372a1e5a64ba8a96d5a98c3d79c1fa | implement (FindLast/FindAll)In_Tests | miraimann/Knuth-Morris-Pratt | KnuthMorrisPratt/KnuthMorrisPratt.Tests/Tests.cs | KnuthMorrisPratt/KnuthMorrisPratt.Tests/Tests.cs | using NUnit.Framework;
using StringSearch;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KnuthMorrisPratt.Tests
{
[TestFixture]
public class Tests
{
private readonly IFinderFactory<char> _find... | using NUnit.Framework;
using StringSearch;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KnuthMorrisPratt.Tests
{
[TestFixture]
public class Tests
{
private readonly IFinderFactory<char> _find... | mit | C# |
151612eb1763a624c87f8c7b1b2834dc37988d42 | add argument:case (fix compilation errors) | miraimann/Knuth-Morris-Pratt | KnuthMorrisPratt/KnuthMorrisPratt.Tests/Tests.cs | KnuthMorrisPratt/KnuthMorrisPratt.Tests/Tests.cs | using NUnit.Framework;
using StringSearch;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KnuthMorrisPratt.Tests
{
[TestFixture]
public class Tests
{
private readonly IFinderFactory<char> _find... | using NUnit.Framework;
using StringSearch;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KnuthMorrisPratt.Tests
{
[TestFixture]
public class Tests
{
private readonly IFinderFactory<char> _find... | mit | C# |
be31644585516cf560c63057a48652c44d5a5b1d | Fix AtomicDateTime constructor | Fluzzarn/LiveSplit,Glurmo/LiveSplit,Dalet/LiveSplit,kugelrund/LiveSplit,Glurmo/LiveSplit,chloe747/LiveSplit,Fluzzarn/LiveSplit,kugelrund/LiveSplit,kugelrund/LiveSplit,Dalet/LiveSplit,ROMaster2/LiveSplit,ROMaster2/LiveSplit,chloe747/LiveSplit,LiveSplit/LiveSplit,chloe747/LiveSplit,ROMaster2/LiveSplit,Dalet/LiveSplit,Glu... | LiveSplit/LiveSplit.Core/Model/AtomicDateTime.cs | LiveSplit/LiveSplit.Core/Model/AtomicDateTime.cs | using System;
namespace LiveSplit.Model
{
public struct AtomicDateTime
{
public DateTime Time { get; private set; }
public bool SyncedWithAtomicClock { get; private set; }
public AtomicDateTime(DateTime time, bool synced) : this()
{
Time = time;
SyncedW... | using System;
namespace LiveSplit.Model
{
public struct AtomicDateTime
{
public DateTime Time { get; private set; }
public bool SyncedWithAtomicClock { get; private set; }
public AtomicDateTime(DateTime time, bool synced)
{
Time = time;
SyncedWithAtomic... | mit | C# |
a961f5379eb8f43de1fdbc1055a9af6c0ae976d6 | Remove shared link | praeclarum/Ooui,praeclarum/Ooui,praeclarum/Ooui | PlatformSamples/AspNetCoreMvc/Views/Home/Index.cshtml | PlatformSamples/AspNetCoreMvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Ooui";
var formsSamples = SamplesController.Samples.Where(x => x.Title.StartsWith("Xamarin.Forms "));
var otherSamples = SamplesController.Samples.Where(x => !x.Title.StartsWith("Xamarin.Forms "));
}
<div class="row" style="margin-top:4em;">
<div class="col-md-2">
... | @{
ViewData["Title"] = "Ooui";
var formsSamples = SamplesController.Samples.Where(x => x.Title.StartsWith("Xamarin.Forms "));
var otherSamples = SamplesController.Samples.Where(x => !x.Title.StartsWith("Xamarin.Forms "));
}
<div class="row" style="margin-top:4em;">
<div class="col-md-2">
... | mit | C# |
d88e856f1e36514f5c0cb59b62c559a75c94007e | improve assembly scanning | loresoft/AutoData,loresoft/DataGenerator | Source/DataGenerator/Extensions/AssemblyExtensions.cs | Source/DataGenerator/Extensions/AssemblyExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace DataGenerator.Extensions
{
/// <summary>
/// <see cref="Assembly"/> extension methods
/// </summary>
public static class AssemblyExtensions
{
/// <summary>
/// Gets the types assign... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace DataGenerator.Extensions
{
/// <summary>
/// <see cref="Assembly"/> extension methods
/// </summary>
public static class AssemblyExtensions
{
/// <summary>
/// Gets the types assign... | apache-2.0 | C# |
16726f32a2d14b6c991e60e2983aa941bdc8a627 | Build and publish Rock.Core.XSerializer nuget package | RockFramework/Rock.Core | Rock.Core.XSerializer/Properties/AssemblyInfo.cs | Rock.Core.XSerializer/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ro... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ro... | mit | C# |
10cda40e9b6647b59387669bcfba4cc2c5d43657 | make tests pass | Pondidum/NScientist,Pondidum/NScientist | NScientist/Experiment.cs | NScientist/Experiment.cs | using System;
namespace NScientist
{
public class Experiment
{
public static ExperimentConfig<object> On(Action action)
{
return new ExperimentConfig<object>(() =>
{
action();
return null;
});
}
public static ExperimentConfig<T> On<T>(Func<T> action)
{
return new ExperimentConfig<T>(a... | using System;
namespace NScientist
{
public class Experiment
{
public static ExperimentConfig<object> On(Action action)
{
return new ExperimentConfig<object>();
}
public static ExperimentConfig<T> On<T>(Func<T> action)
{
return new ExperimentConfig<T>();
}
}
public class ExperimentConfig<TResu... | lgpl-2.1 | C# |
2535ec35f22e5f7305cc261bbbe52f62b9e663ab | Update sortedBitSearch.cs | michaeljwebb/Algorithm-Practice | Other/sortedBitSearch.cs | Other/sortedBitSearch.cs | //Given an array of sorted 0s and 1s, count how many 1st exist
//Space complexity: O(1)
//Time complexity: O(log(N)) where N is the number of digits
//Example: [0,0,0,0,0,1,1,1] -> 3
using System;
public class Program
{
public static void Main()
{
int[] arr = { 0, 0, 0, 1, 1, 1, 1 };
int n = arr.Length;
Consol... | //Given an array of sorted 0s and 1s, count how many 1st exist
//Space complexity: O(1)
//Time complexity: O(log(N)) where N is the number of digits
//Example: [0,0,0,0,0,1,1,1] -> 3
using System;
public class Program
{
public static void Main()
{
int[] arr = { 0, 0, 0, 1, 1, 1, 1 };
int n = arr.Length;
... | mit | C# |
860df035bc7f39b4f043cddf8aa4eaf1cd607641 | Fix header behavior for the fixed length types | forcewake/FlatFile | src/FlatFile.FixedLength.Attributes/Infrastructure/FixedLayoutDescriptorProvider.cs | src/FlatFile.FixedLength.Attributes/Infrastructure/FixedLayoutDescriptorProvider.cs | namespace FlatFile.FixedLength.Attributes.Infrastructure
{
using System;
using System.Linq;
using FlatFile.Core;
using FlatFile.Core.Attributes.Extensions;
using FlatFile.Core.Attributes.Infrastructure;
using FlatFile.Core.Base;
public class FixedLayoutDescriptorProvider : ILayoutDescriptor... | namespace FlatFile.FixedLength.Attributes.Infrastructure
{
using System;
using System.Linq;
using FlatFile.Core;
using FlatFile.Core.Attributes.Extensions;
using FlatFile.Core.Attributes.Infrastructure;
using FlatFile.Core.Base;
public class FixedLayoutDescriptorProvider : ILayoutDescriptor... | mit | C# |
e3d5f8d39b1d0da877d24bd1c41f675ede719e70 | Clean up type checking code | stratisproject/StratisBitcoinFullNode,mikedennis/StratisBitcoinFullNode,quantumagi/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,Aprogiena/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,Neurosploit/StratisBitcoinFullNode,bokobza/StratisBitcoinFullNode,mikedennis/StratisBitcoinFullNode,mikedennis/Stra... | Stratis.Bitcoin/Builder/Feature/FeaturesExtensions.cs | Stratis.Bitcoin/Builder/Feature/FeaturesExtensions.cs | using System.Collections.Generic;
using System.Linq;
namespace Stratis.Bitcoin.Builder.Feature
{
/// <summary>
/// Extensions to features collection.
/// </summary>
public static class FeaturesExtensions
{
/// <summary>
/// Ensures a dependency feature type is present in the featur... | using System.Collections.Generic;
using System.Linq;
namespace Stratis.Bitcoin.Builder.Feature
{
/// <summary>
/// Extensions to features collection.
/// </summary>
public static class FeaturesExtensions
{
/// <summary>
/// Ensures a dependency feature type is present in the featur... | mit | C# |
4280ede14393bc708932c78681eb4a469fe9d74a | Improve Beam-weapon toString to include rating value | skeolan/FireAndManeuver | GameModel/entities/unitSystems/Weapons/BeamBatterySystem.cs | GameModel/entities/unitSystems/Weapons/BeamBatterySystem.cs | // <copyright file="BeamBatterySystem.cs" company="Patrick Maughan">
// Copyright (c) Patrick Maughan. All rights reserved.
// </copyright>
namespace FireAndManeuver.GameModel
{
using System.Xml.Serialization;
public class BeamBatterySystem : ArcWeaponSystem
{
[XmlIgnore]
privat... | // <copyright file="BeamBatterySystem.cs" company="Patrick Maughan">
// Copyright (c) Patrick Maughan. All rights reserved.
// </copyright>
namespace FireAndManeuver.GameModel
{
using System.Xml.Serialization;
public class BeamBatterySystem : ArcWeaponSystem
{
[XmlIgnore]
privat... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.