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 |
|---|---|---|---|---|---|---|---|---|
468bd0ab7f05c7c84f2677a526e3b5b8639a6a85 | Add helper method to return KeyModifier | bright-tools/DeRange | DeRange/Config/KeyboardShortcut.cs | DeRange/Config/KeyboardShortcut.cs | using System;
using System.Windows.Forms;
using System.Xml.Serialization;
namespace DeRange.Config
{
[Serializable]
[XmlRoot(ElementName = "KeyboardShortcut")]
public class KeyboardShortcut
{
public bool ShiftModifier { get; set; }
public bool CtrlModifier { get; set; }
... | using System;
using System.Windows.Forms;
using System.Xml.Serialization;
namespace DeRange.Config
{
[Serializable]
[XmlRoot(ElementName = "KeyboardShortcut")]
public class KeyboardShortcut
{
public bool ShiftModifier { get; set; }
public bool CtrlModifier { get; set; }
... | apache-2.0 | C# |
9d4260187896c063bbe21af135b6248b8da555f9 | Change type signature of NotNullOrEmpty to string since it's only used for strings. | devtyr/gullap | DevTyr.Gullap/Guard.cs | DevTyr.Gullap/Guard.cs | using System;
namespace DevTyr.Gullap
{
public static class Guard
{
public static void NotNull (object obj, string argumentName)
{
if (obj == null)
throw new ArgumentNullException(argumentName);
}
public static void NotNullOrEmpty (string obj, string argumentName)
{
NotNull (obj, a... | using System;
namespace DevTyr.Gullap
{
public static class Guard
{
public static void NotNull (object obj, string argumentName)
{
if (obj == null)
throw new ArgumentNullException(argumentName);
}
public static void NotNullOrEmpty (object obj, string argumentName)
{
NotNull (obj, a... | mit | C# |
ad964d8a665c1099e25b068d30cd3464cda33d0a | change db init | Borayvor/ASP.NET-MVC-CourseProject,Borayvor/ASP.NET-MVC-CourseProject,Borayvor/ASP.NET-MVC-CourseProject | EntertainmentSystem/Web/EntertainmentSystem.Web/App_Start/DatabaseConfig.cs | EntertainmentSystem/Web/EntertainmentSystem.Web/App_Start/DatabaseConfig.cs | namespace EntertainmentSystem.Web.App_Start
{
using System.Data.Entity;
using Data;
public class DatabaseConfig
{
public static void RegisterDatabase()
{
////Database.SetInitializer(new MigrateDatabaseToLatestVersion<EntertainmentSystemDbContext, Configuration>());
... | namespace EntertainmentSystem.Web.App_Start
{
using System.Data.Entity;
using Data;
using Data.Migrations;
public class DatabaseConfig
{
public static void RegisterDatabase()
{
Database.SetInitializer(new MigrateDatabaseToLatestVersion<EntertainmentSystemDbContext, Conf... | mit | C# |
754cb6469f33b5ab86f21c2b79e480a260c42e92 | Use warning instead of warn | BlueMountainCapital/riemann-health-windows | Program.cs | Program.cs | using System;
using System.Linq;
using System.Threading;
using riemann;
namespace RiemannHealth {
public class Program {
public static void Main(string[] args) {
string hostname;
ushort port;
switch (args.Length) {
case 0:
hostname = "localhost";
port = 5555;
break;
case 1:
hos... | using System;
using System.Linq;
using System.Threading;
using riemann;
namespace RiemannHealth {
public class Program {
public static void Main(string[] args) {
string hostname;
ushort port;
switch (args.Length) {
case 0:
hostname = "localhost";
port = 5555;
break;
case 1:
hos... | apache-2.0 | C# |
c4af8c01a07a524ab81bd7e5470bafc2b46d1afc | Change start() to awake() | pollend/ParkitectCheats,nozols/ParkitectCheats | CheatModController.cs | CheatModController.cs | using System.Collections.Generic;
using UnityEngine;
using CheatMod.Windows;
using CheatMod.Reference;
namespace CheatMod
{
class CheatModController : MonoBehaviour
{
public static List<CMWindow> windows = new List<CMWindow>();
void Start()
{
Debug.Log("Started CheatModCon... | using System.Collections.Generic;
using UnityEngine;
using CheatMod.Windows;
using CheatMod.Reference;
namespace CheatMod
{
class CheatModController : MonoBehaviour
{
public static List<CMWindow> windows = new List<CMWindow>();
void Start()
{
Debug.Log("Started CheatModCon... | apache-2.0 | C# |
a9b9c0f3bf726b4cc185ce7a5fda3ba8edb28104 | update conekta.js script version | conekta/conekta-xamarin | ConektaSDK/Conekta.cs | ConektaSDK/Conekta.cs | using System;
using System.Drawing;
using System.Diagnostics;
#if __IOS__
using Foundation;
using ObjectiveC;
using ObjCRuntime;
using UIKit;
#endif
#if __ANDROID__
using Android;
#endif
namespace ConektaSDK {
public abstract class Conekta {
public static string ApiVersion { get; set; }
public const string B... | using System;
using System.Drawing;
using System.Diagnostics;
#if __IOS__
using Foundation;
using ObjectiveC;
using ObjCRuntime;
using UIKit;
#endif
#if __ANDROID__
using Android;
#endif
namespace ConektaSDK {
public abstract class Conekta {
public static string ApiVersion { get; set; }
public const string B... | mit | C# |
04abb2ce8f1723fbf342d7cb215eea0d20d221bb | Update default cursor smoke implementation to use a texture | peppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu | osu.Game.Rulesets.Osu/Skinning/Default/DefaultSmoke.cs | osu.Game.Rulesets.Osu/Skinning/Default/DefaultSmoke.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.Textures;
namespace osu.Game.Rulesets.Osu.Skinning.Default
{
public class DefaultSmoke : Smoke
{
... | // 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.
namespace osu.Game.Rulesets.Osu.Skinning.Default
{
public class DefaultSmoke : Smoke
{
public DefaultSmoke()
{
Radius = 2;
}
... | mit | C# |
6622520aa8f7c7c507fea4d29c5ac7ca504f0939 | Update the assembly info | jehugaleahsa/NDex | NDex/Properties/AssemblyInfo.cs | NDex/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Resources;
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 ... | using System.Reflection;
using System.Resources;
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.
[ass... | unlicense | C# |
525cf13344e1dc25e884b35c5f4302302ba2d523 | fix in dbdatadll | 1Development/PermacallWebApp,1Development/PermacallWebApp,1Development/PermacallWebApp | PermacallWebApp/PCDataDLL/DB.cs | PermacallWebApp/PCDataDLL/DB.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PCDataDLL
{
public class DB
{
private static MySQLRepo mainDB;
private static MySQLRepo portFolioDB;
public static MySQLRepo MainDB
{
get
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PCDataDLL
{
public class DB
{
private static MySQLRepo mainDB;
private static MySQLRepo portFolioDB;
public static MySQLRepo MainDB
{
get
... | mit | C# |
544d32405a688d94e18ccec0463cbd20352675fc | Update RuleUpdater.cs | win120a/ACClassRoomUtil,win120a/ACClassRoomUtil | ProcessBlockUtil/RuleUpdater.cs | ProcessBlockUtil/RuleUpdater.cs | /*
Copyright (C) 2011-2014 AC Inc. (Andy Cheung)
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 ... | /*
Copyright (C) 2011-2014 AC Inc. (Andy Cheung)
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 ... | apache-2.0 | C# |
7176e129393bbcf66f90e8f7784e7c6ad9ddaa5f | Fix Assembly Version | leocereus/WpfDesigner,icsharpcode/WpfDesigner | GlobalAssemblyInfo.cs | GlobalAssemblyInfo.cs | // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// 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, co... | // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// 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, co... | mit | C# |
7e77971e67c947f2fa1164ecc10bc0476b9cb9db | Remove AssemblyFileVersion | Seddryck/NBi,Seddryck/NBi | GlobalAssemblyInfo.cs | GlobalAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// 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: AssemblyCo... | using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// 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: AssemblyCo... | apache-2.0 | C# |
d1e4b2164be26209b5be9d148b91b77b1b444b76 | Make Visual Studio 2017 Enterprise happy | pardeike/Harmony | Harmony/Transpilers.cs | Harmony/Transpilers.cs | using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
namespace Harmony
{
public static class Transpilers
{
public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to)
{
foreach (var instruction in... | using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
namespace Harmony
{
public static class Transpilers
{
public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to)
{
foreach (var instruction i... | mit | C# |
7fa05638dbf42d4cf964ddb919e11f5bef69c9f9 | Add repos for Nuget | ApplETS/ETSMobile-WindowsPlatforms,ApplETS/ETSMobile-WindowsPlatforms | build.cake | build.cake | //////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
// Solution
var rootFolder = "./Ets.Mobile";
var solutionPath = rootFolder + "/Ets.Mobile.WindowsPhone.sln";
var allProjectsBinPath = rootFolder + "/**/bin";
// Te... | //////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
// Solution
var rootFolder = "./Ets.Mobile";
var solutionPath = rootFolder + "/Ets.Mobile.WindowsPhone.sln";
var allProjectsBinPath = rootFolder + "/**/bin";
// Te... | apache-2.0 | C# |
1d6dd0f0d7067db9597dcd8084697ed87c35cc33 | Add Chinese translation | goldenapple3/Miscellania | Items/Materials/WormholeCrystal.cs | Items/Materials/WormholeCrystal.cs |
using System;
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace GoldensMisc.Items.Materials
{
public class WormholeCrystal : ModItem
{
public override bool Autoload(ref string name)
{
return Config.WormholeMirror;
}
public override void SetStaticDefau... |
using System;
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace GoldensMisc.Items.Materials
{
public class WormholeCrystal : ModItem
{
public override bool Autoload(ref string name)
{
return Config.WormholeMirror;
}
public override void SetStaticDefau... | mit | C# |
b06906eabac9cafb6d7d36a698e177761556e37f | fix stream returns | Pondidum/Ledger,Pondidum/Ledger | Ledger.Stores.Fs.Tests/TestBase.cs | Ledger.Stores.Fs.Tests/TestBase.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Ledger.Infrastructure;
using NSubstitute;
using TestsDomain;
namespace Ledger.Stores.Fs.Tests
{
public class TestBase
{
public List<string> Events { get; private set; }
public List<string> Snapshots { get; private set; }
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Ledger.Infrastructure;
using NSubstitute;
using TestsDomain;
namespace Ledger.Stores.Fs.Tests
{
public class TestBase
{
public List<string> Events { get; private set; }
public List<string> Snapshots { get; private set; }
... | lgpl-2.1 | C# |
cab699f1a773d96d41b23cd66804a7c331b5b060 | Update version number. | Damnae/storybrew | editor/Properties/AssemblyInfo.cs | editor/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("storybrew editor")]
[assembly: AssemblyDe... | 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("storybrew editor")]
[assembly: AssemblyDe... | mit | C# |
9b0be318fe76e8f4ccc6d0c50f9dc061a78058dc | Remove unused links from the layout page | appharbor/ConsolR,vendettamit/compilify,vendettamit/compilify,jrusbatch/compilify,appharbor/ConsolR,jrusbatch/compilify | Web/Views/Shared/_Layout.cshtml | Web/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title - Compilify, an interactive web interface for the .NET compiler</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="image/x-icon" rel="shortcut icon" href="/fav... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title - Compilify, a Roslyn-based Web Interface for the C# Compiler</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="image/x-icon" rel="shortcut icon" href="/favic... | mit | C# |
093b6bac5967947186649a6abebf21e71340aab3 | Improve string and date Util methods (#477) | Oucema90/RiotSharp,JanOuborny/RiotSharp,BenFradet/RiotSharp,frederickrogan/RiotSharp | RiotSharp/Misc/Util.cs | RiotSharp/Misc/Util.cs | using System;
using System.Collections.Generic;
using System.Linq;
using RiotSharp.MatchEndpoint.Enums;
namespace RiotSharp.Misc
{
static class Util
{
public static DateTime BaseDateTime = new DateTime(1970, 1, 1);
public static DateTime ToDateTimeFromMilliSeconds(this long millis)
{... | using System;
using System.Collections.Generic;
using RiotSharp.MatchEndpoint.Enums;
namespace RiotSharp.Misc
{
static class Util
{
public static DateTime ToDateTimeFromMilliSeconds(this long millis)
{
var dateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0);
dateTime = date... | mit | C# |
14b366a68dea6121c89f716fa8744bf7eb067f35 | Change release type. | fuyuno/Norma | Source/Norma/Models/ProductInfo.cs | Source/Norma/Models/ProductInfo.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using Norma.Models.Libraries;
using LibMetroRadiance = Norma.Models.Libraries.MetroRadiance;
namespace Norma.Models
{
internal static class ProductInfo
{
public static string Name => GetAssemblyInfo<AssemblyTitleAttribute>().Ti... | using System;
using System.Collections.Generic;
using System.Reflection;
using Norma.Models.Libraries;
using LibMetroRadiance = Norma.Models.Libraries.MetroRadiance;
namespace Norma.Models
{
internal static class ProductInfo
{
public static string Name => GetAssemblyInfo<AssemblyTitleAttribute>().Ti... | mit | C# |
406b6fcc760d74962a0c9744f31985c9e535b335 | Update version | MisinformedDNA/Elmah.AzureTableStorage,FreedomMercenary/Elmah.AzureTableStorage,LionLai/Elmah.AzureTableStorage | src/Elmah.AzureTableStorage/Properties/AssemblyInfo.cs | src/Elmah.AzureTableStorage/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | apache-2.0 | C# |
fe3ab94afbfc84665e28fa8df731a507d6a3656c | Fix mania judgement regression | peppy/osu,smoogipooo/osu,EVAST9919/osu,johnneijzen/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu,johnneijzen/osu,Nabile-Rahmani/osu,DrabWeb/osu,ZLima12/osu,2yangk23/osu,EVAST9919/osu,UselessToucan/osu,smoogipoo/osu,DrabWeb/osu,UselessToucan/osu,naoey/osu,ppy/osu,2yangk23/osu,Frontear/osuKyzer,UselessToucan/osu,naoey/osu,Ne... | osu.Game.Rulesets.Mania/UI/DrawableManiaJudgement.cs | osu.Game.Rulesets.Mania/UI/DrawableManiaJudgement.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Judgements;
namespace osu.Game.Rulesets.Mania.UI
{
internal class Dra... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Game.Rulesets.Judgements;
namespace osu.Game.Rulesets.Mania.UI
{
internal class DrawableManiaJudgement : DrawableJud... | mit | C# |
af4adb6339e807ee71be35766c1366fb67fcbf38 | Add xmldoc | 2yangk23/osu,johnneijzen/osu,EVAST9919/osu,UselessToucan/osu,2yangk23/osu,EVAST9919/osu,ppy/osu,peppy/osu,smoogipooo/osu,ZLima12/osu,ppy/osu,smoogipoo/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,johnneijzen/osu,ZLima12/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,Neo... | osu.Game/Beatmaps/Drawables/GroupedDifficultyIcon.cs | osu.Game/Beatmaps/Drawables/GroupedDifficultyIcon.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Rulesets;
usin... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Rulesets;
usin... | mit | C# |
51d5faf65114e4a8c7974570526b505acd060837 | Mark calling convention on GInterface callbacks | sillsdev/gtk-sharp,antoniusriha/gtk-sharp,orion75/gtk-sharp,sillsdev/gtk-sharp,orion75/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,akrisiun/gtk-sharp,antoniusriha/gtk-sharp,Gankov/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,akrisiun/gtk-sharp,Gankov/gtk-s... | glib/GInterfaceAdapter.cs | glib/GInterfaceAdapter.cs | // GInterfaceAdapter.cs
//
// Author: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2007 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
//... | // GInterfaceAdapter.cs
//
// Author: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2007 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
//... | lgpl-2.1 | C# |
e3505d5f53751fc05c223e568b75ec27c8481820 | Remove space | mganss/HtmlSanitizer | test/HtmlSanitizer.Benchmark/HtmlSanitizerBenchmark.cs | test/HtmlSanitizer.Benchmark/HtmlSanitizerBenchmark.cs | using System.IO;
using BenchmarkDotNet.Attributes;
namespace Ganss.XSS.Benchmark
{
[MemoryDiagnoser]
public class HtmlSanitizerBenchmark
{
private HtmlSanitizer sanitizer;
private string googleFileContent;
private string largeFileContent;
[GlobalSetup]
public void G... | using System.IO;
using BenchmarkDotNet.Attributes;
namespace Ganss.XSS.Benchmark
{
[MemoryDiagnoser]
public class HtmlSanitizerBenchmark
{
private HtmlSanitizer sanitizer;
private string googleFileContent;
private string largeFileContent;
[GlobalSetup]
public void G... | mit | C# |
2d98526f121b0e7e78d83e1d14c306624d52ba77 | Change method names | danielmundt/csremote | source/Remoting.Client/FormMain.cs | source/Remoting.Client/FormMain.cs | #region Header
// Copyright (C) 2012 Daniel Schubert
//
// 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, ... | #region Header
// Copyright (C) 2012 Daniel Schubert
//
// 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# |
91f854bba71a8c1b613597f38467c2ea3ab7c350 | check loaded level first | Dalet/140-speedrun-timer,Dalet/140-speedrun-timer,Dalet/140-speedrun-timer | 140-speedrun-timer/GameObservers/TitleScreenObserver.cs | 140-speedrun-timer/GameObservers/TitleScreenObserver.cs | using System.Reflection;
using UnityEngine;
namespace SpeedrunTimerMod.GameObservers
{
[GameObserver]
class TitleScreenObserver : MonoBehaviour
{
static FieldInfo _titleScreenStateField;
TitleScreen _titlescreen;
object _titleScreenStateStart;
object _prevTitleScreenState;
void Awake()
{
if (Applic... | using System.Reflection;
using UnityEngine;
namespace SpeedrunTimerMod.GameObservers
{
[GameObserver]
class TitleScreenObserver : MonoBehaviour
{
static FieldInfo _titleScreenStateField;
TitleScreen _titlescreen;
object _titleScreenStateStart;
object _prevTitleScreenState;
void Awake()
{
if (_title... | unlicense | C# |
4af3fa4eb2354699456c8e104734175f20302848 | Fix build | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer.Common/Altcoins/Liquid/LiquidExtensions.cs | BTCPayServer.Common/Altcoins/Liquid/LiquidExtensions.cs | #if ALTCOINS
using System.Collections.Generic;
using System.Linq;
namespace BTCPayServer
{
public static class LiquidExtensions
{
public static IEnumerable<string> GetAllElementsSubChains(this BTCPayNetworkProvider networkProvider)
{
var elementsBased = networkProvider.GetAll().OfTy... | #if ALTCOINS
using System.Collections.Generic;
using System.Linq;
namespace BTCPayServer
{
public static class LiquidExtensions
{
public static IEnumerable<string> GetAllElementsSubChains(this BTCPayNetworkProvider networkProvider)
{
var elementsBased = networkProvider.GetAll().OfTy... | mit | C# |
025fbe3dec5ed5296f61e0e4c01988273ab26604 | bump version | InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET | configuration/SharedAssemblyInfo.cs | configuration/SharedAssemblyInfo.cs | using System.Reflection;
// Assembly Info that is shared across the product
[assembly: AssemblyProduct("InEngine.NET")]
[assembly: AssemblyVersion("2.0.0.*")]
[assembly: AssemblyInformationalVersion("2.0.0-beta3")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ethan Hann")]
[assembly: AssemblyCop... | using System.Reflection;
// Assembly Info that is shared across the product
[assembly: AssemblyProduct("InEngine.NET")]
[assembly: AssemblyVersion("2.0.0.*")]
[assembly: AssemblyInformationalVersion("2.0.0-beta2")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ethan Hann")]
[assembly: AssemblyCop... | mit | C# |
d670a50271687c9ee21d24e21804c8a7db9195cd | make middleware config param required | CoreAPM/DotNetAgent | CoreAPM.NET.CoreMiddleware/CoreAPMServicesExtensions.cs | CoreAPM.NET.CoreMiddleware/CoreAPMServicesExtensions.cs | using System;
using System.Net.Http;
using CoreAPM.NET.Agent;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
namespace CoreAPM.NET.CoreMiddleware
{
public static class CoreAPMServicesExtensions
{
publi... | using System;
using System.Net.Http;
using CoreAPM.NET.Agent;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace CoreAPM.NET.CoreMiddleware
{
public static class CoreAPMServicesExtensions
{
public static void AddCoreAPM(this IServiceCollection services, ... | mit | C# |
bfe39f7486f77d078a30ce498f4f42981280f24d | Fix project icon not showing on VS project tree (#401) | nanoframework/nf-Visual-Studio-extension | source/VisualStudio.Extension/ProjectSystem/ProjectTreePropertiesProvider.cs | source/VisualStudio.Extension/ProjectSystem/ProjectTreePropertiesProvider.cs | //
// Copyright (c) 2017 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//
using Microsoft.VisualStudio.ProjectSystem;
using System.ComponentModel.Composition;
namespace nanoFramework.Tools.VisualStudio.Extension
{
/// <summary>
/// Updates nodes ... | //
// Copyright (c) 2017 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//
using Microsoft.VisualStudio.ProjectSystem;
using System.ComponentModel.Composition;
namespace nanoFramework.Tools.VisualStudio.Extension
{
/// <summary>
/// Updates nodes ... | mit | C# |
b6346115c92264aba60867c293a8f0c91f1fe176 | update identity resource mappings | IdentityServer/IdentityServer4.EntityFramework,IdentityServer/IdentityServer4.EntityFramework,IdentityServer/IdentityServer4.EntityFramework,IdentityServer/IdentityServer4.EntityFramework | src/IdentityServer4.EntityFramework/Mappers/IdentityResourceMapperProfile.cs | src/IdentityServer4.EntityFramework/Mappers/IdentityResourceMapperProfile.cs | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using AutoMapper;
namespace IdentityServer4.EntityFramework.Mappers
{
/// <summary>
/// Defines entity/model mapping for identity re... | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System.Linq;
using AutoMapper;
using IdentityServer4.EntityFramework.Entities;
namespace IdentityServer4.EntityFramework.Mappers
{
... | apache-2.0 | C# |
ac14ce96d1677c3c05319082f328424e974b6139 | Remove commented code | z4kn4fein/stashbox | src/Lifetime/ScopedLifetimeBase.cs | src/Lifetime/ScopedLifetimeBase.cs | using Stashbox.BuildUp;
using Stashbox.Registration;
using Stashbox.Resolution;
using System;
using System.Linq.Expressions;
using System.Threading;
namespace Stashbox.Lifetime
{
/// <summary>
/// Represents a shared base class for scoped lifetimes.
/// </summary>
public abstract class ScopedLifetimeB... | using Stashbox.BuildUp;
using Stashbox.Registration;
using Stashbox.Resolution;
using System;
using System.Linq.Expressions;
using System.Threading;
namespace Stashbox.Lifetime
{
/// <summary>
/// Represents a shared base class for scoped lifetimes.
/// </summary>
public abstract class ScopedLifetimeB... | mit | C# |
3894622ddcb255346b49d23f65b6bd1009ca7bc3 | Remove redundant initializing field by default | 2yangk23/osu,EVAST9919/osu,NeoAdonis/osu,smoogipooo/osu,Nabile-Rahmani/osu,naoey/osu,peppy/osu,DrabWeb/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,ZLima12/osu,UselessToucan/osu,naoey/osu,peppy/osu,NeoAdonis/osu,ppy/osu,DrabWeb/osu,2yangk23/osu,peppy/osu-new,UselessToucan/osu,smoogipoo/osu,peppy/osu,ppy/osu,ppy/os... | osu.Game/Beatmaps/BeatmapDifficulty.cs | osu.Game/Beatmaps/BeatmapDifficulty.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace osu.Game.Beatmaps
{
public class BeatmapDifficulty
{
///... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace osu.Game.Beatmaps
{
public class BeatmapDifficulty
{
///... | mit | C# |
e09c547338b1bc8acdb6bc24f817a4d8d6aa5f8a | make the field in map enumerator readonly | yanggujun/commonsfornet,yanggujun/commonsfornet | src/Commons.Collections/Map/MapEnumerator.cs | src/Commons.Collections/Map/MapEnumerator.cs | // Copyright CommonsForNET 2014.
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance w... | // Copyright CommonsForNET 2014.
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance w... | apache-2.0 | C# |
346a603dc79f92985b5fdce1d345f3cbbf71766d | Update HexToColorConverter.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/Converters/HexToColorConverter.cs | src/Core2D/Converters/HexToColorConverter.cs | #nullable enable
using System;
using System.Globalization;
using Avalonia;
using Avalonia.Data.Converters;
using Avalonia.Media;
namespace Core2D.Converters;
public class HexToColorConverter : IValueConverter
{
public static HexToColorConverter Instance = new();
public object? Convert(object? value, Type tar... | #nullable enable
using System;
using System.Globalization;
using Avalonia;
using Avalonia.Data.Converters;
using Avalonia.Media;
namespace Core2D.Converters;
public class HexToColorConverter : IValueConverter
{
public static HexToColorConverter Instance = new();
public object? Convert(object? value, Type tar... | mit | C# |
8a1a12c39a217f4b8b2c63b2dc8ff058df012ec0 | Check the right thing lol | krille90/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,krille90/unitystation | UnityProject/Assets/Scripts/Inventory/DamageOnPickUp.cs | UnityProject/Assets/Scripts/Inventory/DamageOnPickUp.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DamageOnPickUp : MonoBehaviour, IServerInventoryMove
{
/// <summary>
/// Does damage to active left or right arm.
/// </summary>
public bool doesDamage;
/// <summary>
/// 1 = 100%
/// </summary>
public float doesDamag... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DamageOnPickUp : MonoBehaviour, IServerInventoryMove
{
/// <summary>
/// Does damage to active left or right arm.
/// </summary>
public bool doesDamage;
/// <summary>
/// 1 = 100%
/// </summary>
public float doesDamag... | agpl-3.0 | C# |
9c7985e644bef68d1701fe6a7c9978fcc30a9a7b | Update ShapePresenter.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D.Core/Presenters/ShapePresenter.cs | src/Draw2D.Core/Presenters/ShapePresenter.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.Collections.Generic;
using Draw2D.Core.Renderers;
using Draw2D.Core.Editor;
namespace Draw2D.Core.Presenters
{
public abstract clas... | // 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.Collections.Generic;
using Draw2D.Core.Renderers;
using Draw2D.Core.Editor;
namespace Draw2D.Core.Presenters
{
public abstract clas... | mit | C# |
0ffbbac3be7d8631547916d72457bb7eb9e8190b | check for actual version number #136 | punker76/Markdown-Edit,mike-ward/Markdown-Edit | src/MarkdownEdit/Models/Version.cs | src/MarkdownEdit/Models/Version.cs | using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Linq;
namespace MarkdownEdit.Models
{
internal static class Version
{
public const string VersionNumber = "1.25.1";
public static async Task<bool> IsCurrentVersion()
{
try
{
... | using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace MarkdownEdit.Models
{
internal static class Version
{
public const string VersionNumber = "1.25.1";
public static async Task<bool> IsCurrentVersion()
{
try
{
using (var... | mit | C# |
0204de4c4b6b7f0369eb2d71762bef5d359aa704 | add navbar with link back to homepage | ucdavis/Namster,ucdavis/Namster,ucdavis/Namster | src/Namster/Views/Home/List.cshtml | src/Namster/Views/Home/List.cshtml | @{
ViewData["Title"] = "List Results";
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="//cdn.datatables.net/1.10.10/css/jquery.dataTables.min.css" rel="stylesheet" />
<nav class="navbar navbar-dark bg-inverse" style="background-color: #0028... | @{
ViewData["Title"] = "List Results";
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link href="//cdn.datatables.net/1.10.10/css/jquery.dataTables.min.css" rel="stylesheet" />
<div class="container-fluid">
<div id="example"></div>
</div>
@section... | mit | C# |
a118a5ee4c688d180f3258c20101fdb83172853e | Make RowStrings private | 12joan/hangman | table.cs | table.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Hangman {
public class Table {
public int Width;
public int Spacing;
public Row[] Rows;
public Table(int width, int spacing, Row[] rows) {
Width = width;
Spacing = spacing;
Rows = rows;
}
public s... | using System;
using System.Collections.Generic;
using System.Text;
namespace Hangman {
public class Table {
public int Width;
public int Spacing;
public Row[] Rows;
public Table(int width, int spacing, Row[] rows) {
Width = width;
Spacing = spacing;
Rows = rows;
}
public s... | unlicense | C# |
6dc7e1104f976b3b3e172f1327eeb5f9b3d8af7d | change some incorrect comments | noliar/MoreAuthentication | src/Microsoft.AspNet.Authentication.Yixin/YixinServiceCollectionExtensions.cs | src/Microsoft.AspNet.Authentication.Yixin/YixinServiceCollectionExtensions.cs | using Microsoft.AspNet.Authentication.Yixin;
using Microsoft.Framework.Configuration;
using Microsoft.Framework.Internal;
using System;
namespace Microsoft.Framework.DependencyInjection
{
/// <summary>
/// Extension methods for using <see cref="YixinAuthenticationMiddleware" />
/// </summary>
public s... | using Microsoft.AspNet.Authentication.Yixin;
using Microsoft.Framework.Configuration;
using Microsoft.Framework.Internal;
using System;
namespace Microsoft.Framework.DependencyInjection
{
/// <summary>
/// Extension methods for using <see cref="YixinServiceCollectionExtensions" />
/// </summary>
publi... | apache-2.0 | C# |
b29a36d0042672cc05eab30406ac8c1f82fb0e56 | fix exception handling issue in the main layout #1653 (#1663) | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework | src/Tooling/Bit.Tooling.Templates/TodoTemplate/Web/Shared/MainLayout.razor.cs | src/Tooling/Bit.Tooling.Templates/TodoTemplate/Web/Shared/MainLayout.razor.cs | namespace TodoTemplate.App.Shared
{
public partial class MainLayout : IAsyncDisposable
{
public bool IsUserAuthenticated { get; set; }
public bool IsMenuOpen { get; set; } = false;
[Inject]
public IStateService StateService { get; set; } = default!;
[Inject]
pu... | namespace TodoTemplate.App.Shared
{
public partial class MainLayout : IAsyncDisposable
{
public bool IsUserAuthenticated { get; set; }
public bool IsMenuOpen { get; set; } = false;
[Inject]
public IStateService StateService { get; set; } = default!;
[Inject]
pu... | mit | C# |
571726459b40e2310d39665500418cded90098c2 | Add null check to HierarchyManager Find methods | bd339/HTX-School-Trip | Assets/Scripts/HierarchyManager.cs | Assets/Scripts/HierarchyManager.cs | using UnityEngine;
// wrapper for Unity 5.4 beta methods
class HierarchyManager {
public static GameObject Find (string name) {
var go = GameObject.Find ("Root").transform.FindChildIncludingDeactivated (name);
return go != null ? go.gameObject : null;
}
public static GameObject Find (str... | using UnityEngine;
// wrapper for Unity 5.4 beta methods
class HierarchyManager {
public static GameObject Find (string name) {
return GameObject.Find ("Root").transform.FindChildIncludingDeactivated (name).gameObject;
}
public static GameObject Find (string name, Transform t) {
return t... | mit | C# |
bbf9f477f3dc318045520b8a52c909b8044402d2 | Update text on countdown timer GUI | hcorion/RoverVR | Assets/Scripts/Player/CountDown.cs | Assets/Scripts/Player/CountDown.cs | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class CountDown : MonoBehaviour {
public float maxTime = 600; //Because it is in seconds;
private float curTime;
private string prettyTime;
private Text text;
// Use this for initialization
void Start () {
curTime = maxTime;
text = ga... | using UnityEngine;
using System.Collections;
public class CountDown : MonoBehaviour {
public float maxTime = 600; //Because it is in seconds;
private float curTime;
private string prettyTime;
// Use this for initialization
void Start () {
curTime = maxTime;
}
// Update is called once per frame
void Update... | mit | C# |
c4098c2c5e2c336e5a9f2c70c79e49d941e22f2b | Patch Import-B2State | LordMike/B2Lib | B2Powershell/ImportStateCommand.cs | B2Powershell/ImportStateCommand.cs | using System.Management.Automation;
using B2Lib;
using B2Lib.Objects;
namespace B2Powershell
{
[Cmdlet("Import", "B2State")]
public class ImportStateCommand : PSCmdlet
{
[Parameter(Mandatory = true, Position = 0)]
public string File { get; set; }
protected override void ProcessReco... | using System.Management.Automation;
using B2Lib;
namespace B2Powershell
{
[Cmdlet("Import", "B2State")]
public class ImportStateCommand : PSCmdlet
{
[Parameter(Mandatory = true, Position = 0)]
public string File { get; set; }
protected override void ProcessRecord()
{
... | mit | C# |
58ca652ff7d02aa7231bb271200c64819936a983 | Fix GDAXFeeModel fee structure for non-BTC symbols | AlexCatarino/Lean,StefanoRaggi/Lean,AnshulYADAV007/Lean,AlexCatarino/Lean,JKarathiya/Lean,jameschch/Lean,JKarathiya/Lean,kaffeebrauer/Lean,kaffeebrauer/Lean,jameschch/Lean,AlexCatarino/Lean,StefanoRaggi/Lean,AnshulYADAV007/Lean,Jay-Jay-D/LeanSTP,StefanoRaggi/Lean,JKarathiya/Lean,AnshulYADAV007/Lean,jameschch/Lean,james... | Common/Orders/Fees/GDAXFeeModel.cs | Common/Orders/Fees/GDAXFeeModel.cs | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of... | apache-2.0 | C# |
f425f1478a7e15c18eba82e4ec9f83a47a974988 | Update Program.cs | jacobrossandersen/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)
{
//Code was added in GitHub
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
7427ceb80abd48be2ab8f18bc5d4fe17d8ed263b | test server side delay | gaochundong/Cowboy | Cowboy/Tests/Cowboy.WebSockets.TestAsyncWebSocketServer/TestWebSocketModule.cs | Cowboy/Tests/Cowboy.WebSockets.TestAsyncWebSocketServer/TestWebSocketModule.cs | using System;
using System.Text;
using System.Threading.Tasks;
namespace Cowboy.WebSockets.TestAsyncWebSocketServer
{
public class TestWebSocketModule : AsyncWebSocketServerModule
{
public TestWebSocketModule()
: base(@"/test")
{
}
public override async Task OnSess... | using System;
using System.Text;
using System.Threading.Tasks;
namespace Cowboy.WebSockets.TestAsyncWebSocketServer
{
public class TestWebSocketModule : AsyncWebSocketServerModule
{
public TestWebSocketModule()
: base(@"/test")
{
}
public override async Task OnSess... | mit | C# |
9af2b3573dd60300e9f814f034ac5bcaa412b7dd | Fix file paths default value null | danielchalmers/DesktopWidgets | DesktopWidgets/Classes/FilePath.cs | DesktopWidgets/Classes/FilePath.cs | using System.ComponentModel;
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
namespace DesktopWidgets.Classes
{
[ExpandableObject]
[DisplayName("File")]
public class FilePath
{
public FilePath(string path)
{
Path = path;
}
public FilePath()
{
... | using System.ComponentModel;
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
namespace DesktopWidgets.Classes
{
[ExpandableObject]
[DisplayName("File")]
public class FilePath
{
public FilePath(string path)
{
Path = path;
}
public FilePath()
{
... | apache-2.0 | C# |
18f5c0a3c4af2e271b877799d4b7606a34367a78 | Update _Menu.cshtml | PiranhaCMS/piranha.core,filipjansson/piranha.core,PiranhaCMS/piranha.core,filipjansson/piranha.core,filipjansson/piranha.core,PiranhaCMS/piranha.core,PiranhaCMS/piranha.core | templates/BasicWeb/Views/Shared/Partial/_Menu.cshtml | templates/BasicWeb/Views/Shared/Partial/_Menu.cshtml | @inject Piranha.IApi Api
@{
var sitemap = Api.Sites.GetSitemap();
}
@*Not the best solution but meanwhile... class = d-sm-block d-md-none is hiding on md screen solution*@
<nav class="navbar navbar-toggleable-sm navbar-dark bg-faded d-sm-block d-md-none">
<button class="navbar-toggler navbar-toggler-right" typ... | @inject Piranha.IApi Api
@{
var sitemap = Api.Sites.GetSitemap();
}
<ul class="nav nav-site justify-content-center">
@foreach (var item in sitemap) {
<li class="nav-item @(item.Id == ViewBag.CurrentPage ? "active" : "")">
<a class="nav-link" href="@item.Permalink"><span>@item.MenuTitle</spa... | mit | C# |
930b22d30b0caaec01b6a79c9afc379ee680e969 | Make it Rain now rains blocks constantly | TheMagnificentSeven/MakeItRain | Assets/Scripts/MakeItRain.cs | Assets/Scripts/MakeItRain.cs | using UnityEngine;
using System.Collections;
public class MakeItRain : MonoBehaviour
{
private int numObjects = 20;
private float minX = -4f;
private float maxX = 4f;
private GameObject rain;
private GameObject rainClone;
int count = 0;
// Use this for initialization
void Start()
... | using UnityEngine;
using System.Collections;
public class MakeItRain : MonoBehaviour
{
private int numObjects = 20;
private float minX = -4f;
private float maxX = 4f;
private GameObject rain;
private GameObject rainClone;
// Use this for initialization
void Start()
{
// Here... | mit | C# |
6f73ad28d674924b5852926af6f1a934d342c0ef | Add support for switching endianness of float and double fields | canton7/BitPacker,canton7/BitPacker | BitPacker/EndianUtilities.cs | BitPacker/EndianUtilities.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BitPacker
{
internal static class EndianUtilities
{
public static Endianness HostEndianness = BitConverter.IsLittleEndian ? Endianness.LittleEndian : Endianness.BigEndian; ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BitPacker
{
internal static class EndianUtilities
{
public static Endianness HostEndianness = BitConverter.IsLittleEndian ? Endianness.LittleEndian : Endianness.BigEndian; ... | mit | C# |
6a9e88e953108f2c1aef694a072fae9bbc85b425 | fix wording on the Index page | ForNeVeR/fornever.me,ForNeVeR/fornever.me,ForNeVeR/fornever.me | ForneverMind/views/en/Index.cshtml | ForneverMind/views/en/Index.cshtml | @model ForneverMind.Models.PostArchiveModel
@{
Layout = "en/_Layout.cshtml";
ViewBag.Title = "int 20h";
}
<p>Hello!</p>
<p>My name is Friedrich von Never.</p>
<p>This is my website where I'm publising my technical and programming notes.</p>
<h2>Latest posts</h2>
<ul>
@foreach (var post in Model.Posts)
... | @model ForneverMind.Models.PostArchiveModel
@{
Layout = "en/_Layout.cshtml";
ViewBag.Title = "int 20h";
}
<p>Hello!</p>
<p>My name is Friedrich von Never.</p>
<p>This is my website. I'm publising my technical and programming notes here.</p>
<h2>Latest posts</h2>
<ul>
@foreach (var post in Model.Posts)
... | mit | C# |
f8a324c15aa53aabde7b8981f329d4bae90b9377 | Hide about screen | baseclass/nuserv,baseclass/nuserv,baseclass/nuserv | nuserv/Views/Shared/_Layout.cshtml | nuserv/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body ng-app="@ViewBag.App">
... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body ng-app="@ViewBag.App">
... | mit | C# |
811ca25e7c1d312e6daebba2b9be33d43eebf832 | Reset ComVisible to false | Miruken-DotNet/Miruken | Miruken/Properties/AssemblyInfo.cs | Miruken/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("Miruken")]
[assembly: AssemblyDescription... | 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("Miruken")]
[assembly: AssemblyDescription... | mit | C# |
8be4a079caba68b286884885acb19875ce4d97fa | Align failing CodeContracts case better to object Invariant. | pgeerkens/Monads | MonadTests/StaticContractsCases.cs | MonadTests/StaticContractsCases.cs | using System;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
namespace PGSolutions.Utilities.Monads.StaticContracts {
using static Contract;
public struct Maybe<T> {
///<summary>Create a new Maybe{T}.</summary>
private Maybe(T value) : this() {
Ensures(... | using System;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
namespace PGSolutions.Utilities.Monads.StaticContracts {
using static Contract;
public struct MaybeAssume<T> {
///<summary>Create a new Maybe{T}.</summary>
private MaybeAssume(T value) : this() {
... | mit | C# |
6fcd9cb257563f0116c5a1332d67623a1b713140 | Make Blink demo hot-pluggable | treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk | NET/Demos/Console/Blink/Program.cs | NET/Demos/Console/Blink/Program.cs | using System;
using Treehopper;
using System.Threading.Tasks;
using Treehopper.Desktop;
using System.Windows.Threading;
namespace Blink
{
/// <summary>
/// This demo blinks the built-in LED using async programming.
/// </summary>
class Program
{
static TreehopperUsb Board;
//[MTAT... | using System;
using Treehopper;
using System.Threading.Tasks;
using Treehopper.Desktop;
using System.Windows.Threading;
namespace Blink
{
/// <summary>
/// This demo blinks the built-in LED using async programming.
/// </summary>
class Program
{
static TreehopperUsb Board;
//[MTAT... | mit | C# |
78e7af5bbf74319f7869630ac750ad8b0eab8987 | Disable partitioning in the bootstrapper. | ProjectExtensions/ProjectExtensions.Azure.ServiceBus | src/Samples/PubSubUsingConfiguration/Bootstrapper.cs | src/Samples/PubSubUsingConfiguration/Bootstrapper.cs | using System.Configuration;
using Amazon.ServiceBus.DistributedMessages.Serializers;
using ProjectExtensions.Azure.ServiceBus;
using ProjectExtensions.Azure.ServiceBus.Autofac.Container;
namespace PubSubUsingConfiguration {
static internal class Bootstrapper {
public static void Initialize() {
... | using System.Configuration;
using Amazon.ServiceBus.DistributedMessages.Serializers;
using ProjectExtensions.Azure.ServiceBus;
using ProjectExtensions.Azure.ServiceBus.Autofac.Container;
namespace PubSubUsingConfiguration {
static internal class Bootstrapper {
public static void Initialize() {
... | bsd-3-clause | C# |
e94d05c0ef40dfb27d26202b0b6033e074ec6d6d | Revert "Replace Trace.WriteLine with Debug.WriteLine to resolve unknown reference." | andyfmiller/LtiLibrary | LtiLibrary.Core.Tests/SimpleHelpers/JsonAssertions.cs | LtiLibrary.Core.Tests/SimpleHelpers/JsonAssertions.cs | using System.Diagnostics;
using LtiLibrary.Core.Common;
using LtiLibrary.Core.Extensions;
using LtiLibrary.Core.Tests.TestHelpers;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NodaTime;
using NodaTime.Serialization.JsonNet;
using Xunit;
namespace LtiLibrary.Core.Tests.SimpleHelpers
{
internal stat... | using System.Diagnostics;
using LtiLibrary.Core.Common;
using LtiLibrary.Core.Extensions;
using LtiLibrary.Core.Tests.TestHelpers;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NodaTime;
using NodaTime.Serialization.JsonNet;
using Xunit;
namespace LtiLibrary.Core.Tests.SimpleHelpers
{
internal stat... | apache-2.0 | C# |
a1030e23b0c3684e51b502e9637c4d61a72f5881 | remove unnecessary test | ejona86/grpc,stanley-cheung/grpc,jboeuf/grpc,vjpai/grpc,muxi/grpc,vjpai/grpc,vjpai/grpc,donnadionne/grpc,firebase/grpc,ctiller/grpc,jtattermusch/grpc,ejona86/grpc,pszemus/grpc,donnadionne/grpc,ejona86/grpc,nicolasnoble/grpc,nicolasnoble/grpc,pszemus/grpc,firebase/grpc,grpc/grpc,nicolasnoble/grpc,vjpai/grpc,grpc/grpc,fi... | src/csharp/Grpc.Core.Tests/ChannelCredentialsTest.cs | src/csharp/Grpc.Core.Tests/ChannelCredentialsTest.cs | #region Copyright notice and license
// Copyright 2015 gRPC authors.
//
// 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 req... | #region Copyright notice and license
// Copyright 2015 gRPC authors.
//
// 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 req... | apache-2.0 | C# |
9589c416d0403ae7e36eebac23d33a3a73e30b7b | Add logic to the xml trunk repo | Tollman/Practice | Practice.Client/Practice.Common/XmlTrunkRepository.cs | Practice.Client/Practice.Common/XmlTrunkRepository.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;
namespace Practice.Common
{
class XmlTrunkRepository : ITrunkRepository
{
private XDocument xmlTrunks;
private string fileName = "BD.xml";
private int prevIndex = -1;
public XmlTr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;
namespace Practice.Common
{
class XmlTrunkRepository : ITrunkRepository
{
private XDocument xmlTrunks;
private string fileName = "BD.xml";
private int prevIndex = -1;
public XmlTr... | apache-2.0 | C# |
2debd650516e2d90b419e33edf3122cc7cc2e480 | Fix PatchSettings.cs namespace causing issue with the "Settings" class | Willster419/RelhaxModpack,Willster419/RelhaxModpack,Willster419/RelicModManager | RelhaxModpack/RelhaxModpack/Settings/PatchSettings.cs | RelhaxModpack/RelhaxModpack/Settings/PatchSettings.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RelhaxModpack
{
class PatchSettings
{
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RelhaxModpack.Settings
{
class PatchSettings
{
}
}
| apache-2.0 | C# |
68161a5421ad7c9772bb8a6daa2e5ad8d02b7560 | Fix Ctrl-X mistake. | EthanR/HaloSharp,gitFurious/HaloSharp | Source/HaloSharp.Test/Converter/GuidConverterTests.cs | Source/HaloSharp.Test/Converter/GuidConverterTests.cs | using System;
using HaloSharp.Converter;
using Newtonsoft.Json;
using NUnit.Framework;
namespace HaloSharp.Test.Converter
{
[TestFixture]
public class GuidConverterTests
{
private class TestClass
{
[JsonProperty(PropertyName = "HighestCsrSeasonId")]
[JsonConverter(t... | using System;
using HaloSharp.Converter;
using Newtonsoft.Json;
using NUnit.Framework;
namespace HaloSharp.Test.Converter
{
[TestFixture]
public class GuidConverterTests
{
private class TestClass
{
[JsonProperty(PropertyName = "HighestCsrSeasonId")]
[JsonConverter(t... | mit | C# |
d942d739fca779e122980211b5b5e82fb17fca22 | Annotate genres methods with oauth attribute. | henrikfroehling/TraktApiSharp | Source/Lib/TraktApiSharp/Modules/TraktGenresModule.cs | Source/Lib/TraktApiSharp/Modules/TraktGenresModule.cs | namespace TraktApiSharp.Modules
{
using Attributes;
using Enums;
using Objects.Basic;
using Requests.WithoutOAuth.Genres;
using System.Collections.Generic;
using System.Threading.Tasks;
/// <summary>
/// Provides access to data retrieving methods specific to genres.
/// <para>
... | namespace TraktApiSharp.Modules
{
using Enums;
using Objects.Basic;
using Requests.WithoutOAuth.Genres;
using System.Collections.Generic;
using System.Threading.Tasks;
/// <summary>
/// Provides access to data retrieving methods specific to genres.
/// <para>
/// This module contai... | mit | C# |
4f4d73dec39b1d9218a34f22fa6464f644fe8db4 | extend Span class | MeilCli/CrossFormattedText | Source/Plugin.CrossFormattedText.Abstractions/Span.cs | Source/Plugin.CrossFormattedText.Abstractions/Span.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace Plugin.CrossFormattedText.Abstractions {
public class Span : IEquatable<Span> {
public string Text { get; set; } = string.Empty;
public SpanC... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace Plugin.CrossFormattedText.Abstractions {
public class Span {
public string Text { get; set; } = string.Empty;
public SpanColor BackgroundColo... | mit | C# |
58bb93065147cc41822fdec8d54e1958db3d9a38 | Fix in API, added IsLocked field to nested schema. | Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex,Squidex/squidex | src/Squidex/Areas/Api/Controllers/Schemas/Models/CreateSchemaNestedFieldDto.cs | src/Squidex/Areas/Api/Controllers/Schemas/Models/CreateSchemaNestedFieldDto.cs | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ============================... | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ============================... | mit | C# |
1528ccd2635c7e03fd05df43731086f39ea6582a | Adjust screen resolution to samsung galaxy s4 | ImperialBeasts-OxfordHack16/skybreak-android | Assets/Scripts/MainMenu.cs | Assets/Scripts/MainMenu.cs | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class Menu : MonoBehaviour
{
public Canvas MainCanvas;
static public int money = 1000;
public void LoadOn()
{
Screen.SetResolution(1080, 1920, true);
//DontDestroyOnLoad(money);
Application.LoadLevel(1);
}
}
| using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class Menu : MonoBehaviour
{
public Canvas MainCanvas;
static public int money = 1000;
public void LoadOn()
{
//DontDestroyOnLoad(money);
Application.LoadLevel(1);
}
}
| mit | C# |
d7577266b65ec6e56de8afd21cb0abd82ca7f05f | Change team area heal quantity to 1000 | bunashibu/kikan | Assets/Scripts/TeamArea.cs | Assets/Scripts/TeamArea.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Assertions;
namespace Bunashibu.Kikan {
public class TeamArea : Photon.MonoBehaviour, IAttacker, IPhotonBehaviour {
void Awake() {
_synchronizer = GetComponent<SkillSynchronizer>();
}
void OnTriggerSt... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Assertions;
namespace Bunashibu.Kikan {
public class TeamArea : Photon.MonoBehaviour, IAttacker, IPhotonBehaviour {
void Awake() {
_synchronizer = GetComponent<SkillSynchronizer>();
}
void OnTriggerSt... | mit | C# |
d94dc8a704fe55e46f120694e6f1a70e9d7e1eff | Change CGPDFString logic to use CFString to work around encoding issues. Fix bug #2878 | cwensley/maccore,jorik041/maccore,mono/maccore | src/CoreGraphics/CGPDFString.cs | src/CoreGraphics/CGPDFString.cs | //
// CGPDFString: Helper class to deal with CGPDFStringRef
//
// Authors:
// Miguel de Icaza <miguel@xamarin.com>
// Sebastien Pouliot <sebastien@xamarin.com>
//
// Copyright 2011-2012 Xamarin Inc. All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this softw... | //
// CGPDFString: Helper class to deal with CGPDFStringRef
//
// Authors:
// Miguel de Icaza <miguel@xamarin.com>
// Sebastien Pouliot <sebastien@xamarin.com>
//
// Copyright 2011 Xamarin Inc. All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software a... | apache-2.0 | C# |
19530fa692fdc772fea01117288a88d847980c2b | Refactor the error caused by a failing assertion | yawaramin/TDDUnit | Assert.cs | Assert.cs | using System;
namespace TDDUnit {
class Assert {
private static void Fail(object expected, object actual) {
string message = string.Format("Expected: '{0}'; Actual: '{1}'", expected, actual);
Console.WriteLine(message);
throw new TestRunException(message);
}
public static void Equal(o... | using System;
namespace TDDUnit {
class Assert {
public static void Equal(object expected, object actual) {
if (!expected.Equals(actual)) {
string message = string.Format("Expected: '{0}'; Actual: '{1}'", expected, actual);
Console.WriteLine(message);
throw new TestRunException(mes... | apache-2.0 | C# |
46c00144f0e78e950b9e8786f325365b6e97fe7f | Update ClientContext.cs | hprose/hprose-dotnet | src/Hprose.RPC/ClientContext.cs | src/Hprose.RPC/ClientContext.cs | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | mit | C# |
875cb3c352590c562e73376ac1e98f58e2a726e4 | fix internals visibility | uwx/DSharpPlus,uwx/DSharpPlus | DSharpPlus/AssemblyInfo.cs | DSharpPlus/AssemblyInfo.cs | using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("RayBotSharp")]
[assembly: InternalsVisibleTo("RayBotSharp.MSTest")] | using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Sharpbott")]
[assembly: InternalsVisibleTo("Sharpbott.MSTest")] | mit | C# |
adde53a55061b444cdb993dee2ac4a92907bb7e3 | Make CommandLineParser annotations easier to read | RadicalZephyr/DesktopNotifier | DesktopNotifier/Program.cs | DesktopNotifier/Program.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using CommandLine;
using CommandLine.Text;
using System.Threading;
namespace DesktopNotifier
{
class Program
{
[STAThreadAttribute]
static void Main(string[] args)
{
... | using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using CommandLine;
using CommandLine.Text;
using System.Threading;
namespace DesktopNotifier
{
class Program
{
[STAThreadAttribute]
static void Main(string[] args)
{
... | mit | C# |
90871a1c6f2896a47f275a7263cae99f0d7b76db | read file contents with all exceptions | shakuu/Homework,shakuu/Homework,shakuu/Homework,shakuu/Homework,shakuu/Homework,shakuu/Homework | [C#]-02-CSharp2/07-Exception-Handling/03-Read-File-Contents/ReadFileContents.cs | [C#]-02-CSharp2/07-Exception-Handling/03-Read-File-Contents/ReadFileContents.cs | using System;
using System.IO;
using System.Security;
namespace _03_Read_File_Contents
{
class ReadFileContents
{
static void Main()
{
// https://msdn.microsoft.com/en-us/library/ms143368(v=vs.110).aspx
// List of all possible exceptions
// related to File.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _03_Read_File_Contents
{
class ReadFileContents
{
static void Main()
{
var path = Console.ReadLine();
}
}
}
| mit | C# |
9b62d6c5311008f5d37faf5abc61e5183af228ae | Make task index page more mobile friendly | johanhelsing/vaskelista,johanhelsing/vaskelista | Vaskelista/Views/Task/Index.cshtml | Vaskelista/Views/Task/Index.cshtml | @model IEnumerable<Vaskelista.Models.Task>
@{
ViewBag.Title = "Oppgaveoversikt";
}
<h2>Planlagte oppgaver</h2>
<p>
<a href="@Url.Action("Index", "Room")" class="btn btn-default"><i class="fa fa-list"></i> Rom</a>
<a href="@Url.Action("Create")" class ="btn btn-default"><i class="fa fa-plus"></i> Ny oppg... | @model IEnumerable<Vaskelista.Models.Task>
@{
ViewBag.Title = "Oppgaveoversikt";
}
<h2>Planlagte oppgaver</h2>
<p>
@Html.ActionLink("Opprett ny oppgave", "Create")
@Html.ActionLink("Romoversikt", "Index", "Room")
</p>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => ... | mit | C# |
75f19f1856901a00e616aa2f2b9b05d77f110490 | Clean up: removed empty line | alexandrnikitin/Topshelf.Unity | src/Topshelf.Unity.Sample/Program.cs | src/Topshelf.Unity.Sample/Program.cs | using System;
using Microsoft.Practices.Unity;
namespace Topshelf.Unity.Sample
{
class Program
{
static void Main(string[] args)
{
// Create your container
var container = new UnityContainer();
container.RegisterType<ISampleDependency, SampleDependency>();
... | using System;
using Microsoft.Practices.Unity;
namespace Topshelf.Unity.Sample
{
class Program
{
static void Main(string[] args)
{
// Create your container
var container = new UnityContainer();
container.RegisterType<ISampleDependency, SampleDependency>();
... | mit | C# |
002621f08571fc75d00b96c3bec339b187e8d94e | update OutgoingHeaderBehavior | WojcikMike/docs.particular.net | samples/header-manipulation/Version_6/Sample/Pipeline/OutgoingHeaderBehavior.cs | samples/header-manipulation/Version_6/Sample/Pipeline/OutgoingHeaderBehavior.cs | using System;
using System.Threading.Tasks;
using NServiceBus.OutgoingPipeline;
using NServiceBus.Pipeline;
#region outgoing-header-behavior
class OutgoingHeaderBehavior : Behavior<OutgoingPhysicalMessageContext>
{
public override async Task Invoke(OutgoingPhysicalMessageContext context, Func<Task> next)
{
... | using System;
using System.Threading.Tasks;
using NServiceBus.OutgoingPipeline;
using NServiceBus.Pipeline;
using NServiceBus.TransportDispatch;
#region outgoing-header-behavior
class OutgoingHeaderBehavior : Behavior<OutgoingPhysicalMessageContext>
{
public override async Task Invoke(OutgoingPhysicalMessageCont... | apache-2.0 | C# |
2747b789d543cf045b558d557deb235477be905e | return type for AsJson fixed | FriskyLingo/sendgrid-csharp,FriskyLingo/sendgrid-csharp,kenlefeb/sendgrid-csharp,sendgrid/sendgrid-csharp,dubrovkinmaxim/sendgrid-csharp,smurfpandey/sendgrid-csharp-net40,brcaswell/sendgrid-csharp,smurfpandey/sendgrid-csharp-net40,sumeshthomas/sendgrid-csharp,sendgrid/sendgrid-csharp,sendgrid/sendgrid-csharp,dubrovkinm... | SendGrid/SendGrid/IHeader.cs | SendGrid/SendGrid/IHeader.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
namespace SendGrid
{
public interface IHeader
{
void AddTo(IEnumerable<String> recipients);
void AddSubVal(String tag, IEnumerable<String> substitutions);
void AddUn... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
namespace SendGrid
{
public interface IHeader
{
void AddTo(IEnumerable<String> recipients);
void AddSubVal(String tag, IEnumerable<String> substitutions);
void AddUn... | mit | C# |
6464b326dff0d0e13e5bfc75b6037d59b615e686 | change folder used to locate tests | lockoncode/LockOnCode.VirtualMachine,lockoncode/LockOnCode.VirtualMachine | build.cake | build.cake | #addin "Cake.Incubator"
#tool "xunit.runner.console"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var binDir = ""; // Destination Binary File Directory name i.e. bin
var projJson = ""; // Path to the project.json
var projDir = ""; // Project Dir... | #addin "Cake.Incubator"
#tool "xunit.runner.console"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var binDir = ""; // Destination Binary File Directory name i.e. bin
var projJson = ""; // Path to the project.json
var projDir = ""; // Project Dir... | mit | C# |
08402c8cc9541d56dd9bb14a39c01674fd9ac808 | Fix blizzy toolbar | DMagic1/CapCom,Kerbas-ad-astra/CapCom | Source/Toolbar/CC_Toolbar.cs | Source/Toolbar/CC_Toolbar.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# |
b444b6e8b8eb041579ab5b2877a562b6dd04ca76 | Fix for 'new' setting button triggering if you hit enter when editing a setting. | grae22/TeamTracker | TeamTracker/Settings.aspx.cs | TeamTracker/Settings.aspx.cs | using System;
public partial class Settings : System.Web.UI.Page
{
//---------------------------------------------------------------------------
protected void Page_Load( object sender, EventArgs e )
{
// Don't allow people to skip the login page.
if( Session[ SettingsLogin.SES_SETTINGS_LOGGED_IN ] == ... | using System;
public partial class Settings : System.Web.UI.Page
{
//---------------------------------------------------------------------------
protected void Page_Load( object sender, EventArgs e )
{
// Don't allow people to skip the login page.
if( Session[ SettingsLogin.SES_SETTINGS_LOGGED_IN ] == ... | mit | C# |
ebee43f2556b940623851e2e0640daa69b91afc9 | Add UniTask.FromCanceled | neuecc/UniRx,TORISOUP/UniRx | Assets/Plugins/UniRx/Scripts/Async/UniTask.Factory.cs | Assets/Plugins/UniRx/Scripts/Async/UniTask.Factory.cs | #if CSHARP_7_OR_LATER
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
using System;
namespace UniRx.Async
{
public partial struct UniTask
{
static readonly UniTask FromCanceledUniTask = new Func<UniTask>(()=>
{
var promise = new Promise<As... | #if CSHARP_7_OR_LATER
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
using System;
namespace UniRx.Async
{
public partial struct UniTask
{
public static UniTask CompletedTask
{
get
{
return new UniTask();
... | mit | C# |
c5ba3236073d89219fe11c11172b0d4dbd28788d | Add test | sakapon/Blaze | Blaze/UnitTest/Randomization/Lab/RandomNumbersTest.cs | Blaze/UnitTest/Randomization/Lab/RandomNumbersTest.cs | using System;
using Blaze.Randomization.Lab;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTest.Randomization.Lab
{
[TestClass]
public class RandomNumbersTest
{
[TestMethod]
public void GenerateByte_1()
{
for (var i = 0; i < 100; i++)
... | using System;
using Blaze.Randomization.Lab;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTest.Randomization.Lab
{
[TestClass]
public class RandomNumbersTest
{
[TestMethod]
public void GenerateDouble_From0To1_1()
{
for (var i = 0; i < 10... | mit | C# |
682455e4fc3d0db782a89eab4456d4c930d886c2 | Update List of ConnectorTypes to be compatible with ISOBUS.net List | ADAPT/ADAPT | source/ADAPT/Equipment/ConnectorTypeEnum.cs | source/ADAPT/Equipment/ConnectorTypeEnum.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.0... | /*******************************************************************************
* 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.0... | epl-1.0 | C# |
f9ecd4fde27cb7b752598478ff6aef81a0e2e7ea | Fix some buggy behaviors in the BodyCollider. | jguarShark/Unity2D-Components,cmilr/Unity2D-Components | Actor/BodyCollider.cs | Actor/BodyCollider.cs | using UnityEngine;
using System.Collections;
using Matcha.Lib;
[RequireComponent(typeof(BoxCollider2D))]
public class BodyCollider : CacheBehaviour
{
private bool alreadyCollided;
private PickupEntity pickupEntity;
private EntityBehaviour entityBehaviour;
// private CharacterEntity charEntity;
void Start()
... | using UnityEngine;
using System.Collections;
using Matcha.Lib;
[RequireComponent(typeof(BoxCollider2D))]
public class BodyCollider : CacheBehaviour
{
private bool alreadyCollided;
private PickupEntity pickupEntity;
private CharacterEntity charEntity;
void Start()
{
base.CacheComponents();
MLib2D.IgnoreL... | mit | C# |
e82e171ce642347c7a3d987404b17c1e5905e8ae | Fix weightless (#9939) | 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.Shared/Gravity/SharedGravitySystem.cs | Content.Shared/Gravity/SharedGravitySystem.cs | using Content.Shared.Clothing;
using Content.Shared.Inventory;
using Content.Shared.Movement.Components;
using Robust.Shared.Map;
using Robust.Shared.Physics;
namespace Content.Shared.Gravity
{
public abstract class SharedGravitySystem : EntitySystem
{
[Dependency] private readonly IMapManager _mapMana... | using Content.Shared.Clothing;
using Content.Shared.Inventory;
using Content.Shared.Movement.Components;
using Robust.Shared.Map;
using Robust.Shared.Physics;
namespace Content.Shared.Gravity
{
public abstract class SharedGravitySystem : EntitySystem
{
[Dependency] private readonly IMapManager _mapMana... | mit | C# |
e3b35b9050cb6f70fdafbd9071bead0b68d2118d | Update ConvertTableToRange.cs | maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,maria-sh... | Examples/CSharp/Tables/ConvertTableToRange.cs | Examples/CSharp/Tables/ConvertTableToRange.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Tables
{
public class ConvertTableToRange
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetData... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Tables
{
public class ConvertTableToRange
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System.Reflection.Me... | mit | C# |
8146673f189de1e6a0671c4e8262751825dccffd | Use System.HashCode. | ryanjfitz/SimpSim.NET | SimpSim.NET/Instruction.cs | SimpSim.NET/Instruction.cs | using System;
using System.Collections.Generic;
namespace SimpSim.NET
{
public class Instruction : IEquatable<Instruction>
{
public Instruction(byte byte1, byte byte2)
{
Bytes = new[] { byte1, byte2 };
}
public IReadOnlyList<byte> Bytes { get; }
public byt... | using System;
using System.Collections.Generic;
namespace SimpSim.NET
{
public class Instruction : IEquatable<Instruction>
{
public Instruction(byte byte1, byte byte2)
{
Bytes = new[] { byte1, byte2 };
}
public IReadOnlyList<byte> Bytes { get; }
public byt... | mit | C# |
5e9c3963d6e998f361fd67a6a8231343ec34b8fe | Fix Device View | MagedAlNaamani/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,MagedAlNaamani/DynThings | DynThings.WebPortal/Views/DeviceCommands/Index.cshtml | DynThings.WebPortal/Views/DeviceCommands/Index.cshtml | @model IEnumerable<DynThings.Data.Models.DeviceCommand>
@{
ViewBag.Title = "DeviceCommands";
}
<div class="container">
<div class="page-header">
<h1>Device's Commands</h1>
</div>
<div class="row">
<div class="col-md-6">
<button type="button" class="btn btn-info" onclick="Loa... | @model IEnumerable<DynThings.Data.Models.DeviceCommand>
@{
ViewBag.Title = "DeviceCommands";
}
<div class="container">
<div class="page-header">
<h1>Device's Commands</h1>
</div>
<div class="row">
<div class="col-md-6">
<button type="button" class="btn btn-info" onclick="Loa... | mit | C# |
5079180529aaef6a88bc1bc9e8c31af3e5fbba75 | remove unused default in EnumEqualityStep | okobylianskyi/FluentAssertions,msackton/FluentAssertions,fluentassertions/fluentassertions,rstam/fluentassertions,dennisdoomen/fluentassertions,jnyrup/fluentassertions,zmaruo/fluentassertions,AlexanderSher/fluentassertions,fluentassertions/fluentassertions,piotrpMSFT/fluentassertions,ArsenShnurkov/fluentassertions,jero... | FluentAssertions.Core/Equivalency/EnumEqualityStep.cs | FluentAssertions.Core/Equivalency/EnumEqualityStep.cs | using System;
using System.Globalization;
using System.Linq;
namespace FluentAssertions.Equivalency
{
internal class EnumEqualityStep : IEquivalencyStep
{
/// <summary>
/// Gets a value indicating whether this step can handle the current subject and/or expectation.
/// </summa... | using System;
using System.Globalization;
using System.Linq;
namespace FluentAssertions.Equivalency
{
internal class EnumEqualityStep : IEquivalencyStep
{
/// <summary>
/// Gets a value indicating whether this step can handle the current subject and/or expectation.
/// </summa... | apache-2.0 | C# |
8df4ccc74263023c7236f0a0e333a2a9117a4add | Set requestBody to string.empty by default to reduce some code | bnathyuw/SevenDigital.Api.Wrapper,danbadge/SevenDigital.Api.Wrapper,emashliles/SevenDigital.Api.Wrapper,danhaller/SevenDigital.Api.Wrapper,luiseduardohdbackup/SevenDigital.Api.Wrapper,gregsochanik/SevenDigital.Api.Wrapper,AnthonySteele/SevenDigital.Api.Wrapper,bettiolo/SevenDigital.Api.Wrapper,minkaotic/SevenDigital.Ap... | src/SevenDigital.Api.Wrapper/Requests/RequestBuilder.cs | src/SevenDigital.Api.Wrapper/Requests/RequestBuilder.cs | using System.Collections.Generic;
using OAuth;
using SevenDigital.Api.Wrapper.Http;
namespace SevenDigital.Api.Wrapper.Requests
{
public class RequestBuilder : IRequestBuilder
{
private readonly IOAuthCredentials _oAuthCredentials;
private readonly RouteParamsSubstitutor _routeParamsSubstitutor;
p... | using System.Collections.Generic;
using OAuth;
using SevenDigital.Api.Wrapper.Http;
namespace SevenDigital.Api.Wrapper.Requests
{
public class RequestBuilder : IRequestBuilder
{
private readonly IOAuthCredentials _oAuthCredentials;
private readonly RouteParamsSubstitutor _routeParamsSubstitutor;
p... | mit | C# |
ffd41fc544e893f19b6c25c055fb6720e5df383d | Load jQuery from Google CDN and add script to prompt IE6 users to install Chrome Frame (thieved from html5 boilerplate) | GiveCampUK/GiveCRM,GiveCampUK/GiveCRM | src/GiveCRM.Web/Views/Shared/_Layout.cshtml | src/GiveCRM.Web/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endi... | <!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endi... | mit | C# |
0930a2769b3da2bf76be9be9859ce0309a0fe520 | add Size property to GroupInfo | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Data/GroupInfo.cs | TCC.Core/Data/GroupInfo.cs | using System.Collections.Generic;
using System.Linq;
using TeraDataLite;
namespace TCC.Data
{
public class GroupInfo
{
public bool InGroup { get; private set; }
public bool IsRaid { get; private set; }
public bool AmILeader => Game.Me.Name == Leader.Name;
public int Size { get;... | using System.Collections.Generic;
using System.Linq;
using TeraDataLite;
namespace TCC.Data
{
public class GroupInfo
{
public bool InGroup { get; private set; }
public bool IsRaid { get; private set; }
public bool AmILeader => Game.Me.Name == Leader.Name;
private GroupMemberDa... | mit | C# |
b73aa145813d4d8aba4f2629ae40f9e9f35c4b9d | Remove unuseful usings | shannan1989/ShannanWPF | DoingWell/App.xaml.cs | DoingWell/App.xaml.cs | using System.Windows;
namespace Shnannan.DoingWell
{
public partial class App : Application
{
}
}
| using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Shnannan.DoingWell
{
public partial class App : Application
{
}
}
| apache-2.0 | C# |
9edc8486346545e43ceda7d8767ce7003f6ed0ac | Clean unnecessary using directives. | Quickshot/DupImageLib,Quickshot/DupImage | DupImage/ImageStruct.cs | DupImage/ImageStruct.cs | using System;
using System.IO;
namespace DupImage
{
/// <summary>
/// Structure for containing image information and hash values.
/// </summary>
public class ImageStruct
{
/// <summary>
/// Construct a new ImageStruct from FileInfo.
/// </summary>
/// <param name="f... | using System;
using System.Collections.Generic;
using System.IO;
namespace DupImage
{
/// <summary>
/// Structure for containing image information and hash values.
/// </summary>
public class ImageStruct
{
/// <summary>
/// Construct a new ImageStruct from FileInfo.
/// </s... | unknown | C# |
6e32e6040e37ab5602add4f5f21c40f88057ed80 | Remove unused import | crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin | SignInCheckIn/SignInCheckIn/App_Start/WebApiConfig.cs | SignInCheckIn/SignInCheckIn/App_Start/WebApiConfig.cs | using System.Configuration;
using System.Web.Http;
using System.Web.Http.Cors;
using Crossroads.ApiVersioning;
namespace SignInCheckIn
{
public static class WebApiConfig
{
public static ApiRouteProvider ApiRouteProvider = new ApiRouteProvider();
public static void Register(HttpConfiguration c... | using System.Configuration;
using System.Web.Http;
using System.Web.Http.Cors;
using Crossroads.ApiVersioning;
using Crossroads.ClientApiKeys;
namespace SignInCheckIn
{
public static class WebApiConfig
{
public static ApiRouteProvider ApiRouteProvider = new ApiRouteProvider();
public static v... | bsd-2-clause | C# |
54f0ab7b705f20dee3a07ffa8cebe3a097a7125b | Test fix- catching permission denied exceptions | tzachshabtay/MonoAGS | Source/Engine/AGS.Engine.Desktop/DesktopFileSystem.cs | Source/Engine/AGS.Engine.Desktop/DesktopFileSystem.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
namespace AGS.Engine.Desktop
{
public class DesktopFileSystem : IFileSystem
{
#region IFileSystem implementation
public string StorageFolder => Directory.GetCurrentDirectory(); //todo: find a suitable save l... | using System;
using System.Collections.Generic;
using System.IO;
namespace AGS.Engine.Desktop
{
public class DesktopFileSystem : IFileSystem
{
#region IFileSystem implementation
public string StorageFolder => Directory.GetCurrentDirectory(); //todo: find a suitable save location on desktop
... | artistic-2.0 | C# |
ef8105703be0a875c4cedb2f709be4b0aefe1826 | test selectors were not working on knockoutjs.com | mirabeau-nl/WbTstr.Net,jorik041/FluentAutomation,tablesmit/FluentAutomation,jorik041/FluentAutomation,jorik041/FluentAutomation,stirno/FluentAutomation,tablesmit/FluentAutomation,stirno/FluentAutomation,stirno/FluentAutomation,mirabeau-nl/WbTstr.Net,tablesmit/FluentAutomation | SourceCode/FluentAutomation.Tests/SeleniumBugTests.cs | SourceCode/FluentAutomation.Tests/SeleniumBugTests.cs | // <copyright file="SeleniumBugTests.cs" author="Brandon Stirnaman">
// Copyright (c) 2011 Brandon Stirnaman, All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using FluentAutomation.API.En... | // <copyright file="SeleniumBugTests.cs" author="Brandon Stirnaman">
// Copyright (c) 2011 Brandon Stirnaman, All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using FluentAutomation.API.En... | mit | C# |
6cbda108b8bca5d70f2212be520b52a80d5a3aa4 | Add validation for the country parameter length | Madhukarc/azure-sdk-tools,DinoV/azure-sdk-tools,Madhukarc/azure-sdk-tools,DinoV/azure-sdk-tools,antonba/azure-sdk-tools,johnkors/azure-sdk-tools,akromm/azure-sdk-tools,Madhukarc/azure-sdk-tools,akromm/azure-sdk-tools,markcowl/azure-sdk-tools,DinoV/azure-sdk-tools,antonba/azure-sdk-tools,markcowl/azure-sdk-tools,DinoV/a... | WindowsAzurePowershell/src/Management.Store/Cmdlet/GetAzureStoreAvailableAddOn.cs | WindowsAzurePowershell/src/Management.Store/Cmdlet/GetAzureStoreAvailableAddOn.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.