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 |
|---|---|---|---|---|---|---|---|---|
f5c27d99a4f3a3d9255a7cebe554703a2612dff4 | Add error handling to import process (resolves await warning). | naoey/osu,UselessToucan/osu,2yangk23/osu,peppy/osu,peppy/osu,NeoAdonis/osu,RedNesto/osu,ppy/osu,smoogipoo/osu,tacchinotacchi/osu,ZLima12/osu,naoey/osu,Frontear/osuKyzer,ppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,DrabWeb/osu,2yangk23/osu,johnneijzen/osu,EVAST9919/osu,peppy/osu-new,Nabile-Rahmani/osu,nyaamara/osu,... | osu.Game/IPC/BeatmapImporter.cs | osu.Game/IPC/BeatmapImporter.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Diagnostics;
using System.Threading.Tasks;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Game.Database;
namespace osu.Game... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Diagnostics;
using System.Threading.Tasks;
using osu.Framework.Platform;
using osu.Game.Database;
namespace osu.Game.IPC
{
public class Beat... | mit | C# |
ccfb7da8014f69288b80a2e9a95a9dfe69537808 | fix crosshair draw origin because the texture is bigger now | sourcerect/iris,libjared/iris | Iris/Classes/Gui.cs | Iris/Classes/Gui.cs | using SFML.Graphics;
using SFML.System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Iris
{
public static class Gui
{
//for things only gui should hold
public static float CrosshairFireExpand = 0f;
//for things normally held in other c... | using SFML.Graphics;
using SFML.System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Iris
{
public static class Gui
{
//for things only gui should hold
public static float CrosshairFireExpand = 0f;
//for things normally held in other c... | mit | C# |
8d488a5dae7934c822351940a12befc7ffa0f548 | Move the private member to the top of the class | joshpeterson/mos,joshpeterson/mos,joshpeterson/mos | Mos6510/Register.cs | Mos6510/Register.cs | using System;
using System.Collections;
namespace Mos6510
{
public class Register
{
private BitArray bits;
public Register(int numberOfBits)
{
bits = new BitArray(numberOfBits);
}
public int Length
{
get { return bits.Length; }
}
public int GetValue()
{
retu... | using System;
using System.Collections;
namespace Mos6510
{
public class Register
{
public Register(int numberOfBits)
{
bits = new BitArray(numberOfBits);
}
public int Length
{
get { return bits.Length; }
}
public int GetValue()
{
return ToInt();
}
publi... | mit | C# |
7d00103826ec4c633998ca0932d6ac36c514286b | fix usings | ChizhovYuI/tasks,1MiKHalyCH1/tasks,orenleto/tasks,XomakNet/tasks,thejackgatsby/tasks,design-camp/tasks,kalinin-sanja/tasks,askeip/tasks | Eval/EvalProgram.cs | Eval/EvalProgram.cs | using System;
namespace EvalTask
{
class EvalProgram
{
static void Main(string[] args)
{
string input = Console.In.ReadToEnd();
string output = "TODO";
Console.WriteLine(output);
}
}
}
| using checker.Eval.Solution;
using System;
namespace EvalTask
{
class EvalProgram
{
static void Main(string[] args)
{
string input = Console.In.ReadToEnd();
string output = "TODO";
Console.WriteLine(output);
}
}
}
| mit | C# |
07e0c9b2d8a4166916699191d05ff4d097813f4d | fix for bug when reloading level in web player | KittyMac/LD30b | Assets/Resources/game/GameAI.cs | Assets/Resources/game/GameAI.cs | using UnityEngine;
using System.Threading;
public class GameAI : Object {
private LDGGame game;
static public float difficulty = 0.75f;
private bool continueRunningThread = true;
private Thread processingThread1;
public void PerformAIOnThread() {
System.Random random = new System.Random ();
Thread.Slee... | using UnityEngine;
using System.Threading;
public class GameAI : Object {
private LDGGame game;
static public float difficulty = 0.75f;
private Thread processingThread1;
public void PerformAIOnThread() {
System.Random random = new System.Random ();
Thread.Sleep (4000);
while(true){
// AI TASKS:
... | mit | C# |
435051b469c1d045175cb2915daf56b305160d15 | Delete redundant wrapper method | alastairs/BobTheBuilder | BobTheBuilder/DynamicBuilder.cs | BobTheBuilder/DynamicBuilder.cs | using BobTheBuilder.Activation;
using BobTheBuilder.ArgumentStore;
using BobTheBuilder.ArgumentStore.Queries;
using BobTheBuilder.Syntax;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
namespace BobTheBuilder
{
public class DynamicBuilder<T> : DynamicObject where T : class... | using BobTheBuilder.Activation;
using BobTheBuilder.ArgumentStore;
using BobTheBuilder.ArgumentStore.Queries;
using BobTheBuilder.Syntax;
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
namespace BobTheBuilder
{
public class DynamicBuilder<T> : DynamicObject where T : class... | apache-2.0 | C# |
09ea94ec8150b84167059475e84ff34bbe3f99fe | Update Index.cshtml | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<h2 style="color: blue">In order to provide testing for on-going essential agricultural research the Analytical Lab will be re-opening on Monday March 30th with normal business hours. Please feel free to email us before shipping samples if there i... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<h2 style="color: blue">The Analytical Lab will be closed from Thursday March 19th through Tuesday April 7th in support of curbing the spread of COVID-19. <br />
Please email us at <a href='mailto:anlab@ucdavis.edu'>anlab@ucdavis.edu</a> i... | mit | C# |
2cb9ce4eb1a03d8a63eebd777879dc0004346da6 | Fix Name in Document | aloisdg/CountPages,aloisdg/Doccou,saidmarouf/Doccou | Counter/Document.cs | Counter/Document.cs | using Counter.Documents;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Counter.Documents.Archives;
namespace Counter
{
/// <summary>
/// Document is the class wrapping every other class in this library.
/// If you are an user, everything you need come from her... | using Counter.Documents;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Counter.Documents.Archives;
namespace Counter
{
/// <summary>
/// Document is the class wrapping every other class in this library.
/// If you are an user, everything you need come from her... | mit | C# |
b345de723575ca54c5db11412c0d479acfb1d3dd | Make Token properties readonly | escamilla/squirrel | squirrel/Token.cs | squirrel/Token.cs | namespace squirrel
{
public struct Token
{
public readonly TokenType Type;
public readonly SourceSpan? Span;
public readonly string Lexeme;
public Token(TokenType type, SourceSpan? span, string lexeme)
{
Type = type;
Span = span;
Lexe... | namespace squirrel
{
public struct Token
{
public TokenType Type;
public SourceSpan? Span;
public string Lexeme;
public Token(TokenType type, SourceSpan? span, string lexeme)
{
Type = type;
Span = span;
Lexeme = lexeme;
}
... | mit | C# |
2135d163845ca840d0cb7c127289dbfc4584ed61 | Update Program.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D.NetCore/Program.cs | src/Draw2D.NetCore/Program.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Linq;
using Avalonia;
using Avalonia.Logging.Serilog;
using Serilog;
namespace Draw2D.NetCore
{
class Program
{
static ... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Linq;
using Avalonia;
using Avalonia.Logging.Serilog;
using Serilog;
namespace Core2D.Avalonia.NetCore
{
class Program
{
... | mit | C# |
7aa7dec6d4f894ca02ccc8985759032f9ef5425d | Update SysVersion for 1.1-preview2 #293 | FanrayMedia/Fanray,FanrayMedia/Fanray,FanrayMedia/Fanray | src/Fan/Helpers/SysVersion.cs | src/Fan/Helpers/SysVersion.cs | namespace Fan.Helpers
{
public class SysVersion
{
public static string CurrentVersion = "v1.1.0-preview2";
}
}
| namespace Fan.Helpers
{
public class SysVersion
{
public static string CurrentVersion = "v1.1-preview1";
}
}
| apache-2.0 | C# |
d811a70f4b42cb638a6cc6be169acfb0f99275f9 | Change button types on editor exit dialog to match purpose | ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu | osu.Game/Screens/Edit/PromptForSaveDialog.cs | osu.Game/Screens/Edit/PromptForSaveDialog.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.Sprites;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Edit
{
public class PromptForSaveDialog : PopupDialog
... | // 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.Sprites;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Edit
{
public class PromptForSaveDialog : PopupDialog
... | mit | C# |
d64a0e8aaa39aaa6099a71d9fc5160b9486d1953 | Add "ApplicationPath" in tenant URL | salarvand/orchard,xiaobudian/Orchard,bedegaming-aleksej/Orchard,openbizgit/Orchard,m2cms/Orchard,salarvand/orchard,bigfont/orchard-cms-modules-and-themes,phillipsj/Orchard,omidnasri/Orchard,fassetar/Orchard,JRKelso/Orchard,OrchardCMS/Orchard-Harvest-Website,dburriss/Orchard,enspiral-dev-academy/Orchard,LaserSrl/Orchard... | src/Orchard.Web/Modules/Orchard.MultiTenancy/Extensions/UrlHelperExtensions.cs | src/Orchard.Web/Modules/Orchard.MultiTenancy/Extensions/UrlHelperExtensions.cs | using System.Web.Mvc;
using Orchard.Environment.Configuration;
namespace Orchard.MultiTenancy.Extensions {
public static class UrlHelperExtensions {
public static string Tenant(this UrlHelper urlHelper, ShellSettings tenantShellSettings) {
//info: (heskew) might not keep the port/vdir in... | using System.Web.Mvc;
using Orchard.Environment.Configuration;
namespace Orchard.MultiTenancy.Extensions {
public static class UrlHelperExtensions {
public static string Tenant(this UrlHelper urlHelper, ShellSettings tenantShellSettings) {
//info: (heskew) might not keep the port inserti... | bsd-3-clause | C# |
d1228e572365c9802fa2a4c3d8d8df01c44d1035 | Add TestDecoder | aivel/AlmostPDP11,aivel/AlmostPDP11 | AlmostPDP11/Tests/TestDecoder.cs | AlmostPDP11/Tests/TestDecoder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AlmostPDP11.VM.Decoder;
using NUnit.Framework;
using Decoder = AlmostPDP11.VM.Decoder.Decoder;
namespace AlmostPDP11.Tests
{
[TestFixture]
class TestDecoder
{
[Test]
pu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Decoder;
using NUnit.Framework;
using Decoder = Decoder.Decoder;
namespace AlmostPDP11.Tests
{
[TestFixture]
class TestDecoder
{
[Test]
public void Test_Something()
... | mit | C# |
85e20688aaebfa2aee2e617e847c2174cba092c3 | Fix sync ManjiSpace | bunashibu/kikan | Assets/Scripts/SkillReference.cs | Assets/Scripts/SkillReference.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Bunashibu.Kikan {
public class SkillReference : MonoBehaviour {
void Awake() {
_existOwnSkillList = new List<Skill>();
}
public void Register(Skill skill) {
_existOwnSkillList.Add(skill);
}
pub... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Bunashibu.Kikan {
public class SkillReference : MonoBehaviour {
void Awake() {
_existSkillList = new List<Skill>();
}
public void Register(Skill skill) {
_existSkillList.Add(skill);
}
public vo... | mit | C# |
fdc0f445509cba04666d0932dfcf0de70da91fe1 | fix codedoc | nerai/CMenu | src/CMenuItem.cs | src/CMenuItem.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleMenu
{
/// <summary>
/// A single console menu item. It consists of a selector (keyword), a help text and the individual behavior.
///
/// <example>
/// Create a hellow world command:
/// <code>
/// var menui... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleMenu
{
/// <summary>
/// A single console menu item. It consists of a selector (keyword), a help text and the individual behavior.
///
/// <example>
/// Create a hellow world command:
/// <code>
/// var menui... | mit | C# |
998377ae2cedf393354f3704739ace298eea90b9 | Fix copypaste mistakes in ThrowHelpers | shrah/corert,sandreenko/corert,shrah/corert,krytarowski/corert,manu-silicon/corert,sandreenko/corert,gregkalapos/corert,kyulee1/corert,botaberg/corert,sandreenko/corert,krytarowski/corert,gregkalapos/corert,manu-silicon/corert,manu-silicon/corert,kyulee1/corert,tijoytom/corert,gregkalapos/corert,botaberg/corert,mjp41/c... | src/System.Private.CoreLib/src/Internal/Runtime/CompilerHelpers/ThrowHelpers.cs | src/System.Private.CoreLib/src/Internal/Runtime/CompilerHelpers/ThrowHelpers.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;
namespace Internal.Runtime.CompilerHelpers
{
/// <summary>
/// These methods are used to thr... | // 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;
namespace Internal.Runtime.CompilerHelpers
{
/// <summary>
/// These methods are used to thr... | mit | C# |
be37aa5b04893a40753ac80791afd950c45b4a04 | remove unityeditor reference from world.cs and fix field namins | brnkhy/MapzenGo,brnkhy/MapzenGo | Assets/MapzenGo/Models/World.cs | Assets/MapzenGo/Models/World.cs | using System;
using System.Collections.Generic;
using Assets;
using Assets.Helpers;
using Assets.Models;
using UnityEngine;
using System.Collections;
using Assets.Models.Factories;
public class World : MonoBehaviour
{
[SerializeField] private Settings _settings;
private TileManager _tileManager;
private ... | using System;
using System.Collections.Generic;
using Assets;
using Assets.Helpers;
using Assets.Models;
using UnityEditor.VersionControl;
using UnityEngine;
using System.Collections;
using Assets.Models.Factories;
public class World : MonoBehaviour
{
[SerializeField] private Settings _settings;
private TileM... | mit | C# |
86b1f21f8d5bca1e5d340433e42d49fdf85d9e54 | Order the list of deployments by start time. | uQr/kudu,badescuga/kudu,barnyp/kudu,mauricionr/kudu,juvchan/kudu,badescuga/kudu,barnyp/kudu,EricSten-MSFT/kudu,mauricionr/kudu,shibayan/kudu,oliver-feng/kudu,shrimpy/kudu,projectkudu/kudu,shibayan/kudu,puneet-gupta/kudu,oliver-feng/kudu,juoni/kudu,puneet-gupta/kudu,shrimpy/kudu,YOTOV-LIMITED/kudu,mauricionr/kudu,kenego... | Kudu.SignalR/Hubs/Deployment.cs | Kudu.SignalR/Hubs/Deployment.cs | using System.Collections.Generic;
using System.Linq;
using Kudu.Core.Deployment;
using Kudu.SignalR.ViewModels;
using SignalR.Hubs;
namespace Kudu.SignalR.Hubs
{
public class Deployment : Hub
{
private readonly IDeploymentManager _deploymentManager;
public Deployment(IDeploymentManager deploy... | using System.Collections.Generic;
using System.Linq;
using Kudu.Core.Deployment;
using Kudu.SignalR.ViewModels;
using SignalR.Hubs;
namespace Kudu.SignalR.Hubs
{
public class Deployment : Hub
{
private readonly IDeploymentManager _deploymentManager;
public Deployment(IDeploymentManager deploy... | apache-2.0 | C# |
03eaaeb811229cc0b2e36516daaced17e60a0518 | Make CryptoUtil.Md5Encode thread-safe | GNOME/hyena,dufoli/hyena,petejohanson/hyena,arfbtwn/hyena,GNOME/hyena,petejohanson/hyena,dufoli/hyena,arfbtwn/hyena | src/Hyena/Hyena/CryptoUtil.cs | src/Hyena/Hyena/CryptoUtil.cs | //
// CryptoUtil.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (C) 2008 Novell, 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 restriction, i... | //
// CryptoUtil.cs
//
// Author:
// Aaron Bockover <abockover@novell.com>
//
// Copyright (C) 2008 Novell, 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 restriction, i... | mit | C# |
247d0f8b394ec237d0baa192c388649fb4ad159d | convert FullPath to struct, to make it non-nullable | strotz/pustota,strotz/pustota,strotz/pustota | src/Pustota.Maven/FullPath.cs | src/Pustota.Maven/FullPath.cs | using System;
namespace Pustota.Maven
{
public struct FullPath
{
private readonly string _value;
internal FullPath(string value)
{
if (value == null)
throw new ArgumentNullException("value");
_value = value;
}
public string Value
{
get { return _value; }
}
// TO... | using Pustota.Maven.SystemServices;
namespace Pustota.Maven
{
public sealed class FullPath
{
internal FullPath(string value)
{
Value = value;
}
public string Value { get; private set; }
// TODO: ensure that FullPath always contains full path value
//public static FullPath Create(strin... | mit | C# |
47a3325e840e141d0b9ac461e1579cf76c313a8b | update assembly info | krishnarajnairmk/im-only-resting,ikazuaki/im-only-resting,yagyemang/im-only-resting,krishnarajnairmk/im-only-resting,yagyemang/im-only-resting,yhtsnda/im-only-resting,yagyemang/im-only-resting,ikazuaki/im-only-resting,ikazuaki/im-only-resting,krishnarajnairmk/im-only-resting,yhtsnda/im-only-resting,yhtsnda/im-only-rest... | Ior/Properties/AssemblyInfo.cs | Ior/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("I'm Only Resting")]
[assembly: Ass... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("I'm Only Resting")]
[assembly: Ass... | apache-2.0 | C# |
94fe750d30238ca5fe0df219224bf317cb389760 | Add all flag-bit combos | izik1/JAGBE | JAGBE/GB/Computation/RFlags.cs | JAGBE/GB/Computation/RFlags.cs | namespace JAGBE.GB.Computation
{
/// <summary>
/// Defines constants for the flags in the flags register.
/// </summary>
internal static class RFlags
{
/// <summary>
/// A Bit-field of the Carry flag;
/// </summary>
internal const byte CB = 0b0001_0000;
/// ... | namespace JAGBE.GB.Computation
{
/// <summary>
/// Defines constants for the flags in the flags register.
/// </summary>
internal static class RFlags
{
/// <summary>
/// A Bit-field of the Carry flag;
/// </summary>
internal const byte CB = 1 << CF;
/// <sum... | mit | C# |
fd6bf569521046407a295d005a652b0540a2b925 | Update comments | hority/Bulkins | Bulkins/BulkInsertConfiguration.cs | Bulkins/BulkInsertConfiguration.cs | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bulkins
{
/// <summary>
/// Configuration for Bulkins
/// </summary>
public class BulkInsertConfiguration
{
public string DestinationTa... | using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bulkins
{
/// <summary>
/// Configuration for Bulkins
/// </summary>
public class BulkInsertConfiguration
{
public string DestinationTa... | mit | C# |
a1a90b9c0a529ed5cdf1bcb649c9477697e0b4ef | Update Index.cshtml | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<h2 style="color: blue">PLEASE NOTE: New rates will take effect December 16th. Work orders for samples not received by December 16th will need to be re-created so as to capture the new rates.</h2>
<h2 style="color: blue">Also Note: During the... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<h2 style="color: blue">PLEASE NOTE: New rates will take effect December 16th. Work orders for samples not received by December 16th will need to be re-created so as to capture the new rates.</h2>
<p class="lead">The UC Davis Analytical Labor... | mit | C# |
d6adf624b3a2c8b779137ca22c67788d2bc0662d | Update Singleton to add concept of an "after initialization queue" that helps avoid initialization race conditions on application setup. | RandomOutput/ThreeSpace | Assets/Denizen/Utils/Singleton.cs | Assets/Denizen/Utils/Singleton.cs | using System;
using UnityEngine;
using System.Collections.Generic;
namespace Denizen.Utils
{
public abstract class Singleton<T> : MonoBehaviour where T : Singleton<T>
{
public static event Action InstanceInitialized;
public static List<Action> initializedActionQueue;
public static T Instance
{
... | using System;
using UnityEngine;
namespace Denizen.Utils
{
public abstract class Singleton<T> : MonoBehaviour where T : Singleton<T>
{
public static event Action InstanceInitialized;
public static T Instance
{
get
{
return _instance;
}
}
private static T _instance;
... | apache-2.0 | C# |
f7a33c42a03ca5bbd0a12390e15828dfc0b7592c | Update TrueFalseOrNull.cs | mcintyre321/OneOf | OneOf/Types/TrueFalseOrNull.cs | OneOf/Types/TrueFalseOrNull.cs | namespace OneOf.Types
{
public class TrueFalseOrNull : OneOf.OneOf<True, False, Null>
{
public class True : TrueFalseOrNull { }
public class False : TrueFalseOrNull { }
public class Null : TrueFalseOrNull { }
public static implicit operator TrueFalseOrNull(bool? value)
{... | namespace OneOf.Types
{
public class TrueFalseOrNull
{
public class True : TrueFalseOrNull { }
public class False : TrueFalseOrNull { }
public class Null : TrueFalseOrNull { }
public static implicit operator TrueFalseOrNull(bool? value)
{
return value == null... | mit | C# |
c7f47443a01a27e4c4ab6d239d120de1eaca59af | Add string length establishers | tjb042/Establishment | Establishment/StringEstablisher.cs | Establishment/StringEstablisher.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Establishment {
public class StringEstablisher : BaseClassEstablisher<string> {
public bool IsNullOrEmpty(string value) {
if (!string.IsNullOrEmpty(value)) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Establishment {
public class StringEstablisher : BaseClassEstablisher<string> {
public bool IsNullOrEmpty(string value) {
if (!string.IsNullOrEmpty(value)) {
... | mit | C# |
b000d25657f5020c63503cad9042fe73de2e80f2 | Add random param to enums url | HearthSim/HearthDb | HearthDb.EnumsGenerator/Program.cs | HearthDb.EnumsGenerator/Program.cs | using System;
using System.Linq;
using System.Net;
using System.IO;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.MSBuild;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
namespace HearthDb.EnumsGenerator
{
internal class Program
{
private const stri... | using System;
using System.Linq;
using System.Net;
using System.IO;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.MSBuild;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
namespace HearthDb.EnumsGenerator
{
internal class Program
{
private const stri... | mit | C# |
ea06780db3f9ec3365c18cea32cd90c6e01d4432 | Fix doc errors. | ifpanalytics/Ifp.Validation | Ifp.Validation/ExtensionMethods.cs | Ifp.Validation/ExtensionMethods.cs | namespace Ifp.Validation
{
/// <summary>
/// Extension methods for the Ifp.Validation library
/// </summary>
public static class ValidationSummaryBuilderExtensions
{
/// <summary>
/// Converts a <see cref="ValidationOutcome"/> to a <see cref="ValidationSummary"/>.
/// </summ... | namespace Ifp.Validation
{
/// <summary>
/// Extension methods for the Ifp.Validation library
/// </summary>
public static class ValidationSummaryBuilderExtensions
{
/// <summary>
/// Converts a <see cref="ValidationOutcome"/> to a <see cref="ValidationSummary"/>.
/// </summ... | mit | C# |
6c9477b0a4bf6d06f21fc60a40b84280e91e37e1 | Make cell size configurable | jcmoyer/Yeena | Yeena/Data/StashImageSummarizer.cs | Yeena/Data/StashImageSummarizer.cs | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | apache-2.0 | C# |
17700865984531891c25be3a62b8161c809c6115 | add doc to static extern methods | martinusso/Ini.Net | Ini.Net/IniFile.cs | Ini.Net/IniFile.cs | using System;
using System.Text;
using System.Runtime.InteropServices;
namespace Ini.Net
{
public class IniFile
{
/// <summary>
/// Copies a string into the specified section of an initialization file.
/// </summary>
/// <returns>
/// If the function successfully copies... | using System;
using System.Text;
using System.Runtime.InteropServices;
namespace Ini.Net
{
public class IniFile
{
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);
[DllImport("kernel32")]
priva... | mit | C# |
08ca6a6ee683793c59bf1d7923fca1587d022b17 | Update MeasureTextBenchmark.cs | SixLabors/Fonts | tests/SixLabors.Fonts.Benchmarks/SixLabors.Fonts.Benchmarks/MeasureTextBenchmark.cs | tests/SixLabors.Fonts.Benchmarks/SixLabors.Fonts.Benchmarks/MeasureTextBenchmark.cs | // Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
using BenchmarkDotNet.Attributes;
using SkiaSharp;
namespace SixLabors.Fonts.Benchmarks
{
/// <summary>
/// <para>
/// This benchmark is not actually measuring the same operation as SkiSharp is
/// not doing ... | // Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using System;
using BenchmarkDotNet.Attributes;
using SkiaSharp;
namespace SixLabors.Fonts.Benchmarks
{
[MediumRunJob]
public class MeasureTextBenchmark : IDisposable
{
private readonly TextOptions textOptions;
... | apache-2.0 | C# |
4224e1a6feea31facb4588ea598c7cc941dd430b | 添加一个成员变量 tag | wangyaron/VRProject | TestGit/Assets/ModelManager.cs | TestGit/Assets/ModelManager.cs | using UnityEngine;
using System.Collections;
public class ModelManager : MonoBehaviour
{
private int tag = 0;
void Start () {
Debug.Log("git测试");
}
// Update is called once per frame
void Update () {
transform.Rotate(Vector3.up, Time.deltaTime * 280);
}
private void PrintMsg()
{... | using UnityEngine;
using System.Collections;
public class ModelManager : MonoBehaviour {
void Start () {
Debug.Log("git测试");
}
// Update is called once per frame
void Update () {
transform.Rotate(Vector3.up, Time.deltaTime * 280);
}
private void PrintMsg()
{
Debug.Log("小郭提交的... | apache-2.0 | C# |
62f0b394be6b79880f09d73812f0bf24b56c4d4a | Fix the client (post the correct client secret) | thabart/SimpleIdentityServer,thabart/SimpleIdentityServer | SimpleIdentityServer/src/SimpleIdentityServer.Client/Builders/TokenRequestBuilder.cs | SimpleIdentityServer/src/SimpleIdentityServer.Client/Builders/TokenRequestBuilder.cs | #region copyright
// Copyright 2015 Habart Thierry
//
// 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 ... | #region copyright
// Copyright 2015 Habart Thierry
//
// 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 ... | apache-2.0 | C# |
57a0f2e7d97746cc7d62f67662237589e94363e1 | Simplify C# headless blinky sample | stima8457/https-github.com-ms-iot-samples,rattrick1/samples,jjcalderon/samples,nlshipp/samples,RVinoth/samples,bobfr/samples,MasayukiNagase/samples,matejjj/samples,ms-iot/samples,ms-iot/samples,briancrissup/iotled,jayhopeter/samples,Eih3/samples,jimlane/samples,MasayukiNagase/samples,RVinoth/samples,dotMorten/samples,b... | BlinkyHeadless/CS/StartupTask.cs | BlinkyHeadless/CS/StartupTask.cs | /*
Copyright(c) Microsoft Open Technologies, Inc. All rights reserved.
The MIT License(MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
in the Software without restriction, including with... | /*
Copyright(c) Microsoft Open Technologies, Inc. All rights reserved.
The MIT License(MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
in the Software without restriction, including with... | mit | C# |
f247c6182437453664c1774bdf7d5f9227318208 | enable auto redirect to client on signout | IdentityServer/IdentityServer4.Quickstart.UI,IdentityServer/IdentityServer4.Quickstart.UI,IdentityServer/IdentityServer4.Quickstart.UI,IdentityServer/IdentityServer4.Quickstart.UI | Views/Account/LoggedOut.cshtml | Views/Account/LoggedOut.cshtml | @model IdentityServer4.Quickstart.UI.Models.LoggedOutViewModel
<div class="page-header logged-out">
<h1>
Logout
<small>You are now logged out</small>
</h1>
@if (Model.PostLogoutRedirectUri != null)
{
<div>
Click <a class="PostLogoutRedirectUri" href="@Model.PostLog... | @model IdentityServer4.Quickstart.UI.Models.LoggedOutViewModel
<div class="page-header logged-out">
<h1>
Logout
<small>You are now logged out</small>
</h1>
@if (Model.PostLogoutRedirectUri != null)
{
<div>
Click <a class="PostLogoutRedirectUri" href="@Model.PostLog... | apache-2.0 | C# |
a19a8a2c701df7faeb48401486ffcf306ab480fd | Add comments | contentful/contentful.net | Contentful.Core/Errors/ContentfulRateLimitException.cs | Contentful.Core/Errors/ContentfulRateLimitException.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Contentful.Core.Errors
{
/// <summary>
/// Represents errors that occurr when a call hit the rate limit of the API.
/// </summary>
public class ContentfulRateLimitException : ContentfulException
{
/// <summary>
... | using System;
using System.Collections.Generic;
using System.Text;
namespace Contentful.Core.Errors
{
public class ContentfulRateLimitException : ContentfulException
{
public ContentfulRateLimitException(string message) : base(429, message)
{
}
public int SecondsUntilNextReque... | mit | C# |
5296bc73791120900f0e3a26c67391868b2f523a | Update version number to 2.11.0. | Faithlife/System.Data.SQLite,Faithlife/System.Data.SQLite | SolutionVersion.cs | SolutionVersion.cs | using System.Reflection;
[assembly: AssemblyVersion("2.11.0.0")]
[assembly: AssemblyFileVersion("2.11.0.0")]
[assembly: AssemblyInformationalVersion("2.11.0")]
| using System.Reflection;
[assembly: AssemblyVersion("2.10.7.0")]
[assembly: AssemblyFileVersion("2.10.7.0")]
[assembly: AssemblyInformationalVersion("2.10.7")]
| mit | C# |
fb6048071867107662a630f4bcb9956b34580b62 | change AssemblyVersion to 1.10.4.0 | gigya/microdot | SolutionVersion.cs | SolutionVersion.cs | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// 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
//
// THI... | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// 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
//
// THI... | apache-2.0 | C# |
795179e0f465a567467995b471b676ffca5d4557 | add some comment | kyoryo/test | Grabacr07.KanColleWrapper/Models/Raw/kcsapi_mapinfo.cs | Grabacr07.KanColleWrapper/Models/Raw/kcsapi_mapinfo.cs |
namespace Grabacr07.KanColleWrapper.Models.Raw
{
public class kcsapi_mapinfo
{
public int api_id { get; set; }
public int api_cleared { get; set; }
public int api_exboss_flag { get; set; }
public api_eventmap api_eventmap { get; set; }
}
public class api_eventmap
{
public int api_now_maphp { get; set; ... |
namespace Grabacr07.KanColleWrapper.Models.Raw
{
public class kcsapi_mapinfo
{
public int api_id { get; set; }
public int api_cleared { get; set; }
public int api_exboss_flag { get; set; }
public api_eventmap api_eventmap { get; set; }
}
public class api_eventmap
{
public int api_now_maphp { get; set; ... | mit | C# |
dc807bc67dc49ce7d1f4345d4d67eff0c16573d6 | Improve CanMakePhoneCall on iOS to check support of url and link to a carrier | cjlotz/Xamarin.Plugins,cjlotz/Xamarin.Plugins,BSVN/Xamarin.Plugins,BSVN/Xamarin.Plugins | Messaging/Plugin.Messaging.iOSUnified/PhoneCallTask.cs | Messaging/Plugin.Messaging.iOSUnified/PhoneCallTask.cs | using System;
#if __UNIFIED__
using Foundation;
using UIKit;
using CoreTelephony;
#else
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreTelephony;
#endif
namespace Plugin.Messaging
{
internal class PhoneCallTask : IPhoneCallTask
{
public PhoneCallTask()
{
}
... | using System;
#if __UNIFIED__
using Foundation;
using UIKit;
#else
using MonoTouch.Foundation;
using MonoTouch.UIKit;
#endif
namespace Plugin.Messaging
{
internal class PhoneCallTask : IPhoneCallTask
{
public PhoneCallTask()
{
}
#region IPhoneCallTask Members
public bo... | mit | C# |
ab7b308faa90a59ecf22e08824c6d16cd69c1f54 | Update NavigationItemText-google.Id.cshtml (#3746) | petedavis/Orchard2,stevetayloruk/Orchard2,petedavis/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,OrchardCMS/Brochard,OrchardCMS/Brochard,xkproject/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,petedavis/Orchard2,petedavis/Orchard2,xkproject/Orchard2,xkproject/Orc... | src/OrchardCore.Modules/OrchardCore.Google/Views/NavigationItemText-google.Id.cshtml | src/OrchardCore.Modules/OrchardCore.Google/Views/NavigationItemText-google.Id.cshtml | <span class="icon"><i class="fa fa-google" aria-hidden="true"></i></span><span class="title">@T["Google"]</span>
| <span class="icon"><i class="fab fa-google" aria-hidden="true"></i></span>@T["Google"] | bsd-3-clause | C# |
3b8ec09f6965a3a505349249c533c5402c022c3d | Update DictionaryShouldContainKeyAndValueMessageGenerator.cs | JoeMighty/shouldly | src/Shouldly/MessageGenerators/DictionaryShouldContainKeyAndValueMessageGenerator.cs | src/Shouldly/MessageGenerators/DictionaryShouldContainKeyAndValueMessageGenerator.cs | using System.Collections;
using System.Text.RegularExpressions;
namespace Shouldly.MessageGenerators
{
internal class DictionaryShouldContainKeyAndValueMessageGenerator : ShouldlyMessageGenerator
{
static readonly Regex Validator = new Regex("ShouldContainKeyAndValue");
public override bool Ca... | using System.Collections;
using System.Text.RegularExpressions;
namespace Shouldly.MessageGenerators
{
internal class DictionaryShouldContainKeyAndValueMessageGenerator : ShouldlyMessageGenerator
{
static readonly Regex Validator = new Regex("ShouldContainKeyAndValue");
public override bool Ca... | bsd-3-clause | C# |
fe73515df7c363ee00a1b147b9985445655cd2cf | set new version for new work | Willster419/RelhaxModpack,Willster419/RelhaxModpack,Willster419/RelicModManager | RelhaxModpack/RelhaxModpack/Properties/AssemblyInfo.cs | RelhaxModpack/RelhaxModpack/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated w... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated w... | apache-2.0 | C# |
4c7db4230255cf9de0a64ccd2c394b816419d612 | Update AssemblyInfo.cs | swelham/sharp-commands | SharpCommands/SharpCommands/Properties/AssemblyInfo.cs | SharpCommands/SharpCommands/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("Sh... | 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("Sh... | mit | C# |
03a2aacfc7dc4230e6bd0c0a64ac7b7e4569242d | Fix a few service paths in portal | duncansmart/kudu,juvchan/kudu,barnyp/kudu,shrimpy/kudu,shrimpy/kudu,shanselman/kudu,juoni/kudu,shibayan/kudu,chrisrpatterson/kudu,barnyp/kudu,bbauya/kudu,uQr/kudu,EricSten-MSFT/kudu,oliver-feng/kudu,oliver-feng/kudu,sitereactor/kudu,YOTOV-LIMITED/kudu,puneet-gupta/kudu,shibayan/kudu,dev-enthusiast/kudu,kali786516/kudu,... | Kudu.Web/Infrastructure/ApplicationExtensions.cs | Kudu.Web/Infrastructure/ApplicationExtensions.cs | using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Xml.Linq;
using Kudu.Client.Deployment;
using Kudu.Client.Infrastructure;
using Kudu.Client.SourceControl;
using Kudu.Core.SourceControl;
using Kudu.Web.Models;
namespace Kudu.Web.Infrastructure
{
public static class ApplicationEx... | using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Xml.Linq;
using Kudu.Client.Deployment;
using Kudu.Client.Infrastructure;
using Kudu.Client.SourceControl;
using Kudu.Core.SourceControl;
using Kudu.Web.Models;
namespace Kudu.Web.Infrastructure
{
public static class ApplicationEx... | apache-2.0 | C# |
9854a7c7d6603da8a8c8700498ac422184481909 | Save Android test SVGs | jomar/NGraphics,praeclarum/NGraphics | Platforms/NGraphics.Android.Test/MainActivity.cs | Platforms/NGraphics.Android.Test/MainActivity.cs | using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using NGraphics.Test;
using System.Linq;
using System.Threading.Tasks;
namespace NGraphics.Android.Test
{
[Activity (Label = "NGraphics.Android.Test", MainLauncher = true, Icon... | using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using NGraphics.Test;
using System.Linq;
using System.Threading.Tasks;
namespace NGraphics.Android.Test
{
[Activity (Label = "NGraphics.Android.Test", MainLauncher = true, Icon... | mit | C# |
192c93e8547d0bd102eee13bb5e0bb3fa7e88749 | Comment update | driis/CSharp6Talk | src/CS6Examples/UsingStatic.cs | src/CS6Examples/UsingStatic.cs | // This code provides examples of a small but convenient feature in C#6:
// Static usings
// Using static is simple syntactic sugar that lets you call a static method directly,
// without prefixing with the class name. An example:
using static System.Console;
using static System.DateTime;
// Static members in... | // This code provides examples of two small but convenient new features in C#6:
// Static usings, and
// nameof operator
// Using static is simple syntactic sugar that lets you call a static method directly,
// without prefixing with the class name. An example:
using static System.Console;
using static System... | mit | C# |
acc385575d710a27532f6a4a834161e5ca9c2e73 | remove the schedule | Appleseed/base,Appleseed/base | Applications/Appleseed.Base.Alerts.Console/Appleseed.Base.Alerts/Controller/Helpers.cs | Applications/Appleseed.Base.Alerts.Console/Appleseed.Base.Alerts/Controller/Helpers.cs | using Appleseed.Base.Alerts.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using Dapper;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Configuration;
namespace Appleseed.Base.Alerts.Controller
{
class Helpers
{
... | using Appleseed.Base.Alerts.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using Dapper;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Configuration;
namespace Appleseed.Base.Alerts.Controller
{
class Helpers
{
... | apache-2.0 | C# |
e7d964620ef39ccb9f8bdd5e712604f05db6e224 | Remove non-referenced exception class | ilkerhalil/dnlib,kiootic/dnlib,jorik041/dnlib,yck1509/dnlib,0xd4d/dnlib,picrap/dnlib,modulexcite/dnlib,Arthur2e5/dnlib,ZixiangBoy/dnlib | src/DotNet/RecursionCounter.cs | src/DotNet/RecursionCounter.cs | /*
Copyright (C) 2012-2014 de4dot@gmail.com
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, m... | /*
Copyright (C) 2012-2014 de4dot@gmail.com
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, m... | mit | C# |
2be58cdaed498aa800df8691763ae5b1c1ff158a | Fix corruption writing to large VHDX, reported by monitoranet [#5266] | breezechen/DiscUtils,drebrez/DiscUtils,quamotion/discutils,breezechen/DiscUtils | src/Vhdx/BatEntry.cs | src/Vhdx/BatEntry.cs | //
// Copyright (c) 2008-2012, Kenneth Bell
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, ... | //
// Copyright (c) 2008-2012, Kenneth Bell
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, ... | mit | C# |
dbb748a0052e249e9f3c9950c9473b6ceebab5d2 | Add comments | farity/farity | Farity/ToList.cs | Farity/ToList.cs | using System.Collections.Generic;
using System.Collections.Immutable;
namespace Farity
{
public static partial class F
{
/// <summary>
/// Converts the source into a read only list.
/// </summary>
/// <typeparam name="T">The type of element in the list.</typeparam>
/// ... | using System.Collections.Generic;
using System.Collections.Immutable;
namespace Farity
{
public static partial class F
{
public static IReadOnlyList<T> ToList<T>(IEnumerable<T> source) => source.ToImmutableList();
}
}
| mit | C# |
d790c814f60d9ababebaf34831c83e41ecfd52f9 | create tuple instead of a new string in each throttler call | ArsenShnurkov/BitSharp | BitSharp.Common/Throttler.cs | BitSharp.Common/Throttler.cs | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace BitSharp.Common
{
public static class Throttler
{
private static readonly ConcurrentDict... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace BitSharp.Common
{
public static class Throttler
{
private static readonly ConcurrentDict... | unlicense | C# |
2a14ba93d8b97510a1a32bb231d33bce3d4d8652 | Remove useless code in blockcontrol test | phillyai/Linking-VPL | Linking/Form1.cs | Linking/Form1.cs | using System;
using System.Drawing;
using System.Windows.Forms;
using Linking.Controls;
using Linking.Core;
using Linking.Core.Blocks;
namespace Linking
{
public partial class Form1 : Form
{
public Form1()
{
//이것도 커밋해 보시지!!
InitializeComponent();
Board board... | using System;
using System.Drawing;
using System.Windows.Forms;
using Linking.Controls;
using Linking.Core;
using Linking.Core.Blocks;
namespace Linking
{
public partial class Form1 : Form
{
public Form1()
{
//이것도 커밋해 보시지!!
InitializeComponent();
Board board... | mit | C# |
2ec3fd5ed964059b996a4229de199735c407824e | move expression extension to different namespace | piotrpMSFT/FakeHttpService | FakeHttpService/ExpressionExtensions.cs | FakeHttpService/ExpressionExtensions.cs | using System;
using System.Linq.Expressions;
namespace FakeHttpService.FilterBuilders
{
internal static class ExpressionExtensions
{
public static Expression<Func<TFirstParam, TResult>>
Compose<TFirstParam, TIntermediate, TResult>(
this Expression<Func<TFirstParam, TInterme... | using System;
using System.Linq.Expressions;
namespace FakeHttpService
{
internal static class ExpressionExtensions
{
public static Expression<Func<TFirstParam, TResult>>
Compose<TFirstParam, TIntermediate, TResult>(
this Expression<Func<TFirstParam, TIntermediate>> first,
... | mit | C# |
d71e2267c2adc5bb59af3ac7c14b2325fe9d92fa | Add namespace and fix DisplayAttribute.Order evaluation to avoid exception when Order is not set. | Sohra/mvc.jquery.datatables,mcintyre321/mvc.jquery.datatables,seguemark/mvc.jquery.datatables,offspringer/mvc.jquery.datatables,Sohra/mvc.jquery.datatables,offspringer/mvc.jquery.datatables,mcintyre321/mvc.jquery.datatables,mcintyre321/mvc.jquery.datatables,seguemark/mvc.jquery.datatables | Mvc.JQuery.Datatables/TypeExtensions.cs | Mvc.JQuery.Datatables/TypeExtensions.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
namespace Mvc.JQuery.Datatables
{
public static class TypeExtensions
{
public static IEnumerable<PropertyInfo> GetSortedProperties(this Type t)
{
... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
public static class TypeExtensions
{
public static IEnumerable<PropertyInfo> GetSortedProperties(this Type t)
{
return from pi in t.GetProperties()
le... | mit | C# |
288a6b9b8d301bded0a14f4238a9bd82f47f044f | Add parameter specifying color to pad with. | Prof9/PixelPet | PixelPet/CLI/Commands/PadPalettesCmd.cs | PixelPet/CLI/Commands/PadPalettesCmd.cs | using LibPixelPet;
using System;
namespace PixelPet.CLI.Commands {
internal class PadPalettesCmd : CliCommand {
public PadPalettesCmd()
: base("Pad-Palettes",
new Parameter(true, new ParameterValue("width", "0")),
new Parameter("color", "c", false, new ParameterValue("value", "0"))
) { }
public ov... | using LibPixelPet;
using System;
namespace PixelPet.CLI.Commands {
internal class PadPalettesCmd : CliCommand {
public PadPalettesCmd()
: base("Pad-Palettes",
new Parameter(true, new ParameterValue("width", "0"))
) { }
public override void Run(Workbench workbench, ILogger logger) {
int width = Find... | mit | C# |
29f96279d04476b318f8c914aff4681c60367e10 | Update GameManager.cs | afroraydude/First_Unity_Game,afroraydude/First_Unity_Game,afroraydude/First_Unity_Game | Real_Game/Assets/Scripts/GameManager.cs | Real_Game/Assets/Scripts/GameManager.cs | using UnityEngine;
using System.Collections;
public class GameManager : MonoBehaviour {
// Score based stuff
public float highScore = 0f;
//Level based stuff
public int currentLevel = 0;
public int unlockedLevels;
public int LevelGradingID = 6;
// Things that deal with GUI or whatever
public Rect stopwatc... | using UnityEngine;
using System.Collections;
public class GameManager : MonoBehaviour {
// Score based stuff
public float highScore = 0f;
//Level based stuff
public int currentLevel = 0;
public int unlockedLevels;
public int LevelGradingID = 6;
// Things that deal with GUI or whatever
public Rect stopwatc... | mit | C# |
ac9a452b6d75845e2d1df10b34c85f0a741e8398 | Update Unity_Analytics_Singleton.cs | kinifi/framework-unity | Singletons/Unity_Analytics_Singleton.cs | Singletons/Unity_Analytics_Singleton.cs | //
// Unity_Analytics_Singleton.cs provides easy static methods for use during game for analytics
//
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.Analytics;
public class GameManager
{
//Class L... | //
// Unity_Analytics_Singleton.cs provides easy static methods for use during game for analytics
//
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.Analytics;
public class GameManager
{
//Class L... | mit | C# |
27213605eb5f95ac9a9e90cfa65799f10794dcf7 | Use getOrDefault method instead of direct access | rubberduck203/GitNStats,rubberduck203/GitNStats | src/gitnstats.core/Analysis.cs | src/gitnstats.core/Analysis.cs | using System;
using System.Collections.Generic;
using System.Linq;
using LibGit2Sharp;
namespace GitNStats.Core
{
public delegate bool DiffFilterPredicate((Commit Commit, TreeEntryChanges TreeEntryChanges) diff);
public static class Analysis
{
public static IEnumerable<PathCount> CountFileCha... | using System;
using System.Collections.Generic;
using System.Linq;
using LibGit2Sharp;
namespace GitNStats.Core
{
public delegate bool DiffFilterPredicate((Commit Commit, TreeEntryChanges TreeEntryChanges) diff);
public static class Analysis
{
public static IEnumerable<PathCount> CountFileCha... | mit | C# |
c2df5bbe24c9ae3779398b16e2981368b894db28 | Add baloon tip icon | CUMTD/RebootTray | App/CustomApplicationContext.cs | App/CustomApplicationContext.cs | using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace RebootTray.App
{
internal class CustomApplicationContext : ApplicationContext
{
private NotifyIcon NotifyIcon { get; set; }
public CustomApplicationContext()
{
var compon... | using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace RebootTray.App
{
internal class CustomApplicationContext : ApplicationContext
{
private NotifyIcon NotifyIcon { get; set; }
public CustomApplicationContext()
{
var compon... | apache-2.0 | C# |
f5f77a3fb170e841ebfe6065bb23c47f7dc40691 | update s | autumn009/TanoCSharpSamples | Chap30/C30Q10/C30Q10/Program.cs | Chap30/C30Q10/C30Q10/Program.cs | using System;
using System.Collections.Generic;
class Program
{
static void Main(string[] args)
{
Dictionary<string, string> newStyle = new Dictionary<string, string>
{
["X"] = "A",
[@"X"] = "B",
["\u0058"] = "C",
};
foreach (var item in newS... | using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main(string[] args)
{
List<int> list = new int[] { 1, 2, 3 }.ToList();
foreach (var item in list) Console.WriteLine(item);
}
}
| mit | C# |
2d69eb159ea60e374a2f8ca7f8e389f90ee8108b | Fix AppVeyor | lecaillon/Evolve | test/Evolve.Core.Test.Driver/DatabaseFixture.cs | test/Evolve.Core.Test.Driver/DatabaseFixture.cs | using System;
using System.Runtime.InteropServices;
using System.Threading;
using Evolve.Test.Utilities;
using Xunit;
namespace Evolve.Core.Test
{
public class DatabaseFixture : IDisposable
{
public DatabaseFixture()
{
MsSql = new MsSqlDockerContainer();
MySql = new MyS... | using System;
using System.Threading;
using Evolve.Test.Utilities;
using Xunit;
namespace Evolve.Core.Test
{
public class DatabaseFixture : IDisposable
{
public DatabaseFixture()
{
MsSql = new MsSqlDockerContainer();
MsSql.Start();
MySql = new MySqlDockerCo... | mit | C# |
12637321950c4eec9ced71f271d4d927f42e43e8 | Build MSI only on Windows. | michaltakac/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,yatsek/IronAHK,polyethene/IronAHK,polyethene/IronAHK,yatsek/IronAHK,polyethene/IronAHK,polyethene/IronAHK,michaltakac/IronAHK,michaltakac/IronAHK,yatsek/IronAHK | Deploy/Program.cs | Deploy/Program.cs | using System;
using System.Diagnostics;
[assembly: CLSCompliant(true)]
namespace IronAHK.Setup
{
static partial class Program
{
static void Main(string[] args)
{
TransformDocs();
PackageZip();
AppBundle();
if (Environment.OSVersion.Platform == ... | using System;
using System.Diagnostics;
[assembly: CLSCompliant(true)]
namespace IronAHK.Setup
{
static partial class Program
{
static void Main(string[] args)
{
TransformDocs();
PackageZip();
AppBundle();
BuildMsi();
}
[Condit... | bsd-2-clause | C# |
5aa44e6cbe2d6883c2a398b2f41eed4df960cb9d | Work around possible double enumeration warning. | ExRam/ExRam.Gremlinq | src/ExRam.Gremlinq.Core/Steps/LogicalStep.cs | src/ExRam.Gremlinq.Core/Steps/LogicalStep.cs | using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
namespace ExRam.Gremlinq.Core.Steps
{
public abstract class LogicalStep<TStep> : Step
where TStep : LogicalStep<TStep>
{
protected LogicalStep(string name, IEnumerable<Traversal> traversals) : this(
... | using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
namespace ExRam.Gremlinq.Core.Steps
{
public abstract class LogicalStep<TStep> : Step
where TStep : LogicalStep<TStep>
{
protected LogicalStep(string name, IEnumerable<Traversal> traversals) : base(travers... | mit | C# |
c6784c3b77795de9c9caca7e73d4b5f66dc2aace | Use LambdaBootstrapBuilder | martincostello/alexa-london-travel | src/LondonTravel.Skill/FunctionEntrypoint.cs | src/LondonTravel.Skill/FunctionEntrypoint.cs | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using Alexa.NET.Request;
using Alexa.NET.Response;
using Amazon.Lambda.RuntimeSupport;
using Amazon.Lambda.Serialization.Json;
namespace MartinC... | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
using Alexa.NET.Request;
using Alexa.NET.Response;
using Amazon.Lambda.RuntimeSupport;
using Amazon.Lambda.Serialization.Json;
namespace MartinC... | apache-2.0 | C# |
b4a426ff6ce613e6ab130800686858d5be1c7126 | Add Copyright to source | junf/wavplayer | wavplayer/Program.cs | wavplayer/Program.cs | /*
Copyright 2013 Jun Funada
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading.Tasks;
namespace wavplayer
{
class Program
{
static void Main(string[] args)
{
int n = args.Length;
if (n < 1)
{
... | apache-2.0 | C# |
e5e201ba043c13c7ef6e019c35f34afb515f5ae4 | Add comments | farity/farity | Farity/FuncAny.cs | Farity/FuncAny.cs | namespace Farity
{
/// <summary>
/// A delegate that represents a function that takes any number of arguments but always returns a specified type.
/// </summary>
/// <typeparam name="T">The type of value that the function returns.</typeparam>
/// <param name="args">Any arguments passed into the fun... | namespace Farity
{
public delegate T FuncAny<out T>(params object[] args);
} | mit | C# |
b4f9c20254b052f20fa6e8e607711e8a01d7eee8 | mark some code as debug-only | maul-esel/CobaltAHK,maul-esel/CobaltAHK | CobaltAHK/CobaltAHK.cs | CobaltAHK/CobaltAHK.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq.Expressions;
namespace CobaltAHK
{
public class CobaltAHK
{
public void Execute(string code)
{
Execute(new StringReader(code));
}
public void Execute(TextReader code)
{
var expressions = parser.Parse(code);
#if DEBUG
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq.Expressions;
namespace CobaltAHK
{
public class CobaltAHK
{
public void Execute(string code)
{
Execute(new StringReader(code));
}
public void Execute(TextReader code)
{
var expressions = parser.Parse(code);
Console... | mit | C# |
c15e27ef15ed73571545bb6968049a54a6b27009 | Update project properties | ernado-x/X.Web.Sitemap | src/X.Web.Sitemap/Properties/AssemblyInfo.cs | src/X.Web.Sitemap/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("X.... | 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("X.... | mit | C# |
f797dd531a40f5de0b32d2663f75569d2c9952c3 | call base function in overrided function Awake | enormand/cyber-space-shooter | Assets/Scripts/Objects/Ship.cs | Assets/Scripts/Objects/Ship.cs | using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using System.Collections;
public abstract class Ship : SpaceObject {
public WeaponManager weapon;
public EngineManager engine;
private UnityEvent engineEvents;
protected override void Awake () {
base.Awake ();
engine.OnSpeedUpdated += OnSpe... | using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using System.Collections;
public abstract class Ship : SpaceObject {
public WeaponManager weapon;
public EngineManager engine;
private UnityEvent engineEvents;
protected override void Awake () {
engine.OnSpeedUpdated += OnSpeedUpdated;
}
p... | mit | C# |
458435d9ec3fa412fc5606b6f62e7d4e9eb8fd51 | Update Every1026.cs | fodrh1201/EveryProb | Every1026/Every1026.cs | Every1026/Every1026.cs | using System;
using System.Linq;
class Every1026
{
static void InsertionSort(int[] list)
{
int len = list.Length;
int temp = 0;
for (int i = 1; i < len; i++)
{
for (int j = 0; j < i; j++)
{
if (list[i] < list[j])
{
temp = list[i];
for (int k = i; k > j; k--)
{
list[k] = lis... | using System;
using System.Linq;
class Every1026
{
static void InsertionSort(int[] list)
{
int len = list.Length;
int temp = 0;
for (int i = 1; i < len; i++)
{
for (int j = 0; j < i; j++)
{
if (list[i] < list[j])
{
temp = list[i];
for (int k = i; k > j; k--)
{
list[k] = lis... | mit | C# |
eebb5908a3b6455910aa41122de5e47aeb4939ee | Make Datum GUIDs unique to each user. | haunthy/sensus,predictive-technology-laboratory/sensus,wesbonelli/sensus,jtb8vm/sensus,predictive-technology-laboratory/sensus,wesbonelli/sensus,haunthy/sensus,wesbonelli/sensus,predictive-technology-laboratory/sensus,jtb8vm/sensus,wesbonelli/sensus,predictive-technology-laboratory/sensus,jtb8vm/sensus,haunthy/sensus,p... | Sensus/Datum.cs | Sensus/Datum.cs | using Newtonsoft.Json.Linq;
using System;
namespace Sensus
{
/// <summary>
/// A single unit of sensed information returned by a probe.
/// </summary>
public abstract class Datum
{
private string _id;
private int _userId;
private int _probeId;
private DateTimeOffset... | using Newtonsoft.Json.Linq;
using System;
namespace Sensus
{
/// <summary>
/// A single unit of sensed information returned by a probe.
/// </summary>
public abstract class Datum
{
private string _id;
private int _userId;
private int _probeId;
private DateTimeOffset... | apache-2.0 | C# |
1e02833f51e7335544d0ad410543a5d48f15771c | add to interface | jefking/King.Mapper | King.Mapper/Data/Interfaces.cs | King.Mapper/Data/Interfaces.cs | namespace King.Mapper.Data
{
using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
#region ILoader
/// <summary>
/// Loader interface to enable mocking frameworks for unit testing
/// </summary>
/// <typeparam name="T">Type</typeparam>
public interface ... | namespace King.Mapper.Data
{
using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
#region ILoader
/// <summary>
/// Loader interface to enable mocking frameworks for unit testing
/// </summary>
/// <typeparam name="T">Type</typeparam>
public interface ... | mit | C# |
726e417a1790eecb34a20a787c455836d586a8f7 | Add Size property to FileEntry class | alekratz/apphack2-project | transf/FileSystem/FileEntry.cs | transf/FileSystem/FileEntry.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Murmur;
namespace transf.FileSystem
{
class FileEntry
: IFileSystemEntry
{
/// <summary>
/// Gets the name of the file itself.
/// </summary>
public string BaseName { get; private ... | using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Murmur;
namespace transf.FileSystem
{
class FileEntry
: IFileSystemEntry
{
/// <summary>
/// Gets the name of the file itself.
/// </summary>
public string BaseName { get; private ... | agpl-3.0 | C# |
abb0dcb9f20bc25ae252100d50882efc7e8ded85 | Enable OracleCommand.BindByName | ctigeek/InvokeQueryPowershellModule | InvokeOracleQuery.cs | InvokeOracleQuery.cs | using System;
using System.Data.Common;
using System.Management.Automation;
using System.Security;
using System.Security.Permissions;
using Oracle.ManagedDataAccess.Client;
namespace InvokeQuery
{
[Cmdlet("Invoke", "OracleQuery", SupportsTransactions = true, SupportsShouldProcess = true, ConfirmImpact = ... | using System;
using System.Data.Common;
using System.Management.Automation;
using Oracle.ManagedDataAccess.Client;
namespace InvokeQuery
{
[Cmdlet("Invoke", "OracleQuery", SupportsTransactions = true, SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Low)]
public class InvokeOracleQuery : I... | mit | C# |
47a85a01b2a1b665488dd22444b7251737a27a03 | Test Note | shortgiraffe4/MomWorld,shortgiraffe4/MomWorld,shortgiraffe4/MomWorld | MomWorld/Models/IdentityModels.cs | MomWorld/Models/IdentityModels.cs | using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
namespace MomWorld.Models
{
// You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft... | using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
namespace MomWorld.Models
{
// You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft... | mit | C# |
38ec24f98bcc254622ddcd32e2ff59a6ebb33232 | Hide Blob.Size setter | shana/libgit2sharp,jeffhostetler/public_libgit2sharp,Zoxive/libgit2sharp,jorgeamado/libgit2sharp,jamill/libgit2sharp,ethomson/libgit2sharp,jamill/libgit2sharp,Zoxive/libgit2sharp,AArnott/libgit2sharp,yishaigalatzer/LibGit2SharpCheckOutTests,rcorre/libgit2sharp,xoofx/libgit2sharp,OidaTiftla/libgit2sharp,red-gate/libgit2... | LibGit2Sharp/Blob.cs | LibGit2Sharp/Blob.cs | using System.IO;
using LibGit2Sharp.Core;
using LibGit2Sharp.Core.Handles;
namespace LibGit2Sharp
{
/// <summary>
/// Stores the binary content of a tracked file.
/// </summary>
public class Blob : GitObject
{
private readonly Repository repo;
/// <summary>
/// Needed ... | using System.IO;
using LibGit2Sharp.Core;
using LibGit2Sharp.Core.Handles;
namespace LibGit2Sharp
{
/// <summary>
/// Stores the binary content of a tracked file.
/// </summary>
public class Blob : GitObject
{
private readonly Repository repo;
/// <summary>
/// Needed ... | mit | C# |
23c7fd9409424939a24f3bfeda93d127d872d198 | Build script now creates individual zip file packages to align with the NuGet packages and semantic versioning. | autofac/Autofac.Extras.CommonServiceLocator | Properties/VersionAssemblyInfo.cs | Properties/VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | mit | C# |
6d193df6ffb594d5cf9614caf88d2ebcf3b61a15 | Update Program.cs | dv-lebedev/PairTradingView,dv-lebedev/pair-trading-view | Source/PairTradingView/Program.cs | Source/PairTradingView/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using PairTradingView.Forms;
namespace PairTradingView
{
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using PairTradingView.Forms;
namespace PairTradingView
{
static class Program
{
/// <summary>
/// Главная точка входа для приложения.
/// </summary>
[STA... | apache-2.0 | C# |
3c0912b5ea179c1472fac1eb7ed6f76404fdc5c2 | Fix toolbar icon location | DMagic1/KSP_Contract_Window,Kerbas-ad-astra/KSP_Contract_Window | Source/Toolbar/contractToolbar.cs | Source/Toolbar/contractToolbar.cs | #region license
/*The MIT License (MIT)
Contract Toolbar- Addon for toolbar interface
Copyright (c) 2014 DMagic
KSP Plugin Framework by TriggerAu, 2014: http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwar... | #region license
/*The MIT License (MIT)
Contract Toolbar- Addon for toolbar interface
Copyright (c) 2014 DMagic
KSP Plugin Framework by TriggerAu, 2014: http://forum.kerbalspaceprogram.com/threads/66503-KSP-Plugin-Framework
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwar... | mit | C# |
4d65d3e6da3e728d2054eb5bef061e0071fd1189 | Fix not right format.. | Banane9/XmlRpc | XmlRpc/Properties/AssemblyInfo.cs | XmlRpc/Properties/AssemblyInfo.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die mit einer Assembly v... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die mit einer Assembly v... | lgpl-2.1 | C# |
2c8b64522432013517bb7fc0c3896abe357ef3f8 | Initialize _soundData only once | TimBo93/Toxy,Umriyaev/Toxy,Reverp/Toxy,Reverp/Toxy | Toxy/Common/Winmm.cs | Toxy/Common/Winmm.cs | using System;
using System.Runtime.InteropServices;
using System.Resources;
using System.IO;
namespace Win32
{
public static class Winmm
{
public static void PlayMessageNotify()
{
if (_soundData == null)
{
using (UnmanagedMemoryStream sound ... | using System;
using System.Runtime.InteropServices;
using System.Resources;
using System.IO;
namespace Win32
{
public static class Winmm
{
public static void PlayMessageNotify()
{
using (UnmanagedMemoryStream sound = Toxy.Properties.Resources.Blop)
{
... | mit | C# |
8bdd56816ebfc49786d3e50318a91c01055b05ae | Add a test. | kyourek/Pagination,kyourek/Pagination,kyourek/Pagination | sln/Pagination.Test/PageContextTest.cs | sln/Pagination.Test/PageContextTest.cs | using System.Linq;
using NUnit.Framework;
namespace Pagination.Tests {
[TestFixture, TestOf(typeof(PageContext))]
public class PageContextTest {
PageContext _Subject;
PageContext Subject => _Subject ?? (_Subject = new PageContext());
[TearDown]
public void TearDown() {
... | using System.Linq;
using NUnit.Framework;
namespace Pagination.Tests {
[TestFixture, TestOf(typeof(PageContext))]
public class PageContextTest {
PageContext _Subject;
PageContext Subject => _Subject ?? (_Subject = new PageContext());
[TearDown]
public void TearDown() {
... | mit | C# |
d4f801eb6da04171108845cd809c9d3a74f2a9ea | Fix for Tooltips for Unity 4.2 | TJHeuvel/google-analytics-plugin-for-unity,timmy2702/google-analytics-plugin-for-unity,googleanalytics/google-analytics-plugin-for-unity,shazow/google-analytics-plugin-for-unity,timmy2702/google-analytics-plugin-for-unity,googleanalytics/google-analytics-plugin-for-unity,googleanalytics/google-analytics-plugin-for-unit... | source/Plugins/Editor/TooltipDrawer.cs | source/Plugins/Editor/TooltipDrawer.cs | /*
Copyright 2014 Google Inc. All rights reserved.
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 a... | /*
Copyright 2014 Google Inc. All rights reserved.
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 a... | apache-2.0 | C# |
eea2d1b89e4a04a10e6d3d9e95f325aac5c6e0e9 | Improve ContextMenuStripEx.SetFixedSingle method. | Si13n7/SilDev.CSharpLib | src/SilDev/Forms/ContextMenuStripEx.cs | src/SilDev/Forms/ContextMenuStripEx.cs | #region auto-generated FILE INFORMATION
// ==============================================
// This file is distributed under the MIT License
// ==============================================
//
// Filename: ContextMenuStripEx.cs
// Version: 2016-10-27 13:53
//
// Copyright (c) 2016, Si13n7 Developments (r)
// All r... | #region auto-generated FILE INFORMATION
// ==============================================
// This file is distributed under the MIT License
// ==============================================
//
// Filename: ContextMenuStripEx.cs
// Version: 2016-10-24 15:58
//
// Copyright (c) 2016, Si13n7 Developments (r)
// All r... | mit | C# |
b14ad9c54d66e38ba412e839c56dd87f052e4280 | fix compile error | rit-sse-mycroft/core | Mycroft/Cmd/Cmd.cs | Mycroft/Cmd/Cmd.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mycroft.Cmd
{
abstract class Cmd
{
/// <summary>
/// Parses a Mycroft command from a JSON object
/// </summary>
/// <returns>
/// Returns the Co... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mycroft.Cmd
{
abstract class Cmd
{
/// <summary>
/// Parses a Mycroft command from a JSON object
/// </summary>
/// <returns>
/// Returns the Co... | bsd-3-clause | C# |
adfdfb64769c637e722ee80fc0cb2910de19fc4f | test buildbot | devizer/h3control,devizer/h3control,devizer/h3control,devizer/h3control | H3Control.Tests/A0_Test_GZip.cs | H3Control.Tests/A0_Test_GZip.cs | namespace H3Control.Tests
{
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using NUnit.Framework;
using Universe;
[TestFixture]
public class A0_Test_GZip : BaseTest
{
[TestFixtureSetUp]
public override void TestFixtureSetUp()
... | namespace H3Control.Tests
{
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using NUnit.Framework;
using Universe;
[TestFixture]
public class A0_Test_GZip : BaseTest
{
[TestFixtureSetUp]
public override void TestFixtureSetUp()
... | mit | C# |
c1336c49dc764f4168ebf0b64e770e524be1347d | test commented out | y-todorov/Inventory,y-todorov/Inventory | Inventory.Tests/CodeFirstTest.cs | Inventory.Tests/CodeFirstTest.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Inventory.DAL;
using Xunit;
namespace Inventory.Tests
{
public class CodeFirstTest
{
[Fact]
public void Test()
{
Assert.True(... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Inventory.DAL;
using Xunit;
namespace Inventory.Tests
{
public class CodeFirstTest
{
[Fact]
public void Test()
{
Assert.True(... | apache-2.0 | C# |
2fd4e32fd7391a9348d9d3b4a1270fc34212dd78 | Update MainActivity.cs | iperezmx87/Xamarin30Labs | Lab04/AndroidApp/MainActivity.cs | Lab04/AndroidApp/MainActivity.cs | using Android.App;
using Android.Widget;
using Android.OS;
namespace AndroidApp
{
[Activity(Label = "Lab04", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
... | using Android.App;
using Android.Widget;
using Android.OS;
namespace AndroidApp
{
[Activity(Label = "Lab04", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
... | mit | C# |
4e88456fd6d9af5ed6d0047b3ce92967ed62ea5b | Add Code Contracts in ButonExt | ronnelreposo/cardiotocography | cardio/cardio/Ext/ButtonExt.cs | cardio/cardio/Ext/ButtonExt.cs | using System;
using System.Windows.Controls;
using static System.Reactive.Linq.Observable;
using static System.Diagnostics.Contracts.Contract;
namespace cardio.Ext
{
/// <summary>
/// Represents Button Extension
/// </summary>
static class ButtonExt
{
/// <summary>
/// Disables the... | using System;
using System.Windows.Controls;
using static System.Reactive.Linq.Observable;
namespace cardio.Ext
{
/// <summary>
/// Represents Button Extension
/// </summary>
static class ButtonExt
{
/// <summary>
/// Disables the button
/// </summary>
/// <param na... | mit | C# |
4668fe4e2e6c0d79f8aab34c36af46fac59f86b8 | Fix for base command being shown as command on command line. | TicketSolutionsPtyLtd/TeamCityBuildChanges,BenPhegan/TeamCityBuildChanges | TeamCityBuildChanges/Program.cs | TeamCityBuildChanges/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using ManyConsole;
namespace TeamCityBuildChanges
{
class Program
{
static int Main(string[] args)
{
var commands = GetCommands();
return ConsoleCommandDispatcher.DispatchCommand(commands, args, Console.... | using System;
using System.Collections.Generic;
using ManyConsole;
namespace TeamCityBuildChanges
{
class Program
{
static int Main(string[] args)
{
var commands = GetCommands();
return ConsoleCommandDispatcher.DispatchCommand(commands, args, Console.Out);
}
... | mit | C# |
5f88685f899da6fabdfcc9cfd29227fb3812d6c8 | Fix selection events in ListBox | mminns/xwt,hamekoz/xwt,antmicro/xwt,sevoku/xwt,mono/xwt,TheBrainTech/xwt,lytico/xwt,cra0zy/xwt,residuum/xwt,iainx/xwt,hwthomas/xwt,akrisiun/xwt,steffenWi/xwt,mminns/xwt,directhex/xwt | Xwt.Mac/Xwt.Mac/ListBoxBackend.cs | Xwt.Mac/Xwt.Mac/ListBoxBackend.cs | //
// ListBoxBackend.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restrictio... | //
// ListBoxBackend.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restrictio... | mit | C# |
0d612efb38c83ecd71b89c83b10003947966e768 | Correct full screen test class name. | eylvisaker/AgateLib | Tests/DisplayTests/FullScreen.cs | Tests/DisplayTests/FullScreen.cs | using System;
using System.Collections.Generic;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.InputLib;
namespace Tests.DisplayTests
{
class FullscreenTest : IAgateTest
{
public string Name
{
get { return "Full Screen"; }
}
public string Category
{... | using System;
using System.Collections.Generic;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.InputLib;
namespace Tests.DisplayTests
{
class HelloWorldProgram : IAgateTest
{
public string Name
{
get { return "Full Screen"; }
}
public string Category
... | mit | C# |
15fa1ecb3ba0c61ff9cc4a6271709b597961dbb7 | Fix Slider control orientation | iainx/xwt,hamekoz/xwt,lytico/xwt,hwthomas/xwt,mono/xwt,antmicro/xwt,cra0zy/xwt,directhex/xwt,mminns/xwt,mminns/xwt,sevoku/xwt,residuum/xwt,TheBrainTech/xwt,akrisiun/xwt,steffenWi/xwt | Xwt.Mac/Xwt.Mac/SliderBackend.cs | Xwt.Mac/Xwt.Mac/SliderBackend.cs | //
// SliderBackend.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction... | //
// SliderBackend.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction... | mit | C# |
23bad1be56b37247dec5cda367627186152d0d39 | Add possibility to customize plugin search pattern | tparviainen/oscilloscope | PluginLoader/Plugins.cs | PluginLoader/Plugins.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
namespace PluginLoader
{
public static class Plugins<T> where T : class
{
/// <summary>
/// Loads interface plugins from the specified location.
/// </summary>
/// <param name="path">Load ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
namespace PluginLoader
{
public static class Plugins<T> where T : class
{
/// <summary>
/// Loads interface plugins from the specified location.
/// </summary>
/// <param name="path">Load ... | mit | C# |
76f938e612a7f14e808bd4b16ab0d034a02e6f84 | Tweak demo starting point ever so slightly | bsstahl/DPDemo | ShortestPath/Program.cs | ShortestPath/Program.cs | using ShortestPath.Optimization.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShortestPath
{
class Program
{
const int _gridSize = 6;
static void Main(string[] args)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShortestPath
{
class Program
{
const int _gridSize = 6;
static void Main(string[] args)
{
Optimization.Entities.Grid grid = Construct... | mit | C# |
8297eb667bf35da4f3edc6f283d4b3f18558d0a8 | Remove duplicated port setting. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Backend/Program.cs | WalletWasabi.Backend/Program.cs | using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using System;
using System.Threading.Tasks;
using WalletWasabi.Logging;
namespace WalletWasabi.Backend
{
public static class Program
{
#pragma warning disable IDE1006 // Naming Styles
public static async Task Main(string[] args)
#pragma warni... | using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using System;
using System.Threading.Tasks;
using WalletWasabi.Logging;
namespace WalletWasabi.Backend
{
public static class Program
{
#pragma warning disable IDE1006 // Naming Styles
public static async Task Main(string[] args)
#pragma warni... | mit | C# |
5e785212abcf0ab12a277fe598f27ef56f597ba0 | Include symbols, etc in the memory dump | alex-davidson/clrspy | ClrSpy/Jobs/DumpMemoryJob.cs | ClrSpy/Jobs/DumpMemoryJob.cs | using System.IO;
using ClrSpy.CliSupport;
using ClrSpy.Debugger;
using Microsoft.Diagnostics.Runtime.Interop;
namespace ClrSpy.Jobs
{
public class DumpMemoryJob : IDebugJob
{
private readonly DebugRunningProcess target;
public int Pid => target.Process.Pid;
public string D... | using System.IO;
using ClrSpy.CliSupport;
using ClrSpy.Debugger;
using Microsoft.Diagnostics.Runtime.Interop;
namespace ClrSpy.Jobs
{
public class DumpMemoryJob : IDebugJob
{
private readonly DebugRunningProcess target;
public int Pid => target.Process.Pid;
public string D... | unlicense | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.