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 |
|---|---|---|---|---|---|---|---|---|
dd15d2daf02433c83c3ce1a6212ef27e0e91de77 | Update WalletWasabi/BitcoinCore/Monitoring/RpcFeeProvider.cs | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/BitcoinCore/Monitoring/RpcFeeProvider.cs | WalletWasabi/BitcoinCore/Monitoring/RpcFeeProvider.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NBitcoin;
using NBitcoin.RPC;
using WalletWasabi.Bases;
using WalletWasabi.Helpers;
namespace WalletWasabi.BlockchainAnalysis.FeesEstimation
{
public class RpcFeeProvider : PeriodicRunner, IF... | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NBitcoin;
using NBitcoin.RPC;
using WalletWasabi.Bases;
using WalletWasabi.Helpers;
namespace WalletWasabi.BlockchainAnalysis.FeesEstimation
{
public class RpcFeeProvider : PeriodicRunner, IF... | mit | C# |
778a78ebdfdd349da81458fbc076e612b8d8952d | Update Lab04.cs | fodrh1201/fodrh1201 | HW140327/Lab04/Lab04.cs | HW140327/Lab04/Lab04.cs | using System;
namespace next
{
public class Circle
{
public int x;
public int y;
public int r;
}
class CircleTest
{
static void Main(string[] args)
{
Circle c1, c2;
string tempstr;
c1 = new Circle();
c2 = new Circle();
Console.WriteLine("원충돌 테스트");
Console.Write("circle1 X? ");
... | using System;
namespace next
{
public class Circle
{
public int x;
public int y;
public int r;
}
class CircleTest
{
static void Main(string[] args)
{
Circle c1, c2;
string tempstr;
c1 = new Circle();
c2 = new Circle();
Console.WriteLine("원충돌 테스트");
Console.Write("circle1 X? ");
... | mit | C# |
8bf697bfc48966d148a79e39280634e9515c3965 | Add actor json processor | ronsanzone/ImdbKit.net | ImdbKit/ImdbClient.cs | ImdbKit/ImdbClient.cs | using System;
using System.Collections.Generic;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace ImdbKit
{
public class ImdbClient : IImdbClient
{
public ActorSearch testJsonConnection()
{
var processor =
new ActorJsonResponseProcessor(... | using System;
using System.Collections.Generic;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace ImdbKit
{
public class ImdbClient : IImdbClient
{
public ActorSearch testJsonConnection()
{
var client = new WebClient();
client.Headers.Add("U... | mit | C# |
026f83024f5ddf697369e5e3e3936d66f22601b6 | Make It Rain | TheMagnificentSeven/MakeItRain | Assets/Scripts/MakeItRain.cs | Assets/Scripts/MakeItRain.cs | using UnityEngine;
using System.Collections;
public class MakeItRain : MonoBehaviour
{
private int numObjects = 20;
private float minX = -4f;
private float maxX = 4f;
private GameObject rain;
private GameObject rainClone;
// Use this for initialization
void Start()
{
// Here... | using UnityEngine;
using System.Collections;
public class MakeItRain : MonoBehaviour
{
private int numObjects = 10;
private float minX = -4f;
private float maxX = 4f;
private GameObject rain;
private GameObject rainClone;
// Use this for initialization
void Start()
{
// Here... | mit | C# |
aeabdcf100f064f737fa8d995aeca3d7927a5142 | Make version 4 digits to fix replacement regex | badescuga/kudu,chrisrpatterson/kudu,sitereactor/kudu,EricSten-MSFT/kudu,shrimpy/kudu,mauricionr/kudu,kali786516/kudu,kenegozi/kudu,kali786516/kudu,shrimpy/kudu,bbauya/kudu,MavenRain/kudu,kenegozi/kudu,sitereactor/kudu,shibayan/kudu,juoni/kudu,badescuga/kudu,barnyp/kudu,oliver-feng/kudu,juvchan/kudu,sitereactor/kudu,juo... | Common/CommonAssemblyInfo.cs | Common/CommonAssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Outercurve Foundation")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyConfiguration("")]
// If you change this version, make sure to change Build\build.proj accordingly
[as... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Outercurve Foundation")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyConfiguration("")]
// If you change this version, make sure to change Build\build.proj accordingly
[as... | apache-2.0 | C# |
24f101b7ff1688de49ee4560722eab38a1451763 | Fix Toggle button unchecking | hwthomas/xwt,lytico/xwt,akrisiun/xwt,hamekoz/xwt,cra0zy/xwt,residuum/xwt,mminns/xwt,directhex/xwt,iainx/xwt,antmicro/xwt,steffenWi/xwt,sevoku/xwt,mminns/xwt,mono/xwt,TheBrainTech/xwt | Xwt.WPF/Xwt.WPFBackend/ToggleButtonBackend.cs | Xwt.WPF/Xwt.WPFBackend/ToggleButtonBackend.cs | //
// ToggleButtonBackend.cs
//
// Author:
// Eric Maupin <ermau@xamarin.com>
//
// Copyright (c) 2012 Xamarin, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without res... | //
// ToggleButtonBackend.cs
//
// Author:
// Eric Maupin <ermau@xamarin.com>
//
// Copyright (c) 2012 Xamarin, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without res... | mit | C# |
cd2ba19bd7a4242bf8e89d555e2994641239f142 | Change summary of server's PATCH_SEND_INFO | HelloKitty/Booma.Proxy | src/Booma.Proxy.Packets.PatchServer/Payloads/Server/PatchingInformationPayload.cs | src/Booma.Proxy.Packets.PatchServer/Payloads/Server/PatchingInformationPayload.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
//0x0C 0x00 0x11 0x00
//PatchingByteLength{4} PatchFileCount{4}
//Tethella implementation: https://github.com/justnoxx/psobb-tethealla/blob/mas... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
//0x0C 0x00 0x11 0x00
//PatchingByteLength{4} PatchFileCount{4}
//Tethella implementation: https://github.com/justnoxx/psobb-tethealla/blob/mas... | agpl-3.0 | C# |
f73142c50f841711baf3a5354a919cdbb51d97de | Remove for loop | peppy/osu,peppy/osu,ppy/osu,ppy/osu,ppy/osu,peppy/osu | osu.Game.Rulesets.Osu/Difficulty/Skills/Flashlight.cs | osu.Game.Rulesets.Osu/Difficulty/Skills/Flashlight.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.Game.Rulesets.Difficulty.Preprocessing;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Difficulty.Evaluators;
using... | // 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.Game.Rulesets.Difficulty.Preprocessing;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Difficulty.Evaluators;
using... | mit | C# |
93029fd5482d4fec1f493bfb83f41417283dcd67 | Remove mouseWheelCheckbox from InputSettings player overlay | naoey/osu,peppy/osu,johnneijzen/osu,DrabWeb/osu,smoogipoo/osu,NeoAdonis/osu,DrabWeb/osu,ppy/osu,naoey/osu,smoogipoo/osu,UselessToucan/osu,naoey/osu,NeoAdonis/osu,2yangk23/osu,EVAST9919/osu,NeoAdonis/osu,peppy/osu,peppy/osu-new,2yangk23/osu,ppy/osu,ZLima12/osu,smoogipooo/osu,smoogipoo/osu,johnneijzen/osu,UselessToucan/o... | osu.Game/Screens/Play/PlayerSettings/InputSettings.cs | osu.Game/Screens/Play/PlayerSettings/InputSettings.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Configuration;
namespace osu.Game.Screens.Play.PlayerSettings
{
public class InputSett... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Configuration;
namespace osu.Game.Screens.Play.PlayerSettings
{
public class InputSett... | mit | C# |
86e95a64aa4cc0eaeec8b384ce515e6008c18e7a | Fix text paramater brackets not being removed | Barleytree/NitoriWare,uulltt/NitoriWare,plrusek/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare,NitorInc/NitoriWare | Assets/Scripts/Helper/TextHelper.cs | Assets/Scripts/Helper/TextHelper.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Text.RegularExpressions;
public class TextHelper
{
private static Dictionary<string, string> variables;
/// <summary>
/// Gets localized text and checks for redundancies, use this for mos... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Text.RegularExpressions;
public class TextHelper
{
private static Dictionary<string, string> variables;
/// <summary>
/// Gets localized text and checks for redundancies, use this for mos... | mit | C# |
6d6b9e2ba6b62fe83f87c32887ee33c129da4761 | disable test not passing because of bitpay | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer.Tests/UnitTestPeusa.cs | BTCPayServer.Tests/UnitTestPeusa.cs | using NBitcoin;
using NBitcoin.DataEncoders;
using NBitpayClient;
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace BTCPayServer.Tests
{
// Helper class for testing functionality and generating data needed during coding/debuging
public class UnitTestPeusa
{
... | using NBitcoin;
using NBitcoin.DataEncoders;
using NBitpayClient;
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace BTCPayServer.Tests
{
// Helper class for testing functionality and generating data needed during coding/debuging
public class UnitTestPeusa
{
... | mit | C# |
be589ef4df09d9c5eb9072d395515ee3b0cb1dbb | Fix Xml documentation compilation warning | jorgeamado/libgit2sharp,shana/libgit2sharp,Zoxive/libgit2sharp,rcorre/libgit2sharp,dlsteuer/libgit2sharp,xoofx/libgit2sharp,OidaTiftla/libgit2sharp,red-gate/libgit2sharp,vivekpradhanC/libgit2sharp,AMSadek/libgit2sharp,ethomson/libgit2sharp,nulltoken/libgit2sharp,jorgeamado/libgit2sharp,Skybladev2/libgit2sharp,rcorre/li... | LibGit2Sharp/FetchOptions.cs | LibGit2Sharp/FetchOptions.cs | using LibGit2Sharp.Handlers;
namespace LibGit2Sharp
{
/// <summary>
/// Collection of parameters controlling Fetch behavior.
/// </summary>
public sealed class FetchOptions
{
/// <summary>
/// Specifies the tag-following behavior of the fetch operation.
/// <para>
/... | using LibGit2Sharp.Handlers;
namespace LibGit2Sharp
{
/// <summary>
/// Collection of parameters controlling Fetch behavior.
/// </summary>
public sealed class FetchOptions
{
/// <summary>
/// Specifies the tag-following behavior of the fetch operation.
/// <para>
/... | mit | C# |
54363cc27bb1e1354627e71ba6a61468f9579176 | Update to beta1 for next release | bungeemonkee/Configgy | Configgy/Properties/AssemblyInfo.cs | Configgy/Properties/AssemblyInfo.cs | using System.Resources;
using System.Reflection;
// 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("Configgy")]
[assembly: AssemblyDescription("Configgy: C... | using System.Resources;
using System.Reflection;
// 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("Configgy")]
[assembly: AssemblyDescription("Configgy: C... | mit | C# |
ff030eef43255a425233ca256bcac9876c9a5dd9 | Update tests. | willegetz/NoTPK.APIWrapper.ObsidianPortal | NoTPK.APIWrapper.ObsidianPortal/APIWrapper.ObsidianPortal.Tests/API_Users_Tests.cs | NoTPK.APIWrapper.ObsidianPortal/APIWrapper.ObsidianPortal.Tests/API_Users_Tests.cs | using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NoTPK.APIWrapper.ObsidianPortal;
using APIWrapper.ObsidianPortal.Tests.Support;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using ApprovalTests.Reporters;
using Appr... | using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NoTPK.APIWrapper.ObsidianPortal;
using APIWrapper.ObsidianPortal.Tests.Support;
namespace APIWrapper.ObsidianPortal.Tests
{
[TestClass]
public class API_Users_Tests
{
... | apache-2.0 | C# |
a617eeed997ca9568c6ff90a90ccf09eeebc3544 | 重构102 | robertoye/CodeGenerator | OraMetaData/SourceUtility.cs | OraMetaData/SourceUtility.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Oracle.DataAccess.Client;
namespace OraMetaData
{
public class SourceUtility
{
public static DataTable GetTableDefinition(string strConn, string strFilter)
{
using (OracleConnection ocn = new Oracl... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Oracle.DataAccess.Client;
namespace OraMetaData
{
public class SourceUtility
{
public static DataTable GetTableDefinition(string strConn, string strFilter)
{
using (OracleConnection ocn = new Oracl... | unlicense | C# |
ec28cca51481b208c44e3b6629690465219fa7cd | Bump version to 15.0.4.33402 | HearthSim/HearthDb | HearthDb/Properties/AssemblyInfo.cs | HearthDb/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("Hea... | 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("Hea... | mit | C# |
870f25a658d46e08a56fff49fcd0444928a1dc12 | Fix ExceptionMessageFormat Typo (#523) | paulcbetts/splat | src/Splat/Logging/ConsoleLogger.cs | src/Splat/Logging/ConsoleLogger.cs | // Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// 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 full license information.
using System;
using System.Comp... | // Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// 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 full license information.
using System;
using System.Comp... | mit | C# |
d27ada8d05e604289c5d708615f68ee329dabbfa | Throw exception when service is not registered. | BraventIT/LiteMVVMForms | LiteMVVMForms/LiteServiceLocator.cs | LiteMVVMForms/LiteServiceLocator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LiteMVVMForms
{
public class LiteServiceLocator
{
private static LiteServiceLocator instance;
private LiteServiceLocator()
{
services = new Diction... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LiteMVVMForms
{
public class LiteServiceLocator
{
private static LiteServiceLocator instance;
private LiteServiceLocator()
{
services = new Diction... | mit | C# |
02b02e0dd57c7e188f046e7a5c50801c67ded2a3 | Update example | 0xd4d/dnlib | Examples/Example5.cs | Examples/Example5.cs | using System;
using System.IO;
using dnlib.DotNet;
using dnlib.PE;
using dnlib.IO;
namespace dnlib.Examples {
/// <summary>
/// Dumps all PE sections to disk
/// </summary>
public class Example5 {
public static void Run() {
string sectionFileName = @"c:\section{0}.bin";
// Open the current mscorlib
va... | using System;
using System.IO;
using dnlib.DotNet;
using dnlib.PE;
using dnlib.IO;
namespace dnlib.Examples {
/// <summary>
/// Dumps all PE sections to disk
/// </summary>
public class Example5 {
public static void Run() {
string sectionFileName = @"c:\section{0}.bin";
// Open the current mscorlib
va... | mit | C# |
51f74864340f82d6a7382532a9fd524409b523ba | Add (0, 0) constructoro to NotifyingPoint to avoid empty Point exception | charlenni/Mapsui,pauldendulk/Mapsui,charlenni/Mapsui | Mapsui/Geometries/NotifyingPoint.cs | Mapsui/Geometries/NotifyingPoint.cs | using System.ComponentModel;
namespace Mapsui.Geometries
{
class NotifyingPoint : Point, INotifyPropertyChanged
{
public NotifyingPoint() : base(0, 0) // Initialize with 0, 0 because otherwise is EMPTY and will throw when accessed.
{}
public new double X
{
get { re... | using System.ComponentModel;
namespace Mapsui.Geometries
{
class NotifyingPoint : Point, INotifyPropertyChanged
{
public new double X
{
get { return base.X; }
set
{
base.X = value;
OnPropertyChanged("X");
... | mit | C# |
95ec24a15ebc91fdb79f1d9acd22cfa1a2b1e273 | Improve mouse grabbing on unpause in Spider | uulltt/NitoriWare,NitorInc/NitoriWare,NitorInc/NitoriWare,plrusek/NitoriWare,Barleytree/NitoriWare,Barleytree/NitoriWare | Assets/Resources/Microgames/Spider/Scripts/SpiderFood.cs | Assets/Resources/Microgames/Spider/Scripts/SpiderFood.cs | using UnityEngine;
using System.Collections;
public class SpiderFood : MonoBehaviour
{
public float grabRadius;
public float initialScale;
public bool grabbed, eaten;
public float particleRate;
public float y;
private SpriteRenderer spriteRenderer;
private ParticleSystem particles;
void Awake ()
{
part... | using UnityEngine;
using System.Collections;
public class SpiderFood : MonoBehaviour
{
public float grabRadius;
public float initialScale;
public bool grabbed, eaten;
public float particleRate;
public float y;
private SpriteRenderer spriteRenderer;
private ParticleSystem particles;
void Awake ()
{
part... | mit | C# |
8b294583842a67805f609cc1605153f917e81203 | Add StayInParentBorder functionality. | Ring-r/GridGraphics | GridGraphics/Grid.cs | GridGraphics/Grid.cs | using System;
using System.Drawing;
namespace GridGraphics
{
class Grid
{
public readonly Anchor AnchorX = new Anchor();
public readonly Anchor AnchorY = new Anchor();
public readonly AnchorGrid AnchorGridX = new AnchorGrid();
public readonly AnchorGrid AnchorGridY = new Ancho... | using System;
using System.Drawing;
namespace GridGraphics
{
class Grid
{
public readonly Anchor AnchorX = new Anchor();
public readonly Anchor AnchorY = new Anchor();
public readonly AnchorGrid AnchorGridX = new AnchorGrid();
public readonly AnchorGrid AnchorGridY = new Ancho... | unlicense | C# |
ef2624f37e95b9b12262c38672071a5d0dbed58f | Add new file userAuth.cpl/Droid/MainActivity.cs | ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl,ArcanaMagus/userAuth.cpl | userAuth.cpl/Droid/MainActivity.cs | userAuth.cpl/Droid/MainActivity.cs | �
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace userAuth.cpl.Droid
{
[Activity (Label = "userAuth.cpl.Droid", Icon = "@drawable/icon"... | �
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace userAuth.cpl.Droid
{
[Activity (Label = "userAuth.cpl.Droid", Icon = "@drawable/icon", Mai... | mit | C# |
6fffe3075e48c696c1dabf53090a4bea2bdfb6aa | Add xmldoc to `SetImage` | ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework | osu.Framework/Platform/Clipboard.cs | osu.Framework/Platform/Clipboard.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 SixLabors.ImageSharp;
namespace osu.Framework.Platform
{
public abstract class Clipboard
{
public abstract string GetText();
public abstr... | // 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 SixLabors.ImageSharp;
namespace osu.Framework.Platform
{
public abstract class Clipboard
{
public abstract string GetText();
public abstr... | mit | C# |
9a5b52e07528bb12fd66f54f5ef47a9e600e0031 | Add image format | dirkrombauts/SpecLogLogoReplacer | UI/MainWindow.xaml.cs | UI/MainWindow.xaml.cs | using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO.Abstractions;
using System.Windows;
namespace SpecLogLogoReplacer.UI
{
public partial class MainWindow
{
private readonly IFileSystem fileSystem;
public MainWindow()
{
InitializeComponent();
this.fileSystem... | using System;
using System.Drawing;
using System.IO.Abstractions;
using System.Windows;
namespace SpecLogLogoReplacer.UI
{
public partial class MainWindow
{
private readonly IFileSystem fileSystem;
public MainWindow()
{
InitializeComponent();
this.fileSystem = new FileSystem();
}
... | isc | C# |
6ac56c298030a2c5e2027a427bb26e36cfea3ec9 | Update GenerateThumbnailOfWorksheet.cs | asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,ma... | Examples/CSharp/Articles/GenerateThumbnailOfWorksheet.cs | Examples/CSharp/Articles/GenerateThumbnailOfWorksheet.cs | using System.IO;
using Aspose.Cells;
using Aspose.Cells.Rendering;
using System.Drawing;
namespace Aspose.Cells.Examples.Articles
{
public class GenerateThumbnailOfWorksheet
{
public static void Main()
{
//ExStart:1
// The path to the documents directory.
st... | using System.IO;
using Aspose.Cells;
using Aspose.Cells.Rendering;
using System.Drawing;
namespace Aspose.Cells.Examples.Articles
{
public class GenerateThumbnailOfWorksheet
{
public static void Main()
{
// The path to the documents directory.
string dataDir = Aspose.Ce... | mit | C# |
937ea62b06873fa264d7fd83acfa75199c095b14 | Add checks for expected arguments. | peterlanoie/aspnet-mvc-slack | src/shared/WebHookExceptionReporter.cs | src/shared/WebHookExceptionReporter.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using WebHooks = Slack.Webhooks;
namespace Pelasoft.AspNet.Mvc.Slack
{
public static class WebHookExceptionReporter
{
public static void ReportException(Exception ex, WebHookOptions options)
{
if (options == null)
{
t... | using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using WebHooks = Slack.Webhooks;
namespace Pelasoft.AspNet.Mvc.Slack
{
public static class WebHookExceptionReporter
{
public static void ReportException(Exception ex, WebHookOptions options)
{
var client = new WebHooks.Slack... | mit | C# |
1c8e17cf11158720af08f0cda6e5999b68879815 | Fix the default background parallax being set incorrectly when no screen is present | smoogipooo/osu,smoogipoo/osu,ppy/osu,peppy/osu,smoogipoo/osu,peppy/osu-new,ppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu | osu.Game/Screens/OsuScreenStack.cs | osu.Game/Screens/OsuScreenStack.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.Screens;
using osu.Game.Graphics.Containers;
namespace osu.Game.Screens
{
public cl... | // 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.Screens;
using osu.Game.Graphics.Containers;
namespace osu.Game.Screens
{
public cl... | mit | C# |
5630eb14c2d2a08e426c7c496fd24dbd40c6b865 | Stop service "properly" | TorchAPI/Torch | Torch.Server/TorchService.cs | Torch.Server/TorchService.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceProcess;
using System.Threading;
using NLog;
using Torch.API;
namespace Torch.Server
{
class TorchService : ServiceBase
{
p... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceProcess;
using NLog;
using Torch.API;
namespace Torch.Server
{
class TorchService : ServiceBase
{
public const string Name = "Torch (SEDS)";
... | apache-2.0 | C# |
08dc5e2018c58391b8acc89777a61018391cac5a | Make it disposable | undees/irule,undees/irule | lib/irule.cs | lib/irule.cs | // The code is new, but the idea is from http://wiki.tcl.tk/9563
using System;
using System.Runtime.InteropServices;
namespace Irule
{
public class TclInterp : IDisposable
{
[DllImport("libtcl.dylib")]
protected static extern IntPtr Tcl_CreateInterp();
[DllImport("libtcl.dylib")]
... | // The code is new, but the idea is from http://wiki.tcl.tk/9563
using System;
using System.Runtime.InteropServices;
namespace Irule
{
public class TclInterp
{
[DllImport("libtcl.dylib")]
protected static extern IntPtr Tcl_CreateInterp();
[DllImport("libtcl.dylib")]
protected ... | mit | C# |
36af868f447d72f29641b61fbac609df837e26b2 | Add missing licence header. | peppy/osu-new,peppy/osu,UselessToucan/osu,Frontear/osuKyzer,ppy/osu,naoey/osu,peppy/osu,Damnae/osu,NeoAdonis/osu,smoogipoo/osu,Drezi126/osu,smoogipoo/osu,DrabWeb/osu,johnneijzen/osu,ppy/osu,smoogipoo/osu,2yangk23/osu,2yangk23/osu,naoey/osu,ppy/osu,UselessToucan/osu,ZLima12/osu,ZLima12/osu,Nabile-Rahmani/osu,EVAST9919/o... | osu.Game/Users/UpdateableAvatar.cs | osu.Game/Users/UpdateableAvatar.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 osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Users
{
/// <summary>
/// An avatar which can update to a ne... | using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Users
{
/// <summary>
/// An avatar which can update to a new user when needed.
/// </summary>
public class UpdateableAvatar : Container
{
private Avatar displayedAvatar;
private ... | mit | C# |
219c851c75ddea196934372d8bf350a5a5ca4024 | use different name for different unhandled exception | qianlifeng/Wox,Wox-launcher/Wox,qianlifeng/Wox,Wox-launcher/Wox,qianlifeng/Wox | Wox/Helper/ErrorReporting.cs | Wox/Helper/ErrorReporting.cs | using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using System.Windows.Threading;
using NLog;
using Wox.Infrastructure.Exception;
namespace Wox.Helper
{
public static class ErrorReporting
{
private static void Report(Exception e, [CallerMemberName] string method = "")
... | using System;
using System.Threading.Tasks;
using System.Windows.Threading;
using NLog;
using Wox.Infrastructure;
using Wox.Infrastructure.Exception;
namespace Wox.Helper
{
public static class ErrorReporting
{
private static void Report(Exception e)
{
var logger = LogManager.GetLog... | mit | C# |
5c2ea0f417eb027d06100de18e8fe93ab734dabb | Handle nulls. | wasabii/Cogito,wasabii/Cogito | Cogito.Core/UriBuilderExtensions.cs | Cogito.Core/UriBuilderExtensions.cs | using System;
namespace Cogito
{
/// <summary>
/// Various extensions for working with <see cref="UriBuilder"/> instances.
/// </summary>
public static class UriBuilderExtensions
{
/// <summary>
/// Appends the given name and value as query arguments to the <see cref="UriBuilder"... | using System;
namespace Cogito
{
/// <summary>
/// Various extensions for working with <see cref="UriBuilder"/> instances.
/// </summary>
public static class UriBuilderExtensions
{
/// <summary>
/// Appends the given name and value as query arguments to the <see cref="UriBuilder"... | mit | C# |
c5a30b0cf09cad5ad6fc7fdd4b745a9a9fddbd30 | Clean up of app | WildGums/LogViewer | src/LogViewer/App.xaml.cs | src/LogViewer/App.xaml.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="App.xaml.cs" company="Orcomp development team">
// Copyright (c) 2008 - 2014 Orcomp development team. All rights reserved.
// </copyright>
// -----------------------------------... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using Catel.IoC;
using Orchestra.Markup;
using Orchestra.Services;
using Orchestra.Views;
namespace LogViewer
{
/// <sum... | mit | C# |
b68194fd7788124b042beec16a7dc388c15f8d22 | update about info | lanayotech/vagrant-manager-windows | Lanayo.VagrantManager/Windows/AboutWindow.cs | Lanayo.VagrantManager/Windows/AboutWindow.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Lanayo.Vagrant_Manager.Windows {
public partial class AboutWindo... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Lanayo.Vagrant_Manager.Windows {
public partial class AboutWindo... | mit | C# |
37e3a47e4fa896f4ada4a7be7b4f87cc07f7fd90 | Delete sender and edit constructor functions | muhammedikinci/FuzzyCore | FuzzyCore/CommandClasses/GetFile.cs | FuzzyCore/CommandClasses/GetFile.cs | using FuzzyCore.Data;
using FuzzyCore.Server;
using System;
using System.IO;
namespace FuzzyCore.Commands
{
public class GetFile
{
ConsoleMessage Message = new ConsoleMessage();
private String FilePath;
private String FileName;
private JsonCommand mCommand;
public GetFi... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using FuzzyCore.Server;
namespace FuzzyCore.Commands
{
public class GetFile
{
ConsoleMessage Message = new ConsoleMessa... | mit | C# |
787a018c6f3d73a24515255b21c6c2554c64fe5f | Add 5 line | Pesh2003/MyFirstDemoInGitHub | HelloSharp/ThisTimeHello/Program.cs | HelloSharp/ThisTimeHello/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ThisTimeHello
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Helo Melo :)");
Console.WriteLine("Add another feature to t... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ThisTimeHello
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Helo Melo :)");
Console.WriteLine("Add another feature to t... | mit | C# |
b3b1c62ce9cb3b676b0df4f353e4aa1b8f18e6ca | Fix urls | mono0926/xxx-server-proto,mono0926/xxx-server-proto,mono0926/xxx-server-proto,mono0926/xxx-server-proto | JoinProto/App_Start/WebApiConfig.cs | JoinProto/App_Start/WebApiConfig.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Owin.Security.OAuth;
using Newtonsoft.Json.Serialization;
namespace JoinProto
{
public static class WebApiConfig
{
#if DEBUG
public const string BaseUrl = "http://localhost:... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Owin.Security.OAuth;
using Newtonsoft.Json.Serialization;
namespace JoinProto
{
public static class WebApiConfig
{
#if DEBUG
public const string BaseUrl = "http://joinproto.... | mit | C# |
df8da304379bafeb89edf9a65ff174a3b75eb07e | Add write retry mechanism into the client. | darkriszty/NetworkCardsGame | EchoClient/Program.cs | EchoClient/Program.cs | using System;
using System.IO;
using System.Net.Sockets;
using System.Threading.Tasks;
namespace EchoClient
{
class Program
{
const int MAX_WRITE_RETRY = 3;
const int WRITE_RETRY_DELAY_SECONDS = 3;
static void Main(string[] args)
{
Task main = MainAsync(args);
main.Wait();
}
static async Task Ma... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace EchoClient
{
class Program
{
static void Main(string[] args)
{
Task main = MainAsync(args);
main.Wait();
}
static async Task MainAsy... | mit | C# |
ac8757924bec2a23ada39d84c2d99cbca7009ed6 | Make DefaultEffectHandler internal. | nessos/Eff | src/Eff.Core/DefaultEffectHandler.cs | src/Eff.Core/DefaultEffectHandler.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Eff.Core
{
internal class DefaultEffectHandler : EffectHandler
{
public override async ValueTask<ValueTuple> Handle<TResult>(IEffect<TRes... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Eff.Core
{
public class DefaultEffectHandler : EffectHandler
{
public override async ValueTask<ValueTuple> Handle<TResult>(IEffect<TResul... | mit | C# |
11f566be6f11e1882b163b6a9872e8146a2faf8f | Fix loops not always looking like they do in osu!. | Damnae/storybrew | common/Storyboarding/Display/LoopDecorator.cs | common/Storyboarding/Display/LoopDecorator.cs | using StorybrewCommon.Storyboarding.Commands;
using StorybrewCommon.Storyboarding.CommandValues;
using System;
using System.IO;
namespace StorybrewCommon.Storyboarding.Display
{
public class LoopDecorator<TValue> : ITypedCommand<TValue>
where TValue : CommandValue
{
private ITypedCommand<TValu... | using StorybrewCommon.Storyboarding.Commands;
using StorybrewCommon.Storyboarding.CommandValues;
using System;
using System.IO;
namespace StorybrewCommon.Storyboarding.Display
{
public class LoopDecorator<TValue> : ITypedCommand<TValue>
where TValue : CommandValue
{
private ITypedCommand<TValu... | mit | C# |
a9e63bbb58563e015a63dd50b67a1e7dcee52fcd | Check the more specific coercers first | bungeemonkee/Configgy | Configgy/Coercion/AggregateCoercer.cs | Configgy/Coercion/AggregateCoercer.cs | using System.Linq;
using System.Reflection;
namespace Configgy.Coercion
{
/// <summary>
/// A value coercer that simply aggregates the results from multiple other value coercers.
/// </summary>
public class AggregateCoercer : IValueCoercer
{
private readonly IValueCoercer[] _coercers;
... | using System.Linq;
using System.Reflection;
namespace Configgy.Coercion
{
/// <summary>
/// A value coercer that simply aggregates the results from multiple other value coercers.
/// </summary>
public class AggregateCoercer : IValueCoercer
{
private readonly IValueCoercer[] _coercers;
... | mit | C# |
52dacd7c4530ed182cc3596fff0b718100b4500e | move model validation to filter in Security module, return a 201 from POST | CityofSantaMonica/Orchard.ParkingData,RaghavAbboy/Orchard.ParkingData | Controllers/SensorEventsController.cs | Controllers/SensorEventsController.cs | using System;
using System.Linq;
using System.Web.Http;
using System.Web.Http.Cors;
using CSM.ParkingData.Models;
using CSM.ParkingData.Services;
using CSM.ParkingData.ViewModels;
using CSM.Security.Filters.Http;
using Orchard.Logging;
namespace CSM.ParkingData.Controllers
{
[EnableCors("*", null, "GE... | using System;
using System.Linq;
using System.Web.Http;
using System.Web.Http.Cors;
using CSM.ParkingData.Services;
using CSM.ParkingData.ViewModels;
using CSM.Security.Filters.Http;
using Orchard.Logging;
namespace CSM.ParkingData.Controllers
{
[EnableCors("*", null, "GET")]
public class SensorEv... | mit | C# |
3568e379d3a9470284d030081a28c5858853e96a | add some more functionality to the new keyboard class | ericrrichards/monorpg | src/MonoRpg/MonoRpg.Engine/System.cs | src/MonoRpg/MonoRpg.Engine/System.cs | namespace MonoRpg.Engine {
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
public static class System {
private static GraphicsDeviceManager _graphics;
public static void Init(GraphicsDeviceManager graphics) {
_gr... | namespace MonoRpg.Engine {
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
public static class System {
private static GraphicsDeviceManager _graphics;
public static void Init(GraphicsDeviceManager graphics) {
_gr... | mit | C# |
4dc5135934ddc9a268d1894fd288a1786b809996 | set app's main page to be the MasterDetailRootPage | wislon/xamforms-template | src/XamForms/XamForms.UI/App.xaml.cs | src/XamForms/XamForms.UI/App.xaml.cs | using Xamarin.Forms;
namespace XamForms.UI
{
public partial class App : Application
{
public App()
{
InitializeComponent();
// The root page of your application
var mdRoot = new MasterDetailRootPage();
MainPage = mdRoot;
}
protected override void OnStart()
... | using Xamarin.Forms;
namespace XamForms.UI
{
public partial class App : Application
{
public App()
{
InitializeComponent();
MainPage = new MainPage();
}
protected override void OnStart()
{
// Handle when your app starts
}
protected override void O... | mit | C# |
3d2396caa8aefd558b3cbd2560bb360318c5884f | Bump version to 2.4.1 | InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform | Files/Packaging/GlobalAssemblyInfo.cs | Files/Packaging/GlobalAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Infinnity Solutions")]
[assembly: AssemblyProduct("InfinniPlatform")]
[assembly: AssemblyCopyright("Copyright © Infinnity Solutions 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Infinnity Solutions")]
[assembly: AssemblyProduct("InfinniPlatform")]
[assembly: AssemblyCopyright("Copyright © Infinnity Solutions 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible... | agpl-3.0 | C# |
2aa8d9ed6c8f02464a97949426f1ac218f6a720f | Remove unused guids | dlsteuer/VisualRust,drewet/VisualRust,yacoder/VisualRust,Vbif/VisualRust,drewet/VisualRust,Connorcpu/VisualRust,Muraad/VisualRust,Boddlnagg/VisualRust,dlsteuer/VisualRust,vosen/VisualRust,cmr/VisualRust,yacoder/VisualRust,tempbottle/VisualRust,PistonDevelopers/VisualRust,xilec/VisualRust,vadimcn/VisualRust,Stitchous/Vi... | VisualRust/Guids.cs | VisualRust/Guids.cs | using System;
namespace VisualRust
{
static class GuidList
{
public const string guidVisualRustPkgString = "40c1d2b5-528b-4966-a7b1-1974e3568abe";
};
} | // Guids.cs
// MUST match guids.h
using System;
namespace VisualRust
{
static class GuidList
{
public const string guidVisualRustPkgString = "40c1d2b5-528b-4966-a7b1-1974e3568abe";
public const string guidVisualRustCmdSetString = "c2ea7a57-3978-4bff-bcba-dea4c6638cad";
public static r... | mit | C# |
e4ba647d6e03d02e876b289ccdf88600df6608c5 | Update test to check for 32-bit preferred | secdec/codepulse,secdec/codepulse | dotnet-tracer/main/OpenCover.Test/Console/OutputTests.cs | dotnet-tracer/main/OpenCover.Test/Console/OutputTests.cs | //
// Modified work Copyright 2017 Secure Decisions, a division of Applied Visions, Inc.
//
using System;
using System.Diagnostics;
using System.IO;
using NUnit.Framework;
// ReSharper disable once CheckNamespace
namespace OpenCover.Test.ConsoleEx
{
[TestFixture]
public class OutputTests
{
[Test]... | //
// Modified work Copyright 2017 Secure Decisions, a division of Applied Visions, Inc.
//
using System;
using System.Diagnostics;
using System.IO;
using NUnit.Framework;
// ReSharper disable once CheckNamespace
namespace OpenCover.Test.ConsoleEx
{
[TestFixture]
public class OutputTests
{
[Test]... | apache-2.0 | C# |
eef93c3824a9de836c80f5627539c7335115ed48 | order and view Fix | TheMightyMidgetsTeam/TheMightyMidgetsProject,TheMightyMidgetsTeam/TheMightyMidgetsProject | JobSite/Controllers/HomeController.cs | JobSite/Controllers/HomeController.cs | using JobSite.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace JobSite.Controllers
{
public class HomeController : Controller
{
private ApplicationDbContext db = new ApplicationDbContext();
public ActionResult Index()... | using JobSite.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace JobSite.Controllers
{
public class HomeController : Controller
{
private ApplicationDbContext db = new ApplicationDbContext();
public ActionResult Index()... | mit | C# |
3fc968caa65b7b78f5254a4d26cd9e826075c325 | Increment minor -> 0.1.0 | awseward/restivus | AssemblyInfo.sln.cs | AssemblyInfo.sln.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVers... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVers... | mit | C# |
2f898b912c34b9e20e06c7c919ca1e01f0c9c38c | Use expression bodied methods for compact code | mysticfall/Alensia | Assets/Alensia/Core/Input/BindingKey.cs | Assets/Alensia/Core/Input/BindingKey.cs | using Alensia.Core.Input.Generic;
using UnityEngine.Assertions;
namespace Alensia.Core.Input
{
public class BindingKey<T> : IBindingKey<T> where T : IInput
{
public string Id { get; }
public BindingKey(string id)
{
Assert.IsNotNull(id, "id != null");
Id = id;
... | using Alensia.Core.Input.Generic;
using UnityEngine.Assertions;
namespace Alensia.Core.Input
{
public class BindingKey<T> : IBindingKey<T> where T : IInput
{
public string Id { get; }
public BindingKey(string id)
{
Assert.IsNotNull(id, "id != null");
Id = id;
... | apache-2.0 | C# |
530beee356a4f41a11e629027930c35081fe5a77 | add remaining implementations of build provider info | cake-contrib/Cake.Recipe,cake-contrib/Cake.Recipe | Cake.Recipe/Content/azurepipelines.cake | Cake.Recipe/Content/azurepipelines.cake | ///////////////////////////////////////////////////////////////////////////////
// BUILD PROVIDER
///////////////////////////////////////////////////////////////////////////////
public class AzurePipelinesTagInfo : ITagInfo
{
public AzurePipelinesTagInfo(ITFBuildProvider tfBuild)
{
// at the moment, th... | ///////////////////////////////////////////////////////////////////////////////
// BUILD PROVIDER
///////////////////////////////////////////////////////////////////////////////
public class AzurePipelinesBuildInfo : IBuildInfo
{
public AzurePipelinesBuildInfo(ITFBuildProvider tfBuild)
{
Number = tfBui... | mit | C# |
65b1ff23c9213bbb1b3fcc2fd23578f0f7b59f8a | Fix build: react to EF namespace change | OmniSharp/omnisharp-scaffolding,OmniSharp/omnisharp-scaffolding | test/Microsoft.Framework.CodeGeneration.EntityFramework.Test/TestModels/TestModel.cs | test/Microsoft.Framework.CodeGeneration.EntityFramework.Test/TestModels/TestModel.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Metadata.Conventions.Internal;
namespace Microsoft.Frame... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Metadata.ModelConventions;
namespace Microsoft.Framework... | mit | C# |
14a9d0f7d6efa936986749a09b8b91640086961d | Add comments for F.Decrement | farity/farity | Farity/Decrement.cs | Farity/Decrement.cs | using System;
namespace Farity
{
public static partial class F
{
/// <summary>
/// Decrements a numeric value by 1.
/// </summary>
/// <typeparam name="T">The type of the numeric value.</typeparam>
/// <param name="value">The value to decrement.</param>
/// <ret... | using System;
namespace Farity
{
public static partial class F
{
public static T Decrement<T>(T value)
where T : struct,
IComparable,
IComparable<T>,
IConvertible,
IEquatable<T>,
IFormattable => Subtract(value, (T) Convert.ChangeT... | mit | C# |
cc820100570cdd8e028fdd0b895f2933e5555df0 | Use type conversion in F.Decrement | farity/farity | Farity/Decrement.cs | Farity/Decrement.cs | using System;
namespace Farity
{
public static partial class F
{
public static T Decrement<T>(T value)
where T : struct,
IComparable,
IComparable<T>,
IConvertible,
IEquatable<T>,
IFormattable => Subtract(value, (T) Convert.ChangeT... | using System;
namespace Farity
{
public static partial class F
{
public static T Decrement<T>(T value)
where T : struct,
IComparable,
IComparable<T>,
IConvertible,
IEquatable<T>,
IFormattable => Subtract(value, (T) (object) -1);
... | mit | C# |
157b64ed20aac9a40a7565716cfa32f8a0e59763 | Add null check. | PowerOfCode/Eto,PowerOfCode/Eto,l8s/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1,l8s/Eto,l8s/Eto | Source/Eto/Forms/Controls/GridView.cs | Source/Eto/Forms/Controls/GridView.cs | using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
namespace Eto.Forms
{
public interface IGridStore : IDataStore<IGridItem>
{
}
public partial interface IGridView : IGrid
{
IGridStore DataStore { get; set; }
}
public class GridViewCellArgs : EventArgs
{
public GridCo... | using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
namespace Eto.Forms
{
public interface IGridStore : IDataStore<IGridItem>
{
}
public partial interface IGridView : IGrid
{
IGridStore DataStore { get; set; }
}
public class GridViewCellArgs : EventArgs
{
public GridCo... | bsd-3-clause | C# |
f4e449f0305fc91a74707102851259132348d0d2 | Fix #304 | kjac/Archetype,imulus/Archetype,Nicholas-Westby/Archetype,kipusoep/Archetype,kipusoep/Archetype,kipusoep/Archetype,kjac/Archetype,imulus/Archetype,Nicholas-Westby/Archetype,imulus/Archetype,kgiszewski/Archetype,Nicholas-Westby/Archetype,kgiszewski/Archetype,kgiszewski/Archetype,kjac/Archetype | app/Umbraco/Umbraco.Archetype/Models/ArchetypeModel.cs | app/Umbraco/Umbraco.Archetype/Models/ArchetypeModel.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Umbraco.Core.Logging;
namespace Archetype.Models
{
/// <summary>
/// Model that represents an entire Archetype.
/// </summary>
[JsonObject]
public c... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Archetype.Models
{
/// <summary>
/// Model that represents an entire Archetype.
/// </summary>
[JsonObject]
public class ArchetypeModel : IEnume... | mit | C# |
48f7684132a4ede7e4c1d16ccc8f227b8169ece8 | Add support for pinch and scroll input. | YesAndGames/YesAndEngine | YesAndEngine/Input/InputListener.cs | YesAndEngine/Input/InputListener.cs | using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
// Place this behavior on a GUI rect transform to listen for input on that space.
public class InputListener : MonoBehaviour,
IPointerDownHandler,
IPointerUpHandler,
IPointerClickHandler,
IDragHandler,
IScrollHandler {
/... | using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
// Place this behavior on a GUI rect transform to listen for input on that space.
public class InputListener : MonoBehaviour,
IPointerDownHandler,
IPointerUpHandler,
IPointerClickHandler,
IDragHandler {
// An event delega... | apache-2.0 | C# |
ea023fc052e97fc024082aa0fff07392ddbf2556 | Update Client.cs | cosential/cosential-client-csharp | Client.cs | Client.cs | using System;
using System.Net;
using RestSharp;
using RestSharp.Authenticators;
namespace Cosential.Integrations.CompassApiClient
{
public class Client
{
private readonly RestClient _client;
public static readonly Uri DefaultUri = new Uri("https://compass.cosential.com/api");
... | using System;
using System.Net;
using RestSharp;
using RestSharp.Authenticators;
//ToDo: Create a git hub account for Cosential to host this project as an open source project (along with unit tests)
namespace Cosential.Integrations.CompassApiClient
{
public class Client
{
private readonly ... | apache-2.0 | C# |
43837a163fef5a1eeab8a41a87e79097c96576b1 | Update Constants.cs | HaliteChallenge/Halite-II,HaliteChallenge/Halite-II,HaliteChallenge/Halite-II,HaliteChallenge/Halite-II,HaliteChallenge/Halite-II,HaliteChallenge/Halite-II,lanyudhy/Halite-II,HaliteChallenge/Halite-II,lanyudhy/Halite-II,HaliteChallenge/Halite-II,HaliteChallenge/Halite-II,lanyudhy/Halite-II,HaliteChallenge/Halite-II,lan... | airesources/CSharp/hlt/Constants.cs | airesources/CSharp/hlt/Constants.cs | /// <summary>
/// Game Constants
/// </summary>
public class Constants {
// Number of units of distance a ship can move in a turn
public const double MaxSpeed = 7.0;
// Radius of a ship from the center
public const double ShipRadius = 0.5;
// Health of a ship when spawned
public const int BaseSh... | /// <summary>
/// Game Constants
/// </summary>
public class Constants {
// Number of units of distance a ship can move in a turn
public const double MaxSpeed = 7.0;
// Radius of a ship from the center
public const double ShipRadius = 0.5;
// Health of a ship when spawned
public const int BaseSh... | mit | C# |
88cc9c7f42d87bfa85ef316b2fdeafc6504b5cea | Disable shacking | Evorlor/Wok-n-Roll | Assets/Scripts/Core.cs | Assets/Scripts/Core.cs | using UnityEngine;
using System.Collections;
using System;
public class Core : MonoBehaviour {
private bool EnableShackingStyle = false;
private int ShackingTimes = 2;
private int currentShackingTime = 0;
private bool debounced = false;
private IRecipe mRecipe;
private bool started = true;
public float Tim... | using UnityEngine;
using System.Collections;
using System;
public class Core : MonoBehaviour {
private bool EnableShackingStyle = true;
private int ShackingTimes = 2;
private int currentShackingTime = 0;
private bool debounced = false;
private IRecipe mRecipe;
private bool started = true;
public float Time... | mit | C# |
bd48da68ac54168543272beb12ebc11def6d8941 | Add nullable | genlu/roslyn,mgoertz-msft/roslyn,davkean/roslyn,wvdd007/roslyn,physhi/roslyn,CyrusNajmabadi/roslyn,physhi/roslyn,bartdesmet/roslyn,bartdesmet/roslyn,jmarolf/roslyn,reaction1989/roslyn,mavasani/roslyn,genlu/roslyn,heejaechang/roslyn,AlekseyTs/roslyn,wvdd007/roslyn,ErikSchierboom/roslyn,tannergooding/roslyn,sharwell/rosl... | src/VisualStudio/Core/Def/Implementation/ProjectTelemetry/IProjectTelemetryService.cs | src/VisualStudio/Core/Def/Implementation/ProjectTelemetry/IProjectTelemetryService.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.
#nullable enable
using System.Threading;
using Microsoft.CodeAnalysis.Host;
namespace Microsoft.VisualStudio.Lang... | // 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.Threading;
using Microsoft.CodeAnalysis.Host;
namespace Microsoft.VisualStudio.LanguageServices.Imple... | mit | C# |
40b6f0f5c1b457fe2fd84e437e62e76303b1c646 | Bump assembly versions to 2.6.0 | hudl/Mjolnir | Hudl.Mjolnir/Properties/AssemblyInfo.cs | Hudl.Mjolnir/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("Hu... | 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("Hu... | apache-2.0 | C# |
2396732e42c0bb3e1da3510b4b7c33bdcaa08519 | Bump version to 1.6.0.0 | courtneyklatt/Mjolnir,hudl/Mjolnir | Hudl.Mjolnir/Properties/AssemblyInfo.cs | Hudl.Mjolnir/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("Hu... | 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("Hu... | apache-2.0 | C# |
da97633f5cc49aa763894c17be03177202acbf34 | Fix Role enum. | enarod/enarod-web-api,enarod/enarod-web-api,enarod/enarod-web-api | Infopulse.EDemocracy.Model/Enum/Role.cs | Infopulse.EDemocracy.Model/Enum/Role.cs | namespace Infopulse.EDemocracy.Model.Enum
{
public enum Role
{
Admin = 1,
Moderator = 2,
TeamMember = 3,
User = 4
}
} | namespace Infopulse.EDemocracy.Model.Enum
{
public enum Role
{
Admin,
Moderator
}
} | cc0-1.0 | C# |
1591f4cafd693121545424055748720a48f41f03 | Update copyright year in assembly info | Heufneutje/HeufyAudioRecorder,Heufneutje/AudioSharp | SharedAssemblyInfo.cs | SharedAssemblyInfo.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: AssemblyConfigurat... | 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: AssemblyConfigurat... | mit | C# |
fea31df347fe7012cb117024012b1d38fc24b604 | Add async overloads to HttpTasks | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/IO/HttpTasks.cs | source/Nuke.Common/IO/HttpTasks.cs | // Copyright Matthias Koch, Sebastian Karasek 2018.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Nuke.Common.Tooling;
namespace Nuke.Common.IO
{
[... | // Copyright Matthias Koch, Sebastian Karasek 2018.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using System.Net;
using JetBrains.Annotations;
using Nuke.Common.Tooling;
namespace Nuke.Common.IO
{
[PublicAPI]
public static c... | mit | C# |
8b48df88a3a1e9a8f1760684eb8de975afeeeed2 | Implement Equatable<CcsProcess> | lou1306/CIV,lou1306/CIV | CIV.Ccs/Processes/PrefixProcess.cs | CIV.Ccs/Processes/PrefixProcess.cs | using System;
using System.Collections.Generic;
using CIV.Interfaces;
namespace CIV.Ccs
{
public class PrefixProcess : CcsProcess
{
public String Label { get; set; }
public CcsProcess Inner { get; set; }
public override bool Equals(CcsProcess other)
{
var otherPref... | using System;
using System.Collections.Generic;
using CIV.Interfaces;
namespace CIV.Ccs
{
public class PrefixProcess : CcsProcess
{
public String Label { get; set; }
public IProcess Inner { get; set; }
public override IEnumerable<Transition> Transitions()
{
return ... | mit | C# |
004dbdffe73e76293e9bf380fde97b20751222b1 | Tweak minigun projectile's impact sound. | fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game | game/server/weapons/minigun.projectile.sfx.cs | game/server/weapons/minigun.projectile.sfx.cs | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright notices are in the file named COPYING.
//------------------------------------------------------------------------------
datablock AudioProfile(MinigunProjectileImpactSound)
{
filename = "shar... | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright notices are in the file named COPYING.
//------------------------------------------------------------------------------
datablock AudioProfile(MinigunProjectileImpactSound)
{
//filename = "sh... | lgpl-2.1 | C# |
4260eca1f3364fb17924777b21949781cf0a2f56 | Update Program.cs | Mattgyver317/GitTest1,Mattgyver317/GitTest1 | ConsoleApp1/ConsoleApp1/Program.cs | ConsoleApp1/ConsoleApp1/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
// This code has been edited in GitHub
// code was added in VS
//Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
// This code has been edited in GitHub
// code was added in VS
//Co... | mit | C# |
6402cc363e0bbad1545b2f461fd82796056a8b84 | Update Program.cs | mtsuker/GitTest1 | ConsoleApp1/ConsoleApp1/Program.cs | ConsoleApp1/ConsoleApp1/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
//github change
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
5ca6e1a7c6ea302981303be830b3889115372857 | bump to 1.3.7 | Terradue/DotNetTep,Terradue/DotNetTep | Terradue.Tep/Properties/AssemblyInfo.cs | Terradue.Tep/Properties/AssemblyInfo.cs | /*!
\namespace Terradue.Tep
@{
Terradue.Tep Software Package provides with all the functionalities specific to the TEP.
\xrefitem sw_version "Versions" "Software Package Version" 1.3.7
\xrefitem sw_link "Links" "Software Package List" [Terradue.Tep](https://git.terradue.com/sugar/Terradue.Tep)
\xref... | /*!
\namespace Terradue.Tep
@{
Terradue.Tep Software Package provides with all the functionalities specific to the TEP.
\xrefitem sw_version "Versions" "Software Package Version" 1.3.6
\xrefitem sw_link "Links" "Software Package List" [Terradue.Tep](https://git.terradue.com/sugar/Terradue.Tep)
\xref... | agpl-3.0 | C# |
4dd3daed8828f49f87f9d4843c2872f2c0384080 | Remove unused usings. | FloodProject/flood,FloodProject/flood,FloodProject/flood | src/Editor/Editor.Client/Editor.cs | src/Editor/Editor.Client/Editor.cs | using Flood.Editor.Client.Gui;
using System;
using Flood.Network;
using Flood.Packages;
using Flood.RPC;
namespace Flood.Editor.Client
{
public sealed class Editor : IDisposable
{
public MainWindow MainWindow { get; private set; }
public Window PaneWindow { get; private set; }
public ... | using Flood.Editor.Client.Gui;
using System;
using System.IO;
using System.Reflection;
using Flood.Network;
using Flood.Packages;
using Flood.RPC;
namespace Flood.Editor.Client
{
public sealed class Editor : IDisposable
{
public MainWindow MainWindow { get; private set; }
public Window PaneWin... | bsd-2-clause | C# |
2a231695d005fc84a5d0ebd79c8afc4543d3707f | Update link to Update function | DotNetRu/App,DotNetRu/App | DotNetRu.Utils/Config/AppConfig.cs | DotNetRu.Utils/Config/AppConfig.cs | using System.Text;
using DotNetRu.Utils.Helpers;
using Newtonsoft.Json;
namespace DotNetRu.Clients.UI
{
public class AppConfig
{
public string AppCenterAndroidKey { get; set; }
public string AppCenteriOSKey { get; set; }
public string PushNotificationsChannel { get; set; }... | using System.Text;
using DotNetRu.Utils.Helpers;
using Newtonsoft.Json;
namespace DotNetRu.Clients.UI
{
public class AppConfig
{
public string AppCenterAndroidKey { get; set; }
public string AppCenteriOSKey { get; set; }
public string PushNotificationsChannel { get; set; }... | mit | C# |
716043753213e23e6e245ff16c25eda04671a115 | Remove invalid FileChooserDialog constructor | openmedicus/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,orion75/gtk-sharp,Gankov/gtk-sharp,orion75/gtk-sharp,orion75/gtk-sharp,akrisiun/gtk-sharp,Gankov/gtk-sharp,Gankov/gtk-sharp,akrisiun/gtk-sharp,sillsdev/gtk-sharp,sillsdev/gtk-sharp,antoniusriha/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,openmedicus/g... | gtk/FileChooserDialog.cs | gtk/FileChooserDialog.cs | // Gtk.FileChooserDialog.cs - Gtk FileChooserDialog customizations
//
// Authors: Todd Berman <tberman@off.net>
// Jeroen Zwartepoorte <jeroen@xs4all.nl>
// Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2004 Todd Berman, Jeroen Zwartepoorte
// Copyright (c) 2005 Novell, Inc.
//
//... | // Gtk.FileChooserDialog.cs - Gtk FileChooserDialog customizations
//
// Authors: Todd Berman <tberman@off.net>
// Jeroen Zwartepoorte <jeroen@xs4all.nl>
// Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2004 Todd Berman, Jeroen Zwartepoorte
// Copyright (c) 2005 Novell, Inc.
//
//... | lgpl-2.1 | C# |
7af2e04a49944e7b12849a2af609bbeec1ef2438 | Update example, add long tap | mrxten/XamEffects | src/Test/XamExample/MyPage.xaml.cs | src/Test/XamExample/MyPage.xaml.cs | using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace XamExample {
public partial class MyPage : ContentPage {
public MyPage() {
InitializeComponent();
var c = 0;
XamEffects.TouchEffect.SetColor(plus, Color.White);
XamEffects.Comm... | using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace XamExample {
public partial class MyPage : ContentPage {
public MyPage() {
InitializeComponent();
var c = 0;
XamEffects.TouchEffect.SetColor(plus, Color.White);
XamEffects.Comm... | mit | C# |
740f06576c1e9ec694efec00e2ed8d212374e91b | Update copyright (#61) | SonarSource-DotNet/sonarqube-roslyn-sdk,SonarSource-VisualStudio/sonarqube-roslyn-sdk | AssemblyInfo.Shared.cs | AssemblyInfo.Shared.cs | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.Shared.cs" company="SonarSource SA and Microsoft Corporation">
// Copyright (c) SonarSource SA and Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the projec... | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.Shared.cs" company="SonarSource SA and Microsoft Corporation">
// Copyright (c) SonarSource SA and Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the projec... | mit | C# |
a2116bdf5dc0458cc275369870f779117124caba | Set Default Font to something that should be on all systems | luiscubal/XwtPlus.TextEditor,cra0zy/XwtPlus.TextEditor | XwtPlus.TextEditor/TextEditorOptions.cs | XwtPlus.TextEditor/TextEditorOptions.cs | using Mono.TextEditor.Highlighting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xwt.Drawing;
namespace XwtPlus.TextEditor
{
public class TextEditorOptions
{
public Font EditorFont = Font.SystemMonospaceFont;
public I... | using Mono.TextEditor.Highlighting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xwt.Drawing;
namespace XwtPlus.TextEditor
{
public class TextEditorOptions
{
public Font EditorFont = Font.FromName("Consolas 13");
publ... | mit | C# |
d5663124ea7651642e88934287f736ab4dbac649 | Add token type "Name" | BERef/BibTeXLibrary | BibTeXLibrary/Token.cs | BibTeXLibrary/Token.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BibTeXLibrary
{
internal struct Token
{
public TokenType Type;
public string Value;
public Token(TokenType type, string value = "")
... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BibTeXLibrary
{
internal struct Token
{
public TokenType Type;
public string Value;
public Token(TokenType type, string value = "")
... | mit | C# |
8952fcefebdd71a3fb1fa0111c2239c21682a5f4 | Remove station bounding sphere | iridinite/shiftdrive | Client/SpaceStation.cs | Client/SpaceStation.cs | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using Microsoft.Xna.Framework;
namespace ShiftDrive {
internal sealed class SpaceStation : Ship {
public SpaceStation(GameState world) : base(world) {
type = ObjectType.Station;
bounding = 0f;
}
protected ... | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using Microsoft.Xna.Framework;
namespace ShiftDrive {
internal sealed class SpaceStation : Ship {
public SpaceStation(GameState world) : base(world) {
type = ObjectType.Station;
bounding = 100f;
}
protecte... | bsd-3-clause | C# |
940ae5f081838fd4238b49bae0e25cce901384e8 | Bump version | pleonex/deblocus,pleonex/deblocus | Deblocus/Properties/AssemblyInfo.cs | Deblocus/Properties/AssemblyInfo.cs | //
// AssemblyInfo.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 by
// ... | //
// AssemblyInfo.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 by
// ... | agpl-3.0 | C# |
796449ededb584814c2a4794ae00cdd4b1ab00fd | Fix for flaky test. | JaCraig/BigBookOfDataTypes,JaCraig/BigBookOfDataTypes,JaCraig/BigBookOfDataTypes | test/BigBook.Tests/TaskQueueTests.cs | test/BigBook.Tests/TaskQueueTests.cs | using System.Linq;
using System.Text;
using System.Threading;
using Xunit;
namespace BigBook.Tests
{
public class TaskQueueTests
{
private readonly double EPSILON = 0.0001d;
[Fact]
public void MoreComplexTasks()
{
var Results = new double[100];
... | using System.Linq;
using System.Text;
using System.Threading;
using Xunit;
namespace BigBook.Tests
{
public class TaskQueueTests
{
private readonly double EPSILON = 0.0001d;
[Fact]
public void MoreComplexTasks()
{
var Results = new double[100];
... | apache-2.0 | C# |
8e8fdc7643afa27ffec62094b2d9f5ae6696b453 | Build number removed from the version string, as this creates problems with NuGet dependencies. | thedmi/MayBee,thedmi/Equ,thedmi/Finalist,thedmi/Equ,thedmi/Finalist,thedmi/MiniGuard | Sources/VersionInfo.cs | Sources/VersionInfo.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="VersionInfo.cs" company="Dani Michel">
// Dani Michel 2013
// </copyright>
// -----------------------------------------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="VersionInfo.cs" company="Dani Michel">
// Dani Michel 2013
// </copyright>
// -----------------------------------------------------------------------------------------------... | mit | C# |
938b0222a4083c7e165124de7e9ca092bdf58c32 | update sample | maximrub/Xamarin | Sample/Friends/Friends/App.xaml.cs | Sample/Friends/Friends/App.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Exrin.Abstraction;
using Exrin.Framework;
using Exrin.IOC;
using Friends.Locator;
using Xamarin.Forms;
namespace Friends
{
public partial class App : Application
{
public App(PlatformInitializer i_PlatformIniti... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Exrin.Abstraction;
using Exrin.Framework;
using Exrin.IOC;
using Friends.Locator;
using Xamarin.Forms;
namespace Friends
{
public partial class App : Application
{
public App(PlatformInitializer i_PlatformIniti... | mit | C# |
22af0f860a0eb99f0cfc96481d7e6dc1b4a4f1ed | Add non-wrapped example | refactorsaurusrex/FluentConsole | TestConsole/Program.cs | TestConsole/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentConsole.Library;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
FluentConsoleSettings.LineWrapOption = LineWra... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentConsole.Library;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
FluentConsoleSettings.LineWrapOption = LineWra... | mit | C# |
57516d2fc5b26bda284b550d3acd4af917f5ec93 | Remove unused using | appharbor/appharbor-cli | src/AppHarbor/CommandDispatcher.cs | src/AppHarbor/CommandDispatcher.cs | using System;
using System.Linq;
using Castle.MicroKernel;
namespace AppHarbor
{
public class CommandDispatcher
{
private readonly ITypeNameMatcher _typeNameMatcher;
private readonly IKernel _kernel;
public CommandDispatcher(ITypeNameMatcher typeNameMatcher, IKernel kernel)
{
_typeNameMatcher = typeName... | using System;
using System.Collections.Generic;
using System.Linq;
using Castle.MicroKernel;
namespace AppHarbor
{
public class CommandDispatcher
{
private readonly ITypeNameMatcher _typeNameMatcher;
private readonly IKernel _kernel;
public CommandDispatcher(ITypeNameMatcher typeNameMatcher, IKernel kernel)
... | mit | C# |
d8e9ab085fe98d047369477c2a3c76bec69753e2 | Work around an MCG bug (dotnet/corert#6658) | ericstj/corefx,wtgodbe/corefx,shimingsg/corefx,ericstj/corefx,ericstj/corefx,ericstj/corefx,BrennanConroy/corefx,ptoonen/corefx,ptoonen/corefx,ericstj/corefx,ptoonen/corefx,ViktorHofer/corefx,BrennanConroy/corefx,shimingsg/corefx,BrennanConroy/corefx,ViktorHofer/corefx,wtgodbe/corefx,shimingsg/corefx,ptoonen/corefx,shi... | src/Common/src/CoreLib/System/Collections/IEnumerable.cs | src/Common/src/CoreLib/System/Collections/IEnumerable.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.Runtime.InteropServices;
namespace System.Collections
{
#if !PROJECTN // Hitting a bug i... | // 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.Runtime.InteropServices;
namespace System.Collections
{
[Guid("496B0ABE-CDEE-11d3-88... | mit | C# |
9a347a84d46877f78bf8c57d04aa0fcf78587a4b | rename private variable | rohmano/azure-powershell,mayurid/azure-powershell,zaevans/azure-powershell,yadavbdev/azure-powershell,zhencui/azure-powershell,nemanja88/azure-powershell,juvchan/azure-powershell,TaraMeyer/azure-powershell,praveennet/azure-powershell,seanbamsft/azure-powershell,enavro/azure-powershell,AzureRT/azure-powershell,SarahRoge... | src/ResourceManager/Network/Commands.NetworkResourceProvider/Common/NetworkBaseClient.cs | src/ResourceManager/Network/Commands.NetworkResourceProvider/Common/NetworkBaseClient.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 | C# |
3af4f33b5d483898e00fa1503e791176e7e361e6 | Update TestPlainText.cs | lunet-io/markdig | src/Markdig.Tests/TestPlainText.cs | src/Markdig.Tests/TestPlainText.cs | using NUnit.Framework;
namespace Markdig.Tests
{
[TestFixture]
public class TestPlainText
{
[Test]
public void TestPlain()
{
var markdownText = "*Hello*, [world](http://example.com)!";
var expected = "Hello, world!\n";
var actual = Markdown.ToPlai... | using NUnit.Framework;
namespace Markdig.Tests
{
[TestFixture]
public class TestPlainText
{
[Test]
public void TestPlain()
{
var markdownText = "*Hello*, [world](http://example.com)!";
var expected = "Hello, world!\n";
var actual = Markdown.ToPlai... | bsd-2-clause | C# |
f8e5570e4152b2ac52c859f086a73abb8ec0f3f0 | Fix `Message` equality not passing on equal references | NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu | osu.Game/Online/Chat/Message.cs | osu.Game/Online/Chat/Message.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.Chat
{
public class Me... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.Chat
{
public class Me... | mit | C# |
9461441d9882ab53f42722e4ee39f0323604e4bc | Fix Connection Manager | WaelHamze/xrm-ci-framework,WaelHamze/xrm-ci-framework,WaelHamze/xrm-ci-framework | MSDYNV9/Xrm.Framework.CI/Xrm.Framework.CI.Common.IntegrationTests/XrmConnectionManager.cs | MSDYNV9/Xrm.Framework.CI/Xrm.Framework.CI.Common.IntegrationTests/XrmConnectionManager.cs | using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Tooling.Connector;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Xrm.Framework.CI.Common.IntegrationTests
{
public class XrmConnectionManager
{
#regi... | using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Tooling.Connector;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Xrm.Framework.CI.Common.IntegrationTests
{
public class XrmConnectionManager
{
#regi... | mit | C# |
921ea26d618761013431abc9a0321d68563dc716 | allow user to passa a interface type instead of concrete class to SoapEndpointExtension methods | DigDes/SoapCore | src/SoapCore/ServiceDescription.cs | src/SoapCore/ServiceDescription.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.ServiceModel;
namespace SoapCore
{
public class ServiceDescription
{
public Type ServiceType { get; private set; }
public IEnumerable<ContractDescription> Contracts { get; private set; }
public IEnumerable... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.ServiceModel;
namespace SoapCore
{
public class ServiceDescription
{
public Type ServiceType { get; private set; }
public IEnumerable<ContractDescription> Contracts { get; private set; }
public IEnumerable... | mit | C# |
42b48e906a90e7723a2bba4aca317c4b4769e98a | Fix copyright | gibachan/XmlDict | XmlDict/Properties/AssemblyInfo.cs | XmlDict/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("Xm... | 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("Xm... | mit | C# |
5d36551c3989feec232272394e508e9624d3d200 | Use physics2D instead of player list. | fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation | UnityProject/Assets/Scripts/Objects/Research/Artifacts/Effects/TelepaticArtifactEffect.cs | UnityProject/Assets/Scripts/Objects/Research/Artifacts/Effects/TelepaticArtifactEffect.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Random = UnityEngine.Random;
/// <summary>
/// This artifact sends telepatic messages
/// </summary>
public class TelepaticArtifactEffect : ArtifactEffect
{
[Tooltip("How far artifact sends telepatic... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Random = UnityEngine.Random;
/// <summary>
/// This artifact sends telepatic messages
/// </summary>
public class TelepaticArtifactEffect : ArtifactEffect
{
[Tooltip("How far artifact sends telepatic... | agpl-3.0 | C# |
34566cac0675f932b011d0dbc467f19459bc2118 | Update AssemblyFileTest.cs | NMSLanX/Natasha | test/NatashaUT/AssemblyFileTest.cs | test/NatashaUT/AssemblyFileTest.cs | using Natasha;
using System;
using System.IO;
using Xunit;
namespace NatashaUT
{
[Trait("程序集编译测试", "文件")]
public class AssemblyFileTest
{
[Fact(DisplayName = "文件部分类编译")]
public void Test1()
{
string path1 = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "File", ... | using Natasha;
using System;
using System.IO;
using Xunit;
namespace NatashaUT
{
[Trait("程序集编译测试", "文件")]
public class AssemblyFileTest
{
[Fact(DisplayName = "文件部分类编译")]
public void Test1()
{
string path1 = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "File", ... | mpl-2.0 | C# |
b44d1744c049129fbc16a98fb1d8617ecc679cfe | Make NotNullConstraintViolationException.New(..) internal | fernandovm/SQLite.Net-PCL,igrali/SQLite.Net-PCL,molinch/SQLite.Net-PCL,mattleibow/SQLite.Net-PCL,igrali/SQLite.Net-PCL,caseydedore/SQLite.Net-PCL,kreuzhofer/SQLite.Net-PCL,oysteinkrog/SQLite.Net-PCL,TiendaNube/SQLite.Net-PCL | src/SQLite.Net/NotNullConstraintViolationException.cs | src/SQLite.Net/NotNullConstraintViolationException.cs | //
// Copyright (c) 2012 Krueger Systems, Inc.
// Copyright (c) 2013 ystein Krog (oystein.krog@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including... | //
// Copyright (c) 2012 Krueger Systems, Inc.
// Copyright (c) 2013 ystein Krog (oystein.krog@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including... | mit | C# |
9de33b71e41654efef8c7ec0c9f1c9c7cfc0701e | change submit text of signin view | maxtoroq/MvcAccount,ZenHiro/MvcAccount | MvcAccount/Auth/SignInViewModel.cs | MvcAccount/Auth/SignInViewModel.cs | // Copyright 2012 Max Toro Q.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2012 Max Toro Q.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | apache-2.0 | C# |
d76625ee2ab3149a751a77e7764affcdb41a3b9d | Implement OxideApi.Authenticate | Skippeh/Oxide.Ext.ServerManager | Oxide.PluginWebApi/Net/OxideApi.cs | Oxide.PluginWebApi/Net/OxideApi.cs | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using HtmlAgilityPack;
namespace Oxide.PluginWebApi.Net
{
public class OxideApi : IDisposable
{
private static readonly CookieCont... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Oxide.PluginWebApi.Net
{
public class OxideApi : IDisposable
{
private static readonly CookieContainer cookieContainer = new CookieContainer();
priva... | mit | C# |
e6e2a35a663637170b51897b8e18aaafa656f889 | Fix dumb code | leppie/MilkVRLinks | MilkVRLinks/Program.cs | MilkVRLinks/Program.cs | using System.IO;
using System.Text.RegularExpressions;
class Program
{
static void Main(string[] args)
{
var settings = MilkVRLinks.Properties.Settings.Default;
var searchpattern = settings.SearchPattern;
var baseurl = settings.BaseUrl;
if (args.Length > 0)
{
... | using System.IO;
using System.Text.RegularExpressions;
class Program
{
static void Main(string[] args)
{
var settings = MilkVRLinks.Properties.Settings.Default;
var searchpattern = settings.SearchPattern;
var baseurl = settings.BaseUrl;
if (args.Length > 0)
{
... | mit | C# |
d2bb74acbdddddd1f839a82189bb272c5f5c9b59 | Implement AppModel | sakapon/Tutorials-2016 | XAML/Sort/SortViewerWpf/AppModel.cs | XAML/Sort/SortViewerWpf/AppModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace SortViewerWpf
{
public class AppModel
{
static readonly TimeSpan ComparisonsSpan = TimeSpan.FromSeconds(1 / 1000.0);
public int[] Numbers { get; priva... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SortViewerWpf
{
public class AppModel
{
}
public static class RandomHelper
{
static readonly Random Random = new Random();
public static I... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.