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 |
|---|---|---|---|---|---|---|---|---|
ce8db442558e17122f25453af939cc1ef8593ec7 | Fix warning. | KirillOsenkov/MEFMetadata | tests/TestAssemblyA/Class1.cs | tests/TestAssemblyA/Class1.cs | using System.ComponentModel.Composition;
#pragma warning disable 414
namespace TestAssemblyA
{
[Export]
public class TestExportedType
{
[Import]
private string importField = null;
[Import]
public string ImportProperty { get; set; }
[Export]
... | using System.ComponentModel.Composition;
namespace TestAssemblyA
{
[Export]
public class TestExportedType
{
[Import]
private string importField = null;
[Import]
public string ImportProperty { get; set; }
[Export]
public string ExportProperty
... | apache-2.0 | C# |
23a7c9b01d5e8de8de48f86550dc7ea6603f9e33 | Fix NRE again | lockzag/PolarisServer,Dreadlow/PolarisServer,PolarisTeam/PolarisServer,cyberkitsune/PolarisServer | PolarisServer/Party/Party.cs | PolarisServer/Party/Party.cs | using PolarisServer.Models;
using PolarisServer.Packets.PSOPackets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PolarisServer.Party
{
public class Party
{
public string name;
private List<Client> members;
private Client host;
... | using PolarisServer.Models;
using PolarisServer.Packets.PSOPackets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PolarisServer.Party
{
public class Party
{
public string name;
private List<Client> members;
private Client host;
... | agpl-3.0 | C# |
52d2bfb737e68a3170380a599ec625a256392d6d | Update year in copyright | terrajobst/xsddoc | Source/CommonAssemblyInfo.cs | Source/CommonAssemblyInfo.cs | using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCopyright("Copyright 2009-2014 Immo Landwerth")]
[assembly: AssemblyCompany("Immo Landwerth")]
[assembly: AssemblyProduct("XML Schema Documenter")]
[assembly: CLSCompliant(false)]
[assemb... | using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCopyright("Copyright 2009-2011 Immo Landwerth")]
[assembly: AssemblyCompany("Immo Landwerth")]
[assembly: AssemblyProduct("XML Schema Documenter")]
[assembly: CLSCompliant(false)]
[assemb... | mit | C# |
6619f3708f52dbf51294a6beefc47e56d1d90acb | include format and objectValue in the includes for GetCellHistory #109 | smartsheet-platform/smartsheet-csharp-sdk,smartsheet-platform/smartsheet-csharp-sdk | main/Smartsheet/Api/Models/Inclusions/CellInclusion.cs | main/Smartsheet/Api/Models/Inclusions/CellInclusion.cs | // #[license]
// SmartsheetClient SDK for C#
// %%
// Copyright (C) 2014 SmartsheetClient
// %%
// 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
//
// ... | // #[license]
// SmartsheetClient SDK for C#
// %%
// Copyright (C) 2014 SmartsheetClient
// %%
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | apache-2.0 | C# |
5a231cef1507289a2da1c4a719e26b195edccf01 | Add thread safety for external operations on MultiplayerRoom | UselessToucan/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,peppy/osu-new,ppy/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,peppy/osu | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.cs | osu.Game/Online/RealtimeMultiplayer/MultiplayerRoom.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;
namespace osu.Game.Online.RealtimeMultiplayer
{
[Serializable]
public class MultiplayerRoom
{
public ... | // 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;
namespace osu.Game.Online.RealtimeMultiplayer
{
[Serializable]
public class MultiplayerRoom
{
private... | mit | C# |
032872336847c6743cb1e8fb4852bb9612df6cd7 | Set individual components of Transform.position | mstevenson/UnityExtensionMethods | TransformExtensions.cs | TransformExtensions.cs | using UnityEngine;
using System.Collections;
public static class TransformExtensions {
// Apply a transformation resembling a parenting relationship without setting up an actual parenting hierarchy
public static void SoftParent (this Transform child, Transform parent)
{
Vector3 offset = child.position - parent.... | using UnityEngine;
using System.Collections;
public static class TransformExtensions {
// Apply a transformation resembling a parenting relationship without setting up an actual parenting hierarchy
public static void SoftParent (this Transform child, Transform parent)
{
Vector3 offset = child.position - parent.... | mit | C# |
7c94afa21b975e7ea65efe5adc26e14995e31bbf | Fix lexer tests on TeamCity | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/test/src/Psi/ShaderLab/Parsing/LexerTests.cs | resharper/test/src/Psi/ShaderLab/Parsing/LexerTests.cs | using System;
using System.IO;
using JetBrains.ReSharper.Plugins.Unity.ProjectModel;
using JetBrains.ReSharper.Plugins.Unity.Psi.ShaderLab.Parsing;
using JetBrains.ReSharper.Psi.Parsing;
using JetBrains.ReSharper.TestFramework;
using JetBrains.Text;
using NUnit.Framework;
namespace JetBrains.ReSharper.Plugins.Unity.T... | using System;
using System.IO;
using JetBrains.ReSharper.Plugins.Unity.ProjectModel;
using JetBrains.ReSharper.Plugins.Unity.Psi.ShaderLab.Parsing;
using JetBrains.ReSharper.Psi.Parsing;
using JetBrains.ReSharper.TestFramework;
using JetBrains.Text;
using NUnit.Framework;
namespace JetBrains.ReSharper.Plugins.Unity.T... | apache-2.0 | C# |
e21178570484780c8467f47529ea407a6fd5e24c | Add overlay layer to storyboard definition | ppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu-new,UselessToucan/osu,smoogipooo/osu,ppy/osu,ppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu | osu.Game/Storyboards/Storyboard.cs | osu.Game/Storyboards/Storyboard.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.Linq;
using osu.Game.Beatmaps;
using osu.Game.Storyboards.Drawables;
namespace osu.Game.Storyboards
{
public class St... | // 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.Linq;
using osu.Game.Beatmaps;
using osu.Game.Storyboards.Drawables;
namespace osu.Game.Storyboards
{
public class St... | mit | C# |
3c818d8154af1894a732a046f09adc005e7b1349 | Fix a typo in Rehearsal model | alastairs/cgowebsite,alastairs/cgowebsite | src/CGO.Web/Models/Rehearsal.cs | src/CGO.Web/Models/Rehearsal.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace CGO.Web.Models
{
public class Rehearsal
{
public Rehearsal(int id, DateTime dateAndStartTime, DateTime finishTime, string location)
{
Location = location;
FinishTime = finishT... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace CGO.Web.Models
{
public class Rehearsal
{
public Rehearsal(int id, DateTime dateAndStartTime, DateTime finishTime, string loction)
{
Loction = loction;
FinishTime = finishTime... | mit | C# |
addad5c005928f319e0ca2b84d54e9803a8af99f | Fix wrong dimension | cbovar/ConvNetSharp | src/ConvNetSharp.Utils/Image.cs | src/ConvNetSharp.Utils/Image.cs | using System;
using System.Drawing;
namespace ConvNetSharp.Utils
{
public static class Image
{
public static Bitmap ToBitmap<T>(Volume.Volume<T> vol, int n = 0) where T : struct, IEquatable<T>, IFormattable
{
var bmp = new Bitmap(vol.Shape.GetDimension(0), vol.Shape.GetDimension(1)... | using System;
using System.Drawing;
namespace ConvNetSharp.Utils
{
public static class Image
{
public static Bitmap ToBitmap<T>(Volume.Volume<T> vol, int n = 0) where T : struct, IEquatable<T>, IFormattable
{
var bmp = new Bitmap(vol.Shape.GetDimension(0), vol.Shape.GetDimension(1)... | mit | C# |
8c2573553318fa9d48eb641f45c00f635b728600 | Clarify with XML comment that point is in global space | SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Perspex,grokys/Perspex,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,Perspex/Perspex,wieslawsoltes/Perspex,Perspex/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,SuperJMN/Avalonia,jkoritzinsky... | src/Avalonia.Visuals/Rendering/ICustomSimpleHitTest.cs | src/Avalonia.Visuals/Rendering/ICustomSimpleHitTest.cs | using System.Collections.Generic;
using System.Linq;
using Avalonia.VisualTree;
namespace Avalonia.Rendering
{
/// <summary>
/// An interface to allow non-templated controls to customize their hit-testing
/// when using a renderer with a simple hit-testing algorithm without a scene graph,
/// such as <... | using System.Collections.Generic;
using System.Linq;
using Avalonia.VisualTree;
namespace Avalonia.Rendering
{
/// <summary>
/// An interface to allow non-templated controls to customize their hit-testing
/// when using a renderer with a simple hit-testing algorithm without a scene graph,
/// such as <... | mit | C# |
3d762eb94eaad7a1131caa657e4cce00a3d0b413 | return back detection interface | wangkanai/Detection | src/Detection/src/IDetection.cs | src/Detection/src/IDetection.cs | // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
namespace Wangkanai.Detection
{
public interface IDetection
{
IBrowser Browser { get; }
ICrawler Crawler { get; }
IDevice Device { get; }
... | // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
namespace Wangkanai.Detection
{
public interface IDetection
{
IBrowser Browser { get; }
ICrawler Crawler { get; }
IDevice Device { get; }
... | apache-2.0 | C# |
4a035d426591c53a8643bab99e11c4ab98e1010f | Clean up WebSource | arthot/xsp,murador/xsp,stormleoxia/xsp,stormleoxia/xsp,arthot/xsp,stormleoxia/xsp,arthot/xsp,murador/xsp,stormleoxia/xsp,murador/xsp,arthot/xsp,murador/xsp | src/Mono.WebServer/WebSource.cs | src/Mono.WebServer/WebSource.cs | //
// Mono.WebServer.WebSource
//
// Authors:
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
// Lluis Sanchez Gual (lluis@ximian.com)
//
// Documentation:
// Brian Nickel
//
// (C) Copyright 2004-2010 Novell, Inc. (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a... | //
// Mono.WebServer.WebSource
//
// Authors:
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
// Lluis Sanchez Gual (lluis@ximian.com)
//
// Documentation:
// Brian Nickel
//
// (C) Copyright 2004-2010 Novell, Inc. (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a... | mit | C# |
36ff269fefeee346c5b923d24f60cc31c6fc01dc | Use the Muxer path if available | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.Razor.Tasks/DotnetToolTask.cs | src/Microsoft.AspNetCore.Razor.Tasks/DotnetToolTask.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 System;
using System.Diagnostics;
using System.Threading;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Microsoft.Exten... | // 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 System;
using System.Diagnostics;
using System.Threading;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Microsoft.... | apache-2.0 | C# |
bf0f09259a0df16f681ed688e7afac0915a178c2 | Comment out healthy stockport business id | smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp | src/StockportWebapp/Middleware/BusinessIdMiddleware.cs | src/StockportWebapp/Middleware/BusinessIdMiddleware.cs | using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Primitives;
using StockportWebapp.Config;
namespace StockportWebapp.Middleware
{
public class BusinessIdMiddleware
{
private readonly RequestDelegate _next;
private rea... | using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Primitives;
using StockportWebapp.Config;
namespace StockportWebapp.Middleware
{
public class BusinessIdMiddleware
{
private readonly RequestDelegate _next;
private rea... | mit | C# |
d69c4d958f74fdf51aa672733dae25fb1cdde99a | Add calc method. | ijufumi/garbage_calendar | garbage_calendar/Utils/CalendarUtils.cs | garbage_calendar/Utils/CalendarUtils.cs | using System;
namespace garbage_calendar.Utils
{
public class CalendarUtils
{
public static int CalcRowSize(int year, int month)
{
var diff = CalcPrevMonthDays(year, month);
var endOfDay = GetCountOfDays(year, month);
var cellCountWithPrefix = diff + endOfDa... | using System;
namespace garbage_calendar.Utils
{
public class CalendarUtils
{
public static int CalcRowSize(int year, int month)
{
var diff = CalcPrevMonthDays(year, month);
var endOfDay = DateTime.DaysInMonth(year, month);
var cellCountWithPrefix = diff + e... | mit | C# |
a0233fd29b7edeac07e4f7d0ec948354b2f07332 | Change list display for soldiers | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Views/Soldiers/List.cshtml | Battery-Commander.Web/Views/Soldiers/List.cshtml | @model IEnumerable<Soldier>
<h2>Soldiers @Html.ActionLink("Add New", "New", "Soldiers", null, new { @class = "btn btn-default" })</h2>
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>@Html.DisplayNameFor(_ => _.FirstOrDefault().FirstName)</th>
<th>@Html.... | @model IEnumerable<Soldier>
<h2>Soldiers @Html.ActionLink("Add New", "New", "Soldiers", null, new { @class = "btn btn-default" })</h2>
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Rank)</th>
<th>@Html.Displ... | mit | C# |
d086b47c5f53159c8abc046975ae0688ace00b14 | Increment RestSharp PATCH version | rivy/RestSharp,KraigM/RestSharp,benfo/RestSharp,wparad/RestSharp,chengxiaole/RestSharp,uQr/RestSharp,eamonwoortman/RestSharp.Unity,who/RestSharp,kouweizhong/RestSharp,wparad/RestSharp,dmgandini/RestSharp,dyh333/RestSharp,PKRoma/RestSharp,mwereda/RestSharp,RestSharp-resurrected/RestSharp,fmmendo/RestSharp,periface/RestS... | RestSharp/SharedAssemblyInfo.cs | RestSharp/SharedAssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System;
// 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: Ass... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System;
// 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: Ass... | apache-2.0 | C# |
a7efddfec1a58f360700323247574b8bf2f176e7 | Refactor MemberErrors | JohanLarsson/Gu.State,JohanLarsson/Gu.State,JohanLarsson/Gu.ChangeTracking | Gu.State/Internals/Errors/Errors/MemberErrors.cs | Gu.State/Internals/Errors/Errors/MemberErrors.cs | namespace Gu.State
{
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
[DebuggerDisplay("{GetType().Name} Member: {Path.LastMember.DeclaringType.Name}.{Path.LastMember.Name}")]
internal sealed class MemberErrors : Error, IWithErrors, IExcludableMember, INotsupport... | namespace Gu.State
{
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
[DebuggerDisplay("{GetType().Name} Member: {Path.LastMember.DeclaringType.Name}.{Path.LastMember.Name}")]
internal sealed class MemberErrors : Error, IWithErrors, IExcludableMember, INotsupport... | mit | C# |
1a11e78a0bc8ffcd534fe69e933c0a8d1d4301e0 | Fix for KernelGCMemory.AllocateMemory by tgiphil | Kintaro/MOSA-Project,kiootic/MOSA-Project,modulexcite/MOSA-Project,kiootic/MOSA-Project,modulexcite/MOSA-Project,Kintaro/MOSA-Project | Source/Kernel/KernelGCMemory.cs | Source/Kernel/KernelGCMemory.cs | /*
* (c) 2008 MOSA - The Managed Operating System Alliance
*
* Licensed under the terms of the New BSD License.
*
* Authors:
* Phil Garcia (tgiphil) <phil@thinkedge.com>
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Mosa.Kernel
{
/// <summary>
/// Kernel Memory Allocator -... | /*
* (c) 2008 MOSA - The Managed Operating System Alliance
*
* Licensed under the terms of the New BSD License.
*
* Authors:
* Phil Garcia (tgiphil) <phil@thinkedge.com>
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Mosa.Kernel
{
/// <summary>
/// Kernel Memory Allocator -... | bsd-3-clause | C# |
4633069b9d1c35d4118701710e51526d4e5ceaf6 | add configs | aritchie/bluetoothle,aritchie/bluetoothle | Plugin.BluetoothLE.Android.Tests/MainActivity.cs | Plugin.BluetoothLE.Android.Tests/MainActivity.cs | using System;
using System.Reflection;
using Acr.UserDialogs;
using Android;
using Android.App;
using Android.Content.PM;
using Android.OS;
using Xunit.Runners.UI;
namespace Plugin.BluetoothLE.Android.Tests
{
[Activity(
Label = "Plugin.BluetoothLE.Android.Tests",
MainLauncher = true,
Icon... | using System;
using System.Reflection;
using Acr.UserDialogs;
using Android;
using Android.App;
using Android.Content.PM;
using Android.OS;
using Xunit.Runners.UI;
namespace Plugin.BluetoothLE.Android.Tests
{
[Activity(
Label = "Plugin.BluetoothLE.Android.Tests",
MainLauncher = true,
Icon... | mit | C# |
d2033137937c069145fba09f85180b46fb12533e | Add label to Cell. | ijufumi/garbage_calendar | garbage_calendar/Logic/Cell.cs | garbage_calendar/Logic/Cell.cs | using Xamarin.Forms;
namespace garbage_calendar.Logic
{
public class Cell : AbsoluteLayout
{
public static readonly BindableProperty YearProperty = BindableProperty.Create("Year", typeof (int), typeof (Xamarin.Forms.Cell), 2000, BindingMode.TwoWay, null, OnDateValuePropertyChanged);
public sta... | using Xamarin.Forms;
namespace garbage_calendar.Logic
{
public class Cell : AbsoluteLayout
{
public static readonly BindableProperty YearProperty = BindableProperty.Create("Year", typeof (int), typeof (Xamarin.Forms.Cell), 2000, BindingMode.TwoWay, null, OnDateValuePropertyChanged);
public sta... | mit | C# |
01f47a50d6f5c6b7fb158a843e8efb0925637cac | remove segnet | MetacoSA/QBitNinja | QBitNinja/JsonConverters/NetworkJsonConverter.cs | QBitNinja/JsonConverters/NetworkJsonConverter.cs | using NBitcoin;
using Newtonsoft.Json;
using System;
using System.Reflection;
#if !CLIENT
namespace QBitNinja.JsonConverters
#else
namespace QBitNinja.Client.JsonConverters
#endif
{
#if !NOJSONNET
public
#else
internal
#endif
class NetworkJsonConverter : JsonConverter
{
public overrid... | using NBitcoin;
using Newtonsoft.Json;
using System;
using System.Reflection;
#if !CLIENT
namespace QBitNinja.JsonConverters
#else
namespace QBitNinja.Client.JsonConverters
#endif
{
#if !NOJSONNET
public
#else
internal
#endif
class NetworkJsonConverter : JsonConverter
{
public overrid... | mit | C# |
1098b6ccef333b4ae2abb0b4e0dc2f48ce906ca6 | Update ObservableExtensions.cs | keith-hall/Extensions,keith-hall/Extensions | src/ObservableExtensions.cs | src/ObservableExtensions.cs | using System;
using System.Reactive.Linq;
public static class ObservableExtensions
{
public static IObservable<TOutput> WithPrevious<TSource, TOutput>(this IObservable<TSource> source, Func<TSource, TSource, TOutput> projection)
{
return source.Scan(Tuple.Create(default(TSource), default(TSource)),
(previous, c... | public static class ObservableExtensions {
public static IObservable<TOutput> WithPrevious<TSource, TOutput> (this IObservable<TSource> source, Func<TSource, TSource, TOutput> projection) {
return source.Scan(Tuple.Create(default(TSource), default(TSource)),
(previous, current) => Tuple.Create(previous.Item2, cur... | apache-2.0 | C# |
54de3be3f448eb597a400b634592806670b76c01 | Modify language service to work without prepared cultures | emoacht/Monitorian | Source/Monitorian.Core/Models/LanguageService.cs | Source/Monitorian.Core/Models/LanguageService.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Monitorian.Core.Models
{
public class LanguageService
{
public static IReadOnlyCollection<string> Options => new[] { Option ... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Monitorian.Core.Models
{
public class LanguageService
{
private static IReadOnlyDictionary<string, string> PreparedCulturePa... | mit | C# |
4114d0ab315c563c1b43fafdf73b5f4db068eea8 | Add movable player. | pjk21/roguelikedev-does-the-complete-roguelike-tutorial | Roguelike/Roguelike/Program.cs | Roguelike/Roguelike/Program.cs | using BearLib;
using System.Drawing;
namespace Roguelike
{
class Program
{
public const int ScreenWidth = 80;
public const int ScreenHeight = 50;
public static int PlayerX { get; set; } = ScreenWidth / 2;
public static int PlayerY { get; set; } = ScreenHeight / 2;
sta... | using BearLib;
using System.Drawing;
namespace Roguelike
{
class Program
{
public const int ScreenWidth = 80;
public const int ScreenHeight = 50;
static void Main(string[] args)
{
Initialize();
while (true)
{
Draw();
... | mit | C# |
7f82ec0aa36bbb6d7cea57785202563f677ac859 | Make logger public | CoderLine/alphaTab,CoderLine/alphaTab,CoderLine/alphaTab,CoderLine/alphaTab,CoderLine/alphaTab,CoderLine/alphaTab | Source/AlphaTab/Util/Logger.cs | Source/AlphaTab/Util/Logger.cs | namespace AlphaTab.Util
{
public class Logger
{
public static LogLevel LogLevel { get; set; }
static Logger()
{
LogLevel = LogLevel.Info;
}
public static void Debug(string category, string msg, object details = null)
{
Log(LogLevel.Debug,... | namespace AlphaTab.Util
{
internal class Logger
{
public static LogLevel LogLevel { get; set; }
static Logger()
{
LogLevel = LogLevel.Info;
}
public static void Debug(string category, string msg, object details = null)
{
Log(LogLevel.Debu... | mpl-2.0 | C# |
05c2962d65b65e1dabe88de2e852fd7104bf3bfd | Add pagination | mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager | SupportManager.Web/Areas/Admin/User/Index.cshtml | SupportManager.Web/Areas/Admin/User/Index.cshtml | @using X.PagedList.Mvc.Core
@using SupportManager.Web.Areas.Admin.User
@model SupportManager.Web.Areas.Admin.User.Index.Result
@{
ViewBag.Title = "Users";
}
<h2>Users</h2>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Login</th>
<th>Primary phonenumber</... | @model SupportManager.Web.Areas.Admin.User.Index.Result
@{
ViewBag.Title = "Users";
}
<h2>Users</h2>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Login</th>
<th>Primary phonenumber</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (... | mit | C# |
e682f2540a9e531b5b094ad76adf234d782bd0f7 | Update Program.cs | tchusami/TelegramBotsDotNet | TelegramBotsAPITest/Program.cs | TelegramBotsAPITest/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TelegramBotsAPI;
namespace TelegramBotsAPITest
{
public class Program
{
public static void Main(string[] args)
{
var api = new BotApi("");
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TelegramBotsAPI;
namespace TelegramBotsAPITest
{
public class Program
{
public static void Main(string[] args)
{
var api = new BotApi("99977343... | apache-2.0 | C# |
c9fb5a10a1e42364b0f6011fc60f40a6f3b664df | Update MoveRocket.cs | highnet/Java-101,highnet/Java-101 | Unity/RocketGame/MoveRocket.cs | Unity/RocketGame/MoveRocket.cs | using UnityEngine;
using System.Collections;
public class MoveRocket : MonoBehaviour {
public float thrust;
private Rigidbody rb;
public float gravity;
// Use this for initialization
void Start ()
{
Physics.gravity = new Vector3(0, gravity, 0);
rb = GetComponent<Rigidbody>();
}
... | mit | C# | |
18cda44919d59ed512b2177b147df9f82431cc99 | remove unneeded dependencies | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | api/FilterLists.API/Startup.cs | api/FilterLists.API/Startup.cs | using FilterLists.Data.Contexts;
using FilterLists.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using My... | using FilterLists.Data;
using FilterLists.Data.Contexts;
using FilterLists.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Exte... | mit | C# |
84d520349a34016317e45cc9f61bb791e9de4f43 | Use expected, but incorrect, truncated RFC3339 format | messagebird/csharp-rest-api | MessageBird/Json/Converters/RFC3339DateTimeConverter.cs | MessageBird/Json/Converters/RFC3339DateTimeConverter.cs | using System;
using MessageBird.Utilities;
using Newtonsoft.Json;
using System.Globalization;
namespace MessageBird.Json.Converters
{
public class RFC3339DateTimeConverter : JsonConverter
{
// XXX: Format should be "yyyy-MM-dd'T'THH:mm:ssK".
// However, due to bug the endpoint expects the curr... | using System;
using MessageBird.Utilities;
using Newtonsoft.Json;
using System.Globalization;
namespace MessageBird.Json.Converters
{
public class RFC3339DateTimeConverter : JsonConverter
{
private const string format = "Y-m-d\\TH:i:sP";
public override void WriteJson(JsonWriter writer, object... | isc | C# |
288588a9733bcb9dee1ccc02f3ed8dbf557cb98c | update version | prodot/ReCommended-Extension | Sources/ReCommendedExtension/Properties/AssemblyInfo.cs | Sources/ReCommendedExtension/Properties/AssemblyInfo.cs | using System.Reflection;
using ReCommendedExtension;
// 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(ZoneMarker.ExtensionName)]
[assembly: AssemblyDescript... | using System.Reflection;
using ReCommendedExtension;
// 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(ZoneMarker.ExtensionName)]
[assembly: AssemblyDescript... | apache-2.0 | C# |
e3e03feb9ea631795a7097b6997b2bfe801cd541 | Bump nuget version | xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents | Android/SurfaceDuo/build.cake | Android/SurfaceDuo/build.cake | var TARGET = Argument ("t", Argument ("target", "ci"));
var AAR_VERSION = "0.0.3";
var NUGET_VERSION = "0.0.3.4";
Task ("externals")
.Does (() =>
{
EnsureDirectoryExists ("./externals");
// Update .csproj nuget versions
XmlPoke("./source/SurfaceDuo/SurfaceDuo.csproj", "/Project/PropertyGroup/PackageVersion", NU... | var TARGET = Argument ("t", Argument ("target", "ci"));
var AAR_VERSION = "0.0.3";
var NUGET_VERSION = "0.0.3.3";
Task ("externals")
.Does (() =>
{
EnsureDirectoryExists ("./externals");
// Update .csproj nuget versions
XmlPoke("./source/SurfaceDuo/SurfaceDuo.csproj", "/Project/PropertyGroup/PackageVersion", NU... | mit | C# |
e39fea18ddd12f66d223c7815a06f08754a61b3f | Test for commit | niaher/kanbang,niaher/kanbang,niaher/kanbang,niaher/kanbang | Kanbang.Web/Controllers/Api/DataController.cs | Kanbang.Web/Controllers/Api/DataController.cs | namespace Kanbang.Web.Controllers.Api
{
using System.IdentityModel.Services;
using System.Security.Permissions;
using System.Web.Http;
public class DataController : ApiController
{
[HttpGet]
public string Get(int? id)
{
return "data-" + id;
}
[HttpGet]
[ClaimsPrincipalPermission(SecurityAction.De... | namespace Kanbang.Web.Controllers.Api
{
using System.IdentityModel.Services;
using System.Security.Permissions;
using System.Web.Http;
public class DataController : ApiController
{
[HttpGet]
public string Get(int? id)
{
return "data-" + id;
}
[HttpGet]
[ClaimsPrincipalPermission(SecurityAction.De... | mit | C# |
c13ebddebfc006dd52d26955e008c11b1fd42948 | Update NumberChainValidator.cs | kenshinthebattosai/KenChainer | KenChainer/Validators/NumberChainValidator.cs | KenChainer/Validators/NumberChainValidator.cs | using System.Linq;
using System.Text.RegularExpressions;
using KenChainer.Core;
namespace KenChainer.Validators
{
/// <summary>
/// Default rules for the problem go here.
/// Currently there are 4 rules:
/// 1. Only 7 numbers
/// 2. Only 6 operators
/// 3. All 4 operators must be used
/// 4... | using System.Linq;
using System.Text.RegularExpressions;
using KenChainer.Core;
namespace KenChainer.Validators
{
/// <summary>
/// Default rules for the problem go here.
/// Currently there are 4 rules:
/// Only 7 numbers
/// Only 6 operators
/// All 4 operators must be used
/// 2 operator... | mit | C# |
9d0d79d9a5f871ae134dddc20ba9b29210617519 | Add reset to game manager, start text to menu | sundbe10/GGJ17 | Assets/GameManager.cs | Assets/GameManager.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class GameManager : Singleton<GameManager> {
enum State{
ACTIVE,
ENDED
}
State _state = State.ACTIVE;
public static int score = 1000;
public static bool gameActive... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class GameManager : Singleton<GameManager> {
enum State{
ACTIVE,
ENDED
}
State _state = State.ACTIVE;
public static int score = 1000;
public static bool gameActive = true;
GameObject[] players;
... | mit | C# |
234b3b0a63dce8d08671d17452ce008cb676d1ae | Fix XP text not displaying | jamioflan/LD38 | Assets/Scripts/HUD_Manager.cs | Assets/Scripts/HUD_Manager.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HUD_Manager : MonoBehaviour
{
// The names of the GUI objects we're editing
public string amountXPElementName;
public string playerHealthElementName;
public string equippedWeaponIconElemen... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HUD_Manager : MonoBehaviour
{
// The names of the GUI objects we're editing
public string amountXPElementName;
public string playerHealthElementName;
public string equippedWeaponIconElemen... | mit | C# |
58107a586d190009e36c40ecfb44434fc8e822dc | define empty flag | UpBeet/dungeon-generator | Assets/Scripts/TileController.cs | Assets/Scripts/TileController.cs | using UnityEngine;
/// <summary>
/// Tile definition, logic passed between client and server.
/// </summary>
public class Tile {
/// <summary>
/// The X coordinate.
/// </summary>
public int X { get; private set; }
/// <summary>
/// The Y coordinate.
/// </summary>
public int Y { get; private set; }
/// <... | using UnityEngine;
/// <summary>
/// Tile definition, logic passed between client and server.
/// </summary>
public class Tile {
/// <summary>
/// The X coordinate.
/// </summary>
public int X { get; private set; }
/// <summary>
/// The Y coordinate.
/// </summary>
public int Y { get; private set; }
/// <... | mit | C# |
80fdefef2a0283b2d36954f4266e4aaa3133e702 | Adjust sample to fit on default Windows cmd console. | cmarcusreid/cs-console-progress | ConsoleProgressBar/Program.cs | ConsoleProgressBar/Program.cs | using System;
using System.Threading;
namespace ConsoleProgressBar
{
/// <summary>
/// Simple program with sample usage of ConsoleProgressBar.
/// </summary>
class Program
{
public static void Main(string[] args)
{
using (var progressBar = new ConsoleProgressBar(totalUn... | using System;
using System.Threading;
namespace ConsoleProgressBar
{
/// <summary>
/// Simple program with sample usage of ConsoleProgressBar.
/// </summary>
class Program
{
public static void Main(string[] args)
{
using (var progressBar = new ConsoleProgressBar(totalUn... | mit | C# |
c11aa4f9867d0a0a1a3e9701f57d34b85c055870 | Disable unfinished test | stilldesign/PhysX.Net,stilldesign/PhysX.Net,stilldesign/PhysX.Net | PhysX.Net/Test/SimulationEventCallbackTest.cs | PhysX.Net/Test/SimulationEventCallbackTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace PhysX.Test
{
[TestClass]
public class SimulationEventCallbackTest : Test
{
[TestMethod]
[Ignore]
public void OnConstraintBreakIsCalled()
{
using (var ph... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace PhysX.Test
{
[TestClass]
public class SimulationEventCallbackTest : Test
{
[TestMethod]
public void OnConstraintBreakIsCalled()
{
using (var physics = Cre... | mit | C# |
2279442576c585dd3c38bbe4dd1c288740d7059a | Add Properties for SparkMessage. | RichLogan/CiscoSpark-UnityProject,RichLogan/CiscoSpark-UnityProject | SparkUnity/Assets/Cisco/Spark/SparkMessage.cs | SparkUnity/Assets/Cisco/Spark/SparkMessage.cs | using System.Collections.Generic;
namespace Cisco.Spark
{
/// <summary>
/// A message Spark returns in response to an operation.
/// This is usually a wrapping of a SparkError.
/// </summary>
public class SparkMessage
{
/// <summary>
/// The specific message from Spark.
... | using System;
using System.Collections.Generic;
namespace Cisco.Spark {
public class SparkMessage {
public string Message;
public IEnumerable<SparkError> Errors;
public string TrackingId;
public SparkMessage (Dictionary<string, object> data) {
Message = (string) data ["message"];
Errors = new List<Sp... | apache-2.0 | C# |
b05ef8c4db57555ceb1922b5c66d07cfabfcaeb4 | Revert to CancellationTokenSource in FetchWorker for #1267 | charlenni/Mapsui,pauldendulk/Mapsui,charlenni/Mapsui | Mapsui/Fetcher/FetchWorker.cs | Mapsui/Fetcher/FetchWorker.cs | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Mapsui.Fetcher
{
class FetchWorker
{
private readonly IFetchDispatcher _fetchDispatcher;
private CancellationTokenSource _fetchLoopCancellationTokenSource;
public static long RestartCounter;
public F... | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Mapsui.Fetcher
{
class FetchWorker
{
private readonly IFetchDispatcher _fetchDispatcher;
private volatile bool _busy;
public static long RestartCounter;
public FetchWorker(IFetchDispatcher fetchDispa... | mit | C# |
feb2d1d76823f7c525c18f13ed333665b72d0244 | Disable panning or selection | EvanHahn/Unity-RTS-camera | RTSCamera.cs | RTSCamera.cs | using UnityEngine;
using System.Collections;
public class RTSCamera : MonoBehaviour {
public bool disablePanning = false;
public bool disableSelect = false;
public Color selectColor = Color.green;
public float selectLineWidth = 2f;
private readonly string[] INPUT_MOUSE_BUTTONS = {"Mouse Look", "Mouse Select"}... | using UnityEngine;
using System.Collections;
public class RTSCamera : MonoBehaviour {
public Color selectColor = Color.green;
public float selectLineWidth = 2f;
private readonly string[] INPUT_MOUSE_BUTTONS = {"Mouse Look", "Mouse Select"};
private bool[] isDragging = new bool[2];
private Vector3 selectStar... | mit | C# |
01ff22f820ad73adef37527973561afab006fc32 | add internal depth frame source | rjw57/streamkinect2.net | StreamKinect2/KinectDevice.cs | StreamKinect2/KinectDevice.cs | using Microsoft.Kinect;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StreamKinect2
{
internal class KinectDeviceDepthFrameSource : IDepthFrameSource
{
public event DepthFrameHandler DepthFrame;
... | using Microsoft.Kinect;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StreamKinect2
{
public class KinectDevice : IDevice
{
public static KinectDevice DefaultDevice = CreateDefaultDevice();
... | bsd-2-clause | C# |
9384e2f1c92fc0b5c7fb762e10632239f8688dbb | Remove unused using | dotnet/roslyn-analyzers,pakdev/roslyn-analyzers,mavasani/roslyn-analyzers,dotnet/roslyn-analyzers,pakdev/roslyn-analyzers,mavasani/roslyn-analyzers | src/Utilities/FlowAnalysis/FlowAnalysis/Analysis/PointsToAnalysis/PointsToAnalysisKind.cs | src/Utilities/FlowAnalysis/FlowAnalysis/Analysis/PointsToAnalysis/PointsToAnalysisKind.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.CodeAnalysis.FlowAnalysis.DataFlow.PointsToAnalysis
{
public enum PointsToAnalysisKind
{
// NOTE: Below fields names are ... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.CodeAnalysis.FlowAnalysis.DataFlow.PointsToAnalysis
{
public enum PointsToAnalysisKind
{
// NOTE: Below fi... | mit | C# |
71d61db3b1a48d3ad7750061a3f6ab82280e9ce8 | Implement tryremove vertex | DasAllFolks/SharpGraphs | Graph/SimpleGraph.cs | Graph/SimpleGraph.cs | using System;
using System.Collections.Generic;
namespace Graph
{
/// <summary>
/// Represents a simple graph (i.e., as opposed to a
/// <see cref="MultiGraph{V, E, W}"/>.
/// </summary>
/// <typeparam name="V">
/// The type used to create vertex (node) labels.
/// </typeparam>
/// <ty... | using System;
using System.Collections.Generic;
namespace Graph
{
/// <summary>
/// Represents a simple graph (i.e., as opposed to a
/// <see cref="MultiGraph{V, E, W}"/>.
/// </summary>
/// <typeparam name="V">
/// The type used to create vertex (node) labels.
/// </typeparam>
/// <ty... | apache-2.0 | C# |
1e2c0031d7473302f2f39bee34f4e4d2d4088048 | Remove unused usings | peppy/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu | osu.Game/Rulesets/Difficulty/Skills/StrainDecaySkill.cs | osu.Game/Rulesets/Difficulty/Skills/StrainDecaySkill.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Game.Rulesets.Difficulty.Preprocessing;
using osu.Game.Rulesets.Mods;
namespace osu.Game.Rulesets.Difficulty.Skills
{
/// <summary>
/// U... | // 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 System.Linq;
using osu.Game.Rulesets.Difficulty.Preprocessing;
using osu.Game.Rulesets.Mods;
namespace osu.Game.Rul... | mit | C# |
250bed5d62c82a7d7c30140918d82d4a30f134e9 | Update to send mail function | KryptPad/KryptPadWebsite,KryptPad/KryptPadWebsite,KryptPad/KryptPadWebsite | KryptPadWebApp/Email/EmailHelper.cs | KryptPadWebApp/Email/EmailHelper.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
using System.Web;
namespace KryptPadWebApp.Email
{
public class EmailHelper
{
/// <summary>
/// Sends an email
/// </sum... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
using System.Web;
namespace KryptPadWebApp.Email
{
public class EmailHelper
{
/// <summary>
/// Sends an email
/// </sum... | mit | C# |
402267bf8efd9fd525eda96bb123c9aa185d9b5a | Remove call to EnableInternalPdfViewerOffScreen as it's been removed as Chromium no longer supports disabling of surfaces | cefsharp/CefSharp.MinimalExample | CefSharp.MinimalExample.Wpf/App.xaml.cs | CefSharp.MinimalExample.Wpf/App.xaml.cs | using System;
using System.Windows;
namespace CefSharp.MinimalExample.Wpf
{
public partial class App : Application
{
public App()
{
//Perform dependency check to make sure all relevant resources are in our output directory.
var settings = new CefSettings();
... | using System;
using System.Windows;
namespace CefSharp.MinimalExample.Wpf
{
public partial class App : Application
{
public App()
{
//Perform dependency check to make sure all relevant resources are in our output directory.
var settings = new CefSettings();
... | mit | C# |
58b13cc07db674832a66fd26b16df213d46485ad | update copyright year | longshine/Mina.NET | Mina.NET/Properties/AssemblyInfo.cs | Mina.NET/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | apache-2.0 | C# |
5bd84d25b646670d86ae6377ccc89b5d58dcd270 | Fix null parent perms (#504) | NuKeeperDotNet/NuKeeper,skolima/NuKeeper,AnthonySteele/NuKeeper,skolima/NuKeeper,skolima/NuKeeper,skolima/NuKeeper,NuKeeperDotNet/NuKeeper,NuKeeperDotNet/NuKeeper,AnthonySteele/NuKeeper,AnthonySteele/NuKeeper,NuKeeperDotNet/NuKeeper,AnthonySteele/NuKeeper | NuKeeper.GitHub/GitHubRepository.cs | NuKeeper.GitHub/GitHubRepository.cs | using NuKeeper.Abstractions.DTOs;
using System;
using Repository = NuKeeper.Abstractions.DTOs.Repository;
namespace NuKeeper.GitHub
{
public class GitHubRepository : Repository
{
public GitHubRepository(Octokit.Repository repository)
: base(
repository.Name,
repository.A... | using NuKeeper.Abstractions.DTOs;
using System;
using Repository = NuKeeper.Abstractions.DTOs.Repository;
namespace NuKeeper.GitHub
{
public class GitHubRepository : Repository
{
public GitHubRepository(Octokit.Repository repository)
: base(
repository.Name,
repository.A... | apache-2.0 | C# |
f14ac704b7b09d0e4fe7aea5e95857a2998bd606 | replace linq query with foreach | HouseBreaker/Shameless | Shameless/Tickets/DatabaseParser.cs | Shameless/Tickets/DatabaseParser.cs | namespace Shameless.Tickets
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using Newtonsoft.Json.Linq;
public static class DatabaseParser
{
public static void DownloadDatabase(string outputPath)
{
using (var client = new WebClient())
{
client.DownloadFile("h... | namespace Shameless.Tickets
{
using System;
using System.IO;
using System.Linq;
using System.Net;
using Newtonsoft.Json.Linq;
public static class DatabaseParser
{
public static void DownloadDatabase(string outputPath)
{
using (var client = new WebClient())
{
client.DownloadFile("http://3ds.nfsho... | mit | C# |
b88bc7386f354cd9bde4db21551f84ccb9fcdba3 | complete writing seidel iteration function | pashchuk/Numerical-methods,pashchuk/Numerical-methods | CSharp/Nums/SeidelMethod.cs | CSharp/Nums/SeidelMethod.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Nums
{
public class SeidelMethod
{
#region Fields
private Matrix<double> _matrix;
private double[] _vector;
#endregion
#region Properties
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nums
{
public class SeidelMethod
{
#region Fields
private Matrix<double> _matrix;
private double[] _vector;
#endregion
#region Properties
#endregion
#region Costructors
... | mit | C# |
4cfc6866835d4d92f2c6f03cd4bfeaa47c845c76 | Fix excption with 0 control points | ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,EVAST9919/osu,peppy/osu-new,EVAST9919/osu,peppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu | osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/Components/PathControlPointConnectionPiece.cs | osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/Components/PathControlPointConnectionPiece.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.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Lines;
using osu.Game.Rulesets.Objects;... | // 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.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Lines;
using osu.Game.Rulesets.Objects;... | mit | C# |
818016924dc1e7b974eda25c05b4810237c1d3b9 | Simplify some code in CustomLogger. | mono/sdb,mono/sdb | src/CustomLogger.cs | src/CustomLogger.cs | /*
* SDB - Mono Soft Debugger Client
* Copyright 2013 Alex Rønne Petersen
*
* 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
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any late... | /*
* SDB - Mono Soft Debugger Client
* Copyright 2013 Alex Rønne Petersen
*
* 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
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any late... | mit | C# |
e319a291fcb26cc6f0f3dc1a464cbd61ae6b8445 | Remove unnecessary usings. | ianhays/xunit-performance,Microsoft/xunit-performance,ericeil/xunit-performance,pharring/xunit-performance,visia/xunit-performance,mmitche/xunit-performance,Microsoft/xunit-performance | src/xunit.performance.core/BenchmarkIterationControl.cs | src/xunit.performance.core/BenchmarkIterationControl.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading;
namespace Microsoft.Xunit.Performance
{
/// <summary>
/// Allows a performance test to manually control test iterations.... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
... | mit | C# |
16189dfd098ed53b78e82ccca04d8b3933ab237a | Update entity | diolive/cache,diolive/cache | DioLive.Cache/src/DioLive.Cache.WebUI/Models/Purchase.cs | DioLive.Cache/src/DioLive.Cache.WebUI/Models/Purchase.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace DioLive.Cache.WebUI.Models
{
public class Purchase
{
public const string CostFormat = "{0:N0} ₽";
public... | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace DioLive.Cache.WebUI.Models
{
public class Purchase
{
public const string CostFormat = "{0:N0} ₽";
public... | mit | C# |
e49d82e2290b3427df3f134ceb6db430955b5a73 | Add option for groupname to group options by groups | c0nnex/SPAD.neXt,c0nnex/SPAD.neXt | SPAD.Interfaces/Configuration/IProfileOptionsProvider.cs | SPAD.Interfaces/Configuration/IProfileOptionsProvider.cs | using SPAD.neXt.Interfaces.Profile;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace SPAD.neXt.Interfaces.Configuration
{
public interface ISettingsProvider : IProfileOptionsProvider, IWindowPlacementProvider
{ ... | using SPAD.neXt.Interfaces.Profile;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace SPAD.neXt.Interfaces.Configuration
{
public interface ISettingsProvider : IProfileOptionsProvider, IWindowPlacementProvider
{ ... | mit | C# |
2ecfbecdbbe4d2c1dd4b8bafaa7244700a8bfa1d | Remove reference to obsolete `searchHighlight()` javascript function from ClearSilver footer template. | rbaumg/trac,rbaumg/trac,rbaumg/trac,rbaumg/trac | templates/footer.cs | templates/footer.cs | <?cs if:len(chrome.links.alternate) ?>
<div id="altlinks"><h3>Download in other formats:</h3><ul><?cs
each:link = chrome.links.alternate ?><?cs
set:isfirst = name(link) == 0 ?><?cs
set:islast = name(link) == len(chrome.links.alternate) - 1?><li<?cs
if:isfirst || islast ?> class="<?cs
if:isfirst ?>first<?c... | <script type="text/javascript">searchHighlight()</script><?cs
if:len(chrome.links.alternate) ?>
<div id="altlinks"><h3>Download in other formats:</h3><ul><?cs
each:link = chrome.links.alternate ?><?cs
set:isfirst = name(link) == 0 ?><?cs
set:islast = name(link) == len(chrome.links.alternate) - 1?><li<?cs
if:is... | bsd-3-clause | C# |
ff4ae160ed16d00fac7d339e7fddd43f7e651c9b | Delete line | mgoertz-msft/roslyn,gafter/roslyn,eriawan/roslyn,jasonmalinowski/roslyn,stephentoub/roslyn,AmadeusW/roslyn,weltkante/roslyn,jasonmalinowski/roslyn,reaction1989/roslyn,genlu/roslyn,AlekseyTs/roslyn,gafter/roslyn,weltkante/roslyn,heejaechang/roslyn,CyrusNajmabadi/roslyn,CyrusNajmabadi/roslyn,panopticoncentral/roslyn,pano... | src/VisualStudio/Core/Def/Implementation/IntellisenseControls/IntellisenseTextBoxWorkspace.cs | src/VisualStudio/Core/Def/Implementation/IntellisenseControls/IntellisenseTextBoxWorkspace.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullable enable
using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
using Microsoft.CodeAnalysis.Editor.Options;
using Microsoft... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullable enable
using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
using Microsoft.CodeAnalysis.Editor.Options;
using Microsoft... | mit | C# |
122507bc3fe95473fae23b88b56d2e95f0076449 | Add Save Function | yugecin/osukps | osukps/KpsButton.cs | osukps/KpsButton.cs | using System;
using System.Drawing;
using System.Windows.Forms;
namespace osukps
{
public class KpsButton : Panel
{
private Label label;
public IKeyHandler Handler { get; set; }
private int color;
private bool state;
private int key;
public KpsButton( int position )
{
Visible = true;
... | using System;
using System.Drawing;
using System.Windows.Forms;
namespace osukps
{
public class KpsButton : Panel
{
private Label label;
public IKeyHandler Handler { get; set; }
private int color;
private bool state;
public KpsButton( int position )
{
Visible = true;
AutoSize = false;
Size =... | mit | C# |
2d62553122ac54db3786d9a827e4f3c82990cd73 | Fix an out-of-date comment | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/WebSites/ActionConstraintsWebSite/Controllers/ConsumesAttribute_OveridesBaseController.cs | test/WebSites/ActionConstraintsWebSite/Controllers/ConsumesAttribute_OveridesBaseController.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.AspNet.Mvc;
namespace ActionConstraintsWebSite
{
[Consumes("application/json")]
public class ConsumesAttribute_OverridesBaseCon... | // 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.AspNet.Mvc;
namespace ActionConstraintsWebSite
{
[Consumes("application/json")]
public class ConsumesAttribute_OverridesBaseCon... | apache-2.0 | C# |
58cba7050014aacb84ec5958d7eca734df24a46f | test refactor | mausch/OpenX.Net | OpenXNet/Class1.cs | OpenXNet/Class1.cs | using System;
using CookComputing.XmlRpc;
using MbUnit.Framework;
namespace OpenXNet {
[TestFixture]
public class Class1 {
[Test]
public void Login_OK() {
IOpenXService svc = GetSvc();
var sessionId = svc.Logon("root", "root");
Console.WriteLine(s... | using System;
using CookComputing.XmlRpc;
using MbUnit.Framework;
namespace OpenXNet {
[TestFixture]
public class Class1 {
[Test]
public void Login_OK() {
var svc = XmlRpcProxyGen.Create<IOpenXService>();
svc.Url = "http://10.0.0.62/openx/api/v2/xmlrpc/";
... | apache-2.0 | C# |
31d8105f3c4ea320b5515f8b48c19fd66bfff56a | Add responseFilter to WebRequestExtension helpers | mono/ServiceStack.Text,gerryhigh/ServiceStack.Text,NServiceKit/NServiceKit.Text,NServiceKit/NServiceKit.Text,gerryhigh/ServiceStack.Text,mono/ServiceStack.Text | src/ServiceStack.Text/WebRequestExtensions.cs | src/ServiceStack.Text/WebRequestExtensions.cs | using System;
using System.IO;
using System.Net;
namespace ServiceStack.Text
{
public static class WebRequestExtensions
{
public static string GetJsonFromUrl(this string url, Action<HttpWebResponse> responseFilter = null)
{
return url.GetStringFromUrl("application/json", responseFi... | using System;
using System.IO;
using System.Net;
namespace ServiceStack.Text
{
public static class WebRequestExtensions
{
public static string GetJsonFromUrl(this string url)
{
return url.GetStringFromUrl("application/json");
}
public static string GetStringFromUrl... | bsd-3-clause | C# |
bba0508024125c0c0f0f3e1c96b7dc27e9542fab | 修改了 RequestContext 类中 ReceivedObject 属性的实现,确保该属性值不依赖于基类的 Parameter 属性。 | MetSystem/Zongsoft.CoreLibrary,Zongsoft/Zongsoft.CoreLibrary,huoxudong125/Zongsoft.CoreLibrary | Communication/RequestContext.cs | Communication/RequestContext.cs | /*
* Authors:
* 钟峰(Popeye Zhong) <zongsoft@gmail.com>
*
* Copyright (C) 2011-2013 Zongsoft Corporation <http://www.zongsoft.com>
*
* This file is part of Zongsoft.CoreLibrary.
*
* Zongsoft.CoreLibrary is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publ... | /*
* Authors:
* 钟峰(Popeye Zhong) <zongsoft@gmail.com>
*
* Copyright (C) 2011-2013 Zongsoft Corporation <http://www.zongsoft.com>
*
* This file is part of Zongsoft.CoreLibrary.
*
* Zongsoft.CoreLibrary is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publ... | lgpl-2.1 | C# |
49fc2d9af406e5f3c6e44cb5e3c0d68840bce3d8 | Fix the namespace following an earlier rename | adrianbanks/BroadbandSpeedStats,adrianbanks/BroadbandSpeedStats,adrianbanks/BroadbandSpeedStats,adrianbanks/BroadbandSpeedStats | Database.Migrations/Migrator.cs | Database.Migrations/Migrator.cs | using System;
using BroadbandStats.Database.Migrations.Migrations;
using FluentMigrator.Runner;
using FluentMigrator.Runner.Announcers;
using FluentMigrator.Runner.Initialization;
using FluentMigrator.Runner.Processors.SqlServer;
namespace BroadbandStats.Database.Migrations
{
public sealed class Migrator
{
... | using System;
using FluentMigrator.Runner;
using FluentMigrator.Runner.Announcers;
using FluentMigrator.Runner.Initialization;
using FluentMigrator.Runner.Processors.SqlServer;
namespace BroadbandStats.Database.Migrations
{
public sealed class Migrator
{
private readonly string connectionString;
... | mit | C# |
0a7ce905b70a349c8a202adf6f1e4c1927061b85 | Add ctor to Coordinate in order to make sample code work | scottschluer/geolocation,scottschluer/geolocation,scottschluer/geolocation | Geolocation/Coordinate.cs | Geolocation/Coordinate.cs | /* Geolocation Class Library
* Author: Scott Schluer (scott.schluer@gmail.com)
* May 29, 2012
* https://github.com/scottschluer/Geolocation
*/
namespace Geolocation
{
public struct Coordinate
{
public double Latitude { get; set; }
public double Longitude { get; set; }
public Coord... | /* Geolocation Class Library
* Author: Scott Schluer (scott.schluer@gmail.com)
* May 29, 2012
* https://github.com/scottschluer/Geolocation
*/
namespace Geolocation
{
public struct Coordinate
{
public double Latitude { get; set; }
public double Longitude { get; set; }
}
} | mit | C# |
d41e5a28e8e8b2399986e49689ed7caaadbe1d0b | Update src/Analyzers/CSharp/CodeFixes/ConvertTypeOfToNameOf/CSharpConvertTypeOfToNameOfCodeFixProvider.cs | KirillOsenkov/roslyn,dotnet/roslyn,aelij/roslyn,jasonmalinowski/roslyn,mavasani/roslyn,dotnet/roslyn,tannergooding/roslyn,AlekseyTs/roslyn,aelij/roslyn,jmarolf/roslyn,eriawan/roslyn,jasonmalinowski/roslyn,shyamnamboodiripad/roslyn,genlu/roslyn,heejaechang/roslyn,panopticoncentral/roslyn,KirillOsenkov/roslyn,brettfo/ros... | src/Analyzers/CSharp/CodeFixes/ConvertTypeOfToNameOf/CSharpConvertTypeOfToNameOfCodeFixProvider.cs | src/Analyzers/CSharp/CodeFixes/ConvertTypeOfToNameOf/CSharpConvertTypeOfToNameOfCodeFixProvider.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.Composition;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis.Cod... | // 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.Composition;
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis.Cod... | mit | C# |
8609d4f9f8eb939bbfc2e5110a08aaf89a1b2b21 | Convert BlockGameBeginWarpEventPayloadHandler to IoC Ctor | HelloKitty/Booma.Proxy | src/Booma.Proxy.Client.Unity.Ship/Handlers/Command/Warping/BlockGameBeginWarpEventPayloadHandler.cs | src/Booma.Proxy.Client.Unity.Ship/Handlers/Command/Warping/BlockGameBeginWarpEventPayloadHandler.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Logging;
using GladNet;
using SceneJect.Common;
namespace Booma.Proxy
{
/// <summary>
/// Command handler that handles the game/62 version of the <see cref="Sub60ClientWarpBeginEventComma... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Logging;
using GladNet;
using SceneJect.Common;
namespace Booma.Proxy
{
/// <summary>
/// Command handler that handles the game/62 version of the <see cref="Sub60ClientWarpBeginEventComma... | agpl-3.0 | C# |
146bb4a8b32e0e4eff491febac2122ec4c9dfe76 | Use types instead of fully qualified names. | GetTabster/Tabster.Core | Plugins/ITabsterPlugin.cs | Plugins/ITabsterPlugin.cs | using System;
namespace Tabster.Core.Plugins
{
public interface ITabsterPlugin
{
string Name { get; }
string Description { get; }
string Author { get; }
string Version { get; }
Type[] Types { get; }
}
}
| namespace Tabster.Core.Plugins
{
public interface ITabsterPlugin
{
string Name { get; }
string Description { get; }
string Author { get; }
string Version { get; }
string[] PluginClasses { get; }
}
}
| apache-2.0 | C# |
4edfd8153dfade6e8fcdf18e4b93d6fae18707ec | Change default world size to compensate for use of chunks | fistak/MaterialColor | Common/Data/OnionState.cs | Common/Data/OnionState.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Data
{
public class OnionState
{
public bool Enabled { get; set; } = true;
public bool CustomWorldSize { get; set; } = false;
public int Width { get; set... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Data
{
public class OnionState
{
public bool Enabled { get; set; } = true;
public bool CustomWorldSize { get; set; } = false;
public int Width { get; set... | mit | C# |
f1500c84f42c361814286efb48b0914c8f7d512d | Generalize NamespaceDoc | YallaDotNet/Yalla.Core | src/Yalla.Core/Portable/NamespaceDoc.cs | src/Yalla.Core/Portable/NamespaceDoc.cs | namespace Yalla
{
/// <summary>
/// Yalla types.
/// </summary>
[System.Runtime.CompilerServices.CompilerGenerated]
internal sealed class NamespaceDoc
{
}
}
| namespace Yalla
{
/// <summary>
/// Yalla Core classes, interfaces and enumerations.
/// </summary>
[System.Runtime.CompilerServices.CompilerGenerated]
internal sealed class NamespaceDoc
{
}
}
| apache-2.0 | C# |
4b1d35f1f586a7f46ae1894af140ce8cc7f6fbcb | Fix Get-AzureRmTrafficManagerProfile Parameters | ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azur... | src/ResourceManager/TrafficManager/Commands.TrafficManager2/Profile/GetAzureTrafficManagerProfile.cs | src/ResourceManager/TrafficManager/Commands.TrafficManager2/Profile/GetAzureTrafficManagerProfile.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# |
53f6ab64030de04b34df0a764e4d209b629d1304 | Fix default page | davidebbo-test/SettingsAPISampleSiteExtension,davidebbo-test/SettingsAPISampleSiteExtension | SettingsAPISample/Default.cshtml | SettingsAPISample/Default.cshtml | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title></title>
</head>
<body>
<div>
Click <a href="settings">here</a> to try the Web API.
</div>
</body>
</html>
| <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title></title>
</head>
<body>
<div>
Click <a href="settings/Hello">here</a> to try the Web API.
</div>
</body>
</html>
| apache-2.0 | C# |
656ec3f0b99edd1b5177b36091bfb1460d9519aa | Bump to version 1.1. | mono/sdb,mono/sdb | src/AssemblyInfo.cs | src/AssemblyInfo.cs | /*
* SDB - Mono Soft Debugger Client
* Copyright 2013 Alex Rønne Petersen
*
* 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
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any late... | /*
* SDB - Mono Soft Debugger Client
* Copyright 2013 Alex Rønne Petersen
*
* 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
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any late... | mit | C# |
249d09a6a6ff203ee7609ed6ad797d312cf1c2a6 | Update NPC.cs | manio143/ShadowsOfShadows | src/Entities/NPC.cs | src/Entities/NPC.cs | using System;
namespace ShadowsOfShadows
{
public class NPC : Character
{
public NPC ()
{
Immortal = true;
}
}
}
| using System;
namespace ShadowsOfShadows
{
public class NPC : Character
{
public NPC ()
{
}
public bool Immortal
{
get { return true; }
set { }
}
}
}
| mit | C# |
a2bc53116c35cb68402d21bbf0f534afdb614805 | Bump version to 0.8.0 | ar3cka/Journalist | src/SolutionInfo.cs | src/SolutionInfo.cs | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.8.0")]
[assembly: AssemblyInformationalVersionAttribute("0.8.0")]
[assembly: AssemblyFileVersionAttribute("0.8.0")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namespace... | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyProductAttribute("Journalist")]
[assembly: AssemblyVersionAttribute("0.7.4")]
[assembly: AssemblyInformationalVersionAttribute("0.7.4")]
[assembly: AssemblyFileVersionAttribute("0.7.4")]
[assembly: AssemblyCompanyAttribute("Anton Mednonogov")]
namespace... | apache-2.0 | C# |
c778646f101d9f73709c5b76ae339b4ffeaef7c2 | Add support for importing replay files. | UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,UselessToucan/osu,ppy/osu,peppy/osu,UselessToucan/osu,peppy/osu,ppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu | osu.Android/OsuGameActivity.cs | osu.Android/OsuGameActivity.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 Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Net;
using Android.OS;
using Android.Provider;
using Android.Views;
using osu.Framework... | // 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 Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Net;
using Android.OS;
using Android.Provider;
using Android.Views;
using osu.Framework... | mit | C# |
7e2c1b2169e80eff69ed6d6eda0fa1653f7ede52 | Remove clashing mnemonic from Unity Usages | JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity | resharper/resharper-unity/src/CSharp/Feature/Services/Navigation/GoToUnityUsages/GoToUnityUsagesProvider.cs | resharper/resharper-unity/src/CSharp/Feature/Services/Navigation/GoToUnityUsages/GoToUnityUsagesProvider.cs | using System.Collections.Generic;
using JetBrains.Application;
using JetBrains.Application.DataContext;
using JetBrains.Collections.Viewable;
using JetBrains.ProjectModel;
using JetBrains.ProjectModel.DataContext;
using JetBrains.ReSharper.Feature.Services.Navigation.ContextNavigation;
using JetBrains.ReSharper.Feature... | using System;
using System.Collections.Generic;
using JetBrains.Application;
using JetBrains.Application.DataContext;
using JetBrains.Collections.Viewable;
using JetBrains.ProjectModel;
using JetBrains.ProjectModel.DataContext;
using JetBrains.ReSharper.Feature.Services.Navigation.ContextNavigation;
using JetBrains.ReS... | apache-2.0 | C# |
7270695351effceaf38ab10ac2d8603d5c675c8c | Add IDomainObject marker interface | ahanusa/facile.net,peasy/Samples,ahanusa/Peasy.NET,peasy/Peasy.NET,peasy/Samples,peasy/Samples | Facile.Core/IDomainObject.cs | Facile.Core/IDomainObject.cs | namespace Facile.Core
{
public interface IDomainObject {}
public interface IDomainObject<TKey> : IDomainObject
{
TKey ID { get; set; }
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Facile.Core
{
public interface IDomainObject<TKey>
{
TKey ID { get; set; }
}
}
| mit | C# |
d5494f40d806a5e1f66987dec01e92bb9c44286e | Add options support. | BibliothecaTeam/Bibliotheca.Server.Mvc.Middleware | src/Bibliotheca.Server.Mvc.Middleware.Authorization/UserTokenAuthentication/UserTokenAppBuilderExtension.cs | src/Bibliotheca.Server.Mvc.Middleware.Authorization/UserTokenAuthentication/UserTokenAppBuilderExtension.cs | using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Options;
namespace Bibliotheca.Server.Mvc.Middleware.Authorization.UserTokenAuthentication
{
public static class UserTokenAppBuilderExtension
{
public static IApplicationBuilder UseUserTokenAuthentication(this IApplicationBuil... | using System;
using Microsoft.AspNetCore.Builder;
namespace Bibliotheca.Server.Mvc.Middleware.Authorization.UserTokenAuthentication
{
public static class UserTokenAppBuilderExtension
{
public static IApplicationBuilder UseUserTokenAuthentication(this IApplicationBuilder applicationBuilder)
{
... | mit | C# |
2d338860ebf0ba934c230b44f92b9b14e87be50b | Update version number to 1.1.2 | jpush/jmessage-api-csharp-client | jmessage/Properties/AssemblyInfo.cs | jmessage/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("jmessage-api-csharp-client")]
[assembly: AssemblyDescription("JMessage API client library for CSharp")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("深圳市和讯华谷信息技术... | using System.Reflection;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("jmessage-api-csharp-client")]
[assembly: AssemblyDescription("JMessage API client library for CSharp")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("深圳市和讯华谷信息技术... | mit | C# |
4900c35117ee482fbe5d566669b40806a7cc3d58 | Move buttons | jeffreycjohnson/VolcanoGame | Assets/Scripts/UI.cs | Assets/Scripts/UI.cs | using UnityEngine;
public class UI : MonoBehaviour {
public Texture2D Building;
public Texture2D Wall;
public Texture2D Generator;
public Texture2D Dig;
public Transform level;
private GameObject clicked;
void OnGUI() {
if(Input.GetJoystickNames().Length == 0) {
if(GUI.Button(new Rect(10, 10, 100, 100),... | using UnityEngine;
public class UI : MonoBehaviour {
public Texture2D Building;
public Texture2D Wall;
public Texture2D Generator;
public Texture2D Dig;
public Transform level;
private GameObject clicked;
void OnGUI() {
if(Input.GetJoystickNames().Length == 0) {
if(GUI.Button(new Rect(10, 10, 100, 100),... | mit | C# |
e86f46099d2d26c81bea033ad4db8ed506a8bb3c | Add xml comment to TransitionType | wangzheng888520/CefSharp,dga711/CefSharp,rlmcneary2/CefSharp,gregmartinhtc/CefSharp,twxstar/CefSharp,battewr/CefSharp,AJDev77/CefSharp,NumbersInternational/CefSharp,ITGlobal/CefSharp,battewr/CefSharp,rover886/CefSharp,rover886/CefSharp,gregmartinhtc/CefSharp,rover886/CefSharp,Haraguroicha/CefSharp,jamespearce2006/CefSh... | CefSharp/IRequest.cs | CefSharp/IRequest.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.Specialized;
namespace CefSharp
{
public interface IRequest
{
string Url { get; set; }
string Me... | // 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.Specialized;
namespace CefSharp
{
public interface IRequest
{
string Url { get; set; }
string Me... | bsd-3-clause | C# |
8ef50664b76e93645b0ef65c7fd678b81a60877b | Add RpcClient.Disconnect | Rohansi/Rohmote | Rohmote/RpcClient.cs | Rohmote/RpcClient.cs | using System;
using System.Threading.Tasks;
using WebSocket4Net;
namespace Rohmote
{
public class RpcClient : RpcProcessor
{
public event Action Connected;
public event Action Disconnected;
private WebSocket _client;
public RpcClient(string ip, int port)
{
... | using System;
using System.Threading.Tasks;
using WebSocket4Net;
namespace Rohmote
{
public class RpcClient : RpcProcessor
{
public event Action Connected;
public event Action Disconnected;
public RpcClient(string ip, int port)
{
var uri = string.Format("ws://{0}:{... | mit | C# |
bbd1305bb8cfb6c83c1d910edb58a9351c8f0e18 | Fix indentation | jedmao/knockout-viewengine,jedmao/knockout-viewengine | Knockout.Tests/ExamplesTest.cs | Knockout.Tests/ExamplesTest.cs | using System.Collections.Generic;
using System.IO;
using HtmlAgilityPack;
using Knockout.Tests.ViewModels;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Knockout.Tests
{
[TestClass]
public class ExamplesTest
{
private const string Location = "../../{0}/{1}.html";
private static string GetHtml(... | using System.Collections.Generic;
using System.IO;
using HtmlAgilityPack;
using Knockout.Tests.ViewModels;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Knockout.Tests
{
[TestClass]
public class ExamplesTest
{
private const string Location = "../../{0}/{1}.html";
private static string GetHtml(... | mit | C# |
58dbc63c6e85fecf9f13aea709e1397bd790161b | Add HardRock position mangling for CatchTheBeat | NeoAdonis/osu,johnneijzen/osu,NeoAdonis/osu,2yangk23/osu,DrabWeb/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu,EVAST9919/osu,smoogipoo/osu,DrabWeb/osu,smoogipoo/osu,ZLima12/osu,peppy/osu,peppy/osu,DrabWeb/osu,Nabile-Rahmani/osu,naoey/osu,2yangk23/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,naoey/o... | osu.Game.Rulesets.Catch/Mods/CatchModHardRock.cs | osu.Game.Rulesets.Catch/Mods/CatchModHardRock.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.MathUtils;
using osu.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Mods;
using System;
namespace osu.Game.Rulesets.Catch.Mods
{
... | // 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.Game.Rulesets.Mods;
namespace osu.Game.Rulesets.Catch.Mods
{
public class CatchModHardRock : ModHardRock
{
public override double Sc... | mit | C# |
52b9183695b3768a14219b4e471e9c34267d9b4c | Update SpellingLanguages.cs | mike-ward/Markdown-Edit,punker76/Markdown-Edit | src/MarkdownEdit/SpellCheck/SpellingLanguages.cs | src/MarkdownEdit/SpellCheck/SpellingLanguages.cs | using System.ComponentModel;
namespace MarkdownEdit.SpellCheck
{
public enum SpellingLanguages
{
[Description("English (Australia)")] Australian,
[Description("English (Canada)")] Canadian,
[Description("English (United Kingdom)")] UnitedKingdom,
[Description("English (Unite... | using System.ComponentModel;
namespace MarkdownEdit.SpellCheck
{
public enum SpellingLanguages
{
[Description("English (Australia)")] Australian,
[Description("English (Canada)")] Canadian,
[Description("English (United Kingdom)")] UnitedKingdom,
[Description("English (Unite... | mit | C# |
ed1abeee15b4d1ec9388a46426b72bdd8ca9e7bb | Support global connections | joha4270/electric-mouse,joha4270/electric-mouse,joha4270/electric-mouse | src/electric-mouse/Program.cs | src/electric-mouse/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace electric_mouse
{
public class Program
{
private string dir = Directory.GetCur... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace electric_mouse
{
public class Program
{
private string dir = Directory.GetCur... | mit | C# |
73026d1332bd46711a1f30ade51476855ce19d10 | Add object with collection properties | bmsullivan/RavenDBBlogConsole | RavenDBBlogConsole/Program.cs | RavenDBBlogConsole/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Raven.Client.Document;
namespace RavenDBBlogConsole
{
class Program
{
static void Main(string[] args)
{
var docStore = new DocumentStore()
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Raven.Client.Document;
namespace RavenDBBlogConsole
{
class Program
{
static void Main(string[] args)
{
var docStore = new DocumentStore()
... | mit | C# |
13276c29f3e3961b99bb60d8bb4ff5f5ad511c0d | Bump version 2.0.2 | klesta490/BTDB,yonglehou/BTDB,karasek/BTDB,Bobris/BTDB | BTDB/Properties/AssemblyInfo.cs | BTDB/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("BTD... | 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("BTD... | mit | C# |
07399521e6f2c8d95bf9342488d53d238c0b6f9e | Update "Configuration" | DRFP/Personal-Library | _Build/PersonalLibrary/Library/Configuration.cs | _Build/PersonalLibrary/Library/Configuration.cs | namespace Library {
public class Configuration {
public const string applicationName = "PersonalLibrary";
public const string apiKey = "AIzaSyCeOsGdlQrvY5KpiHlJAA9m5Fn_ANhcR0I";
public const string databaseName = "PersonalLibrary.db";
}
} | using Google.Apis.Books.v1;
using Google.Apis.Services;
namespace Library {
public class Configuration {
public const string applicationName = "PersonalLibrary";
public const string apiKey = "AIzaSyCeOsGdlQrvY5KpiHlJAA9m5Fn_ANhcR0I";
public const string databaseName = "PersonalLibrary.db";... | mit | C# |
8d822cf4d820127a6a7a84b20f58320de20287eb | Fix an awful bug ContextManager.Evalute always returned true. | rubyu/CreviceApp,rubyu/CreviceApp | CreviceApp/GM.ContextManager.cs | CreviceApp/GM.ContextManager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Crevice.GestureMachine
{
using System.Drawing;
using Crevice.Logging;
using Crevice.Core.Context;
using Crevice.Core.DSL;
public class ContextManager : ContextManager<Eval... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Crevice.GestureMachine
{
using System.Drawing;
using Crevice.Core.Context;
using Crevice.Core.DSL;
public class ContextManager : ContextManager<EvaluationContext, ExecutionCon... | mit | C# |
d02228c290b0b6462834fc690c39901e20e07154 | Fix mistaken change | ChilliConnect/Samples,ChilliConnect/Samples,ChilliConnect/Samples | UnitySamples/Teams/Assets/Teams/AccountSystem.cs | UnitySamples/Teams/Assets/Teams/AccountSystem.cs | using UnityEngine;
using System.Collections;
using ChilliConnect;
///
/// Handles login and creation of anonymous ChilliConnect account if none
///
public class AccountSystem
{
public event System.Action<string> OnPlayerLoggedIn = delegate {};
private static AccountSystem s_singletonInstance = null;
private ... | using UnityEngine;
using System.Collections;
using ChilliConnect;
///
/// Handles login and creation of anonymous ChilliConnect account if none
///
public class AccountSystem
{
public event System.Action<string> OnPlayerLoggedIn = delegate {};
private static AccountSystem s_singletonInstance = null;
private ... | mit | C# |
c90cdc66c0ce6114e051a6c9913ad387c760d62c | Join work | ernestoherrera/FluentSql | FluentSql/SqlGenerators/Join.cs | FluentSql/SqlGenerators/Join.cs | using System;
using System.Linq;
using System.Text;
using FluentSql.SqlGenerators.Contracts;
using FluentSql.Support;
using FluentSql.Mappers;
using System.Linq.Expressions;
using FluentSql.Support.Helpers;
using Dapper;
namespace FluentSql.SqlGenerators
{
public class Join<L, R>
{
#region Properties... | using System;
using System.Linq;
using System.Text;
using FluentSql.SqlGenerators.Contracts;
using FluentSql.Support;
using FluentSql.Mappers;
using System.Linq.Expressions;
using FluentSql.Support.Helpers;
using Dapper;
namespace FluentSql.SqlGenerators
{
public class Join<L, R>
{
#region Properties... | apache-2.0 | C# |
726b656e3eeeacb9b5569f877e64c503739b04ff | Simplify test class | afisd/jovice,afisd/jovice | Test/Test.cs | Test/Test.cs | using Aphysoft.Share;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Aphysoft.Test
{
public class Test : Node
{
#region Constructors
public Test() : base("TEST")
{
... | using Aphysoft.Share;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace Aphysoft.Test
{
public class Test : Node
{
#region Constructors
public Test() : base("TEST")
{
}
#end... | mit | C# |
b1d45808862de68222aa042dcb5ee3f1cdf02d19 | Fix version number | 0xd4d/iced,0xd4d/iced,0xd4d/iced,0xd4d/iced,0xd4d/iced | Iced/Properties/AssemblyInfo.cs | Iced/Properties/AssemblyInfo.cs | /*
Copyright (C) 2018 de4dot@gmail.com
This file is part of Iced.
Iced is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any lat... | /*
Copyright (C) 2018 de4dot@gmail.com
This file is part of Iced.
Iced is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any lat... | mit | C# |
bca63fd37a5448b78935064c816d385362f18b2e | Update Volibear.cs | metaphorce/leaguesharp | MetaSmite/Champions/Volibear.cs | MetaSmite/Champions/Volibear.cs | using System;
using LeagueSharp;
using LeagueSharp.Common;
using SharpDX;
namespace MetaSmite.Champions
{
public static class Volibear
{
internal static Spell champSpell;
private static Menu Config = MetaSmite.Config;
private static double totalDamage;
private static double spe... | using System;
using LeagueSharp;
using LeagueSharp.Common;
using SharpDX;
namespace MetaSmite.Champions
{
public static class Volibear
{
internal static Spell champSpell;
private static Menu Config = MetaSmite.Config;
private static double totalDamage;
private static double spe... | mit | C# |
fd27f6b0b77a2ff0d95626f58d38b543a398f87b | Update AutofacExtensions.cs | galaktor/autofac-extensions | AutofacExtensions.cs | AutofacExtensions.cs | using System;
using Autofac.Builder;
namespace Autofac
{
// TODO: move these into extra DLL within Autofac package! consider extra package if this grows into more...
public static class AutofacExtensions
{
/// <summary>
/// Forces resolve of a single instance of T. Useful for servi... | using System;
using Autofac.Builder;
namespace Autofac
{
// TODO: move these into extra DLL within Autofac package! consider extra package if this grows into more...
public static class AutofacExtensions
{
/// <summary>
/// Forces resolve of a single instance of T. Useful for servi... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.