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 |
|---|---|---|---|---|---|---|---|---|
29aa1b451d529069da831feca2d927268fcce6ed | Add version comment | martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site | src/LondonTravel.Site/Views/Shared/_Layout.cshtml | src/LondonTravel.Site/Views/Shared/_Layout.cshtml | @inject IConfiguration Config
@inject Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet JavaScriptSnippet
<!DOCTYPE html>
<html lang="en-gb">
<head prefix="og: http://ogp.me/ns#">
@{
string canonicalUri = Context.Request.Canonical();
string image = ViewBag.MetaImage ?? string.Empty;
if (!string.Is... | @inject IConfiguration Config
@inject Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet JavaScriptSnippet
<!DOCTYPE html>
<html lang="en-gb">
<head prefix="og: http://ogp.me/ns#">
@{
string canonicalUri = Context.Request.Canonical();
string image = ViewBag.MetaImage ?? string.Empty;
if (!string.Is... | apache-2.0 | C# |
9c9a961c9b386c08bae9fcc7d80cae8d2d7f9bf1 | Patch delegates.xml for non Windows platform. | dlemstra/Magick.NET,dlemstra/Magick.NET | src/Magick.NET/Configuration/ConfigurationFile.cs | src/Magick.NET/Configuration/ConfigurationFile.cs | // Copyright 2013-2021 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
//
// https://www.imagemagick.org/script/license.php
//
// Unless req... | // Copyright 2013-2021 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
//
// https://www.imagemagick.org/script/license.php
//
// Unless req... | apache-2.0 | C# |
bfca2179a2d88f686ceaea964e9d912b99cee3ed | fix nullable definition | acple/ParsecSharp | ParsecSharp/Data/TokenizedStream.cs | ParsecSharp/Data/TokenizedStream.cs | using System;
using ParsecSharp.Internal;
namespace ParsecSharp
{
public sealed class TokenizedStream<TInput, TToken> : IParsecStateStream<TToken>
{
private readonly IDisposable source;
private readonly LinearPosition _position;
private readonly Lazy<IParsecStateStream<TToken>> _next;... | using System;
using ParsecSharp.Internal;
namespace ParsecSharp
{
public sealed class TokenizedStream<TInput, TToken> : IParsecStateStream<TToken>
{
private readonly IDisposable source;
private readonly LinearPosition _position;
private readonly Lazy<IParsecStateStream<TToken>> _next;... | mit | C# |
7d02004ca68c233ff08f7651fe5e033f06562c1e | Add a token fuckup test | tgstation/tgstation-server,tgstation/tgstation-server-tools,Cyberboss/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server | tests/Tgstation.Server.Tests/IntegrationTest.cs | tests/Tgstation.Server.Tests/IntegrationTest.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.IO;
using System.Net.Http.Headers;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Api;
using Tgstation.Server.Api.Models;
using Tgstation.Server.Client;
using Tgstation.Server.Host;
nam... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.IO;
using System.Net.Http.Headers;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Api;
using Tgstation.Server.Api.Models;
using Tgstation.Server.Client;
using Tgstation.Server.Host;
nam... | agpl-3.0 | C# |
b19aaf7a39a2fb72c640c4fe755251936b14567d | Remove unused usings | nessos/Eff | tests/Eff.Benchmarks/Benchmark.cs | tests/Eff.Benchmarks/Benchmark.cs | #pragma warning disable 1998
using BenchmarkDotNet.Attributes;
using Nessos.Effects.Handlers;
using System.Linq;
using System.Threading.Tasks;
namespace Nessos.Effects.Benchmarks
{
[MemoryDiagnoser]
public class Benchmark
{
private int[] _data = null!;
private IEffectHandler _handler = nul... | #pragma warning disable 1998
using System;
using System.Linq;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using Nessos.Effects.Handlers;
namespace Nessos.Effects.Benchmarks
{
[MemoryDiagnoser]
public class Benchmark
{
private int[] _data = null!;
private IEffectHandler ... | mit | C# |
a2a297d2f59052429c653c16d33bc45f291cc15b | Build test. | lelong37/urf,lelong37/urf,lelong37/urf | main/Sample/Northwind.Web/App_Start/UnityConfig.cs | main/Sample/Northwind.Web/App_Start/UnityConfig.cs | using System;
using System.Collections.Generic;
using System.Data.Entity;
using CommonServiceLocator;
using Microsoft.Practices.Unity;
using Northwind.Entities.Models;
using Northwind.Service;
using Repository.Pattern.DataContext;
using Repository.Pattern.Ef6;
using Repository.Pattern.Repositories;
using Repository.Pat... | using System;
using System.Collections.Generic;
using System.Data.Entity;
using CommonServiceLocator;
using Microsoft.Practices.Unity;
using Northwind.Entities.Models;
using Northwind.Service;
using Repository.Pattern.DataContext;
using Repository.Pattern.Ef6;
using Repository.Pattern.Repositories;
using Repository.Pat... | mit | C# |
2cb3e59c8bc7e67edef4dfe7f9c7dfc01db386a7 | Make MenuItem support nested MenuItems. | DrabWeb/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,Nabile-Rahmani/osu-framework,peppy/osu-framework,ppy/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,EVAST9919/osu-... | osu.Framework/Graphics/UserInterface/MenuItem.cs | osu.Framework/Graphics/UserInterface/MenuItem.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;
using System.Collections.Generic;
using osu.Framework.Configuration;
namespace osu.Framework.Graphics.UserInterface
{
public class... | // 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;
using osu.Framework.Configuration;
namespace osu.Framework.Graphics.UserInterface
{
public class MenuItem
{
/// <summ... | mit | C# |
a2d3a3bb300ba78fcbd6214ede543da5dfc55d80 | create console on main scene | reinterpretcat/utymap,reinterpretcat/utymap,reinterpretcat/utymap | unity/demo/Assets/Scripts/MainSceneBehaviour.cs | unity/demo/Assets/Scripts/MainSceneBehaviour.cs | using UnityEngine;
using UtyMap.Unity.Infrastructure.Config;
namespace Assets.Scripts
{
internal class MainSceneBehaviour : MonoBehaviour
{
private void Awake()
{
ApplicationManager.Instance.InitializeFramework(ConfigBuilder.GetDefault(), _ => { });
ApplicationManager.I... | using UnityEngine;
using UtyMap.Unity.Infrastructure.Config;
namespace Assets.Scripts
{
internal class MainSceneBehaviour : MonoBehaviour
{
private void Awake()
{
ApplicationManager.Instance.InitializeFramework(ConfigBuilder.GetDefault(), _ => { });
}
}
} | apache-2.0 | C# |
a5b9a971ac70adfaa31616f216820da74140636a | Revert HttpTaskAsyncHandler.cs to previous behavior of returning null to ASP.NET if ProcessRequestAsync returns null. | shiftkey/SignalR,shiftkey/SignalR | SignalR/Web/HttpTaskAsyncHandler.cs | SignalR/Web/HttpTaskAsyncHandler.cs | using System;
using System.Threading.Tasks;
using System.Web;
namespace SignalR.Web
{
public abstract class HttpTaskAsyncHandler : IHttpAsyncHandler
{
public virtual bool IsReusable
{
get { return false; }
}
public virtual void ProcessRequest(HttpContext context)
... | using System;
using System.Threading.Tasks;
using System.Web;
namespace SignalR.Web
{
public abstract class HttpTaskAsyncHandler : IHttpAsyncHandler
{
public virtual bool IsReusable
{
get { return false; }
}
public virtual void ProcessRequest(HttpContext context)
... | mit | C# |
9848f6850cee47686f7bae3013ccbc8c0795b04a | Test coverage for runtime-type mapping within a collection | agileobjects/AgileMapper | AgileMapper.UnitTests/WhenMappingDerivedTypes.cs | AgileMapper.UnitTests/WhenMappingDerivedTypes.cs | namespace AgileObjects.AgileMapper.UnitTests
{
using System;
using System.Collections.Generic;
using System.Linq;
using Shouldly;
using TestClasses;
using Xunit;
public class WhenMappingDerivedTypes
{
[Fact]
public void ShouldMapARootComplexTypeFromItsAssignedType()
... | namespace AgileObjects.AgileMapper.UnitTests
{
using System.Collections.Generic;
using System.Linq;
using Shouldly;
using TestClasses;
using Xunit;
public class WhenMappingDerivedTypes
{
[Fact]
public void ShouldMapARootComplexTypeFromItsAssignedType()
{
... | mit | C# |
3d7ef014fa86ac601a4d3e2e315cf8000de99bbd | Add text/html as first content type, should possible detect IE.. | ryansroberts/Snooze,ryansroberts/Snooze | Source/Snooze/ResourceFormatters.cs | Source/Snooze/ResourceFormatters.cs | #region
using System.Collections.Generic;
#endregion
namespace Snooze
{
public static class ResourceFormatters
{
static readonly IList<IResourceFormatter> _formatters = new List<IResourceFormatter>();
static ResourceFormatters()
{
// The order of formatters... | #region
using System.Collections.Generic;
#endregion
namespace Snooze
{
public static class ResourceFormatters
{
static readonly IList<IResourceFormatter> _formatters = new List<IResourceFormatter>();
static ResourceFormatters()
{
// The order of formatters... | bsd-3-clause | C# |
2b09cca989d548fa682bcdf325d5d61192cd0ee8 | fix the ByRowIdentifier serialization name, closes #5 | CityofSantaMonica/SODA.NET,chrismetcalf/SODA.NET | SODA/SodaResult.cs | SODA/SodaResult.cs | using System.Runtime.Serialization;
namespace SODA
{
/// <summary>
/// A class representing the response from a SODA call.
/// </summary>
[DataContract]
public class SodaResult
{
/// <summary>
/// Gets or sets the number of modifications made based on the row identifier.
... | using System.Runtime.Serialization;
namespace SODA
{
/// <summary>
/// A class representing the response from a SODA call.
/// </summary>
[DataContract]
public class SodaResult
{
/// <summary>
/// Gets or sets the number of modifications made based on the row identifier.
... | mit | C# |
8ee406b5cce5b3df5923db75811b8e95e044705b | Fix to file compiled | rootdevelop/semm,rootdevelop/semm | SEMMSpaceGame/SpaceGame.Common/InitialGameLayer.cs | SEMMSpaceGame/SpaceGame.Common/InitialGameLayer.cs | using System;
using CocosSharp;
using Microsoft.Xna.Framework.Graphics;
namespace SpaceGame.Common
{
public class InitialGameLayer : CCLayerColor
{
CCLabel helloLabel;
CCTileMap tileMap;
CCSprite playerSprite;
public InitialGameLayer () : base (CCColor4B.Blue)
{
Schedule (RunGameLogic);
}
void Ru... | using System;
using CocosSharp;
using Microsoft.Xna.Framework.Graphics;
namespace SpaceGame.Common
{
public class InitialGameLayer : CCLayerColor
{
CCLabel helloLabel;
CCTileMap tileMap;
CCSprite playerSprite;
public InitialGameLayer () : base (CCColor4B.Blue)
{
Schedule (RunGameLogic);
}
void Ru... | mit | C# |
b7aad8b5435d60e4c9653ed4790579ddf56768a0 | increase ServiceContract version number | gigya/microdot | Gigya.ServiceContract/Properties/AssemblyInfo.cs | Gigya.ServiceContract/Properties/AssemblyInfo.cs | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | apache-2.0 | C# |
2e03798dba78c2720310853c081deef04fe5d984 | fix version no | gigya/microdot | Gigya.ServiceContract/Properties/AssemblyInfo.cs | Gigya.ServiceContract/Properties/AssemblyInfo.cs | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | apache-2.0 | C# |
6296d21ea1cf5a7b1026be44ce9207f76ad07b47 | Define object scopes by blocks | TheBerkin/Rant | Rant/Engine/Syntax/RABlock.cs | Rant/Engine/Syntax/RABlock.cs | using Rant.Stringes;
using System;
using System.Collections.Generic;
using System.Linq;
using Rant.Engine.Constructs;
namespace Rant.Engine.Syntax
{
/// <summary>
/// Represents a block construct, which provides multiple options to the interpreter for the next sequence, one of which is chosen.
/// </summary>
int... | using Rant.Stringes;
using System;
using System.Collections.Generic;
using System.Linq;
using Rant.Engine.Constructs;
namespace Rant.Engine.Syntax
{
/// <summary>
/// Represents a block construct, which provides multiple options to the interpreter for the next sequence, one of which is chosen.
/// </summary>
int... | mit | C# |
31d33d26cc871c20d2a75724032259eacdd726c0 | increase batch version | ibrahimbensalah/Xania.AspNet,ibrahimbensalah/Xania.AspNet,ibrahimbensalah/Xania.AspNet | Xania.AspNet.TagHelpers/Properties/AssemblyInfo.cs | Xania.AspNet.TagHelpers/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Xania.AspNet.TagHelpers")]
[assembly: Ass... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Xania.AspNet.TagHelpers")]
[assembly: Ass... | mit | C# |
f8a8db6ed5150fa130e3da92eec2c3c12bf9cb71 | Change order | yishn/GTPWrapper | GTPWrapper/Sgf/SgfProperty.cs | GTPWrapper/Sgf/SgfProperty.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GTPWrapper.Sgf {
/// <summary>
/// Represents a SGF property.
/// </summary>
public class SgfProperty {
/// <summary>
/// The identifier of the property.
/// </summary>
publi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GTPWrapper.Sgf {
/// <summary>
/// Represents a SGF property.
/// </summary>
public class SgfProperty {
/// <summary>
/// The identifier of the property.
/// </summary>
publi... | mit | C# |
aaf885b0db206f717a8e9094d29c1566385f7d84 | Make griddly defaults and parameters case insensitive | programcsharp/griddly,programcsharp/griddly,programcsharp/griddly | Griddly.Mvc/GriddlyContext.cs | Griddly.Mvc/GriddlyContext.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Griddly.Mvc
{
public class GriddlyContext
{
public string Name { get; set; }
public bool IsDefaultSkipped { get; set; }
public bool IsDeepLink { get; set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Griddly.Mvc
{
public class GriddlyContext
{
public string Name { get; set; }
public bool IsDefaultSkipped { get; set; }
public bool IsDeepLink { get; set; }
... | mit | C# |
42131774f293af5993319f0a4ed456a9532a779a | Fix tests compilation | tzachshabtay/MonoAGS | Source/Tests/Engine/Misc/Geometry/SquareTests.cs | Source/Tests/Engine/Misc/Geometry/SquareTests.cs | using NUnit.Framework;
using System;
using AGS.Engine;
using AGS.API;
namespace Tests
{
[TestFixture ()]
public class SquareTests
{
[TestCase(0f,0f, 10f,0f, 0f,10f, 10f,10f, 5f,5f, Result=true)]
[TestCase(0f,0f, 10f,0f, 0f,10f, 10f,10f, 15f,15f, Result=false)]
[TestCase(0f,0f, 10f,0f, 0f,10f, 10f,10f, 0f,0f,... | using NUnit.Framework;
using System;
using AGS.Engine;
namespace Tests
{
[TestFixture ()]
public class SquareTests
{
[TestCase(0f,0f, 10f,0f, 0f,10f, 10f,10f, 5f,5f, Result=true)]
[TestCase(0f,0f, 10f,0f, 0f,10f, 10f,10f, 15f,15f, Result=false)]
[TestCase(0f,0f, 10f,0f, 0f,10f, 10f,10f, 0f,0f, Result=true)]
... | artistic-2.0 | C# |
c00703318d75b427993604f308ed3bdd2023f8b2 | Test change in alpha branch | RationalGeek/sordid,RationalGeek/sordid,RationalGeek/sordid | source/Sordid.Web/Views/Home/Index.cshtml | source/Sordid.Web/Views/Home/Index.cshtml | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>Sordid</h1>
<h2>Dresden RPG Character Builder</h2>
<p class="lead">These words were written on the alpha branch...</p>
<p><a href="https://github.com/RationalGeek/sordid" class=" btn btn-primary btn-large">GitHub Project</a></p>... | @{
ViewBag.Title = "Home Page";
}
<div class="jumbotron">
<h1>Sordid</h1>
<h2>Dresden RPG Character Builder</h2>
<p class="lead">More words will appear her once they are written...</p>
<p><a href="https://github.com/RationalGeek/sordid" class=" btn btn-primary btn-large">GitHub Project</a>... | mit | C# |
992362f29ce417f52872b6a17e573016adc9c495 | Make ObjectPool mandatory for AudioController. | dimixar/audio-controller-unity | AudioController/Assets/Source/AudioController.cs | AudioController/Assets/Source/AudioController.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(ObjectPool))]
public class AudioController : MonoBehaviour
{
private ObjectPool _pool;
public void Play(string name)
{
//TODO: Add Implementation
}
void Awake()
{
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AudioController : MonoBehaviour
{
public List<AudioObject> _audioObjects;
}
| mit | C# |
30d195b6981d7526cfb00d57707063127296863e | Update SerilogLoggingSetupBase.cs | tiksn/TIKSN-Framework | TIKSN.Core/Analytics/Logging/Serilog/SerilogLoggingSetupBase.cs | TIKSN.Core/Analytics/Logging/Serilog/SerilogLoggingSetupBase.cs | using Microsoft.Extensions.Logging;
using Serilog;
namespace TIKSN.Analytics.Logging.Serilog
{
public class SerilogLoggingSetupBase : ILoggingSetup
{
protected LoggerConfiguration _loggerConfiguration;
protected SerilogLoggingSetupBase() => this._loggerConfiguration = new LoggerConfiguration()... | using Microsoft.Extensions.Logging;
using Serilog;
namespace TIKSN.Analytics.Logging.Serilog
{
public class SerilogLoggingSetupBase : ILoggingSetup
{
protected LoggerConfiguration _loggerConfiguration;
protected SerilogLoggingSetupBase() => this._loggerConfiguration = new LoggerConfiguration()... | mit | C# |
d9f6857a6f302fc1881b5b237d844b061890e897 | revert to previous version. just set StoreUniqueId = true; | jeremytammik/TraverseAllSystems,ChengZY/TraverseAllSystems,jeremytammik/TraverseAllSystems,ChengZY/TraverseAllSystems | TraverseAllSystems/Options.cs | TraverseAllSystems/Options.cs | namespace TraverseAllSystems
{
class Options
{
/// <summary>
/// Store element id or UniqueId in JSON output?
/// </summary>
public static bool StoreUniqueId = true;
public static bool StoreElementId = !StoreUniqueId;
/// <summary>
/// Store p... | namespace TraverseAllSystems
{
class Options
{
/// <summary>
/// Store element id or UniqueId in JSON output?
/// </summary>
public static bool StoreUniqueId = true;
public static bool StoreElementId = !StoreUniqueId;
/// <summary>
/// Store p... | mit | C# |
4dbcbbee20e6adc805be6cf1d23a657158a5d293 | Remove subjects from Teacher class | victoria92/university-program-generator,victoria92/university-program-generator | UniProgramGen/Data/Teacher.cs | UniProgramGen/Data/Teacher.cs | using System.Collections.Generic;
namespace UniProgramGen.Data
{
public class Teacher
{
// TODO: add list of requirements (as Requirement)
public readonly string name;
public Teacher(string name)
{
this.name = name;
}
}
}
| using System.Collections.Generic;
namespace UniProgramGen.Data
{
public class Teacher
{
// TODO: add list of requirements (as Requirement)
public readonly List<Subject> subjects;
public readonly string name;
public Teacher(List<Subject> subjects, string name)
{
... | bsd-2-clause | C# |
ea2b0958b26a42b55dbd78c08b4549f11b5414ac | Edit Form1_Load method | 60071jimmy/UartOscilloscope,60071jimmy/UartOscilloscope | VisualStudioProjects/ArrayDataGraphic/ArrayDataGraphic/Form1.cs | VisualStudioProjects/ArrayDataGraphic/ArrayDataGraphic/Form1.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ArrayDataGraphic
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCom... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ArrayDataGraphic
{
public partial class Form1 : Form
{
public Form1()
{
InitializeCom... | apache-2.0 | C# |
4e5bcf62cd155f473204ee02354a085957c4e8d8 | Clean code | michael-reichenauer/Dependinator | Dependinator/ModelViewing/Items/ItemViewModel.cs | Dependinator/ModelViewing/Items/ItemViewModel.cs | using System.Windows;
using Dependinator.Utils.UI;
namespace Dependinator.ModelViewing.Items
{
internal abstract class ItemViewModel : ViewModel, IItem
{
// UI properties
public string Type => this.GetType().Name;
public double CanvasWidth => ItemBounds.Width;
public double CanvasTop => ItemBounds.Top;
p... | using System.Windows;
using Dependinator.Utils.UI;
namespace Dependinator.ModelViewing.Items
{
internal abstract class ItemViewModel : ViewModel, IItem
{
// UI properties
public string Type => this.GetType().Name;
public double CanvasWidth => ItemBounds.Width;
public double CanvasTop => ItemBounds.Top;
p... | mit | C# |
bca4894e8b9dc1485c9fca06bfcd184d378cefd5 | Update AssemblyInfo.cs | sbidy/privacyIDEA-ADFSProvider,sbidy/privacyIDEA-ADFSProvider | privacyIDEAADFSProvider/Properties/AssemblyInfo.cs | privacyIDEAADFSProvider/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("pr... | 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("pr... | mit | C# |
08f3952a3ac8c49bc434bfbe96963b796b64e100 | Update CustomizingRibbonXML.cs | maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-as... | Examples/CSharp/Articles/CustomizingRibbonXML.cs | Examples/CSharp/Articles/CustomizingRibbonXML.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Articles
{
public class CustomizingRibbonXML
{
public static void Main()
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Articles
{
public class CustomizingRibbonXML
{
public static void Main()
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System.Reflection.MethodBase.G... | mit | C# |
1ffdbf39387c8ac54af915da74e45f8a6c85be80 | Throw ResultFailedException when error occured. | sdcb/sdmap | sdmap/src/sdmap/Functional/Result.cs | sdmap/src/sdmap/Functional/Result.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace sdmap.Functional
{
public class Result
{
public bool IsSuccess { get; }
public string Error { get; }
public bool IsFailure => !IsSuccess;
protected Result(bool isSuccess,... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace sdmap.Functional
{
public class Result
{
public bool IsSuccess { get; }
public string Error { get; }
public bool IsFailure => !IsSuccess;
protected Result(bool isSuccess,... | mit | C# |
28642ab94978d91095f2511f5b24d22a6b66f6d9 | index on pin messageId | jyarbro/forum,jyarbro/forum,jyarbro/forum | Forum3/Models/DataModels/ApplicationDbContext.cs | Forum3/Models/DataModels/ApplicationDbContext.cs | using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace Forum3.Models.DataModels {
public class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, string> {
public DbSet<Board> Boards { get; set; }
public DbSet<Category> Categories { get; se... | using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace Forum3.Models.DataModels {
public class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, string> {
public DbSet<Board> Boards { get; set; }
public DbSet<Category> Categories { get; se... | unlicense | C# |
4735e2a0f028ce8dee418ce48d8a7aeb06da557a | Remove extraneous code | mstrother/BmpListener | src/BmpListener/Bmp/PeerUpNotification.cs | src/BmpListener/Bmp/PeerUpNotification.cs | using System;
using System.Net;
using BmpListener.Bgp;
using BmpListener.MiscUtil.Conversion;
namespace BmpListener.Bmp
{
public class PeerUpNotification : BmpMessage
{
public IPAddress LocalAddress { get; private set; }
public int LocalPort { get; private set; }
public int RemotePort ... | using System;
using System.Net;
using BmpListener.Bgp;
using System.Linq;
using BmpListener.MiscUtil.Conversion;
namespace BmpListener.Bmp
{
public class PeerUpNotification : BmpMessage
{
public IPAddress LocalAddress { get; private set; }
public int LocalPort { get; private set; }
pub... | mit | C# |
4a2a794ff4ae9c92cfa730f5491e61223f71078a | Bump assembly version numbers | agc93/Cake.NSwag | src/Cake.NSwag/Properties/AssemblyInfo.cs | src/Cake.NSwag/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Cake.NSwag")]
[assembly: AssemblyDescrip... | 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("Cake.NSwag")]
[assembly: AssemblyDescrip... | mit | C# |
c48510c39af0e98f8547d3da663909138ada5513 | Update HtmlSanitizerOptions.cs | mganss/HtmlSanitizer | src/HtmlSanitizer/HtmlSanitizerOptions.cs | src/HtmlSanitizer/HtmlSanitizerOptions.cs | using AngleSharp.Css.Dom;
using System;
using System.Collections.Generic;
namespace Ganss.XSS
{
/// <summary>
/// Provides options to be used with <see cref="HtmlSanitizer"/>.
/// </summary>
public class HtmlSanitizerOptions
{
/// <summary>
/// Gets or sets the allowed tag names suc... | using System;
using System.Collections.Generic;
namespace Ganss.XSS
{
/// <summary>
/// Provides options to be used with <see cref="HtmlSanitizer"/>.
/// </summary>
public class HtmlSanitizerOptions
{
/// <summary>
/// Gets or sets the allowed tag names such as "a" and "div".
... | mit | C# |
fbc3cb02774037dc281e143230218191aad2f180 | Add field for error responses | Inumedia/SlackAPI | SlackAPI/RPCMessages/ConversationsOpenResponse.cs | SlackAPI/RPCMessages/ConversationsOpenResponse.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlackAPI
{
[RequestPath("conversations.open")]
public class ConversationsOpenResponse : Response
{
public string no_op;
public string already_open;
public C... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlackAPI
{
[RequestPath("conversations.open")]
public class ConversationsOpenResponse : Response
{
public string no_op;
public string already_open;
public C... | mit | C# |
e346adbb166f5d1ed31d96dc017610bccb590877 | Fix directory structure inside .bloom | BloomBooks/PhotoStoryToBloomConverter,BloomBooks/PhotoStoryToBloomConverter | PhotoStoryToBloomConverter/Utilities/ZipHelper.cs | PhotoStoryToBloomConverter/Utilities/ZipHelper.cs | using System.IO;
using ICSharpCode.SharpZipLib.Core;
using ICSharpCode.SharpZipLib.Zip;
using SIL.IO;
namespace PhotoStoryToBloomConverter.Utilities
{
/// <summary>
/// Copied and modified from BloomDesktop's BloomZipFile
/// </summary>
public static class ZipHelper
{
public static void Zip(string directoryPat... | using System.IO;
using ICSharpCode.SharpZipLib.Core;
using ICSharpCode.SharpZipLib.Zip;
using SIL.IO;
namespace PhotoStoryToBloomConverter.Utilities
{
/// <summary>
/// Copied and modified from BloomDesktop's BloomZipFile
/// </summary>
public static class ZipHelper
{
public static void Zip(string directoryPat... | mit | C# |
a8455ee93e3bc79708fb90fa26905764b9737b3b | Update Index.cshtml | feinoujc/RavenMailtrap | RavenMailtrap.Website/Views/Messages/Index.cshtml | RavenMailtrap.Website/Views/Messages/Index.cshtml | @using MvcContrib.Pagination
@using MvcContrib.UI.Pager
@using MvcContrib.UI.Grid
@using RavenMailtrap.Model
@model IEnumerable<Message>
@{
ViewBag.Title = "Home Page";
}
@Html.Grid(Model).Columns(columns =>
{
columns.For(m => m.From).Sortable(true);
columns.For(m => m.Subject).Sortable(true);
column... | @using MvcContrib.Pagination
@using MvcContrib.UI.Pager
@using MvcContrib.UI.Grid
@using RavenMailtrap.Model
@model IEnumerable<Message>
@{
ViewBag.Title = "Home Page";
}
@Html.Grid(Model).Columns(columns =>
{
columns.For(m => m.From).Sortable(true);
columns.For(m => m.Subject).Sortable(true);
column... | apache-2.0 | C# |
3abc87385e5195b28c63759f07be2ac8aff380d9 | fix paging bug | MattsGitCode/DevDotMail,MattsGitCode/DevDotMail | DevDotMail/EmailListModel.cs | DevDotMail/EmailListModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace DevDotMail
{
public class EmailListModel
{
public List<Email> Emails { get; private set; }
public int TotalRecordCount { get; private set; }
public QueryBuilder Builder { get; priv... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace DevDotMail
{
public class EmailListModel
{
public List<Email> Emails { get; private set; }
public int TotalRecordCount { get; private set; }
public QueryBuilder Builder { get; priv... | mit | C# |
2c78f7d21cdac0f07309e419c4679b88ae3707b7 | Change StandardBase32Encoding.Alphabet constant to a readonly property. | wiry-net/Wiry.Base32,wiry-net/Base32,wiry-net/Wiry.Base32,wiry-net/Base32 | src/Wiry.Base32/StandardBase32Encoding.cs | src/Wiry.Base32/StandardBase32Encoding.cs | // Copyright (c) Dmitry Razumikhin, 2016-2019.
// Licensed under the MIT License.
// See LICENSE in the project root for license information.
namespace Wiry.Base32
{
internal sealed class StandardBase32Encoding : Base32Encoding
{
private string Alphabet => "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
... | // Copyright (c) Dmitry Razumikhin, 2016-2019.
// Licensed under the MIT License.
// See LICENSE in the project root for license information.
namespace Wiry.Base32
{
internal sealed class StandardBase32Encoding : Base32Encoding
{
private const string Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
... | mit | C# |
ed92cdc8cb157aa6c4e2b9edf2ef2eeeec79c931 | Fix typo in martial-art genre descrption string | InfiniteSoul/Azuria | Azuria/Enums/Info/Genre.cs | Azuria/Enums/Info/Genre.cs | using System.ComponentModel;
#pragma warning disable 1591
namespace Azuria.Enums.Info
{
public enum Genre
{
[Description("Abenteuer")] Adventure,
[Description("Action")] Action,
[Description("Adult")] Adult,
[Description("Comedy")] Comedy,
[Description("Cyberpunk")] Cy... | using System.ComponentModel;
#pragma warning disable 1591
namespace Azuria.Enums.Info
{
public enum Genre
{
[Description("Abenteuer")] Adventure,
[Description("Action")] Action,
[Description("Adult")] Adult,
[Description("Comedy")] Comedy,
[Description("Cyberpunk")] Cy... | mit | C# |
5c88ad53bcee510b1c1416a430ab5f8878ceeef7 | Fix code quality issues | tewarid/NetTools,tewarid/net-tools | Common/NameValueDialog.cs | Common/NameValueDialog.cs | using System;
using System.Collections.Specialized;
using System.Windows.Forms;
namespace Common
{
public partial class NameValueDialog : Form
{
NameValueCollection collection;
public NameValueCollection NameValues
{
get
{
return c... | using System;
using System.Collections.Specialized;
using System.Windows.Forms;
namespace Common
{
public partial class NameValueDialog : Form
{
NameValueCollection collection;
public NameValueCollection NameValues
{
get
{
return c... | mit | C# |
01bda82d20fb894e38d2f2f845f055ef9a3e53eb | Fix styling | It423/enigma-simulator,wrightg42/enigma-simulator | Enigma/Enigma/App.xaml.cs | Enigma/Enigma/App.xaml.cs | // App.xaml.cs
// <copyright file="App.xaml.cs"> This code is protected under the MIT License. </copyright>
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Enigma
{
/// <summary>
///... | // App.xaml.cs
// <copyright file="App.xaml.cs"> This code is protected under the MIT License. </copyright>using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Enigma
{
/// <summary>
/// ... | mit | C# |
e6e85f67eb20dc105e1b75dcbb3a8eb67d61d83d | Add license disclaimer Cleanup formatting | jamespearce2006/CefSharp,Livit/CefSharp,AJDev77/CefSharp,rlmcneary2/CefSharp,haozhouxu/CefSharp,rover886/CefSharp,yoder/CefSharp,dga711/CefSharp,VioletLife/CefSharp,twxstar/CefSharp,windygu/CefSharp,ruisebastiao/CefSharp,wangzheng888520/CefSharp,NumbersInternational/CefSharp,dga711/CefSharp,illfang/CefSharp,joshvera/Ce... | CefSharp.Wpf.Example/Handlers/MenuHandler.cs | CefSharp.Wpf.Example/Handlers/MenuHandler.cs | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp.Wpf.Example.Handlers
{
public class MenuHandler : IMenuHandler
{
public bool OnBeforeContextMenu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CefSharp.Wpf.Example.Handlers
{
public class MenuHandler : IMenuHandler
{
public bool OnBeforeContextMenu(IWebBrowser browser, IContextMenuParams parameters)
{
Console.WriteLine("Cont... | bsd-3-clause | C# |
8bd73d083dd8a3bd0c800c60919ff64a676ef986 | Add property 'Descricao' to class 'DetalheCurso' | fmassaretto/formacao-talentos,fmassaretto/formacao-talentos,fmassaretto/formacao-talentos | Fatec.Treinamento.Model/DTO/DetalhesCurso.cs | Fatec.Treinamento.Model/DTO/DetalhesCurso.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fatec.Treinamento.Model.DTO
{
public class DetalhesCurso
{
public int Id { get; set; }
public string Nome { get; set; }
public string Assunto { get; set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Fatec.Treinamento.Model.DTO
{
public class DetalhesCurso
{
public int Id { get; set; }
public string Nome { get; set; }
public string Assunto { get; set; }
... | apache-2.0 | C# |
862ab13ae752363b322be9d2008cc44bcec9ef29 | Update Version | HittPre/Hipre | PreLeBlanc/PreLeBlanc/Properties/AssemblyInfo.cs | PreLeBlanc/PreLeBlanc/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# |
c429de4869f6f01869c29e43e0002a08974e6e7d | Add Peter Parker to contact page. | jpfultonzm/trainingsandbox,jpfultonzm/trainingsandbox,jpfultonzm/trainingsandbox | ZirMed.TrainingSandbox/Views/Home/Contact.cshtml | ZirMed.TrainingSandbox/Views/Home/Contact.cshtml | @{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@wechangedt... | @{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@wechangedt... | mit | C# |
03dc90bad47103fd03687dbe167faf078cfdac6f | add wav conversion | jasonracey/ConvertToMp3,jasonracey/ConvertToMp3 | ConvertToMp3/FileFinder.cs | ConvertToMp3/FileFinder.cs | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace ConvertToMp3
{
public static class FileFinder
{
private static readonly List<string> Extensions = new List<string>
{
".ape",
".flac",
".m4a",
".mp4",... | using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace ConvertToMp3
{
public static class FileFinder
{
private static readonly List<string> Extensions = new List<string> { ".ape", ".flac", ".m4a", ".mp4" };
public static IEnumerable<string> GetSupportedF... | mit | C# |
838274a0bc56cf1d113c3230bd9e4f100f69f466 | Fix soname | CallumDev/FontConfigSharp | FontConfigSharp/Native.cs | FontConfigSharp/Native.cs | using System;
using System.Runtime.InteropServices;
namespace FontConfigSharp
{
internal static class Native
{
public const string LIB = "libfontconfig.so.1";
[DllImport(LIB)]
public static extern IntPtr FcInitLoadConfigAndFonts();
[DllImport(LIB)]
public static extern IntPtr FcPatternCreate();
[DllImpo... | using System;
using System.Runtime.InteropServices;
namespace FontConfigSharp
{
internal static class Native
{
[DllImport("libfontconfig.so")]
public static extern IntPtr FcInitLoadConfigAndFonts();
[DllImport("libfontconfig.so")]
public static extern IntPtr FcPatternCreate();
[DllImport("libfontconfig.so"... | mit | C# |
d04466bd62f4c356997bcb9d4ce0cdf21b741d9e | Fix default name for images | pleonex/deblocus,pleonex/deblocus | Deblocus/Entities/Image.cs | Deblocus/Entities/Image.cs | //
// Image.cs
//
// Author:
// Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez (c) 2015
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Fre... | //
// Image.cs
//
// Author:
// Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez (c) 2015
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Fre... | agpl-3.0 | C# |
5c6d9751ca9c70194dbfda9414883b9de3288a6a | Remove unneeded property | eggapauli/MyDocs,eggapauli/MyDocs | JsonNetDal/SubDocument.cs | JsonNetDal/SubDocument.cs | using MyDocs.Common;
using MyDocs.Common.Contract.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Windows.Storage;
using Logic = MyDocs.Common.Model.Logic;
namespace JsonNetDal
{
public class SubDocument
{
public string Title { get; set; ... | using MyDocs.Common;
using MyDocs.Common.Contract.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Windows.Storage;
using Logic = MyDocs.Common.Model.Logic;
namespace JsonNetDal
{
public class SubDocument
{
public Guid Id { get; set; }
... | mit | C# |
3cf7b2a0f0ceb272a0a7807c322586276d9f3d19 | Fix code analysis | github/VisualStudio,naveensrinivasan/VisualStudio,amytruong/VisualStudio,luizbon/VisualStudio,pwz3n0/VisualStudio,github/VisualStudio,github/VisualStudio,HeadhunterXamd/VisualStudio,bradthurber/VisualStudio | src/GitHub.VisualStudio/Base/TeamExplorerBase.cs | src/GitHub.VisualStudio/Base/TeamExplorerBase.cs | using System;
using System.ComponentModel;
using System.Diagnostics;
using GitHub.Primitives;
using NullGuard;
using GitHub.Services;
namespace GitHub.VisualStudio.Base
{
public abstract class TeamExplorerBase : NotificationAwareObject, IDisposable
{
internal static readonly Guid TeamExplorerConnectio... | using System;
using System.ComponentModel;
using System.Diagnostics;
using GitHub.Primitives;
using NullGuard;
using GitHub.Services;
namespace GitHub.VisualStudio.Base
{
public abstract class TeamExplorerBase : NotificationAwareObject, IDisposable
{
internal static readonly Guid TeamExplorerConnectio... | mit | C# |
46f2a66a6f94bca714357823801be3b5f9b644ab | Add extension methods | takeshik/linx | Linx/Extension/StreamUtil.cs | Linx/Extension/StreamUtil.cs | // -*- mode: csharp; encoding: utf-8; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
// vim:set ft=cs fenc=utf-8 ts=4 sw=4 sts=4 et:
// $Id: a7db7754a428ebb526d000b64ab4e48866a29032 $
/* Linx
* Library that Integrates .NET with eXtremes
* Copyright © 2008-2010 Takeshi KIRIYA (aka takeshik) <takeshik@us... | // -*- mode: csharp; encoding: utf-8; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
// vim:set ft=cs fenc=utf-8 ts=4 sw=4 sts=4 et:
// $Id: a7db7754a428ebb526d000b64ab4e48866a29032 $
/* Linx
* Library that Integrates .NET with eXtremes
* Copyright © 2008-2010 Takeshi KIRIYA (aka takeshik) <takeshik@us... | mit | C# |
1d4a54af4735ef71ca0683897598604ae742105b | Change to CreateFile for existance checking | jonstodle/mowali | Mowali/SettingsWrapper.cs | Mowali/SettingsWrapper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;
using TmdbWrapper;
using TmdbWrapper.Movies;
using System.Collections.ObjectModel;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Mowali {
public sealed class Se... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;
using TmdbWrapper;
using TmdbWrapper.Movies;
using System.Collections.ObjectModel;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Mowali {
public sealed class Se... | mit | C# |
4ba682f0d462a3681fa0a23e7a588e82786fef37 | fix multiple concurrent download of sysmsg | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Core/Parsing/Messages/C_LOGIN_ARBITER.cs | TCC.Core/Parsing/Messages/C_LOGIN_ARBITER.cs | using TCC.Data;
using TCC.TeraCommon.Game.Messages;
using TCC.TeraCommon.Game.Services;
namespace TCC.Parsing.Messages
{
public class C_LOGIN_ARBITER : ParsedMessage
{
public string AccountName { get; }
public LangEnum Language { get; set; }
public int Version { get; set; }
p... | using TCC.Data;
using TCC.TeraCommon.Game.Messages;
using TCC.TeraCommon.Game.Services;
namespace TCC.Parsing.Messages
{
public class C_LOGIN_ARBITER : ParsedMessage
{
public string AccountName { get; }
public LangEnum Language { get; set; }
public int Version { get; set; }
p... | mit | C# |
ce85afc3846e7e35a6d85fe44c3479f91d6b0484 | Add JsonConstructor | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Models/SerializableException.cs | WalletWasabi/Models/SerializableException.cs | using Newtonsoft.Json;
using System;
using System.Text;
namespace WalletWasabi.Models
{
[JsonObject(MemberSerialization.OptIn)]
public record SerializableException
{
[JsonConstructor]
protected SerializableException(string exceptionType, string message, string stackTrace, SerializableException innerException)
... | using Newtonsoft.Json;
using System;
using System.Text;
namespace WalletWasabi.Models
{
[JsonObject(MemberSerialization.OptIn)]
public record SerializableException
{
public SerializableException()
{
}
public SerializableException(Exception ex)
{
if (ex.InnerException is { })
{
InnerException = ... | mit | C# |
d5d75008172ad890c893353eeabe889168dbbb54 | Correct typeo. | sharpjs/PSql,sharpjs/PSql | PSql/_Data/AzureSqlContext.cs | PSql/_Data/AzureSqlContext.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using Microsoft.Data.SqlClient;
namespace PSql
{
/// <summary>
/// Information necessary to connect to an Azure SQL Database or
/// compatible database.
/// </summary>
public class AzureSqlCon... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using Microsoft.Data.SqlClient;
namespace PSql
{
/// <summary>
/// Information necessary to connect to an Azyure SQL Database or
/// compatible database.
/// </summary>
public class AzureSqlC... | isc | C# |
0692f017e10d821fbb8a8e9e14b66e854cf0f628 | Fix html enconded characters in plain text | janabimustafa/waslibs,pellea/waslibs,wasteam/waslibs,pellea/waslibs,pellea/waslibs,wasteam/waslibs,janabimustafa/waslibs,janabimustafa/waslibs,wasteam/waslibs | src/AppStudio.Uwp/Html/HtmlText.cs | src/AppStudio.Uwp/Html/HtmlText.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace AppStudio.Uwp.Html
{
public sealed class HtmlText : HtmlFragment
{
private string _content;
public string Content
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace AppStudio.Uwp.Html
{
public sealed class HtmlText : HtmlFragment
{
public string Content { get; set; }
public HtmlText()
{
... | mit | C# |
48668265634fcb1eb3b93f7cfdfe505d75401da1 | test change | JoinPatterns/ScalableJoins | Samples/Buffer/Program.cs | Samples/Buffer/Program.cs | //------------------------------------------------------------------------------
// <copyright file="Program.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <disclaimer>
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIN... | //------------------------------------------------------------------------------
// <copyright file="Program.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <disclaimer>
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIN... | mit | C# |
b3bc183961b7bfd99a36ab28158608546ed9bf98 | Update ProtectingSpecificRowInWorksheet.cs | aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET,ma... | Examples/CSharp/Worksheets/Security/Protecting/ProtectingSpecificRowInWorksheet.cs | Examples/CSharp/Worksheets/Security/Protecting/ProtectingSpecificRowInWorksheet.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Worksheets.Security.Protecting
{
public class ProtectingSpecificRowInWorksheet
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir ... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Worksheets.Security.Protecting
{
public class ProtectingSpecificRowInWorksheet
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.... | mit | C# |
f0da32c4ba1d6a55cf20022b6a45fecfafaba95f | Allow model config to be modified | visualeyes/halcyon | src/Halcyon/HAL/IHALModelConfig.cs | src/Halcyon/HAL/IHALModelConfig.cs | namespace Halcyon.HAL {
public interface IHALModelConfig {
string LinkBase { get; set; }
bool ForceHAL { get; set; }
}
} | namespace Halcyon.HAL {
public interface IHALModelConfig {
string LinkBase { get; }
bool ForceHAL { get; }
}
} | mit | C# |
faf66493eb03bb9385dbe52b5c1513d29737b157 | Remove not used using | marska/habitrpg-api-dotnet-client | src/HabitRPG.Client/Model/Habit.cs | src/HabitRPG.Client/Model/Habit.cs | using System.Collections.Generic;
using Newtonsoft.Json;
namespace HabitRPG.Client.Model
{
public class Habit : Task
{
public override string Type
{
get { return "habit"; }
}
public Habit()
{
Up = true;
Down = true;
}
[JsonProperty("history")]
public List<Histor... | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace HabitRPG.Client.Model
{
public class Habit : Task
{
public override string Type
{
get { return "habit"; }
}
public Habit()
{
Up = true;
Down = true;
}
[JsonProperty("history")]
publ... | apache-2.0 | C# |
e49aac33fb9995ed4f17549d2a983c47e9ed7501 | Change the behavior of the object serializer so that objects are initialized with values instead of Nulls | tekbird/LoveSeat | LoveSeat/ObjectSerializer.cs | LoveSeat/ObjectSerializer.cs | using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
namespace LoveSeat
{
public interface IObjectSerializer<T>
{
T Deserialize(string json);
string Serialize(object obj);
}
public class ObjectSerializer<T> : IO... | using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
namespace LoveSeat
{
public interface IObjectSerializer<T>
{
T Deserialize(string json);
string Serialize(object obj);
}
public class ObjectSerializer<T> : IO... | mit | C# |
fc36b7db7b0906cb1d729a45580a4396cae5246a | Add test for 2000 (MM) - this should have been done before adding loop for M. | pvasys/PillarRomanNumeralKata | VasysRomanNumeralsKataTest/ToRomanNumeralsTest.cs | VasysRomanNumeralsKataTest/ToRomanNumeralsTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using VasysRomanNumeralsKata;
namespace VasysRomanNumeralsKataTest
{
[TestClass]
public class ToRomanNumeralsTest
{
[TestMethod]
public void WhenRomanNumeralExtensionIsPassedTenItReturnsX()
{
int ten = 10;... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using VasysRomanNumeralsKata;
namespace VasysRomanNumeralsKataTest
{
[TestClass]
public class ToRomanNumeralsTest
{
[TestMethod]
public void WhenRomanNumeralExtensionIsPassedTenItReturnsX()
{
int ten = 10;... | mit | C# |
d31196c5b3a60042ead3a553b313765f1aca6dc5 | Fix logging issue | PolemoIDE/Polemo.NetCore.Node,PomeloIDE/Pomelo.NetCore.Node,PomeloIDE/Pomelo.NetCore.Node,PomeloIDE/Pomelo.NetCore.Node,PolemoIDE/Polemo.NetCore.Node,PolemoIDE/Polemo.NetCore.Node,PomeloIDE/Pomelo.NetCore.Node,PolemoIDE/Polemo.NetCore.Node | src/Polemo.NetCore.Node/Startup.cs | src/Polemo.NetCore.Node/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace Polemo.NetCore.Node
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.A... | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace Polemo.NetCore.Node
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.A... | mit | C# |
32b01face558530aeab410ab51bfd3864f609346 | convert TODO to issue #142 | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Api/Controllers/ListsController.cs | src/FilterLists.Api/Controllers/ListsController.cs | using FilterLists.Services.Contracts;
using Microsoft.AspNetCore.Mvc;
namespace FilterLists.Api.Controllers
{
[Route("v1/[controller]")]
[Produces("application/json")]
public class ListsController : Controller
{
private readonly IFilterListService filterListService;
public ListsContro... | using FilterLists.Services.Contracts;
using Microsoft.AspNetCore.Mvc;
namespace FilterLists.Api.Controllers
{
//TODO: migrate controllers to separate projects by version, use dependency injection
//TODO: automate URL versioning
[Route("v1/[controller]")]
[Produces("application/json")]
public class... | mit | C# |
272d575f8807d9b36511446d9d8db896b0091f2e | use Parallel.ForEach | vinhch/SimpleScheduler | SimpleScheduler/JobManager.cs | SimpleScheduler/JobManager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace SimpleScheduler
{
public class JobManager
{
private IEnumerable<JobInfo> _listOfJobInfo;
public JobManager()
{
}
publi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace SimpleScheduler
{
public class JobManager
{
private IEnumerable<JobInfo> _listOfJobInfo;
public JobManager()
{
}
publi... | mit | C# |
9db36169b39e92e1dc3632097ab7e792ed0f7162 | Implement LocatorBasedDispatcher tests. | yonglehou/msgpack-rpc-cli,yfakariya/msgpack-rpc-cli | test/MsgPack.Rpc.Server.UnitTest/Rpc/Server/Dispatch/LocatorBasedDispatcherTest.cs | test/MsgPack.Rpc.Server.UnitTest/Rpc/Server/Dispatch/LocatorBasedDispatcherTest.cs | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010 FUJIWARA, Yusuke
//
// 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.or... | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010 FUJIWARA, Yusuke
//
// 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.or... | apache-2.0 | C# |
6a98d0ee849ed88ace70ba7132b02aeda49c1f50 | Fix editMetadata button | andrew-polk/BloomDesktop,andrew-polk/BloomDesktop,gmartin7/myBloomFork,JohnThomson/BloomDesktop,JohnThomson/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,gmartin7/myBloomFork,BloomBooks/BloomDesktop,StephenMcConnel/BloomDesktop,andrew-polk/BloomDesktop,gmartin7/myBloomFork,andrew-polk/BloomDesktop,gmartin7/... | src/BloomExe/ElementProxy.cs | src/BloomExe/ElementProxy.cs | using System;
using System.Xml;
using Gecko;
using Palaso.Code;
namespace Bloom
{
/// <summary>
/// Takes a Gecko element or an XmlElement, and then provides a few simple operations on
/// the element so that the client doesn't have to know which it has.
/// This is useful because it would be hard to introduce gec... | using System;
using System.Xml;
using Gecko;
using Palaso.Code;
namespace Bloom
{
/// <summary>
/// Takes a Gecko element or an XmlElement, and then provides a few simple operations on
/// the element so that the client doesn't have to know which it has.
/// This is useful because it would be hard to introduce gec... | mit | C# |
3fe9e4c813e60c04536a9e2c333794ff1226cb4b | Change ParentType to public | nickdodd79/AutoBogus | src/AutoBogus/AutoGenerateContext.cs | src/AutoBogus/AutoGenerateContext.cs | using Bogus;
using System;
using System.Collections.Generic;
using System.Linq;
namespace AutoBogus
{
/// <summary>
/// A class that provides context for a generate request.
/// </summary>
public sealed class AutoGenerateContext
{
internal AutoGenerateContext(AutoConfig config)
: this(config.FakerH... | using Bogus;
using System;
using System.Collections.Generic;
using System.Linq;
namespace AutoBogus
{
/// <summary>
/// A class that provides context for a generate request.
/// </summary>
public sealed class AutoGenerateContext
{
internal AutoGenerateContext(AutoConfig config)
: this(config.FakerH... | mit | C# |
c7f4bae569d931a9b6d4dae5a038ef218a8163e3 | Fix broken async call | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerFinance.Web/Filters/LevyEmployerTypeOnly.cs | src/SFA.DAS.EmployerFinance.Web/Filters/LevyEmployerTypeOnly.cs | using System;
using System.Threading.Tasks;
using System.Web.Mvc;
using System.Web.Routing;
using SFA.DAS.Common.Domain.Types;
using SFA.DAS.EAS.Account.Api.Client;
using SFA.DAS.EAS.Account.Api.Types;
using SFA.DAS.EmployerFinance.Web.Helpers;
namespace SFA.DAS.EmployerFinance.Web.Filters
{
public class LevyEmpl... | using System;
using System.Threading.Tasks;
using System.Web.Mvc;
using System.Web.Routing;
using SFA.DAS.Common.Domain.Types;
using SFA.DAS.EAS.Account.Api.Client;
using SFA.DAS.EAS.Account.Api.Types;
using SFA.DAS.EmployerFinance.Web.Helpers;
namespace SFA.DAS.EmployerFinance.Web.Filters
{
public class LevyEmpl... | mit | C# |
f4dca1b9487ce49ee8c57243a9b518e1bed82160 | Handle failed Api call within Action Filter | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerFinance.Web/Filters/LevyEmployerTypeOnly.cs | src/SFA.DAS.EmployerFinance.Web/Filters/LevyEmployerTypeOnly.cs | using System;
using System.Web.Mvc;
using System.Web.Routing;
using SFA.DAS.EAS.Account.Api.Client;
using SFA.DAS.EmployerFinance.Web.Helpers;
namespace SFA.DAS.EmployerFinance.Web.Filters
{
public class LevyEmployerTypeOnly : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecut... | using System.Web.Mvc;
using System.Web.Routing;
using SFA.DAS.EAS.Account.Api.Client;
using SFA.DAS.EAS.Account.Api.Types;
namespace SFA.DAS.EmployerFinance.Web.Filters
{
public class LevyEmployerTypeOnly : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext filterCon... | mit | C# |
54e507a589ffe9ea2d4b1db88e01fb37e0afa831 | Include GogoKit version in User-Agent header | viagogo/gogokit.net | src/GogoKit/Http/UserAgentHandler.cs | src/GogoKit/Http/UserAgentHandler.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
namespace GogoKit.Http
{
public class UserAgentHandler : DelegatingHandler
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
namespace GogoKit.Http
{
public class UserAgentHandler : DelegatingHandler
{
private readonly IReadOnlyList<ProductInf... | mit | C# |
5b02b3726fd75473fe80e270987172d737d3196a | resolve conflicts | DigDes/SoapCore | src/SoapCore.Tests/Wsdl/WsdlTests.cs | src/SoapCore.Tests/Wsdl/WsdlTests.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SoapCore... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SoapCore... | mit | C# |
c9ef50c40a2d2e04235d62ef5c9bf105561e3c85 | Fix Edit POS | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf | src/backend/SO115App.Persistence.MongoDB/GestionePOS/EditPOS.cs | src/backend/SO115App.Persistence.MongoDB/GestionePOS/EditPOS.cs | //-----------------------------------------------------------------------
// <copyright file="EditPOS.cs" company="CNVVF">
// Copyright (C) 2021 - CNVVF
//
// This file is part of SOVVF.
// SOVVF is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
/... | //-----------------------------------------------------------------------
// <copyright file="EditPOS.cs" company="CNVVF">
// Copyright (C) 2021 - CNVVF
//
// This file is part of SOVVF.
// SOVVF is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
/... | agpl-3.0 | C# |
44b33a149e935c156616642ccaa5f1189773b994 | Make MethodReplacer change opcode to CALL as default | pardeike/Harmony | Harmony/Transpilers.cs | Harmony/Transpilers.cs | using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
namespace Harmony
{
public static class Transpilers
{
public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to, OpCode? callOpcode = null)
{
... | using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
namespace Harmony
{
public static class Transpilers
{
public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to)
{
foreach (var instruction in... | mit | C# |
281da6d50eaea232cb2d5ec3ff01b49c371a4897 | fix for setting rawname on computation operation model | ezg/PanoramicDataWin8,ezg/PanoramicDataWin8 | PanoramicDataWin8/model/data/operation/computational/ComputationalOperationModel.cs | PanoramicDataWin8/model/data/operation/computational/ComputationalOperationModel.cs | using IDEA_common.catalog;
using IDEA_common.operations;
using Newtonsoft.Json;
using PanoramicDataWin8.model.data.attribute;
using PanoramicDataWin8.model.data.idea;
using PanoramicDataWin8.utils;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text.RegularExpressions;
using stati... | using IDEA_common.catalog;
using IDEA_common.operations;
using Newtonsoft.Json;
using PanoramicDataWin8.model.data.attribute;
using PanoramicDataWin8.model.data.idea;
using PanoramicDataWin8.utils;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text.RegularExpressions;
using stati... | apache-2.0 | C# |
659cf629b6d62e614bc5bc87eefcaf6075b78182 | Add skin seleciton dropdown to settings | Frontear/osuKyzer,peppy/osu-new,johnneijzen/osu,ZLima12/osu,naoey/osu,smoogipoo/osu,UselessToucan/osu,EVAST9919/osu,ZLima12/osu,peppy/osu,NeoAdonis/osu,ppy/osu,johnneijzen/osu,2yangk23/osu,NeoAdonis/osu,Nabile-Rahmani/osu,2yangk23/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,na... | osu.Game/Overlays/Settings/Sections/SkinSection.cs | osu.Game/Overlays/Settings/Sections/SkinSection.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.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
usin... | mit | C# |
aa24482e02063f16938fdeb6b8d0d75c1adaca4f | Use Generator.Lazy instead | inputfalken/Sharpy | src/Sharpy.Core/Linq/Skip.cs | src/Sharpy.Core/Linq/Skip.cs | using System;
namespace Sharpy.Core.Linq {
public static partial class Extensions {
/// <summary>
/// <para>
/// Skips the number given to <paramref name="count" /> from <see cref="IGenerator{T}" />.
/// </para>
/// </summary>
/// <typeparam name="TSo... | using System;
namespace Sharpy.Core.Linq {
public static partial class Extensions {
/// <summary>
/// <para>
/// Skips the number given to <paramref name="count" /> from <see cref="IGenerator{T}" />.
/// </para>
/// </summary>
/// <typeparam name="TSo... | mit | C# |
b67e1546300440c0d0f82b57a534486a5a886c7c | fix test data type registration | 6bee/aqua-core | test/Aqua.Tests/Serialization/ProtobufNetSerializationHelper.cs | test/Aqua.Tests/Serialization/ProtobufNetSerializationHelper.cs | // Copyright (c) Christof Senn. All rights reserved. See license.txt in the project root for license information.
namespace Aqua.Tests.Serialization
{
using Aqua.EnumerableExtensions;
using Aqua.TypeExtensions;
using System;
using System.Linq;
////using System.Collections;
////using System.Lin... | // Copyright (c) Christof Senn. All rights reserved. See license.txt in the project root for license information.
namespace Aqua.Tests.Serialization
{
using Aqua.EnumerableExtensions;
using Aqua.TypeExtensions;
using System;
using System.Linq;
////using System.Collections;
////using System.Lin... | mit | C# |
1b44711ceb6f84c6eaa503d5d08ce30cb49a01e8 | Clarify some names | Michelle-Argus/ArribasimExtract,bravelittlescientist/opensim-performance,RavenB/opensim,N3X15/VoxelSim,rryk/omp-server,ft-/arribasim-dev-extras,ft-/arribasim-dev-extras,ft-/opensim-optimizations-wip,ft-/opensim-optimizations-wip-tests,ft-/arribasim-dev-extras,QuillLittlefeather/opensim-1,allquixotic/opensim-autobackup,... | OpenSim/Services/Interfaces/IFriendsService.cs | OpenSim/Services/Interfaces/IFriendsService.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# |
5ad2fb0d80c443eb2e36ce0d93913184497940ad | Update agent name to only allow 18 characters so that it looks good on the screen | reichlew/planet-wars-competition,aaron-lillywhite/planet-wars-competition,reichlew/planet-wars-competition,reichlew/planet-wars-competition,aaron-lillywhite/planet-wars-competition,aaron-lillywhite/planet-wars-competition | PlanetWars/Validators/LogonRequestValidator.cs | PlanetWars/Validators/LogonRequestValidator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentValidation;
using PlanetWars.Shared;
namespace PlanetWars.Validators
{
public class LogonRequestValidator : AbstractValidator<LogonRequest>
{
public LogonRequestValidator()
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentValidation;
using PlanetWars.Shared;
namespace PlanetWars.Validators
{
public class LogonRequestValidator : AbstractValidator<LogonRequest>
{
public LogonRequestValidator()
... | bsd-3-clause | C# |
82a9eca0a60a6c68f448dc3d7dfe18429592e03a | add a test for pushing and progress bar | shiftkey/ReactiveGit | ReactiveGit.Tests/ObservableRepositoryTests.cs | ReactiveGit.Tests/ObservableRepositoryTests.cs | using System;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Threading.Tasks;
using LibGit2Sharp;
using Xunit;
namespace ReactiveGit.Tests
{
public class ObservableRepositoryTests
{
[Fact]
public async Task CanPullSomeRepository()
{
... | using System;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Threading.Tasks;
using LibGit2Sharp;
using Xunit;
namespace ReactiveGit.Tests
{
public class ObservableRepositoryTests
{
[Fact]
public async Task CanPullSomeRepository()
{
... | mit | C# |
9c31b8856d8d4dc2d91a344249f02590c7809e61 | change image url replace implementation | ppy/osu,peppy/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,NeoAdonis/osu,peppy/osu | osu.Game/Overlays/Wiki/Markdown/WikiMarkdownImage.cs | osu.Game/Overlays/Wiki/Markdown/WikiMarkdownImage.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 Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Framework.Graphics.Cursor;
namespace osu.Game.Overlays.Wiki.Markdown
{
publ... | // 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 Markdig.Syntax.Inlines;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Framewo... | mit | C# |
2ea7313830ba807d68cdad7eb94489b1ce627777 | Update Installer.cs | architecture-building-systems/revitpythonshell,architecture-building-systems/revitpythonshell | Installer/Installer.cs | Installer/Installer.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using WixSharp;
using WixSharp.CommonTasks;
using WixSharp.Controls;
const string installationDir = @"%AppDataFolder%\Autodesk\Revit\Addins\";
const string projectName = "RevitP... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using WixSharp;
using WixSharp.CommonTasks;
using WixSharp.Controls;
const string installationDir = @"%AppDataFolder%\Autodesk\Revit\Addins\";
const string projectName = "RevitP... | mit | C# |
c5078bd0ff5fae5be7b67011ab50568ee0643c20 | Change this to a double so that we don't have to always cast. | lukedrury/super-market-kata | supermarketkata/engine/rules/PercentageDiscount.cs | supermarketkata/engine/rules/PercentageDiscount.cs | using System;
using engine.core;
namespace engine.rules
{
public class PercentageDiscount : Rule
{
private readonly string m_ApplicableItemName;
private readonly double m_Percentage;
public PercentageDiscount(string applicableItemName, int percentage)
{
m_Applicabl... | using System;
using engine.core;
namespace engine.rules
{
public class PercentageDiscount : Rule
{
private readonly string m_ApplicableItemName;
private readonly int m_Percentage;
public PercentageDiscount(string applicableItemName, int percentage)
{
m_ApplicableIt... | mit | C# |
087f20cb6c09f92448b3e198715e1e98c381da70 | Fix small view error in logs (#392) | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer/Views/Server/Logs.cshtml | BTCPayServer/Views/Server/Logs.cshtml | @model BTCPayServer.Models.ServerViewModels.LogsViewModel
@{
ViewData.SetActivePageAndTitle(ServerNavPages.Logs);
}
<h4>@ViewData["Title"]</h4>
<partial name="_StatusMessage" for="StatusMessage"/>
<div class="row">
<ul>
@foreach (var file in Model.LogFiles)
{
<li>
... | @model BTCPayServer.Models.ServerViewModels.LogsViewModel
@{
ViewData.SetActivePageAndTitle(ServerNavPages.Logs);
}
<h4>@ViewData["Title"]</h4>
<partial name="_StatusMessage" for="StatusMessage"/>
<div class="row">
<ul>
@foreach (var file in Model.LogFiles)
{
<li>
... | mit | C# |
9917f73bab3bb4ba749f0140f004e6fd25c2870d | Improve logging in retry logic & increase to 5 tries | BlythMeister/Ensconce,15below/Ensconce,BlythMeister/Ensconce,15below/Ensconce | src/Ensconce.Console/Retry.cs | src/Ensconce.Console/Retry.cs | using System;
using System.Collections.Generic;
using System.Threading;
namespace Ensconce.Console
{
/// <summary>
/// Retry logic applied from this Stack Overflow thread
/// http://stackoverflow.com/questions/1563191/c-sharp-cleanest-way-to-write-retry-logic
/// </summary>
public static class Ret... | using System;
using System.Collections.Generic;
using System.Threading;
namespace Ensconce.Console
{
/// <summary>
/// Retry logic applied from this Stack Overflow thread
/// http://stackoverflow.com/questions/1563191/c-sharp-cleanest-way-to-write-retry-logic
/// </summary>
public static class Ret... | mit | C# |
db87da9a31ff1e2c667fa98efedec310aa74e76e | Add EnumerableAccess Factory to Resolver in the constructor | Domysee/Pather.CSharp | src/Pather.CSharp/Resolver.cs | src/Pather.CSharp/Resolver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Reflection;
using Pather.CSharp.PathElements;
namespace Pather.CSharp
{
public class Resolver
{
private IList<IPathElementFactory> pathElementTypes;
public Resolver()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Reflection;
using Pather.CSharp.PathElements;
namespace Pather.CSharp
{
public class Resolver
{
private IList<IPathElementFactory> pathElementTypes;
public Resolver()
{
... | mit | C# |
8d39b69a3b60ae57e970862c8830162120ac168a | Update CommonHub.cs | Enttoi/enttoi-api-dotnet,Enttoi/enttoi-api-dotnet,Enttoi/enttoi-api,Enttoi/enttoi-api | src/WebHost/Hubs/CommonHub.cs | src/WebHost/Hubs/CommonHub.cs | using Autofac;
using Microsoft.AspNet.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using WebHost.Logger;
using WebHost.Services;
using WebHost.Models;
using System.Threading;
namespace WebHost.Hubs
{
public class CommonHub : Hub
{
... | using Autofac;
using Microsoft.AspNet.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using WebHost.Logger;
using WebHost.Services;
using WebHost.Models;
using System.Threading;
namespace WebHost.Hubs
{
public class CommonHub : Hub
{
... | mit | C# |
bef529f48d7529265b8e0b344f003d26c63b895b | Make telemetry break execution if debugger is attached instead of pushing report | axodox/AxoTools,axodox/AxoTools | AxoCover/Models/TelemetryManager.cs | AxoCover/Models/TelemetryManager.cs | using AxoCover.Models.Extensions;
using AxoCover.Properties;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Threading;
namespace AxoCover.Models
{
public abstract class TelemetryManager : ITelemetryManager
{
protected IEditorContext _editorCont... | using AxoCover.Models.Extensions;
using AxoCover.Properties;
using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Threading;
namespace AxoCover.Models
{
public abstract class TelemetryManager : ITelemetryManager
{
protected IEditorContext _editorContext;
public bool IsTe... | mit | C# |
35899465e500e27a5f13ef9293aed4558269148b | Update copyright date | hybrid1969/RogueSharp | RogueSharp/Properties/AssemblyInfo.cs | RogueSharp/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle( "RogueSharp" )]
[assembly: AssemblyDescr... | 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( "RogueSharp" )]
[assembly: AssemblyDescr... | mit | C# |
098df531f032a5ffb77a21f799595240be9b90b4 | Fix a null ref error submitting MobileMiner stats without Network Devices | IWBWbiz/MultiMiner,nwoolls/MultiMiner,IWBWbiz/MultiMiner,nwoolls/MultiMiner | MultiMiner.Win/Data/Configuration/NetworkDevices.cs | MultiMiner.Win/Data/Configuration/NetworkDevices.cs | using MultiMiner.Engine;
using MultiMiner.Utility.Serialization;
using System.Collections.Generic;
using System.IO;
namespace MultiMiner.Win.Data.Configuration
{
public class NetworkDevices
{
public class NetworkDevice
{
public string IPAddress { get; set; }
public int ... | using MultiMiner.Engine;
using MultiMiner.Utility.Serialization;
using System.Collections.Generic;
using System.IO;
namespace MultiMiner.Win.Data.Configuration
{
public class NetworkDevices
{
public class NetworkDevice
{
public string IPAddress { get; set; }
public int ... | mit | C# |
2814c41d8d5a538bcaa9c7c4d748c69cdc6e1a05 | fix block pos overflow | noto0648/OrangeNBT | OrangeNBT.Data/BlockPos.cs | OrangeNBT.Data/BlockPos.cs | namespace OrangeNBT.Data
{
public struct BlockPos
{
public int X { get; set; }
public int Y { get; set; }
public int Z { get; set; }
public BlockPos(int x, int y, int z)
{
X = x;
Y = y;
Z = z;
}
public ... | namespace OrangeNBT.Data
{
public class BlockPos
{
public int X { get; set; }
public int Y { get; set; }
public int Z { get; set; }
public BlockPos() { }
public BlockPos(int x, int y, int z)
{
X = x;
Y = y;
Z = ... | mit | C# |
5c66bd33159ce4b581b243c9831bd19462570bf8 | prepare release | anonymousthing/ListenMoeClient | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Listen.moe Client")]
[assembly: Ass... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Listen.moe Client")]
[assembly: Ass... | mit | C# |
4508ad4915b4caaf73430fcd6a8183b8dee6f8a1 | Fix a nullability warning in AliasingVisitor | riganti/dotvvm,riganti/dotvvm,riganti/dotvvm,riganti/dotvvm | src/Framework/Framework/Compilation/AliasingVisitor.cs | src/Framework/Framework/Compilation/AliasingVisitor.cs | using System.Linq;
using DotVVM.Framework.Binding;
using DotVVM.Framework.Compilation.ControlTree.Resolved;
namespace DotVVM.Framework.Compilation
{
public class AliasingVisitor : ResolvedControlTreeVisitor
{
public override void VisitControl(ResolvedControl control)
{
base.VisitCon... | using System.Linq;
using DotVVM.Framework.Binding;
using DotVVM.Framework.Compilation.ControlTree.Resolved;
namespace DotVVM.Framework.Compilation
{
public class AliasingVisitor : ResolvedControlTreeVisitor
{
public override void VisitControl(ResolvedControl control)
{
base.VisitCon... | apache-2.0 | C# |
5972fa000436d68a2ffe4758e9f601efb48e553f | Update EmailTokenProvider.cs | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Identity/Extensions.Core/src/EmailTokenProvider.cs | src/Identity/Extensions.Core/src/EmailTokenProvider.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.Threading.Tasks;
namespace Microsoft.AspNetCore.Identity
{
/// <summary>
/// TokenProvider that generates tokens from the user's s... | using System.Threading.Tasks;
namespace Microsoft.AspNetCore.Identity
{
/// <summary>
/// TokenProvider that generates tokens from the user's security stamp and notifies a user via email.
/// </summary>
/// <typeparam name="TUser">The type used to represent a user.</typeparam>
public class EmailTok... | apache-2.0 | C# |
22d91d7976f500e674ec222803a7994a3af01a27 | Handle null user agent in statistics collector | n2cms/n2cms,EzyWebwerkstaden/n2cms,EzyWebwerkstaden/n2cms,VoidPointerAB/n2cms,bussemac/n2cms,VoidPointerAB/n2cms,EzyWebwerkstaden/n2cms,SntsDev/n2cms,DejanMilicic/n2cms,bussemac/n2cms,SntsDev/n2cms,DejanMilicic/n2cms,nimore/n2cms,n2cms/n2cms,bussemac/n2cms,SntsDev/n2cms,EzyWebwerkstaden/n2cms,VoidPointerAB/n2cms,n2cms/... | src/Mvc/MvcTemplates/N2/Statistics/StatisticsLogger.cs | src/Mvc/MvcTemplates/N2/Statistics/StatisticsLogger.cs | using N2.Engine;
using N2.Plugin;
using N2.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
namespace N2.Management.Statistics
{
[Service]
public class StatisticsLogger : IAutoStart
{
private EventBroker broker;
priva... | using N2.Engine;
using N2.Plugin;
using N2.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
namespace N2.Management.Statistics
{
[Service]
public class StatisticsLogger : IAutoStart
{
private EventBroker broker;
priva... | lgpl-2.1 | C# |
a4ea697425009460e515b9a656b44dfeaa1a25e3 | Update copyright | chkn/Tempest | Desktop/Tempest/Properties/AssemblyInfo.cs | Desktop/Tempest/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle ("Tempest")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("Eric Maupin")]
[assembly: AssemblyProduct ("Tempest")]
[assembly: Assembl... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle ("Tempest")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("Eric Maupin")]
[assembly: AssemblyProduct ("Tempest")]
[assembly: Assembl... | mit | C# |
cc8f898a84c18b47a8e20c3d30b38aa6cf41f7d4 | Use a ReadOnlySpanList for JsonBackgroundSyntax.BackgroundSymbols. | PenguinF/sandra-three | Eutherion/Shared/Text/Json/JsonBackgroundSyntax.cs | Eutherion/Shared/Text/Json/JsonBackgroundSyntax.cs | #region License
/*********************************************************************************
* JsonBackgroundSyntax.cs
*
* Copyright (c) 2004-2019 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | #region License
/*********************************************************************************
* JsonBackgroundSyntax.cs
*
* Copyright (c) 2004-2019 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | apache-2.0 | C# |
8aa0df7720ba91c1309584a375e48b8ec329add3 | test fix build | jezzay/Test-Travis-CI,jezzay/Test-Travis-CI | TestWebApp/TestWebApp/Controllers/HomeController.cs | TestWebApp/TestWebApp/Controllers/HomeController.cs | using System.Web.Mvc;
namespace TestWebApp.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Home Page test";
return View();
}
}
}
| using System.Web.Mvc;
namespace TestWebApp.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
ViewBag.Title = "Home Page test"
return View();
}
}
}
| mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.