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 |
|---|---|---|---|---|---|---|---|---|
656fb955969774f28c3086a4aced7450aceacf40 | Add TouchingWall condition to BodyCollider. | jguarShark/Unity2D-Components,cmilr/Unity2D-Components | Actor/BodyCollider.cs | Actor/BodyCollider.cs | using UnityEngine;
using System.Collections;
using Matcha.Lib;
[RequireComponent(typeof(BoxCollider2D))]
public class BodyCollider : CacheBehaviour
{
private bool alreadyCollided;
private PickupEntity pickupEntity;
private EntityBehaviour entityBehaviour;
// private CharacterEntity charEntity;
void Start()
... | using UnityEngine;
using System.Collections;
using Matcha.Lib;
[RequireComponent(typeof(BoxCollider2D))]
public class BodyCollider : CacheBehaviour
{
private bool alreadyCollided;
private PickupEntity pickupEntity;
private EntityBehaviour entityBehaviour;
// private CharacterEntity charEntity;
void Start()
... | mit | C# |
79826b0632960774e9d580fa4d6fe318b94e12cc | Update AdUnitSelectorOptions.cs | tiksn/TIKSN-Framework | TIKSN.Core/Advertising/AdUnitSelectorOptions.cs | TIKSN.Core/Advertising/AdUnitSelectorOptions.cs | namespace TIKSN.Advertising
{
public class AdUnitSelectorOptions
{
public AdUnitSelectorOptions()
{
IsDebuggerSensitive = true;
IsDebug = false;
}
public bool IsDebuggerSensitive { get; set; }
public bool IsDebug { get; set; }
}
} | namespace TIKSN.Advertising
{
public class AdUnitSelectorOptions
{
public AdUnitSelectorOptions()
{
IsDebuggerSensitive = true;
IsDebug = false;
}
public bool IsDebuggerSensitive { get; set; }
public bool IsDebug { get; set; }
}
} | mit | C# |
f0bb424d5c93fc0844bf04a0676675d941976f46 | Fix condition | bartlomiejwolk/OnCollisionActivate | GameObjectActivate.cs | GameObjectActivate.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace GameObjectActivator {
/// Enable child game object on collision with
/// other game object.
public class GameObjectActivate : MonoBehaviour {
private List<ObjectToEnable> objsToEnable = new List<ObjectToEnab... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace GameObjectActivator {
/// Enable child game object on collision with
/// other game object.
public class GameObjectActivate : MonoBehaviour {
private List<ObjectToEnable> objsToEnable = new List<ObjectToEnab... | mit | C# |
45be368da834e07905777adb87343cb9504adbcc | Update SumOfSelfPowers.cs | DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges,DuckBoss/Programming-Challenges | Sum_Of_Self_Powers/SumOfSelfPowers.cs | Sum_Of_Self_Powers/SumOfSelfPowers.cs | using System;
namespace SumOfSelfPowers
{
class MainClass
{
public static void Main(string[] args)
{
if (args.Length != 1)
{
Console.WriteLine("This program requires 1 integer input");
Environment.Exit(0);
}
long totalSum = 0;
int inputtedNum = Convert.ToInt32(args[0]);
for (int i = 1;... | using System;
namespace SumOfSelfPowers
{
class MainClass
{
public static void Main(string[] args)
{
if (args.Length < 1)
{
Console.WriteLine("This program requires 1 integer input");
Environment.Exit(0);
}
long totalSum = 0;
int inputtedNum = Convert.ToInt32(args[0]);
for (int i = 1; ... | unlicense | C# |
580b0a9b9fc15b026b02dfbc029c91535fbc838e | Allow negative GAF frame offsets | MHeasell/TAUtil,MHeasell/TAUtil | TAUtil/Gaf/Structures/GafFrameData.cs | TAUtil/Gaf/Structures/GafFrameData.cs | namespace TAUtil.Gaf.Structures
{
using System.IO;
internal struct GafFrameData
{
public ushort Width;
public ushort Height;
public short XPos;
public short YPos;
public byte TransparencyIndex;
public bool Compressed;
public ushort FrameP... | namespace TAUtil.Gaf.Structures
{
using System.IO;
internal struct GafFrameData
{
public ushort Width;
public ushort Height;
public ushort XPos;
public ushort YPos;
public byte TransparencyIndex;
public bool Compressed;
public ushort Fram... | mit | C# |
7d57e1a2691b0cb23184265727ac0dbffc50a77b | bump version | Fody/Validar | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("Validar")]
[assembly: AssemblyProduct("Validar")]
[assembly: AssemblyVersion("1.4.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]
| using System.Reflection;
[assembly: AssemblyTitle("Validar")]
[assembly: AssemblyProduct("Validar")]
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
| mit | C# |
67e1a83ae843830a75fad1566ca968fa66ef514a | Create completed pomodoro in db async | YetAnotherPomodoroApp/YAPA-2 | YAPA.Shared/Common/DashboardPlugin.cs | YAPA.Shared/Common/DashboardPlugin.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using YAPA.Shared.Contracts;
namespace YAPA.Shared.Common
{
public class Dashboard : IPlugin
{
private readonly IPomodoroRepository _itemRepository;
public Dashboard(IPomodoroEngine engine, IPomo... | using System;
using System.Collections.Generic;
using System.Linq;
using YAPA.Shared.Contracts;
namespace YAPA.Shared.Common
{
public class Dashboard : IPlugin
{
private readonly IPomodoroRepository _itemRepository;
public Dashboard(IPomodoroEngine engine, IPomodoroRepository itemRepository)... | mit | C# |
b635c564061eb1deee4eb0bb20b67ad9adc9fbd8 | Fix bitmap serialization with indexed format bitmaps | MHeasell/TAUtil,MHeasell/TAUtil | TAUtil.Gdi/Bitmap/BitmapSerializer.cs | TAUtil.Gdi/Bitmap/BitmapSerializer.cs | namespace TAUtil.Gdi.Bitmap
{
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using TAUtil.Gdi.Palette;
/// <summary>
/// Serializes a 32-bit Bitmap instance into raw 8-bit indexed color data.
/// The mapping from color to index is done according to the given... | namespace TAUtil.Gdi.Bitmap
{
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using TAUtil.Gdi.Palette;
/// <summary>
/// Serializes a 32-bit Bitmap instance into raw 8-bit indexed color data.
/// The mapping from color to index is done according to the given... | mit | C# |
4be2577c802c54093f22fa6b7d422a0a53b0f56f | Increment minor -> 0.11.0 | awseward/Bugsnag.NET,awseward/Bugsnag.NET | SharedAssemblyInfo.cs | SharedAssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.11.0.0")]
[assembly: AssemblyFileVersion("0.11.0.0")]
[assembly: AssemblyInformationalVersion("0.11.0")]
| using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.10.0.0")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyInformationalVersion("0.10.0")]
| mit | C# |
0041f1bdf9c8d64fae0fb5512351f5be4fec757c | update version | DevExpress/AjaxControlToolkit,DevExpress/AjaxControlToolkit,DevExpress/AjaxControlToolkit | SharedAssemblyInfo.cs | SharedAssemblyInfo.cs | using System.Reflection;
using System.Resources;
// WARNING this file is shared accross multiple projects
[assembly: AssemblyProduct("ASP.NET AJAX Control Toolkit")]
[assembly: AssemblyCopyright("Copyright © CodePlex Foundation 2012-2017")]
[assembly: AssemblyCompany("CodePlex Foundation")]
[assembly: AssemblyVersi... | using System.Reflection;
using System.Resources;
// WARNING this file is shared accross multiple projects
[assembly: AssemblyProduct("ASP.NET AJAX Control Toolkit")]
[assembly: AssemblyCopyright("Copyright © CodePlex Foundation 2012-2017")]
[assembly: AssemblyCompany("CodePlex Foundation")]
[assembly: AssemblyVersi... | bsd-3-clause | C# |
cd8b61486f5e0851fdeeee7b7508e3a8cc79c69e | fix build | jhgbrt/joincs | JoinCSharp/Program.cs | JoinCSharp/Program.cs | using System;
using System.IO;
using System.Linq;
namespace JoinCSharp
{
class Program
{
static int Main(string[] args)
{
if (args.Length < 1 || args.Length > 2)
{
Console.WriteLine("usage: joincs inputfolder [outputfile]");
return 1;
... | using System;
using System.IO;
using System.Linq;
namespace JoinCSharp
{
class Program
{
static int Main(string[] args)
{
if (args.Length < 1 || args.Length > 2)
{
Console.WriteLine("usage: joincs inputfolder [outputfile]");
return 1;
... | mit | C# |
18251debc7562dcb2890d2b0bfe7a418c194951f | Increment patch -> 0.8.1 | awseward/Bugsnag.NET,awseward/Bugsnag.NET | SharedAssemblyInfo.cs | SharedAssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.8.1.0")]
[assembly: AssemblyFileVersion("0.8.1.0")]
[assembly: AssemblyInformationalVersion("0.8.1")]
| using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyVersion("0.8.0.0")]
[assembly: AssemblyFileVersion("0.8.0.0")]
[assembly: AssemblyInformationalVersion("0.8.0")]
| mit | C# |
bbcf10b3981ef07108a9119542ba8ff36655967a | fix random error on kerrb page titles | andrewconnell/aci-orchardcms,andrewconnell/aci-orchardcms,andrewconnell/aci-orchardcms,andrewconnell/aci-orchardcms | Themes/Kerrb/Views/Parts.Title.cshtml | Themes/Kerrb/Views/Parts.Title.cshtml | @{
Layout.Title = Model.Title;
// figure out if this is a search bot
var searchBots = new List<string>() {"teoma", "alexa", "froogle", "gigabot", "inktomi", "looksmart", "url_spider_sql", "firefly", "nationaldirectory", "ask jeeves", "tecnoseek", "infoseek", "webfindbot", "girafabot", "crawler", "www.galaxy.com... | @{
Layout.Title = Model.Title;
// figure out if this is a search bot
var searchBots = new List<string>() {"teoma", "alexa", "froogle", "gigabot", "inktomi", "looksmart", "url_spider_sql", "firefly", "nationaldirectory", "ask jeeves", "tecnoseek", "infoseek", "webfindbot", "girafabot", "crawler", "www.galaxy.com... | bsd-3-clause | C# |
e30e976acb717616d5e51157fb51a17434401c2c | fix endings | gregoryjscott/Simpler,gregoryjscott/Simpler,ResourceDataInc/Simpler.Data,ResourceDataInc/Simpler.Data,ResourceDataInc/Simpler.Data | app/Simpler/Data/Tasks/BuildDynamic.cs | app/Simpler/Data/Tasks/BuildDynamic.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
namespace Simpler.Data.Tasks
{
public class BuildDynamic : InOutTask<BuildDynamic.Input, BuildDynamic.Output>
{
public class Input
{
public IDataRecord DataRecord { get; set; }
... | using System;
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
namespace Simpler.Data.Tasks
{
public class BuildDynamic : InOutTask<BuildDynamic.Input, BuildDynamic.Output>
{
public class Input
{
public IDataRecord DataRecord { get; set; }
}
... | mit | C# |
74ca335171d8fdf9e8b639c204a6f04e40435a4e | Document PoEItemFrameType | jcmoyer/Yeena | Yeena/PathOfExile/PoEItemFrameType.cs | Yeena/PathOfExile/PoEItemFrameType.cs | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | apache-2.0 | C# |
73a63ce4b61e181da0f72443c5f1e029f3a0563f | Add copyright information | BinaryKits/ZPLUtility | ZPLUtility/Properties/AssemblyInfo.cs | ZPLUtility/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("ZPL... | 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("ZPL... | mit | C# |
fab09575ec30d2cec7aef5487f59b6b8fa10732a | Add full testing flow for `BeatmapOffsetControl` | NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu | osu.Game.Tests/Visual/Gameplay/TestSceneBeatmapOffsetControl.cs | osu.Game.Tests/Visual/Gameplay/TestSceneBeatmapOffsetControl.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.Linq;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Overlays.Settings;
using osu.Game.Scoring;
using osu.G... | // 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.Graphics;
using osu.Game.Screens.Play.PlayerSettings;
using osu.Game.Tests.Visual.Ranking;
namespace osu.Game.Tests.Visual.Gam... | mit | C# |
fa76028679aa71e70ef4ba4c67450bc360cbba82 | Fix sendind admin msgs | gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer | Client/Systems/Admin/AdminMessageSender.cs | Client/Systems/Admin/AdminMessageSender.cs | using LunaClient.Base;
using LunaClient.Base.Interface;
using LunaClient.Network;
using LunaCommon.Message.Client;
using LunaCommon.Message.Data.Admin;
using LunaCommon.Message.Interface;
namespace LunaClient.Systems.Admin
{
public class AdminMessageSender : SubSystem<AdminSystem>, IMessageSender
{
pu... | using LunaClient.Base;
using LunaClient.Base.Interface;
using LunaClient.Network;
using LunaCommon.Message.Client;
using LunaCommon.Message.Data.Admin;
using LunaCommon.Message.Interface;
namespace LunaClient.Systems.Admin
{
public class AdminMessageSender : SubSystem<AdminSystem>, IMessageSender
{
pu... | mit | C# |
2bf101e26146fcb272e6731921823cc78985f0e1 | Fix summary | AMDL/CommonMark.NET,AMDL/CommonMark.NET | CommonMark/CommonMarkAdditionalFeatures.cs | CommonMark/CommonMarkAdditionalFeatures.cs | using System;
namespace CommonMark
{
/// <summary>
/// Lists additional features that can be enabled in <see cref="CommonMarkSettings"/>.
/// These features are not part of the standard and should not be used if interoperability with other
/// CommonMark implementations is required.
/// </summary>... | using System;
namespace CommonMark
{
/// <summary>
/// Lists additional features that can be enabled in <see cref="CommonMarkSettings"/>.
/// These features are not part of the standard and should not be used if interoperability with other
/// CommonMark implementations is required.
/// </summary>... | bsd-3-clause | C# |
29ba866ddc7dbd11e7eb0103c2744366ffc2701d | Add "Search" widget no base url warning | danielchalmers/DesktopWidgets | DesktopWidgets/Widgets/Search/ViewModel.cs | DesktopWidgets/Widgets/Search/ViewModel.cs | using System.Diagnostics;
using System.Windows;
using System.Windows.Input;
using DesktopWidgets.Classes;
using DesktopWidgets.Helpers;
using DesktopWidgets.ViewModelBase;
using GalaSoft.MvvmLight.Command;
namespace DesktopWidgets.Widgets.Search
{
public class ViewModel : WidgetViewModelBase
{
private... | using System.Diagnostics;
using System.Windows.Input;
using DesktopWidgets.Classes;
using DesktopWidgets.Helpers;
using DesktopWidgets.ViewModelBase;
using GalaSoft.MvvmLight.Command;
namespace DesktopWidgets.Widgets.Search
{
public class ViewModel : WidgetViewModelBase
{
private string _searchText;
... | apache-2.0 | C# |
a0f020cbcacf4b4ff227ccadbde9e5da0a184e2f | Add rationale. | PenguinF/sandra-three | Eutherion/Win/Storage/ITypeErrorBuilder.cs | Eutherion/Win/Storage/ITypeErrorBuilder.cs | #region License
/*********************************************************************************
* ITypeErrorBuilder.cs
*
* Copyright (c) 2004-2022 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | #region License
/*********************************************************************************
* ITypeErrorBuilder.cs
*
* Copyright (c) 2004-2020 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | apache-2.0 | C# |
042442b7d1fdbf864e0fd7cffa4a08102ebbce85 | Document UshortExtensions | izik1/JAGBE | JAGBE/GB/UShortExtensions.cs | JAGBE/GB/UShortExtensions.cs | namespace JAGBE.GB
{
/// <summary>
/// Provides extension methods for <see cref="ushort"/>
/// </summary>
internal static class UShortExtensions
{
/// <summary>
/// determines weather adding two ushorts would produce a half carry.
/// </summary>
/// <param name="u">T... | namespace JAGBE.GB
{
internal static class UShortExtensions
{
public static bool GetHalfCarry(this ushort a, ushort b) => (((a & 0xFFF) + (b & 0xFFF)) & 0x1000) == 0x1000;
}
}
| mit | C# |
a5c8a01ded505d14b71cb1338a986dabddc7f3b6 | Make hit test based on the image optional | k-t/SharpHaven | MonoHaven.Client/UI/Widgets/ImageButton.cs | MonoHaven.Client/UI/Widgets/ImageButton.cs | using System;
using MonoHaven.Graphics;
using MonoHaven.Input;
namespace MonoHaven.UI.Widgets
{
public class ImageButton : Widget
{
private bool isPressed;
public ImageButton(Widget parent)
: base(parent)
{
IsFocusable = true;
}
public event Action Click;
public bool ImageHitTest
{
get;
... | using System;
using MonoHaven.Graphics;
using MonoHaven.Input;
namespace MonoHaven.UI.Widgets
{
public class ImageButton : Widget
{
private bool isPressed;
public ImageButton(Widget parent)
: base(parent)
{
IsFocusable = true;
}
public event Action Click;
public Drawable Image
{
get;
set... | mit | C# |
505d36dd8b8ea3d12ff351b611581c79066f9bc9 | Update run.csx | vunvulear/Stuff,vunvulear/Stuff,vunvulear/Stuff | Azure/azure-function-extractgpslocation-onedrive-drawwatermark/run.csx | Azure/azure-function-extractgpslocation-onedrive-drawwatermark/run.csx | #r "Microsoft.Azure.WebJobs.Extensions.ApiHub"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExifLib;
using System.IO;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
public static void Run(Stream inputFile... | #r "Microsoft.Azure.WebJobs.Extensions.ApiHub" // Don't forget to blog about it
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExifLib;
using System.IO;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
public... | apache-2.0 | C# |
151a92f6208427f114944dac8743176025db5504 | Fix failing test | Xeeynamo/KingdomHearts | OpenKh.Tests/Bbs/PmpTests.cs | OpenKh.Tests/Bbs/PmpTests.cs | using OpenKh.Common;
using OpenKh.Bbs;
using System.IO;
using Xunit;
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenKh.Tests.Bbs
{
public class PmpTests
{
private static readonly string FileName = "Bbs/res/bbs-testmap.pmp";
[Fact]
public void ReadCorre... | using OpenKh.Common;
using OpenKh.Bbs;
using System.IO;
using Xunit;
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenKh.Tests.Bbs
{
public class PmpTests
{
private static readonly string FileName = "Bbs/res/jb_23.pmp";
[Fact]
public void ReadCorrectHead... | mit | C# |
1682adc3f51a2a95b8d01135fb8d426b4bdd1563 | Remove useless argument. | ivarboms/PasswordGenerator | PasswordGenerator/Program.cs | PasswordGenerator/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace PasswordGenerator
{
class Program
{
private const string alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
private const string numerical = "0123456789"... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace PasswordGenerator
{
class Program
{
private const string alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
private const string numerical = "0123456789"... | mit | C# |
fd0c2594a6264e82b91121e1b401ed27dbebc101 | Remove setter | bartlomiejwolk/AnimationPathAnimator | PathEvents/PathEventsData.cs | PathEvents/PathEventsData.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace ATP.SimplePathAnimator.Events {
public class PathEventsData : ScriptableObject {
[SerializeField]
private List<NodeEvent> nodeEvents;
public List<NodeEvent> NodeEvents {
get { return nod... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace ATP.SimplePathAnimator.Events {
public class PathEventsData : ScriptableObject {
[SerializeField]
private List<NodeEvent> nodeEvents;
public List<NodeEvent> NodeEvents {
get { return nod... | mit | C# |
c91b74e74ecc1a7a765a420db7b1b525b5770464 | Update Product_MenuFunctions.cs | NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework | Test/AdventureWorksFunctionalModel/Production/Product_MenuFunctions.cs | Test/AdventureWorksFunctionalModel/Production/Product_MenuFunctions.cs | // Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT
// 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 requi... | // Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT
// 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 requi... | apache-2.0 | C# |
e45c7e72e6fe5ee95ae94c243d0f1f7116754bb9 | Update Box.cs | dimmpixeye/Unity3dTools | Runtime/LibProcessors/Box.cs | Runtime/LibProcessors/Box.cs | // Project : ACTORS
// Contacts : Pixeye - ask@pixeye.games
using System;
using System.Collections.Generic;
using UnityEngine;
using Object = UnityEngine.Object;
namespace Pixeye.Framework
{
/// <summary>
/// <para>Caches / return assets that Developer takes from the Resources folder.
/// Box cleans cache when ... | // Project : ACTORS
// Contacts : Pixeye - ask@pixeye.games
using System;
using System.Collections.Generic;
using UnityEngine;
using Object = UnityEngine.Object;
namespace Pixeye.Framework
{
/// <summary>
/// <para>Caches / return assets that Developer takes from the Resources folder.
/// Box cleans cache when ... | mit | C# |
31a51426cc4360cddc0de5837e9936be76ef5bf6 | Update stockMarketScreen.cs | IanMcT/StockMarketGame | SMG/SMG/stockMarketScreen.cs | SMG/SMG/stockMarketScreen.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SMG
{
public partial class stockMarketScreen : Form
{
//Global ... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SMG
{
public partial class stockMarketScreen : Form
{
//Glo... | apache-2.0 | C# |
e52400f7561e4932efe06857c2889e43a54a01e1 | Use string instead of String | mirajavora/sendgrid-webhooks | Sendgrid.Webhooks/Converters/WebhookCategoryConverter.cs | Sendgrid.Webhooks/Converters/WebhookCategoryConverter.cs | using System;
using System.ComponentModel;
using Newtonsoft.Json;
using Sendgrid.Webhooks.Converters;
namespace Sendgrid.Webhooks.Service
{
public class WebhookCategoryConverter : GenericListCreationJsonConverter<string>
{
}
}
| using System;
using System.ComponentModel;
using Newtonsoft.Json;
using Sendgrid.Webhooks.Converters;
namespace Sendgrid.Webhooks.Service
{
public class WebhookCategoryConverter : GenericListCreationJsonConverter<String>
{
}
} | apache-2.0 | C# |
14b21ed05b63d833ebe17115548e1aafa6118463 | make exception serializable | ThuCommix/Sharpex2D | Sharpex.GameLibrary/Framework/Plugins/PluginException.cs | Sharpex.GameLibrary/Framework/Plugins/PluginException.cs | using System;
namespace SharpexGL.Framework.Plugins
{
[Serializable]
public class PluginException : Exception
{
private readonly string _message = "";
public override string Message
{
get
{
return _message;
}
}
///... | using System;
namespace SharpexGL.Framework.Plugins
{
public class PluginException : Exception
{
private string _message = "";
public override string Message
{
get
{
return _message;
}
}
/// <summary>
/// Initi... | mit | C# |
847b30641fa0209e81456c68f8770d872acfc075 | Hide Guid prop on SalesTaxRate | NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework,NakedObjectsGroup/NakedObjectsFramework | Test/AdventureWorksFunctionalModel/Sales/SalesTaxRate.cs | Test/AdventureWorksFunctionalModel/Sales/SalesTaxRate.cs | // Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT
// 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 requi... | // Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT
// 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 requi... | apache-2.0 | C# |
83497221cd0b86710f57db152493c1fcf5420f82 | Remove unused usings. | jcheng31/WundergroundAutocomplete.NET | WundergroundClient/Autocomplete/RawAutocompleteResult.cs | WundergroundClient/Autocomplete/RawAutocompleteResult.cs | using System;
using System.Runtime.Serialization;
namespace WundergroundClient.Autocomplete
{
// ReSharper disable InconsistentNaming
[DataContract]
internal class RawAutocompleteResult
{
[DataMember] internal RawResult[] RESULTS;
}
[DataContract]
internal class RawResult
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace WundergroundClient.Autocomplete
{
// ReSharper disable InconsistentNaming
[DataContract]
internal class RawAutocompleteResult
{
[DataMember] internal RawResult[] RESU... | mit | C# |
1fec6ec2127de08cf234aaa61843bab899a69eb3 | Add back incorrectly removed parameter | ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework | osu.Framework/Host.cs | osu.Framework/Host.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.Platform;
using osu.Framework.Platform.Linux;
using osu.Framework.Platform.MacOS;
using osu.Framework.Platform.Windows;
using System;
namespace osu.... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Platform;
using osu.Framework.Platform.Linux;
using osu.Framework.Platform.MacOS;
using osu.Framework.Platform.Windows;
using System;
namespace osu.... | mit | C# |
38c8de0ff07be3d856ea10bc4c9846c230ed92dd | set parameter type attribute | LagoVista/DeviceAdmin | src/LagoVista.IoT.DeviceAdmin/Models/InputCommandParameter.cs | src/LagoVista.IoT.DeviceAdmin/Models/InputCommandParameter.cs | using LagoVista.Core.Attributes;
using LagoVista.Core.Models;
using LagoVista.IoT.DeviceAdmin.Resources;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace LagoVista.IoT.DeviceAdmin.Models
{
[EntityDescription(DeviceAdminDomain.DeviceAdmin, DeviceLibraryReso... | using LagoVista.Core.Attributes;
using LagoVista.Core.Models;
using LagoVista.IoT.DeviceAdmin.Resources;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace LagoVista.IoT.DeviceAdmin.Models
{
[EntityDescription(DeviceAdminDomain.DeviceAdmin, DeviceLibraryReso... | mit | C# |
15021065997ebb9fae3459b1ad172631cce51a6e | bump version | alecgorge/adzerk-dot-net | Adzerk.Api/Properties/AssemblyInfo.cs | Adzerk.Api/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("Ad... | 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("Ad... | mit | C# |
5722460b5180df68a955b3875fb66c16048c9622 | fix async calls | lvermeulen/Equalizer | src/Equalizer.Middleware.Core/RegistryClient.cs | src/Equalizer.Middleware.Core/RegistryClient.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Equalizer.Core;
using Nanophone.Core;
namespace Equalizer.Middleware.Core
{
public class RegistryClient
{
private readonly IRouter<RegistryInformation> _router;
private readonly List<IRegistr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Equalizer.Core;
using Nanophone.Core;
namespace Equalizer.Middleware.Core
{
public class RegistryClient
{
private readonly IRouter<RegistryInformation> _router;
private readonly List<IRegistr... | mit | C# |
c9468cb0bcd3841d602b4a7b7bbf42176d730fcd | Check the environment variable for the license key | kylebjones/CertiPay.Services.PDF | CertiPay.Services.PDF/Bootstrapper.cs | CertiPay.Services.PDF/Bootstrapper.cs | using CertiPay.PDF;
using Nancy;
using Nancy.TinyIoc;
using System;
using System.Configuration;
namespace CertiPay.Services.PDF
{
public class Bootstrapper : DefaultNancyBootstrapper
{
private static String ABCPdfLicense
{
get
{
// Check the environment ... | using CertiPay.PDF;
using Nancy;
using Nancy.TinyIoc;
using System;
using System.Configuration;
namespace CertiPay.Services.PDF
{
public class Bootstrapper : DefaultNancyBootstrapper
{
private static String ABCPdfLicense
{
get { return ConfigurationManager.AppSettings["ABCPDF-Licen... | mit | C# |
6cf0dc0024f6f76d157892394d69b3d48387e129 | Add enum member into LuryExceptionType | nokok/lury,HaiTo/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# |
0661cddb296073958df12cfe56449a2f49ed2e81 | Add French language into LanguageSelector | larsbrubaker/MatterControl,rytz/MatterControl,unlimitedbacon/MatterControl,jlewin/MatterControl,larsbrubaker/MatterControl,ddpruitt/MatterControl,rytz/MatterControl,tellingmachine/MatterControl,unlimitedbacon/MatterControl,ddpruitt/MatterControl,jlewin/MatterControl,mmoening/MatterControl,MatterHackers/MatterControl,Ma... | ConfigurationPage/LanguageSelector.cs | ConfigurationPage/LanguageSelector.cs | using MatterHackers.VectorMath;
using System.Collections.Generic;
namespace MatterHackers.MatterControl
{
public class LanguageSelector : StyledDropDownList
{
private Dictionary<string, string> languageDict;
public LanguageSelector()
: base("Default")
{
this.MinimumSize = new Vector2(this.LocalBounds.W... | using MatterHackers.VectorMath;
using System.Collections.Generic;
namespace MatterHackers.MatterControl
{
public class LanguageSelector : StyledDropDownList
{
private Dictionary<string, string> languageDict;
public LanguageSelector()
: base("Default")
{
this.MinimumSize = new Vector2(this.LocalBounds.W... | bsd-2-clause | C# |
08f440c57b87fe5a3f7fb0b617cfd73cc9fd6c11 | improve timer test ranges | CoreAPM/DotNetAgent | CoreAPM.NET.Agent.Tests/TimerTests.cs | CoreAPM.NET.Agent.Tests/TimerTests.cs | using System.Diagnostics;
using System.Threading;
using NSubstitute;
using Xunit;
namespace CoreAPM.NET.Agent.Tests
{
public class TimerTests
{
[Fact]
public void TimerCanStartStopwatch()
{
//arrange
var stopwatch = Substitute.For<Stopwatch>();
var t... | using System.Diagnostics;
using System.Threading;
using NSubstitute;
using Xunit;
namespace CoreAPM.NET.Agent.Tests
{
public class TimerTests
{
[Fact]
public void TimerCanStartStopwatch()
{
//arrange
var stopwatch = Substitute.For<Stopwatch>();
var t... | mit | C# |
cfce111383cedd5709c0237a976fd45e8fd3aacd | Handle drag and drop of folder. Fix #15 | aloisdg/Doccou,aloisdg/CountPages,saidmarouf/Doccou | CountPages/ViewModel/MainViewModel.cs | CountPages/ViewModel/MainViewModel.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using Counter;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.CommandWpf;
namespace CountPages.ViewModel
{
public ... | using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using Counter;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.CommandWpf;
namespace CountPages.ViewModel
{
public class MainViewModel : ViewModelBase
{
public uint PageCount { get; set; }
public Visibility L... | mit | C# |
0b970b3de194463f81cb007fc3db74a40fc6dcd8 | Add skips to prime factors test suite | ErikSchierboom/xcsharp,ErikSchierboom/xcsharp,robkeim/xcsharp,exercism/xcsharp,robkeim/xcsharp,GKotfis/csharp,exercism/xcsharp,GKotfis/csharp | exercises/prime-factors/PrimeFactorsTest.cs | exercises/prime-factors/PrimeFactorsTest.cs | // This file was auto-generated based on version 1.0.0 of the canonical data.
using Xunit;
public class PrimeFactorsTest
{
[Fact]
public void No_factors()
{
Assert.Empty(PrimeFactors.Factors(1));
}
[Fact(Skip = "Remove to run test")]
public void Prime_number()
{
Assert.Equ... | // This file was auto-generated based on version 1.0.0 of the canonical data.
using Xunit;
public class PrimeFactorsTest
{
[Fact]
public void No_factors()
{
Assert.Empty(PrimeFactors.Factors(1));
}
[Fact]
public void Prime_number()
{
Assert.Equal(new[] { 2 }, PrimeFactors.... | mit | C# |
cd16236bf6b9472234c3fdc5365f96e6307f206e | add basic logic for MockServerLoopNode | DarkCaster/DotNetBlocks,DarkCaster/DotNetBlocks | Tests/Mocks/DataLoop/MockServerLoopNode.cs | Tests/Mocks/DataLoop/MockServerLoopNode.cs | // MockServerLoopNode.cs
//
// The MIT License (MIT)
//
// Copyright (c) 2017 DarkCaster <dark.caster@outlook.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, ... | // MockServerLoopNode.cs
//
// The MIT License (MIT)
//
// Copyright (c) 2017 DarkCaster <dark.caster@outlook.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, ... | mit | C# |
84c51bf650ec82351184ffebc684e616503df3f8 | Remove ToList | anthonychu/slack-user-change-alerts | src/SlackUserChangeAlerts.Function/CheckUserListChanges/run.csx | src/SlackUserChangeAlerts.Function/CheckUserListChanges/run.csx | #r "Newtonsoft.Json"
using Newtonsoft.Json;
static HttpClient httpClient = new HttpClient();
static MemberComparer comparer = new MemberComparer();
public static async Task<string> Run(TimerInfo myTimer, string previousUsersJson, TraceWriter log)
{
var currentUsersJson = await httpClient.GetStringAsync($"https:/... | #r "Newtonsoft.Json"
using Newtonsoft.Json;
static HttpClient httpClient = new HttpClient();
static MemberComparer comparer = new MemberComparer();
public static async Task<string> Run(TimerInfo myTimer, string previousUsersJson, TraceWriter log)
{
var currentUsersJson = await httpClient.GetStringAsync($"https:/... | apache-2.0 | C# |
193d84b2fdc1b41069d7bc2c96e7f86aff0c1347 | Clean up using directives | Microsoft/ApplicationInsights-SDK-Labs,frackleton/ApplicationInsights-SDK-Labs | WCF/Shared/ClientIpTelemetryInitializer.cs | WCF/Shared/ClientIpTelemetryInitializer.cs | using System;
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
using System.ServiceModel.Channels;
using Microsoft.ApplicationInsights.Wcf.Implementation;
namespace Microsoft.ApplicationInsights.Wcf
{
/// <summary>
/// Collects the IP of the client... | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
using System.ServiceModel.Channels;
using Microsoft.ApplicationInsights.Wcf.Implementation;
namespace Microsoft.ApplicationInsights.Wcf
{
... | mit | C# |
1fe933437a944e471677db8f6d7a8942a378a5ff | exclude another Unit test | sachatrauwaen/OpenApp,sachatrauwaen/OpenApp,sachatrauwaen/OpenApp,sachatrauwaen/OpenApp,sachatrauwaen/OpenApp,sachatrauwaen/OpenApp | test/Satrabel.OpenApp.Tests/Sessions/SessionAppService_Tests.cs | test/Satrabel.OpenApp.Tests/Sessions/SessionAppService_Tests.cs | using System.Threading.Tasks;
using Satrabel.OpenApp.Sessions;
using Shouldly;
using Xunit;
namespace Satrabel.OpenApp.Tests.Sessions
{
public class SessionAppService_Tests : StarterTestBase
{
private readonly ISessionAppService _sessionAppService;
public SessionAppService_Tests()
{
... | using System.Threading.Tasks;
using Satrabel.OpenApp.Sessions;
using Shouldly;
using Xunit;
namespace Satrabel.OpenApp.Tests.Sessions
{
public class SessionAppService_Tests : StarterTestBase
{
private readonly ISessionAppService _sessionAppService;
public SessionAppService_Tests()
{
... | mit | C# |
6601d97619fcf7b14ae90f6bc4e410fb5829bf37 | Improve LogAnalysis tests (#1696) | exercism/xcsharp,exercism/xcsharp | exercises/concept/log-analysis/LogAnalysisTests.cs | exercises/concept/log-analysis/LogAnalysisTests.cs | using Xunit;
using Exercism.Tests;
using System;
public class LogAnalysisTests
{
[Fact]
public void SubstringAfter_WithDelimeterOfLength1()
{
Assert.Equal(" am the 1st test", "I am the 1st test".SubstringAfter("I"));
}
[Fact(Skip = "Remove this Skip property to run this test")]
public ... | using Xunit;
using Exercism.Tests;
using System;
public class LogAnalysisTests
{
[Fact]
public void SubstringAfter_WithDelimeterOfLength1()
{
Assert.Equal(" am the 1st test", "I am the 1st test".SubstringAfter("I"));
}
[Fact(Skip = "Remove this Skip property to run this test")]
public ... | mit | C# |
07e144147d17a8cf3bb0d27cdffc75312b15ee58 | Update ShapeStyleDragAndDropListBox.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D | Core2D.Wpf/Controls/Custom/Lists/ShapeStyleDragAndDropListBox.cs | Core2D.Wpf/Controls/Custom/Lists/ShapeStyleDragAndDropListBox.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.Collections.Immutable;
using System.Windows.Controls;
namespace Core2D.Wpf.Controls.Custom.Lists
{
/// <summary>
/// The <see cref="ListBox"/... | // 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.Collections.Immutable;
using System.Windows.Controls;
namespace Core2D.Wpf.Controls.Custom.Lists
{
/// <summary>
/// The <see cref="ListBox"/... | mit | C# |
7240367e34a7465ea8c94c011aa41aa9fd9a4b44 | Update WikipediaHandler to use new method | IvionSauce/MeidoBot | UrlTitling/WebIrc/WikipediaHandler.cs | UrlTitling/WebIrc/WikipediaHandler.cs | using System;
using IvionWebSoft;
namespace WebIrc
{
public class WikipediaHandler
{
public int MaxCharacters { get; set; }
public string ContinuationSymbol { get; set; }
public TitlingResult WikipediaSummarize(TitlingRequest req, string htmlDoc)
{
WikipediaArtic... | using System;
using IvionWebSoft;
namespace WebIrc
{
public class WikipediaHandler
{
public int MaxCharacters { get; set; }
public string ContinuationSymbol { get; set; }
public TitlingResult WikipediaSummarize(TitlingRequest req, string htmlDoc)
{
WikipediaArtic... | bsd-2-clause | C# |
44e264f8e19c3412b6224c8a9f645a7552532fa5 | Upgrade assembly version to 2.4.0 | transistor1/dockpanelsuite,joelbyren/dockpanelsuite,angelapper/dockpanelsuite,ArsenShnurkov/dockpanelsuite,shintadono/dockpanelsuite,rohitlodha/dockpanelsuite,RadarNyan/dockpanelsuite,modulexcite/O2_Fork_dockpanelsuite,15070217668/dockpanelsuite,jorik041/dockpanelsuite,xo-energy/dockpanelsuite,thijse/dockpanelsuite,doc... | WinFormsUI/Properties/AssemblyInfo.cs | WinFormsUI/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Diagnostics.CodeAnalysis;
[assembly: AssemblyTitle("DockPanel Suite for .Net 2.0")]
[assembly: AssemblyDescription(".Net Docking Library for Windows Forms")]
[assembly: AssemblyConf... | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Diagnostics.CodeAnalysis;
[assembly: AssemblyTitle("DockPanel Suite for .Net 2.0")]
[assembly: AssemblyDescription(".Net Docking Library for Windows Forms")]
[assembly: AssemblyConf... | mit | C# |
9371e709cecb50421c42eaa3efb99eba0a63dac0 | Update build.cake | xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents | XPlat/ExposureNotification/build.cake | XPlat/ExposureNotification/build.cake | var TARGET = Argument("t", Argument("target", "ci"));
var SRC_COMMIT = "0453ef280effd21903f3920fba57b58695cf60ab";
var SRC_URL = $"https://github.com/xamarin/xamarin.exposurenotification/archive/{SRC_COMMIT}.zip";
var OUTPUT_PATH = (DirectoryPath)"./output/";
var NUGET_VERSION = "0.2.1-preview";
Task("externals")
.... | var TARGET = Argument("t", Argument("target", "ci"));
var SRC_COMMIT = "1dbccda04f9adb511b422125ebdb2eb3aae8329b";
var SRC_URL = $"https://github.com/xamarin/xamarin.exposurenotification/archive/{SRC_COMMIT}.zip";
var OUTPUT_PATH = (DirectoryPath)"./output/";
var NUGET_VERSION = "0.2.0-preview01";
Task("externals")
... | mit | C# |
6be18f4aeebca49f4fde6f24b628b04d4276a26e | Fix float-double conversion | Xenopathic/spatial-evolution,Xenopathic/spatial-evolution | workers/unity/Assets/Gamelogic/Behaviours/OrganismMovement.cs | workers/unity/Assets/Gamelogic/Behaviours/OrganismMovement.cs | using UnityEngine;
using System;
using Random = UnityEngine.Random;
using Improbable.Math;
using System.Collections;
using Evolution.Organism;
using Improbable.Unity;
using Improbable.Unity.Visualizer;
namespace Assets.Gamelogic.Organisms {
public class OrganismMovement : MonoBehaviour {
[Require]
... | using UnityEngine;
using System;
using Random = UnityEngine.Random;
using Improbable.Math;
using System.Collections;
using Evolution.Organism;
using Improbable.Unity;
using Improbable.Unity.Visualizer;
namespace Assets.Gamelogic.Organisms {
public class OrganismMovement : MonoBehaviour {
[Require]
... | mit | C# |
e057ea96228d18b5f286cff9ec78b23958b7fdec | add closing method | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/CrashReporter/Views/CrashReportWindow.xaml.cs | WalletWasabi.Gui/CrashReporter/Views/CrashReportWindow.xaml.cs | using System;
using System.ComponentModel;
using Avalonia;
using Avalonia.Markup.Xaml;
using AvalonStudio.Shell.Controls;
using Splat;
namespace WalletWasabi.Gui.CrashReporter.Views
{
public class CrashReportWindow : MetroWindow
{
public CrashReportWindow()
{
InitializeComponent();
#if DEBUG
this.AttachDev... | using Avalonia;
using Avalonia.Markup.Xaml;
using AvalonStudio.Shell.Controls;
using Splat;
namespace WalletWasabi.Gui.CrashReporter.Views
{
public class CrashReportWindow : MetroWindow
{
public CrashReportWindow()
{
InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif
}
private void Initia... | mit | C# |
f53f14f69577abf25f2aa97f41f10aaa5f273f6e | add some more scenario tests for Experiment.AutoFixture. | jwChung/Experimentalism,jwChung/Experimentalism | test/Experiment.AutoFixtureUnitTest/Scenario.cs | test/Experiment.AutoFixtureUnitTest/Scenario.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using Xunit;
using Xunit.Extensions;
namespace Jwc.Experiment
{
public class Scenario
{
[Theorem]
public void TheoremSupportsNonParameterizedTest()
{
Assert.True(true, "excuted.");
}
[... | using System;
using Xunit;
namespace Jwc.Experiment
{
public class Scenario
{
[Theorem]
public void TheoremSupportsParameterizedTestWithAutoData(
string arg1, Type arg2)
{
Assert.NotNull(arg1);
Assert.NotNull(arg2);
}
}
} | mit | C# |
41451127a0279038df297889f3f4c7708af47399 | Break up bulk operations that can't be batched. | SilkStack/Silk.Data.SQL.ORM | Silk.Data.SQL.ORM/Operations/BulkOperation.cs | Silk.Data.SQL.ORM/Operations/BulkOperation.cs | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Silk.Data.SQL.Expressions;
using Silk.Data.SQL.ORM.Operations.Expressions;
using Silk.Data.SQL.Queries;
namespace Silk.Data.SQL.ORM.Operations
{
public class BulkOperation
{
private readonly DataOperation[] _operat... | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Silk.Data.SQL.Expressions;
using Silk.Data.SQL.ORM.Operations.Expressions;
using Silk.Data.SQL.Queries;
namespace Silk.Data.SQL.ORM.Operations
{
public class BulkOperation
{
private readonly DataOperation[] _operat... | mit | C# |
21191d15f30d8a29305d83c4d6b4ded1670f7cfa | Add namespace for MassSetTags tool | petereichinger/unity-helpers | Assets/Scripts/EditorTools/Editor/MassSetTags.cs | Assets/Scripts/EditorTools/Editor/MassSetTags.cs | using System.Collections;
using UnityEditor;
using UnityEngine;
namespace UnityHelpers.EditorTools.Editor {
/// <summary>
/// Tool that applies a tag to the currently selected objects and all their child objects.
/// </summary>
public class MassSetTags : EditorWindow {
private string _tag;
[MenuItem("UnityHe... | using System.Collections;
using UnityEditor;
using UnityEngine;
/// <summary>Tool that applies a tag to the currently selected objects and all their child objects.</summary>
public class MassSetTags : EditorWindow {
private string _tag;
[MenuItem("UnityHelpers/Mass Set Tags")]
public static void Init() {
MassSet... | mit | C# |
e8532f0ec8b72f94bf700d7d712d8d9a98f0a89b | Add Test for SemVer Parsing | nikeee/HolzShots | src/HolzShots.Core.Tests/Net/Custom/CustomUploaderLoaderTests.cs | src/HolzShots.Core.Tests/Net/Custom/CustomUploaderLoaderTests.cs | using HolzShots.Net.Custom;
using Xunit;
namespace HolzShots.Core.Tests.Net.Custom
{
public class CustomUploaderLoaderTests
{
[Theory]
[FileStringContentData("Files/DirectUpload.net.hsjson")]
[FileStringContentData("Files/FotosHochladen.hsjson")]
public void ValidateTest(string ... | using HolzShots.Net.Custom;
using Xunit;
namespace HolzShots.Core.Tests.Net.Custom
{
public class CustomUploaderLoaderTests
{
[Theory]
[FileStringContentData("Files/DirectUpload.net.hsjson")]
[FileStringContentData("Files/FotosHochladen.hsjson")]
public void ValidateTest(string ... | agpl-3.0 | C# |
f78d35ed1b94855ee1dcb3ed8dd4d709310600f0 | Remove old test theory | nikeee/HolzShots | src/HolzShots.Core.Tests/Net/Custom/CustomUploaderLoaderTests.cs | src/HolzShots.Core.Tests/Net/Custom/CustomUploaderLoaderTests.cs | using HolzShots.Net.Custom;
using Xunit;
namespace HolzShots.Core.Tests.Net.Custom
{
public class CustomUploaderLoaderTests
{
[Theory]
[FileStringContentData("Files/DirectUpload.net.hsjson")]
public void ValidateTest(string content)
{
var parseResult = CustomUploader... | using HolzShots.Net.Custom;
using Xunit;
namespace HolzShots.Core.Tests.Net.Custom
{
public class CustomUploaderLoaderTests
{
[Theory]
[FileStringContentData("Files/DirectUpload.net.hsjson")]
[FileStringContentData("Files/FotosHochladen.hsjson")]
public void ValidateTest(string ... | agpl-3.0 | C# |
7333fd119f180ca66ff3885562fc26815ce5fbe9 | clean up | asipe/SupaCharge | src/SupaCharge.Core/ThreadingAbstractions/ThreadPoolWorkQueue.cs | src/SupaCharge.Core/ThreadingAbstractions/ThreadPoolWorkQueue.cs | using System;
using System.Threading;
namespace SupaCharge.Core.ThreadingAbstractions {
public class ThreadPoolWorkQueue : IWorkQueue {
public EmptyFuture Enqueue(Action work) {
var future = new EmptyFuture();
ThreadPool.QueueUserWorkItem(o => DoWork(work, future));
return future;
... | using System;
using System.Threading;
namespace SupaCharge.Core.ThreadingAbstractions {
public class ThreadPoolWorkQueue : IWorkQueue {
public EmptyFuture Enqueue(Action work) {
var future = new EmptyFuture();
ThreadPool.QueueUserWorkItem(w => DoWork(work, future));
return future;
... | mit | C# |
5fc845c32ccbf2b7e8a6c9186d3cd6382d9ae430 | fix for CS1998: This async method lacks 'await' in tests. (#606) | JoeMighty/shouldly | src/Shouldly.Tests/ShouldThrow/FuncOfTaskWhichThrowsDirectlyScenario.cs | src/Shouldly.Tests/ShouldThrow/FuncOfTaskWhichThrowsDirectlyScenario.cs | using System;
using System.Threading.Tasks;
using Xunit;
namespace Shouldly.Tests.ShouldThrow
{
public class FuncOfTaskWhichThrowsDirectlyScenario
{
[Fact]
public void ShouldPass()
{
// ReSharper disable once RedundantDelegateCreation
var task = new Func<Task>(... | using System;
using System.Threading.Tasks;
using Xunit;
namespace Shouldly.Tests.ShouldThrow
{
public class FuncOfTaskWhichThrowsDirectlyScenario
{
[Fact]
public void ShouldPass()
{
// ReSharper disable once RedundantDelegateCreation
var task = new Func<Task>(... | bsd-3-clause | C# |
07add3c59cac788c79322da3b5b4872e2654cc85 | Update PoolID.cs | cdrandin/Simple-Object-Pooling | PoolingSystem_Demo/Assets/Demo/Scripts/PoolID.cs | PoolingSystem_Demo/Assets/Demo/Scripts/PoolID.cs | using UnityEngine;
using System.Collections;
public class PoolID : MonoBehaviour
{
private int _id;
private bool _init;
public int id
{
get { return _id; }
}
void Awake()
{
_init = false;
}
public void GenerateID(GameObject obj)
{
if(_init) return; // called only once
_id = obj.transform.GetInsta... | using UnityEngine;
using System.Collections;
public class PoolID : MonoBehaviour {
[SerializeField]private int _id;
private bool _init;
public int id
{
get { return _id; }
}
void Awake()
{
_init = false;
}
public void GenerateID(GameObject obj)
{
if(_init) return; // called only once
_id = obj.tr... | mit | C# |
d48ef5eef8cc33ad586efe70af73cab71e88da19 | Fix breaking test | Hammerstad/Moya | TestMoya/Extensions/DictionaryExtensionsTests.cs | TestMoya/Extensions/DictionaryExtensionsTests.cs | namespace TestMoya.Extensions
{
using System;
using System.Collections.Generic;
using Xunit;
using Moya.Extensions;
public class DictionaryExtensionsTests
{
public Dictionary<string, string> originalDictionary = new Dictionary<string, string>
{
{ "key1", "value1" },... | namespace TestMoya.Extensions
{
using System;
using System.Collections.Generic;
using Xunit;
using Moya.Extensions;
public class DictionaryExtensionsTests
{
public Dictionary<string, string> originalDictionary = new Dictionary<string, string>
{
{ "key1", "value1" },... | mit | C# |
a26b0915b4047d61032dc7c0e9fc893502ac70ae | Fix scheduled tasks not being cleaned up between test steps | smoogipoo/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,smoogipooo/osu,peppy/osu,UselessToucan/osu,peppy/osu,ppy/osu | osu.Game.Rulesets.Osu.Tests/TestSceneShaking.cs | osu.Game.Rulesets.Osu.Tests/TestSceneShaking.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Diagnostics;
using osu.Framework.Threading;
using osu.Framework.Utils;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Osu... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics;
using osu.Framework.Utils;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Osu.Tests
{
pu... | mit | C# |
0f002fe68b8d6ee4ebdd0327300407fbc4aee7b2 | Update FindInScopeAttribute | atata-framework/atata,YevgeniyShunevych/Atata,atata-framework/atata,YevgeniyShunevych/Atata | src/Atata/Attributes/FindInScopeAttribute.cs | src/Atata/Attributes/FindInScopeAttribute.cs | using System;
namespace Atata
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Assembly, Inherited = true)]
public class FindInScopeAttribute : Attribute
{
public FindInScopeAttribute(ScopeSource scope = ScopeSource.Inherit)
{
Scope = scop... | using System;
namespace Atata
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Assembly, Inherited = true)]
public class FindInScopeAttribute : Attribute
{
public FindInScopeAttribute(ScopeSource scope = ScopeSource.Inherit)
{
Scope = scop... | apache-2.0 | C# |
b08f1b01fc96a94526b4bb0e30e88c437cf4e87b | Make CriHcaConstants public | Thealexbarney/VGAudio,Thealexbarney/LibDspAdpcm,Thealexbarney/LibDspAdpcm,Thealexbarney/VGAudio | src/VGAudio/Codecs/CriHca/CriHcaConstants.cs | src/VGAudio/Codecs/CriHca/CriHcaConstants.cs | namespace VGAudio.Codecs.CriHca
{
public static class CriHcaConstants
{
public const int SubframesPerFrame = 8;
public const int SubFrameSamplesBits = 7;
public const int SamplesPerSubFrame = 1 << SubFrameSamplesBits;
public const int SamplesPerFrame = SubframesPerFrame * Sample... | namespace VGAudio.Codecs.CriHca
{
internal static class CriHcaConstants
{
public const int SubframesPerFrame = 8;
public const int SubFrameSamplesBits = 7;
public const int SamplesPerSubFrame = 1 << SubFrameSamplesBits;
public const int SamplesPerFrame = SubframesPerFrame * Samp... | mit | C# |
9c71504092bca44bc15da47bb445e7bafca0889b | Modify "http.uri" to "http.url" | criteo/zipkin4net,criteo/zipkin4net | zipkin4net-owin/Criteo.Profiling.Tracing.Middleware/ZipkinMiddleware.cs | zipkin4net-owin/Criteo.Profiling.Tracing.Middleware/ZipkinMiddleware.cs | using Criteo.Profiling.Tracing.Transport;
using Microsoft.Owin;
using System.Threading.Tasks;
namespace Criteo.Profiling.Tracing.Middleware
{
class ZipkinMiddleware : OwinMiddleware
{
private readonly string serviceName;
private readonly ITraceExtractor traceExtractor;
public ZipkinMi... | using Criteo.Profiling.Tracing.Transport;
using Microsoft.Owin;
using System.Threading.Tasks;
namespace Criteo.Profiling.Tracing.Middleware
{
class ZipkinMiddleware : OwinMiddleware
{
private readonly string serviceName;
private readonly ITraceExtractor traceExtractor;
public ZipkinMi... | apache-2.0 | C# |
47ee16fc374228461837a32138fb6abc23b01389 | add dns ip settings to HFTRuntimeOptions for server | greggman/hft-unity3d,greggman/hft-unity3d,greggman/hft-unity3d,greggman/hft-unity3d | hft-server/hft-server/HFTRuntimeOptions.cs | hft-server/hft-server/HFTRuntimeOptions.cs | using System;
namespace HappyFunTimes
{
public class HFTRuntimeOptions
{
public string dataPath = "";
public string url = "";
public string id = "";
public string name = "";
public string gameId = "HFTUnity"; // this is kind of left over from when one server supported ... | using System;
namespace HappyFunTimes
{
public class HFTRuntimeOptions
{
public string dataPath = "";
public string url = "";
public string id = "";
public string name = "";
public string gameId = "HFTUnity"; // this is kind of left over from when one server supported ... | bsd-3-clause | C# |
107ca5f7aa55448e0f19c46427841b525411c09b | Patch #27 Fix fetch messages example | AfricasTalkingLtd/africastalking.Net | Examples/FetchMessages/Program.cs | Examples/FetchMessages/Program.cs | using System;
using AfricasTalkingCS;
namespace FetchMessages
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
const string Username = "sandbox";
const string ApiKey = "afd635a4f295dd936312836c0b944d55f2a836e8ff2b63987da5... | using System;
using AfricasTalkingCS;
namespace FetchMessages
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
const string Username = "sandbox";
const string ApiKey = "afd635a4f295dd936312836c0b944d55f2a836e8ff2b63987da5... | mit | C# |
b9944cce53442e8dc34bf55c49b22fc55ccbd9a9 | Add an optional timeout for connection attempts. | izrik/NDeproxy | SocketHelper.cs | SocketHelper.cs | using System;
using System.Net.Sockets;
using System.Net;
using System.Threading;
namespace NDeproxy
{
public static class SocketHelper
{
static readonly Logger log = new Logger("SocketHelper");
public static Socket Server(int port, int listenQueue=5)
{
var s = new Socket(A... | using System;
using System.Net.Sockets;
using System.Net;
using System.Threading;
namespace NDeproxy
{
public static class SocketHelper
{
static readonly Logger log = new Logger("SocketHelper");
public static Socket Server(int port, int listenQueue=5)
{
var s = new Socket(A... | mit | C# |
0d9d8cc3b8e88b333faa204854cd3aea04ff6ba1 | Fix help command (#19) | Sitecore/Sitecore-Instance-Manager,Brad-Christie/Sitecore-Instance-Manager,sergeyshushlyapin/Sitecore-Instance-Manager | src/SIM.Client/ParseArgumentsCommand.cs | src/SIM.Client/ParseArgumentsCommand.cs | namespace SIM.Client
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CommandLine;
using JetBrains.Annotations;
using Sitecore.Diagnostics.Base;
using SIM.Client.Commands;
using SIM.Core.Common;
public class ParseArgumentsCommand
{
public IReadOnlyLi... | namespace SIM.Client
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CommandLine;
using JetBrains.Annotations;
using Sitecore.Diagnostics.Base;
using SIM.Client.Commands;
using SIM.Core.Common;
public class ParseArgumentsCommand
{
public IReadOnlyLi... | mit | C# |
5753a45b86fb396b4424544452f17de6edd0ce15 | Improve documentation of LongLivedMarshalByRefObject. | EliotJones/fixie,JakeGinnivan/fixie,fixie/fixie,Duohong/fixie,KevM/fixie | src/Fixie/Execution/LongLivedMarshalByRefObject.cs | src/Fixie/Execution/LongLivedMarshalByRefObject.cs | using System;
using System.Runtime.Remoting;
namespace Fixie.Execution
{
/// <summary>
/// Simplifies the definition of MarshalByRefObject classes whose
/// instances need to live longer than the default lease lifetime
/// allows, such as implementations of Listener provided by test
/// runners.
... | using System;
using System.Runtime.Remoting;
namespace Fixie.Execution
{
/// <summary>
/// Normally, inheriting from MarshalByRefObject introduces an unexpected defect
/// in which your instances cease to exist after they get a few minutes old.
///
/// For instance, when a runner provides a Marsh... | mit | C# |
a2e855eb6029841873543c730a93b14608cd8901 | Improve GitVersionAttribute to issue a warning on UNIX systems. | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Tools/GitVersion/GitVersionAttribute.cs | source/Nuke.Common/Tools/GitVersion/GitVersionAttribute.cs | // Copyright Matthias Koch 2017.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Core;
using Nuke.Core.Injection;
using Nuke.Core.Tooling;
namespace Nuke.Common.Tools.GitVersion
{
/// <inherit... | // Copyright Matthias Koch 2017.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Core;
using Nuke.Core.Injection;
using Nuke.Core.Tooling;
namespace Nuke.Common.Tools.GitVersion
{
/// <inherit... | mit | C# |
52e0efb1120ca34c5e6411dc286f0d2599afdb3f | Fix bug in EnsureIndexesShouldDropAndRetry | rapidcore/rapidcore,rapidcore/rapidcore | src/Internal/MongoCommandExceptionExtensions.cs | src/Internal/MongoCommandExceptionExtensions.cs | using System;
using MongoDB.Driver;
namespace RapidCore.Mongo.Internal
{
public static class MongoCommandExceptionExtensions
{
public static bool EnsureIndexesShouldDropAndRetry(this MongoCommandException ex, IndexDefinition index)
{
//
// index already exists, but with ... | using System;
using MongoDB.Driver;
namespace RapidCore.Mongo.Internal
{
public static class MongoCommandExceptionExtensions
{
public static bool EnsureIndexesShouldDropAndRetry(this MongoCommandException ex, IndexDefinition index)
{
//
// index already exists, but with ... | mit | C# |
b9a2b8183e5469447e0ee7ddde8e0e37dc6ed6b4 | Improve ${callsite} when filtering is used. | NLog/NLog.Framework.Logging,NLog/NLog.Framework.Logging,NLog/NLog.Extensions.Logging | src/NLog.Extensions.Logging/AspNetExtensions.cs | src/NLog.Extensions.Logging/AspNetExtensions.cs | using System;
using System.IO;
using System.Reflection;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
using NLog.Config;
namespace NLog.Extensions.Logging
{
/// <summary>
/// Helpers for ASP.NET Core
/// </summary>
public static class AspNetExtensions
{
/// <summa... | using System.IO;
using System.Reflection;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
using NLog.Config;
namespace NLog.Extensions.Logging
{
/// <summary>
/// Helpers for ASP.NET Core
/// </summary>
public static class AspNetExtensions
{
/// <summary>
//... | bsd-2-clause | C# |
f114fbd3c662ea3f29130159a51dca3aa1883177 | Add XMLDoc to IFileStreamCaptureHandler. | techyian/MMALSharp | src/MMALSharp.Processing/Handlers/IFileStreamCaptureHandler.cs | src/MMALSharp.Processing/Handlers/IFileStreamCaptureHandler.cs | // <copyright file="IFileStreamCaptureHandler.cs" company="Techyian">
// Copyright (c) Ian Auty. All rights reserved.
// Licensed under the MIT License. Please see LICENSE.txt for License info.
// </copyright>
namespace MMALSharp.Handlers
{
/// <summary>
/// Represents a FileStreamCaptureHandler.
/// </su... |
namespace MMALSharp.Handlers
{
public interface IFileStreamCaptureHandler : IOutputCaptureHandler
{
/// <summary>
/// Creates a new File (FileStream), assigns it to the Stream instance of this class and disposes of any existing stream.
/// </summary>
void NewFile();
/... | mit | C# |
6b58aa03211e43b970967cad44f83808ac336ab1 | bump 0.1.1 release | g0t4/Rx-FileSystemWatcher,g0t4/Rx-FileSystemWatcher | src/RxFileSystemWatcher/Properties/AssemblyInfo.cs | src/RxFileSystemWatcher/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RxFileSystemWatcher")]
[assembly: Assemb... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RxFileSystemWatcher")]
[assembly: Assemb... | mit | C# |
b3287e7b0d51023c57ffe07665b7e35de6880cf6 | Add support for builtins directory from the assembly folder/_meta | lunet-io/lunet,lunet-io/lunet | src/Lunet/Core/MetaManager.cs | src/Lunet/Core/MetaManager.cs | // Copyright (c) Alexandre Mutel. All rights reserved.
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.
using System.Collections.Generic;
using System.IO;
using System.Reflection;
namespace Lunet.Core
{
/// <summary>
/// Manages th... | // Copyright (c) Alexandre Mutel. All rights reserved.
// This file is licensed under the BSD-Clause 2 license.
// See the license.txt file in the project root for more information.
using System.Collections.Generic;
namespace Lunet.Core
{
/// <summary>
/// Manages the meta information associated to a site (f... | bsd-2-clause | C# |
37cac765834fc16c159fa46bcadb05060e7d85a0 | Fix image | dona1312/AcademyEF,dona1312/AcademyEF | AcademyEF/AcademyEF/Views/Courses/List.cshtml | AcademyEF/AcademyEF/Views/Courses/List.cshtml | @model AcademyEF.ViewModels.CoursesVM.CourseListVM
@{
ViewBag.Title = "Courses";
ViewBag.Description = "Our current courses";
}
@if (AcademyEF.Services.AuthenticationService.LoggedUser != null &&
AcademyEF.Services.AuthenticationService.LoggedUser.IsAdmin)
{
<p class="row" style="margin-left:... | @model AcademyEF.ViewModels.CoursesVM.CourseListVM
@{
ViewBag.Title = "Courses";
ViewBag.Description = "Our current courses";
}
@if (AcademyEF.Services.AuthenticationService.LoggedUser != null &&
AcademyEF.Services.AuthenticationService.LoggedUser.IsAdmin)
{
<p class="row" style="margin-left:... | mit | C# |
cdb74803a87d3d2ccf05947540c48fe77e78dcfc | Store actions as their object representation | DrabWeb/osu-framework,default0/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,paparony03/osu-framework,paparony03/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,default0/osu-framework,Nabile-Rahmani/osu-... | osu.Framework/Input/Bindings/KeyBinding.cs | osu.Framework/Input/Bindings/KeyBinding.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Input.Bindings
{
/// <summary>
/// A binding of a <see cref="Bindings.KeyCombination"/> to an action.
/// </summary>... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Input.Bindings
{
/// <summary>
/// A binding of a <see cref="Bindings.KeyCombination"/> to an action.
/// </summary>... | mit | C# |
77e74c3a10556ec5900db50e03c08a0e06f85a81 | Set `Content-Length` in the `hello` sample | bbaia/connect-owin,sebgod/connect-owin,sebgod/connect-owin,bbaia/connect-owin | examples/hello/Startup.cs | examples/hello/Startup.cs | using System;
using System.IO;
using System.Collections.Generic;
using System.Threading.Tasks;
using Owin;
namespace Connect.Owin.Examples.Hello
{
// OWIN application delegate
using AppFunc = Func<IDictionary<string, object>, Task>;
public class Startup
{
public void Configuration(IAppBuilde... | using System;
using System.IO;
using System.Collections.Generic;
using System.Threading.Tasks;
using Owin;
namespace Connect.Owin.Examples.Hello
{
// OWIN application delegate
using AppFunc = Func<IDictionary<string, object>, Task>;
public class Startup
{
public void Configuration(IAppBuilde... | apache-2.0 | C# |
706fef3567d4c25e5154238018c0634d3805f68b | Add boolean to figure out is the uow is made with the session | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Data/UnitOfWork.cs | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Data/UnitOfWork.cs | using System;
using System.Data;
using Dapper.FastCrud;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Data
{
public class UnitOfWork : DbTransaction, IUnitOfWork
{
public SqlDialect SqlDialect { get; set; }
private readonly Guid _guid = Guid.NewGuid();
public UnitOfWork(ID... | using System;
using System.Data;
using Dapper.FastCrud;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Data
{
public class UnitOfWork : DbTransaction, IUnitOfWork
{
public SqlDialect SqlDialect { get; set; }
private readonly Guid _guid = Guid.NewGuid();
public UnitOfWork(ID... | mit | C# |
9725d1f19e2e1439d0bebd3dfc128647299ed500 | Update AssemblyInfo.cs | NLog/NLog.Etw | NLog.Etw/Properties/AssemblyInfo.cs | NLog.Etw/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("NL... | 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("NL... | apache-2.0 | C# |
1c42b83ab758d3bc3052915edce6218caf4e8d48 | Change assertion method | pardeike/Harmony | HarmonyTests/Extras/RetrieveOriginalMethod.cs | HarmonyTests/Extras/RetrieveOriginalMethod.cs | using HarmonyLib;
using NUnit.Framework;
using System.Diagnostics;
using System.Reflection;
namespace HarmonyLibTests.Extras
{
[TestFixture]
class RetrieveOriginalMethod : TestLogger
{
[Test]
public void Test0()
{
var harmony = new Harmony("test-original-method");
var originalMethod = AccessTools.Metho... | using HarmonyLib;
using NUnit.Framework;
using System.Diagnostics;
using System.Reflection;
namespace HarmonyLibTests.Extras
{
[TestFixture]
class RetrieveOriginalMethod : TestLogger
{
[Test]
public void Test0()
{
var harmony = new Harmony("test-original-method");
var originalMethod = AccessTools.Metho... | mit | C# |
b7158de1917eff5c2fb96abd4e1142c7c1d95842 | add fallback for serial port lister | martin2250/OpenCNCPilot | OpenCNCPilot/SettingsWindow.xaml.cs | OpenCNCPilot/SettingsWindow.xaml.cs | using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Management;
using System.Windows;
using System.Windows.Controls;
namespace OpenCNCPilot
{
/// <summary>
/// Interaction logic for SettingsWindow.xaml
/// </summary>
public partial class SettingsWindow : Window
{
public Settings... | using System;
using System.Management;
using System.Windows;
using System.Windows.Controls;
namespace OpenCNCPilot
{
/// <summary>
/// Interaction logic for SettingsWindow.xaml
/// </summary>
public partial class SettingsWindow : Window
{
public SettingsWindow()
{
InitializeComponent();
ComboBoxSerial... | mit | C# |
04dd4be2c85a86a0d6863fc6089d7b90f50de7a4 | Fix CSS bundles | vtfuture/BForms,vtfuture/BForms,vtfuture/BForms | BForms.Docs/App_Start/BundleConfig.cs | BForms.Docs/App_Start/BundleConfig.cs | using System.Web;
using System.Web.Optimization;
namespace BForms.Docs
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add... | using System.Web;
using System.Web.Optimization;
namespace BForms.Docs
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add... | mit | C# |
01742e17eeed5eb63d5bef5f77db80e73fbeda08 | modify IExchangeRatesProvider to provide support for ExchangeRates from previous years | 180254/KursyWalut | KursyWalut/Provider/IExchangeRatesProvider.cs | KursyWalut/Provider/IExchangeRatesProvider.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace KursyWalut.Provider
{
internal interface IExchangeRatesProvider : IObservable<int>
{
Task<IList<int>> GetAvailableYears();
Task<IList<DateTime>> GetAvailableDates(int year);
Task<IList<ExchangeRate>> ... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace KursyWalut.Provider
{
internal interface IExchangeRatesProvider : IObservable<int>
{
Task<IList<DateTime>> GetAvailableDates();
Task<IList<ExchangeRate>> GetExchangeRates(DateTime day);
Task<IList<E... | mit | C# |
3621e9fc550dd8dcd00bf9955cf276a66459bda5 | Save chart/plot in var. | joshuadeleon/typingclassifier,joshuadeleon/typingclassifier,joshuadeleon/typingclassifier | ML.TypingClassifier/Views/Home/Results.cshtml | ML.TypingClassifier/Views/Home/Results.cshtml | @{
ViewBag.Title = "Typing Profile Results";
}
@section scripts
{
<script type="text/javascript">
$(function() {
var points
, features
, plot;
$.getJSON('/sink/points', function(data) {
points = data;
features = {
wpm: ['WPM'].concat(point... | @{
ViewBag.Title = "Typing Profile Results";
}
@section scripts
{
<script type="text/javascript">
$(function() {
var points
, features;
$.getJSON('/sink/points', function(data) {
points = data;
features = {
wpm: ['WPM'].concat(points[0].Values),
... | mit | C# |
73c40996ff3fc4e84383b4e2b159faf82b554d58 | Clean up DisplayMode struct | smoogipooo/osu-framework,ppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework | osu.Framework/Platform/DisplayMode.cs | osu.Framework/Platform/DisplayMode.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Drawing;
namespace osu.Framework.Platform
{
/// <summary>
/// Represents a display mode on a given <see cref="Display"/>.
/// </su... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Drawing;
namespace osu.Framework.Platform
{
/// <summary>
/// Represents a display mode on a given <see cref="Display"/>.
/// </su... | mit | C# |
623ab1ef3be8f3ef21b71797622894690b21d735 | Update time ramp preview on setting change | 2yangk23/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,EVAST9919/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu-new,peppy/osu,johnneijzen/osu,NeoAdonis/osu,ppy/osu,smoogipooo/osu,EVAST9919/osu,peppy/osu,2yangk23/osu,johnneijzen/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,peppy/osu | osu.Game/Rulesets/Mods/ModTimeRamp.cs | osu.Game/Rulesets/Mods/ModTimeRamp.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
using osu.Game.Config... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
using osu.Game.Config... | mit | C# |
caca9834ce5ee24e03404a91edeb9b6f4064b5e9 | Fix MySqlQuoterTest quote value char | fluentmigrator/fluentmigrator,FabioNascimento/fluentmigrator,schambers/fluentmigrator,igitur/fluentmigrator,mstancombe/fluentmig,jogibear9988/fluentmigrator,mstancombe/fluentmig,MetSystem/fluentmigrator,modulexcite/fluentmigrator,stsrki/fluentmigrator,IRlyDontKnow/fluentmigrator,wolfascu/fluentmigrator,dealproc/fluentm... | src/FluentMigrator.Tests/Unit/Generators/MySql/MySqlQuoterTest.cs | src/FluentMigrator.Tests/Unit/Generators/MySql/MySqlQuoterTest.cs | using System;
using System.Globalization;
using System.Threading;
using FluentMigrator.Model;
using FluentMigrator.Runner.Generators;
using FluentMigrator.Runner.Generators.Generic;
using FluentMigrator.Runner.Generators.Jet;
using FluentMigrator.Runner.Generators.MySql;
using FluentMigrator.Runner.Generators.Oracle;
... | using System;
using System.Globalization;
using System.Threading;
using FluentMigrator.Model;
using FluentMigrator.Runner.Generators;
using FluentMigrator.Runner.Generators.Generic;
using FluentMigrator.Runner.Generators.Jet;
using FluentMigrator.Runner.Generators.MySql;
using FluentMigrator.Runner.Generators.Oracle;
... | apache-2.0 | C# |
0a3ef1d0e2f27a63d0f9a1e893cf674ea4e37faa | Add service ServiceKnownTypes for object[] and Dictionary<string, object> so that basic arrays can be passed two and from functions | NumbersInternational/CefSharp,ruisebastiao/CefSharp,zhangjingpu/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp,joshvera/CefSharp,joshvera/CefSharp,twxstar/CefSharp,ITGlobal/CefSharp,illfang/CefSharp,rover886/CefSharp,rlmcneary2/CefSharp,yoder/CefSharp,haozhouxu/CefSharp,battewr/CefSharp,rlmcneary2/CefSharp,... | CefSharp/Internals/IBrowserProcess.cs | CefSharp/Internals/IBrowserProcess.cs | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System.Collections.Generic;
using System.ServiceModel;
namespace CefSharp.Internals
{
[ServiceContract(CallbackContract = typeof(IRende... | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System.ServiceModel;
namespace CefSharp.Internals
{
[ServiceContract(CallbackContract = typeof(IRenderProcess), SessionMode = SessionMo... | bsd-3-clause | C# |
910f49764db7c9aa42116090b801cd6d8aac1440 | Tidy up sum a bit by moving where we cast and negate to the line below. | lukedrury/super-market-kata | supermarketkata/engine/rules/PercentageDiscount.cs | supermarketkata/engine/rules/PercentageDiscount.cs | using System;
using engine.core;
namespace engine.rules
{
public class PercentageDiscount : Rule
{
private readonly string m_ApplicableItemName;
private readonly double m_Percentage;
public PercentageDiscount(string applicableItemName, int percentage)
{
m_Applicabl... | using System;
using engine.core;
namespace engine.rules
{
public class PercentageDiscount : Rule
{
private readonly string m_ApplicableItemName;
private readonly double m_Percentage;
public PercentageDiscount(string applicableItemName, int percentage)
{
m_Applicabl... | mit | C# |
7900b333ea4b03a7df461252948fc77a60ae8e29 | Fix modifier of ANTLR parser. | exKAZUu/Code2Xml,exKAZUu/Code2Xml,exKAZUu/Code2Xml,exKAZUu/Code2Xml | Code2Xml.Tools/AntlrHelper/Program.cs | Code2Xml.Tools/AntlrHelper/Program.cs | #region License
// Copyright (C) 2011-2013 Kazunori Sakamoto
//
// 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 require... | #region License
// Copyright (C) 2011-2013 Kazunori Sakamoto
//
// 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 require... | apache-2.0 | C# |
827c6d4a3e35ae85ee8fe01627c31db06735bb45 | Use withPrecomilation variable | reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET | tests/React.Tests.Integration/ServerRenderTests.cs | tests/React.Tests.Integration/ServerRenderTests.cs | using System;
using System.IO;
using System.Text;
using JavaScriptEngineSwitcher.ChakraCore;
using JavaScriptEngineSwitcher.Core;
using Xunit;
namespace React.Tests.Integration
{
public class ServerRenderTests : IDisposable
{
public ServerRenderTests()
{
Initializer.Initialize(registration => registration.AsS... | using System;
using System.IO;
using System.Text;
using JavaScriptEngineSwitcher.ChakraCore;
using JavaScriptEngineSwitcher.Core;
using Xunit;
namespace React.Tests.Integration
{
public class ServerRenderTests : IDisposable
{
public ServerRenderTests()
{
Initializer.Initialize(registration => registration.AsS... | mit | C# |
3039fbe43b193d57beb9b099c0a44d42e74e51ee | Increase AssemblyVersion | inputfalken/Sharpy | Sharpy/Properties/AssemblyInfo.cs | Sharpy/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("S... | 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("S... | mit | C# |
f3ac49474c9f354c399e8f9d1b487829770b29aa | Use the same reference for all method calls | jmptrader/WampSharp,jmptrader/WampSharp,jmptrader/WampSharp | src/net45/WampSharp.Default/WAMP2/V2/DefaultWampChannelFactory.cs | src/net45/WampSharp.Default/WAMP2/V2/DefaultWampChannelFactory.cs | using WampSharp.Binding;
using WampSharp.V2.Binding;
using WampSharp.V2.Client;
using WampSharp.WebSocket4Net;
namespace WampSharp.V2
{
public class DefaultWampChannelFactory : WampChannelFactory
{
private readonly MessagePackObjectBinding mMsgpackBinding = new MessagePackObjectBinding();
priv... | using WampSharp.Binding;
using WampSharp.V2.Binding;
using WampSharp.V2.Client;
using WampSharp.WebSocket4Net;
namespace WampSharp.V2
{
public class DefaultWampChannelFactory : WampChannelFactory
{
public IWampChannel CreateChannel<TMessage>(string address,
... | bsd-2-clause | C# |
65159771a8fb3d9885cabd12a57dd94d5a036151 | Fix build error in LoggerMock | SAEnergy/Infrastructure,SAEnergy/Superstructure,SAEnergy/Infrastructure | Src/Test/Test.Mocks/LoggerMock.cs | Src/Test/Test.Mocks/LoggerMock.cs | using Core.Interfaces.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
namespace Test.Mocks
{
public class LoggerMock : ILogger
{
public bool IsRunning { get; private set; }
publ... | using Core.Interfaces.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.CompilerServices;
namespace Test.Mocks
{
public class LoggerMock : ILogger
{
public bool IsRunning { get; }
public void AddLo... | mit | C# |
85461855a3fd94254d13e524eb7dd448763311b0 | fix log message | AdamsLair/duality | Test/Core/InitDualityAttribute.cs | Test/Core/InitDualityAttribute.cs | using System;
using Duality.Launcher;
using NUnit.Framework;
using NUnit.Framework.Interfaces;
namespace Duality.Tests
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public class InitDualityAttribute : Attribute, ITestAction
{
private string oldEnvDir = null;
private CorePlugin u... | using System;
using Duality.Launcher;
using NUnit.Framework;
using NUnit.Framework.Interfaces;
namespace Duality.Tests
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public class InitDualityAttribute : Attribute, ITestAction
{
private string oldEnvDir = null;
private CorePlugin u... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.