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 |
|---|---|---|---|---|---|---|---|---|
804ce50faaf2d5c0352ad139fa07acca1e0b3964 | Add --colors-per-row argument for e.g. 16x16 rendering of 256-color palette. | Prof9/PixelPet | PixelPet/CLI/Commands/RenderPalettesCmd.cs | PixelPet/CLI/Commands/RenderPalettesCmd.cs | using LibPixelPet;
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
namespace PixelPet.CLI.Commands {
internal class RenderPalettesCmd : CliCommand {
public RenderPalettesCmd()
: base("Render-Palettes",
new Parameter("colors-per-row", "cw", false, new ParameterValue("co... | using LibPixelPet;
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
namespace PixelPet.CLI.Commands {
internal class RenderPalettesCmd : CliCommand {
public RenderPalettesCmd()
: base("Render-Palettes") { }
protected override void Run(Workbench workbench, ILogger logger)... | mit | C# |
0cf2ee564bcebc86fa0b07971d2da1aaca76b422 | Configure lowercase urls | Xenoleth/Reverb-MVC,Xenoleth/Reverb-MVC,Xenoleth/Reverb-MVC | Reverb/Reverb.Web/App_Start/RouteConfig.cs | Reverb/Reverb.Web/App_Start/RouteConfig.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace Reverb.Web
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace Reverb.Web
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pa... | mit | C# |
4d6546188b3e59fbc3bbf244ec3e3eba250c52e0 | Add default args (for inference) | sharper-library/Sharper.C.Eq | Sharper.C.Eq/Data/EqInstances/Instances.cs | Sharper.C.Eq/Data/EqInstances/Instances.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Sharper.C.Data.EqInstances
{
public struct EqInt
: Eq<int>
{
public bool Equal(int x, int y)
=> x == y;
}
public struct EqUInt
: Eq<uint>
{
public bool Equal(uint x, uint y)
=... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Sharper.C.Data.EqInstances
{
public struct EqInt
: Eq<int>
{
public bool Equal(int x, int y)
=> x == y;
}
public struct EqUInt
: Eq<uint>
{
public bool Equal(uint x, uint y)
=> x == y;
}
public struct EqLong
: Eq<lo... | mit | C# |
12dd8d611286f8fb88791b76b4bca97475e71d8e | fix bad merge that lost removal of net45 from portable app test | AbhitejJohn/cli,anurse/Cli,JohnChen0/cli,MichaelSimons/cli,ravimeda/cli,dasMulli/cli,blackdwarf/cli,borgdylan/dotnet-cli,johnbeisner/cli,mylibero/cli,jkotas/cli,naamunds/cli,nguerrera/cli,livarcocc/cli-1,gkhanna79/cli,marono/cli,dasMulli/cli,AbhitejJohn/cli,jonsequitur/cli,johnbeisner/cli,mylibero/cli,harshjain2/cli,st... | test/dotnet-build.Tests/BuildPortableTests.cs | test/dotnet-build.Tests/BuildPortableTests.cs | using System.IO;
using Microsoft.DotNet.Tools.Test.Utilities;
using Xunit;
namespace Microsoft.DotNet.Tools.Builder.Tests
{
public class BuildPortableTests : TestBase
{
[Fact]
public void BuildingAPortableProjectProducesDepsFile()
{
var testInstance = TestAssetsManager.Crea... | using System.IO;
using Microsoft.DotNet.Tools.Test.Utilities;
using Xunit;
namespace Microsoft.DotNet.Tools.Builder.Tests
{
public class BuildPortableTests : TestBase
{
[Fact]
public void BuildingAPortableProjectProducesDepsFile()
{
var testInstance = TestAssetsManager.Crea... | mit | C# |
8583f979a9d64e07f2bac1503f7c41cd5534a279 | Update AssemblyInfo | DataGenSoftware/Sql.Net | Sql.Net/Sql.Net/Properties/AssemblyInfo.cs | Sql.Net/Sql.Net/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | mit | C# |
1e4235575c7fcb8c305bb209401c666934e74310 | Update SerializerBase.cs | tiksn/TIKSN-Framework | TIKSN.Core/Serialization/SerializerBase.cs | TIKSN.Core/Serialization/SerializerBase.cs | using System;
namespace TIKSN.Serialization
{
public abstract class SerializerBase<TSerial> : ISerializer<TSerial> where TSerial : class
{
public TSerial Serialize<T>(T obj)
{
try
{
return this.SerializeInternal(obj);
}
catch (Exc... | using System;
namespace TIKSN.Serialization
{
public abstract class SerializerBase<TSerial> : ISerializer<TSerial> where TSerial : class
{
public TSerial Serialize<T>(T obj)
{
try
{
return SerializeInternal(obj);
}
catch (Exceptio... | mit | C# |
79ac91081946303056057fe799c965810e1206d7 | Add explicit [NotNull] for implementation of external unannotated interface, improve doc comments | ulrichb/ImplicitNullability,ulrichb/ImplicitNullability,ulrichb/ImplicitNullability | Src/ImplicitNullability.Plugin/ImplicitNullabilityCustomCodeAnnotationProvider.cs | Src/ImplicitNullability.Plugin/ImplicitNullabilityCustomCodeAnnotationProvider.cs | using System.Diagnostics;
using ImplicitNullability.Plugin.Infrastructure;
using JetBrains.Annotations;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.CodeAnnotations;
using JetBrains.Util;
using ReSharperExtensionsShared.Debugging;
#if !RESHARPER92
using System.Collections.Generic;
#endif
namespace Im... | using System.Diagnostics;
using ImplicitNullability.Plugin.Infrastructure;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.CodeAnnotations;
using JetBrains.Util;
using ReSharperExtensionsShared.Debugging;
#if !RESHARPER92
using System.Collections.Generic;
#endif
namespace ImplicitNullability.Plugin
{
... | mit | C# |
ba6a0ec42c35a40584699d23275dccfece3939b4 | Add concat to array | kswoll/WootzJs,x335/WootzJs,kswoll/WootzJs,x335/WootzJs,x335/WootzJs,kswoll/WootzJs | WootzJs.Runtime/Runtime/WootzJs/JsArray.cs | WootzJs.Runtime/Runtime/WootzJs/JsArray.cs | #region License
//-----------------------------------------------------------------------
// <copyright>
// The MIT License (MIT)
//
// Copyright (c) 2014 Kirk S Woll
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Softwar... | #region License
//-----------------------------------------------------------------------
// <copyright>
// The MIT License (MIT)
//
// Copyright (c) 2014 Kirk S Woll
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Softwar... | mit | C# |
df7ef05d19675be939b1b1582802eacb1def1a8b | Rectify AutomaticallyRenewingSagaLock not actually working Some debug code made it into the repository and build. Any lock wrapped in an AutomaticallyRenewingSagaLock would never actually perform locking and would just indicate it had acquired the lock | MrMDavidson/Rebus.SingleAccessSagas | Rebus.SingleAccessSagas/AutomaticallyRenewingSagaLock.cs | Rebus.SingleAccessSagas/AutomaticallyRenewingSagaLock.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Rebus.Exceptions;
namespace Rebus.SingleAccessSagas {
/// <summary>
/// Deferring implemtnation of <seealso cref="ISagaLock"/> which will automatically re-acquire the lock periodically. Useful for lease based locks
/// </summary>
public cla... | using System;
using System.Threading;
using System.Threading.Tasks;
using Rebus.Exceptions;
namespace Rebus.SingleAccessSagas {
/// <summary>
/// Deferring implemtnation of <seealso cref="ISagaLock"/> which will automatically re-acquire the lock periodically. Useful for lease based locks
/// </summary>
public cla... | mit | C# |
11368cf880a99a1e9f81b003ec7f031ce4a415fe | Use non-obsolete member | EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an | A-vs-An/WikipediaAvsAnTrieExtractorTest/NodeEqualityComparer.cs | A-vs-An/WikipediaAvsAnTrieExtractorTest/NodeEqualityComparer.cs | using System.Collections.Generic;
using System.Linq;
using AvsAnLib.Internals;
namespace WikipediaAvsAnTrieExtractorTest {
internal class NodeEqualityComparer : IEqualityComparer<Node> {
public static readonly NodeEqualityComparer Instance = new NodeEqualityComparer();
public bool Equals(... | using System.Collections.Generic;
using System.Linq;
using AvsAnLib.Internals;
namespace WikipediaAvsAnTrieExtractorTest {
internal class NodeEqualityComparer : IEqualityComparer<Node> {
public static readonly NodeEqualityComparer Instance = new NodeEqualityComparer();
public bool Equals(... | apache-2.0 | C# |
0369da1b3a05c57ea658b48fa0c02a00091fb190 | Use different percentage in the unit test. | dlemstra/Magick.NET,dlemstra/Magick.NET | tests/Magick.NET.Tests/ResourceLimitsTests/TheMaxMemoryRequest.cs | tests/Magick.NET.Tests/ResourceLimitsTests/TheMaxMemoryRequest.cs | // Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
// Licensed under the Apache License, Version 2.0.
using ImageMagick;
using Xunit;
using Xunit.Sdk;
namespace Magick.NET.Tests
{
public partial class ResourceLimitsTests
{
[Collection(nameof(RunTestsSeparately))]
public class T... | // Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
// Licensed under the Apache License, Version 2.0.
using ImageMagick;
using Xunit;
using Xunit.Sdk;
namespace Magick.NET.Tests
{
public partial class ResourceLimitsTests
{
[Collection(nameof(RunTestsSeparately))]
public class T... | apache-2.0 | C# |
628a254f28c5d5293024d179b4c09195a9e9c755 | Fix a missed renamed method call that was in an #ifdef for WP8 | netonjm/CocosSharp,TukekeSoft/CocosSharp,zmaruo/CocosSharp,zmaruo/CocosSharp,haithemaraissia/CocosSharp,mono/CocosSharp,hig-ag/CocosSharp,netonjm/CocosSharp,hig-ag/CocosSharp,mono/CocosSharp,haithemaraissia/CocosSharp,MSylvia/CocosSharp,MSylvia/CocosSharp,TukekeSoft/CocosSharp | cocos2d/platform/CCTask.cs | cocos2d/platform/CCTask.cs | using System;
#if WINDOWS_PHONE|| XBOX360
using System.ComponentModel;
#else
using System.Threading.Tasks;
#endif
namespace CocosSharp
{
public static class CCTask
{
private class TaskSelector : ICCUpdatable
{
public void Update(float dt)
{
}
}
... | using System;
#if WINDOWS_PHONE|| XBOX360
using System.ComponentModel;
#else
using System.Threading.Tasks;
#endif
namespace CocosSharp
{
public static class CCTask
{
private class TaskSelector : ICCUpdatable
{
public void Update(float dt)
{
}
}
... | mit | C# |
c8c8fa9bf4cc3d5c488dd3591b2801c024ba58d1 | Update LockType.cs | gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer | Common/Locks/LockType.cs | Common/Locks/LockType.cs |
namespace LunaCommon.Locks
{
/// <summary>
/// Different types of locks
/// </summary>
public enum LockType
{
/// <summary>
/// The contract lock is owned by only 1 player and it defines who can generate new contracts.
/// </summary>
Contract,
/// <... |
namespace LunaCommon.Locks
{
/// <summary>
/// Different types of locks
/// </summary>
public enum LockType
{
/// <summary>
/// The asteroid lock is owned by only 1 player and it defines who spawns the asteroids
/// </summary>
Asteroid,
/// <summary>
... | mit | C# |
37b49fa53799cd2b769aa8a8cd6030e6e624cb4f | Update extension_mtd.cs | kenpusney/pastebin,kenpusney/pastebin | book/extension_mtd.cs | book/extension_mtd.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CLR_via_CS
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("abc".parse());
Console.Read();
}
}
static class A {
public static int... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CLR_via_CS
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("abc".parse());
Console.Read();
}
}
static class A {
public static int... | mit | C# |
c6eaba6efe0334aa9a612b5d8a116c67b89d9c34 | Add process index to state as primary key. Use process name as property | fareloz/AttachToolbar | State.cs | State.cs | using System.Collections.Generic;
namespace AttachToolbar
{
internal static class State
{
public static int ProcessIndex = -1;
public static List<string> ProcessList = new List<string>();
public static EngineType EngineType = EngineType.Native;
public static bool IsAttached = f... | using System.Collections.Generic;
namespace AttachToolbar
{
internal static class State
{
public static string ProcessName = "";
public static List<string> ProcessList = new List<string>();
public static EngineType EngineType = EngineType.Native;
public static bool IsAttached =... | mit | C# |
d0fe74aceed6de0489f23f23b90b8f178bfea5c7 | Remove pokemon catch | cd01/sudo-in-windows,cd01/sudo-in-windows | sudo.cs | sudo.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
[assembly: AssemblyVersion("0.0.1.*")]
[assembly: AssemblyCopyright("Copyright cd01 2014")]
[assembly: AssemblyDescription("Elevate UAC")]
class sudo
{
static void Main(string[] args)
{
if (ar... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
[assembly: AssemblyVersion("0.0.1.*")]
[assembly: AssemblyCopyright("Copyright cd01 2014")]
[assembly: AssemblyDescription("Elevate UAC")]
class sudo
{
static void Main(string[] args)
{
if (ar... | mit | C# |
2af63bf54c7e5c1aa0709a214b2f1b947ed7f4b4 | Fix system memory check for Linux (20210323) | gmartin7/myBloomFork,gmartin7/myBloomFork,BloomBooks/BloomDesktop,StephenMcConnel/BloomDesktop,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,StephenMcConnel/BloomDesktop,StephenMcConnel/BloomDeskt... | src/BloomExe/Utils/MemoryUtils.cs | src/BloomExe/Utils/MemoryUtils.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bloom.Utils
{
class MemoryUtils
{
/// <summary>
/// A crude way of measuring when we might be short enough of memory to need a full reload.
/// </summary>
/... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bloom.Utils
{
class MemoryUtils
{
/// <summary>
/// A crude way of measuring when we might be short enough of memory to need a full reload.
/// </summary>
/... | mit | C# |
e8e4d329cff26270f47e9dbaa474c85473e7e8aa | Set version to 2.0.0-beta04 | Jericho/CakeMail.RestClient | CakeMail.RestClient/Properties/AssemblyInfo.cs | CakeMail.RestClient/Properties/AssemblyInfo.cs | using System.Reflection;
// 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("CakeMail.RestClient")]
[assembly: AssemblyDescription("CakeMail.RestClient is a... | using System.Reflection;
// 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("CakeMail.RestClient")]
[assembly: AssemblyDescription("CakeMail.RestClient is a... | mit | C# |
626f1be600b5a025a8aca6b7ec39967a2253ec4c | Implement Assembly.GetCallingAssembly (#3020) | krytarowski/corert,yizhang82/corert,yizhang82/corert,yizhang82/corert,yizhang82/corert,gregkalapos/corert,tijoytom/corert,gregkalapos/corert,krytarowski/corert,tijoytom/corert,tijoytom/corert,gregkalapos/corert,gregkalapos/corert,botaberg/corert,krytarowski/corert,shrah/corert,botaberg/corert,botaberg/corert,shrah/core... | src/System.Private.CoreLib/src/System/Reflection/Assembly.CoreRT.cs | src/System.Private.CoreLib/src/System/Reflection/Assembly.CoreRT.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.Configuration.Assemblies;
using System.Runtime.Serialization;
using Internal.Reflection.Augments;
nam... | // 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.Configuration.Assemblies;
using System.Runtime.Serialization;
using Internal.Reflection.Augments;
nam... | mit | C# |
43202f34cbd8e7a37dca8dbcae491ef78b9b75e3 | Add Terms of Service content | martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site | src/LondonTravel.Site/Views/Terms/Index.cshtml | src/LondonTravel.Site/Views/Terms/Index.cshtml | @{
ViewBag.MetaDescription = SR.TermsOfServiceMetaDescription;
ViewBag.Title = SR.TermsOfServiceMetaTitle;
}
<div>
<h1>@SR.TermsOfServiceTitle</h1>
<h3>1. Terms</h3>
<p>
By accessing the website at <a href="https://londontravel.martincostello.com/" title="London Travel Homepage">https://lon... | @{
ViewBag.MetaDescription = SR.TermsOfServiceMetaDescription;
ViewBag.Title = SR.TermsOfServiceMetaTitle;
}
<div>
<h1>@SR.TermsOfServiceTitle</h1>
<p>
@* TODO Add content *@
This is where the Terms of Service for the London Travel Alexa skill will be.
</p>
</div>
| apache-2.0 | C# |
14f1a2e32c5f28bc4a5e0f1136730ea0c5ce0ecd | Add test | RSuter/NJsonSchema,NJsonSchema/NJsonSchema | src/NJsonSchema.Tests/Generation/XmlDocsTests.cs | src/NJsonSchema.Tests/Generation/XmlDocsTests.cs | using Newtonsoft.Json;
using System.Threading.Tasks;
using Xunit;
namespace NJsonSchema.Tests.Generation
{
public class XmlDocsTests
{
/// <summary>Foobar.</summary>
/// <example>
/// { "foo": "bar" }
/// </example>
public abstract class AbstractClass
{
... | using Newtonsoft.Json;
using System.Threading.Tasks;
using Xunit;
namespace NJsonSchema.Tests.Generation
{
public class XmlDocsTests
{
/// <example>
/// { "foo": "bar" }
/// </example>
public abstract class AbstractClass
{
/// <example>
/// { "ab... | mit | C# |
b87918def42cb623c3ce0435101d80302a0d7667 | Update for Dict contains before null check | Narochno/Narochno.Credstash | src/Narochno.Credstash/Internal/CredstashItem.cs | src/Narochno.Credstash/Internal/CredstashItem.cs | using System.Collections.Generic;
using Amazon.DynamoDBv2.Model;
namespace Narochno.Credstash.Internal
{
public class CredstashItem
{
public const string DEFAULT_DIGEST = "SHA256";
public string Name { get; set; }
public string Version { get; set; }
public string Contents { ge... | using System.Collections.Generic;
using Amazon.DynamoDBv2.Model;
namespace Narochno.Credstash.Internal
{
public class CredstashItem
{
public const string DEFAULT_DIGEST = "SHA256";
public string Name { get; set; }
public string Version { get; set; }
public string Contents { ge... | apache-2.0 | C# |
1a2c944ed3e5f42f0eaf3045147d589d3297bed9 | fix failing FieldStats tests now that min/max_value can return an object too | CSGOpenSource/elasticsearch-net,CSGOpenSource/elasticsearch-net,elastic/elasticsearch-net,CSGOpenSource/elasticsearch-net,elastic/elasticsearch-net | src/Nest/Search/FieldStats/FieldStatsResponse.cs | src/Nest/Search/FieldStats/FieldStatsResponse.cs | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public interface IFieldStatsResponse : IResponse
{
[JsonProperty("_shards")]
ShardsMetaData Shards { get; }
[JsonProperty("indices")]
IReadOnlyDictionary<string, FieldStats> Indices { get; }
}
public class FieldStats... | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public interface IFieldStatsResponse : IResponse
{
[JsonProperty("_shards")]
ShardsMetaData Shards { get; }
[JsonProperty("indices")]
IReadOnlyDictionary<string, FieldStats> Indices { get; }
}
public class FieldStats... | apache-2.0 | C# |
7246c87c439195132b9822d77ae7a8cd7530367d | add Close method to release ticker thread | judwhite/NsqSharp | NsqSharp/Utils/Ticker.cs | NsqSharp/Utils/Ticker.cs | using System;
using System.Threading;
using NsqSharp.Utils.Channels;
namespace NsqSharp.Utils
{
/// <summary>
/// A Ticker holds a channel that delivers `ticks' of a clock at intervals. http://golang.org/pkg/time/#Ticker
/// </summary>
public class Ticker
{
private Chan<DateTime> _tickerCh... | using System;
using System.Threading;
using NsqSharp.Utils.Channels;
namespace NsqSharp.Utils
{
/// <summary>
/// A Ticker holds a channel that delivers `ticks' of a clock at intervals. http://golang.org/pkg/time/#Ticker
/// </summary>
public class Ticker
{
private readonly Chan<DateTime> ... | mit | C# |
799e5b04181cc080e5f0c9d85e53276f4746e2a8 | change the version | shabtaisharon/ds3_net_sdk,shabtaisharon/ds3_net_sdk,SpectraLogic/ds3_net_sdk,RachelTucker/ds3_net_sdk,RachelTucker/ds3_net_sdk,RachelTucker/ds3_net_sdk,SpectraLogic/ds3_net_sdk,SpectraLogic/ds3_net_sdk,shabtaisharon/ds3_net_sdk | VersionInfo.cs | VersionInfo.cs | /*
* ******************************************************************************
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License i... | /*
* ******************************************************************************
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License i... | apache-2.0 | C# |
66b64bf08861c07712015f66a4010b02fd802bef | Refactor code | sergeyshushlyapin/Sitecore-Instance-Manager,dsolovay/Sitecore-Instance-Manager,Sitecore/Sitecore-Instance-Manager,Brad-Christie/Sitecore-Instance-Manager | src/SIM.Core/Common/Ensure.cs | src/SIM.Core/Common/Ensure.cs | namespace SIM.Core.Common
{
using Sitecore.Diagnostics.Base;
using Sitecore.Diagnostics.Base.Annotations;
public static class Ensure
{
[ContractAnnotation("obj:null=>stop")]
[StringFormatMethod("message")]
public static void IsNotNull(object obj, string message, params object[] args)
{
A... | namespace SIM.Core.Common
{
using Sitecore.Diagnostics.Base;
using Sitecore.Diagnostics.Base.Annotations;
public static class Ensure
{
[StringFormatMethod("message")]
public static void IsNotNull(object obj, string message, params object[] args)
{
Assert.ArgumentNotNullOrEmpty(message, nameo... | mit | C# |
1f80f01b53f4861a26ee8564bb7b81684cfad488 | Add accuracy to frame bundle header | NeoAdonis/osu,NeoAdonis/osu,ppy/osu,peppy/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,smoogipooo/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu | osu.Game/Online/Spectator/FrameHeader.cs | osu.Game/Online/Spectator/FrameHeader.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.
#nullable enable
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
namespace osu.Game.Onli... | // 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.
#nullable enable
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
namespace osu.Game.Onli... | mit | C# |
cb264e95b7527044f159ea1a9e9c5f4875bf1db4 | Add new line for file logging | pandell/PackageRunner | FileLogging.cs | FileLogging.cs | using System;
using System.Diagnostics;
using System.IO;
namespace PackageRunner
{
/// <summary>
/// </summary>
internal class FileLogging
{
private readonly string _file;
private static readonly object _lock = new object();
public FileLogging(string file)
{
... | using System;
using System.Diagnostics;
using System.IO;
namespace PackageRunner
{
/// <summary>
/// </summary>
internal class FileLogging
{
private readonly string _file;
private static readonly object _lock = new object();
public FileLogging(string file)
{
... | mit | C# |
50e7ad49b55ce4986fcc814e9f3b31084e03b914 | Update Init.DependencyInjection.cs | jrmitch120/OctgnImageDb | OctgnImageDb/Setup/Init.DependencyInjection.cs | OctgnImageDb/Setup/Init.DependencyInjection.cs | using Ninject;
using OctgnImageDb.Imaging;
using OctgnImageDb.Imaging.Doomtown;
using OctgnImageDb.Imaging.Netrunner;
using OctgnImageDb.Imaging.Got2;
using OctgnImageDb.Imaging.LotR;
//using OctgnImageDb.Imaging.Starwars;
namespace OctgnImageDb.Setup
{
public partial class Init
{
public static IKerne... | using Ninject;
using OctgnImageDb.Imaging;
using OctgnImageDb.Imaging.Doomtown;
using OctgnImageDb.Imaging.Netrunner;
using OctgnImageDb.Imaging.Got2;
//using OctgnImageDb.Imaging.Starwars;
namespace OctgnImageDb.Setup
{
public partial class Init
{
public static IKernel Container()
{
... | mit | C# |
3e2ec2b1730920ad5c96794ca950c4129b1e6aa1 | Rename var safely | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University | R7.University/Models/UniversityModelContext.cs | R7.University/Models/UniversityModelContext.cs | using DotNetNuke.Common.Utilities;
using R7.Dnn.Extensions.Data;
using R7.Dnn.Extensions.Models;
using R7.University.Data;
namespace R7.University.Models
{
public class UniversityModelContext: ModelContextBase
{
public UniversityModelContext (IDataContext dataContext): base (dataContext)
{
... | using DotNetNuke.Common.Utilities;
using R7.Dnn.Extensions.Data;
using R7.Dnn.Extensions.Models;
using R7.University.Data;
namespace R7.University.Models
{
public class UniversityModelContext: ModelContextBase
{
public UniversityModelContext (IDataContext dataContext): base (dataContext)
{
... | agpl-3.0 | C# |
bcda95353e52949e39f3198958452a61672183ef | Remove extra span (#922) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.SignalR.Common/Internal/Formatters/BinaryMessageParser.cs | src/Microsoft.AspNetCore.SignalR.Common/Internal/Formatters/BinaryMessageParser.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Binary;
namespace Microsoft.AspNetCore.SignalR.Internal.Formatters
{
public static class BinaryMessageParser
{
... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Binary;
namespace Microsoft.AspNetCore.SignalR.Internal.Formatters
{
public static class BinaryMessageParser
{
... | apache-2.0 | C# |
71c7b0347d96001563b4a74866cfc75a9b718cd1 | Mark model is for user and for course. | M-Yankov/UniversityStudentSystem,M-Yankov/UniversityStudentSystem | UniversityStudentSystem/Data/UniversityStudentSystem.Data.Models/Mark.cs | UniversityStudentSystem/Data/UniversityStudentSystem.Data.Models/Mark.cs | namespace UniversityStudentSystem.Data.Models
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Common;
using CommonModels;
public class Mark : BaseModel<int>
{
[Required]
[Range(ModelConstants.MarkMinValue, ModelConstants.... |
namespace UniversityStudentSystem.Data.Models
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Common;
using CommonModels;
public class Mark : BaseModel<int>
{
[Required]
[Range(ModelConstants.MarkMinValue, ModelConstants... | mit | C# |
9bbddda5ab1a2a66984184122399d8e64ca95b6f | Add IMDTable interface | picrap/dnlib,Arthur2e5/dnlib,0xd4d/dnlib,ilkerhalil/dnlib,jorik041/dnlib,kiootic/dnlib,modulexcite/dnlib,yck1509/dnlib,ZixiangBoy/dnlib | src/DotNet/Writer/MDTable.cs | src/DotNet/Writer/MDTable.cs | using System.Collections.Generic;
using dot10.DotNet.MD;
namespace dot10.DotNet.Writer {
/// <summary>
/// MD table interface
/// </summary>
public interface IMDTable {
/// <summary>
/// Gets the table type
/// </summary>
Table Table { get; }
/// <summary>
/// <c>true</c> if the table is empty
/// ... | using System.Collections.Generic;
using dot10.DotNet.MD;
namespace dot10.DotNet.Writer {
/// <summary>
/// Creates rows in a table. Rows can optionally be shared to create a compact table.
/// </summary>
/// <typeparam name="T">The raw row type</typeparam>
public class MDTable<T> {
readonly Table table;
read... | mit | C# |
8d8349d27bce60508b2a4416b5a3e07ad8e3102b | Add Debug writer for diagnostic purpose | cezarypiatek/MaintainableSelenium,cezarypiatek/MaintainableSelenium,cezarypiatek/Tellurium,cezarypiatek/Tellurium,cezarypiatek/Tellurium,cezarypiatek/MaintainableSelenium | Src/Dashboard/Program.cs | Src/Dashboard/Program.cs | using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using Topshelf;
namespace Tellurium.VisualAssertion.Dashboard
{
public class Program
{
public static void Main(string[] args)
{
#if DEBUG
using (var server = new WebServer())
{
... | using System;
using System.Threading;
using Topshelf;
namespace Tellurium.VisualAssertion.Dashboard
{
public class Program
{
public static void Main(string[] args)
{
#if DEBUG
using (var server = new WebServer())
{
server.Run(consoleMode:true);
... | mit | C# |
7567c66e0e26664ab96a0e0506d7ddaef91f3ae3 | Initialise script class to prevent null reference expression with variables. | polyethene/IronAHK,polyethene/IronAHK,yatsek/IronAHK,yatsek/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,michaltakac/IronAHK,michaltakac/IronAHK,polyethene/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,polyethene/IronAHK | Tests/Rusty/Variables.cs | Tests/Rusty/Variables.cs | using IronAHK.Scripting;
using NUnit.Framework;
namespace IronAHK.Tests
{
partial class Rusty
{
[Test, Category("Variables")]
public void ReservedVariables()
{
Script.Init();
Assert.IsTrue((int)Script.Vars["a_tickCount"] > 0);
}
}
}
| using IronAHK.Scripting;
using NUnit.Framework;
namespace IronAHK.Tests
{
partial class Rusty
{
[Test, Category("Variables")]
public void ReservedVariables()
{
Assert.IsTrue((int)Script.Vars["a_tickCount"] > 0);
}
}
}
| bsd-2-clause | C# |
57152381377d2b09f749f46b829add58f1ab1930 | Fix issue description | Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms,Hitcents/Xamarin.Forms | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla46630.cs | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla46630.cs | using System.Collections.Generic;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
// Apply the default category of "Issues" to all of the tests in this assembly
// We use this as a catch-all for tests which haven't been individually ... | using System.Collections.Generic;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
// Apply the default category of "Issues" to all of the tests in this assembly
// We use this as a catch-all for tests which haven't been individually ... | mit | C# |
3adfe171ba3cdbdde9e0770b7497cc2375fabd98 | Add streaming coroutine | tobyclh/UnityCNTK,tobyclh/UnityCNTK | Assets/UnityCNTK/Scripts/Models/StreamingModel.cs | Assets/UnityCNTK/Scripts/Models/StreamingModel.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityCNTK;
using CNTK;
using System;
using UnityEngine.Assertions;
namespace UnityCNTK
{
/// <summary>
/// Streaming model streams a datasource to a model every set period
/// </summary>
[CreateAssetMenu(fileNam... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityCNTK;
using CNTK;
using System;
namespace UnityCNTK{
/// <summary>
/// Streaming model streams a datasource to a model every set period
/// </summary>
[CreateAssetMenu(fileName = "StreamingModel", menuName =... | mit | C# |
46356a5611623a3c32dea5f5b948c771f6764e3a | Bump Cecil version | sailro/cecil,mono/cecil,jbevain/cecil,fnajera-rac-de/cecil,SiliconStudio/Mono.Cecil | ProjectInfo.cs | ProjectInfo.cs | //
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2015 Jb Evain
//
// Licensed under the MIT/X11 license.
//
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct ("Mono.Cecil")]
[assembly: AssemblyCopyright ("Copyright © 2008 - 2015 Jb Evain")]
#if !PCL
[... | //
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2015 Jb Evain
//
// Licensed under the MIT/X11 license.
//
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct ("Mono.Cecil")]
[assembly: AssemblyCopyright ("Copyright © 2008 - 2015 Jb Evain")]
#if !PCL
[... | mit | C# |
8acb183053182559afa0f45591b31629dddfbb11 | Add LeaseEnd property to leases | jennings/Turbocharged.Vault | Turbocharged.Vault/Lease.cs | Turbocharged.Vault/Lease.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Turbocharged.Vault
{
public class Lease
{
[JsonProperty("lease_id")]
public string LeaseId { get; set; }
[JsonPro... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Turbocharged.Vault
{
public class Lease
{
[JsonProperty("lease_id")]
public string LeaseId { get; set; }
[JsonPro... | mit | C# |
95f28d916ddc6f460f2aa2bc1f04fd9275f0c0c0 | Add Db validation for ProductCategories model | MarioZisov/Baskerville,MarioZisov/Baskerville,MarioZisov/Baskerville | BaskervilleWebsite/Baskerville.Models/DataModels/ProductCategory.cs | BaskervilleWebsite/Baskerville.Models/DataModels/ProductCategory.cs | namespace Baskerville.Models.DataModels
{
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
public class ProductCategory
{
public ProductCategory()
{
this.Products = new HashSet<Product>();
this.Subcategories = new HashSet<ProductCat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Baskerville.Models.DataModels
{
public class ProductCategory
{
public ProductCategory()
{
this.Products = new HashSet<Product>();
this.Subcatego... | apache-2.0 | C# |
d72dc5fcde3d3e3822b6a46e20d3af602d743317 | Fix test. | JohanLarsson/Gu.Roslyn.Asserts | Gu.Roslyn.Asserts.Tests/AnalyzerAssertNoAnalyzerDiagnosticsTests.cs | Gu.Roslyn.Asserts.Tests/AnalyzerAssertNoAnalyzerDiagnosticsTests.cs | namespace Gu.Roslyn.Asserts.Tests
{
using NUnit.Framework;
public class AnalyzerAssertNoAnalyzerDiagnosticsTests
{
public class Fail
{
[Test]
public void SingleClassFieldNameMustNotBeginWithUnderscore()
{
var code = @"
namespace RoslynSand... | namespace Gu.Roslyn.Asserts.Tests
{
using System;
using NUnit.Framework;
public class AnalyzerAssertNoAnalyzerDiagnosticsTests
{
public class Fail
{
[Test]
public void SingleClassFieldNameMustNotBeginWithUnderscore()
{
var code = @"
na... | mit | C# |
b2226c48e69e42f0f2ebaa6009f15c2ec423dc60 | update version | darraghoriordan/Thinktecture.IdentityModel.45,yonglehou/Thinktecture.IdentityModel.45,shashwatchandra/Thinktecture.IdentityModel.45,IdentityModel/Thinktecture.IdentityModel.45,jbn566/Thinktecture.IdentityModel.45,rmorris8812/Thinktecture.IdentityModel.45,nguyenbanguyen/Thinktecture.IdentityModel.45 | IdentityModel/Thinktecture.IdentityModel/Properties/AssemblyInfo.cs | IdentityModel/Thinktecture.IdentityModel/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("Thinktecture.IdentityModel"... | 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("Thinktecture.IdentityModel"... | bsd-3-clause | C# |
d5e6f6b550b82276f53fd8f19c8a54041037c108 | Fix string.Replace bug | ErikEJ/EntityFramework.SqlServerCompact,ErikEJ/EntityFramework7.SqlServerCompact | src/Provider40/Query/ExpressionTranslators/Internal/SqlCeStringReplaceTranslator.cs | src/Provider40/Query/ExpressionTranslators/Internal/SqlCeStringReplaceTranslator.cs | using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using Microsoft.EntityFrameworkCore.Query.Expressions;
namespace Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.Internal
{
public class SqlCeStringReplaceTranslator : IMethodCallTranslator
{
private static readonly M... | using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using Microsoft.EntityFrameworkCore.Query.Expressions;
namespace Microsoft.EntityFrameworkCore.Query.ExpressionTranslators.Internal
{
public class SqlCeStringReplaceTranslator : IMethodCallTranslator
{
private static readonly M... | apache-2.0 | C# |
4f5a8ebb2939b9688a3e9e1365168dfa1cdc469d | delete -> truncate in ReplaceDataObjectsInBulkActor | 2gis/nuclear-river,xakep139/nuclear-river,2gis/nuclear-river-validation-rules,xakep139/nuclear-river,2gis/nuclear-river | StateInitialization/StateInitialization.Core/Actors/ReplaceDataObjectsInBulkActor.cs | StateInitialization/StateInitialization.Core/Actors/ReplaceDataObjectsInBulkActor.cs | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using LinqToDB.Data;
using LinqToDB.Mapping;
using NuClear.Replication.Core;
using NuClear.Replication.Core.Actors;
using NuClear.Replication.Core.DataObjects;
using NuClear.StateInitialization.Core.Commands;
namespace NuClear.Sta... | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using LinqToDB;
using LinqToDB.Data;
using NuClear.Replication.Core;
using NuClear.Replication.Core.Actors;
using NuClear.Replication.Core.DataObjects;
using NuClear.StateInitialization.Core.Commands;
namespace NuClear.StateInitia... | mpl-2.0 | C# |
2c69b2f3e14d7869c73c42f4b86c4254d26c85f7 | Update CommandAttribute.cs | Seprum/SampSharp,ikkentim/SampSharp,ikkentim/SampSharp,ikkentim/SampSharp,Seprum/SampSharp,Seprum/SampSharp,Seprum/SampSharp | src/SampSharp.GameMode/SAMP/Commands/CommandAttribute.cs | src/SampSharp.GameMode/SAMP/Commands/CommandAttribute.cs | // SampSharp
// Copyright 2016 Tim Potze
//
// 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 o... | // SampSharp
// Copyright 2016 Tim Potze
//
// 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 o... | apache-2.0 | C# |
ff90e58ab8449da6aaa49e0a8ccc6fe9f96832bb | Make soldier list searchable | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Views/Weapons/Edit.cshtml | Battery-Commander.Web/Views/Weapons/Edit.cshtml | @model Weapon
@using (Html.BeginForm("Save", "Weapons", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@Html.HiddenFor(model => model.Id)
@Html.ValidationSummary()
<div class="form-group form-group-lg">
@Html.DisplayNameFor(model => model.Unit)... | @model Weapon
@using (Html.BeginForm("Save", "Weapons", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@Html.HiddenFor(model => model.Id)
@Html.ValidationSummary()
<div class="form-group form-group-lg">
@Html.DisplayNameFor(model => model.Unit)... | mit | C# |
62cf350f010cf42be020ae0a5db1d210fa945194 | Fix - RuntimeUniqueIdProdiver is static | theraot/Theraot | Core/Theraot/Threading/ThreadingHelper.extra.cs | Core/Theraot/Threading/ThreadingHelper.extra.cs | #if FAT
namespace Theraot.Threading
{
public static partial class ThreadingHelper
{
// Leaked until AppDomain unload
private static readonly NoTrackingThreadLocal<RuntimeUniqueIdProdiver.UniqueId> _threadRuntimeUniqueId = new NoTrackingThreadLocal<RuntimeUniqueIdProdiver.UniqueId>(RuntimeUniqu... | #if FAT
namespace Theraot.Threading
{
public static partial class ThreadingHelper
{
private static readonly RuntimeUniqueIdProdiver _threadIdProvider = new RuntimeUniqueIdProdiver();
// Leaked until AppDomain unload
private static readonly NoTrackingThreadLocal<RuntimeUniqueIdProdiver.... | mit | C# |
716fd408b95aaa8165f774687075c51233e009fa | load and-design-blazor.js after _framework/blazor.server.js | BioWareRu/BioEngine,BioWareRu/BioEngine,BioWareRu/BioEngine | src/BioEngine.Admin/Pages/_Layout.cshtml | src/BioEngine.Admin/Pages/_Layout.cshtml | @using Microsoft.AspNetCore.Components.Web
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
... | @using Microsoft.AspNetCore.Components.Web
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
... | mit | C# |
d2f1e425f73313854c1f32989d8884f6eb2acff8 | clean xml | kleberksms/StaticCommons | src/StaticCommons/Class/Inflector/XML.cs | src/StaticCommons/Class/Inflector/XML.cs |
using System.Xml;
using System.Xml.Serialization;
namespace StaticCommons.Class.Inflector
{
/**
* Base
* https://stackoverflow.com/questions/11447529/convert-an-object-to-an-xml-string
*/
public static class Xml
{
public static string ToXml(this object obj)
{
va... |
using System.Xml;
using System.Xml.Serialization;
namespace StaticCommons.Class.Inflector
{
/**
* Base
* https://stackoverflow.com/questions/11447529/convert-an-object-to-an-xml-string
*/
public static class Xml
{
public static string ToXml(this object obj)
{
va... | mit | C# |
d0d507db673c0422e984a8bc4d90dba3673cbfd4 | Improve UnloadingAndProcessExitTests.netcoreapp.cs to help narrow down repro for recurring bug (#23397) | twsouthwick/corefx,ptoonen/corefx,axelheer/corefx,ptoonen/corefx,BrennanConroy/corefx,axelheer/corefx,shimingsg/corefx,ptoonen/corefx,twsouthwick/corefx,the-dwyer/corefx,mazong1123/corefx,Ermiar/corefx,fgreinacher/corefx,Ermiar/corefx,the-dwyer/corefx,ericstj/corefx,mmitche/corefx,Ermiar/corefx,mmitche/corefx,ravimeda/... | src/System.Runtime.Extensions/tests/System/UnloadingAndProcessExitTests.netcoreapp.cs | src/System.Runtime.Extensions/tests/System/UnloadingAndProcessExitTests.netcoreapp.cs | using System.Diagnostics;
using System.IO;
using System.Threading;
using Xunit;
namespace System.Tests
{
public class UnloadingAndProcessExitTests : RemoteExecutorTestBase
{
[ActiveIssue("https://github.com/dotnet/corefx/issues/23307", TargetFrameworkMonikers.Uap)]
[Fact]
public void U... | using System.Diagnostics;
using System.IO;
using System.Threading;
using Xunit;
namespace System.Tests
{
public class UnloadingAndProcessExitTests : RemoteExecutorTestBase
{
[Fact]
public void UnloadingEventMustHappenBeforeProcessExitEvent()
{
string fileName = GetTestFileP... | mit | C# |
1c1760549468bb5240285bbabd52578f7741a7f8 | Fix formatting | shyamnamboodiripad/roslyn,AmadeusW/roslyn,bartdesmet/roslyn,AlekseyTs/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,shyamnamboodiripad/roslyn,KevinRansom/roslyn,physhi/roslyn,reaction1989/roslyn,nguerrera/roslyn,mavasani/roslyn,nguerrera/roslyn,weltkante/roslyn,brettfo/roslyn,gafter/roslyn,weltkante/roslyn,mgoertz-msf... | src/Features/Core/Portable/MoveToNamespace/MoveToNamespaceResult.cs | src/Features/Core/Portable/MoveToNamespace/MoveToNamespaceResult.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.Immutable;
namespace Microsoft.CodeAnalysis.MoveToNamespace
{
internal class MoveToNamespaceR... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.Immutable;
namespace Microsoft.CodeAnalysis.MoveToNamespace
{
internal class MoveToNamespaceR... | mit | C# |
7543b4fb93889fc704b6d200a9306ef91bccdedd | Fix namespace and add inheritance | mniak/IdentityServer3.Contrib.RedisStores | src/IdentityServer3.Contrib.RedisStores/Stores/RefreshTokenStore.cs | src/IdentityServer3.Contrib.RedisStores/Stores/RefreshTokenStore.cs | using IdentityServer3.Core.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IdentityServer3.Core.Models;
using IdentityServer3.Contrib.RedisStores.Models;
using StackExchange.Redis;
using IdentityServer3.Contrib.RedisStores.Converters;
namespace Identity... | using IdentityServer3.Core.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IdentityServer3.Core.Models;
using IdentityServer3.Contrib.RedisStores.Models;
using StackExchange.Redis;
using IdentityServer3.Contrib.RedisStores.Converters;
namespace Identity... | mit | C# |
553e036d2840844d25b879fb2ec2472bf1c66187 | Add GivenName and Surname default claims to FacebookOptions | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.Authentication.Facebook/FacebookOptions.cs | src/Microsoft.AspNetCore.Authentication.Facebook/FacebookOptions.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.Collections.Generic;
using Microsoft.AspNetCore.Authentication.Facebook;
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.B... | // 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.Collections.Generic;
using Microsoft.AspNetCore.Authentication.Facebook;
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.B... | apache-2.0 | C# |
fb99073d8bc942fe1065a4528d0a3d835fc16a23 | Fix stack bounds check in AssignmentEvaluator | ethanmoffat/EndlessClient | EOBot/Interpreter/States/AssignmentEvaluator.cs | EOBot/Interpreter/States/AssignmentEvaluator.cs | using EOBot.Interpreter.Variables;
using System.Collections.Generic;
using System.Linq;
namespace EOBot.Interpreter.States
{
public class AssignmentEvaluator : IScriptEvaluator
{
private readonly IEnumerable<IScriptEvaluator> _evaluators;
public AssignmentEvaluator(IEnumerable<IScriptEvaluato... | using EOBot.Interpreter.Variables;
using System.Collections.Generic;
using System.Linq;
namespace EOBot.Interpreter.States
{
public class AssignmentEvaluator : IScriptEvaluator
{
private readonly IEnumerable<IScriptEvaluator> _evaluators;
public AssignmentEvaluator(IEnumerable<IScriptEvaluato... | mit | C# |
5b3e02eaac6add02774d8030c216e95d772f6bc7 | Fix handling of CONNECTION_PLAYER when sending response to GameServer | ethanmoffat/EndlessClient | EOLib/PacketHandlers/ConnectionPlayerHandler.cs | EOLib/PacketHandlers/ConnectionPlayerHandler.cs | using AutomaticTypeMapper;
using EOLib.Logger;
using EOLib.Net;
using EOLib.Net.Communication;
using EOLib.Net.Handlers;
using EOLib.Net.PacketProcessing;
namespace EOLib.PacketHandlers
{
/// <summary>
/// Handles incoming CONNECTION_PLAYER packets which are used for updating sequence numbers in the EO protoc... | using AutomaticTypeMapper;
using EOLib.Logger;
using EOLib.Net;
using EOLib.Net.Communication;
using EOLib.Net.Handlers;
using EOLib.Net.PacketProcessing;
namespace EOLib.PacketHandlers
{
/// <summary>
/// Handles incoming CONNECTION_PLAYER packets which are used for updating sequence numbers in the EO protoc... | mit | C# |
904a394e04ed947ab6d71886d293b8e6b4002731 | create BaseRequest for authentification | ismaelbelghiti/Tigwi,ismaelbelghiti/Tigwi | Core/Tigwi.API/Models/ModifyAccountModel.cs | Core/Tigwi.API/Models/ModifyAccountModel.cs | using System;
using System.Xml.Serialization;
namespace Tigwi.API.Models
{
// Models for request bodies
public class BaseRequest
{
public string AccountName { get; set; }
public Guid? AccountId { get; set; }
public string Key { get; set; }
}
[Serializable]
[XmlRootAt... | using System;
using System.Xml.Serialization;
namespace Tigwi.API.Models
{
// Models for request bodies
[Serializable]
[XmlRootAttribute("Write")]
public class MsgToWrite
{
public string AccountName { get; set; }
public Guid? AccountId { get; set; }
public MsgToPost Messag... | bsd-3-clause | C# |
c8c77a465d3468cacbd81dc55fb4f46f975c2cba | Fix issue where Dapper was trying to insert Read into the post table where that column doesnt exist | gavdraper/gdRead,gavdraper/gdRead | gdRead.Data/Models/Post.cs | gdRead.Data/Models/Post.cs | using System;
using DapperExtensions.Mapper;
namespace gdRead.Data.Models
{
public class Post
{
public int Id { get; set; }
public int FeedId { get; set; }
public string Name { get; set; }
public string Url { get; set; }
public string Summary { get; set; }
publ... | using System;
namespace gdRead.Data.Models
{
public class Post
{
public int Id { get; set; }
public int FeedId { get; set; }
public string Name { get; set; }
public string Url { get; set; }
public string Summary { get; set; }
public string Content { get; set; }... | mit | C# |
07d2eef8c83dff5fe5995b32899006455e74107e | Implement vmdstat | paralleltree/Scallion.Tools | vmdstat/Program.cs | vmdstat/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using NDesk.Options;
using Scallion.Tools.Essentials;
using Scallion.DomainModels;
using Scallion.DomainModels.Components;
namespace Scallion.Tools.VmdStat
{
class Program : Runner
{
public override string Description... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Scallion.Tools.VmdStat
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
cb5c6e2531d47151884300c5dd3d46e139867042 | Replace string[] field by IEnumerable<string> property | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserFilterViewModel.cs | WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserFilterViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Avalonia.Controls;
using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Gui.ManagedDialogs
{
internal class ManagedFileChooserFilterViewModel : ViewModelBase
{
private IEnumerable<string> Extensions { get; }
public string Name { get; }... | using System;
using System.Collections.Generic;
using System.Linq;
using Avalonia.Controls;
using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Gui.ManagedDialogs
{
internal class ManagedFileChooserFilterViewModel : ViewModelBase
{
private readonly string[] Extensions;
public string Name { get; }
public... | mit | C# |
583134437b6dbabbc5f2e82ff984295d190ace1f | Update version number | ForkandBeard/Alferd-Spritesheet-Unpacker | ASU/Properties/AssemblyInfo.cs | ASU/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("AS... | 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("AS... | mit | C# |
7f43f394355fbc84ed0b1001df9e46b16b70b72a | Add stars to favs | File-New-Project/EarTrumpet | EarTrumpet.Actions/ContextMenuAddon.cs | EarTrumpet.Actions/ContextMenuAddon.cs | using EarTrumpet.Extensibility;
using EarTrumpet.UI.Helpers;
using EarTrumpet.UI.ViewModels;
using EarTrumpet_Actions.DataModel.Serialization;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
namespace EarTrumpet_Actions
{
[Export(typeof(IAddonContextMenu))]
public... | using EarTrumpet.Extensibility;
using EarTrumpet.UI.Helpers;
using EarTrumpet.UI.ViewModels;
using EarTrumpet_Actions.DataModel.Serialization;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
namespace EarTrumpet_Actions
{
[Export(typeof(IAddonContextMenu))]
public... | mit | C# |
e74a36d678f51d0c54531d4fbb35ba3755bea115 | update s | autumn009/TanoCSharpSamples | Chap33/末尾以外の名前付き引数2/末尾以外の名前付き引数2/Program.cs | Chap33/末尾以外の名前付き引数2/末尾以外の名前付き引数2/Program.cs | using System;
class Program
{
private static void sub(int n, string t)
{
Console.WriteLine("In sub(int n, string t)");
}
private static void sub<T>(T s, string t)
{
Console.WriteLine("In sub<T>(T s, string t)");
}
static void Main(string[] args)
{
int a = 0;
... | using System;
class Program
{
private static void sub(int n, string t)
{
Console.WriteLine("In sub(int n, string t)");
}
private static void sub<T>(T s, string t)
{
Console.WriteLine("sub<T>(T s, string t)");
}
static void Main(string[] args)
{
int a = 0;
... | mit | C# |
4f3045fb258c7cdc01d026a8548052140a0d55f7 | Update AutofacPlatformCompositionRootSetupBase.cs | tiksn/TIKSN-Framework | TIKSN.Framework.Platform/DependencyInjection/AutofacPlatformCompositionRootSetupBase.cs | TIKSN.Framework.Platform/DependencyInjection/AutofacPlatformCompositionRootSetupBase.cs | using System.Collections.Generic;
using System.Linq;
using Autofac.Core;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace TIKSN.DependencyInjection
{
public abstract class AutofacPlatformCompositionRootSetupBase : AutofacCompositionRootSetupBase
{
prot... | using System.Collections.Generic;
using System.Linq;
using Autofac.Core;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace TIKSN.DependencyInjection
{
public abstract class AutofacPlatformCompositionRootSetupBase : AutofacCompositionRootSetupBase
{
prot... | mit | C# |
d4779f06cf1c2d8eae68d7d63583a3e34c629567 | Rework `CloseStream` | smoogipooo/osu,smoogipoo/osu,peppy/osu-new,peppy/osu,peppy/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu | osu.Game/IO/FileAbstraction/StreamFileAbstraction.cs | osu.Game/IO/FileAbstraction/StreamFileAbstraction.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.IO;
namespace osu.Game.IO.FileAbstraction
{
public class StreamFileAbstraction : TagLib.File.IFileAbstraction
{
public StreamF... | // 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.IO;
namespace osu.Game.IO.FileAbstraction
{
public class StreamFileAbstraction : TagLib.File.IFileAbstraction
{
public StreamFileAbstraction... | mit | C# |
6249dcafcb66516940f21e95029f4ca9fc315737 | Use a GetHashCode optimisation in ListSpecification | zvirja/AutoFixture,dcastro/AutoFixture,StevenJiang2015/AutoFixture,dlongest/AutoFixture,sergeyshushlyapin/AutoFixture,amarant/AutoFixture,sbrockway/AutoFixture,mrinaldi/AutoFixture,dcastro/AutoFixture,sergeyshushlyapin/AutoFixture,olegsych/AutoFixture,yuva2achieve/AutoFixture,adamchester/AutoFixture,hackle/AutoFixture,... | Src/AutoFixture/Kernel/ListSpecification.cs | Src/AutoFixture/Kernel/ListSpecification.cs | using System;
using System.Collections.Generic;
namespace Ploeh.AutoFixture.Kernel
{
/// <summary>
/// Encapsulates logic that determines whether a request is a request for a
/// <see cref="List{T}"/>.
/// </summary>
public class ListSpecification : IRequestSpecification
{
/... | using System;
using System.Collections.Generic;
namespace Ploeh.AutoFixture.Kernel
{
/// <summary>
/// Encapsulates logic that determines whether a request is a request for a
/// <see cref="List{T}"/>.
/// </summary>
public class ListSpecification : IRequestSpecification
{
/... | mit | C# |
131dcc7cc9cf2b5844e72f9846457443055ab878 | Remove empty line. | moodmosaic/Fare | Src/Fare.IntegrationTests/AutomatonTests.cs | Src/Fare.IntegrationTests/AutomatonTests.cs | using Xunit;
using Xunit.Extensions;
namespace Fare.IntegrationTests
{
public sealed class AutomatonTests
{
[Theory]
[InlineData("ab", "ab", "ab")]
[InlineData("ab.*", "a.*", "abc")]
public void StringMatchesBothRegexAutomaton(string pattern1, string pattern2, strin... | using Xunit;
using Xunit.Extensions;
namespace Fare.IntegrationTests
{
public sealed class AutomatonTests
{
[Theory]
[InlineData("ab", "ab", "ab")]
[InlineData("ab.*", "a.*", "abc")]
public void StringMatchesBothRegexAutomaton(string pattern1, string pattern2, strin... | mit | C# |
221f30d22ccb9720c90a56c857952917f149e9fb | Fix spamming broadcast | SAEnergy/Infrastructure,SAEnergy/Superstructure,SAEnergy/Infrastructure | Src/Server/Server.Hosts/ComponentService.cs | Src/Server/Server.Hosts/ComponentService.cs | using Core.Comm.BaseClasses;
using Core.Interfaces.Components;
using Core.Interfaces.Components.IoC;
using Core.Interfaces.ServiceContracts;
using Core.IoC.Container;
using Core.Models.DataContracts;
using Core.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using Sy... | using Core.Comm.BaseClasses;
using Core.Interfaces.Components;
using Core.Interfaces.Components.IoC;
using Core.Interfaces.ServiceContracts;
using Core.IoC.Container;
using Core.Models.DataContracts;
using Core.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using Sy... | mit | C# |
e281b4b1aae2a1537cb5e550493d4df2fa210f22 | Use default files | OzieGamma/beglobal.me | BeGlobal/Startup.cs | BeGlobal/Startup.cs | // <copyright company="Oswald MASKENS" file="Startup.cs">
// Copyright 2014-2016 Oswald MASKENS
//
// 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-... | // <copyright company="Oswald MASKENS" file="Startup.cs">
// Copyright 2014-2016 Oswald MASKENS
//
// 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-... | apache-2.0 | C# |
3f3d7880e4557d726541bfc96033cd0d24c6d6d6 | Fix tooltips; | KonH/UDBase | Scripts/Controllers/Log/LogSettings.cs | Scripts/Controllers/Log/LogSettings.cs | using System;
using System.Collections.Generic;
using UnityEngine;
using Rotorz.Games.Reflection;
namespace UDBase.Controllers.LogSystem {
/// <summary>
/// Node, which defined, need to show logs for specific context or not
/// </summary>
[Serializable]
public class LogNode {
/// <summary>
/// Current log c... | using System;
using System.Collections.Generic;
using UnityEngine;
using Rotorz.Games.Reflection;
namespace UDBase.Controllers.LogSystem {
/// <summary>
/// Node, which defined, need to show logs for specific context or not
/// </summary>
[Serializable]
public class LogNode {
/// <summary>
/// Current log c... | mit | C# |
8b3a0d8e1317a87cf836122c4b7f69bd8883cad3 | Fix MatterSlice engine path. | larsbrubaker/MatterControl,larsbrubaker/MatterControl,rytz/MatterControl,CodeMangler/MatterControl,mmoening/MatterControl,gregory-diaz/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,tellingmachine/MatterControl,ddpruitt/MatterControl,MatterHackers/MatterControl,mmoening/Matte... | SlicerConfiguration/MatterSliceInfo.cs | SlicerConfiguration/MatterSliceInfo.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Threading;
using MatterHackers.Agg;
using MatterHackers.Agg.UI;
using MatterHackers.Localizations;
using MatterHackers.MatterControl.DataStorage;
using MatterHackers.MatterContr... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Threading;
using MatterHackers.Agg;
using MatterHackers.Agg.UI;
using MatterHackers.Localizations;
using MatterHackers.MatterControl.DataStorage;
using MatterHackers.MatterContr... | bsd-2-clause | C# |
fd5e22381721c72156c9ed2de2d1b4d3cae58072 | Update cargo monitor | cmdrmcdonald/EliteDangerousDataProvider | CargoMonitor/CargoMonitor.cs | CargoMonitor/CargoMonitor.cs | using Eddi;
using EddiDataDefinitions;
using EddiEvents;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using Utilities;
namespace EddiCargoMonitor
{
/// <summary>
/// A ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EddiCargoMonitor
{
/// <summary>
/// A monitor that keeps track of cargo
/// </summary>
public class CargoMonitor
{
}
}
| apache-2.0 | C# |
97c54de3bff4787aa8161b4a33dd53500dd3bfdc | Fix performance statistic not handling rulesets with unimplemented calculator | ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu | osu.Game/Screens/Ranking/Expanded/Statistics/PerformanceStatistic.cs | osu.Game/Screens/Ranking/Expanded/Statistics/PerformanceStatistic.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.Threading;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions;
using osu.Framework.Graphics;
using ... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Threading;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions;
using osu.Framework.Graphics;
using ... | mit | C# |
ac1ccb2d283fe494f98bbf217b0af5db3d183f8c | Fix about TraceSwitch | Seddryck/NBi,Seddryck/NBi | NBi.Core/Calculation/Grouping/AbstractByColumnGrouping.cs | NBi.Core/Calculation/Grouping/AbstractByColumnGrouping.cs | using NBi.Core.ResultSet;
using NBi.Extensibility;
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.Core.Calculation.Grouping
{
public abstract class AbstractByColumnGrouping : IByColumnGr... | using NBi.Core.ResultSet;
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBi.Core.Calculation.Grouping
{
public abstract class AbstractByColumnGrouping : IByColumnGrouping
{
prot... | apache-2.0 | C# |
a3570e38720fcf3a1890466656c1f136e53ac669 | Use GitVersion for test app | ermshiperete/BuildDependency | Samples/BuildDependencyTestApp/Properties/AssemblyInfo.cs | Samples/BuildDependencyTestApp/Properties/AssemblyInfo.cs | // Copyright (c) 2015 Eberhard Beilharz
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your proje... | // Copyright (c) 2015 Eberhard Beilharz
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your proje... | mit | C# |
fb1c18ae47fe5b05f4ddc824e89af2cd8c2944c0 | Make KeyBinding explicitly take an InputKey in a ctor argument. | ppy/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,Nabile-Rahmani/osu-framework,Nabile-Rahmani/osu-framework,peppy/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,d... | osu.Framework/Input/Bindings/KeyBinding.cs | osu.Framework/Input/Bindings/KeyBinding.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Input.Bindings
{
/// <summary>
/// A binding of a <see cref="Bindings.KeyCombination"/> to an action.
/// </summary>... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Input.Bindings
{
/// <summary>
/// A binding of a <see cref="Bindings.KeyCombination"/> to an action.
/// </summary>... | mit | C# |
cc4070c76cbd5014672dae8664a15c2d802dd14f | Isolate headless runs' storage paths | DrabWeb/osu-framework,EVAST9919/osu-framework,Nabile-Rahmani/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,default0/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,default0/osu-framework,Nabile-Rahmani/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-frame... | osu.Framework/Platform/HeadlessGameHost.cs | osu.Framework/Platform/HeadlessGameHost.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System.Collections.Generic;
using osu.Framework.Input.Handlers;
using osu.Framework.Timing;
namespace osu.Framework.Platform
{
/// <summar... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System.Collections.Generic;
using osu.Framework.Input.Handlers;
using osu.Framework.Timing;
namespace osu.Framework.Platform
{
/// <summar... | mit | C# |
fdc316406900e733604dc6cb059d596ce670e30b | make Tempy work with dotnet 3 | fxlv/tempy,fxlv/tempy,fxlv/tempy,fxlv/tempy | TempyAPI/Startup.cs | TempyAPI/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Serilog;
namespace TempyAPI
{
public class Startup
{
public Startup(IConfiguration configuration)
... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Serilog;
namespace TempyAPI
{
public class Startup
{
public Startup(IConfiguration configuration)
... | isc | C# |
0dd3abe13b99bc7a04e494ef8cdbb527a80d8c39 | exclude filestream for storage pecker | ASOS/woodpecker | src/Woodpecker.Core/Sql/AzureSqlStorageSizePecker.cs | src/Woodpecker.Core/Sql/AzureSqlStorageSizePecker.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Woodpecker.Core.Sql
{
public class AzureSqlStorageSizePecker : AzureSqlDmvPeckerBase
{
private const string _query = @"
select @@servername [collection_server_name] ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Woodpecker.Core.Sql
{
public class AzureSqlStorageSizePecker : AzureSqlDmvPeckerBase
{
private const string _query = @"
select @@servername [collection_server_name] ... | mit | C# |
ccc3df7350961543543db8b4d6093f4d261dc746 | fix demo | Newbe36524/Newbe.Mahua.Framework | src/Newbe.Mahua.Plugins.Parrot/MahuaEvents/PrivateMessageFromFriendReceivedMahuaEvent.cs | src/Newbe.Mahua.Plugins.Parrot/MahuaEvents/PrivateMessageFromFriendReceivedMahuaEvent.cs | using Newbe.Mahua.MahuaEvents;
using System.Threading.Tasks;
namespace Newbe.Mahua.Plugins.Parrot.MahuaEvents
{
/// <summary>
/// 来自好友的私聊消息接收事件
/// </summary>
public class PrivateMessageFromFriendReceivedMahuaEvent
: IPrivateMessageFromFriendReceivedMahuaEvent
{
private readonly IM... | using Newbe.Mahua.MahuaEvents;
namespace Newbe.Mahua.Plugins.Parrot.MahuaEvents
{
/// <summary>
/// 来自好友的私聊消息接收事件
/// </summary>
public class PrivateMessageFromFriendReceivedMahuaEvent
: IPrivateMessageFromFriendReceivedMahuaEvent
{
private readonly IMahuaApi _mahuaApi;
pu... | mit | C# |
d5ad683ac688ee9d852a8fd4ad9ae0434b82739e | Remove comment | AzureAutomationTeam/azure-powershell,hallihan/azure-powershell,dulems/azure-powershell,alfantp/azure-powershell,seanbamsft/azure-powershell,dominiqa/azure-powershell,Matt-Westphal/azure-powershell,AzureAutomationTeam/azure-powershell,praveennet/azure-powershell,yoavrubin/azure-powershell,devigned/azure-powershell,shuag... | src/ResourceManager/Network/Commands.NetworkResourceProvider/Common/NetworkBaseClient.cs | src/ResourceManager/Network/Commands.NetworkResourceProvider/Common/NetworkBaseClient.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# |
30ebba15ae251a89c8ae0330738d0a1897076759 | add some more Utility methods | mans0954/f-spot,Yetangitu/f-spot,Sanva/f-spot,mans0954/f-spot,nathansamson/F-Spot-Album-Exporter,mono/f-spot,GNOME/f-spot,Sanva/f-spot,Sanva/f-spot,Yetangitu/f-spot,GNOME/f-spot,Yetangitu/f-spot,mans0954/f-spot,dkoeb/f-spot,NguyenMatthieu/f-spot,GNOME/f-spot,NguyenMatthieu/f-spot,Sanva/f-spot,mans0954/f-spot,dkoeb/f-sp... | src/Widgets/GdkUtils.cs | src/Widgets/GdkUtils.cs | using System;
using Gdk;
using System.Runtime.InteropServices;
namespace FSpot.Widgets {
public class GdkUtils {
[DllImport("libgdk-2.0-0.dll")]
static extern uint gdk_x11_drawable_get_xid (IntPtr d);
[DllImport("libgdk-2.0-0.dll")]
static extern IntPtr gdk_x11_display_get_xdisplay (IntPtr d);
[DllImport... | using System;
using Gdk;
using System.Runtime.InteropServices;
namespace FSpot.Widgets {
public class GdkUtils {
[DllImport("libgdk-2.0-0.dll")]
static extern uint gdk_x11_drawable_get_xid (IntPtr d);
[DllImport("libgdk-2.0-0.dll")]
static extern IntPtr gdk_x11_display_get_xdisplay (IntPtr d);
[DllImpor... | mit | C# |
c5105782c0b9688bf16f696751cd6c59ba30affd | Add TODOs to the monitor tool | arfbtwn/dbus-sharp,openmedicus/dbus-sharp,arfbtwn/dbus-sharp,mono/dbus-sharp,Tragetaschen/dbus-sharp,openmedicus/dbus-sharp,Tragetaschen/dbus-sharp,mono/dbus-sharp | src/Monitor.cs | src/Monitor.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.Collections.Generic;
using NDesk.DBus;
using org.freedesktop.DBus;
public class ManagedDBusTest
{
public static void Main (string[] args)
{
//TODO: allow sele... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.Collections.Generic;
using NDesk.DBus;
using org.freedesktop.DBus;
public class ManagedDBusTest
{
public static void Main ()
{
Connection conn = new Connectio... | mit | C# |
71ff31ee80261568a75c734a4b8f0127aec38abb | Bump version to 0.30.9 | github-for-unity/Unity,github-for-unity/Unity,github-for-unity/Unity | common/SolutionInfo.cs | common/SolutionInfo.cs | #pragma warning disable 436
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("GitHub for Unity")]
[assembly: AssemblyVersion(System.AssemblyVersionInformation.Version)]
[assembly: AssemblyFileVersion(System.Assembl... | #pragma warning disable 436
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyProduct("GitHub for Unity")]
[assembly: AssemblyVersion(System.AssemblyVersionInformation.Version)]
[assembly: AssemblyFileVersion(System.Assembl... | mit | C# |
e1e5708c8781991c3337a4d8de12581a96f95d5d | make the enum private, force the first item to 0 | mono/f-spot,Sanva/f-spot,mono/f-spot,nathansamson/F-Spot-Album-Exporter,dkoeb/f-spot,mans0954/f-spot,mans0954/f-spot,GNOME/f-spot,mans0954/f-spot,GNOME/f-spot,dkoeb/f-spot,GNOME/f-spot,GNOME/f-spot,nathansamson/F-Spot-Album-Exporter,mans0954/f-spot,Yetangitu/f-spot,dkoeb/f-spot,mans0954/f-spot,mono/f-spot,dkoeb/f-spot,... | src/DragDropTargets.cs | src/DragDropTargets.cs | /*
* FSpot.Gui.DragDropTargets.cs
*
* Author(s)
* Mike Gemuende <mike@gemuende.de>
*
* This is free software. See COPYING for details.
*/
using System;
using Gtk;
namespace FSpot.Gui
{
public static class DragDropTargets
{
enum TargetType {
PlainText = 0,
UriList,
TagList,
TagQueryItem,
Ur... | /*
* DragDropTargets.cs
*
* Author(s)
* Mike Gemuende <mike@gemuende.de>
*
* This is free software. See COPYING for details.
*/
using System;
using Gtk;
namespace FSpot.Gui
{
public static class DragDropTargets
{
public enum TargetType {
PlainText,
UriList,
TagList,
TagQueryItem,
UriQu... | mit | C# |
0fccd7d45f4e7df78a355443b0197f242e76cc23 | Remove unused `using` directive. | fixie/fixie | src/Fixie/TestClass.cs | src/Fixie/TestClass.cs | namespace Fixie
{
using System;
using System.Reflection;
using System.Runtime.ExceptionServices;
/// <summary>
/// The context in which a test class is running.
/// </summary>
public class TestClass
{
readonly Action<Action<Case>> runCases;
readonly bool isStatic;
... | namespace Fixie
{
using System;
using System.Reflection;
using System.Runtime.ExceptionServices;
using Internal;
/// <summary>
/// The context in which a test class is running.
/// </summary>
public class TestClass
{
readonly Action<Action<Case>> runCases;
readonly ... | mit | C# |
8d040b87b7449b5c46e4930a16a1c8b2a35405ae | Update AssemblyInfo.cs | IMS-GmbH/win32setupapi-cswrapper | trunk/Win32SetupApiNative/Properties/AssemblyInfo.cs | trunk/Win32SetupApiNative/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Win32SetupApiNative")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Win32SetupApiNative")]
[assembly: AssemblyCopyright("Copyright © 2013")]... | 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("Win32SetupApiNative")]
[assembly: Assembl... | bsd-3-clause | C# |
6a703b1c1bc638c4dcb856d5e306dff13579974f | Add Empty.XXX<T> | yufeih/Common | src/CommonTasks.cs | src/CommonTasks.cs | namespace System.Threading.Tasks
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
static class CommonTasks
{
public static readonly Task Completed = Task.FromResult(true);
public static readonly Task<bool> True = Task.FromResult(true);
pub... | namespace System.Threading.Tasks
{
using System.Collections.Generic;
using System.IO;
using System.Linq;
static class CommonTasks
{
public static readonly Task Completed = Task.FromResult(true);
public static readonly Task<bool> True = Task.FromResult(true);
... | mit | C# |
16634e524afea4edfba7eb8330b3da9ed332541e | Remove Drawable[][] implicit operator | EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,peppy/osu-framework | osu.Framework/Graphics/Containers/GridContainerContent.cs | osu.Framework/Graphics/Containers/GridContainerContent.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.Lists;
namespace osu.Framework.Graphics.Containers
{
/// <summary>
/// A wrapper that provides access to the <see cref="GridContainer.Conten... | // 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.Lists;
namespace osu.Framework.Graphics.Containers
{
/// <summary>
/// A wrapper that provides access to the <see cref="GridContainer.Conten... | mit | C# |
3feaaa3e4da9c688fd5f4c89bae004c8468db549 | Use FillMode.Fit for icons | smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,2yangk23/osu,peppy/osu,smoogipoo/osu,johnneijzen/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,smoogipooo/osu,EVAST9919/osu,UselessToucan/osu,UselessToucan/osu,johnneijzen/osu,peppy/osu-new,EVAST9919/osu,2yangk23/osu,ppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu | osu.Game/Graphics/UserInterface/ScreenTitleTextureIcon.cs | osu.Game/Graphics/UserInterface/ScreenTitleTextureIcon.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics... | mit | C# |
822a2f6d0a59bf3f8e432d3a938ce9512549ae6e | comment out non-functioning code | 2nd47/GameJam-2 | Assets/Scripts/BouncyCollider.cs | Assets/Scripts/BouncyCollider.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BouncyCollider : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnTriggerEnter (Collider other) {
Vector3 bounceDir = Vector3.Refl... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BouncyCollider : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnTriggerEnter (Collider other) {
Vector3 bounceDir = Vector3.Refl... | mit | C# |
a0615f783198662c2d61f0312994dca48909e3fe | Simplify if directives | thedoritos/unimgpicker,thedoritos/unimgpicker,thedoritos/unimgpicker | Assets/Unimgpicker/Scripts/Unimgpicker.cs | Assets/Unimgpicker/Scripts/Unimgpicker.cs | using System;
using UnityEngine;
namespace Kakera
{
public class Unimgpicker : MonoBehaviour
{
public delegate void ImageDelegate(string path);
public delegate void ErrorDelegate(string message);
public event ImageDelegate Completed;
public event ErrorDelegate Failed;
... | using System;
using UnityEngine;
namespace Kakera
{
public class Unimgpicker : MonoBehaviour
{
public delegate void ImageDelegate(string path);
public delegate void ErrorDelegate(string message);
public event ImageDelegate Completed;
public event ErrorDelegate Failed;
... | mit | C# |
b9d73cd1ea8b4667c77a90707d56f9ffa001512f | Sort lobby queue servers | paralin/D2Moddin | D2MPMaster/Server/ServerService.cs | D2MPMaster/Server/ServerService.cs | using System.Linq;
using D2MPMaster.Lobbies;
using D2MPMaster.Server;
using d2mpserver;
using XSockets.Core.XSocket.Helpers;
namespace D2MPMaster
{
public static class ServerManager
{
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod(... | using System.Linq;
using D2MPMaster.Lobbies;
using D2MPMaster.Server;
using d2mpserver;
using XSockets.Core.XSocket.Helpers;
namespace D2MPMaster
{
public static class ServerManager
{
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod(... | apache-2.0 | C# |
fbee85a19b72cc0396990d3dda39a037faa81755 | Bump version #. | google/access-bridge-explorer | src/Properties/AssemblyInfo.cs | src/Properties/AssemblyInfo.cs | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | apache-2.0 | C# |
02ea2e8ad65f6ed81313f049c3a67101ed1bc031 | Fix resolver | EasyPeasyLemonSqueezy/MadCat | MadCat/NutEngine/Physics/Collider/ResolveCollision.cs | MadCat/NutEngine/Physics/Collider/ResolveCollision.cs | using Microsoft.Xna.Framework;
using NutEngine.Physics.Shapes;
using System;
namespace NutEngine.Physics
{
public static partial class Collider
{
public static void ResolveCollision(Collision collision)
{
var relVelocity = collision.B.Velocity - collision.A.Velocity;
va... | using Microsoft.Xna.Framework;
using NutEngine.Physics.Shapes;
using System;
namespace NutEngine.Physics
{
public static partial class Collider
{
// We should use Bodies, because we can't calculate relative velocity in manifold.
// (Obviously we can, but it will be a bit weird)
public ... | mit | C# |
53ee6486b5a25b64070ac91faae251c0ffe9c823 | Set version "0.11.0" | jaenyph/DelegateDecompiler,morgen2009/DelegateDecompiler,hazzik/DelegateDecompiler | src/DelegateDecompiler/Properties/AssemblyInfo.cs | src/DelegateDecompiler/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: Assembly... | 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: Assembly... | mit | C# |
fcf0d2d3e876f22b0a0c3e0e1604985dec68a315 | Add validations to schema | contentful/contentful.net | Contentful.Core/Models/Schema.cs | Contentful.Core/Models/Schema.cs | using Contentful.Core.Models.Management;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Contentful.Core.Models
{
/// <summary>
/// Represents a schema of array items.
/// </summary>
public class Schema
{
/// <summary>
/// ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Contentful.Core.Models
{
/// <summary>
/// Represents a schema of array items.
/// </summary>
public class Schema
{
/// <summary>
/// Specifies what types of resources are all... | mit | C# |
33e350afafc65f71cd3cd95c5ff488c92d75ae35 | Fix Gaussian distribution when multithreading. | cbovar/ConvNetSharp,hiperz/ConvNetSharp | src/ConvNetSharp.Volume/RandomUtilities.cs | src/ConvNetSharp.Volume/RandomUtilities.cs | using System;
namespace ConvNetSharp.Volume
{
public static class RandomUtilities
{
private static readonly Random Random = new Random(Seed);
private static double val;
private static bool returnVal;
public static int Seed => (int) 123;//DateTime.Now.Ticks;
public sta... | using System;
namespace ConvNetSharp.Volume
{
public static class RandomUtilities
{
private static readonly Random Random = new Random(Seed);
private static double val;
private static bool returnVal;
public static int Seed => (int) 123;//DateTime.Now.Ticks;
public sta... | mit | C# |
97fb505bf1862b68544c4f20c27acb187d7775e3 | Change Guard to use IsNotNullNorEmpty instead of IsNotNull for strings parameters | evicertia/HermaFx,evicertia/HermaFx,evicertia/HermaFx | HermaFx.Rebus/RebusExtensions.cs | HermaFx.Rebus/RebusExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Rebus;
using Rebus.Shared;
namespace HermaFx.Rebus
{
public static class RebusExtensions
{
public static void Send<TCommand>(this IBus bus, Action<TCommand> customizer)
where TCommand : new()
{
Guard.Is... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Rebus;
using Rebus.Shared;
namespace HermaFx.Rebus
{
public static class RebusExtensions
{
public static void Send<TCommand>(this IBus bus, Action<TCommand> customizer)
where TCommand : new()
{
Guard.Is... | mit | C# |
4d339741de06c787b341339f856a0d2d3e5d6aa9 | add useful links | smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp | src/StockportWebapp/Views/stockportgov/Comms/Index.cshtml | src/StockportWebapp/Views/stockportgov/Comms/Index.cshtml | @using StockportWebapp.Models
@model StockportWebapp.Models.CommsHomepage
@{
ViewData["Title"] = Model.Title;
ViewData["og:title"] = Model.Title;
ViewData["WhiteBackground"] = true;
Layout = "../Shared/_LayoutSemantic.cshtml";
var crumbsList = new List<Crumb>();
}
@section Breadcrumbs {
<parti... | @using StockportWebapp.Models
@model StockportWebapp.Models.CommsHomepage
@{
ViewData["Title"] = Model.Title;
ViewData["og:title"] = Model.Title;
ViewData["WhiteBackground"] = true;
Layout = "../Shared/_LayoutSemantic.cshtml";
var crumbsList = new List<Crumb>();
}
@section Breadcrumbs {
<parti... | mit | C# |
050a9e5aa58c7773a9db833606c921a1976e6ed9 | Add consturctor | EasyPeasyLemonSqueezy/MadCat | MadCat/NutEngine/Physics/Body.cs | MadCat/NutEngine/Physics/Body.cs | using Microsoft.Xna.Framework;
using NutEngine.Physics.Shapes;
namespace NutEngine.Physics
{
public class Body
{
public Shape Shape { get; private set; }
public MassData Mass { get; private set; }
public Material Material { get; private set; }
public object Owner { get; set; }
... | using Microsoft.Xna.Framework;
using NutEngine.Physics.Shapes;
namespace NutEngine.Physics
{
public class Body
{
public Shape Shape { get; private set; }
public MassData Mass { get; private set; }
public Material Material { get; private set; }
public object Owner { get; set; }
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.