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 |
|---|---|---|---|---|---|---|---|---|
265560062f3b134b0f0eb77e56ec400918858e4b | add current and next build to view data | half-ogre/qed,Haacked/qed | RequestHandlers/GetHome.cs | RequestHandlers/GetHome.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using fn = qed.Functions;
namespace qed
{
public static partial class Handlers
{
public static Task GetHome(
IDictionary<string, object> environment,
Func<IDictionary<string, object... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using fn = qed.Functions;
namespace qed
{
public static partial class Handlers
{
public static Task GetHome(
IDictionary<string, object> environment,
Func<IDictionary<string, object... | mit | C# |
496212916aa5d32359566866402f71866002d11f | update MI_Record with 0.2 features | nerai/CMenu | src/ExampleMenu/MI_Record.cs | src/ExampleMenu/MI_Record.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using ConsoleMenu;
namespace ExampleMenu
{
public class MI_Record : CMenu
{
private List<string> _Lines;
private string _EndRecordCommand = "endrecord";
public string EndRecordCommand
{
get
{
r... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using ConsoleMenu;
namespace ExampleMenu
{
public class MI_Record : CMenuItem
{
public string EndrecordCommand = "endrecord";
public MI_Record ()
: base ("record")
{
HelpText = ""
+ "record name\n... | mit | C# |
bdafa4de1fc7b2a064547a475027d1ab3fe8b3f5 | Update location | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/KevinMarquette.cs | src/Firehose.Web/Authors/KevinMarquette.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class KevinMarquette : IAmAMicrosoftMVP
{
public string FirstName => "Kevin";
public string Last... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class KevinMarquette : IAmAMicrosoftMVP
{
public string FirstName => "Kevin";
public string Last... | mit | C# |
a875c2ca22437cc352d79108158bf527caf54c6a | Handle a European apostrophe in escaped characters | nunit/teamcity-event-listener,nunit/teamcity-event-listener | src/extension/ServiceMessageWriter.cs | src/extension/ServiceMessageWriter.cs | namespace NUnit.Engine.Listeners
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
[SuppressMessage("ReSharper", "UseNameofExpression")]
internal class ServiceMessageWriter
{
private const string Header = "##teamcity[";
priv... | namespace NUnit.Engine.Listeners
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
[SuppressMessage("ReSharper", "UseNameofExpression")]
internal class ServiceMessageWriter
{
private const string Header = "##teamcity[";
priv... | mit | C# |
e37ba75632810ad02adc43bc45fcff465dcacdd5 | Update MemUtil.cs | FacticiusVir/SharpVk | SharpVk/SharpVk/MemUtil.cs | SharpVk/SharpVk/MemUtil.cs | using System;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace SharpVk
{
/// <summary>
///
/// </summary>
public static class MemUtil
{
/// <summary>
///
/// </summary>
/// <typeparam name="T"></t... | using System;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace SharpVk
{
/// <summary>
///
/// </summary>
public static class MemUtil
{
/// <summary>
///
/// </summary>
/// <typeparam name="T"></t... | mit | C# |
1d453e1c3f2e6e41c8f3b9964caa969471d6ac14 | Update version from 0.2.0 to 0.3.0 | IxMilia/Dxf,IxMilia/Dxf | src/IxMilia.Dxf/Properties/AssemblyInfo.cs | src/IxMilia.Dxf/Properties/AssemblyInfo.cs | // Copyright (c) IxMilia. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attrib... | // Copyright (c) IxMilia. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attrib... | apache-2.0 | C# |
efe1a1b826d404eb075f3124916c03ffe631d7ef | Change vehicle type enum | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Models/Vehicle.cs | Battery-Commander.Web/Models/Vehicle.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BatteryCommander.Web.Models
{
public class Vehicle
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
publi... | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BatteryCommander.Web.Models
{
public class Vehicle
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
publi... | mit | C# |
a359e6abaf4f44c4b5da6385acd651e2630ce588 | Fix display foe fuelcard/towbar header | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Models/Vehicle.cs | Battery-Commander.Web/Models/Vehicle.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BatteryCommander.Web.Models
{
public class Vehicle
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
publi... | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BatteryCommander.Web.Models
{
public class Vehicle
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
publi... | mit | C# |
8e4f815a0ebbbdb8adaf7787e3704654d0ea48b6 | Bump version to 0.5.0.0 | Ronald2/empleo-dot-net,Ronald2/empleo-dot-net,Ronald2/empleo-dot-net | EmpleoDotNet/Properties/AssemblyInfo.cs | EmpleoDotNet/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("Emp... | 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("Emp... | unlicense | C# |
9fe6e1096ab9d9264f97f52ba8ed7ae504983d0b | Remove cruft from `SkinnableHealthDisplay` | NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,smoogipoo/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,ppy/osu,smoogipoo/osu,peppy/osu | osu.Game/Screens/Play/HUD/SkinnableHealthDisplay.cs | osu.Game/Screens/Play/HUD/SkinnableHealthDisplay.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.Game.Skinning;
namespace osu.Game.Screens.Play.HUD
{
public class SkinnableHealthDisplay : SkinnableDrawable
{
public SkinnableHealthDisplay()
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Bindables;
using osu.Game.Rulesets.Scoring;
using osu.Game.Skinning;
namespace osu.Game.Screens.Play.HUD
{
public class SkinnableHe... | mit | C# |
d666a4263c580b21c7221a972ee34aab65c86c6a | Update comment | AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,grokys/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,SuperJMN/Avalonia,wieslawsoltes/... | src/Avalonia.Controls/Diagnostics/ToolTipDiagnostics.cs | src/Avalonia.Controls/Diagnostics/ToolTipDiagnostics.cs | #nullable enable
namespace Avalonia.Controls.Diagnostics
{
/// <summary>
/// Helper class to provide diagnostics information for <see cref="ToolTip"/>.
/// </summary>
public static class ToolTipDiagnostics
{
public static AvaloniaProperty<ToolTip?> ToolTipProperty = ToolTip.ToolTipProperty... | #nullable enable
namespace Avalonia.Controls.Diagnostics
{
/// <summary>
/// Helper class to provide some diagnostics insides into <see cref="ToolTip"/>.
/// </summary>
public static class ToolTipDiagnostics
{
public static AvaloniaProperty<ToolTip?> ToolTipProperty = ToolTip.ToolTipProper... | mit | C# |
72b49d199ab5e4e615530a19c18807b2d818be58 | Add more detail in documentation comment. | bfriesen/Rock.Core,peteraritchie/Rock.Core,RockFramework/Rock.Core | Rock.Core/AppSettingsApplicationInfo.cs | Rock.Core/AppSettingsApplicationInfo.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Rock
{
/// <summary>
/// An implementation of <see cref="IApplicationInfo"/> that uses a config
/// file's appSettings section.
/// </summary>
p... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Rock
{
/// <summary>
/// An implementation of <see cref="IApplicationInfo"/> that uses a config
/// file's appSettings section.
/// </summary>
p... | mit | C# |
14d6b0258852dd7354bc349d7566dc5337905ac9 | Fix ProjectN regression in `ByReference<T>` (dotnet/corert#6713) | wtgodbe/coreclr,mmitche/coreclr,cshung/coreclr,wtgodbe/coreclr,mmitche/coreclr,krk/coreclr,poizan42/coreclr,wtgodbe/coreclr,cshung/coreclr,cshung/coreclr,mmitche/coreclr,poizan42/coreclr,wtgodbe/coreclr,krk/coreclr,cshung/coreclr,mmitche/coreclr,wtgodbe/coreclr,krk/coreclr,cshung/coreclr,mmitche/coreclr,poizan42/corecl... | src/System.Private.CoreLib/shared/System/ByReference.cs | src/System.Private.CoreLib/shared/System/ByReference.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.Runtime.CompilerServices;
using System.Runtime.Versioning;
namespace System
{
// ByReference<T> is... | // 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.Runtime.CompilerServices;
using System.Runtime.Versioning;
namespace System
{
// ByReference<T> is... | mit | C# |
dfc3e56eb79965117c4ebfb489d9e71779878b39 | Check if we're in debug and set IncludeErrorPolicy accordingly | marcemarc/Umbraco-CMS,marcemarc/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,KevinJump/Umbraco-CMS,arknu/Umbraco-CMS,umbraco/Umbraco-CMS,abryukhov/Umbraco-CMS,arknu/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,dawoe/Umbraco-CMS,dawoe/... | src/Umbraco.Web/WebApi/EnableDetailedErrorsAttribute.cs | src/Umbraco.Web/WebApi/EnableDetailedErrorsAttribute.cs | using System.Web;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace Umbraco.Web.WebApi
{
/// <summary>
/// Ensures controllers have detailed error messages even when debug mode is off
/// </summary>
public class EnableDetailedErrorsAttribute : ActionFil... | using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace Umbraco.Web.WebApi
{
/// <summary>
/// Ensures controllers have detailed error messages even when debug mode is off
/// </summary>
public class EnableDetailedErrorsAttribute : ActionFilterAttribute
{... | mit | C# |
3941ff5f84f68547e74fef7dd3c5d7309d1abff2 | change version number | HeddaZ/ServiceOnset | ServiceOnset/Properties/AssemblyInfo.cs | ServiceOnset/Properties/AssemblyInfo.cs | using ServiceOnset;
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.
... | using ServiceOnset;
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.
... | apache-2.0 | C# |
6e6c9e220e9805c01a7f16e222d64eb26a16074d | Fix html-style validation | brondavies/wwwplatform.net,brondavies/wwwplatform.net,brondavies/wwwplatform.net | src/web/Views/SharedFolders/Podcast.cshtml | src/web/Views/SharedFolders/Podcast.cshtml | <?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="/Content/xsl/rss/display.xsl" ?>
<?xml-stylesheet type="text/css" href="/Content/xsl/rss/display.css" ?>
@using wwwplatform.Models;
@model SharedFolder
@helper Link (string url)
{
WriteLiteral("<link>");
WriteLiteral(url);
WriteLiteral("</l... | <?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="/Content/xsl/rss/display.xsl" ?>
<?xml-stylesheet type="text/css" href="/Content/xsl/rss/display.css" ?>
@using wwwplatform.Models;
@model SharedFolder
@helper Link (string url)
{
WriteLiteral("<link>");
WriteLiteral(url);
WriteLiteral("</l... | apache-2.0 | C# |
ddf62eb3c17e2fced1cc93702ce5fc1b8b066749 | Fix namespace collision | ziyasal/Autofac.Extras.NLog | src/Autofac.Extras.NLog/NLogModule.cs | src/Autofac.Extras.NLog/NLogModule.cs | using System.Linq;
using System.Reflection;
using Autofac.Core;
using NLog;
// ReSharper disable RedundantUsingDirective
using Module = Autofac.Module;
// ReSharper restore RedundantUsingDirective
namespace Autofac.Extras.NLog
{
public class NLogModule : Module
{
private static void InjectLoggerProper... | using System.Linq;
using System.Reflection;
using Autofac.Core;
using NLog;
namespace Autofac.Extras.NLog
{
public class NLogModule : Module
{
private static void InjectLoggerProperties(object instance)
{
var instanceType = instance.GetType();
// Get all the injectable... | mit | C# |
8ede41ebb6a4d435f8f782507bad91ab2f97a142 | Improve car handling | xorver/race-game | Assets/Scripts/Player.cs | Assets/Scripts/Player.cs | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System;
public class Player : MonoBehaviour
{
public Text scoreText;
public Text winText;
public float movementSpeed = 15;
public float turningSpeed = 60;
public float cityMapWidth = 100f;
public int pickUpsCount;
private int score;
pr... | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System;
public class Player : MonoBehaviour
{
public Text scoreText;
public Text winText;
public float movementSpeed = 10;
public float turningSpeed = 60;
public float cityMapWidth = 100f;
public int pickUpsCount;
private int score;
pr... | mit | C# |
40806ec2ac052835601c67d214189cb4370f1e9c | Update index.cshtml | Aleksandrovskaya/apmathclouddif | site/index.cshtml | site/index.cshtml | @{
double t_0 = 0;
double t_end = 150;
double step = 0.1;
int N = Convert.ToInt32((t_end-t_0)/step) + 1;
String data = "";
bool show_chart = false;
if (IsPost){
show_chart = true;
var number = Request["text1"];
double xd = number.AsInt();
double t = 0;
double x1 = 0;
double x2 = 0;
d... | @{
double t_0 = 0;
double t_end = 150;
double step = 0.1;
int N = Convert.ToInt32((t_end-t_0)/step) + 1;
String data = "";
bool show_chart = false;
if (IsPost){
show_chart = true;
var number = Request["text1"];
double xd = number.AsInt();
double t = 0;
double x1 = 0;
double x2 = 0;
d... | mit | C# |
43ea1f5d59be11669c6c08c86ee6ecea48796096 | Change the HttpUtility.UrlEncode to Uri.EscapeDataString method. | exceptionless/Exceptionless,exceptionless/Exceptionless,exceptionless/Exceptionless,exceptionless/Exceptionless | src/Exceptionless.Core/Extensions/UriExtensions.cs | src/Exceptionless.Core/Extensions/UriExtensions.cs | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
namespace Exceptionless.Core.Extensions {
public static class UriExtensions {
public static string ToQueryString(this NameValueCollection collection) {
return collection.AsKeyValuePairs().T... | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
namespace Exceptionless.Core.Extensions {
public static class UriExtensions {
public static string ToQueryString(this NameValueCollection collection) {
return collection.AsKeyValuePairs().T... | apache-2.0 | C# |
6fbe39b84509f4db86113b7af2710455bcbc0159 | Fix request creation post/delete in personalization | GetStream/stream-net,GetStream/stream-net,GetStream/stream-net | src/stream-net/Personalization.cs | src/stream-net/Personalization.cs | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Stream.Rest;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Stream
{
public class Personalization
{
readonly StreamClient _client;
internal Personalization(StreamClient client)
... | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Stream.Rest;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Stream
{
public class Personalization
{
readonly StreamClient _client;
internal Personalization(StreamClient client)
... | bsd-3-clause | C# |
9a5846ee9d95b35b703679a67e7de524169d39a2 | Make invoke method private | SnowflakePowered/snowflake,RonnChyran/snowflake,faint32/snowflake-1,faint32/snowflake-1,faint32/snowflake-1,SnowflakePowered/snowflake,SnowflakePowered/snowflake,RonnChyran/snowflake,RonnChyran/snowflake | Snowflake.API/Core/EventDelegate/JsonRPCEventDelegate.cs | Snowflake.API/Core/EventDelegate/JsonRPCEventDelegate.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Specialized;
using Newtonsoft.Json;
using System.IO;
namespace Snowflake.Core.EventDelegate
{
public c... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Specialized;
using Newtonsoft.Json;
using System.IO;
namespace Snowflake.Core.EventDelegate
{
public c... | mpl-2.0 | C# |
d9e86ff97a08467c721955ca71a8ee2fda5ca9cd | Fix issue with API header binding when running under a subdirectory | KuduApps/NuGetGallery,projectkudu/SiteExtensionGallery,projectkudu/SiteExtensionGallery,ScottShingler/NuGetGallery,ScottShingler/NuGetGallery,projectkudu/SiteExtensionGallery,mtian/SiteExtensionGallery,JetBrains/ReSharperGallery,KuduApps/NuGetGallery,mtian/SiteExtensionGallery,skbkontur/NuGetGallery,skbkontur/NuGetGall... | Website/Infrastructure/HttpHeaderValueProviderFactory.cs | Website/Infrastructure/HttpHeaderValueProviderFactory.cs | using System;
using System.Web.Mvc;
namespace NuGetGallery
{
public class HttpHeaderValueProviderFactory : ValueProviderFactory
{
public override IValueProvider GetValueProvider(ControllerContext controllerContext)
{
var request = controllerContext.RequestContext.HttpContext.Reques... | using System;
using System.Web.Mvc;
namespace NuGetGallery
{
public class HttpHeaderValueProviderFactory : ValueProviderFactory
{
public override IValueProvider GetValueProvider(ControllerContext controllerContext)
{
var request = controllerContext.RequestContext.HttpContext.Reques... | apache-2.0 | C# |
0756841dee8b08fe1f4b252f3584a07bc8c7c412 | Update Location.cs | ADAPT/ADAPT | source/ADAPT/Logistics/Location.cs | source/ADAPT/Logistics/Location.cs | /*******************************************************************************
* Copyright (C) 2015 AgGateway and ADAPT Contributors
* Copyright (C) 2015 Deere and Company
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.... | /*******************************************************************************
* Copyright (C) 2015 AgGateway and ADAPT Contributors
* Copyright (C) 2015 Deere and Company
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.... | epl-1.0 | C# |
84747bc6e5ae5dc507ef64941403ad9631572946 | Clean scaffolded program source | peterblazejewicz/mongodb-mva-vnext | CSharpEnd/Program.cs | CSharpEnd/Program.cs | using System;
namespace MongoSample
{
public class Program
{
public static void Main(string[] args)
{
}
}
} | using System;
namespace ConsoleApp1
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World");
Console.ReadLine();
}
}
} | mit | C# |
4fcab3cdff13b89fdfcb326b07e0527a0fc62503 | Remove unused import | MHeasell/Mappy,MHeasell/Mappy | Mappy/Models/MapModel.cs | Mappy/Models/MapModel.cs | namespace Mappy.Models
{
using System.Collections.Generic;
using System.Drawing;
using Data;
using Mappy.Collections;
public class MapModel : IMapModel
{
public MapModel(int width, int height)
: this(width, height, new MapAttributes())
{
}
... | namespace Mappy.Models
{
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using Data;
using Mappy.Collections;
public class MapModel : IMapModel
{
public MapModel(int width, int height)
: this(width, height, new MapAttributes())
... | mit | C# |
74ee2848fd83438e1a1f86a8dd742092b28f172c | Make necrophage require Look faculty | futurechris/zombai | Assets/Scripts/Behaviors/NecrophageBehavior.cs | Assets/Scripts/Behaviors/NecrophageBehavior.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class NecrophageBehavior : AgentBehavior
{
// "pursue" nearest corpse
public override bool updatePlan(List<AgentPercept> percepts, int allottedWorkUnits)
{
Action newMoveAction;
Action newLookAction;
Agent tempAgent;
boo... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class NecrophageBehavior : AgentBehavior
{
// "pursue" nearest corpse
public override bool updatePlan(List<AgentPercept> percepts, int allottedWorkUnits)
{
Action newMoveAction;
Action newLookAction;
Agent tempAgent;
boo... | mit | C# |
b58a820659caa1e690638043f2f694b5d1940746 | Update version to 0.9.6-beta | logjam2/logjam,logjam2/logjam | build/Version.cs | build/Version.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Version.cs">
// Copyright (c) 2011-2014 logjam.codeplex.com.
// </copyright>
// Licensed under the <a href="http://logjam.codeplex.com/license">Apache License, Version 2.0</a>;
/... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Version.cs">
// Copyright (c) 2011-2014 logjam.codeplex.com.
// </copyright>
// Licensed under the <a href="http://logjam.codeplex.com/license">Apache License, Version 2.0</a>;
/... | apache-2.0 | C# |
45e1aa2ba93ccb50869887c4dc461cd7f4e4d10a | convert params to objects | maul-esel/CobaltAHK,maul-esel/CobaltAHK | CobaltAHK/ExpressionTree/FunctionCallBinder.cs | CobaltAHK/ExpressionTree/FunctionCallBinder.cs | using System;
using System.Dynamic;
using System.Linq;
using System.Linq.Expressions;
namespace CobaltAHK.ExpressionTree
{
public class FunctionCallBinder : InvokeBinder
{
public FunctionCallBinder(CallInfo info, Scope scp)
: base(info)
{
scope = scp;
}
private readonly Scope scope;
public override ... | using System;
using System.Dynamic;
using System.Linq;
using System.Linq.Expressions;
namespace CobaltAHK.ExpressionTree
{
public class FunctionCallBinder : InvokeBinder
{
public FunctionCallBinder(CallInfo info, Scope scp)
: base(info)
{
scope = scp;
}
private readonly Scope scope;
public override ... | mit | C# |
109bd1e754630e2d1a490cd44561fc698d536914 | Add a couple binary generator tests. | numinit/open-waveform-format,numinit/open-waveform-format,numinit/open-waveform-format | c-sharp/OWF-test/Serializers/BinaryTests.cs | c-sharp/OWF-test/Serializers/BinaryTests.cs | using System;
using System.Web;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OWF.Serializers;
using OWF.DTO;
using System.Collections.Generic;
namespace OWF_test.Serializers
{
[TestClass]
public class BinaryTests
{
[TestMethod]
public void GeneratesCorrectEmptyObject() ... | using System;
using System.Web;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace OWF_test.Serializers
{
[TestClass]
public class BinaryTests
{
[TestMethod]
public void GeneratesCorrectEmptyObject()
{
}
}
}
| apache-2.0 | C# |
284b87d676aba1726879a1505cf5514d319af050 | Update XValue.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | src/Core2D/Data/Database/XValue.cs | src/Core2D/Data/Database/XValue.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Core2D.Attributes;
namespace Core2D.Data.Database
{
/// <summary>
/// Record value.
/// </summary>
public class XValue : ObservableObject
... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Core2D.Attributes;
namespace Core2D.Data.Database
{
/// <summary>
/// Record value.
/// </summary>
public class XValue : ObservableObject
... | mit | C# |
8f70c3cd7f8d2dca39c3a2153ad8701ff4c67f55 | Return after printing wasm-dump usage | jonathanvdc/cs-wasm,jonathanvdc/cs-wasm | wasm-dump/Program.cs | wasm-dump/Program.cs | using System;
using System.IO;
using Wasm.Binary;
namespace Wasm.Dump
{
public static class Program
{
public static void Main(string[] args)
{
if (args.Length != 1)
{
Console.WriteLine("usage: wasm-dump file.wasm");
return;
}
... | using System;
using System.IO;
using Wasm.Binary;
namespace Wasm.Dump
{
public static class Program
{
public static void Main(string[] args)
{
if (args.Length != 1)
Console.WriteLine("usage: wasm-dump file.wasm");
WasmFile file;
using (var f... | mit | C# |
bf4946e42fc9048e9e3ec30b957c9c60bb322996 | change logic | degarashi0913/FAManagementStudio | FAManagementStudio/Common/Messenger.cs | FAManagementStudio/Common/Messenger.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace FAManagementStudio.Common
{
public class Messenger
{
private static readonly Messenger _instance = new Messenger();
public static Messenger Instance { get { return _instance... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FAManagementStudio.Common
{
public class Messenger
{
private static readonly Messenger _instance = new Messenger();
public static Messenger Instance { get { return _instance; } }
private Dic... | mit | C# |
e0f3121cea7f76188c35b5ff3287b635ea0f2654 | Update Media.cs | ysinjab/InstagramCSharp | src/InstgramCSharp/Models/Media.cs | src/InstgramCSharp/Models/Media.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InstgramCSharp.Models
{
public class Media
{
public string Type { get; set; }
public Location Location { get; set; }
public Comments Comments { get; set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace InstgramCSharp.Models
{
public class Media
{
public string Type { get; set; }
public Location Location { get; set; }
public Comments Comments { get; set; }
... | mit | C# |
4f303719ef535822dbd7dc41f410faa3851e6a45 | Fix Event Map HP Checker | kyoryo/test | Grabacr07.KanColleWrapper/EventMapHPChecker.cs | Grabacr07.KanColleWrapper/EventMapHPChecker.cs | using Grabacr07.KanColleWrapper.Models.Raw;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Grabacr07.KanColleWrapper.Models
{
public class EventMapHPChecker
{
public bool EnableEventMapInfo { get; set; }
public ... | using Grabacr07.KanColleWrapper.Models.Raw;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Grabacr07.KanColleWrapper.Models
{
public class EventMapHPChecker
{
public bool EnableEventMapInfo { get; set; }
public ... | mit | C# |
b5bf6244b62b76cecb8621991dc6253ed8fce5bd | fix for throwing notSupported even once creation has happened | Pondidum/Ledger.Stores.Postgres,Pondidum/Ledger.Stores.Postgres | Ledger.Stores.Postgres/TableBuilder.cs | Ledger.Stores.Postgres/TableBuilder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Npgsql;
namespace Ledger.Stores.Postgres
{
public class TableBuilder
{
private readonly Dictionary<Type, Action<string>> _creators;
public TableBuilder(NpgsqlConnection connection)
{
_creators = new Dictionary<Type, Action<string>>
... | using System;
using System.Collections.Generic;
using System.Linq;
using Npgsql;
namespace Ledger.Stores.Postgres
{
public class TableBuilder
{
private readonly Dictionary<Type, Action<string>> _creators;
public TableBuilder(NpgsqlConnection connection)
{
_creators = new Dictionary<Type, Action<string>>
... | lgpl-2.1 | C# |
29032b0cf98fbc6500125f11e8253f868cb46ac6 | Correct TIFF file extension and add Bitmap support. Closes #43 | SteamDatabase/ValveResourceFormat | GUI/Forms/Texture.cs | GUI/Forms/Texture.cs | using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Windows.Forms;
namespace GUI.Forms
{
public partial class Texture : UserControl
{
public string name { get; private set; }
public Texture()
{
InitializeComponent();
}
public ... | using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Windows.Forms;
namespace GUI.Forms
{
public partial class Texture : UserControl
{
public string name { get; private set; }
public Texture()
{
InitializeComponent();
}
public ... | mit | C# |
2627724efad1f3d880c19ab116d46ba7832a8850 | implement ExistsIn(sequence) | miraimann/Knuth-Morris-Pratt | KnuthMorrisPratt/KnuthMorrisPratt/Finder.cs | KnuthMorrisPratt/KnuthMorrisPratt/Finder.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace KnuthMorrisPratt
{
internal class Finder<T> : IFinder<T>
{
private readonly int[,] _dfa;
private readonly Dictionary<T, int> _abc;
private readonly int _finalState;
public Finder(IEnumerable<T> word)
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace KnuthMorrisPratt
{
internal class Finder<T> : IFinder<T>
{
private readonly int[,] _dfa;
private readonly Dictionary<T, int> _abc;
private readonly int _finalState;
public Finder(IEnumerable<T> word)
... | mit | C# |
89780b8b3e6c2dc9b01efe3e4f847275d81ba082 | Add Form Processing Header | zptec/Liq_UI | Liq_UI/Translation/TranslationProcessing.cs | Liq_UI/Translation/TranslationProcessing.cs | using System;
using System.Collections.Generic;
using Liq_UI.Analysis;
namespace Liq_UI.Translation
{
internal class TranslationProcessing
{
//Analysis Result
private AnalysisBase analysisResult;
//Translation Base Info
private TranslationBase translationBase;
public ... | using System;
using System.Collections.Generic;
using Liq_UI.Analysis;
namespace Liq_UI.Translation
{
internal class TranslationProcessing
{
//Analysis Result
private AnalysisBase analysisResult;
//Translation Base Info
private TranslationBase translationBase;
public ... | mit | C# |
eadba462fdc4659b2025b0d64aecfe8c7acd65b4 | Add check for microgames when forced in Practice | Barleytree/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare,NitorInc/NitoriWare | Assets/Scripts/Stage/MicrogameStage.cs | Assets/Scripts/Stage/MicrogameStage.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MicrogameStage : Stage
{
public static string microgameId;
[SerializeField]
private string forceMicrogame;
public override void onStageStart()
{
//Update collection if microgame is forced, in case it's in ... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MicrogameStage : Stage
{
public static string microgameId;
[SerializeField]
private string forceMicrogame;
public override Microgame getMicrogame(int num)
{
Microgame microgame = new Microgame(microgameId);
microgam... | mit | C# |
5d736397e3c89e5ddfca3fb553023528cf32494a | Remove Serializable attribute to achieve parity with the VB code. | rockfordlhotka/csla,ronnymgm/csla-light,ronnymgm/csla-light,MarimerLLC/csla,jonnybee/csla,JasonBock/csla,JasonBock/csla,jonnybee/csla,rockfordlhotka/csla,BrettJaner/csla,rockfordlhotka/csla,jonnybee/csla,MarimerLLC/csla,BrettJaner/csla,BrettJaner/csla,JasonBock/csla,MarimerLLC/csla,ronnymgm/csla-light | csla20cs/Csla/Core/RemovingItemEventArgs.cs | csla20cs/Csla/Core/RemovingItemEventArgs.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Csla.Core
{
/// <summary>
/// Contains event data for the RemovingItem
/// event.
/// </summary>
public class RemovingItemEventArgs : EventArgs
{
private object _removingItem;
/// <summary>
/// Gets a reference to the... | using System;
using System.Collections.Generic;
using System.Text;
namespace Csla.Core
{
/// <summary>
/// Contains event data for the RemovingItem
/// event.
/// </summary>
[Serializable]
public class RemovingItemEventArgs : EventArgs
{
private object _removingItem;
/// <summary>
/// Gets a... | mit | C# |
1f7995f93c22bf4ce64461b626dcf1589178e371 | Bump version to 0.2.0 | mwijnands/SimpleCache | SimpleCache/Properties/AssemblyInfo.cs | SimpleCache/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: AssemblyTit... | 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... | mit | C# |
908bd43f78fbf324af2916638d90e704e03da688 | fix comment | Fody/PropertyChanged,user1568891/PropertyChanged,0x53A/PropertyChanged | PropertyChanged/ImplementPropertyChangedAttribute.cs | PropertyChanged/ImplementPropertyChangedAttribute.cs | using System;
namespace PropertyChanged
{
/// <summary>
/// Include a <see cref="Type"/> for notification.
/// The INotifyPropertyChanged interface is added to the type.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class ImplementProp... | using System;
using System.ComponentModel;
namespace PropertyChanged
{
/// <summary>
/// Include a <see cref="Type"/> for notification.
/// The <see cref="INotifyPropertyChanged"/> interface is added to the type.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherit... | mit | C# |
00704939ccc55c4ae3438f882dd007bbe22abe73 | Add status field | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Views/Evaluations/List.cshtml | Battery-Commander.Web/Views/Evaluations/List.cshtml | @model IEnumerable<Evaluation>
<h2>Evaluations @Html.ActionLink("Add New", "New", "Evaluations", null, new { @class = "btn btn-default" })</h2>
<table class="table table-striped">
<thead>
<tr>
<th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Ratee)</th>
<th>@Html.DisplayNameFor(_ ... | @model IEnumerable<Evaluation>
<h2>Evaluations @Html.ActionLink("Add New", "New", "Evaluations", null, new { @class = "btn btn-default" })</h2>
<table class="table table-striped">
<thead>
<tr>
<th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Ratee)</th>
<th>@Html.DisplayNameFor(_ ... | mit | C# |
12ec8a26aa92ae5a4c5aeff3de2356de8ba9e1f1 | Update AssemblyInfo.cs | bradyholt/cron-expression-descriptor,sadedil/cron-expression-descriptor,sadedil/cron-expression-descriptor,bradyholt/cron-expression-descriptor | CronExpressionDescriptor/Properties/AssemblyInfo.cs | CronExpressionDescriptor/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("Cr... | 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("Cr... | mit | C# |
2c79d9e4aa31d7fcf8ba391920b73bd5c2ea45cd | Comment out debug spam | Goat-Improvement-Suite/The-Chinese-Room | Assets/Scripts/ConvayerOutItemInteraction.cs | Assets/Scripts/ConvayerOutItemInteraction.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ConvayerOutItemInteraction : Interaction
{
public GameColor color;
private ItemInteraction holding;
[SerializeField]
public GameObject endPoint;
[SerializeField]
public GameObject startPoint;
vo... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ConvayerOutItemInteraction : Interaction
{
public GameColor color;
private ItemInteraction holding;
[SerializeField]
public GameObject endPoint;
[SerializeField]
public GameObject startPoint;
vo... | mit | C# |
411cb4750726b5e8d63ba1abdeb3a483cd7d42d1 | Comment fix. | dlemstra/line-bot-sdk-dotnet,dlemstra/line-bot-sdk-dotnet | src/LineBot/ILineBot.cs | src/LineBot/ILineBot.cs | // Copyright 2017 Dirk Lemstra (https://github.com/dlemstra/line-bot-sdk-dotnet)
//
// Dirk Lemstra licenses this file to you 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:
//
// https://www.apache... | // Copyright 2017 Dirk Lemstra (https://github.com/dlemstra/line-bot-sdk-dotnet)
//
// Dirk Lemstra licenses this file to you 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:
//
// https://www.apache... | apache-2.0 | C# |
99e3d2d74edd54e4746f158e4d0b1d5b663c373b | update assembly version to 3.0.2.0 | rainmattertech/dotnetkiteconnect | KiteConnect/Properties/AssemblyInfo.cs | KiteConnect/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("Kit... | 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("Kit... | mit | C# |
8a76eb51158caac8dd9ba505c0f82565a2568d86 | add method to interface | BenPhegan/NuGet.Extensions | NuGet.Extensions/MSBuild/IVsProject.cs | NuGet.Extensions/MSBuild/IVsProject.cs | using System.Collections.Generic;
using System.IO;
namespace NuGet.Extensions.MSBuild
{
public interface IVsProject {
IEnumerable<IReference> GetBinaryReferences();
string AssemblyName { get; }
string ProjectName { get; }
DirectoryInfo ProjectDirectory { get; }
void Save();
... | using System.Collections.Generic;
using System.IO;
namespace NuGet.Extensions.MSBuild
{
public interface IVsProject {
IEnumerable<IReference> GetBinaryReferences();
string AssemblyName { get; }
string ProjectName { get; }
DirectoryInfo ProjectDirectory { get; }
void Save();
... | mit | C# |
5a2de19b13d9b894f761eb21cf8444eca98054bf | update minor version number to 1.2.* | ParagonTruss/UnitClassLibrary | UnitClassLibrary/Properties/AssemblyInfo.cs | UnitClassLibrary/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
// 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.
[ass... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
// 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.
[ass... | lgpl-2.1 | C# |
2358527f5012569d0fd0f10705a60a045ef9192e | fix template | takenet/messaginghub-client-csharp | src/Template/Program.cs | src/Template/Program.cs | using System;
using System.Threading.Tasks;
using Lime.Protocol;
using Takenet.MessagingHub.Client;
using Takenet.MessagingHub.Client.Receivers;
namespace Template
{
internal static class Program
{
public static void Main(string[] args)
{
Init().Wait();
}
private c... | using System;
using System.Threading.Tasks;
using Lime.Protocol;
using Takenet.MessagingHub.Client;
using Takenet.MessagingHub.Client.Receivers;
namespace Template
{
internal static class Program
{
public static void Main(string[] args)
{
Init().Wait();
}
private c... | apache-2.0 | C# |
9bd65323db51a995b10206a960720d65fb286ebd | Refactor the Venue level cost centre to inherit from the Account level cost centre to allow sharing of data structures. | ivvycode/ivvy-sdk-net | src/Venue/CostCenter.cs | src/Venue/CostCenter.cs | using Newtonsoft.Json;
namespace Ivvy.API.Venue
{
public class CostCenter : Account.CostCenter
{
[JsonProperty("parentId")]
public int? ParentId
{
get; set;
}
}
} | using Newtonsoft.Json;
namespace Ivvy.API.Venue
{
public class CostCenter
{
public enum DefaultTypes
{
Other = 1,
VenueFood = 2,
VenueBeverage = 3,
VenueAudioVisual = 4,
VenueRoomHire = 5,
VenueAccommodation = 6,
}
... | mit | C# |
97a69dffb62677c885021b0fb596b2d45c5e36ee | Fix using regression | ppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,DrabWeb/osu-framework... | osu.Framework.Tests/Visual/Sprites/TestCaseScreenshot.cs | osu.Framework.Tests/Visual/Sprites/TestCaseScreenshot.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Textures;
using osu.Framework.Platform... | mit | C# |
88d55b796b6c2dd99301031d5ed7d343bfc035d8 | Add Maximum/Average aggregate functions for amplitudes | peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,naoey/osu-framework,ZLima12/osu-framework,ppy/osu-framework,paparony03/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,default0/osu-framework,default0/osu-framework,paparony03/osu-framework,smoogipooo/osu-f... | osu.Framework/Audio/Track/TrackAmplitudes.cs | osu.Framework/Audio/Track/TrackAmplitudes.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
namespace osu.Framework.Audio.Track
{
public struct TrackAmplitudes
{
public float LeftChannel;
public float R... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Audio.Track
{
public struct TrackAmplitudes
{
public float LeftChannel;
public float RightChannel;
... | mit | C# |
0e20c3ca88825bf27c1f8a38d79d6fa3331a1972 | Add source documentation for configuration class. | henrikfroehling/TraktApiSharp | Source/Lib/TraktApiSharp/Core/TraktConfiguration.cs | Source/Lib/TraktApiSharp/Core/TraktConfiguration.cs | namespace TraktApiSharp.Core
{
using System.Net.Http;
/// <summary>Provides global client settings.</summary>
public class TraktConfiguration
{
internal TraktConfiguration()
{
ApiVersion = 2;
UseStagingUrl = false;
}
internal static HttpClient H... | namespace TraktApiSharp.Core
{
using System.Net.Http;
public class TraktConfiguration
{
internal TraktConfiguration()
{
ApiVersion = 2;
UseStagingUrl = false;
}
internal static HttpClient HTTP_CLIENT = null;
public int ApiVersion { get; set... | mit | C# |
5d04ff79915d1acd301313acebfe53629ec96e7a | Add info to addin description about uninstalling old addin | mrward/monodevelop-dnx-addin | src/MonoDevelop.Dnx/Properties/AddinInfo.cs | src/MonoDevelop.Dnx/Properties/AddinInfo.cs | using Mono.Addins;
[assembly:Addin ("Dnx",
Namespace = "MonoDevelop",
Version = "0.5",
Category = "IDE extensions")]
[assembly:AddinName ("DNX")]
[assembly:AddinDescription ("Adds .NET Core and ASP.NET Core support.\n\nPlease uninstall any older version of the addin and restart the application before installing t... | using Mono.Addins;
[assembly:Addin ("Dnx",
Namespace = "MonoDevelop",
Version = "0.5",
Category = "IDE extensions")]
[assembly:AddinName ("DNX")]
[assembly:AddinDescription ("Adds .NET Core and ASP.NET Core support.")]
[assembly:AddinDependency ("Core", "6.0")]
[assembly:AddinDependency ("Ide", "6.0")]
[assembly... | mit | C# |
6983e660370aae362292022de028f0be2959ee02 | Fix preprocessor condition | adamhathcock/sharpcompress,adamhathcock/sharpcompress,adamhathcock/sharpcompress | src/SharpCompress/Common/ArchiveEncoding.cs | src/SharpCompress/Common/ArchiveEncoding.cs | using System;
using System.Text;
namespace SharpCompress.Common
{
public class ArchiveEncoding
{
/// <summary>
/// Default encoding to use when archive format doesn't specify one.
/// </summary>
public Encoding Default { get; set; }
/// <summary>
/// ArchiveEnc... | using System;
using System.Text;
namespace SharpCompress.Common
{
public class ArchiveEncoding
{
/// <summary>
/// Default encoding to use when archive format doesn't specify one.
/// </summary>
public Encoding Default { get; set; }
/// <summary>
/// ArchiveEnc... | mit | C# |
b280fad64f11dffd027e8165a54bb30f1fae19be | Fix IndexOutOfRangeException when using get-desc with SetupProcess | mono/mono-addins,mono/mono-addins | Mono.Addins.SetupProcess/SetupProcessTool.cs | Mono.Addins.SetupProcess/SetupProcessTool.cs | //
// SetupProcessTool.cs
//
// Author:
// Marius Ungureanu <maungu@microsoft.com>
//
// Copyright (c) 2019 Microsoft 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... | //
// SetupProcessTool.cs
//
// Author:
// Marius Ungureanu <maungu@microsoft.com>
//
// Copyright (c) 2019 Microsoft 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... | mit | C# |
2671e2993d559da4d2bc13f5deeb0b3b89d22637 | Adjust project to AppVeyor builds | tomaszkiewicz/rsb | RSB.Diagnostics.Tests/BusDiagnosticsTests.cs | RSB.Diagnostics.Tests/BusDiagnosticsTests.cs | using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using RSB.Interfaces;
using RSB.Transports.RabbitMQ;
namespace RSB.Diagnostics.Tests
{
[TestFixture]
public class BusDiagnosticsTests
{
private IBus _busServer1;
private IBus _busServer2;
private IBus _bus... | using System.Threading;
using NUnit.Framework;
using RSB.Interfaces;
using RSB.Transports.RabbitMQ;
namespace RSB.Diagnostics.Tests
{
[TestFixture]
public class BusDiagnosticsTests
{
private IBus _busServer1;
private IBus _busServer2;
private IBus _busClient;
private volat... | bsd-3-clause | C# |
ceb7982c7b98022d629c8f48f34c64400107d09d | Fix bug caused by missing initialization | jdno/AIChallengeFramework | Map/Map.cs | Map/Map.cs | //
// Copyright 2014 jdno
//
// 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... | //
// Copyright 2014 jdno
//
// 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... | apache-2.0 | C# |
da7c30657df7cc6235399da266fe5e6671e729d4 | Update Timber to 4.4.0 | xamarin/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,xamarin/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents,bholmes/XamarinComponents | Android/Timber/build.cake | Android/Timber/build.cake |
#load "../../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
var ANDROID_VERSION = "4.4.0";
var ANDROID_NUGET_VERSION = "4.4.0";
var ANDROID_URL = string.Format ("http://search.maven.org/remotecontent?filepath=com/jakewharton/timber/timber/{0}/timber-{0}.aar", ANDROID_VERSION);
var ANDROID_... |
#load "../../common.cake"
var TARGET = Argument ("t", Argument ("target", "Default"));
var ANDROID_VERSION = "4.3.1";
var ANDROID_NUGET_VERSION = "4.3.1.1";
var ANDROID_URL = string.Format ("http://search.maven.org/remotecontent?filepath=com/jakewharton/timber/timber/{0}/timber-{0}.aar", ANDROID_VERSION);
var ANDROI... | mit | C# |
35940a6701b90de703255fcf4b96a2b9583a5f8e | Add terminal velocity | wqferr/GMTK-GameJam | Assets/Scripts/PlayerController.cs | Assets/Scripts/PlayerController.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour {
public Rigidbody2D rb;
public bool goingUp;
public bool goingDown;
public bool airborne;
public float timeJumping;
public float jumpDuration;
public float timeFallin... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour {
public Rigidbody2D rb;
public bool goingUp;
public bool goingDown;
public bool airborne;
public float timeJumping;
public float jumpDuration;
public float timeFallin... | mit | C# |
6aff0d75c7436f55e576cfaf5480b5bc7cba0c6c | Add Comments to RPGStat Class | jkpenner/RPGStatTutorial | Assets/Scripts/RPGStat.cs | Assets/Scripts/RPGStat.cs | using UnityEngine;
using System.Collections;
public class RPGStat {
/// <summary>
/// The Name of the RPGStat. Used mostly for UI purposes
/// </summary>
private string _statName;
/// <summary>
/// The Base value of the stat
/// </summary>
private int _statBaseValue;
/// <summary... | using UnityEngine;
using System.Collections;
public class RPGStat {
private string _statName;
private int _statBaseValue;
public RPGStat() {
_statName = string.Empty;
_statBaseValue = 0;
}
public string StatName {
get { return _statName; }
set { _statName = value;... | mit | C# |
e45d961337438ba46c85fc67650397be44582b29 | Resolve Issue #22: disable console listener by default. | GibraltarSoftware/Loupe.Agent.Core,GibraltarSoftware/Loupe.Agent.Core,GibraltarSoftware/Loupe.Agent.Core | src/Extensibility/Configuration/ListenerConfiguration.cs | src/Extensibility/Configuration/ListenerConfiguration.cs | namespace Loupe.Configuration
{
/// <summary>
/// Configuration information for the trace listener.
/// </summary>
public sealed class ListenerConfiguration
{
/// <summary>
/// Initialize from application configuration section
/// </summary>
public ListenerConfigurat... | namespace Loupe.Configuration
{
/// <summary>
/// Configuration information for the trace listener.
/// </summary>
public sealed class ListenerConfiguration
{
/// <summary>
/// Initialize from application configuration section
/// </summary>
public ListenerConfigurat... | mit | C# |
2b61837967913f885e0cc1e1c88b278e044771f6 | Add accounts-specific NameType removed from CodeFirstWebFramework. | nikkilocke/AccountServer,nikkilocke/AccountServer | Program.cs | Program.cs | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Configuration;
using System.Globalization;
using System.Threading;
usi... | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Configuration;
using System.Globalization;
using System.Threading;
usi... | apache-2.0 | C# |
2e2871c9f21874b6c5f0aeda4ebe0fb146c3a0ac | add ifdef | technicat/LearnUnity,technicat/LearnUnity | chapter17/unityproject/Assets/CSharp/Splash.cs | chapter17/unityproject/Assets/CSharp/Splash.cs | /*
Copyright (c) 2013 Technicat, LLC. All Rights Reserved. MIT License.
http://learnunity4.com/
*/
using UnityEngine;
using System.Collections;
namespace Fugu {
public class Splash : MonoBehaviour {
public float waitTime=2; // in seconds
public string level=""; // scene name to load
// Use this for initializati... | /*
Copyright (c) 2013 Technicat, LLC. All Rights Reserved. MIT License.
http://learnunity4.com/
*/
using UnityEngine;
using System.Collections;
namespace Fugu {
public class Splash : MonoBehaviour {
public float waitTime=2; // in seconds
public string level=""; // scene name to load
// Use this for initializati... | mit | C# |
55c77f968e7eafbf4ccd0c20fc0afb4f727ee290 | Edit in vs | 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 + edit
// edit in VS
}
}
}
| 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 + edit
}
}
}
| mit | C# |
1ec24d7916b3421a9f74d5bff1268ff72b71b28a | Update WpfMinesweeperButton.cs | Minesweeper-6-Team-Project-Telerik/Minesweeper-6 | src2/WpfMinesweeper/WpfMinesweeperButton.cs | src2/WpfMinesweeper/WpfMinesweeperButton.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="WpfMinesweeperButton.cs" company="Telerik Academy">
// Teamwork Project "Minesweeper-6"
// </copyright>
// <summary>
// The wpf minesweeper button.
// </summary>
// -----------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="WpfMinesweeperButton.cs" company="">
//
// </copyright>
// <summary>
// The wpf minesweeper button.
// </summary>
// ---------------------------------------------------------... | mit | C# |
7a00fd84f86bcddaec8e01c9af8d12d6f1e39bab | Add more shell unit test | falahati/LiteDB,89sos98/LiteDB,89sos98/LiteDB,falahati/LiteDB,mbdavid/LiteDB | LiteDB.Tests/Engine/Shell_Tests.cs | LiteDB.Tests/Engine/Shell_Tests.cs | using System.IO;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LiteDB.Tests.Engine
{
[TestClass]
public class Shell_Tests
{
[TestMethod]
public void Shell_Commands()
{
using (var db = new LiteEngine(new MemoryStream()))
{
... | using System.IO;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace LiteDB.Tests.Engine
{
[TestClass]
public class Shell_Tests
{
[TestMethod]
public void Shell_Commands()
{
using (var db = new LiteEngine(new MemoryStream()))
{
... | mit | C# |
10d67b6655a31b89e9bb30aa03f2ea2220822d4d | Change Instruction#Destination's type | lury-lang/lury-ir | LuryIR/Compiling/IR/Instruction.cs | LuryIR/Compiling/IR/Instruction.cs | //
// Instruction.cs
//
// Author:
// Tomona Nanase <nanase@users.noreply.github.com>
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Tomona Nanase
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to d... | //
// Instruction.cs
//
// Author:
// Tomona Nanase <nanase@users.noreply.github.com>
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Tomona Nanase
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to d... | mit | C# |
266a07c108b5895a8c18a6ff4075ffc02f39cd13 | comment typo | viktorbalog/Maileon | Maileon/Contacts/InvalidContact.cs | Maileon/Contacts/InvalidContact.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace Maileon.Contacts
{
/// <summary>
/// A class representing an invalid contact
/// </summary>
public class InvalidContact : Contact
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace Maileon.Contacts
{
/// <summary>
/// A calss representing an invalid contact
/// </summary>
public class InvalidContact : Contact
{
... | mit | C# |
585bd541f319ce316c8c4eef80aeb4247449b232 | Add missing parentheses to RPM calculation | NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu | osu.Game.Rulesets.Osu/Mods/OsuModSpunOut.cs | osu.Game.Rulesets.Osu/Mods/OsuModSpunOut.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Utils;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
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 osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Utils;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
using... | mit | C# |
36ae4dd2715f911d0d649c7e133ae7392b0f6558 | Fix osu! playfield (was using inheriting sizemode when it shouldn't). | naoey/osu,ppy/osu,Frontear/osuKyzer,DrabWeb/osu,ppy/osu,UselessToucan/osu,johnneijzen/osu,peppy/osu-new,nyaamara/osu,peppy/osu,NeoAdonis/osu,theguii/osu,NeoAdonis/osu,smoogipooo/osu,NotKyon/lolisu,Damnae/osu,2yangk23/osu,RedNesto/osu,osu-RP/osu-RP,DrabWeb/osu,smoogipoo/osu,naoey/osu,EVAST9919/osu,tacchinotacchi/osu,Nab... | osu.Game/GameModes/Play/Osu/OsuPlayfield.cs | osu.Game/GameModes/Play/Osu/OsuPlayfield.cs | //Copyright (c) 2007-2016 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;
using osu.Framework.Graphics.Drawables;
using OpenTK;
namespace osu.Game.GameModes.Play.Os... | //Copyright (c) 2007-2016 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;
using osu.Framework.Graphics.Drawables;
using OpenTK;
namespace osu.Game.GameModes.Play.Os... | mit | C# |
d55e27bf171e338e88c868c301a39cb163750ab8 | Remove logging dependency from GitContextPackage | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.VisualStudio/GitContextPackage.cs | src/GitHub.VisualStudio/GitContextPackage.cs | using System;
using System.Threading;
using System.Runtime.InteropServices;
using GitHub.Exports;
using GitHub.Services;
using Microsoft.VisualStudio.Shell;
using Task = System.Threading.Tasks.Task;
namespace GitHub.VisualStudio
{
/// <summary>
/// This package creates a custom UIContext <see cref="Guids.UICo... | using System;
using System.Threading;
using System.Runtime.InteropServices;
using GitHub.Exports;
using GitHub.Logging;
using GitHub.Services;
using Microsoft.VisualStudio.Shell;
using Serilog;
using Task = System.Threading.Tasks.Task;
namespace GitHub.VisualStudio
{
/// <summary>
/// This package creates a c... | mit | C# |
fbf780526721f7db4d48cf783e807829e465b874 | add attachment option | elerch/SAML2,alexrster/SAML2 | src/Owin.Security.Saml/SamlMetadataWriter.cs | src/Owin.Security.Saml/SamlMetadataWriter.cs | using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using SAML2.Config;
using System.Text;
using SAML2.Logging;
using SAML2;
using SAML2.Utils;
namespace Owin
{
internal class SamlMetadataWriter
{
private Saml2Configuration configuration;
private readonly IInternalLogger logger;
... | using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using SAML2.Config;
using System.Text;
using SAML2.Logging;
using SAML2;
using SAML2.Utils;
namespace Owin
{
internal class SamlMetadataWriter
{
private Saml2Configuration configuration;
private readonly IInternalLogger logger;
... | mpl-2.0 | C# |
1b264f73b4b8e0b6949097bf82dad6f177268899 | Fix test settings. | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql | csharp/ql/test/library-tests/csharp8/AsyncStreams.cs | csharp/ql/test/library-tests/csharp8/AsyncStreams.cs | // semmle-extractor-options: /r:System.Threading.Tasks.dll /r:System.Threading.Tasks.Extensions.dll /r:netstandard.dll /langversion:preview
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
class AsyncStreams
{
async IAsyncEnumerable<int> Items() {
yield... | // semmle-extractor-options: /r:System.Threading.Tasks.dll /r:System.Threading.Tasks.Extensions.dll /r:netstandard.dll
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
class AsyncStreams
{
async IAsyncEnumerable<int> Items() {
yield return 1;
yi... | mit | C# |
fd8b268873a0908977b2e5c3239c63b2b5e45644 | change some tests | andremarcondesteixeira/currency | test/AndreMarcondesTeixeira/CurrencyTest.cs | test/AndreMarcondesTeixeira/CurrencyTest.cs | using System;
using Xunit;
namespace AndreMarcondesTeixeira
{
public class CurrencyTest
{
[Fact]
public void Currency_Is_A_Value_Type_And_All_Factory_Methods_Return_New_Instances()
{
Assert.False(Object.ReferenceEquals(Currency.XXX, Currency.XXX));
Assert.False(O... | using System;
using Xunit;
namespace AndreMarcondesTeixeira
{
public class CurrencyTest
{
[Fact]
public void Currency_Is_A_Value_Type_And_All_Factory_Methods_Return_New_Instances()
{
Assert.False(Object.ReferenceEquals(Currency.XXX, Currency.XXX));
Assert.False(O... | mit | C# |
bd2fdb26a3b1cf612ce6fc63462ce3a8742f806b | Add a sample inline data to AzureStoragePartitionKeyTest | studio-nine/Nine.Storage,yufeih/Nine.Storage | test/Server/AzureStoragePartitionKeyTest.cs | test/Server/AzureStoragePartitionKeyTest.cs | namespace Nine.Storage
{
using System.Diagnostics;
using Xunit;
public class AzureStoragePartitionKeyTest
{
[Theory]
[InlineData("abcdefg", 32, 4, 26)]
public void batch_storage_key_to_partition_key(string key, int partitionCount, int partitionKeyLength, int expectedPartition)
... | namespace Nine.Storage
{
using System.Diagnostics;
using Xunit;
public class AzureStoragePartitionKeyTest
{
[Theory]
public void batch_storage_key_to_partition_key(string key, int partitionCount, int partitionKeyLength)
{
var partition = BatchedTableStorage<TestStor... | mit | C# |
9ff6a3111dd3bab44a059ed6454a22d3bf1dce28 | Remove dependency on CupCake.dll, fixes #21 | Yonom/CupCake | CupCake/Host/CupCakeClient.cs | CupCake/Host/CupCakeClient.cs | using System;
using System.ComponentModel.Composition.Hosting;
using System.ComponentModel.Composition.Primitives;
using System.Reflection;
using CupCake.Core;
using MuffinFramework;
using PlayerIOClient;
namespace CupCake.Host
{
/// <summary>
/// Class CupCakeClient.
/// Use this client to host CupCake i... | using System;
using System.ComponentModel.Composition.Hosting;
using System.ComponentModel.Composition.Primitives;
using System.Reflection;
using CupCake.Core;
using MuffinFramework;
using PlayerIOClient;
namespace CupCake.Host
{
/// <summary>
/// Class CupCakeClient.
/// Use this client to host CupCake i... | mit | C# |
8e406643e21cacb81703ee62bb108b558fa7288a | set useGUILayout = false for StageEngine. | fairygui/FairyGUI-unity | Source/Scripts/Core/StageEngine.cs | Source/Scripts/Core/StageEngine.cs | using System;
using UnityEngine;
namespace FairyGUI
{
/// <summary>
///
/// </summary>
public class StageEngine : MonoBehaviour
{
public int ObjectsOnStage;
public int GraphicsOnStage;
public static bool beingQuit;
void Start()
{
useGUILayout = false;
}
void LateUpdate()
... | using System;
using UnityEngine;
namespace FairyGUI
{
/// <summary>
///
/// </summary>
public class StageEngine : MonoBehaviour
{
public int ObjectsOnStage;
public int GraphicsOnStage;
public static bool beingQuit;
void LateUpdate()
{
Stage.inst.InternalUpdate();
ObjectsOnS... | mit | C# |
a39c091a9f66d48c64dbad1dc8ec8502b435e3f7 | expand to container | darrenkopp/SassyStudio | SassyStudio.2012/Intellisense/CompletionContextBuilder.cs | SassyStudio.2012/Intellisense/CompletionContextBuilder.cs | using System.Collections.Generic;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Text;
using SassyStudio.Compiler.Parsing;
using SassyStudio.Editor;
namespace SassyStudio.Intellisense
{
interface ICompletionContextBuilder
{
SassCompletionContext Create(ITrackingSpan span, SassEd... | using System.Collections.Generic;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Text;
using SassyStudio.Compiler.Parsing;
using SassyStudio.Editor;
namespace SassyStudio.Intellisense
{
interface ICompletionContextBuilder
{
SassCompletionContext Create(ITrackingSpan span, SassEd... | mit | C# |
5b9c5d9dc67d52226980aa6f5d12d2564a63082f | remove BOM | greggman/hft-unity3d,greggman/hft-unity3d,greggman/hft-unity3d,greggman/hft-unity3d | HappyFunTimes/HFTConstants.cs | HappyFunTimes/HFTConstants.cs | /*
* Copyright 2014, Gregg Tavares.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | /*
* Copyright 2014, Gregg Tavares.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of cond... | bsd-3-clause | C# |
bdf506766a8a1c3a67658005494a01b5796f3bef | Fix silent failure when using metamethods on an object without an attached state | Rohansi/Mond,Rohansi/Mond,Rohansi/Mond,SirTony/Mond,SirTony/Mond,SirTony/Mond | Mond/VirtualMachine/Object.cs | Mond/VirtualMachine/Object.cs | using System.Collections.Generic;
namespace Mond.VirtualMachine
{
class Object
{
public readonly Dictionary<MondValue, MondValue> Values;
public bool Locked;
public MondValue Prototype;
public object UserData;
private MondState _dispatcherState;
public MondSta... | using System.Collections.Generic;
namespace Mond.VirtualMachine
{
class Object
{
public readonly Dictionary<MondValue, MondValue> Values;
public bool Locked;
public MondValue Prototype;
public object UserData;
private MondState _dispatcherState;
public MondSta... | mit | C# |
55eca45ec45a89548fb30584ddca8c8760fa751d | check for exactly one parameter in Cmd | strotz/pustota,strotz/pustota,strotz/pustota | src/Pustota.Maven.Cmd/Program.cs | src/Pustota.Maven.Cmd/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Pustota.Maven.Base.Serialization;
namespace Pustota.Maven.Cmd
{
class Program
{
static void Main(string[] args)
{
try
{
if (args.Length != 1)
{
Console.Wr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Pustota.Maven.Base.Serialization;
namespace Pustota.Maven.Cmd
{
class Program
{
static void Main(string[] args)
{
try
{
string topFolder = args[0];
var entryP... | mit | C# |
12ace15c002cb46f133c877e9941d6646c5030e1 | Add HomeController example code | datalust/seq-extensions-logging,datalust/seq-extensions-logging,datalust/seq-extensions-logging | example/WebApplication/Controllers/HomeController.cs | example/WebApplication/Controllers/HomeController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace WebApplication.Controllers
{
public class HomeController : Controller
{
readonly ILogger<HomeController> _log;
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace WebApplication.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
public... | apache-2.0 | C# |
fdfe00a793507551ce4a2eecc222a0ce62768b8c | Fix some comments. | Yttrmin/CSharpTo2600,Yttrmin/CSharpTo2600,Yttrmin/CSharpTo2600 | VCSCompilerCLI/Program.cs | VCSCompilerCLI/Program.cs | #nullable enable
using System;
using System.Linq;
using System.Text;
using VCSCompiler.V2;
namespace VCSCompilerCLI
{
class Program
{
/// <summary>
/// A compiler that compiles C# source code into a VCS (Atari 2600) binary.
/// </summary>
/// <param name="arguments">A list of C# source files to compil... | #nullable enable
using System;
using System.Linq;
using System.Text;
using VCSCompiler.V2;
namespace VCSCompilerCLI
{
class Program
{
/// <summary>
///
/// </summary>
/// /// <param name="arguments">A list of C# source files to compile.</param>
/// <param name="outputPath">The path to save the comp... | mit | C# |
d46375c3445722847cbca50006616368666296fb | Clean up BranchName | michael-reichenauer/GitMind | GitMind/Git/BranchName.cs | GitMind/Git/BranchName.cs | using System;
using GitMind.Utils;
namespace GitMind.Git
{
/// <summary>
/// Branch name type, which handles branch names as case insensitive strings.
/// </summary>
public class BranchName : Equatable<BranchName>, IComparable
{
public static BranchName Master = new BranchName("master");
public static Branc... | using System;
using GitMind.Utils;
namespace GitMind.Git
{
public class BranchName : Equatable<BranchName>, IComparable
{
private readonly string name;
private readonly string id;
private readonly int hashCode;
public static BranchName Master = new BranchName("master");
public static BranchName OriginHe... | mit | C# |
674539c8422d0327f2b91ce97649a0f672cd99ca | Split IService into smaller interfaces | ahanusa/Peasy.NET,ahanusa/facile.net,peasy/Peasy.NET | Peasy/IService.cs | Peasy/IService.cs | using System.Collections.Generic;
namespace Peasy
{
public interface IService<T, TKey> : ISupportGetAllCommand<T>,
ISupportGetByIDCommand<T, TKey>,
ISupportInsertCommand<T>,
ISupportUpdateCo... | using System.Collections.Generic;
namespace Peasy
{
public interface IService<T, TKey>
{
ICommand<IEnumerable<T>> GetAllCommand();
ICommand<T> GetByIDCommand(TKey id);
ICommand<T> InsertCommand(T entity);
ICommand<T> UpdateCommand(T entity);
ICommand DeleteCommand(TKey ... | mit | C# |
05b6d44a8803f68cee66770efe65d3f578631fde | Remove LogLevel.Verbose, change missing library logging to Error | peppy/osu-framework,peppy/osu-framework,Tom94/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,Tom94/osu-framework,DrabWeb/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-fra... | osu.Framework/Platform/Linux/Native/Library.cs | osu.Framework/Platform/Linux/Native/Library.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Runtime.InteropServices;
using osu.Framework.Logging;
namespace osu.Framework.Platform.Linux.Native
{
public static class Librar... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Runtime.InteropServices;
using osu.Framework.Logging;
namespace osu.Framework.Platform.Linux.Native
{
public static class Librar... | mit | C# |
525958e122875c96ed4c88f8c538acac36a9734d | Add missing error code | henrik1235/Kugelmatik,henrik1235/Kugelmatik,henrik1235/Kugelmatik | KugelmatikLibrary/ErrorCode.cs | KugelmatikLibrary/ErrorCode.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KugelmatikLibrary
{
public enum ErrorCode
{
None = 0,
TooShort = 1,
InvalidX = 2,
InvalidY = 3,
InvalidMagic = 4,
BufferOverflow = 5,
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KugelmatikLibrary
{
public enum ErrorCode
{
None = 0,
TooShort = 1,
InvalidX = 2,
InvalidY = 3,
InvalidMagic = 4,
BufferOverflow = 5,
... | mit | C# |
d211472e706e1dc1c409a61acd3f38c364359578 | Fix RTVS e-mail address | karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderS... | src/Package/Impl/Feedback/SendMailCommand.cs | src/Package/Impl/Feedback/SendMailCommand.cs | using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using Microsoft.Office.Interop.Outlook;
using Microsoft.VisualStudio.R.Package.Commands;
namespace Microsoft.VisualStudio.R.Package.Feedback {
internal class SendMailCommand : PackageCommand {
public SendMailCommand(Guid ... | using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using Microsoft.Office.Interop.Outlook;
using Microsoft.VisualStudio.R.Package.Commands;
namespace Microsoft.VisualStudio.R.Package.Feedback {
internal class SendMailCommand : PackageCommand {
public SendMailCommand(Guid ... | mit | C# |
d5d0423b0ab587cb67253812a9355c85361096e4 | Add comments to StandardMemberRenamer | lunet-io/scriban,textamina/scriban | src/Scriban/Runtime/StandardMemberRenamer.cs | src/Scriban/Runtime/StandardMemberRenamer.cs | // Copyright (c) Alexandre Mutel. All rights reserved.
// Licensed under the BSD-Clause 2 license.
// See license.txt file in the project root for full license information.
using System.Text;
namespace Scriban.Runtime
{
/// <summary>
/// The standard rename make a camel/pascalcase name changed by `_` and lowe... | // Copyright (c) Alexandre Mutel. All rights reserved.
// Licensed under the BSD-Clause 2 license.
// See license.txt file in the project root for full license information.
using System.Text;
namespace Scriban.Runtime
{
public sealed class StandardMemberRenamer
{
public static readonly MemberRenamerDe... | bsd-2-clause | C# |
6c4c02289c236a5a9eab38e602eff164530f93dd | Create doc store or embedded doc | half-ogre/qed,Haacked/qed | qed/Functions/CreateRavenStore.cs | qed/Functions/CreateRavenStore.cs | using Raven.Client;
using Raven.Client.Document;
using Raven.Client.Embedded;
using fn = qed.Functions;
namespace qed
{
public static partial class Functions
{
public static IDocumentStore GetRavenStore()
{
var ravenStore = GetConfiguration<IDocumentStore>(Constants.Configuration.R... | using Raven.Client;
using Raven.Client.Embedded;
using fn = qed.Functions;
namespace qed
{
public static partial class Functions
{
public static IDocumentStore GetRavenStore()
{
var ravenStore = GetConfiguration<IDocumentStore>(Constants.Configuration.RavenStoreKey);
if... | mit | C# |
f643faf56958f18cafe659f585a69bd3594eb442 | Fix issue #9 | themehrdad/NetTelebot,vertigra/NetTelebot-2.0 | NetTelebot/ForceReplyMarkup.cs | NetTelebot/ForceReplyMarkup.cs | using System.Text;
namespace NetTelebot
{
/// <summary>
/// Upon receiving a message with this object, Telegram clients will display a reply interface to the user
/// (act as if the user has selected the bot‘s message and tapped ’Reply').
/// </summary>
public class ForceReplyMarkup : IReplyMark... | using System.Text;
namespace NetTelebot
{
/// <summary>
/// Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot‘s message and tapped ’Reply').
/// </summary>
public class ForceReplyMarkup : IReplyMarkup
{
... | mit | C# |
7925750e5a58575e77e825d3ef33711e2a2733d7 | Extend NetworkingProxy to support listener socket endpoints besides "any". | the-dargon-project/ItzWarty.Proxies.Api,ItzWarty/ItzWarty.Proxies.Api | Networking/INetworkingProxy.cs | Networking/INetworkingProxy.cs | using System.IO;
using System.Net.Sockets;
namespace ItzWarty.Networking {
public interface INetworkingProxy {
IConnectedSocket CreateConnectedSocket(string host, int port);
IConnectedSocket CreateConnectedSocket(ITcpEndPoint endpoint);
IListenerSocket CreateListenerSocket(int port);
IList... | using System.IO;
using System.Net.Sockets;
namespace ItzWarty.Networking {
public interface INetworkingProxy {
IConnectedSocket CreateConnectedSocket(string host, int port);
IConnectedSocket CreateConnectedSocket(ITcpEndPoint endpoint);
IListenerSocket CreateListenerSocket(int port);
IConn... | bsd-2-clause | C# |
e14672eac4f80683aaa1255a0e5eb8c75320bd20 | Print ffplay output to the console in debug builds | o11c/WebMConverter,Yuisbean/WebMConverter,nixxquality/WebMConverter | Components/FFplay.cs | Components/FFplay.cs | using System;
using System.Diagnostics;
using System.IO;
namespace WebMConverter
{
class FFplay : Process
{
public string FFplayPath = Path.Combine(Environment.CurrentDirectory, "Binaries", "Win32", "ffplay.exe");
public FFplay(string argument)
{
this.StartInfo.FileName = ... | using System;
using System.Diagnostics;
using System.IO;
namespace WebMConverter
{
class FFplay : Process
{
public string FFplayPath = Path.Combine(Environment.CurrentDirectory, "Binaries", "Win32", "ffplay.exe");
public FFplay(string argument)
{
this.StartInfo.FileName = ... | mit | C# |
04452ef8bd08fb5075845f17477ca34c2fdc629f | Format xmldoc comments | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.Exports/Services/ITeamExplorerContext.cs | src/GitHub.Exports/Services/ITeamExplorerContext.cs | using System;
using System.ComponentModel;
using GitHub.Models;
namespace GitHub.Services
{
/// <summary>
/// Responsible for watching the active repository in Team Explorer.
/// </summary>
/// <remarks>
/// A <see cref="PropertyChanged"/> event is fired when moving to a new repository.
/// A ... | using System;
using System.ComponentModel;
using GitHub.Models;
namespace GitHub.Services
{
/// <summary>
/// Responsible for watching the active repository in Team Explorer.
/// A PropertyChanged event is fired when moving to a new repository.
/// A StatusChanged event is fired when the CurrentBranch... | mit | C# |
11a5927f6bcd926a5314dae3644f1d9927a68a3e | Update IBotCardsFarmerInfo.cs | JustArchi/ArchiSteamFarm,JustArchi/ArchiSteamFarm,JustArchi/ArchiSteamFarm,JustArchi/ArchiSteamFarm | ArchiSteamFarm/Plugins/IBotCardsFarmerInfo.cs | ArchiSteamFarm/Plugins/IBotCardsFarmerInfo.cs | // _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| ... | // _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| ... | apache-2.0 | C# |
6d396400f8cfa0f79a6b51ff2ff4ab0ed94d3b40 | create help attribute | mykeels/CommandLineParser | CommandLineParser/Attributes/HelpAttribute.cs | CommandLineParser/Attributes/HelpAttribute.cs | using System;
namespace CommandLineParser.Attributes
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class HelpAttribute : Attribute
{
private readonly string usageText;
public HelpAttribute(string usag... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CommandLineParser.Attributes
{
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
public sealed class HelpAttribute : Attribute
{
readonly... | mit | C# |
9ed9888f86e1806309d253bdac1e334207a0516f | Update DiseaseTest (#9639) | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.IntegrationTests/Tests/DiseaseTest.cs | Content.IntegrationTests/Tests/DiseaseTest.cs | using System.Threading.Tasks;
using Content.Shared.Disease;
using NUnit.Framework;
using Robust.Shared.Prototypes;
namespace Content.IntegrationTests.Tests;
[TestFixture]
public sealed class DiseaseTest
{
/// <summary>
/// Asserts that a disease prototype has valid stages for its effects and cures.
/// </... | using System.Threading.Tasks;
using Content.Shared.Disease;
using NUnit.Framework;
using Robust.Shared.Prototypes;
namespace Content.IntegrationTests.Tests;
[TestFixture]
public sealed class DiseaseTest
{
/// <summary>
/// Asserts that a disease prototype has valid stages for its effects and cures.
/// </... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.