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 |
|---|---|---|---|---|---|---|---|---|
7d0bee686cf5fc5307f5f7d2a88b1f5eaec747d6 | Update Main class for compatibility Pre-Alpha 5. | ParkitectNexus/Carto | Main.cs | Main.cs | using UnityEngine;
namespace Carto
{
public class Main : IMod
{
private GameObject _go;
public void onEnabled()
{
_go = new GameObject("Carto");
_go.AddComponent<Carto>();
}
public void onDisabled()
{
Object.Destroy... | using UnityEngine;
namespace Carto
{
class Main : IMod
{
private GameObject _go;
public void onEnabled()
{
_go = new GameObject("Carto");
_go.AddComponent<Carto>();
}
public void onDisabled()
{
Object.Destroy(_go);
... | mit | C# |
a912f03167aec9b04f6197b684efc7c3ee5ceb65 | add UserControl comment | AvaloniaUI/Avalonia,SuperJMN/Avalonia,grokys/Perspex,wieslawsoltes/Perspex,grokys/Perspex,AvaloniaUI/Avalonia,akrisiun/Perspex,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,Perspex/Perspex,jkoritzinsky/Perspex,wiesla... | src/Avalonia.Controls/UserControl.cs | src/Avalonia.Controls/UserControl.cs | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Styling;
namespace Avalonia.Controls
{
/// <summary>
/// Provides the base class for defining a new control that enc... | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Styling;
namespace Avalonia.Controls
{
public class UserControl : ContentControl, IStyleable, INameScope
{
p... | mit | C# |
d8a96578fd2aa0c54b1119b0a2b8d5a9467e5783 | Add doc | bartlomiejwolk/Annotation | Todo.cs | Todo.cs | using UnityEngine;
using System.Collections;
namespace AnnotationEx {
public sealed class Todo : MonoBehaviour {
#region CONSTANTS
public const string Version = "v0.1.0";
public const string Extension = "Annotation";
#endregion
#region DELEGATES
#endregion
... | using UnityEngine;
using System.Collections;
namespace AnnotationEx {
public sealed class Todo : MonoBehaviour {
#region CONSTANTS
public const string Version = "v0.1.0";
public const string Extension = "Annotation";
#endregion
#region DELEGATES
#endregion
... | mit | C# |
eb6a301cb838865b78ed50541f670341cb63d6df | Fix xml doc comments | RockFramework/Rock.Core | Rock.Core/Serialization/SerializationExtensions.cs | Rock.Core/Serialization/SerializationExtensions.cs | using System;
namespace Rock.Serialization
{
public static class SerializationExtensions
{
/// <summary>
/// Deserializes an XML string into an object of type T.
/// </summary>
/// <typeparam name="T">The type of object represented by this string</typeparam>
/// <param ... | using System;
namespace Rock.Serialization
{
public static class SerializationExtensions
{
/// <summary>
/// Deserializes an XML string into an object of type T.
/// </summary>
/// <typeparam name="T">The type of object represented by this string</typeparam>
/// <param ... | mit | C# |
62e0cf241b0074f4af073a22f271a4c2ac2beffc | Tweak to url builder | mcintyre321/Noodles,mcintyre321/Noodles | Noodles/PathExtension.cs | Noodles/PathExtension.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using Walkies;
namespace Noodles
{
public static class PathExtension
{
static ConditionalWeakTable<object, string> urlRoots = new ConditionalWeakTable<object, string>();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using Walkies;
namespace Noodles
{
public static class PathExtension
{
static ConditionalWeakTable<object, string> urlRoots = new ConditionalWeakTable<object, string>();
... | mit | C# |
ce00b7de38f722a9021a1051ea5f69d562dc9616 | Fix zip file extension handling | mstevenson/SeudoBuild | UnityBuildServer/Project/Archive/ZipArchiveStep.cs | UnityBuildServer/Project/Archive/ZipArchiveStep.cs | using System.IO;
using Ionic.Zip;
namespace UnityBuildServer
{
public class ZipArchiveStep : ArchiveStep
{
ZipArchiveConfig config;
public ZipArchiveStep(ZipArchiveConfig config)
{
this.config = config;
}
public override string TypeName
{
... | using System.IO;
using Ionic.Zip;
namespace UnityBuildServer
{
public class ZipArchiveStep : ArchiveStep
{
ZipArchiveConfig config;
public ZipArchiveStep(ZipArchiveConfig config)
{
this.config = config;
}
public override string TypeName
{
... | mit | C# |
754cf7d97e6fe83c9f3f5df35c65899a6268231e | Remove mismerge. | bartdesmet/roslyn,weltkante/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,KevinRansom/roslyn,diryboy/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,CyrusNajmabadi/roslyn,weltkante/roslyn,KevinRansom/roslyn,jasonmalinowski/roslyn,mavasani/roslyn,shyamnamboodiripad/roslyn,bartdesmet/roslyn,diryboy/roslyn,CyrusNajmabadi/r... | src/Workspaces/Core/Portable/Diagnostics/InternalDiagnosticsOptions.cs | src/Workspaces/Core/Portable/Diagnostics/InternalDiagnosticsOptions.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 Microsoft.CodeAnalysis.Options;
namespace Microsoft.CodeAnalysis.Diagnostics
{
internal static class Int... | // 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 Microsoft.CodeAnalysis.Options;
namespace Microsoft.CodeAnalysis.Diagnostics
{
internal static class Int... | mit | C# |
5dcaa30db92bfea036244a92c933ea227ec445a9 | Remove main method | 12joan/hangman | table.cs | table.cs | using System;
namespace Table {
public class Table {
public int Width;
public int Spacing;
public Table(int width, int spacing) {
Width = width;
Spacing = spacing;
}
}
}
| using System;
namespace Table {
public class Table {
public int Width;
public int Spacing;
public Table(int width, int spacing) {
Width = width;
Spacing = spacing;
}
public static void Main() {
}
}
}
| unlicense | C# |
c407d0918eb1a3d3e9faf3156bf3ee126bbec7ca | fix warnings | Ky7m/DemoCode,Ky7m/DemoCode,Ky7m/DemoCode,Ky7m/DemoCode | PulumiDemo/Mocks.cs | PulumiDemo/Mocks.cs | using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Testing;
namespace PulumiDemo
{
internal class Mocks : IMocks
{
public Task<(string id, object state)> NewResourceAsync(string type, string name, ImmutableDictionary<string, object> inputs, string provider, string id)
... | using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Testing;
namespace PulumiDemo
{
internal class Mocks : IMocks
{
public Task<(string id, object state)> NewResourceAsync(string type, string name, ImmutableDictionary<string, object> inputs, string? provider, string? id)
... | mit | C# |
205148d65e08cb22f2f89e291d3956ee7af5b9cc | Fix cross-platform test seperator failure for MultipartTests.can_build_multipart_content() | johnmbaughman/Flurl,tmenier/Flurl | Test/Flurl.Test/Http/MultipartTests.cs | Test/Flurl.Test/Http/MultipartTests.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Flurl.Http;
using Flurl.Http.Content;
using NUnit.Framework;
namespace Flurl.Test.Http
{
[TestFixture, Parallelizable]
public class MultipartTests
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Flurl.Http;
using Flurl.Http.Content;
using NUnit.Framework;
namespace Flurl.Test.Http
{
[TestFixture, Parallelizable]
public class MultipartTests
{
[Test]
publ... | mit | C# |
f2bbb3613e54a83e87b8173267aaf90343909bd9 | Update Examples to print out the user's projects list | mbrewerton/DotNetPivotalTrackerApi | Examples/Program.cs | Examples/Program.cs | using DotNetPivotalTrackerApi.Enums;
using DotNetPivotalTrackerApi.Models.Project;
using DotNetPivotalTrackerApi.Models.User;
using DotNetPivotalTrackerApi.Services;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespac... | using DotNetPivotalTrackerApi.Enums;
using DotNetPivotalTrackerApi.Models.User;
using DotNetPivotalTrackerApi.Services;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Examples
{
class Program
{
p... | mit | C# |
3327669b567300737c575019a53d206c7fc33779 | Update NumberObjectValue.cs | smartsheet-platform/smartsheet-csharp-sdk,smartsheet-platform/smartsheet-csharp-sdk | main/Smartsheet/Api/Models/NumberObjectValue.cs | main/Smartsheet/Api/Models/NumberObjectValue.cs | // #[license]
// SmartsheetClient SDK for C#
// %%
// Copyright (C) 2018 SmartsheetClient
// %%
// 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
//
// ... | // #[license]
// SmartsheetClient SDK for C#
// %%
// Copyright (C) 2018 SmartsheetClient
// %%
// 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
//
// ... | apache-2.0 | C# |
ba11b60f7a80d62ea3604e7c5f605afe4d1993ce | Fix exception message in RepositoryBranchState indexer when revisions are not in order. | CamTechConsultants/CvsntGitImporter | RepositoryBranchState.cs | RepositoryBranchState.cs | /*
* John Hall <john.hall@camtechconsultants.com>
* Copyright (c) Cambridge Technology Consultants Ltd. All rights reserved.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CTC.CvsntGitImporter
{
/// <summary>
/// Tracks the versions of all files in... | /*
* John Hall <john.hall@camtechconsultants.com>
* Copyright (c) Cambridge Technology Consultants Ltd. All rights reserved.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CTC.CvsntGitImporter
{
/// <summary>
/// Tracks the versions of all files in... | mit | C# |
8c0900d7f72669496c75eeeef5feaa84fcac0b1a | Make VimeoApiException public, fixed #66 | mohibsheth/vimeo-dot-net,mfilippov/vimeo-dot-net | src/VimeoDotNet/Exceptions/VimeoApiException.cs | src/VimeoDotNet/Exceptions/VimeoApiException.cs | using System;
using System.Runtime.Serialization;
namespace VimeoDotNet.Exceptions
{
/// <summary>
/// VimeoApiException
/// </summary>
[Serializable]
public class VimeoApiException : ApplicationException
{
/// <summary>
/// Create new VimeoApiException
/// </summary>
... | using System;
using System.Runtime.Serialization;
namespace VimeoDotNet.Exceptions
{
[Serializable]
internal class VimeoApiException : ApplicationException
{
public VimeoApiException()
{
}
public VimeoApiException(string message)
: base(message)
{
... | mit | C# |
6f2cb94ff01b3a25531fb19a1eb40f064693901e | implementa cambios de colores en gradiente de background | jopar219/GlobalGameJam2017 | Assets/Scripts/GradientBackround.cs | Assets/Scripts/GradientBackround.cs | using UnityEngine;
using System.Collections;
public class GradientBackround : MonoBehaviour {
public Color topColor;
public Color bottomColor;
public Color[] colors = new Color[] {new Color(0.95f, 0.89f, 0.05f), new Color(0.92f, 0.7f, 0.02f), new Color(0.709f, 0.41f, 0.27f), new Color(0.109f, 0.009f, 0.009f), ne... | using UnityEngine;
using System.Collections;
public class GradientBackround : MonoBehaviour {
public Color topColor;
public Color bottomColor;
public int gradientLayer = 7;
void Awake() {
gradientLayer = Mathf.Clamp(gradientLayer, 0, 31);
if (!GetComponent<Camera>()) {
Debug.LogError ("Must at... | mit | C# |
ee79cfbfd597f4047083bafec7ebe53204dcff30 | Fix 81 TIiles mod name | boformer/BuildingThemes | BuildingThemes/BuildingThemesMod.cs | BuildingThemes/BuildingThemesMod.cs | using ICities;
using BuildingThemes.GUI;
using UnityEngine;
namespace BuildingThemes
{
public class BuildingThemesMod : IUserMod
{
// we'll use this variable to pass the building position to GetRandomBuildingInfo method. It's here to make possible 81 Tiles compatibility
public static Vector3 p... | using ICities;
using BuildingThemes.GUI;
using UnityEngine;
namespace BuildingThemes
{
public class BuildingThemesMod : IUserMod
{
// we'll use this variable to pass the building position to GetRandomBuildingInfo method. It's here to make possible 81 Tiles compatibility
public static Vector3 p... | mit | C# |
291fef0f34866ce3601d1fdf0c807aca93ee1667 | Update Besiege version | yut23/besiege-button-mapper | ButtonMapperMod/BesiegeModLoader.cs | ButtonMapperMod/BesiegeModLoader.cs | using spaar.ModLoader;
using System;
using UnityEngine;
namespace yut23.ButtonMapper
{
public class BesiegeModLoader : Mod
{
public GameObject temp;
public override string Name { get { return "button-mapper-mod"; } }
public override string DisplayName { get { return "Button Mapper Mod"... | using spaar.ModLoader;
using System;
using UnityEngine;
namespace yut23.ButtonMapper
{
public class BesiegeModLoader : Mod
{
public GameObject temp;
public override string Name { get { return "button-mapper-mod"; } }
public override string DisplayName { get { return "Button Mapper Mod"... | mit | C# |
b1b3087f28afd53cd5a6f971f91a7ca98ec629d6 | Improve test for DateTime.StartOfWeek | DaveSenn/Extend | PortableExtensions.Testing/System.DateTime/DateTime.StartOfWeek.Test.cs | PortableExtensions.Testing/System.DateTime/DateTime.StartOfWeek.Test.cs | #region Using
using System;
using NUnit.Framework;
#endregion
namespace PortableExtensions.Testing
{
[TestFixture]
public partial class DateTimeExTest
{
[Test]
public void StartOfWeekTestCase()
{
var dateTime = new DateTime(2014, 3, 27);
var expected = new... | #region Using
using System;
using NUnit.Framework;
#endregion
namespace PortableExtensions.Testing
{
[TestFixture]
public partial class DateTimeExTest
{
[Test]
public void StartOfWeekTestCase()
{
var dateTime = new DateTime( 2014, 3, 27 );
var expected = n... | mit | C# |
4c0128d40daa5994c567c40f77fc65027b80fbe0 | Improve performance. | mntone/ToastNotificationKit,mntone/ToastNotificationKit | Mntone.ToastNotificationServer/Mntone.ToastNotificationServer/Frameworks/ImageHelper.cs | Mntone.ToastNotificationServer/Mntone.ToastNotificationServer/Frameworks/ImageHelper.cs | using System;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace Mntone.ToastNotificationServer.Frameworks
{
public static class ImageHelper
{
public static WriteableBitmap CropAndResize(BitmapSource source, Rect sourceRect, Size expectedSize)
{
return CropAndResi... | using System;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace Mntone.ToastNotificationServer.Frameworks
{
public static class ImageHelper
{
public static WriteableBitmap CropAndResize(BitmapSource source, Rect sourceRect, Size expectedSize)
{
return CropAndResi... | mit | C# |
7b81eeddd4ac839eedc9be7e9daa9f1b47e26463 | Prepare for Master Merge | OfficeDev/PnP-PowerShell,kilasuit/PnP-PowerShell | Commands/Properties/AssemblyInfo.cs | Commands/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.
#if SP2013
[assembly: Assemb... | 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.
#if SP2013
[assembly: Assemb... | mit | C# |
daa30eaa45515e3d9f3afc7f5965a30742e8f3fa | test passing | gleroi/selfnet,gleroi/selfnet | Selfnet.Tests/Context.cs | Selfnet.Tests/Context.cs | namespace Selfnet.Tests
{
internal static class Context
{
private static SelfossApi api;
public static ConnectionOptions Options = new ConnectionOptions
{
Host = "host.com",
Base = "selfoss",
Username = "",
Password = ""
};
... | namespace Selfnet.Tests
{
internal static class Context
{
private static SelfossApi api;
public static ConnectionOptions Options = new ConnectionOptions
{
Host = "",
Base = "",
Username = "",
Password = ""
};
public stati... | mit | C# |
f7f5c79e60de7e2a8f32a66e306f847b7814d40e | Fix merge | jameschch/GeneticTreeAlgorithm | GeneticTree/Rule.cs | GeneticTree/Rule.cs | using GeneticTree.Signal;
using System;
using System.Linq;
using System.Text;
namespace GeneticTree
{
/// <summary>
/// This class wires and evaluates dynamically a set of <see cref="ISignal" /> and a set of logical
/// operators in string format in the form:
/// Indicator1|Operat... |
using GeneticTree.Signal;
using System;
using System.Linq;
using System.Text;
namespace GeneticTree
{
/// <summary>
/// This class wires and evaluates dynamically a set of <see cref="ISignal" /> and a set of logical
/// operators in string format in ... | apache-2.0 | C# |
034b71d40d33386a49b994037c6389d7fa5daf73 | Update to version 2.3 | arogozine/EnumUtilities | EnumUtil/Properties/AssemblyInfo.cs | EnumUtil/Properties/AssemblyInfo.cs | using System.Resources;
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.
[ass... | using System.Resources;
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.
[ass... | unlicense | C# |
2bcaebdb8f0dbf876dedb9be39c8074ccee8b70a | Fix the size of the file list item does not fit | setchi/NotesEditor,setchi/NoteEditor | Assets/Scripts/Presenter/MusicSelector/FileListItem.cs | Assets/Scripts/Presenter/MusicSelector/FileListItem.cs | using NoteEditor.Model;
using UniRx;
using UniRx.Triggers;
using UnityEngine;
using UnityEngine.UI;
namespace NoteEditor.Presenter
{
public class FileListItem : MonoBehaviour
{
[SerializeField]
Color selectedStateBackgroundColor;
[SerializeField]
Color defaultBackgroundColor;
... | using NoteEditor.Model;
using UniRx;
using UniRx.Triggers;
using UnityEngine;
using UnityEngine.UI;
namespace NoteEditor.Presenter
{
public class FileListItem : MonoBehaviour
{
[SerializeField]
Color selectedStateBackgroundColor;
[SerializeField]
Color defaultBackgroundColor;
... | mit | C# |
d5a18be21d37569ce4d834812fcc0e869ac1e803 | bump assembly version | timotei/il-repack,gluck/il-repack | ILRepack/Properties/AssemblyInfo.cs | ILRepack/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("ILR... | 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("ILR... | apache-2.0 | C# |
3a9a9bcaef10f679235b74a865bbfcf9162f18ca | Move a little local variable to smaller scope | brnkhy/MapzenGo,brnkhy/MapzenGo | Assets/MapzenGo/Models/CachedDynamicTileManager.cs | Assets/MapzenGo/Models/CachedDynamicTileManager.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using Assets.Helpers;
using Assets.Models.Factories;
using UniRx;
using UniRx.Triggers;
using UnityEngine;
namespace Assets.Models
{
publi... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using Assets.Helpers;
using Assets.Models.Factories;
using UniRx;
using UniRx.Triggers;
using UnityEngine;
namespace Assets.Models
{
publi... | mit | C# |
4084479dcd35c5aae633f1543accde3f5bd90583 | Update Exit.cs | ghandhikus/Xna-Basic-Input-Detection | Code/InputEvents/Exit.cs | Code/InputEvents/Exit.cs | #region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#endregion
namespace Game.InputEvents
{
class Exit : InputListener
{
public override void Down(GameTime gameTime) { Console.WriteLine("+Down has fired."); }
public override void Up(G... | #region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#endregion
namespace Game.InputEvents
{
class Exit : InputListener
{
public override void Down() { Console.WriteLine("+Down has fired."); }
public override void Up() { Console.WriteL... | apache-2.0 | C# |
fdcf5b63f5bfc9f1c88ac3164f90f9560e596caf | Bump to version 2.3.2.0 | MeltWS/proshine,bobus15/proshine,Silv3rPRO/proshine | PROShine/Properties/AssemblyInfo.cs | PROShine/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: As... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: As... | mit | C# |
ee2c7a23f7f8972a79ba0e5ea809b793e53a39b6 | make evals safe. less minified but wont break people. | mwrock/RequestReduce,mwrock/RequestReduce,mwrock/RequestReduce | RequestReduce/Utilities/Minifier.cs | RequestReduce/Utilities/Minifier.cs | using Microsoft.Ajax.Utilities;
using RequestReduce.Reducer;
using System;
using System.Security.AccessControl;
using RequestReduce.ResourceTypes;
namespace RequestReduce.Utilities
{
public class Minifier : IMinifier
{
private Microsoft.Ajax.Utilities.Minifier minifier = new Microsoft.Ajax.U... | using Microsoft.Ajax.Utilities;
using RequestReduce.Reducer;
using System;
using System.Security.AccessControl;
using RequestReduce.ResourceTypes;
namespace RequestReduce.Utilities
{
public class Minifier : IMinifier
{
private Microsoft.Ajax.Utilities.Minifier minifier = new Microsoft.Ajax.U... | apache-2.0 | C# |
4d0672e6f4b4687a6ff4ede6ef83a403f5011773 | fix bug on install/uninstall service | orrollo/port-redirector | port-redirector/Program.cs | port-redirector/Program.cs | using System;
using System.Configuration.Install;
using System.Diagnostics;
using System.Reflection;
using System.ServiceProcess;
using System.Threading;
namespace port_redirector
{
class Program : ServiceBase
{
public const string RedirectorServiceName = "port_redirector";
public Program()
{
ServiceName ... | using System;
using System.Configuration.Install;
using System.Diagnostics;
using System.Reflection;
using System.ServiceProcess;
using System.Threading;
namespace port_redirector
{
class Program : ServiceBase
{
public const string RedirectorServiceName = "port_redirector";
public Program()
{
ServiceName ... | mit | C# |
4fd4a4f1d79c424d422a90e92ba1886c2e04aa84 | Add State and InputStream to the IRecognizer interface | cooperra/antlr4,Distrotech/antlr4,parrt/antlr4,sidhart/antlr4,krzkaczor/antlr4,chienjchienj/antlr4,parrt/antlr4,antlr/antlr4,supriyantomaftuh/antlr4,parrt/antlr4,mcanthony/antlr4,wjkohnen/antlr4,lncosie/antlr4,wjkohnen/antlr4,cooperra/antlr4,ericvergnaud/antlr4,Pursuit92/antlr4,chandler14362/antlr4,chandler14362/antlr4... | Antlr4.Runtime/IRecognizer.cs | Antlr4.Runtime/IRecognizer.cs | namespace Antlr4.Runtime
{
using Antlr4.Runtime.Atn;
public interface IRecognizer
{
string[] TokenNames
{
get;
}
string[] RuleNames
{
get;
}
string GrammarFileName
{
get;
}
ATN Atn
... | namespace Antlr4.Runtime
{
using Antlr4.Runtime.Atn;
public interface IRecognizer
{
string[] TokenNames
{
get;
}
string[] RuleNames
{
get;
}
string GrammarFileName
{
get;
}
ATN Atn
... | bsd-3-clause | C# |
2d0157f1629cc9d213fa92d0aed07d71e120754b | Revert "Fixed Error" | luizbranco/close_encounters | Assets/Scripts/WordManager.cs | Assets/Scripts/WordManager.cs | using UnityEngine;
using System.Collections;
using UnityEditor;
using System.Collections.Generic;
using System.IO;
public class WordManager : MonoBehaviour {
public GameObject letterPrefab;
public GameObject wordPrefab;
protected FileInfo dictionaryFile = null;
protected StreamReader reader = null;
protected s... | using UnityEngine;
using System.Collections;
using UnityEditor;
using System.Collections.Generic;
using System.IO;
public class WordManager : MonoBehaviour {
public GameObject letterPrefab;
public GameObject wordPrefab;
protected FileInfo dictionaryFile = null;
protected StreamReader reader = null;
protected s... | mit | C# |
1c1480948d9477c740d7adc5a16d2b7c85056c5e | format code | UnstableMutex/DropboxCameraUploadsSorter | DropboxSorter/DropboxSorter/Program.cs | DropboxSorter/DropboxSorter/Program.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace DropboxSorter
{
class Program
{
static void Main(string[] args)
{
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace DropboxSorter
{
class Program
{
static void Main(string[] args)
{
... | mit | C# |
9787ea0cfa58762c5b448b8789960c3ff9da3ef6 | Apply suggestions from code review | abjerner/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,robertjf/Umbraco-CMS,robertjf/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,abjerner/Umbraco-CMS,arknu/Umbraco-CMS,robertjf/Umbraco-CMS,abjerner/Umbraco-CMS,arknu/Umbraco-CMS,dawoe/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,abryukhov/Umbraco-CMS,J... | src/Umbraco.Web.Common/Extensions/UmbracoApplicationBuilder.Identity.cs | src/Umbraco.Web.Common/Extensions/UmbracoApplicationBuilder.Identity.cs | using System;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Security;
namespace Umbraco.Extensions
{
public static partial class UmbracoApplicationBui... | using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Security;
namespace Umbraco.Extensions
{
public static partial class UmbracoApplicationBuilderExtensions... | mit | C# |
21d88f229255ff645fca01fb7157d87e23ec1c8c | fix in IScoreboard CreateScoreboard() metohd | TeamLabyrinth4/Labyrinth-4 | Labyrinth-4/ObjectBuilder/Decorator.cs | Labyrinth-4/ObjectBuilder/Decorator.cs | namespace Labyrinth.ObjectBuilder
{
using Model;
using Scoreboard;
using Utilities;
/// <summary>
/// A Decorator class which wrap the IGameObjectBuilder interface in order to add new functionality.
/// </summary>
public abstract class Decorator : IGameObjectBuilder
{
/// <s... | namespace Labyrinth.ObjectBuilder
{
using Model;
using Scoreboard;
using Utilities;
/// <summary>
/// A Decorator class which wrap the IGameObjectBuilder interface in order to add new functionality.
/// </summary>
public abstract class Decorator : IGameObjectBuilder
{
/// <s... | mit | C# |
2b9d69fa8d3ada6505da6e94925987193e2c2c7d | Add processed_at_min, processed_at_max and attribution_app_id | clement911/ShopifySharp,nozzlegear/ShopifySharp,addsb/ShopifySharp | ShopifySharp/Filters/OrderFilter.cs | ShopifySharp/Filters/OrderFilter.cs | using System;
using Newtonsoft.Json;
using ShopifySharp.Enums;
namespace ShopifySharp.Filters
{
/// <summary>
/// Options for filtering <see cref="OrderService.CountAsync(OrderFilter)"/> and
/// <see cref="OrderService.ListAsync(OrderFilter)"/> results.
/// </summary>
public class OrderFilter : Li... | using Newtonsoft.Json;
using ShopifySharp.Enums;
namespace ShopifySharp.Filters
{
/// <summary>
/// Options for filtering <see cref="OrderService.CountAsync(OrderFilter)"/> and
/// <see cref="OrderService.ListAsync(OrderFilter)"/> results.
/// </summary>
public class OrderFilter : ListFilter
{... | mit | C# |
bce824af9855da4bd23efbd3bda7e658580367ca | fix null reference exception | lAnubisl/PostTrack,lAnubisl/PostTrack,lAnubisl/PostTrack | Posttrack.BLL/Models/EmailModels/BaseEmailModel.cs | Posttrack.BLL/Models/EmailModels/BaseEmailModel.cs | using Posttrack.Data.Interfaces.DTO;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Text.RegularExpressions;
namespace Posttrack.BLL.Models.EmailModels
{
internal abstract class BaseEmailModel
{
internal BaseEmailModel(str... | using Posttrack.Data.Interfaces.DTO;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Text.RegularExpressions;
namespace Posttrack.BLL.Models.EmailModels
{
internal abstract class BaseEmailModel
{
internal BaseEmailModel(str... | apache-2.0 | C# |
d657b250d46596f8bd76d7fb4e3c7d1f33a30b4a | Implement ISample on Sample | smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,ppy/osu-framework | osu.Framework/Audio/Sample/Sample.cs | osu.Framework/Audio/Sample/Sample.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Framework.Audio.Sample
{
public abstract class Sample : AudioCollectionManager<SampleChannel>, ISample
{
public const int DEFAULT_CONCURRENC... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Framework.Audio.Sample
{
public abstract class Sample : AudioCollectionManager<SampleChannel>
{
public const int DEFAULT_CONCURRENCY = 2;
... | mit | C# |
502530e57671a1a0b4a41b07b330568e219bc666 | Bump v1.1.4 | karronoli/tiny-sato | TinySato/Properties/AssemblyInfo.cs | TinySato/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TinySato")]
[assembly: AssemblyDescription("You can construct and send SBPL packet to Sato printer. Sat... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TinySato")]
[assembly: AssemblyDescription("You can construct and send SBPL packet to Sato printer. Sat... | apache-2.0 | C# |
c0f63ff1cea63010813e894779aa3d960164df12 | Fix spelling | SamTheDev/octokit.net,eriawan/octokit.net,thedillonb/octokit.net,editor-tools/octokit.net,SmithAndr/octokit.net,Sarmad93/octokit.net,khellang/octokit.net,shiftkey/octokit.net,ivandrofly/octokit.net,shiftkey-tester-org-blah-blah/octokit.net,rlugojr/octokit.net,devkhan/octokit.net,octokit-net-test-org/octokit.net,M-Zuber... | Octokit/Helpers/ReferenceExtensions.cs | Octokit/Helpers/ReferenceExtensions.cs | using System.Threading.Tasks;
namespace Octokit.Helpers
{
/// <summary>
/// Represents operations to simplify working with references
/// </summary>
public static class ReferenceExtensions
{
/// <summary>
/// Creates a branch, based off the branch specified.
/// </summary>
... | using System.Threading.Tasks;
namespace Octokit.Helpers
{
/// <summary>
/// Represents operations to simplify workink with references
/// </summary>
public static class ReferenceExtensions
{
/// <summary>
/// Creates a branch, based off the branch specified.
/// </summary>
... | mit | C# |
1d1ab63b27809d01ba144e079099a1a60f053d87 | add MultipleWhitespaceCharsToSingleSpace() | syl20bnr/omnisharp-server,syl20bnr/omnisharp-server,x335/omnisharp-server,x335/omnisharp-server,corngood/omnisharp-server,svermeulen/omnisharp-server,corngood/omnisharp-server,mispencer/OmniSharpServer,OmniSharp/omnisharp-server | OmniSharp/Solution/StringExtensions.cs | OmniSharp/Solution/StringExtensions.cs | using System;
using System.IO;
using System.Text.RegularExpressions;
namespace OmniSharp.Solution
{
public static class StringExtensions
{
public static string MultipleWhitespaceCharsToSingleSpace
(this string stringToTrim) {
return Regex.Replace(stringToTrim, @"\s+... | using System;
using System.IO;
namespace OmniSharp.Solution
{
public static class StringExtensions
{
/// <summary>
/// Changes a path's directory separator from Windows-style to the native
/// separator if necessary and expands it to the full path name.
/// </summary>... | mit | C# |
fecee559c12c325347160a49d1afe3f19077fab3 | Fix broken build | SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice,SkillsFundingAgency/das-providerapprenticeshipsservice | src/SFA.DAS.ProviderApprenticeshipsService.Web/Models/TransferFundedListItemViewModel.cs | src/SFA.DAS.ProviderApprenticeshipsService.Web/Models/TransferFundedListItemViewModel.cs | using SFA.DAS.Commitments.Api.Types;
namespace SFA.DAS.ProviderApprenticeshipsService.Web.Models
{
public sealed class TransferFundedListItemViewModel
{
public string HashedCommitmentId { get; set; }
public string ReceivingEmployerName { get; set; }
public TransferApprovalStatus? Statu... | using SFA.DAS.Commitments.Api.Types;
namespace SFA.DAS.ProviderApprenticeshipsService.Web.Models
{
public sealed class TransferFundedListItemViewModel
{
public string HashedCommitmentId { get; set; }
public string ReceivingEmployerName { get; set; }
public TransferApprovalStatus Status... | mit | C# |
322aa3516aedaea7afe702ff1a23c1fa7c659ef5 | Disable water hitbox | kennyvv/Alex,kennyvv/Alex,kennyvv/Alex,kennyvv/Alex | src/Alex/Blocks/Minecraft/Water.cs | src/Alex/Blocks/Minecraft/Water.cs | using Alex.API.Blocks;
using Alex.API.Utils;
using Alex.API.World;
using Alex.Blocks.Properties;
namespace Alex.Blocks.Minecraft
{
public class LiquidBlock : Block
{
protected LiquidBlock()
{
}
}
public class Water : Block
{
public static readonly PropertyInt LEVEL = new PropertyInt("level", 0);
p... | using Alex.API.Blocks;
using Alex.API.Utils;
using Alex.API.World;
using Alex.Blocks.Properties;
namespace Alex.Blocks.Minecraft
{
public class LiquidBlock : Block
{
protected LiquidBlock()
{
}
}
public class Water : Block
{
public static readonly PropertyInt LEVEL = new PropertyInt("level", 0);
p... | mpl-2.0 | C# |
aa9e3cf5fb05374d0823bb7d1ea0d814fcbe417b | Fix options overwrite | hoagsie/BetterEntityFramework | BetterEntityFramework/DataService.cs | BetterEntityFramework/DataService.cs | using System;
using BetterEntityFramework.StoreData;
using Microsoft.EntityFrameworkCore;
namespace BetterEntityFramework
{
internal class DataService : IDisposable
{
private EfStoreContext _data;
private DbContextOptions _lastOptions;
/// <summary>
/// Gets an instance of the... | using System;
using BetterEntityFramework.StoreData;
using Microsoft.EntityFrameworkCore;
namespace BetterEntityFramework
{
internal class DataService : IDisposable
{
private EfStoreContext _data;
private DbContextOptions _lastOptions;
/// <summary>
/// Gets an instance of the... | mit | C# |
d2e9b245181aa817915bd6be27c7d7d4dfba9c1d | Add reference for selection sort. | scott-fleischman/algorithms-csharp | src/Algorithms.Sort/SelectionSort.cs | src/Algorithms.Sort/SelectionSort.cs | using System;
using System.Collections.Generic;
namespace Algorithms.Sort
{
public class SelectionSort
{
public static void SortInPlace<T>(IList<T> list)
{
SortInPlace(list, Comparer<T>.Default);
}
// Ex 2.2-2, p. 29
public static void SortInPlace<T>(IList<T> list, IComparer<T> comparer)
... | using System;
using System.Collections.Generic;
namespace Algorithms.Sort
{
public class SelectionSort
{
public static void SortInPlace<T>(IList<T> list)
{
SortInPlace(list, Comparer<T>.Default);
}
public static void SortInPlace<T>(IList<T> list, IComparer<T> comparer)
{
if (list.Coun... | mit | C# |
fa4597f96a3d30afcfc6cb18ddc5756c064486be | Apply Json and Object changes to console test. | yojimbo87/ArangoDB-NET,kangkot/ArangoDB-NET | src/Arango/Arango.Console/Program.cs | src/Arango/Arango.Console/Program.cs | using System;
using System.IO;
using Arango.Client;
using System.Dynamic;
namespace Arango.Console
{
class Program
{
static void Main(string[] args)
{
string alias = "test";
string[] connectionString = File.ReadAllText(@"..\..\..\..\..\Connecti... | using System;
using System.IO;
using Arango.Client;
using System.Dynamic;
namespace Arango.Console
{
class Program
{
static void Main(string[] args)
{
string alias = "test";
string[] connectionString = File.ReadAllText(@"..\..\..\..\..\Connecti... | mit | C# |
c7f0ca7e8e6a6aeb8223df12322aff323b9f4a6c | Implement Inkbunny logout | libertyernie/WeasylSync | CrosspostSharp3/MainForm.Inkbunny.cs | CrosspostSharp3/MainForm.Inkbunny.cs | using ArtSourceWrapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CrosspostSharp3 {
public partial class MainForm {
private async void inkbunnyToolStripMenuItem_Click(object sender, EventArgs e) {
too... | using ArtSourceWrapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CrosspostSharp3 {
public partial class MainForm {
private async void inkbunnyToolStripMenuItem_Click(object sender, EventArgs e) {
too... | mit | C# |
a2c0c37bed1b7e50fef958a3bc0dfe64727644b3 | Remove System.Windows.Forms reference | esskar/Canon.Eos.Framework | EosCamera.HandeStateEvents.cs | EosCamera.HandeStateEvents.cs | using System;
using System.Diagnostics;
using EDSDKLib;
namespace Canon.Eos.Framework
{
partial class EosCamera
{
private void OnStateEventShutdown(EventArgs eventArgs)
{
if (this.Shutdown != null)
this.Shutdown(this, eventArgs);
}
private uint Hand... | using System;
using System.Diagnostics;
using System.Windows.Forms;
using EDSDKLib;
namespace Canon.Eos.Framework
{
partial class EosCamera
{
private void OnStateEventShutdown(EventArgs eventArgs)
{
if (this.Shutdown != null)
this.Shutdown(this, eventArgs);
... | mit | C# |
1e3c2be295191c9557d29448263c3951cd5c2a43 | Update project version | frabert/SharpPhysFS | SharpPhysFS/Properties/AssemblyInfo.cs | SharpPhysFS/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sh... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sh... | mit | C# |
2cbcdaff05c861e86185c6dff372eabe8e228413 | Edit version | frabert/SharpPhysFS | SharpPhysFS/Properties/AssemblyInfo.cs | SharpPhysFS/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sh... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sh... | mit | C# |
5229ef3ffa94dfb80d757bcbf049d484499d2a11 | Add integration app | brian-dot-net/writeasync,brian-dot-net/writeasync,brian-dot-net/writeasync | projects/RetrySample/source/RetrySample.App/Program.cs | projects/RetrySample/source/RetrySample.App/Program.cs | //-----------------------------------------------------------------------
// <copyright file="Program.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace RetrySample
{
using Syst... | //-----------------------------------------------------------------------
// <copyright file="Program.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace RetrySample
{
using Syst... | unlicense | C# |
21954f401b1abc4e05dfedb5fb2ef48386d1fe62 | Add CheckTimeout | imba-tjd/CSharp-Code-Repository | 单个文件的程序/SNI.cs | 单个文件的程序/SNI.cs | // 检测是否存在SNI RST的程序,接受单个IP、域名或整个URL
using System;
using System.Diagnostics;
class SNI
{
const string TargetIP = "104.131.212.184"; // 用于域前置的IP;community.notepad-plus-plus.org
const string NormalNCNHost = "usa.baidu.com"; // 用于检测TargetIP是否被封,必须用正常的域名
const string NormalCNHost = "www.baidu.com"; // 用于检测是否联网,... | using System;
using System.Diagnostics;
class SNI
{
const string TargetIP = "104.131.212.184"; // 用于域前置的IP;community.notepad-plus-plus.org
const string NormalNCNHost = "usa.baidu.com"; // 用于检测TargetIP是否被封,必须用正常的域名
const string NormalCNHost = "www.baidu.com"; // 用于检测是否联网,可换成其它普通国内域名/IP
static int Main(... | mit | C# |
4c5b0e7226ce5c62ffcff135a92362e3ccf66cb1 | Update OAuth2AuthorizeAttribute.cs | Brightspace/D2L.Security.OAuth2 | src/D2L.Security.OAuth2.WebApi/Authorization/OAuth2AuthorizeAttribute.cs | src/D2L.Security.OAuth2.WebApi/Authorization/OAuth2AuthorizeAttribute.cs | using System.Linq;
using System.Web.Http;
using System.Web.Http.Controllers;
namespace D2L.Security.OAuth2.Authorization {
public abstract class OAuth2AuthorizeAttribute : AuthorizeAttribute {
private const string AUTH_HAS_RUN = "D2L.Security.OAuth2.Authorization.OAuth2AuthorizeAttribute_Auth_Has_Run";
... | using System.Linq;
using System.Web.Http;
using System.Web.Http.Controllers;
namespace D2L.Security.OAuth2.Authorization {
public abstract class OAuth2AuthorizeAttribute : AuthorizeAttribute {
private const string AUTH_HAS_RUN = "D2L.Security.OAuth2.Authorization.OAuth2AuthorizeAttribute_Auth_Has_Run";
... | apache-2.0 | C# |
93748c570669d22af8de5cd0d236808188ce2148 | Create success-only stubs for user validator | meutley/ISTS | src/Domain.Test/Users/UserTests.cs | src/Domain.Test/Users/UserTests.cs | using System;
using Moq;
using Xunit;
using ISTS.Domain.Common;
using ISTS.Domain.Users;
namespace ISTS.Domain.Tests.Users
{
public class UserTests
{
private readonly Mock<IUserValidator> _userValidator;
public UserTests()
{
_userValidator = new Mock<IUserValidator>();
... | using System;
using Xunit;
using ISTS.Domain.Users;
namespace ISTS.Domain.Tests.Users
{
public class UserTests
{
[Fact]
public void Create_Returns_New_User()
{
var user = User.Create("myemail@company.com", "Person", "12345", "password1");
Assert.NotNull(user);... | mit | C# |
916a91cd3a4e337e325122af507aea32fd56101e | Bring across Server Sent Events resource implementation | peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,pranavkm/Glimpse.Prototype,zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Gl... | src/Glimpse.Server.Web/Resources/MessageStreamResource.cs | src/Glimpse.Server.Web/Resources/MessageStreamResource.cs | using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Threading.Tasks;
using Microsoft.AspNet.Http.Features;
using Microsoft.AspNet.Http;
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Glimpse.Server.Web
{
public class Mess... | namespace Glimpse.Server.Web
{
public class MessageStreamResource : IResourceStartup
{
private readonly IServerBroker _serverBroker;
public MessageStreamResource(IServerBroker serverBroker)
{
_serverBroker = serverBroker;
}
public void Configure(IResourceBu... | mit | C# |
d3577b5c56ff02e02e6ad2f095b0aa4a6ce88c38 | Replace foreach with for | davidaramant/buddhabrot,davidaramant/buddhabrot | src/Buddhabrot.Core/Utilities/FixedSizeCache.cs | src/Buddhabrot.Core/Utilities/FixedSizeCache.cs | namespace Buddhabrot.Core.Utilities;
public sealed class FixedSizeCache<TKey, TValue>
where TKey : struct
where TValue : struct
{
private readonly RingBuffer<TKey> _keyCache;
private readonly RingBuffer<TValue> _valueCache;
public int Capacity => _keyCache.Capacity;
public int Count => _keyCa... | namespace Buddhabrot.Core.Utilities;
public sealed class FixedSizeCache<TKey, TValue>
where TKey : struct
where TValue : struct
{
private readonly RingBuffer<TKey> _keyCache;
private readonly RingBuffer<TValue> _valueCache;
public int Capacity => _keyCache.Capacity;
public int Count => _keyCac... | bsd-2-clause | C# |
3496f1002a527ca037793bc567014f4834fdabfe | Allow underscore | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Core/Domain/TestItem.cs | Anlab.Core/Domain/TestItem.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using System.Text.Encodings.Web;
namespace Anlab.Core.Domain
{
public class TestItem
{
[Key]
[StringLength(128)]
[Display(... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using System.Text.Encodings.Web;
namespace Anlab.Core.Domain
{
public class TestItem
{
[Key]
[StringLength(128)]
[Display(... | mit | C# |
ac49f092337b7550fda9160b1d757d5593ea51d6 | Remove Gender, Age in Model. | App2Night/App2Night.Xamarin | App2Night.Model/Model/User.cs | App2Night.Model/Model/User.cs | using System.Collections.ObjectModel;
using System.ComponentModel;
using App2Night.Model.Enum;
namespace App2Night.Model.Model
{
public class User
{
public string Name { get; set; }
public string Email { get; set; }
public ObservableCollection<Party> Events { get; set; }
publi... | using System.Collections.ObjectModel;
using System.ComponentModel;
using App2Night.Model.Enum;
namespace App2Night.Model.Model
{
public class User
{
public string Name { get; set; }
public int Age { get; set; }
public Gender Gender { get; set; } = Gender.Unkown;
public string Email ... | mit | C# |
81a4f1300773e5e35f03c6077962207c7d7f87cf | Update version | metaphorce/leaguesharp | MetaSmite/Properties/AssemblyInfo.cs | MetaSmite/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("Me... | 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("Me... | mit | C# |
b565d1ab762b92683d72d210f3927804a7f61439 | Update naming | Wox-launcher/Wox,qianlifeng/Wox,qianlifeng/Wox,Wox-launcher/Wox,qianlifeng/Wox | Wox.Plugin/SharedCommands/SearchWeb.cs | Wox.Plugin/SharedCommands/SearchWeb.cs | using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Wox.Plugin.SharedCommands
{
public static class SearchWeb
{
/// <summary>
/// Opens search in a new browser. If no browser path is passed in then Chrome is used.
/// Leave browser path blank to use C... | using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Wox.Plugin.SharedCommands
{
public static class SearchWeb
{
/// <summary>
/// Opens search in a new browser. If no browser path is passed in then Chrome is used.
/// Leave browser path blank to use C... | mit | C# |
d934ffa9f5a87ffdeecb345344d2b6ba87a2d315 | add documentation to enumhelpers | peopleware/net-ppwcode-util-oddsandends | src/II/EnumHelpers/EnumHelpers.cs | src/II/EnumHelpers/EnumHelpers.cs | // Copyright 2014 by PeopleWare n.v..
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | // Copyright 2014 by PeopleWare n.v..
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# |
9354d2b0721bc901339ff314692708f0c4a79e84 | Save after load | gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer | Server/Settings/Base/SettingsBase.cs | Server/Settings/Base/SettingsBase.cs | using LunaCommon.Xml;
using Server.Context;
using Server.Log;
using Server.System;
using System;
using System.IO;
namespace Server.Settings.Base
{
public abstract class SettingsBase<T>: ISettings
where T : class, new()
{
protected abstract string Filename { get; }
private string Settin... | using LunaCommon.Xml;
using Server.Context;
using Server.Log;
using Server.System;
using System;
using System.IO;
namespace Server.Settings.Base
{
public abstract class SettingsBase<T>: ISettings
where T : class, new()
{
protected abstract string Filename { get; }
private string Settin... | mit | C# |
ca8fefb1be3938e0b18e9325aacf67a2f6b14e15 | Update Sha256Hasher.cs | livarcocc/cli-1,livarcocc/cli-1,johnbeisner/cli,livarcocc/cli-1,johnbeisner/cli,dasMulli/cli,johnbeisner/cli,dasMulli/cli,dasMulli/cli | src/dotnet/Telemetry/Sha256Hasher.cs | src/dotnet/Telemetry/Sha256Hasher.cs | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
namespace Microsoft.DotNet.Cli.Telemetry
{
internal ... | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
namespace Microsoft.DotNet.Cli.Telemetry
{
internal ... | mit | C# |
e8375335acbecb977a66b3098a40609b92450124 | fix alive endpoint on notifications | bitwarden/core,bitwarden/core,bitwarden/core,bitwarden/core | src/Notifications/Controllers/SendController.cs | src/Notifications/Controllers/SendController.cs | using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Bit.Core.Utilities;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.SignalR;
namespace Bit.Notifications
{
[Authorize("Internal")]
public class SendController : Controller... | using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Bit.Core.Utilities;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.SignalR;
namespace Bit.Notifications
{
[Authorize("Internal")]
[SelfHosted(SelfHostedOnly = true)]
... | agpl-3.0 | C# |
be2aa88c734254198665fb460c40eca0426e58fb | Update ZoomFactor.cs | maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-sha... | Examples/CSharp/Worksheets/Display/ZoomFactor.cs | Examples/CSharp/Worksheets/Display/ZoomFactor.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Worksheets.Display
{
public class ZoomFactor
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetD... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Worksheets.Display
{
public class ZoomFactor
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(System.Reflection... | mit | C# |
c305cf7b03d3f8fbf88911c519176d7b80959b0a | resolve list | HarshPoint/HarshPoint,NaseUkolyCZ/HarshPoint,the-ress/HarshPoint | HarshPoint/Provisioning/HarshFieldProvisioner.cs | HarshPoint/Provisioning/HarshFieldProvisioner.cs | using Microsoft.SharePoint.Client;
using System;
using System.Threading.Tasks;
namespace HarshPoint.Provisioning
{
/// <summary>
/// Base class for provisioners that modify SharePoint fields using the
/// client-side object model.
/// </summary>
public abstract class HarshFieldProvisioner : Harsh... | using Microsoft.SharePoint.Client;
using System;
using System.Threading.Tasks;
namespace HarshPoint.Provisioning
{
/// <summary>
/// Base class for provisioners that modify SharePoint fields using the
/// client-side object model.
/// </summary>
public abstract class HarshFieldProvisioner : Harsh... | bsd-2-clause | C# |
2341ba200298257778e72193f18451331a73c516 | Update assembly version | tamasflamich/effort | Main/Source/Effort/Properties/AssemblyVersion.cs | Main/Source/Effort/Properties/AssemblyVersion.cs | // --------------------------------------------------------------------------------------------
// <copyright file="AssemblyVersion.cs" company="Effort Team">
// Copyright (C) Effort Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associa... | // --------------------------------------------------------------------------------------------
// <copyright file="AssemblyVersion.cs" company="Effort Team">
// Copyright (C) Effort Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associa... | mit | C# |
920c3dbb76f34cef1bf789806108b771ccd1addf | Remove useless using | thennequin/Wox-EasyTotp | Wox-EasyTotp/Authenticators/Steam.cs | Wox-EasyTotp/Authenticators/Steam.cs | using System;
using System.Text;
namespace Wox_EasyTotp.Authenticators
{
[Authenticator("TOTP Steam", "Images/steam.png")]
class Steam : RFC6238
{
static string GetCode(string sSecretKey)
{
if (sSecretKey.Length == 32)
{
try
{
long iInterval = GetInterval(DateTime.Now);
byte[] vHashData... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Wox_EasyTotp.Authenticators
{
[Authenticator("TOTP Steam", "Images/steam.png")]
class Steam : RFC6238
{
static string GetCode(string sSecretKey)
{
if (sSecretKey.Length == 32)
{
... | mit | C# |
ffc23a002622d2219690dbe0a588dc43ae93a22c | refactor TemplateUrlTests to remove dependency on WebApiHelper | billboga/Supurlative,ritterim/Supurlative,kendaleiv/Supurlative | tests/Core.Tests/TemplateUrlTests.cs | tests/Core.Tests/TemplateUrlTests.cs | using System.Web.Http;
using Tavis.UriTemplates;
using Xunit;
namespace RimDev.Supurlative.Tests
{
public class TemplateUrlTests
{
const string _baseUrl = "http://localhost:8000/";
[Fact]
public void Can_generate_a_fully_qualified_path()
{
string expected = _baseUr... | using Tavis.UriTemplates;
using Xunit;
namespace RimDev.Supurlative.Tests
{
public class TemplateUrlTests
{
public TemplateGenerator Generator { get; set; }
public TemplateUrlTests()
{
Generator = InitializeGenerator();
}
private static TemplateGenerator I... | mit | C# |
0ca443426a880586800d85f7186b8fa3bf841fbd | add useful ctor | you21979/NBitcoin,MetacoSA/NBitcoin,MetacoSA/NBitcoin,HermanSchoenfeld/NBitcoin,dangershony/NStratis,thepunctuatedhorizon/BrickCoinAlpha.0.0.1,bitcoinbrisbane/NBitcoin,stratisproject/NStratis,lontivero/NBitcoin,NicolasDorier/NBitcoin | NBitcoin/OpenAsset/AssetId.cs | NBitcoin/OpenAsset/AssetId.cs | using NBitcoin.DataEncoders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBitcoin.OpenAsset
{
public class AssetId
{
internal byte[] _Bytes;
public AssetId()
{
_Bytes = new byte[] { 0 };
}
public Asset... | using NBitcoin.DataEncoders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NBitcoin.OpenAsset
{
public class AssetId
{
internal byte[] _Bytes;
public AssetId()
{
_Bytes = new byte[] { 0 };
}
public Asset... | mit | C# |
e07969dc5a83e512402548ed3b07c9cc0101e54a | Add HouseNumber, ApartmentLetter, and ApartmentNumber into AddressData | nfleet/.net-sdk | NFleetSDK/Data/AddressData.cs | NFleetSDK/Data/AddressData.cs | namespace NFleet.Data
{
public class AddressData
{
public string Country { get; set; }
public string City { get; set; }
public string PostalCode { get; set; }
public string Street { get; set; }
public int HouseNumber { get; set; }
public string ApartmentLetter { ... | namespace NFleet.Data
{
public class AddressData
{
public string Country { get; set; }
public string City { get; set; }
public string PostalCode { get; set; }
public string Street { get; set; }
}
}
| mit | C# |
4adcadb6a80120e3c0e827f9d36d1234f79885f0 | Update ModuleWeaver.cs | Fody/Obsolete | Obsolete.Fody/ModuleWeaver.cs | Obsolete.Fody/ModuleWeaver.cs | using System.Collections.Generic;
using Fody;
public partial class ModuleWeaver :
BaseModuleWeaver
{
public SemanticVersion assemblyVersion;
public override void Execute()
{
ReadConfig();
FindEditorBrowsableTypes();
FindObsoleteType();
assemblyVersion = VersionReader.... | using System.Collections.Generic;
using Fody;
public partial class ModuleWeaver:BaseModuleWeaver
{
public SemanticVersion assemblyVersion;
public override void Execute()
{
ReadConfig();
FindEditorBrowsableTypes();
FindObsoleteType();
assemblyVersion = VersionReader.Read(M... | mit | C# |
02191eca5d100bc09ec153408037b6bd018b3243 | add method to compare multiple pixels | Gurupitka/pixel-monitor | pixel-monitor/ImageComparer.cs | pixel-monitor/ImageComparer.cs | using System;
using System.Drawing;
using System.Windows.Forms;
using System.Media;
namespace pixel_monitor
{
public class ImageComparer
{
/// <summary>
/// Compares a given color (r,g,b) value to another (r,g,b) value and if the color difference is at least mindelta returns true;
/// ... | using System;
using System.Drawing;
using System.Windows.Forms;
using System.Media;
namespace pixel_monitor
{
public class ImageComparer
{
/// <summary>
/// Compares a given color (r,g,b) value to another (r,g,b) value and if the color difference is at least mindelta returns true;
/// ... | mit | C# |
222b72fd9a74db96d33526aff873f3b6006f1a11 | bump version | alecgorge/adzerk-dot-net | Adzerk.Api/Properties/AssemblyInfo.cs | Adzerk.Api/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("Ad... | 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("Ad... | mit | C# |
d2cb9a67c38c55cb47fe0872aa6260dc814a76b9 | Fix markdownstring required | joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,kirillkos/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net | Joinrpg/Views/Shared/EditorTemplates/MarkdownString.cshtml | Joinrpg/Views/Shared/EditorTemplates/MarkdownString.cshtml | @model JoinRpg.DataModel.MarkdownString
@{
var requiredMsg = new MvcHtmlString("");
var validation = false;
foreach (var attr in @Html.GetUnobtrusiveValidationAttributes(@ViewData.TemplateInfo.HtmlFieldPrefix, @ViewData.ModelMetadata))
{
if (attr.Key == "data-val-required")
{
requiredMs... | @model JoinRpg.DataModel.MarkdownString
@{
var requiredMsg = "";
foreach (var attr in @Html.GetUnobtrusiveValidationAttributes(@ViewData.TemplateInfo.HtmlFieldPrefix, @ViewData.ModelMetadata))
{
if (attr.Key == "data-val-required")
{
requiredMsg = attr.Value.ToString();
}
}
}
<div>
... | mit | C# |
b9e79e7c55b8862e10b7f4befeef6fb75065da51 | Add first implementation of dynamic builder | IEVin/PropertyChangedNotificator | src/Core/DynamicBuilder.cs | src/Core/DynamicBuilder.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using System.Linq;
using System.Reflection.Emit;
namespace NotifyAutoImplementer.Core
{
public static class DynamicBuilder
{
static readonly Lazy<ModuleBuilder> s_builder = new Lazy<ModuleB... | using System;
using System.Reflection;
using System.Reflection.Emit;
namespace NotifyAutoImplementer.Core
{
public static class DynamicBuilder
{
const string AssemblyBuilderName = "DynamicAssembly_871";
static Lazy<AssemblyBuilder> s_assemblyBuilder = new Lazy<AssemblyBuilder>(
() => AppDomain.Cu... | mit | C# |
6da9af7ecbc4254097d28c34ddc22ce8765d06e0 | Fix for NH-3145 | gliljas/nhibernate-core,ngbrown/nhibernate-core,livioc/nhibernate-core,lnu/nhibernate-core,RogerKratz/nhibernate-core,hazzik/nhibernate-core,fredericDelaporte/nhibernate-core,fredericDelaporte/nhibernate-core,ManufacturingIntelligence/nhibernate-core,nkreipke/nhibernate-core,nhibernate/nhibernate-core,fredericDelaporte... | src/NHibernate/Proxy/NHibernateProxyHelper.cs | src/NHibernate/Proxy/NHibernateProxyHelper.cs | using NHibernate.Cfg;
using NHibernate.Intercept;
namespace NHibernate.Proxy
{
/// <summary>
/// NHibernateProxyHelper provides convenience methods for working with
/// objects that might be instances of Classes or the Proxied version of
/// the Class.
/// </summary>
public static class NHibernateProxy... | using NHibernate.Cfg;
using NHibernate.Intercept;
namespace NHibernate.Proxy
{
/// <summary>
/// NHibernateProxyHelper provides convenience methods for working with
/// objects that might be instances of Classes or the Proxied version of
/// the Class.
/// </summary>
public static class NHibernateProxy... | lgpl-2.1 | C# |
98e72e25ef9d5840160abcd2ce9dbff4ef2e5d0e | Add documentation | jnoellsch/ektron-fluentapi | Src/Ektron.SharedSource.FluentApi/ContentDataExtensions.cs | Src/Ektron.SharedSource.FluentApi/ContentDataExtensions.cs | using System.Collections.Generic;
using System.Linq;
using Ektron.Cms;
namespace Ektron.SharedSource.FluentApi
{
/// <summary>
/// Represents a set of extensions for <see cref="ContentData"/>.
/// </summary>
public static class ContentDataExtensions
{
/// <summary>
/// Converts a s... | using System.Collections.Generic;
using System.Linq;
using Ektron.Cms;
namespace Ektron.SharedSource.FluentApi
{
public static class ContentDataExtensions
{
public static IEnumerable<T> AsContentType<T>(this IEnumerable<ContentData> source)
{
return source.Select(c => c.AsContentTy... | mit | C# |
c9ad3645ed4df4dd7fe2311a313c0599a88c60ba | Revert "ClickOnce - Load CefSharp.dll from parent directory if not in current directory" | Livit/CefSharp,Livit/CefSharp,Livit/CefSharp,Livit/CefSharp | CefSharp.BrowserSubprocess/Program.cs | CefSharp.BrowserSubprocess/Program.cs | // Copyright © 2013 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.Diagnostics;
using CefSharp.RenderProcess;
namespace CefSharp.BrowserSubprocess
{
/// <summary>
/// When implementing your own Bro... | // Copyright © 2013 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.Diagnostics;
using System.Runtime.CompilerServices;
using CefSharp.RenderProcess;
namespace CefSharp.BrowserSubprocess
{
/// <summary>... | bsd-3-clause | C# |
698c1a781fd149823e4b527efbdc302c4fba5329 | Set 202 code for removing remark | noordwind/Coolector,noordwind/Coolector.Api,noordwind/Collectively.Api,noordwind/Collectively.Api,noordwind/Coolector,noordwind/Coolector.Api | Coolector.Api/Modules/RemarkModule.cs | Coolector.Api/Modules/RemarkModule.cs | using System.Linq;
using Coolector.Api.Commands;
using Coolector.Api.Queries;
using Coolector.Api.Storages;
using Coolector.Api.Validation;
using Coolector.Common.Commands.Remarks;
using Coolector.Dto.Remarks;
namespace Coolector.Api.Modules
{
public class RemarkModule : ModuleBase
{
public RemarkModu... | using System.Linq;
using Coolector.Api.Commands;
using Coolector.Api.Queries;
using Coolector.Api.Storages;
using Coolector.Api.Validation;
using Coolector.Common.Commands.Remarks;
using Coolector.Dto.Remarks;
namespace Coolector.Api.Modules
{
public class RemarkModule : ModuleBase
{
public RemarkModu... | mit | C# |
4f0a239e4e55664f6d566a98d177284940412ef9 | Fix ComponentManager.Set not returning Option<T> | copygirl/EntitySystem | src/EntitySystem/ComponentManager.cs | src/EntitySystem/ComponentManager.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using EntitySystem.Collections;
using EntitySystem.Storage;
using EntitySystem.Utility;
namespace EntitySystem
{
public class ComponentManager
{
readonly TypedCollection<object> _typeHandlers = new TypedCollection<object>();
readonly Generi... | using System;
using System.Collections.Generic;
using System.Reflection;
using EntitySystem.Collections;
using EntitySystem.Storage;
using EntitySystem.Utility;
namespace EntitySystem
{
public class ComponentManager
{
readonly TypedCollection<object> _typeHandlers = new TypedCollection<object>();
readonly Generi... | mit | C# |
ac186a20c2d69f0d8c1ec69bbfaa6c5a79e4ddac | Enable custom layout by default | chrisntr/Xamarin-Glass-QR-Scanner,irfanah/Xamarin-Glass-QR-Scanner | QRScanExample/MainActivity.cs | QRScanExample/MainActivity.cs | using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Android.Glass.App;
using Android.Media;
using Android.Glass.Media;
using Android.Views.Animations;
namespace QRScanExample
{
[Activity (Label = "Scan Xamarin", Icon = "@dr... | using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Android.Glass.App;
using Android.Media;
using Android.Glass.Media;
using Android.Views.Animations;
namespace QRScanExample
{
[Activity (Label = "Scan Xamarin", Icon = "@dr... | apache-2.0 | C# |
370b31f772ab4e10ce5ed44d4206d01e04cc93ba | Update Activities/ManagePersonsPermissionCheckerTask.cs | Lombiq/Orchard-Training-Demo-Module,Lombiq/Orchard-Training-Demo-Module,Lombiq/Orchard-Training-Demo-Module | Activities/ManagePersonsPermissionCheckerTask.cs | Activities/ManagePersonsPermissionCheckerTask.cs | using Lombiq.TrainingDemo.Permissions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.Extensions.Localization;
using OrchardCore.Users.Models;
using OrchardCore.Users.Services;
using OrchardCore.Workflows.Abstractions.Models;
using OrchardCore.Workflows.Activities;
using OrchardCore.Workflows.Models;
using O... | using Lombiq.TrainingDemo.Permissions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.Extensions.Localization;
using OrchardCore.Users.Models;
using OrchardCore.Users.Services;
using OrchardCore.Workflows.Abstractions.Models;
using OrchardCore.Workflows.Activities;
using OrchardCore.Workflows.Models;
using O... | bsd-3-clause | C# |
919a4dd7110c37e160d88b23bec3f731674f916e | Add DisplayGraphics | MasterOfSomeTrades/CommentEverythingDotNetControlsExtended | CEControls/Display/DisplayGraphics.cs | CEControls/Display/DisplayGraphics.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace CEControls.Display {
public class DisplayGraphics {
private Control _canvas;
private List<DisplayGraphic> _listDisplayGraphic = new List<DisplayGraphic>();
private D... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace CEControls.Display {
public class DisplayGraphics {
/*private Control _canvas;
private DisplayGraphics() {
// --- Must call constructor that defines a Control as... | mit | C# |
7b8382c349e022f4fb8c5170b1dbb4237d1de83e | remove kestrel | smbc-digital/iag-contentapi | src/StockportContentApi/Program.cs | src/StockportContentApi/Program.cs | using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
namespace StockportContentApi
{
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
... | using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
namespace StockportContentApi
{
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
... | mit | C# |
4d28d0ac5f9188ca27321d0c62a2611e31d75d2b | increase version | tinohager/Nager.Date,tinohager/Nager.Date,brizuelal/Nager.Date,brizuelal/Nager.Date,tinohager/Nager.Date | Nager.Date/Properties/AssemblyInfo.cs | Nager.Date/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("Na... | 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("Na... | mit | C# |
ba667f2ceb0c823e510bc49d4c4f41252a257771 | Fix test on build server. | mthamil/PlantUMLStudio,mthamil/PlantUMLStudio | Tests.Unit/PlantUmlStudio/Configuration/SpecialFolderTokenReplacerTests.cs | Tests.Unit/PlantUmlStudio/Configuration/SpecialFolderTokenReplacerTests.cs | using System;
using PlantUmlStudio.Configuration;
using Xunit;
namespace Tests.Unit.PlantUmlStudio.Configuration
{
public class SpecialFolderTokenReplacerTests
{
[Theory]
[InlineData(@"<ProgramFilesX86>\test\path", @"C:\Program Files (x86)\test\path")]
[InlineData(@"<Windows>\test\path... | using System;
using PlantUmlStudio.Configuration;
using Xunit;
namespace Tests.Unit.PlantUmlStudio.Configuration
{
public class SpecialFolderTokenReplacerTests
{
[Theory]
[InlineData(@"<ProgramFilesX86>\test\path", @"C:\Program Files (x86)\test\path")]
[InlineData(@"<Windows>\test\path... | apache-2.0 | C# |
ddafbec518002fef82e383ab5555968201719072 | Attach "Invite" button to "Pending" users | JDawes-ScottLogic/voting-application,Generic-Voting-Application/voting-application,stevenhillcox/voting-application,Generic-Voting-Application/voting-application,JDawes-ScottLogic/voting-application,tpkelly/voting-application,JDawes-ScottLogic/voting-application,tpkelly/voting-application,tpkelly/voting-application,Gen... | VotingApplication/VotingApplication.Web/Views/Routes/ManageInvitees.cshtml | VotingApplication/VotingApplication.Web/Views/Routes/ManageInvitees.cshtml | <div ng-app="GVA.Creation" ng-controller="ManageInviteesController">
<div class="centered">
<h2>Poll Invitees</h2>
<h4>Email to Invite</h4>
<input id="new-invitee" name="new-invitee" ng-model="inviteString" ng-change="emailUpdated()" ng-trim="false" />
<span class="glyphicon glyphic... | <div ng-app="GVA.Creation" ng-controller="ManageInviteesController">
<div class="centered">
<h2>Poll Invitees</h2>
<h4>Email to Invite</h4>
<input id="new-invitee" name="new-invitee" ng-model="inviteString" ng-change="emailUpdated()" ng-trim="false" />
<span class="glyphicon glyphic... | apache-2.0 | C# |
c1cb3f85666e20acc4340f524d619dc9ad10e6cf | update vehicle dto [#135977713] | revaturelabs/revashare-svc-webapi | revashare-svc-webapi/revashare-svc-webapi.Logic/Models/VehicleDTO.cs | revashare-svc-webapi/revashare-svc-webapi.Logic/Models/VehicleDTO.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace revashare_svc_webapi.Logic.Models {
public class VehicleDTO {
public int Id { get; set; }
public int OwnerId { get; set; }
public string Make { get; set; }
public string M... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace revashare_svc_webapi.Logic.Models {
public class VehicleDTO {
}
}
| mit | C# |
2404cdc5f03ca3bb6551c5151dbd3daace72bfea | Update assembly version. | Si13n7/CoD2MPWindowed | src/Properties/AssemblyInfo.cs | src/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Call of Duty 2 Multiplayer (Windowed)")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Si13n7 Dev. ®")]
[assembly: AssemblyProduct("CoD2MP_w")]
[assembly: AssemblyCopyright(... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Call of Duty 2 Multiplayer (Windowed)")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Si13n7 Dev. ®")]
[assembly: AssemblyProduct("CoD2MP_w")]
[assembly: AssemblyCopyright(... | mit | C# |
97db2090b81ad45459334d2c628d06882e4803d5 | Debug Boards | avisuj/myeventurl,avisuj/myeventurl,avisuj/myeventurl | MyEventURL/Views/Boards/Delete.cshtml | MyEventURL/Views/Boards/Delete.cshtml | @model MyEventURL.Board
@{
ViewBag.Title = "Delete";
}
<h2>Delete</h2>
<h3>Are you sure you want to delete this?</h3>
<div>
<h4>Board</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.Created)
</dt>
<dd>
@Html.DisplayFor(... | @model MyEventURL.Models.Board
@{
ViewBag.Title = "Delete";
}
<h2>Delete</h2>
<h3>Are you sure you want to delete this?</h3>
<div>
<h4>Board</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.Created)
</dt>
<dd>
@Html.Disp... | mit | C# |
fe6789c8add14781e67f140f463d12a6d0cf30ff | Update program.cs | UnstableMutex/ANTFECControl | program.cs | program.cs | using ANT_Managed_Library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static byte[] networkKey = { 0xB9, 0xA5, 0x21, 0xFB, 0xBD, 0x72, 0xC3, 0x45 };
// static byte[] networkKey = { 0xE8, 0xE4, 0x21, 0x3... | using ANT_Managed_Library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static byte[] networkKey = { 0xB9, 0xA5, 0x21, 0xFB, 0xBD, 0x72, 0xC3, 0x45 };
// static byte[] networkKey = { 0xE8, 0xE4, 0x21, 0x3... | unlicense | C# |
550018dfadcf3b7c47a44b084834e7c560ffaad8 | add require to field Event | dpaluchSii/TODOMigrations,dpaluchSii/TODOMigrations,dpaluchSii/TODOMigrations | TODOMigrations/Models/Task.cs | TODOMigrations/Models/Task.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace TODOMigrations.Models
{
public class Task
{
public int TaskID { get; set; }
[Required(ErrorMessage = "Event is required.")]
public stri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace TODOMigrations.Models
{
public class Task
{
public int TaskID { get; set; }
public string Event { get; set; }
public string Where { get; set; }
public DateTime When { get; set; }
... | apache-2.0 | C# |
36891e1c5779491f74013a5e57839a27b104887d | Update CrlController.cs | nomailme/TestAuthority | source/TestAuthority.Host/Controllers/CrlController.cs | source/TestAuthority.Host/Controllers/CrlController.cs | using System.Net.Mime;
using System.Threading.Tasks;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using TestAuthority.Application.CrlBuilders;
using TestAuthority.Domain.CertificateConverters;
using TestAuthority.Domain.Services;
namespace TestAuthority.Host.Controllers;
/// <summary>
/// Provides functionality... | using System.Net.Mime;
using System.Threading.Tasks;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using TestAuthority.Application.CrlBuilders;
using TestAuthority.Domain.CertificateConverters;
using TestAuthority.Domain.Services;
namespace TestAuthority.Host.Controllers;
/// <summary>
/// Provides functionality... | mit | C# |
559c827dbf597b5ea6cf4d914b051b729d580f7d | Include original WebException when throwing new ApplicationException | jcvandan/XeroAPI.Net,TDaphneB/XeroAPI.Net,XeroAPI/XeroAPI.Net,MatthewSteeples/XeroAPI.Net | source/XeroApi/OAuth/Consumer/ConsumerRequestRunner.cs | source/XeroApi/OAuth/Consumer/ConsumerRequestRunner.cs | using System;
using System.Net;
namespace DevDefined.OAuth.Consumer
{
public interface IConsumerRequestRunner
{
IConsumerResponse Run(IConsumerRequest consumerRequest);
}
public class DefaultConsumerRequestRunner : IConsumerRequestRunner
{
public IConsumerResponse Run(IC... | using System;
using System.Net;
namespace DevDefined.OAuth.Consumer
{
public interface IConsumerRequestRunner
{
IConsumerResponse Run(IConsumerRequest consumerRequest);
}
public class DefaultConsumerRequestRunner : IConsumerRequestRunner
{
public IConsumerResponse Run(IC... | mit | C# |
a894d10872e709edbcbd3c7e8a330f1e9bebb4bd | Add proper po formatting | pdfforge/translatable | TranslationExport/Exporter.cs | TranslationExport/Exporter.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Translation;
using TranslationTest;
namespace TranslationExport
{
class Exporter
{
// TODO Hack to a... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Translation;
using TranslationTest;
namespace TranslationExport
{
class Exporter
{
// TODO Hack to actually load assembly
private ... | mit | C# |
a3fe7d9e377bd01313406c70c33ef39e22bb2226 | change DelegateValidationRule .ctor() | tibel/Caliburn.Light | src/Caliburn.Core/Validation/DelegateValidationRule.cs | src/Caliburn.Core/Validation/DelegateValidationRule.cs | using System;
using System.Globalization;
namespace Caliburn.Light
{
/// <summary>
/// Determines whether or not an object of type <typeparamref name="T"/> satisfies a rule and
/// provides an error if it does not.
/// </summary>
/// <typeparam name="T">The type of the object the rule applies to.<... | using System;
using System.Globalization;
namespace Caliburn.Light
{
/// <summary>
/// Determines whether or not an object of type <typeparamref name="T"/> satisfies a rule and
/// provides an error if it does not.
/// </summary>
/// <typeparam name="T">The type of the object the rule applies to.<... | mit | C# |
4c74897bfe91f494a325e2a55918d4424bfcdeae | Add Curry methods | sakapon/KLibrary-Labs | CoreLab/Core/Pipeline/FuncHelper.cs | CoreLab/Core/Pipeline/FuncHelper.cs | using System;
namespace KLibrary.Labs.Pipeline
{
public static class FuncHelper
{
public static Func<T1, T3> Compose<T1, T2, T3>(this Func<T1, T2> f1, Func<T2, T3> f2)
{
return p1 => f2(f1(p1));
}
// カリー化
public static Func<T1, Func<T2, TResult>> Curry<T1,... | using System;
namespace KLibrary.Labs.Pipeline
{
public static class FuncHelper
{
public static Func<T1, T3> Compose<T1, T2, T3>(this Func<T1, T2> f1, Func<T2, T3> f2)
{
return x => f2(f1(x));
}
}
}
| mit | C# |
b29361f7e9e243dd1c09e9851f89223dd9ec5e41 | Update version number. | ronnymgm/csla-light,JasonBock/csla,ronnymgm/csla-light,rockfordlhotka/csla,BrettJaner/csla,MarimerLLC/csla,BrettJaner/csla,jonnybee/csla,BrettJaner/csla,ronnymgm/csla-light,JasonBock/csla,MarimerLLC/csla,MarimerLLC/csla,jonnybee/csla,rockfordlhotka/csla,JasonBock/csla,rockfordlhotka/csla,jonnybee/csla | cslacs/Csla/Properties/AssemblyInfo.cs | cslacs/Csla/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("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("CS... | mit | C# |
b92d65747051e69f5f238046d21065d8013725cc | Fix RxCounter example | tnakamura/ReduxSharp | examples/RxCounter/MainViewModel.cs | examples/RxCounter/MainViewModel.cs | using System;
using System.ComponentModel;
using System.Reactive.Linq;
namespace RxCounter
{
public class MainViewModel : INotifyPropertyChanged
{
readonly IDisposable _subscription;
public MainViewModel()
{
_subscription = App.Store
.Select(s => s.Counter)... | using System;
using System.ComponentModel;
namespace RxCounter
{
public class MainViewModel : INotifyPropertyChanged
{
public MainViewModel()
{
App.Store.Subscribe(state =>
{
Count = state.Counter.Count;
});
}
int count = 0;
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.