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 |
|---|---|---|---|---|---|---|---|---|
e466d5641e2f9afd4011a0d5a6d505bde9148d55 | Update Program.cs | Mattgyver317/GitTest1,Mattgyver317/GitTest1 | ConsoleApp1/ConsoleApp1/Program.cs | ConsoleApp1/ConsoleApp1/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
/* This code has been edited */
}
}
}
| 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# |
bc39da0bf72bdc056b2530b8028c3a0ec2698ab0 | Use proper HTTP client. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/WebClients/Wasabi/WasabiClientFactory.cs | WalletWasabi/WebClients/Wasabi/WasabiClientFactory.cs | using System;
using System.Net;
using WalletWasabi.Tor.Http;
namespace WalletWasabi.WebClients.Wasabi
{
/// <summary>
/// Factory class to create <see cref="WasabiClient"/> instances.
/// </summary>
public class WasabiClientFactory
{
/// <summary>
/// To detect redundant calls.
/// </summary>
private bool... | using System;
using System.Net;
using WalletWasabi.Tor.Http;
namespace WalletWasabi.WebClients.Wasabi
{
/// <summary>
/// Factory class to create <see cref="WasabiClient"/> instances.
/// </summary>
public class WasabiClientFactory
{
/// <summary>
/// To detect redundant calls.
/// </summary>
private bool... | mit | C# |
4accd17bfbfad3fdca4833aee176f9b61ae1de75 | Support multi field in select shell command | 89sos98/LiteDB,falahati/LiteDB,falahati/LiteDB,89sos98/LiteDB,mbdavid/LiteDB | LiteDB/Shell/Collections/Select.cs | LiteDB/Shell/Collections/Select.cs | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace LiteDB.Shell
{
internal class Select : BaseCollection, ICommand
{
public bool IsCommand(StringScanner s)
{
return this.IsCollectionCommand(s, "select");
}
... | using System;
using System.Collections.Generic;
namespace LiteDB.Shell
{
internal class Select : BaseCollection, ICommand
{
public bool IsCommand(StringScanner s)
{
return this.IsCollectionCommand(s, "select");
}
public IEnumerable<BsonValue> Execute(StringScanner ... | mit | C# |
a62f4df0b1044f4cd8ed69a5627541d91faa61e7 | Implement entry.ToString(), let it return entry.Key (#351) | adamhathcock/sharpcompress,adamhathcock/sharpcompress,adamhathcock/sharpcompress | src/SharpCompress/Common/Entry.cs | src/SharpCompress/Common/Entry.cs | using System;
using System.Collections.Generic;
namespace SharpCompress.Common
{
public abstract class Entry : IEntry
{
/// <summary>
/// The File's 32 bit CRC Hash
/// </summary>
public abstract long Crc { get; }
/// <summary>
/// The string key of the file in... | using System;
using System.Collections.Generic;
namespace SharpCompress.Common
{
public abstract class Entry : IEntry
{
/// <summary>
/// The File's 32 bit CRC Hash
/// </summary>
public abstract long Crc { get; }
/// <summary>
/// The string key of the file in... | mit | C# |
98c43bcc170b7de722d8331b4022c6d765a1822c | 更新版本号。 :relaxed: | Zongsoft/Zongsoft.Externals.Redis | src/Properties/AssemblyInfo.cs | src/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Zongsoft.Externals.Redis")]
[assembly: AssemblyDescription("This is a library about Redis SDK.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Zongsoft Corporation")]
[a... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Zongsoft.Externals.Redis")]
[assembly: AssemblyDescription("This is a library about Redis SDK.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Zongsoft Corporation")]
[a... | lgpl-2.1 | C# |
a5be9a77ba8eef4f0e22fb43fa74fa6bd1d6cd0b | Build script now creates individual zip file packages to align with the NuGet packages and semantic versioning. | autofac/Autofac.Extras.AggregateService | 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# |
f55f32fdb83ff51a89488f35707223ebd9fb5c14 | Make LocalizedString a class | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.Extensions.Localization.Abstractions/LocalizedString.cs | src/Microsoft.Extensions.Localization.Abstractions/LocalizedString.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.Extensions.Localization
{
/// <summary>
/// A locale specific string.
/// </summary>
public class L... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.Extensions.Localization
{
/// <summary>
/// A locale specific string.
/// </summary>
public struct ... | apache-2.0 | C# |
213b28e66da469a1d91a1e0b0242250c99620fec | Use Utc time in DailyMoneyRepository. | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW | src/MitternachtBot/Database/Repositories/Impl/DailyMoneyRepository.cs | src/MitternachtBot/Database/Repositories/Impl/DailyMoneyRepository.cs | using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Mitternacht.Database.Models;
namespace Mitternacht.Database.Repositories.Impl {
public class DailyMoneyRepository : Repository<DailyMoney>, IDailyMoneyRepository {
public DailyMoneyRepository(DbContext context) : base(context) { }
public... | using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Mitternacht.Database.Models;
namespace Mitternacht.Database.Repositories.Impl {
public class DailyMoneyRepository : Repository<DailyMoney>, IDailyMoneyRepository {
public DailyMoneyRepository(DbContext context) : base(context) { }
public... | mit | C# |
5718d40d5e3865e4de04f0eacb95ff31616b1d20 | fix StartSuccessfully test | takenet/messaginghub-client-csharp | src/Takenet.MessagingHub.Client.Test/MessagingHubClientTests_Start.cs | src/Takenet.MessagingHub.Client.Test/MessagingHubClientTests_Start.cs | using System;
using NUnit.Framework;
using System.Threading.Tasks;
using Shouldly;
using Takenet.MessagingHub.Client.Connection;
namespace Takenet.MessagingHub.Client.Test
{
[TestFixture]
internal class MessagingHubClientTests_Start : MessagingHubClientTestBase
{
[SetUp]
public void TestSe... | using System;
using NUnit.Framework;
using System.Threading.Tasks;
using Shouldly;
using Takenet.MessagingHub.Client.Connection;
namespace Takenet.MessagingHub.Client.Test
{
[TestFixture]
internal class MessagingHubClientTests_Start : MessagingHubClientTestBase
{
[SetUp]
public void TestSe... | apache-2.0 | C# |
28ef1eeaa068d6e550821ecfc84cf0060d301d05 | Fix failing test | kswoll/npeg | PEG.Samples/Lengths/LengthTests.cs | PEG.Samples/Lengths/LengthTests.cs | using NUnit.Framework;
namespace PEG.Samples.Lengths
{
[TestFixture]
public class LengthTests
{
[Test]
public void IntegerDecimal()
{
var s = "5.5'";
var length = Length.Parse(s);
Assert.AreEqual(5.5, length.Feet);
}
[Test]
... | using NUnit.Framework;
namespace PEG.Samples.Lengths
{
[TestFixture]
public class LengthTests
{
[Test]
public void IntegerDecimal()
{
var s = "5.5'";
var length = Length.Parse(s);
Assert.AreEqual(5.5, length.Feet);
}
[Test]
... | mit | C# |
e36dd9afa533b153fc42e7ec7cc05aec6fcc462e | undo using ... | ignatandrei/stankins,ignatandrei/stankins,ignatandrei/stankins,ignatandrei/stankins,ignatandrei/stankins,ignatandrei/stankins | StankinsTests/TestTransformRow.cs | StankinsTests/TestTransformRow.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using StankinsInterfaces;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Transformers;
namespace StankinsTests
{
[TestClass]
public class TestTransformRow
{
[TestMethod]
p... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using StankinsInterfaces;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Transformers;
using Transformers.BasicTransformersType;
namespace StankinsTests
{
[TestClass]
public class TestTransfo... | mit | C# |
90ebabd2db4c94edddc20eb134f75a1426dee9b3 | Fix nullref | DrabWeb/osu,ppy/osu,naoey/osu,naoey/osu,ZLima12/osu,DrabWeb/osu,EVAST9919/osu,ppy/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,NeoAdonis/osu,ZLima12/osu,DrabWeb/osu,2yangk23/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,2yangk23/osu,peppy/osu,EVAST9919/osu,peppy/osu,smoogipoo/osu,UselessToucan/o... | osu.Game/Skinning/SkinReloadableDrawable.cs | osu.Game/Skinning/SkinReloadableDrawable.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;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Skinning
{
/// <summary>
/// A drawable which has a c... | // 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;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Skinning
{
/// <summary>
/// A drawable which has a c... | mit | C# |
fed19228f5791003d523bfd983a36f4abfec5a99 | store Json/Start/Length. | PenguinF/sandra-three | Sandra.UI.WF/Storage/JsonSyntax.cs | Sandra.UI.WF/Storage/JsonSyntax.cs | #region License
/*********************************************************************************
* JsonSyntax.cs
*
* Copyright (c) 2004-2018 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | #region License
/*********************************************************************************
* JsonSyntax.cs
*
* Copyright (c) 2004-2018 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | apache-2.0 | C# |
488393861325fcb2bb55183abcfd3cdca6662255 | Put some explanation into Relative.cshtml. | LorandBiro/OctoPack.Precompile,LorandBiro/OctoPack.Precompile | TestWebApplication/Relative.cshtml | TestWebApplication/Relative.cshtml | @{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<title>OctoPack.Precompile</title>
</head>
<body>
<p>This page is for testing linked files. Intentionally placed outside of the project.</p>
</body>
</html>
| @{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<title>OctoPack.Precompile</title>
</head>
<body>
<p>This is a test website with a Razor view page to test the precompilation.</p>
<ul>
@for (int i = 1; i <= 10; i++)
{
<li>@i</li>
}
</ul>
</body>
</html>
| mit | C# |
18d930d24d4ba22f7d3be44bafd803d02d9b8065 | Fix AssemblyInfo | MarkKhromov/The-Log | TheLog/Properties/AssemblyInfo.cs | TheLog/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("The Log")]
[assembly: AssemblyProduct("The Log")]
[assembly: AssemblyCopyright("Copyright © Mark Khromov 2017")]
[assembly: AssemblyDescription("Library for logging.")]
[assembly: ComVisible(false)]
[assembly: Guid("968ef723-0186... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("The Log")]
[assembly: AssemblyProduct("Th eLog")]
[assembly: AssemblyCopyright("Copyright © Mark Khromov 2017")]
[assembly: ComVisible(false)]
[assembly: Guid("968ef723-0186-4600-9c3b-674f480f7333")]
[assembly: AssemblyVersion("1... | mit | C# |
98e6f40fbf690eb14e95be6306561ca7454806e7 | add constructor to Game.cs | svmnotn/friendly-guacamole | Assets/src/data/Game.cs | Assets/src/data/Game.cs | using System.Collections.Generic;
public class Game {
List<Player> players;
Player curr;
Dictionary<Vector, Grid> map;
public Game(List<Player> players) {
this.players = players;
curr = players.ToArray () [0];
map = new Dictionary<Vector, Grid> ();
map.Add (new Vector (0, 0), new Grid ());
}
}
| using System.Collections.Generic;
public class Game {
List<Player> players;
Player curr;
Dictionary<Vector, Grid> map;
}
| mit | C# |
f3572d9f72acb4f16e8c66f1757c37b7aecbf1d8 | Update standard submission status types | openchargemap/ocm-system,openchargemap/ocm-system,openchargemap/ocm-system,openchargemap/ocm-system | API/OCM.Net/OCM.API.Model/Base/CoreReferenceData.cs | API/OCM.Net/OCM.API.Model/Base/CoreReferenceData.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace OCM.API.Common.Model
{
public enum StandardDataProviders
{
OpenChargeMapContrib = 1
}
public enum StandardOperators
{
UnknownOperator = 0
}
public enum StandardUsageTypes
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace OCM.API.Common.Model
{
public enum StandardDataProviders
{
OpenChargeMapContrib = 1
}
public enum StandardOperators
{
UnknownOperator = 0
}
public enum StandardU... | mit | C# |
836a068e3c7ba0243dfb292df8976d7926999344 | Fix dangling reference to forthcoming DatumToStringVisitor | Sunlighter/CanonicalTypes | CanonicalTypes/Datum.cs | CanonicalTypes/Datum.cs | using System;
using CanonicalTypes.Parsing;
namespace CanonicalTypes
{
public abstract class Datum
{
public abstract DatumType DatumType { get; }
public abstract T Visit<T>(IDatumVisitor<T> visitor);
public abstract T Visit<T>(IDatumVisitorWithState<T> visitor, T state);
pub... | using System;
using CanonicalTypes.Parsing;
namespace CanonicalTypes
{
public abstract class Datum
{
public abstract DatumType DatumType { get; }
public abstract T Visit<T>(IDatumVisitor<T> visitor);
public abstract T Visit<T>(IDatumVisitorWithState<T> visitor, T state);
pub... | apache-2.0 | C# |
032a1a754891b795bc320e4dc35a0bb8314f499b | Fix Alphabet component solver | samfun123/KtaneTwitchPlays,CaitSith2/KtaneTwitchPlays | Assets/Scripts/ComponentSolvers/Modded/Misc/AlphabetComponentSolver.cs | Assets/Scripts/ComponentSolvers/Modded/Misc/AlphabetComponentSolver.cs | using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AlphabetComponentSolver : ComponentSolver
{
public AlphabetComponentSolver(BombCommander bombCommander, MonoBehaviour bombComponent, IRCConnection ircConnection, CoroutineCanceller canceller) :... | using System;
using System.Linq;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AlphabetComponentSolver : ComponentSolver
{
public AlphabetComponentSolver(BombCommander bombCommander, MonoBehaviour bombComponent, IRCConnection ircConnection, Corout... | mit | C# |
869814580a8bea2e3ad2f8696929cd15f9a69b0a | Use List because IList isn't supported by FX.Configuration | InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET | IntegrationEngine.Core/Configuration/IntegrationPointConfigurations.cs | IntegrationEngine.Core/Configuration/IntegrationPointConfigurations.cs | using System;
using System.Collections.Generic;
namespace IntegrationEngine.Core.Configuration
{
public class IntegrationPointConfigurations
{
public List<MailConfiguration> Mail { get; set; }
public List<RabbitMQConfiguration> RabbitMQ { get; set; }
public List<ElasticsearchConfigurat... | using System;
using System.Collections.Generic;
namespace IntegrationEngine.Core.Configuration
{
public class IntegrationPointConfigurations
{
public IList<MailConfiguration> Mail { get; set; }
public IList<RabbitMQConfiguration> RabbitMQ { get; set; }
public IList<ElasticsearchConfigu... | mit | C# |
cc23065579a63426bd0a40488e68b4b99ff41034 | Reformat exception throwing statements | dirkrombauts/SpecLogLogoReplacer | UI/ViewModel/SpecLogTransformer.cs | UI/ViewModel/SpecLogTransformer.cs | using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO.Abstractions;
namespace SpecLogLogoReplacer.UI.ViewModel
{
public class SpecLogTransformer : ISpecLogTransformer
{
private readonly IFileSystem fileSystem;
public SpecLogTransformer()
: this (new FileSystem())
{
... | using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO.Abstractions;
namespace SpecLogLogoReplacer.UI.ViewModel
{
public class SpecLogTransformer : ISpecLogTransformer
{
private readonly IFileSystem fileSystem;
public SpecLogTransformer()
: this (new FileSystem())
{
... | isc | C# |
f63f3992ab4da74d21317970ae3b87b3483920e6 | Update AlphaStreamsSlippageModel.cs | QuantConnect/Lean,StefanoRaggi/Lean,StefanoRaggi/Lean,JKarathiya/Lean,AlexCatarino/Lean,QuantConnect/Lean,jameschch/Lean,jameschch/Lean,jameschch/Lean,QuantConnect/Lean,StefanoRaggi/Lean,JKarathiya/Lean,AlexCatarino/Lean,AlexCatarino/Lean,QuantConnect/Lean,AlexCatarino/Lean,StefanoRaggi/Lean,jameschch/Lean,StefanoRaggi... | Common/Orders/Slippage/AlphaStreamsSlippageModel.cs | Common/Orders/Slippage/AlphaStreamsSlippageModel.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 ... | /*
* 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 ... | apache-2.0 | C# |
32daea67f5c95addef13024060eb0999c745c234 | Update CalculatingFormulasOnce.cs | aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-sha... | Examples/CSharp/Formulas/CalculatingFormulasOnce.cs | Examples/CSharp/Formulas/CalculatingFormulasOnce.cs | using System.IO;
using Aspose.Cells;
using System;
namespace Aspose.Cells.Examples.Formulas
{
public class CalculatingFormulasOnce
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Ex... | using System.IO;
using Aspose.Cells;
using System;
namespace Aspose.Cells.Examples.Formulas
{
public class CalculatingFormulasOnce
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(... | mit | C# |
c47953872eecc1c6ef5fa7208415351f0ed5eafe | fix argument null ex on mono | ntent-ad/Metrics.NET,huoxudong125/Metrics.NET,Liwoj/Metrics.NET,ntent-ad/Metrics.NET,alhardy/Metrics.NET,alhardy/Metrics.NET,etishor/Metrics.NET,huoxudong125/Metrics.NET,DeonHeyns/Metrics.NET,MetaG8/Metrics.NET,Liwoj/Metrics.NET,MetaG8/Metrics.NET,cvent/Metrics.NET,Recognos/Metrics.NET,DeonHeyns/Metrics.NET,mnadel/Metr... | Src/Metrics/PerfCounters/PerformanceCounterGauge.cs | Src/Metrics/PerfCounters/PerformanceCounterGauge.cs | using System;
using System.Diagnostics;
namespace Metrics.PerfCounters
{
public class PerformanceCounterGauge : Gauge
{
private static readonly Func<float, string> DefaultFormat = f => f.ToString("F");
private readonly Func<float, string> format;
private readonly PerformanceCounter pe... | using System;
using System.Diagnostics;
namespace Metrics.PerfCounters
{
public class PerformanceCounterGauge : Gauge
{
private static readonly Func<float, string> DefaultFormat = f => f.ToString("F");
private readonly Func<float, string> format;
private readonly PerformanceCounter pe... | apache-2.0 | C# |
b94580f76725affbf30e3547ae942e4ed61be778 | fix spawner | CallumCode/KaosGiraffe-,CallumCode/KaosGiraffe- | JamTestBed/Assets/Scripts/Spawner.cs | JamTestBed/Assets/Scripts/Spawner.cs | using UnityEngine;
using System.Collections;
public class Spawner : MonoBehaviour {
public GameObject EnemyPrefab;
public GameObject TreeManPrefab;
public GameObject SwarmHeadPrefab;
public GameObject TowerObject;
public float spawnRate = 10;
public float radius = 10;
private float spawnTimer = 0;
// Use... | using UnityEngine;
using System.Collections;
public class Spawner : MonoBehaviour {
public GameObject EnemyPrefab;
public GameObject TreeManPrefab;
public GameObject SwarmPrefab;
public GameObject TowerObject;
public float spawnRate = 10;
public float radius = 10;
private float spawnTimer = 0;
// Use thi... | mit | C# |
d49608ddd9aad7f2ef3c88ad3f6fa77c2aa00e6a | disable warnings in tests | dadhi/ImTools | test/ImTools.UnitTests/SomeTests.cs | test/ImTools.UnitTests/SomeTests.cs | using NUnit.Framework;
using System.Runtime.InteropServices;
#pragma warning disable CS0649
namespace ImTools.UnitTests
{
[TestFixture]
public class SomeTests
{
[Test]
public void I_can_cast_specialized_instance_to_the_generic_type()
{
var eInt = CreateEntry(42);
... | using NUnit.Framework;
using System.Runtime.InteropServices;
namespace ImTools.UnitTests
{
[TestFixture]
public class SomeTests
{
[Test]
public void I_can_cast_specialized_instance_to_the_generic_type()
{
var eInt = CreateEntry(42);
Assert.IsInstanceOf<IntEnt... | mit | C# |
c394c7d8a6a4b5fb9ec7b118af1e67babfe88344 | Remove setter | smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework | osu.Framework/Input/StateChanges/ISourcedFromTouch.cs | osu.Framework/Input/StateChanges/ISourcedFromTouch.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.Input.StateChanges.Events;
namespace osu.Framework.Input.StateChanges
{
/// <summary>
/// Denotes an input which was sourced from a touch eve... | // 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.Input.StateChanges.Events;
namespace osu.Framework.Input.StateChanges
{
/// <summary>
/// Denotes an input which was sourced from a touch eve... | mit | C# |
c68309ac4f977a7fc104038bdc1ec6c78b0f8e0b | Update TestSceneCatcherArea to use SkinnableTestScene | smoogipoo/osu,peppy/osu,NeoAdonis/osu,johnneijzen/osu,peppy/osu,2yangk23/osu,NeoAdonis/osu,2yangk23/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,UselessToucan/osu,smoogipoo/osu,EVAST9919/osu,ppy/osu,johnneijzen/osu,NeoAdonis/osu,ppy/osu,ppy/osu,smoogipooo/osu,EVAST9919/osu,peppy/osu-new,peppy/osu | osu.Game.Rulesets.Catch.Tests/TestSceneCatcherArea.cs | osu.Game.Rulesets.Catch.Tests/TestSceneCatcherArea.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Extensions.IEnumerableExten... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Beatmaps;
using osu.G... | mit | C# |
e558fd69d22fcf17dffce8e4b2d90b5c7042a513 | Remove unnecessary null check and associated comment | NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu | osu.Game/Tests/Visual/RateAdjustedBeatmapTestScene.cs | osu.Game/Tests/Visual/RateAdjustedBeatmapTestScene.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.
namespace osu.Game.Tests.Visual
{
/// <summary>
/// Test case which adjusts the beatmap's rate to match any speed adjustments in visual tests.
/// </summary>
... | // 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.Tests.Visual
{
/// <summary>
/// Test case which adjusts the beatmap's rate to match any speed adjustments in visual tests.
/// </summary>
... | mit | C# |
17e2aa4e50452a4fda021146c687264de355e963 | document QuickFixes property better | corngood/omnisharp-server,svermeulen/omnisharp-server,OmniSharp/omnisharp-server,mispencer/OmniSharpServer,x335/omnisharp-server,syl20bnr/omnisharp-server,x335/omnisharp-server,syl20bnr/omnisharp-server,corngood/omnisharp-server | OmniSharp/Common/QuickFixResponse.cs | OmniSharp/Common/QuickFixResponse.cs | using System.Collections.Generic;
using OmniSharp.Common;
namespace OmniSharp.Common {
/// <summary>
/// Base class for QuickFix-centered responses.
/// </summary>
public abstract class QuickFixResponse {
public QuickFixResponse() {}
public QuickFixResponse(IEnumerable<QuickFix> qu... | using System.Collections.Generic;
using OmniSharp.Common;
namespace OmniSharp.Common {
/// <summary>
/// Base class for QuickFix-centered responses.
/// </summary>
public abstract class QuickFixResponse {
public QuickFixResponse() {}
public QuickFixResponse(IEnumerable<QuickFix> qu... | mit | C# |
aaeaa39a407a101002c71e7b543281061a810afc | Update 0Basics.cs | iitjee/SteppinsMachineLearning,iitjee/SteppinsMachineLearning,iitjee/SteppinsMachineLearning | ENCOG/0Basics.cs | ENCOG/0Basics.cs | /*
- ENCOG is an advanced machine learning framework
- Machine learning algorithms such as Support Vector Machines, Artificial Neural Networks, Bayesian Networks, Hidden Markov Models, Genetic Programming and Genetic Algorithms are supported.
- Most Encog training algoritms are multi-threaded and scale well to multico... | /*
- ENCOG is an advanced machine learning framework
- Machine learning algorithms such as Support Vector Machines, Artificial Neural Networks, Bayesian Networks, Hidden Markov Models, Genetic Programming and Genetic Algorithms are supported.
- Most Encog training algoritms are multi-threaded and scale well to multico... | apache-2.0 | C# |
7c2d7f5939f3e6aec0b374969b11624d5890ff55 | Update Test project | yishn/GTPWrapper | GTPWrapperTest/Program.cs | GTPWrapperTest/Program.cs | using GTPWrapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GTPWrapperTest {
public class Program {
static void Main(string[] args) {
TestEngine engine = new TestEngine();
engine.NewCommand += engin... | using GTPWrapper;
using GTPWrapper.DataTypes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GTPWrapperTest {
public class Program {
static void Main(string[] args) {
Engine engine = new Engine("GTP\nWrapper\nTest",... | mit | C# |
4f36e5d6233f3582444caffe330cb9128f851fb5 | Fix message cleaning | glconti/awesome-bot,glconti/awesome-bot | awesome-bot/Dialogs/RootDialog.cs | awesome-bot/Dialogs/RootDialog.cs | using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Connector;
namespace awesome_bot.Dialogs
{
[Serializable]
public class RootDialog : IDialog<object>
{
public Task StartAsync(IDialogContext context)
{
context... | using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Connector;
namespace awesome_bot.Dialogs
{
[Serializable]
public class RootDialog : IDialog<object>
{
public Task StartAsync(IDialogContext context)
{
context... | mit | C# |
2e3d70650dfd718ccb20a4df4568c4ac305f4123 | Remove not common engine from base | wangkanai/Detection | src/Models/Engine.cs | src/Models/Engine.cs | // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
using System;
namespace Wangkanai.Detection.Models
{
[Flags]
public enum Engine
{
Unknown = 0, // Unknown engine
WebKit = 1, ... | // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
using System;
namespace Wangkanai.Detection.Models
{
[Flags]
public enum Engine
{
Unknown = 0, // Unknown engine
WebKit = 1, ... | apache-2.0 | C# |
d353cac77a7276b065cd230ccc5d69f0b57e9a02 | Fix misleading config in Webpack sample | reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET | src/React.Sample.Webpack.CoreMvc/Startup.cs | src/React.Sample.Webpack.CoreMvc/Startup.cs | using System;
using JavaScriptEngineSwitcher.ChakraCore;
using JavaScriptEngineSwitcher.Extensions.MsDependencyInjection;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
usi... | using System;
using JavaScriptEngineSwitcher.ChakraCore;
using JavaScriptEngineSwitcher.Extensions.MsDependencyInjection;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
usi... | mit | C# |
191d6e9bfd831cbf11a11580c1b99f56674650e9 | Refactor RemoveDuplicates: use HashSet and List | cdmihai/msbuild,mono/msbuild,chipitsine/msbuild,Microsoft/msbuild,sean-gilliam/msbuild,sean-gilliam/msbuild,jeffkl/msbuild,mono/msbuild,mono/msbuild,chipitsine/msbuild,rainersigwald/msbuild,rainersigwald/msbuild,sean-gilliam/msbuild,rainersigwald/msbuild,jeffkl/msbuild,AndyGerlicher/msbuild,rainersigwald/msbuild,Micros... | src/Tasks/ListOperators/RemoveDuplicates.cs | src/Tasks/ListOperators/RemoveDuplicates.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Microsoft.Build.Tasks
{
/// <summary>... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Microsoft.Build.Tasks
{
/// <summary>
///... | mit | C# |
f4c7eb14ec2436ff5aa551d951d3a9ce99c1c0fd | Add ScriptLoader.LoadResources with unlimited parameters | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck | Resources/ScriptLoader.cs | Resources/ScriptLoader.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Windows.Forms;
using System.Linq;
namespace TweetDck.Resources{
static class ScriptLoader{
public static string LoadResource(string name){
try{
return File.ReadAllText(Path.Combine(... | using System;
using System.IO;
using System.Text;
using System.Windows.Forms;
namespace TweetDck.Resources{
static class ScriptLoader{
public static string LoadResource(string name){
try{
return File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory,name),Encoding.... | mit | C# |
0359296d9dd5b4fd05bacee84d65159c39fd1f44 | add link name (accessibility) (#620) | reactiveui/website,reactiveui/website,reactiveui/website,reactiveui/website | input/_Scripts.cshtml | input/_Scripts.cshtml | <script type="text/javascript" src="/assets/js/anchor.min.js"></script>
<script type="text/javascript" src="/assets/js/clipboard.min.js"></script>
<script type="text/javascript">
anchors.options.placement = 'left';
anchors.add('.content h1:not(.no-anchor), .content h2:not(.no-anchor), .content h3:not(.no-anchor... | <script type="text/javascript" src="/assets/js/anchor.min.js"></script>
<script type="text/javascript" src="/assets/js/clipboard.min.js"></script>
<script type="text/javascript">
anchors.options.placement = 'left';
anchors.add('.content h1:not(.no-anchor), .content h2:not(.no-anchor), .content h3:not(.no-anchor... | mit | C# |
dbbe27e5613ae4e1134b85efc8cfb0039860f706 | Fix parsing in RenPyReturn. Fixes #47 | dpek/unity-raconteur,exodrifter/unity-raconteur | Assets/Raconteur/RenPy/Script/RenPyReturn.cs | Assets/Raconteur/RenPy/Script/RenPyReturn.cs | using UnityEngine;
using DPek.Raconteur.RenPy.State;
using DPek.Raconteur.Util.Parser;
namespace DPek.Raconteur.RenPy.Script
{
/// <summary>
/// Ren'Py return statement.
/// </summary>
public class RenPyReturn : RenPyStatement
{
[SerializeField]
private Expression m_expression;
private string m_expressio... | using UnityEngine;
using DPek.Raconteur.RenPy.State;
using DPek.Raconteur.Util.Parser;
namespace DPek.Raconteur.RenPy.Script
{
/// <summary>
/// Ren'Py return statement.
/// </summary>
public class RenPyReturn : RenPyStatement
{
[SerializeField]
private Expression m_expression;
private string m_expressio... | bsd-3-clause | C# |
18c97036945398421a9a94905e80eab607add7d9 | Fix APFT list sort by score | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Views/APFT/List.cshtml | Battery-Commander.Web/Views/APFT/List.cshtml | @model IEnumerable<APFT>
<div class="page-header">
<h1>APFT @Html.ActionLink("Add New", "New", "APFT", null, new { @class = "btn btn-default" })</h1>
</div>
<table class="table table-striped" id="dt">
<thead>
<tr>
<th>Soldier</th>
<th>Date</th>
<th>Score</th>
... | @model IEnumerable<APFT>
<div class="page-header">
<h1>APFT @Html.ActionLink("Add New", "New", "APFT", null, new { @class = "btn btn-default" })</h1>
</div>
<table class="table table-striped" id="dt">
<thead>
<tr>
<th>Soldier</th>
<th>Date</th>
<th>Score</th>
... | mit | C# |
751449731972b2cc928ba11d3dccd51f2698411f | Update Program.cs | wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors | samples/BehaviorsTestApplication.Desktop/Program.cs | samples/BehaviorsTestApplication.Desktop/Program.cs | using System;
using Avalonia;
using Avalonia.ReactiveUI;
using Avalonia.Xaml.Interactions.Core;
using Avalonia.Xaml.Interactivity;
namespace BehaviorsTestApplication;
class Program
{
[STAThread]
private static void Main(string[] args)
{
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
... | using System;
using Avalonia;
using Avalonia.ReactiveUI;
using Avalonia.Xaml.Interactions.Core;
using Avalonia.Xaml.Interactivity;
namespace BehaviorsTestApplication;
class Program
{
[STAThread]
private static void Main(string[] args)
{
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
... | mit | C# |
f71eb66e583e978fe9f68bf68f3399b07ff8718a | Create TermsJosnViewModel | lucasdavid/Gamedalf,lucasdavid/Gamedalf | Gamedalf/ViewModels/TermsViewModels.cs | Gamedalf/ViewModels/TermsViewModels.cs | using Gamedalf.Core.Attributes;
using System;
using System.ComponentModel.DataAnnotations;
namespace Gamedalf.ViewModels
{
public class TermsCreateViewModel
{
[Required]
[StringLength(100, MinimumLength = 1)]
public string Title { get; set; }
[Required]
pu... | using Gamedalf.Core.Attributes;
using System.ComponentModel.DataAnnotations;
namespace Gamedalf.ViewModels
{
public class TermsCreateViewModel
{
[Required]
[StringLength(100, MinimumLength = 1)]
public string Title { get; set; }
[Required]
public string Con... | mit | C# |
20e9bcdc9669a18c9285a41ec6b9c5d96f19e44e | Implement General AnimationEvent | umm-projects/animationevent_dispatcher | Assets/Scripts/UnityModule/AnimationEventDispatcher/GeneralDispatcher.cs | Assets/Scripts/UnityModule/AnimationEventDispatcher/GeneralDispatcher.cs | using UniRx;
using UnityEngine;
namespace UnityModule.AnimationEventDispatcher {
/// <summary>
/// 汎用ディスパッチャ
/// </summary>
public class GeneralDispatcher : Base {
/// <summary>
/// 汎用イベント名: アニメーション開始
/// </summary>
private const string ANIMATION_EVENT_NAME_BEGIN_ANIM... | using UnityEngine;
namespace UnityModule.AnimationEventDispatcher {
/// <summary>
/// 汎用ディスパッチャ
/// </summary>
public class GeneralDispatcher : Base {
/// <summary>
/// AnimationEvent を Dispatch する
/// </summary>
/// <param name="animationEvent">Inspector で設定する情報を含んだ ... | mit | C# |
32f5639265d45346b36f8a9c58b66c4bc8ef6305 | remove failing, invalid tests | j2ghz/IntranetGJAK,j2ghz/IntranetGJAK | UnitTests/Class1.cs | UnitTests/Class1.cs | using IntranetGJAK.Controllers;
using Xunit;
namespace UnitTests
{
// This project can output the Class library as a NuGet Package.
// To enable this option, right-click on the project and select the Properties menu item. In the Build tab select "Produce outputs on build".
public class Home
{
... | using IntranetGJAK.Controllers;
using Xunit;
namespace UnitTests
{
// This project can output the Class library as a NuGet Package.
// To enable this option, right-click on the project and select the Properties menu item. In the Build tab select "Produce outputs on build".
public class Home
{
... | agpl-3.0 | C# |
056de509b6f796a1c4cb6639416ee119b4fa883f | fix main activity title | SabotageAndi/ELMAR | net.the-engineers.elmar/elmar.droid/MainActivity.cs | net.the-engineers.elmar/elmar.droid/MainActivity.cs | using System;
using Android.App;
using Android.Content;
using Android.Widget;
using Android.OS;
using elmar.droid.Common;
using elmar.droid.Voice;
using TinyIoC;
namespace elmar.droid
{
[Activity(Label = "E.L.M.A.R.", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activ... | using System;
using Android.App;
using Android.Content;
using Android.Widget;
using Android.OS;
using elmar.droid.Common;
using elmar.droid.Voice;
using TinyIoC;
namespace elmar.droid
{
[Activity(Label = "elmar.droid", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Acti... | agpl-3.0 | C# |
42ac0c72eac12ea39415f9bc9926adcc5a1a6ff6 | Fix grammer issue and more rewording | NeoAdonis/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipooo/osu,peppy/osu-new,ppy/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu | osu.Game.Rulesets.Catch/Skinning/CatchSkinColour.cs | osu.Game.Rulesets.Catch/Skinning/CatchSkinColour.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.
namespace osu.Game.Rulesets.Catch.Skinning
{
public enum CatchSkinColour
{
/// <summary>
/// The colour to be used for the catcher while in hyper-... | // 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.Catch.Skinning
{
public enum CatchSkinColour
{
/// <summary>
/// The colour to be used for the catcher while on hyper-... | mit | C# |
da996ffe748d2d30821284f1ccf48ad0fa0d193d | Update header breadcrumb tab control | EVAST9919/osu,UselessToucan/osu,smoogipoo/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,EVAST9919/osu,ppy/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu-new,peppy/osu,peppy/osu | osu.Game/Overlays/BreadcrumbControlOverlayHeader.cs | osu.Game/Overlays/BreadcrumbControlOverlayHeader.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Over... | // 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.Graphics;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays
{
public abstract class... | mit | C# |
242069ef77eb1a669da75038e521706b015dd409 | fix branch create and delete by name test | maikebing/NGitLab,Xarlot/NGitLab | NGitLab/NGitLab/Models/BranchCreate.cs | NGitLab/NGitLab/Models/BranchCreate.cs | using System.Runtime.Serialization;
namespace NGitLab.Models {
[DataContract]
public class BranchCreate {
[DataMember(Name = "branch")]
public string Name { get; set; }
[DataMember(Name = "ref")]
public string Ref { get; set; }
}
} | using System.Runtime.Serialization;
namespace NGitLab.Models {
[DataContract]
public class BranchCreate {
[DataMember(Name = "branch_name")]
public string Name { get; set; }
[DataMember(Name = "ref")]
public string Ref { get; set; }
}
} | mit | C# |
df1befdc0a8441580312f4a67c875c1e1330265a | Fix UpdatedAt typo in MergeRequest model (#32) | maikebing/NGitLab,Xarlot/NGitLab | NGitLab/NGitLab/Models/MergeRequest.cs | NGitLab/NGitLab/Models/MergeRequest.cs | using System;
using System.Runtime.Serialization;
namespace NGitLab.Models
{
[DataContract]
public class MergeRequest
{
public const string Url = "/merge_requests";
[DataMember(Name = "id")]
public int Id;
[DataMember(Name = "iid")]
public int Iid;
[Data... | using System;
using System.Runtime.Serialization;
namespace NGitLab.Models
{
[DataContract]
public class MergeRequest
{
public const string Url = "/merge_requests";
[DataMember(Name = "id")]
public int Id;
[DataMember(Name = "iid")]
public int Iid;
[Data... | mit | C# |
ebb58caa0fe96d21761585091c765bb97ff0b847 | add locker to .net40 thing | cartermp/dnx-apps | libs/lib/src/Lib/Lib.cs | libs/lib/src/Lib/Lib.cs | using System;
#if NET40
using System.Net;
#else
using System.Net.Http;
using System.Threading.Tasks;
#endif
using System.Text.RegularExpressions;
namespace Lib
{
public class Library
{
#if NET40
private readonly WebClient _client = new WebClient();
private readonly object _locker = new object... | using System;
#if NET40
using System.Net;
#else
using System.Net.Http;
using System.Threading.Tasks;
#endif
using System.Text.RegularExpressions;
namespace Lib
{
public class Library
{
#if NET40
private readonly WebClient _client = new WebClient();
#else
private readonly HttpClient _client = ... | mit | C# |
e9c93b2ed5ba2cf03778baa4ced05389df8adf25 | Add null check to RemoteCollection | gep13/GitVersion,gep13/GitVersion,GitTools/GitVersion,asbjornu/GitVersion,asbjornu/GitVersion,GitTools/GitVersion | src/GitVersion.LibGit2Sharp/Git/RemoteCollection.cs | src/GitVersion.LibGit2Sharp/Git/RemoteCollection.cs | using GitVersion.Extensions;
namespace GitVersion;
internal sealed class RemoteCollection : IRemoteCollection
{
private readonly LibGit2Sharp.RemoteCollection innerCollection;
internal RemoteCollection(LibGit2Sharp.RemoteCollection collection)
=> this.innerCollection = collection.NotNull();
publ... | namespace GitVersion;
internal sealed class RemoteCollection : IRemoteCollection
{
private readonly LibGit2Sharp.RemoteCollection innerCollection;
internal RemoteCollection(LibGit2Sharp.RemoteCollection collection) => this.innerCollection = collection;
public IEnumerator<IRemote> GetEnumerator() => this.i... | mit | C# |
5a33775c5edc685b615cda2fd6e466605262e113 | Fix NuGet name typo | ctaggart/nuget,antiufo/NuGet2,akrisiun/NuGet,oliver-feng/nuget,GearedToWar/NuGet2,RichiCoder1/nuget-chocolatey,RichiCoder1/nuget-chocolatey,anurse/NuGet,alluran/node.net,alluran/node.net,mrward/nuget,themotleyfool/NuGet,pratikkagda/nuget,mrward/NuGet.V2,GearedToWar/NuGet2,chester89/nugetApi,pratikkagda/nuget,kumavis/Nu... | src/VisualStudio.Interop/Properties/AssemblyInfo.cs | src/VisualStudio.Interop/Properties/AssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyTitle("NuGet.VisualStudio.Interop")]
[assembly: AssemblyDescription("NuGet/Visual Studio interop assembly")]
// The version of this assembly should never be changed.
[assembly: AssemblyVersion("1.0.0.0")]
| using System.Reflection;
[assembly: AssemblyTitle("NuGet.VisualStudio.Interop")]
[assembly: AssemblyDescription("Nuget/Visual Studio interop assembly")]
// The version of this assembly should never be changed.
[assembly: AssemblyVersion("1.0.0.0")]
| apache-2.0 | C# |
5256e307dac183e913d511a5d208db45be39bdc6 | Update HeightCalculatorFromBones.cs | cwesnow/Net_Fiddle | 2017oct/HeightCalculatorFromBones.cs | 2017oct/HeightCalculatorFromBones.cs | // Original Source Information
// Author: GitGub on Reddit
// Link: https://www.reddit.com/r/learnprogramming/comments/77a49n/c_help_refactoring_an_ugly_method_with_lots_of_if/
// Refactored using .NET Fiddle - https://dotnetfiddle.net/YiG9XQ
using System;
public class Program
{
static Random random = new Rando... | // Original Source Information
// Author: GitGub on Reddit
// Link: https://www.reddit.com/r/learnprogramming/comments/77a49n/c_help_refactoring_an_ugly_method_with_lots_of_if/
// Refactored using .NET Fiddle - https://dotnetfiddle.net/F8UcJW
using System;
public class Program
{
static Random random = new Rando... | mit | C# |
ed93c410e9e325c0c022f97c7b9f6f2b1cfcff96 | Simplify Text.Advance's ability to protect against advancing beyond the end of the span. | plioi/parsley | src/Parsley/Text.cs | src/Parsley/Text.cs | namespace Parsley;
public ref struct Text
{
ReadOnlySpan<char> input;
public Text(ReadOnlySpan<char> input)
=> this.input = input;
public readonly ReadOnlySpan<char> Peek(int characters)
=> characters >= input.Length
? input.Slice(0)
: input.Slice(0, characters);
... | namespace Parsley;
public ref struct Text
{
ReadOnlySpan<char> input;
public Text(ReadOnlySpan<char> input)
=> this.input = input;
public readonly ReadOnlySpan<char> Peek(int characters)
=> characters >= input.Length
? input.Slice(0)
: input.Slice(0, characters);
... | mit | C# |
b0dcaeae528065cb3c93d1b646ffb11779e7c4a1 | Update Helpers.cs | scottolsonjr/scriptlink-core | Helpers.cs | Helpers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NTST.ScriptLinkService.Objects;
namespace ScriptLinkCore
{
public partial class ScriptLink
{
/// <summary>
/// Used set required fields
/// </summary>
/// <p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NTST.ScriptLinkService.Objects;
namespace ScriptLinkCore
{
public partial class ScriptLink
{
/// <summary>
/// Used set required fields
/// </summary>
/// <p... | mit | C# |
a48cf542e0cf0a8917cf99122b62f6ed043dceea | Fix exception | Branimir123/PhotoLife,Branimir123/PhotoLife,Branimir123/PhotoLife | PhotoLife/PhotoLife.Services/UserService.cs | PhotoLife/PhotoLife.Services/UserService.cs | using System;
using System.Linq;
using PhotoLife.Data.Contracts;
using PhotoLife.Models;
using PhotoLife.Services.Contracts;
namespace PhotoLife.Services
{
public class UserService : IUserService
{
private readonly IRepository<User> userRepository;
private readonly IUnitOfWork unitOfWork;
... | using System;
using System.Linq;
using PhotoLife.Data.Contracts;
using PhotoLife.Models;
using PhotoLife.Services.Contracts;
namespace PhotoLife.Services
{
public class UserService : IUserService
{
private readonly IRepository<User> userRepository;
private readonly IUnitOfWork unitOfWork;
... | mit | C# |
75a0e8213b7e679732ff3188cb2dc0f1b4e4f540 | Add PublishRequestAsync method with ContextConfigurator overload | lahma/MassTransit,abombss/MassTransit,jsmale/MassTransit,lahma/MassTransit,petedavis/MassTransit,vebin/MassTransit,vebin/MassTransit,abombss/MassTransit,ccellar/MassTransit,ccellar/MassTransit,lahma/MassTransit,D3-LucaPiombino/MassTransit,lahma/MassTransit,petedavis/MassTransit,ccellar/MassTransit,lahma/MassTransit,abo... | src/MassTransit/TaskExtensions.cs | src/MassTransit/TaskExtensions.cs | // Copyright 2007-2012 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// 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... | // Copyright 2007-2012 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// 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... | apache-2.0 | C# |
7e6b0dec2301259441732acb26a17c6d0d9cb6ce | remove test for absent ctor | icarus-consulting/Yaapii.Atoms | tests/Yaapii.Atoms.Tests/Enumerable/StringsTests.cs | tests/Yaapii.Atoms.Tests/Enumerable/StringsTests.cs | // MIT License
//
// Copyright(c) 2019 ICARUS Consulting GmbH
//
// 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 License
//
// Copyright(c) 2019 ICARUS Consulting GmbH
//
// 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# |
b651915ecc45ce395f46a39cfdd43472e4243e54 | correct doc remark | dgg/nmoneys,dgg/nmoneys | src/NMoneys/RemainderAllocator.cs | src/NMoneys/RemainderAllocator.cs | using NMoneys.Allocations;
namespace NMoneys
{
/// <summary>
/// Factory class for provided implementations of <see cref="IRemainderAllocator"/>
/// </summary>
public static class RemainderAllocator
{
/// <summary>
/// Allocate the remainder to the first known recipient and keep going in order towa... | using NMoneys.Allocations;
namespace NMoneys
{
/// <summary>
/// Factory class for provided implementations of <see cref="IRemainderAllocator"/>
/// </summary>
public static class RemainderAllocator
{
/// <summary>
/// Allocate the remainder to the first known recipient and keep going in order towa... | bsd-3-clause | C# |
7da8cc3c3e3e488cec93ea79f114766711f18ccb | Revise dropdowns for building unitypackages. | PlayFab/UnityEditorExtensions | Source/Assets/Editor/PlayFabEdExPackager.cs | Source/Assets/Editor/PlayFabEdExPackager.cs | using UnityEditor;
using UnityEngine;
namespace PlayFab.Internal
{
public static class PlayFabEdExPackager
{
private static readonly string[] SdkAssets = {
"Assets/PlayFabEditorExtensions"
};
[MenuItem("PlayFab/Testing/Build PlayFab EdEx UnityPackage")]
public static void B... | using UnityEditor;
using UnityEngine;
namespace PlayFab.Internal
{
public static class PlayFabEdExPackager
{
private static readonly string[] SdkAssets = {
"Assets/PlayFabEditorExtensions"
};
[MenuItem("PlayFab/Build PlayFab EdEx UnityPackage")]
public static void BuildUnit... | apache-2.0 | C# |
1fa8089a14669d89d398c5130cab8e0fa19ae1a1 | add assimp library | indyfree/MoleculeVR,indyfree/MoleculeVR,indyfree/MoleculeVR | Source/MeshGenerator/MeshGenerator.Build.cs | Source/MeshGenerator/MeshGenerator.Build.cs | // Fill out your copyright notice in the Description page of Project Settings.
using System.IO;
using System;
using UnrealBuildTool;
public class MeshGenerator : ModuleRules
{
private string ModulePath
{
get { return ModuleDirectory; }
}
private string ThirdPartyPath
{
get { retur... | // Fill out your copyright notice in the Description page of Project Settings.
using System.IO;
using System;
using UnrealBuildTool;
public class MeshGenerator : ModuleRules
{
private string ModulePath
{
get { return ModuleDirectory; }
}
private string ThirdPartyPath
{
get { retur... | mit | C# |
0d1f38844a4e6abdc801f88a097352c89e6c48c0 | Add helper | KirillOsenkov/MSBuildStructuredLog,KirillOsenkov/MSBuildStructuredLog | src/BinlogTool/Program.cs | src/BinlogTool/Program.cs | using System;
using System.IO;
using System.Linq;
namespace BinlogTool
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 3 && string.Equals(args[0], "savefiles", StringComparison.OrdinalIgnoreCase))
{
var binlog = args[1]... | using System;
using System.Linq;
namespace BinlogTool
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 3 && string.Equals(args[0], "savefiles", StringComparison.OrdinalIgnoreCase))
{
var binlog = args[1];
... | mit | C# |
90ef72e50defd269fdf4373f6eaf95c6b451b30a | Increase project version number to 0.11.0 | atata-framework/atata,YevgeniyShunevych/Atata,atata-framework/atata,YevgeniyShunevych/Atata | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("0... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("0... | apache-2.0 | C# |
704ed67970e9eab48ed1d4a81270c82255b4da81 | clean up code | IvanZheng/IFramework,IvanZheng/IFramework,IvanZheng/IFramework | Src/IFramework.Test/EntityFramework/User.cs | Src/IFramework.Test/EntityFramework/User.cs | using System;
using System.Collections.Generic;
using System.Text;
using IFramework.Domain;
using IFramework.Infrastructure;
using MongoDB.Bson.Serialization.Attributes;
namespace IFramework.Test.EntityFramework
{
public class User: TimestampedAggregateRoot
{
public string Id { get; protected set; }
... | using System;
using System.Collections.Generic;
using System.Text;
using IFramework.Domain;
using IFramework.Infrastructure;
using MongoDB.Bson.Serialization.Attributes;
namespace IFramework.Test.EntityFramework
{
public class User: TimestampedAggregateRoot
{
public string Id { get; protected set; }
... | mit | C# |
4246763ffa54cd9947cac3f84055b2007879e347 | Add version numbers | whampson/cascara,whampson/bft-spec | Src/WHampson.BFT/Properties/AssemblyInfo.cs | Src/WHampson.BFT/Properties/AssemblyInfo.cs | #region License
/* Copyright (c) 2017 Wes Hampson
*
* 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 License
/* Copyright (c) 2017 Wes Hampson
*
* 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# |
817c84b8f356dc668e96649df8ccdaf39ec8cb46 | change print stats | amiralles/contest,amiralles/contest | src/Contest.Core/Printer.cs | src/Contest.Core/Printer.cs | //#define DARK_TEXT
namespace Contest.Core {
using System;
using System.Collections.Generic;
using System.Diagnostics;
class Printer{
#if DARK_TEXT
static ConsoleColor Default = ConsoleColor.Black;
#else
static ConsoleColor Default = ConsoleColor.White;
#endif
static ConsoleColor Red = Con... | //#define DARK_TEXT
namespace Contest.Core {
using System;
using System.Collections.Generic;
using System.Diagnostics;
class Printer{
#if DARK_TEXT
static ConsoleColor Default = ConsoleColor.Black;
#else
static ConsoleColor Default = ConsoleColor.White;
#endif
static ConsoleColor Red = Con... | mit | C# |
d04c7998e7952a49bc8fdb2e5679d647bad0df3c | Use user displayfor on game page | joinrpg/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net | Joinrpg/Views/Game/Details.cshtml | Joinrpg/Views/Game/Details.cshtml | @*TODO: Have nice view model here, with Current user acls*@
@model JoinRpg.DataModel.Project
@{
ViewBag.Title = "Игра «"+ Model.ProjectName +"»";
}
<h2>@ViewBag.Title</h2>
<div>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.CreatedDate)
</dt>
<dd>
... | @*TODO: Have nice view model here, with Current user acls*@
@model JoinRpg.DataModel.Project
@{
ViewBag.Title = "Игра «"+ Model.ProjectName +"»";
}
<h2>@ViewBag.Title</h2>
<div>
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.CreatedDate)
</dt>
<dd>
... | mit | C# |
7f33cebce16fe34bb466c076b764059b35b9daea | Set version 1.0.17 | vdemydiuk/mtapi,vdemydiuk/mtapi,vdemydiuk/mtapi | MtApi5/Properties/AssemblyInfo.cs | MtApi5/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... | mit | C# |
06d0e58351339e06601cd5b3c7e73173aefc8041 | Fix for NdapiMetaObject.ChildObjectProperties | felipebz/ndapi | Ndapi/Metadata/NdapiMetaObject.cs | Ndapi/Metadata/NdapiMetaObject.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Ndapi.Metadata
{
public class NdapiMetaObject
{
private readonly Type _type;
private readonly Lazy<IEnumerable<NdapiMetaProperty>> _properties;
public string ClassName => _type.Name;
public IEnumerabl... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Ndapi.Metadata
{
public class NdapiMetaObject
{
private readonly Type _type;
private readonly Lazy<IEnumerable<NdapiMetaProperty>> _properties;
public string ClassName => _type.Name;
public IEnumerabl... | mit | C# |
36aa3a0e9d7efbe4282f07a813a1bfdd8e770221 | make createIndex and modifyIndex nullable | Pondidum/OctopusStore,Pondidum/OctopusStore | OctopusStore/Consul/ValueModel.cs | OctopusStore/Consul/ValueModel.cs | namespace OctopusStore.Consul
{
public class ValueModel
{
public int? CreateIndex { get; set; }
public int? ModifyIndex { get; set; }
public int LockIndex { get; set; }
public string Session { get; set; }
public string Key { get; set; }
public int Flags { get; set; }
public string Value { get; set; }... | namespace OctopusStore.Consul
{
public class ValueModel
{
public int CreateIndex { get; set; }
public int ModifyIndex { get; set; }
public int LockIndex { get; set; }
public string Key { get; set; }
public int Flags { get; set; }
public string Value { get; set; }
public string Session { get; set; }
}
... | lgpl-2.1 | C# |
28ebec8332b1dfae1d8258fe8c4f14f75262e3b3 | Check debugger is attached before writing something to it | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework | src/CSharpClient/Bit.CSharpClient.Prism/ViewModel/BitExceptionHandler.cs | src/CSharpClient/Bit.CSharpClient.Prism/ViewModel/BitExceptionHandler.cs | #define Debug
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Bit.ViewModel
{
public class BitExceptionHandler
{
public static BitExceptionHandler Current { get; set; } = new BitExceptionHandler();
public virtual void OnExceptionReceived(Exception exp, IDi... | #define Debug
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Bit.ViewModel
{
public class BitExceptionHandler
{
public static BitExceptionHandler Current { get; set; } = new BitExceptionHandler();
public virtual void OnExceptionReceived(Exception exp, IDi... | mit | C# |
1326905a3b85fc7a5ef81cc92ee9bbb7591001e1 | Use Any instead of Count > 0 | NicatorBa/Porthor | src/Porthor/ResourceRequestValidators/ContentValidators/JsonValidator.cs | src/Porthor/ResourceRequestValidators/ContentValidators/JsonValidator.cs | using Microsoft.AspNetCore.Http;
using NJsonSchema;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
namespace Porthor.ResourceRequestValidators.ContentValidators
{
/// <summary>
/// Request validator for json content.
/// </summary>
public cla... | using Microsoft.AspNetCore.Http;
using NJsonSchema;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
namespace Porthor.ResourceRequestValidators.ContentValidators
{
/// <summary>
/// Request validator for json content.
/// </summary>
public class JsonValidator : ... | apache-2.0 | C# |
754776cccae4a3bafb7b13c6b9fd74b11441e0ae | Edit deploy_local.csx | mrahhal/Migrator.EF6 | deploy_local.csx | deploy_local.csx | using System;
using System.IO;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.Linq;
var cd = Environment.CurrentDirectory;
var projectName = "Migrator.EF6.Tools";
var userName = Environment.UserName;
var userProfileDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfil... | using System;
using System.IO;
using System.Text.RegularExpressions;
using System.Diagnostics;
using System.Linq;
var cd = Environment.CurrentDirectory;
var projectName = "Migrator.EF6.Tools";
var userName = Environment.UserName;
var userProfileDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfil... | mit | C# |
9984debf927338698464f7e12a8d8e43109b2d7d | Revert "Fixed a bug where closing the quicknotes window then clicking show/hide quicknotes on the settings window would crash the program." | Saveyour-Team/Saveyour | Saveyour/Saveyour/Settings.xaml.cs | Saveyour/Saveyour/Settings.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | apache-2.0 | C# |
dce1e2c99b593e8b783365e81f178c4db4ef0c70 | update version? | TempoIQ/tempoiq-net,jcc333/tempoiq-net,selecsosi/tempoiq-net,TempoIQ/tempoiq-net,mrgaaron/tempoiq-net | TempoIQ/Properties/AssemblyInfo.cs | TempoIQ/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("Te... | 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("Te... | mit | C# |
032c78cccce46886424f97eeecf4474b0428169c | Update AssemblyInfo.cs | rosolko/WebDriverManager.Net | WebDriverManager/Properties/AssemblyInfo.cs | WebDriverManager/Properties/AssemblyInfo.cs | using System;
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("WebDriverManager.Net")]
[ass... | using System;
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("WebDriverManager.Net")]
[ass... | mit | C# |
dd5677a8d5cbcf1ca2f1735e78f2f5784b1e766a | use utf-8 file encoding for javascript files served by Kestrel | dotnet-toolbox/dotnet-toolbox,dotnet-toolbox/dotnet-toolbox,LukeWinikates/dotnet-toolbox,dotnet-toolbox/dotnet-toolbox,dotnet-toolbox/dotnet-toolbox,LukeWinikates/dotnet-toolbox,LukeWinikates/dotnet-toolbox,LukeWinikates/dotnet-toolbox | src/dotnet-toolbox.api/Startup.cs | src/dotnet-toolbox.api/Startup.cs | using Autofac;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Autofac.Extensions.DependencyInjection;
using System;
using Microsoft.AspNet.StaticFiles;
namespace dotnet_t... | using Autofac;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Autofac.Extensions.DependencyInjection;
using System;
namespace dotnet_toolbox.api
{
public class Startu... | mit | C# |
7afd3070790c362b2ed17fcc3179116e7639bbaa | Update parameters | sakapon/Samples-2015 | WpfSample/ProgressWpf/AppModel.cs | WpfSample/ProgressWpf/AppModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using KLibrary.Labs.ObservableModel;
namespace ProgressWpf
{
public class AppModel
{
public IGetOnlyProperty<double> ProgressValue { get; private set; }
public AppModel()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using KLibrary.Labs.ObservableModel;
namespace ProgressWpf
{
public class AppModel
{
public IGetOnlyProperty<double> ProgressValue { get; private set; }
public AppModel()
{
... | mit | C# |
2bee195a0ecf1463db96da13b32784ff655341b4 | Fix IconClass for WebConfigTransformRunnerTasks. | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/IconClasses.cs | source/Nuke.Common/IconClasses.cs | // Copyright Matthias Koch 2018.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using Nuke.Common;
using Nuke.Common.ChangeLog;
using Nuke.Common.Git;
using Nuke.Common.Gitter;
using Nuke.Common.Tools.CoverallsNet;
using Nuke.Common.Too... | // Copyright Matthias Koch 2018.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using Nuke.Common;
using Nuke.Common.ChangeLog;
using Nuke.Common.Git;
using Nuke.Common.Gitter;
using Nuke.Common.Tools.CoverallsNet;
using Nuke.Common.Too... | mit | C# |
2a09adf2f526b52a2aa3fd8bfb8cc500a5bdde14 | Add X.Is | vain0/EnumerableTest | EnumerableTest.Core/TestExtension.cs | EnumerableTest.Core/TestExtension.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using EnumerableTest.Sdk;
namespace EnumerableTest
{
/// <summary>
/// Provides extension methods related to <see cref="Test"/>.
/// </summary>
public stat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EnumerableTest.Sdk;
namespace EnumerableTest
{
/// <summary>
/// Provides extension methods related to <see cref="Test"/>.
/// </summary>
public static class TestExtension
{
... | mit | C# |
5d4e3b1cd9b84821422a5095e7b3605b585ef4f1 | Fix test | cbcrc/LinkIt | LinkIt.Tests/LookupIdContextTests.cs | LinkIt.Tests/LookupIdContextTests.cs | using LinkIt.Core;
using LinkIt.PublicApi;
using LinkIt.Tests.Shared;
using NUnit.Framework;
namespace LinkIt.Tests {
[TestFixture]
public class LookupIdContextTests {
private LookupIdContext _sut;
[SetUp]
public void SetUp()
{
_sut = new LookupIdContext();
... | using LinkIt.Core;
using LinkIt.PublicApi;
using LinkIt.Tests.Shared;
using NUnit.Framework;
namespace LinkIt.Tests {
[TestFixture]
public class LookupIdContextTests {
private ILookupIdContext _sut;
[SetUp]
public void SetUp()
{
_sut = new LookupIdContext();
... | mit | C# |
ec9ad7107d1262883aeac154bfe2ae4eeb861280 | Update AssemblyCopyright year (At somepoint it would be nice to update the source files, though that may have to wait until much later) | rover886/CefSharp,haozhouxu/CefSharp,zhangjingpu/CefSharp,illfang/CefSharp,AJDev77/CefSharp,rlmcneary2/CefSharp,twxstar/CefSharp,ITGlobal/CefSharp,gregmartinhtc/CefSharp,ITGlobal/CefSharp,Haraguroicha/CefSharp,zhangjingpu/CefSharp,wangzheng888520/CefSharp,yoder/CefSharp,AJDev77/CefSharp,joshvera/CefSharp,battewr/CefSha... | CefSharp/Properties/AssemblyInfo.cs | CefSharp/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using CefSharp;
using System;
[assembly: AssemblyTitle("CefSharp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assemb... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using CefSharp;
using System;
[assembly: AssemblyTitle("CefSharp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assemb... | bsd-3-clause | C# |
791ea9053123f9242aaacf3d34d7116618ff559e | Check it | ToBeerOrNotToBeer/Favor,ToBeerOrNotToBeer/Favor | Favor/Favor/Models/FavorModels/ListAllFavorsModel.cs | Favor/Favor/Models/FavorModels/ListAllFavorsModel.cs | using Favor.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Favor.Models.FavorModels
{
public class ListAllFavorsModel
{
public int Id { get; set; }
public string Title { get; set; }
public string Description { get; set; }
... | using Favor.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Favor.Models.FavorModels
{
public class ListAllFavorsModel
{
public int Id { get; set; }
public string Title { get; set; }
public string Description { get; set; }
... | mit | C# |
ec0a12eb0a74df3ba1a0f75a287e55319cdfa292 | Update EditAndContinueCapabilities.cs (#52935) | eriawan/roslyn,CyrusNajmabadi/roslyn,AmadeusW/roslyn,sharwell/roslyn,eriawan/roslyn,mavasani/roslyn,physhi/roslyn,sharwell/roslyn,mavasani/roslyn,diryboy/roslyn,weltkante/roslyn,KevinRansom/roslyn,CyrusNajmabadi/roslyn,mavasani/roslyn,bartdesmet/roslyn,eriawan/roslyn,physhi/roslyn,diryboy/roslyn,physhi/roslyn,weltkante... | src/Features/Core/Portable/EditAndContinue/EditAndContinueCapabilities.cs | src/Features/Core/Portable/EditAndContinue/EditAndContinueCapabilities.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 Microsoft.CodeAnalysis.EditAndContinue
{
/// <summary>
/// The capabilities that t... | // 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 Microsoft.CodeAnalysis.EditAndContinue
{
/// <summary>
/// The capabilities that t... | mit | C# |
85dcea5b8fc8707728c92e280a8ff5644f012e2d | Set env vars when updating VSTS variables | AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning | src/NerdBank.GitVersioning/CloudBuildServices/VisualStudioTeamServices.cs | src/NerdBank.GitVersioning/CloudBuildServices/VisualStudioTeamServices.cs | namespace Nerdbank.GitVersioning.CloudBuildServices
{
using System;
using System.IO;
/// <summary>
///
/// </summary>
/// <remarks>
/// The VSTS-specific properties referenced here are documented here:
/// https://msdn.microsoft.com/en-us/Library/vs/alm/Build/scripts/variables
///... | namespace Nerdbank.GitVersioning.CloudBuildServices
{
using System;
using System.IO;
/// <summary>
///
/// </summary>
/// <remarks>
/// The VSTS-specific properties referenced here are documented here:
/// https://msdn.microsoft.com/en-us/Library/vs/alm/Build/scripts/variables
///... | mit | C# |
a62118ff46b6ee57f8ce241637625232e3c69291 | Set default size for window | Aqovia/OctopusPuppet | OctopusPuppet.Gui/AppBootstrapper.cs | OctopusPuppet.Gui/AppBootstrapper.cs | using System.Collections.Generic;
using System.Windows;
using Caliburn.Micro;
using OctopusPuppet.Gui.ViewModels;
namespace OctopusPuppet.Gui
{
public class AppBootstrapper : BootstrapperBase
{
public AppBootstrapper()
{
Initialize();
}
protected override void OnSt... | using System.Windows;
using Caliburn.Micro;
using OctopusPuppet.Gui.ViewModels;
namespace OctopusPuppet.Gui
{
public class AppBootstrapper : BootstrapperBase
{
public AppBootstrapper()
{
Initialize();
}
protected override void OnStartup(object sender, StartupEventA... | apache-2.0 | C# |
d2bd0a13d041616c9cd85dc7a7b6b4a9ced9e776 | Fix unit test for SDK Name is required validate | dhawalharsora/connectedcare-sdk,SnapMD/connectedcare-sdk | SnapMD.VirtualCare.Sdk.Tests/ModelTests/NewPatientRequestValidationTest.cs | SnapMD.VirtualCare.Sdk.Tests/ModelTests/NewPatientRequestValidationTest.cs | using System;
using NUnit.Framework;
using SnapMD.VirtualCare.ApiModels;
namespace SnapMD.VirtualCare.Sdk.Tests.ModelTests
{
[TestFixture]
public class NewPatientRequestValidationTest
{
[Test]
public void TestModelValidationFail()
{
var target = new NewPatientRequest()... | using System;
using NUnit.Framework;
using SnapMD.VirtualCare.ApiModels;
namespace SnapMD.VirtualCare.Sdk.Tests.ModelTests
{
[TestFixture]
public class NewPatientRequestValidationTest
{
[Test]
public void TestModelValidationFail()
{
var target = new NewPatientRequest()... | apache-2.0 | C# |
f78c4fd577473ff73418bbe1220a8ba7a18bea88 | Remove #if directive which is no longer necessary: .NET 4.7.1 supports all types used by the Dotnet helper class. | fixie/fixie | src/Fixie/Cli/Dotnet.cs | src/Fixie/Cli/Dotnet.cs | namespace Fixie.Cli
{
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
class Dotnet
{
public static readonly string Path = FindDotnet();
static string FindDotnet()
{
var fileName = RuntimeInformation.IsOSPlatfor... | #if !NET471
namespace Fixie.Cli
{
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
class Dotnet
{
public static readonly string Path = FindDotnet();
static string FindDotnet()
{
var fileName = RuntimeInformation... | mit | C# |
0b3360358a19d220086d4a567b016098840264f6 | Fix formatting | timtmok/ktanemod-twofactor,timtmok/ktanemod-twofactor | Assets/Scripts/TwoFactorWidget.cs | Assets/Scripts/TwoFactorWidget.cs | using System.Collections.Generic;
using Newtonsoft.Json;
using UnityEngine;
using Random = UnityEngine.Random;
public class TwoFactorWidget : MonoBehaviour
{
public TextMesh KeyText;
public TextMesh TimeRemainingText;
public AudioClip Notify;
private bool _activated;
private int _key;
private ... | using System.Collections.Generic;
using Newtonsoft.Json;
using UnityEngine;
using Random = UnityEngine.Random;
public class TwoFactorWidget : MonoBehaviour
{
public TextMesh KeyText;
public TextMesh TimeRemainingText;
public AudioClip Notify;
private bool _activated;
private int _key;
private float _timeE... | mit | C# |
09332218fe416dc421d2a441810e26753f069b19 | Fix InvalidOperationException | k-t/SharpHaven | MonoHaven.Client/Game/GameScreen.cs | MonoHaven.Client/Game/GameScreen.cs | using System;
using System.Drawing;
using System.Linq;
using C5;
using MonoHaven.Login;
using MonoHaven.UI;
using MonoHaven.UI.Remote;
using MonoHaven.Utils;
using NLog;
namespace MonoHaven.Game
{
public class GameScreen : BaseScreen
{
private static readonly NLog.Logger log = LogManager.GetCurrentClassLogger();
... | using System;
using System.Drawing;
using C5;
using MonoHaven.Login;
using MonoHaven.UI;
using MonoHaven.UI.Remote;
using MonoHaven.Utils;
using NLog;
namespace MonoHaven.Game
{
public class GameScreen : BaseScreen
{
private static readonly NLog.Logger log = LogManager.GetCurrentClassLogger();
private readonly... | mit | C# |
f1fd28181dbc1db2c93efeddb982085c2f0bbcca | Remove redundant code | k-t/SharpHaven | MonoHaven.Client/Graphics/Avatar.cs | MonoHaven.Client/Graphics/Avatar.cs | using System.Collections.Generic;
using System.Linq;
using MonoHaven.Resources;
using MonoHaven.Utils;
namespace MonoHaven.Graphics
{
public class Avatar : Drawable
{
private readonly Texture tex;
public Avatar(IEnumerable<FutureResource> layers)
{
var images = layers.SelectMany(x => x.Value.GetLayers<Ima... | using System.Collections.Generic;
using System.Linq;
using MonoHaven.Resources;
using MonoHaven.Utils;
namespace MonoHaven.Graphics
{
public class Avatar : Drawable
{
private readonly Texture tex;
public Avatar(IEnumerable<FutureResource> layers)
{
var images = layers
.SelectMany(x => x.Value.GetLayer... | mit | C# |
de498f264121c5fefd2107a9888933890dedfef3 | Update to test harness | ArasExtensions/Aras.Model | Aras.Model.Design.Debug/Program.cs | Aras.Model.Design.Debug/Program.cs | /*
Aras.Model provides a .NET cient library for Aras Innovator
Copyright (C) 2015 Processwall Limited.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the Lic... | /*
Aras.Model provides a .NET cient library for Aras Innovator
Copyright (C) 2015 Processwall Limited.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the Lic... | apache-2.0 | C# |
8f76dc4e3f99a8f540466ead4a0d3fe5160e4f27 | Update BestHTTP example | Mazyod/PhoenixSharp | Vendor/BestHTTP/BestHTTPWebsocket.cs | Vendor/BestHTTP/BestHTTPWebsocket.cs | using System;
using Phoenix;
using BestHTTP.WebSocket;
namespace Networking {
public sealed class BestHTTPWebsocketFactory: IWebsocketFactory {
public IWebsocket Build(WebsocketConfiguration config) {
var websocket = new WebSocket(config.uri);
websocket.InternalRequest.ConnectTimeout = TimeSpan.FromSecon... | using System;
using Phoenix;
using BestHTTP.WebSocket;
public sealed class BestHTTPWebsocketFactory: IWebsocketFactory {
public IWebsocket Build(WebsocketConfiguration config) {
var websocket = new WebSocket(config.uri);
websocket.InternalRequest.ConnectTimeout = TimeSpan.FromSeconds(8);
var adapter = new ... | mit | C# |
e49f61e1251b4ba471c6489d6ccfa7da30b7f1b9 | Make the DataAccessProviders class public | andrewjk/Watsonia.Data | Watsonia.Data/DataAccessProviders.cs | Watsonia.Data/DataAccessProviders.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
namespace Watsonia.Data
{
/// <summary>
/// Provides access to the data access providers for diffe... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
namespace Watsonia.Data
{
/// <summary>
/// Provides access to the data access providers for diffe... | mit | C# |
b37fb781193a12a00a1110c82324cc00bf97be03 | Fix typo in identity service | TheTree/branch,TheTree/branch,TheTree/branch | dotnet/Apps/ServiceIdentity/Startup.cs | dotnet/Apps/ServiceIdentity/Startup.cs | using Apollo;
using Branch.Apps.ServiceIdentity.App;
using Branch.Apps.ServiceIdentity.Models;
using Branch.Apps.ServiceIdentity.Server;
using Branch.Apps.ServiceIdentity.Services;
using Branch.Clients.Token;
using Branch.Packages.Contracts.ServiceIdentity;
using Branch.Packages.Enums.ServiceIdentity;
using Br... | using Apollo;
using Branch.Apps.ServiceIdentity.App;
using Branch.Apps.ServiceIdentity.Models;
using Branch.Apps.ServiceIdentity.Server;
using Branch.Apps.ServiceIdentity.Services;
using Branch.Clients.Token;
using Branch.Packages.Contracts.ServiceIdentity;
using Branch.Packages.Enums.ServiceIdentity;
using Br... | mit | C# |
7560c8e449232d929cf65cb4297b05f7ee342678 | Package Update #CHANGE: Pushed AdamsLair.WinForms 1.1.14 | AdamsLair/winforms | WinForms/Properties/AssemblyInfo.cs | WinForms/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
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 verknüpft sind.
[assembly: A... | using System.Reflection;
using System.Runtime.CompilerServices;
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 verknüpft sind.
[assembly: A... | mit | C# |
3648108648825f40dedefff6c48b4d2f327544d1 | Build 22 preparation | DeathCradle/Terraria-s-Dedicated-Server-Mod,DeathCradle/Terraria-s-Dedicated-Server-Mod,DeathCradle/Terraria-s-Dedicated-Server-Mod,DeathCradle/Terraria-s-Dedicated-Server-Mod | Terraria_Server/Server/Statics.cs | Terraria_Server/Server/Statics.cs | using System;
using System.IO;
namespace Terraria_Server
{
public static class Statics
{
public const int BUILD = 22;
public const int CURRENT_TERRARIA_RELEASE = 12;
private const String WORLDS = "Worlds";
private const String PLAYERS = "Players";
private const String ... | using System;
using System.IO;
namespace Terraria_Server
{
public static class Statics
{
public const int BUILD = 21;
public const int CURRENT_TERRARIA_RELEASE = 12;
private const String WORLDS = "Worlds";
private const String PLAYERS = "Players";
private const String ... | mit | C# |
c37f2361beb433f3547d6b8037bb57a965b61676 | remove debugging code | p-org/PSharp | Tools/Testing/Replayer/Program.cs | Tools/Testing/Replayer/Program.cs | //-----------------------------------------------------------------------
// <copyright file="Program.cs">
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIE... | //-----------------------------------------------------------------------
// <copyright file="Program.cs">
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIE... | mit | C# |
fea9207c82e233adf214c9e99254236a114a82fe | Add comments to ApplicationOptions | florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho | bindings/src/ApplicationOptions.cs | bindings/src/ApplicationOptions.cs | using System.Text;
namespace Urho
{
/// <summary>
/// Application options, see full description at:
/// http://urho3d.github.io/documentation/1.4/_running.html
/// </summary>
public class ApplicationOptions
{
/// <summary>
/// Desktop only
/// </summary>
public int Width { get; set; } = 0;
/// <summ... | using System.Text;
namespace Urho
{
public class ApplicationOptions
{
// see http://urho3d.github.io/documentation/1.4/_running.html (Command line options)
public int Width { get; set; } = 0;
public int Height { get; set; } = 0;
public bool WindowedMode { get; set; } = true;
public bool ResizableWindow {... | mit | C# |
9aa3917755b4832d3d853738e6cb4cd179fe2460 | fix extension method call | handcraftsman/Afluistic | src/Afluistic/Commands/ArgumentChecks/IsTheIndexOfAnExistingAccountType.cs | src/Afluistic/Commands/ArgumentChecks/IsTheIndexOfAnExistingAccountType.cs | // * **************************************************************************
// * Copyright (c) Clinton Sheppard <sheppard@cs.unm.edu>
// *
// * This source code is subject to terms and conditions of the MIT License.
// * A copy of the license can be found in the License.txt file
// * at the root of this distributi... | // * **************************************************************************
// * Copyright (c) Clinton Sheppard <sheppard@cs.unm.edu>
// *
// * This source code is subject to terms and conditions of the MIT License.
// * A copy of the license can be found in the License.txt file
// * at the root of this distributi... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.