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 |
|---|---|---|---|---|---|---|---|---|
4b8bb440ab68f692fcbfba6648b7d189f6bd0505 | add "this" in constructor | ivayloivanof/C-Sharp-Chat-Programm,Marc2009/C-Sharp-Chat-Programm | Client/ChatClient/ChatClient/Client.cs | Client/ChatClient/ChatClient/Client.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ChatClient
{
public class Client
{
public Server connectedServer;
public string LoginName;
public string LoginPwd;
public string SrvPwd;
public ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ChatClient
{
public class Client
{
public Server connectedServer;
public string LoginName;
public string LoginPwd;
public string SrvPwd;
public ... | unlicense | C# |
b99834ccc61a464290021dee7da6f3b9e4618bb5 | Update BoolConverters.cs | SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,wieslawsoltes/Perspex,AvaloniaUI/Avalonia,Perspex/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,jkoritzinsky/Avalonia,akrisiun/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Perspex,jkoritzinsky/Avalonia,AvaloniaUI/Avalonia,Av... | src/Avalonia.Base/Data/Converters/BoolConverters.cs | src/Avalonia.Base/Data/Converters/BoolConverters.cs | using System.Linq;
namespace Avalonia.Data.Converters
{
/// <summary>
/// Provides a set of useful <see cref="IValueConverter"/>s for working with bool values.
/// </summary>
public static class BoolConverters
{
/// <summary>
/// A multi-value converter that returns true if all inpu... | using System.Linq;
namespace Avalonia.Data.Converters
{
/// <summary>
/// Provides a set of useful <see cref="IValueConverter"/>s for working with string values.
/// </summary>
public static class BoolConverters
{
/// <summary>
/// A multi-value converter that returns true if all in... | mit | C# |
f225445b69b515d0da07cd15dd313406f3d02990 | Allow to run build even if git repo informations are not available | Abc-Arbitrage/Zebus,biarne-a/Zebus | build/scripts/utilities.cake | build/scripts/utilities.cake | #tool "nuget:?package=GitVersion.CommandLine"
#addin "Cake.Yaml"
public class ContextInfo
{
public string NugetVersion { get; set; }
public string AssemblyVersion { get; set; }
public GitVersion Git { get; set; }
public string BuildVersion
{
get { return NugetVersion + "-" + Git.Sha; }
... | #tool "nuget:?package=GitVersion.CommandLine"
#addin "Cake.Yaml"
public class ContextInfo
{
public string NugetVersion { get; set; }
public string AssemblyVersion { get; set; }
public GitVersion Git { get; set; }
public string BuildVersion
{
get { return NugetVersion + "-" + Git.Sha; }
... | mit | C# |
c0e139a152fcea95d3509edbe4fe258913e09c2f | Add null checks to BranchCollection | GitTools/GitVersion,asbjornu/GitVersion,asbjornu/GitVersion,gep13/GitVersion,GitTools/GitVersion,gep13/GitVersion | src/GitVersion.LibGit2Sharp/Git/BranchCollection.cs | src/GitVersion.LibGit2Sharp/Git/BranchCollection.cs | using GitVersion.Extensions;
using LibGit2Sharp;
namespace GitVersion;
internal sealed class BranchCollection : IBranchCollection
{
private readonly LibGit2Sharp.BranchCollection innerCollection;
internal BranchCollection(LibGit2Sharp.BranchCollection collection)
=> this.innerCollection = collection.... | namespace GitVersion;
internal sealed class BranchCollection : IBranchCollection
{
private readonly LibGit2Sharp.BranchCollection innerCollection;
internal BranchCollection(LibGit2Sharp.BranchCollection collection) => this.innerCollection = collection;
public IEnumerator<IBranch> GetEnumerator() => this.i... | mit | C# |
b0bf3e3d0652fdd330f11ec55d9057eb16d7b11c | Rename Initial Class | ajesusflores/IronMatrix | IronMatrix/IronMatrix.cs | IronMatrix/IronMatrix.cs | using System;
namespace IronMatrix
{
public class Vector
{
public int Size { get; set; }
}
}
| using System;
namespace IronMatrix
{
public class Class1
{
}
}
| mit | C# |
baa55351b5ed826c5c17279432e2ee49fb4b167e | make sure that exception will not break app completely | strotz/pustota,strotz/pustota,strotz/pustota | src/Pustota.Maven/Validation/RepositoryValidator.cs | src/Pustota.Maven/Validation/RepositoryValidator.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Pustota.Maven.Validation
{
class RepositoryValidator
{
private readonly IProjectValidationFactory _factory;
internal RepositoryValidator(IProjectValidationFactory factory)
{
_factory = factory;
}
public IEnume... | using System.Collections.Generic;
using System.Linq;
namespace Pustota.Maven.Validation
{
class RepositoryValidator
{
private readonly IProjectValidationFactory _factory;
internal RepositoryValidator(IProjectValidationFactory factory)
{
_factory = factory;
}
public IEnumerable<IProjectV... | mit | C# |
c8d73a9a4560309e0dee20ccbc67618450f9f606 | Add empty _clear method (#221) | IronLanguages/ironpython3,IronLanguages/ironpython3,IronLanguages/ironpython3,IronLanguages/ironpython3,IronLanguages/ironpython3,IronLanguages/ironpython3 | Src/IronPython.Modules/atexit.cs | Src/IronPython.Modules/atexit.cs | using System;
using System.Collections.Generic;
using Microsoft.Scripting;
using IronPython.Runtime;
[assembly: PythonModule("atexit", typeof(IronPython.Modules.PythonAtExit))]
namespace IronPython.Modules
{
public static class PythonAtExit
{
public static void register(object func, [ParamDictionary... | using System;
using System.Collections.Generic;
using Microsoft.Scripting;
using IronPython.Runtime;
[assembly: PythonModule("atexit", typeof(IronPython.Modules.PythonAtExit))]
namespace IronPython.Modules
{
public static class PythonAtExit
{
public static void register(object func, [ParamDictionary... | apache-2.0 | C# |
217c5774a1c148c66489346fdda63de87665a7ce | Add some code to dump known colors | KirillOsenkov/ColorTools,KirillOsenkov/ColorTools,KirillOsenkov/ColorTools | src/ColorTools/Program.cs | src/ColorTools/Program.cs | using System;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
class Program
{
[STAThread]
static void Main(string[] args)
{
var app = new Application();
var window = new Window(... | using System;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
class Program
{
[STAThread]
static void Main(string[] args)
{
var app = new Application();
var window = new Window();
window.W... | mit | C# |
9898cc174f8e07347dc2d44c3a2cdf63cf823ccf | disable reboot upon exit (shutdown) | H4ssi/FixPeskyWindowsUpdateReboot | pwu/Program.cs | pwu/Program.cs | using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace pwu
{
class Program
{
static void Main(string[] args)
{
HiddenForm f = new HiddenForm();
f.onStart ... | using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace pwu
{
class Program
{
static void Main(string[] args)
{
HiddenForm f = new HiddenForm();
f.onStart ... | isc | C# |
66af1776f1bbdbe3770634db9ee87adcdec55136 | Format PermissionsCollection.cs and slightly improve code. | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW | src/MitternachtBot/Modules/Permissions/Common/PermissionsCollection.cs | src/MitternachtBot/Modules/Permissions/Common/PermissionsCollection.cs | using System;
using System.Collections.Generic;
using Mitternacht.Common;
using Mitternacht.Common.Collections;
namespace Mitternacht.Modules.Permissions.Common {
public class PermissionsCollection<T> : IndexedCollection<T> where T : class, IIndexed {
private readonly object _localLocker = new object();
public P... | using System;
using System.Collections.Generic;
using Mitternacht.Common;
using Mitternacht.Common.Collections;
namespace Mitternacht.Modules.Permissions.Common {
public class PermissionsCollection<T> : IndexedCollection<T> where T : class, IIndexed {
private readonly object _localLocker = new object();
public Pe... | mit | C# |
3f4fd0caeb00f6d1d52e0062273f72cde62fdd9c | Update AssemblyInfo | generik0/Smooth.IoC.Dapper.Repository.UnitOfWork,generik0/Smooth.IoC.Dapper.Repository.UnitOfWork | src/Smooth.IoC.Dapper.Repository.UnitOfWork/Properties/AssemblyInfo.cs | src/Smooth.IoC.Dapper.Repository.UnitOfWork/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: AssemblyConfiguration("")]
[assembly: AssemblyCopyright("... | 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: AssemblyConfigurat... | mit | C# |
112330a50fb537ab831448b45ab34fcc1076117c | Add XML documentation | akamud/wilson-score-csharp | src/WilsonScore/Wilson.cs | src/WilsonScore/Wilson.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace WilsonScore
{
public static class Wilson
{
/// <summary>
/// Calculates the Wilson Score based on the total votes and upvotes
/// </summary>
/// <param name="up">Number of upvotes</param>
/// <... | using System;
using System.Collections.Generic;
using System.Text;
namespace WilsonScore
{
public static class Wilson
{
public static double Score(double up, double total, double confidence = 1.644853)
{
/** Based on http://www.evanmiller.org/how-not-to-sort-by-average-rating.html ... | mit | C# |
abaa85ffcf7a8425510365be9352530adb4d935d | Change username refactoring | noordwind/Coolector,noordwind/Coolector.Api,noordwind/Collectively.Api,noordwind/Collectively.Api,noordwind/Coolector.Api,noordwind/Coolector | Coolector.Api/Modules/AccountModule.cs | Coolector.Api/Modules/AccountModule.cs | using Coolector.Api.Commands;
using Coolector.Api.Queries;
using Coolector.Api.Storages;
using Coolector.Api.Validation;
using Coolector.Services.Users.Shared.Commands;
using Coolector.Services.Users.Shared.Dto;
namespace Coolector.Api.Modules
{
public class AccountModule : ModuleBase
{
public Account... | using Coolector.Api.Commands;
using Coolector.Api.Queries;
using Coolector.Api.Storages;
using Coolector.Api.Validation;
using Coolector.Services.Users.Shared.Commands;
using Coolector.Services.Users.Shared.Dto;
namespace Coolector.Api.Modules
{
public class AccountModule : ModuleBase
{
public Account... | mit | C# |
c456ef9118356057e2e917420c92113535b5550d | Fix namespace | lances101/Wox,Wox-launcher/Wox,qianlifeng/Wox,qianlifeng/Wox,qianlifeng/Wox,Wox-launcher/Wox,lances101/Wox | Wox.Infrastructure/Logger/Log.cs | Wox.Infrastructure/Logger/Log.cs | using NLog;
using Wox.Infrastructure.Exception;
namespace Wox.Infrastructure.Logger
{
public class Log
{
private static NLog.Logger logger = LogManager.GetCurrentClassLogger();
public static void Error(System.Exception e)
{
#if DEBUG
throw e;
#else
logger.Error... | using NLog;
namespace Wox.Infrastructure.Logger
{
public class Log
{
private static NLog.Logger logger = LogManager.GetCurrentClassLogger();
public static void Error(System.Exception e)
{
#if DEBUG
throw e;
#else
logger.Error(e.Message + "\r\n" + e.StackTrace);... | mit | C# |
5542dc802e9a7b718093cad4faf8fab22ac48ebe | Make PoEItemList implement IReadOnlyList<string> | jcmoyer/Yeena | Yeena/PathOfExile/PoEItemList.cs | Yeena/PathOfExile/PoEItemList.cs | // Copyright 2013 J.C. Moyer
//
// 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 agreed to ... | // Copyright 2013 J.C. Moyer
//
// 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 agreed to ... | apache-2.0 | C# |
bf1cd3aa0b484e997c888c43cf5481beac645f25 | update testing for mesh error minimisation changes | ruarai/Trigrad,ruarai/Trigrad | TrigradTesting/Program.cs | TrigradTesting/Program.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using Trigrad;
using Trigrad.ColorGraders;
using Trigrad.DataTypes;
using Trigrad.DataTypes.Compression;
namespace TrigradTesting
{
class Program
{
static void Main(string[] args)
{
... | using System;
using System.Drawing;
using Trigrad;
using Trigrad.ColorGraders;
using Trigrad.DataTypes;
namespace TrigradTesting
{
class Program
{
static void Main(string[] args)
{
Bitmap inputBitmap = new Bitmap("tests\\Tulips.jpg");
FrequencyTable table = new Frequenc... | mit | C# |
80c03aa7ffc6cfddaef97543c01fdfec8bd7d4de | Revert "Revert "auswertung von tags gebessert"" | humsp/uebersetzerbauSWP | Twee2Z/Analyzer/TweeAnalyzer.cs | Twee2Z/Analyzer/TweeAnalyzer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using Antlr4.Runtime;
using Antlr4.Runtime.Misc;
using Antlr4.Runtime.Tree;
namespace Twee2Z.Analyzer
{
public static class TweeAnalyzer
{
public static ObjectTr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using Antlr4.Runtime;
using Antlr4.Runtime.Misc;
using Antlr4.Runtime.Tree;
namespace Twee2Z.Analyzer
{
public static class TweeAnalyzer
{
public static ObjectT... | mit | C# |
cb3a9345bdaed5f9dcc6c30665ee1fb273c061ee | Load from environment variables if not in config | Red-Folder/docs.functions | tests/DocFunctions.Integration/DocFunctionsSteps.cs | tests/DocFunctions.Integration/DocFunctionsSteps.cs | using DocFunctions.Integration.Helpers;
using System;
using System.Configuration;
using TechTalk.SpecFlow;
using Tests.Common.Helpers;
namespace DocFunctions.Integration
{
[Binding]
public class DocFunctionsSteps
{
[Given(@"I don't already have a blog with name of the current date and time")]
... | using DocFunctions.Integration.Helpers;
using System;
using System.Configuration;
using TechTalk.SpecFlow;
using Tests.Common.Helpers;
namespace DocFunctions.Integration
{
[Binding]
public class DocFunctionsSteps
{
[Given(@"I don't already have a blog with name of the current date and time")]
... | mit | C# |
67ebb12837449b067fe95feb61d3d805449c8e68 | Build fix | InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform | InfinniPlatform.Utils/ConfigManager.cs | InfinniPlatform.Utils/ConfigManager.cs | using System;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Linq;
using InfinniPlatform.Api.Hosting;
using InfinniPlatform.MetadataDesigner.Views.Exchange;
using InfinniPlatform.MetadataDesigner.Views.Update;
using InfinniPlatform.Sdk.Api;
using Newtonsoft.Json;
using Newtonsoft... | using System;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Linq;
using InfinniPlatform.Api.Hosting;
using InfinniPlatform.MetadataDesigner.Views.Exchange;
using InfinniPlatform.MetadataDesigner.Views.Update;
using InfinniPlatform.Sdk.Api;
using Newtonsoft.Json;
using Newtonsoft.J... | agpl-3.0 | C# |
e089806577e0afc70eb2f234eee4ea264d44c04e | Fix to ensure Delta start time is reset when storage is re-created | Pinselohrkater/ef_app-backend-dotnet_core,Pinselohrkater/ef_app-backend-dotnet_core,eurofurence/ef-app_backend-dotnet-core,eurofurence/ef-app_backend-dotnet-core | src/Eurofurence.App.Server.Services/Storage/StorageService.cs | src/Eurofurence.App.Server.Services/Storage/StorageService.cs | using System;
using System.Threading.Tasks;
using Eurofurence.App.Domain.Model.Abstractions;
using Eurofurence.App.Domain.Model.Sync;
using Eurofurence.App.Server.Services.Abstractions;
namespace Eurofurence.App.Server.Services.Storage
{
public class StorageService<T> : IStorageService
{
private reado... | using System;
using System.Threading.Tasks;
using Eurofurence.App.Domain.Model.Abstractions;
using Eurofurence.App.Domain.Model.Sync;
using Eurofurence.App.Server.Services.Abstractions;
namespace Eurofurence.App.Server.Services.Storage
{
public class StorageService<T> : IStorageService
{
private reado... | mit | C# |
bc4cb0ef3288ccd15211ef3ef5043cea7915285a | fix for #25 - removed reflection only assembly loading | uComponents/nuPickers,abjerner/nuPickers,abjerner/nuPickers,pgregorynz/nuPickers,iahdevelop/nuPickers,pgregorynz/nuPickers,iahdevelop/nuPickers,LottePitcher/nuPickers,pgregorynz/nuPickers,abjerner/nuPickers,pgregorynz/nuPickers,uComponents/nuPickers,JimBobSquarePants/nuPickers,JimBobSquarePants/nuPickers,iahdevelop/nuP... | source/nuPickers/Helper.cs | source/nuPickers/Helper.cs |
namespace nuPickers
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Web.Hosting;
internal static class Helper
{
internal static IEnumerable<string> GetAssemblyNames()
{
List<string>... |
namespace nuPickers
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Hosting;
using umbraco;
internal static class Helper
{
/// <summary>
///
/// </summary... | mit | C# |
d691151fb3dbcec37453109c958b17073ef5893a | Add empty list test to Serialization.cs | rschacherl/minecraft.client,bleroy/minecraft.client,Petermarcu/minecraft.client | Minecraft.Client.Test/Serialization.cs | Minecraft.Client.Test/Serialization.cs | using System.Collections;
using Xunit;
namespace Decent.Minecraft.Client.Test
{
public class Serialization
{
[Theory,
InlineData(new object[] { }, ""),
InlineData(new[] { 1, 2, 3 }, "1,2,3"),
InlineData("foo", "foo"),
InlineData(new object[] { 1, "foo", ... | using System.Collections;
using Xunit;
namespace Decent.Minecraft.Client.Test
{
public class Serialization
{
[Theory,
InlineData(new[] { 1, 2, 3 }, "1,2,3"),
InlineData("foo", "foo"),
InlineData(new object[] { 1, "foo", 2.3 }, "1,foo,2.3"),
InlineData(ne... | mit | C# |
6b5d50b690f845472a9d52771b3a2227c620e702 | Update AssemblyInfo.cs | Worthy1/EBScript | Fiddlesticks/Fiddlesticks/Properties/AssemblyInfo.cs | Fiddlesticks/Fiddlesticks/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | apache-2.0 | C# |
953f7a999556611fa20fb2f57c3552271f4becd6 | Revert "Added place to output products" | ckuhn203/VendingMachineKata | VendingMachine/VendingMachine.Core/VendingMachine.cs | VendingMachine/VendingMachine.Core/VendingMachine.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Vending.Core
{
public class VendingMachine
{
private readonly List<Coin> _coins = new List<Coin>();
private readonly... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Vending.Core
{
public class VendingMachine
{
private readonly List<Coin> _coins = new List<Coin>();
private readonly... | mit | C# |
d9368c6570bb7102fbc21ba793461aed37f96a78 | fix deserialization | ArsenShnurkov/BitSharp | BitSharp.Storage.Esent/BlockRollbackStorage.cs | BitSharp.Storage.Esent/BlockRollbackStorage.cs | using BitSharp.Common;
using BitSharp.Common.ExtensionMethods;
using BitSharp.Storage;
using BitSharp.Network;
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BitSharp.Data;
using System.D... | using BitSharp.Common;
using BitSharp.Common.ExtensionMethods;
using BitSharp.Storage;
using BitSharp.Network;
using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BitSharp.Data;
using System.D... | unlicense | C# |
5329fc0d43a29c282dc1bfd1071e04e0d984577c | Update scene path in AutomationManager | virneo/unity3d-opencog-game,opencog/unity3d-opencog-game,opencog/unity3d-opencog-game,opencog/unity3d-opencog-game,virneo/unity3d-opencog-game,virneo/unity3d-opencog-game | Assets/Editor/AutomationManager/AutomationManager.cs | Assets/Editor/AutomationManager/AutomationManager.cs | using UnityEditor;
/// <summary>
/// Automation manager for player building and unit testing.
/// Example commandline usage:
/// "C:\Program Files (x86)\Unity\Editor\Unity.exe" -batchMode -quit -nographics -projectPath C:\project -executeMethod AutomationManager.BuildAll
/// </summary>
public class AutomationManager
{... | using UnityEditor;
/// <summary>
/// Automation manager for player building and unit testing.
/// Example commandline usage:
/// "C:\Program Files (x86)\Unity\Editor\Unity.exe" -batchMode -quit -nographics -projectPath C:\project -executeMethod AutomationManager.BuildAll
/// </summary>
public class AutomationManager
{... | agpl-3.0 | C# |
bdbc8eb326187ae9322125b48310b7a48591e7d1 | Update version to 0.4.0 | elcattivo/CloudFlareUtilities | CloudFlareUtilities/Properties/AssemblyInfo.cs | CloudFlareUtilities/Properties/AssemblyInfo.cs | using System;
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 ... | using System;
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 ... | mit | C# |
1bf5903cd63cc03b8d5c804e3c908da76c185fdd | Add Create method to SpectrumCycling system effect | WolfspiritM/Colore,CoraleStudios/Colore | Corale.Colore/Razer/Effects/SpectrumCycling.cs | Corale.Colore/Razer/Effects/SpectrumCycling.cs | // <copyright file="SpectrumCycling.cs" company="Corale">
// Copyright © 2015-2016 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software w... | // <copyright file="SpectrumCycling.cs" company="Corale">
// Copyright © 2015-2016 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software w... | mit | C# |
cd0dba1e89fa2aeb7e58456e855949f811e22125 | Add [HttpPost] | fmassaretto/formacao-talentos,fmassaretto/formacao-talentos,fmassaretto/formacao-talentos | Fatec.Treinamento.Web/Controllers/CursoController.cs | Fatec.Treinamento.Web/Controllers/CursoController.cs | using Fatec.Treinamento.Data.Repositories;
using Fatec.Treinamento.Model.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Fatec.Treinamento.Web.Controllers
{
public class CursoController : Controller
{
// GET: Curso
[Http... | using Fatec.Treinamento.Data.Repositories;
using Fatec.Treinamento.Model.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Fatec.Treinamento.Web.Controllers
{
public class CursoController : Controller
{
// GET: Curso
publi... | apache-2.0 | C# |
4daa29179aa6c07e5f32fb92ace14956a6d6fdf9 | add Comments method to ImagesController | ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth,ramzzzay/GalleryMVC_With_Auth | GalleryMVC_With_Auth/Controllers/ImagesController.cs | GalleryMVC_With_Auth/Controllers/ImagesController.cs | using System.Data.Entity.Migrations;
using System.Linq;
using System.Web.Mvc;
using GalleryMVC_With_Auth.CustomFilters;
using GalleryMVC_With_Auth.Domain.Abstract;
using GalleryMVC_With_Auth.Domain.Entities;
using GalleryMVC_With_Auth.Models;
using GalleryMVC_With_Auth.Resources;
using Microsoft.AspNet.Identity;
name... | using System.Linq;
using System.Web.Mvc;
using GalleryMVC_With_Auth.Domain.Abstract;
namespace GalleryMVC_With_Auth.Controllers
{
public class ImagesController : Controller
{
private readonly IPicturesRepository _repository;
public ImagesController(IPicturesRepository repository)
{
... | apache-2.0 | C# |
63c8a2ee1d183f10121d936b0f23f5e44ff276d6 | Increase JetBrains.ReSharper.CommandLineTools version Fixes #145 - DupFinder and InspectCode tasks for not recognise V15.3 of Visual Studio and give warnings in log. | cake-contrib/Cake.Recipe,cake-contrib/Cake.Recipe | Cake.Recipe/Content/tools.cake | Cake.Recipe/Content/tools.cake | ///////////////////////////////////////////////////////////////////////////////
// TOOLS
///////////////////////////////////////////////////////////////////////////////
private const string CodecovTool = "#tool nuget:?package=codecov&version=1.0.1";
private const string CoverallsTool = "#tool nuget:?package=coveralls.... | ///////////////////////////////////////////////////////////////////////////////
// TOOLS
///////////////////////////////////////////////////////////////////////////////
private const string CodecovTool = "#tool nuget:?package=codecov&version=1.0.1";
private const string CoverallsTool = "#tool nuget:?package=coveralls.... | mit | C# |
c189b6de6c2505e190de16c191bb66feae33394a | Update src/Workspaces/Core/Portable/Diagnostics/DiagnosticMode.cs | dotnet/roslyn,sharwell/roslyn,AlekseyTs/roslyn,wvdd007/roslyn,panopticoncentral/roslyn,panopticoncentral/roslyn,tmat/roslyn,diryboy/roslyn,dotnet/roslyn,stephentoub/roslyn,physhi/roslyn,bartdesmet/roslyn,gafter/roslyn,panopticoncentral/roslyn,mavasani/roslyn,stephentoub/roslyn,KevinRansom/roslyn,weltkante/roslyn,tmat/r... | src/Workspaces/Core/Portable/Diagnostics/DiagnosticMode.cs | src/Workspaces/Core/Portable/Diagnostics/DiagnosticMode.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.
namespace Microsoft.CodeAnalysis.Diagnostics
{
internal enum DiagnosticMode
{
/// <summary>
... | // 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.
namespace Microsoft.CodeAnalysis.Diagnostics
{
internal enum DiagnosticMode
{
/// <summary>
... | mit | C# |
226e8490fdd5f7f494183eb943d924782a722326 | Add NumberOfStickersSold | jdt/StickEmApp | Source/StickEmApp/StickEmApp/Entities/SalesResult.cs | Source/StickEmApp/StickEmApp/Entities/SalesResult.cs | namespace StickEmApp.Entities
{
public class SalesResult
{
public SalesResult()
{
Status = ResultType.Exact;
Difference = new Money(0);
}
public ResultType Status { get; set; }
public Money Difference { get; set; }
public int NumberOfStic... | namespace StickEmApp.Entities
{
public class SalesResult
{
public SalesResult()
{
Status = ResultType.Exact;
Difference = new Money(0);
}
public ResultType Status { get; set; }
public Money Difference { get; set; }
}
} | mit | C# |
e0939926a09c2bea2618607b9b2cc4fd26570aa7 | fix scope mode switching | corvusalba/my-little-lispy,corvusalba/my-little-lispy | src/CorvusAlba.MyLittleLispy.Runtime/Continuation.cs | src/CorvusAlba.MyLittleLispy.Runtime/Continuation.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace CorvusAlba.MyLittleLispy.Runtime
{
public class Continuation : Value
{
private IEnumerable<Scope> _scopes;
private bool _lexicalScopeMode;
public Node Body { get; private set; }
public Continuation(Context context, Node body, b... | using System;
using System.Collections.Generic;
using System.Linq;
namespace CorvusAlba.MyLittleLispy.Runtime
{
public class Continuation : Value
{
private IEnumerable<Scope> _scopes;
private bool _lexicalScopeMode;
public Node Body { get; private set; }
public Continuation(Context context, Node body, b... | mit | C# |
73ee3101a0591312a5ea525877d99c66e09705d0 | Rename test for consistency. | drewnoakes/dasher | Dasher.Tests/RoundTripTests.cs | Dasher.Tests/RoundTripTests.cs | using System.IO;
using Xunit;
namespace Dasher.Tests
{
public class RoundTripTests
{
[Fact]
public void Class()
{
var after = RoundTrip(new UserScore("Bob", 123));
Assert.Equal("Bob", after.Name);
Assert.Equal(123, after.Score);
}
[... | using System.IO;
using Xunit;
namespace Dasher.Tests
{
public class RoundTripTests
{
[Fact]
public void Class()
{
var after = RoundTrip(new UserScore("Bob", 123));
Assert.Equal("Bob", after.Name);
Assert.Equal(123, after.Score);
}
[... | apache-2.0 | C# |
d092fa9bb0eda5d111f66f4635ae8befd53668a7 | Update the links to our docs and API ref page (#10670) | killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MRTK/Core/Inspectors/MixedRealityToolkitHelpLinks.cs | Assets/MRTK/Core/Inspectors/MixedRealityToolkitHelpLinks.cs | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEditor;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Editor
{
/// <summary>
/// Creates menu items to show users how to get help
/// </summary>
public class MixedRealityToolkitHelpLinks : MonoBehaviour... | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEditor;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Editor
{
/// <summary>
/// Creates menu items to show users how to get help
/// </summary>
public class MixedRealityToolkitHelpLinks : MonoBehaviour... | mit | C# |
6110f556302d7cded305e238db57cedaea99bf0d | Fix display of color code | ButchersBoy/MaterialDesignInXamlToolkit,ButchersBoy/MaterialDesignInXamlToolkit,ButchersBoy/MaterialDesignInXamlToolkit | MainDemo.Wpf/Converters/BrushToHexConverter.cs | MainDemo.Wpf/Converters/BrushToHexConverter.cs | using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;
namespace MaterialDesignDemo.Converters
{
public class BrushToHexConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
... | using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;
namespace MaterialDesignDemo.Converters
{
public class BrushToHexConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
... | mit | C# |
645c65037a5552afb8362aeddd1f983186ec2178 | Fix buttons in Article | Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog,Team-Code-Ninjas/SpaceBlog | SpaceBlog/SpaceBlog/Views/Article/Index.cshtml | SpaceBlog/SpaceBlog/Views/Article/Index.cshtml | @model IEnumerable<SpaceBlog.Models.Article>
@using SpaceBlog.Utilities;
@{
ViewBag.Title = "Articles";
}
<div class="container">
<h2>@ViewBag.Title</h2>
@Html.ActionLink("Create New Article", "Create", new { area = "" }, new { @class = "btn btn-primary" })
<table class="table">
<tr>
... | @model IEnumerable<SpaceBlog.Models.Article>
@using SpaceBlog.Utilities;
@{
ViewBag.Title = "Articles";
}
<div class="container">
<h2>@ViewBag.Title</h2>
@Html.ActionLink("Create New Article", "Create", new { area = "" }, new { @class = "btn btn-primary" })
<table class="table">
<tr>
... | mit | C# |
3c40dac5c4fcb5e9d81603df9b83cee231471682 | Bump version to 3.2.4.0. | GoogleCloudPlatform/compute-image-windows,adjackura/compute-image-windows,adjackura/compute-image-windows,illfelder/compute-image-windows,ning-yang/compute-image-windows,illfelder/compute-image-windows,GoogleCloudPlatform/compute-image-windows,ning-yang/compute-image-windows | agent/Common/Properties/VersionInfo.cs | agent/Common/Properties/VersionInfo.cs | /*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | C# |
cd6955d4ede974436cfbe8ec8cd161411c006758 | Fix comet spawning patch | gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer | LmpClient/Harmony/ScenarioDiscoverableObjects_SpawnComet.cs | LmpClient/Harmony/ScenarioDiscoverableObjects_SpawnComet.cs | using Harmony;
using LmpClient.Systems.AsteroidComet;
using LmpClient.Systems.Lock;
using LmpClient.Systems.SettingsSys;
using LmpCommon.Enums;
using System;
// ReSharper disable All
namespace LmpClient.Harmony
{
/// <summary>
/// This harmony patch is intended to skip the spawn of a comet if we don't have t... | using Harmony;
using LmpClient.Systems.AsteroidComet;
using LmpClient.Systems.Lock;
using LmpClient.Systems.SettingsSys;
using LmpCommon.Enums;
// ReSharper disable All
namespace LmpClient.Harmony
{
/// <summary>
/// This harmony patch is intended to skip the spawn of a comet if we don't have the lock or the... | mit | C# |
a80cc044ebc8d1de62a83a4a1a482ec01c58237f | FIX typo in OWLOntologyModelLoader | mdesalvo/RDFSharp.Semantics | RDFSharp.Semantics/Ontology/Model/OWLOntologyModelLoader.cs | RDFSharp.Semantics/Ontology/Model/OWLOntologyModelLoader.cs | /*
Copyright 2012-2022 Marco De Salvo
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 agreed to... | /*
Copyright 2012-2022 Marco De Salvo
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 agreed to... | apache-2.0 | C# |
cf2fa24aaf8e211d2917fb1ee34288ac8e1f60ed | Use correct type to load config from subsystem | MarimerLLC/csla,JasonBock/csla,rockfordlhotka/csla,JasonBock/csla,rockfordlhotka/csla,rockfordlhotka/csla,MarimerLLC/csla,JasonBock/csla,MarimerLLC/csla | Source/Csla.Shared/Configuration/ConfigurationExtensions.cs | Source/Csla.Shared/Configuration/ConfigurationExtensions.cs | #if NETSTANDARD2_0
//-----------------------------------------------------------------------
// <copyright file="ConfigurationExtensions.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: https://cslanet.com
// </copyright>
// <summary>Implement extension methods for .NET... | #if NETSTANDARD2_0
//-----------------------------------------------------------------------
// <copyright file="ConfigurationExtensions.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: https://cslanet.com
// </copyright>
// <summary>Implement extension methods for .NET... | mit | C# |
6b5437a128ba7896fcb5317e6bf849e09bced314 | Remove unnecessary using statements. | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform | src/CompetitionPlatform/Data/AzureRepositories/Settings/BaseSettings.cs | src/CompetitionPlatform/Data/AzureRepositories/Settings/BaseSettings.cs | namespace CompetitionPlatform.Data.AzureRepositories.Settings
{
public class BaseSettings
{
public AzureSettings Azure { get; set; }
public AuthenticationSettings Authentication { get; set; }
public NotificationsSettings Notifications { get; set; }
public RecaptchaSettings Recap... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CompetitionPlatform.Data.AzureRepositories.Settings
{
public class BaseSettings
{
public AzureSettings Azure { get; set; }
public AuthenticationSettings Authentication { get; set; }
... | mit | C# |
c880a577e9a0205685095efdc028c51da1a7f55a | Add remark to doc comment | RockFramework/Rock.Messaging | RockLib.Messaging/IReceiver.cs | RockLib.Messaging/IReceiver.cs | using System;
namespace RockLib.Messaging
{
/// <summary>
/// Defines an interface for receiving messages. To start receiving messages,
/// set the value of the <see cref="MessageHandler"/> property.
/// </summary>
public interface IReceiver : IDisposable
{
/// <summary>
/// Ge... | using System;
namespace RockLib.Messaging
{
/// <summary>
/// Defines an interface for receiving messages. To start receiving messages,
/// set the value of the <see cref="MessageHandler"/> property.
/// </summary>
public interface IReceiver : IDisposable
{
/// <summary>
/// Ge... | mit | C# |
c453bb07c55b95d01d8c04a5fd0f45a8e0ab7aa2 | Make pulling feel less crap (#4414) | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Client/Physics/Controllers/MoverController.cs | Content.Client/Physics/Controllers/MoverController.cs | using Content.Shared.Movement;
using Content.Shared.Movement.Components;
using Robust.Client.Player;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
namespace Content.Client.Physics.Controllers
{
public sealed class MoverController : SharedMoverController
{
[Dependency] private readonly IPlay... | using Content.Shared.Movement;
using Content.Shared.Movement.Components;
using Robust.Client.Player;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
namespace Content.Client.Physics.Controllers
{
public sealed class MoverController : SharedMoverController
{
[Dependency] private readonly IPlay... | mit | C# |
f164d0274ef487d24875cc14af3f68a6532b6ce1 | Fix comment | DaveSenn/Extend | PortableExtensions/System.Int32/Int32.IsMultipleOf.cs | PortableExtensions/System.Int32/Int32.IsMultipleOf.cs | #region Usings
using System;
#endregion
namespace PortableExtensions
{
/// <summary>
/// Class containing some extension methods for <see cref="int" />.
/// </summary>
public static partial class Int32Ex
{
/// <summary>
/// Checks if the Int32 value is a multiple of the g... | #region Usings
using System;
#endregion
namespace PortableExtensions
{
/// <summary>
/// Class containing some extension methods for <see cref="int" />.
/// </summary>
public static partial class Int32Ex
{
/// <summary>
/// Checks if the Int32 value is a multiple of the g... | mit | C# |
2dc7b4c9fa2d00e6f7106c575babd31fcfa63680 | update version number | gaochundong/Cowboy | SolutionVersion.cs | SolutionVersion.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyDescription("Cowboy is a library for building Sockets/HTTP based services.")]
[assembly: AssemblyCompany("Dennis Gao")]
[assembly: AssemblyProduct("Cowboy")]
[assembly: AssemblyCopyright("Copyright © 2015-2016 Dennis Gao.")]
[assembly: ... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyDescription("Cowboy is a library for building Sockets/HTTP based services.")]
[assembly: AssemblyCompany("Dennis Gao")]
[assembly: AssemblyProduct("Cowboy")]
[assembly: AssemblyCopyright("Copyright © 2015-2016 Dennis Gao.")]
[assembly: ... | mit | C# |
6dc4dffd9c9fbf3f415ff2a6320fabb3aabe761a | add caching extension method | xyting/IdentityServer4.EntityFramework,IdentityServer/IdentityServer4.EntityFramework,xyting/IdentityServer4.EntityFramework,IdentityServer/IdentityServer4.EntityFramework,IdentityServer/IdentityServer4.EntityFramework,IdentityServer/IdentityServer4.EntityFramework | src/IdentityServer4.EntityFramework/Extensions/IdentityServerEntityFrameworkBuilderExtensions.cs | src/IdentityServer4.EntityFramework/Extensions/IdentityServerEntityFrameworkBuilderExtensions.cs | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityServer4.EntityFramework.DbContexts;
using IdentityServer4.EntityFramework.Interfaces;
using IdentityServer4.EntityFramework.Ser... | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityServer4.EntityFramework.DbContexts;
using IdentityServer4.EntityFramework.Interfaces;
using IdentityServer4.EntityFramework.Ser... | apache-2.0 | C# |
5d823d0728a1351a165b8d154fffe8ef59c1ca8b | Add IoC using built in container | andrewlock/blog-examples,andrewlock/blog-examples,andrewlock/blog-examples,andrewlock/blog-examples | configuring-structuremap/ConfiguringStructureMap/Startup.cs | configuring-structuremap/ConfiguringStructureMap/Startup.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace ConfiguringStr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace ConfiguringStr... | mit | C# |
a8a1dc55891ca63508f3c81114543e101d082f5a | change cache duration | Borayvor/ASP.NET-MVC-CourseProject-2017,Borayvor/ASP.NET-MVC-CourseProject-2017,Borayvor/ASP.NET-MVC-CourseProject-2017 | PhotoArtSystem/Common/PhotoArtSystem.Common/Constants/GlobalConstants.cs | PhotoArtSystem/Common/PhotoArtSystem.Common/Constants/GlobalConstants.cs | namespace PhotoArtSystem.Common.Constants
{
public class GlobalConstants
{
public const string StringEmpty = "";
// TODO: Set Cache Duration !!!
// Cache duration
public const uint PhotoArtServicesPartialCacheDuration = 60 * 5; //// * 24; // sec * min * hours
public con... | namespace PhotoArtSystem.Common.Constants
{
public class GlobalConstants
{
public const string StringEmpty = "";
// TODO: Set Cache Duration !!!
// Cache duration
public const uint PhotoArtServicesPartialCacheDuration = 0; //// * 60 * 24; // sec * min * hours
public con... | mit | C# |
6cd11ce084b4b645284c41582922c6d3b36aec42 | Solve build error | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | Trappist/src/Promact.Trappist.Repository/Questions/QuestionRepository.cs | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | mit | C# |
285442c15f4767cca472d465c96949dd436eff4b | Add city power and water variables. | mitchfizz05/Citysim,pigant/Citysim | Citysim/City.cs | Citysim/City.cs | using Citysim.Map;
namespace Citysim
{
public class City
{
/// <summary>
/// Amount of cash available.
/// </summary>
public int cash = 10000; // $10,000 starting cash
/// <summary>
/// MW (mega watts) of electricity available to the city.
/// </summary... | using Citysim.Map;
namespace Citysim
{
public class City
{
/// <summary>
/// Amount of cash available.
/// </summary>
public int cash = 10000; // $10,000 starting cash
/// <summary>
/// The world. Needs generation.
/// </summary>
public World wo... | mit | C# |
a72a73feeea559b44adf94166e0e3efcbedb6b53 | Make mouse zoom work when playing back recording. | fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game,fr1tz/rotc-ethernet-game | common/client/actionMap.recording.cs | common/client/actionMap.recording.cs | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2008, mEthLab Interactive
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
... | //------------------------------------------------------------------------------
// Revenge Of The Cats: Ethernet
// Copyright (C) 2008, mEthLab Interactive
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
... | lgpl-2.1 | C# |
b3dc37cecff09d813a5b39fe6ef7c1b1668471ed | Set the Accept header. | threedaymonk/iplayer-dl.net | src/IPDL/Request.cs | src/IPDL/Request.cs | using System.Net;
using System.IO;
using System.Text.RegularExpressions;
namespace IPDL {
abstract class AbstractRequest {
private string userAgent;
private string url;
private CookieContainer cookies;
public delegate void ResponseHandler(WebResponse response);
public delegate void ResponseStrea... | using System.Net;
using System.IO;
using System.Text.RegularExpressions;
namespace IPDL {
abstract class AbstractRequest {
private string userAgent;
private string url;
private CookieContainer cookies;
public delegate void ResponseHandler(WebResponse response);
public delegate void ResponseStrea... | mit | C# |
cfef767cc81b58278386affe8e500987c2f4a776 | Remove whitespace in informational text | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke | source/Nuke.Common/Utilities/AssemblyExtensions.cs | source/Nuke.Common/Utilities/AssemblyExtensions.cs | // Copyright 2018 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using System.Reflection;
namespace Nuke.Common.Utilities
{
public static class AssemblyExtensions
{
public static string GetInformatio... | // Copyright 2018 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using System.Reflection;
namespace Nuke.Common.Utilities
{
public static class AssemblyExtensions
{
public static string GetInformatio... | mit | C# |
ee0401405180eeecd129f5c9b3246f431df05850 | Rename Tenant to Domain in the web api template | seancpeters/templating,rschiefer/templating,danroth27/templating,rschiefer/templating,seancpeters/templating,lambdakris/templating,danroth27/templating,mlorbetske/templating,rschiefer/templating,lambdakris/templating,mlorbetske/templating,seancpeters/templating,seancpeters/templating,danroth27/templating,lambdakris/tem... | template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/WebApi-CSharp/AzureAdB2COptions.cs | template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/WebApi-CSharp/AzureAdB2COptions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Company.WebApplication1
{
public class AzureAdB2COptions
{
public string ClientId { get; set; }
public string AzureAdB2CInstance { get; set; }
public string Domain { get; set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Company.WebApplication1
{
public class AzureAdB2COptions
{
public string ClientId { get; set; }
public string AzureAdB2CInstance { get; set; }
public string Tenant { get; set; }
... | mit | C# |
41979ed9765599c1ccb325d4ecf3496df35ed4ec | fix RoundRobinAddressRouter | lvermeulen/Equalizer | src/Equalizer.Nanophone/RoundRobinAddressRouter.cs | src/Equalizer.Nanophone/RoundRobinAddressRouter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Equalizer.Core;
using Nanophone.Core;
namespace Equalizer.Nanophone
{
public class RoundRobinAddressRouter : BaseTenaciousRouter<RegistryInformation>
{
private readonly Func<RegistryInformation, RegistryInformation, bool> _discri... | using System;
using System.Collections.Generic;
using Equalizer.Core;
using Equalizer.Routers;
using Nanophone.Core;
namespace Equalizer.Nanophone
{
public class RoundRobinAddressRouter : BaseDiscriminatingRouter<RegistryInformation>
{
private readonly RoundRobinRouter<RegistryInformation> _router;
... | mit | C# |
25a0562a17f85f5bbb7944514d2013bb5a2b0410 | Fix classification test to use object type. | dotnet/roslyn,sharwell/roslyn,jmarolf/roslyn,ErikSchierboom/roslyn,sharwell/roslyn,AlekseyTs/roslyn,genlu/roslyn,KevinRansom/roslyn,bartdesmet/roslyn,ErikSchierboom/roslyn,gafter/roslyn,eriawan/roslyn,heejaechang/roslyn,aelij/roslyn,AmadeusW/roslyn,genlu/roslyn,agocke/roslyn,panopticoncentral/roslyn,diryboy/roslyn,step... | src/VisualStudio/LiveShare/Test/ClassificationsHandlerTests.cs | src/VisualStudio/LiveShare/Test/ClassificationsHandlerTests.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Linq;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Test.Utilities;
using Microsoft.VisualStudio.LanguageServer.Protocol;
using Mic... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Linq;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Test.Utilities;
using Microsoft.VisualStudio.LanguageServer.Protocol;
using Mic... | mit | C# |
7c0f66d0f5ea4bb57eab6826003023248078eb6e | fix exit error with -nr | yyc12345/bili-live-dm-console | DanmakuRecord.cs | DanmakuRecord.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Net;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using bili_live_dm_console.BiliDMLib;
using bili_live_dm_console.BilibiliDM_PluginFramework;
namespace bili_live_dm_console
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Net;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using bili_live_dm_console.BiliDMLib;
using bili_live_dm_console.BilibiliDM_PluginFramework;
namespace bili_live_dm_console
{
... | mit | C# |
eea95ec6b78b6a2d1c9496b1800cbfa1347f025f | Copy Paste TSL | ucdavis/CRP,ucdavis/CRP,ucdavis/CRP | CRP.Mvc/Global.asax.cs | CRP.Mvc/Global.asax.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace CRP.Mvc
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_S... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace CRP.Mvc
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | mit | C# |
6f0b8d232568645e4d24f183b5efb5d8d39a69fa | Update AssemblyInfo.cs | hfurubotten/Heine.Mvc.ActionFilters | Heine.Mvc.ActionFilters/Properties/AssemblyInfo.cs | Heine.Mvc.ActionFilters/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("Heine.Mvc.ActionFilters")]
[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("Heine.Mvc.ActionFilters")]
[assembly: Ass... | mit | C# |
d03a70b8b189d4566377f2575965db944fe13cba | Add ActionList resource type | SteamDatabase/ValveResourceFormat | ValveResourceFormat/Resource/Enums/ResourceType.cs | ValveResourceFormat/Resource/Enums/ResourceType.cs | using System;
namespace ValveResourceFormat
{
[AttributeUsage(AttributeTargets.Field)]
public class ExtensionAttribute : Attribute
{
public string Extension { get; set; }
public ExtensionAttribute(string extension)
{
Extension = extension;
}
}
// Frien... | using System;
namespace ValveResourceFormat
{
[AttributeUsage(AttributeTargets.Field)]
public class ExtensionAttribute : Attribute
{
public string Extension { get; set; }
public ExtensionAttribute(string extension)
{
Extension = extension;
}
}
// Frien... | mit | C# |
84ec3d8465c78fe7916a8905cedbb83e1c85f168 | Add code to remove all old settings | MHeasell/Mappy,MHeasell/Mappy | Mappy/Program.cs | Mappy/Program.cs | namespace Mappy
{
using System;
using System.IO;
using System.Windows.Forms;
using UI.Forms;
public static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
public static void Main()
... | namespace Mappy
{
using System;
using System.Windows.Forms;
using UI.Forms;
public static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
public static void Main()
{
App... | mit | C# |
b36e534195deddf7ee8c4099499038814189d449 | Set version to 1.2.1.0 | ccellar/mite.net,ccellar/mite.net | trunk/CodeBase/mite.net/Properties/AssemblyInfo.cs | trunk/CodeBase/mite.net/Properties/AssemblyInfo.cs | //-----------------------------------------------------------------------
// <copyright>
// This software is licensed as Microsoft Public License (Ms-PL).
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.Reflection;
using System.Runtime.Compile... | //-----------------------------------------------------------------------
// <copyright>
// This software is licensed as Microsoft Public License (Ms-PL).
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.Reflection;
using System.Runtime.Compile... | bsd-3-clause | C# |
fecb4e7314a4ea473d6aab0b32af3112e61b14b8 | Add default AppDeleteCommand initializer | appharbor/appharbor-cli | src/AppHarbor/Commands/AppDeleteCommand.cs | src/AppHarbor/Commands/AppDeleteCommand.cs | using System;
namespace AppHarbor.Commands
{
[CommandHelp("Delete application")]
public class AppDeleteCommand : ICommand
{
public AppDeleteCommand()
{
}
public void Execute(string[] arguments)
{
throw new NotImplementedException();
}
}
}
| using System;
namespace AppHarbor.Commands
{
[CommandHelp("Delete application")]
public class AppDeleteCommand : ICommand
{
public void Execute(string[] arguments)
{
throw new NotImplementedException();
}
}
}
| mit | C# |
d30be3efa3f9f2af6250efda119d3c99827f403c | Update Trigger.cs | wieslawsoltes/AvaloniaBehaviors,wieslawsoltes/AvaloniaBehaviors | src/Avalonia.Xaml.Interactivity/Trigger.cs | src/Avalonia.Xaml.Interactivity/Trigger.cs | using Avalonia.Metadata;
namespace Avalonia.Xaml.Interactivity;
/// <summary>
/// A base class for behaviors, implementing the basic plumbing of <seealso cref="ITrigger"/>.
/// </summary>
public abstract class Trigger : Behavior, ITrigger
{
/// <summary>
/// Identifies the <seealso cref="Actions"/> avalonia ... | using Avalonia.Metadata;
namespace Avalonia.Xaml.Interactivity;
/// <summary>
/// A base class for behaviors, implementing the basic plumbing of <seealso cref="ITrigger"/>.
/// </summary>
public abstract class Trigger : Behavior, ITrigger
{
/// <summary>
/// Identifies the <seealso cref="Actions"/> avalonia ... | mit | C# |
e993f4be927a993c3d1abd21d58085625e953355 | Fix flush unclaer data bugs. | ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP | src/DotNetCore.CAP/ICapTransaction.Base.cs | src/DotNetCore.CAP/ICapTransaction.Base.cs | using System.Collections.Generic;
using DotNetCore.CAP.Models;
namespace DotNetCore.CAP
{
public abstract class CapTransactionBase : ICapTransaction
{
private readonly IDispatcher _dispatcher;
private readonly IList<CapPublishedMessage> _bufferList;
protected CapTransactionBase(IDisp... | using System.Collections.Generic;
using DotNetCore.CAP.Models;
namespace DotNetCore.CAP
{
public abstract class CapTransactionBase : ICapTransaction
{
private readonly IDispatcher _dispatcher;
private readonly IList<CapPublishedMessage> _bufferList;
protected CapTransactionBase(IDisp... | mit | C# |
0697c78826e7fd14d001dbd9de2a6073635bb77b | Fix one remaining case of incorrect audio testing | ZLima12/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework | osu.Framework.Tests/Audio/DevicelessAudioTest.cs | osu.Framework.Tests/Audio/DevicelessAudioTest.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 NUnit.Framework;
namespace osu.Framework.Tests.Audio
{
[TestFixture]
public class DevicelessAudioTest : AudioThreadTest
{
public override void... | // 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 NUnit.Framework;
namespace osu.Framework.Tests.Audio
{
[TestFixture]
public class DevicelessAudioTest : AudioThreadTest
{
public override void... | mit | C# |
69da804f817dac304b7bc36587070d5f129b5eae | Add missing period | UselessToucan/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,smoogipooo/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu | osu.Game/Rulesets/Edit/Checks/CheckBackground.cs | osu.Game/Rulesets/Edit/Checks/CheckBackground.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Edit.Checks.Components;
namespace osu.Game.Rulesets.Edit.Checks
{
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Edit.Checks.Components;
namespace osu.Game.Rulesets.Edit.Checks
{
... | mit | C# |
335d1f20419ca96d463080c86ffc0f0009737dbd | fix bug where multiple provider panel would never show | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerAccounts.Web/ViewModels/AccountDashboardViewModel.cs | src/SFA.DAS.EmployerAccounts.Web/ViewModels/AccountDashboardViewModel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using SFA.DAS.Authorization;
using SFA.DAS.EAS.Portal.Client.Types;
using SFA.DAS.EmployerAccounts.Models.Account;
namespace SFA.DAS.EmployerAccounts.Web.ViewModels
{
public class AccountDashboardViewModel
{
public EmployerAccounts.Mod... | using System;
using System.Collections.Generic;
using System.Linq;
using SFA.DAS.Authorization;
using SFA.DAS.EAS.Portal.Client.Types;
using SFA.DAS.EmployerAccounts.Models.Account;
namespace SFA.DAS.EmployerAccounts.Web.ViewModels
{
public class AccountDashboardViewModel
{
public EmployerAccounts.Mod... | mit | C# |
3ddb82eac782cac1bec47365dd803cb95347ffe3 | Remove Culture info | marshallward/Tesserae | src/AssemblyInfo.cs | src/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Tesserae")]
[assembly: AssemblyDescription("XNA-based TMX Map Renderer")]
[assembly: AssemblyConf... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Tesserae")]
[assembly: AssemblyDescription("XNA-based TMX Map Renderer")]
[assembly: AssemblyConf... | apache-2.0 | C# |
82e2a35036d0b8f590b8d51ce6e6424811c388a7 | Add C# 6.0 string interpolation sample | viciousviper/CoverityTestbed | CoverityTestbed/Program.cs | CoverityTestbed/Program.cs | using System;
using System.Globalization;
namespace CoverityTestbed
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, Coverity!");
Console.WriteLine(string.Format(CultureInfo.CurrentCulture, "CLR version is {0}", Environment.Version));
... | using System;
using System.Globalization;
namespace CoverityTestbed
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, Coverity!");
Console.WriteLine(string.Format(CultureInfo.CurrentCulture, "CLR version is {0}", Environment.Version));
... | mit | C# |
956cf87bdf6aa868a864aedb8fd272024f67b1c0 | Add try catch | zulhilmizainuddin/geoip,zulhilmizainuddin/geoip | src/GeoIP/Executers/IP2LocationQuery.cs | src/GeoIP/Executers/IP2LocationQuery.cs | using GeoIP.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace GeoIP.Executers
{
public class IP2LocationQuery : IQuery
{
public async Task<string> Query(string ipA... | using GeoIP.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace GeoIP.Executers
{
public class IP2LocationQuery : IQuery
{
public async Task<string> Query(string ipA... | mit | C# |
42716f4df8a02bf26132d81da9d623d7c2b2549f | Switch version to 1.2.9 | Abc-Arbitrage/Zebus,AtwooTM/Zebus,biarne-a/Zebus,rbouallou/Zebus | src/SharedVersionInfo.cs | src/SharedVersionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.2.9")]
[assembly: AssemblyFileVersion("1.2.9")]
[assembly: AssemblyInformationalVersion("1.2.9")]
| using System.Reflection;
[assembly: AssemblyVersion("1.2.8")]
[assembly: AssemblyFileVersion("1.2.8")]
[assembly: AssemblyInformationalVersion("1.2.8")]
| mit | C# |
25b48e38b0b81000096ef200b7ac11ba1e092cdd | Update test endpoint names | OmniSharp/omnisharp-roslyn,jtbm37/omnisharp-roslyn,nabychan/omnisharp-roslyn,nabychan/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,jtbm37/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn | src/OmniSharp.Abstractions/Endpoints.cs | src/OmniSharp.Abstractions/Endpoints.cs | using System.Threading.Tasks;
using OmniSharp.Mef;
namespace OmniSharp
{
public interface RequestHandler<TRequest, TResponse> : IRequestHandler
{
Task<TResponse> Handle(TRequest request);
}
public interface IAggregateResponse
{
IAggregateResponse Merge(IAggregateResponse response);... | using System.Threading.Tasks;
using OmniSharp.Mef;
namespace OmniSharp
{
public interface RequestHandler<TRequest, TResponse> : IRequestHandler
{
Task<TResponse> Handle(TRequest request);
}
public interface IAggregateResponse
{
IAggregateResponse Merge(IAggregateResponse response);... | mit | C# |
9e8908348b23b58907f29837cacd11c5e7d72e4d | Update version to 1.9.52. | vancem/perfview,vancem/perfview,vancem/perfview,vancem/perfview,vancem/perfview | src/PerfView/Properties/AssemblyInfo.cs | src/PerfView/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
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 ... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
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 ... | mit | C# |
20a4e1539a956c628e83f5b3b515a6baa99f1ac5 | Update Array HW | owolp/Telerik-Academy,owolp/Telerik-Academy,owolp/Telerik-Academy,owolp/Telerik-Academy | Modul-1/CSharp-Part-2/01-Arrays/15.PrimeNumbers/PrimeNumbers.cs | Modul-1/CSharp-Part-2/01-Arrays/15.PrimeNumbers/PrimeNumbers.cs | using System;
using System.Linq;
// 90/100 BGCODER
namespace PrimeNumbers
{
class PrimeNumbers
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
int[] numbers = new int[n - 1];
// fill in the initial array with all numbers
for (int ... | using System;
using System.Linq;
namespace PrimeNumbers
{
class PrimeNumbers
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
int[] numbers = new int[n - 1];
// fill in the initial array with all numbers
for (int i = 0; i < numbers... | mit | C# |
b4b54b327743f857d6bc068663be1fd03033a73f | Replace it | sta/websocket-sharp,sta/websocket-sharp,sta/websocket-sharp,sta/websocket-sharp | Example2/Chat.cs | Example2/Chat.cs | using System;
using System.Threading;
using WebSocketSharp;
using WebSocketSharp.Server;
namespace Example2
{
public class Chat : WebSocketBehavior
{
private string _name;
private static int _number = 0;
private string _prefix;
public Chat ()
{
_prefix = "anon#";
}
publi... | using System;
using System.Threading;
using WebSocketSharp;
using WebSocketSharp.Server;
namespace Example2
{
public class Chat : WebSocketBehavior
{
private string _name;
private static int _number = 0;
private string _prefix;
public Chat ()
: this (null)
{
}
public Cha... | mit | C# |
a82eeb6daf15c2391a9c104ed2793c32958f20c7 | tidy up sidebar test | smoogipoo/osu,ppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,peppy/osu,UselessToucan/osu,peppy/osu-new,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,ppy/osu,smoogipoo/osu,smoogipooo/osu,peppy/osu | osu.Game.Tests/Visual/Online/TestSceneWikiSidebar.cs | osu.Game.Tests/Visual/Online/TestSceneWikiSidebar.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.Parsers;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Game.Graphics.Containers.Markd... | // 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.Parsers;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers.... | mit | C# |
de6110070d063333d3e60a1d9874203d84713b54 | Refactor This menu | gorohoroh/resharper-workshop,yskatsumata/resharper-workshop,gorohoroh/resharper-workshop,JetBrains/resharper-workshop,JetBrains/resharper-workshop,gorohoroh/resharper-workshop,yskatsumata/resharper-workshop,JetBrains/resharper-workshop,yskatsumata/resharper-workshop | 04-Refactoring/Refactoring/01-Refactor_This_menu.cs | 04-Refactoring/Refactoring/01-Refactor_This_menu.cs | using System;
namespace JetBrains.ReSharper.Koans.Refactoring
{
// Refactor This menu
//
// Display a contextual menu of refactorings available at the current location
//
// Ctrl+Shift+R
// 1. Refactor This on type definition, method, property, field, parameter, variable, etc.
// Note ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Refactoring
{
public class Class1
{
}
}
| apache-2.0 | C# |
b43fdb50d28840a7f8ae168011a8b4dc59b5e488 | Make the jumbotron inside a container. | bigfont/sweet-water-revolver | mvcWebApp/Views/Home/_Jumbotron.cshtml | mvcWebApp/Views/Home/_Jumbotron.cshtml | <div class="container">
<div id="my-jumbotron" class="jumbotron">
<h1>Welcome!</h1>
<p>We are Sweet Water Revolver. This is our website. Please look around and check out our...</p>
<p><a class="btn btn-primary btn-lg" role="button">... showtimes.</a></p>
</div>
</div>
|
<div id="my-jumbotron" class="jumbotron">
<div class="container">
<h1>Welcome!</h1>
<p>We are Sweet Water Revolver. This is our website. Please look around and check out our...</p>
<p><a class="btn btn-primary btn-lg" role="button">... showtimes.</a></p>
</div>
</div>
| mit | C# |
d30030bfcb7c689ec83bd251adb7da6c09b06374 | add support to set command to allow piping | ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,AzureAutomationTeam/azure-powershell,ClogenyTechnologies/azure-powershell,ClogenyTechnologies/azur... | src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/SetAzureExpressRouteCircuitCommand.cs | src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/SetAzureExpressRouteCircuitCommand.cs | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | apache-2.0 | C# |
0ff054f887a4c471ede619dbac2a132cff288a96 | Bump version. | peppy/osu-new,tacchinotacchi/osu,johnneijzen/osu,peppy/osu,Nabile-Rahmani/osu,naoey/osu,UselessToucan/osu,smoogipoo/osu,johnneijzen/osu,2yangk23/osu,smoogipoo/osu,naoey/osu,Damnae/osu,smoogipooo/osu,DrabWeb/osu,UselessToucan/osu,ppy/osu,peppy/osu,osu-RP/osu-RP,nyaamara/osu,DrabWeb/osu,ZLima12/osu,default0/osu,NotKyon/l... | osu.Desktop/Properties/AssemblyInfo.cs | osu.Desktop/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# |
40f5e7b29be9ae504caf966495703b23089488c9 | Update MyDataRepository.cs | CarmelSoftware/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4,kelong/Data-Repository-with-Data-Caching-in-ASP.NET-MVC-4 | Models/MyDataRepository.cs | Models/MyDataRepository.cs | // TODO: fix this class : class name : "RepositoryCaching"
using system;
public class MyDataRepository
{
// TODO: check what happens when different users use Cache simultaneously
public ObjectCache Cache
{
get { return MemoryCache.Default; }
}
public bool IsInMemo... | using system;
public class MyDataRepository
{
// TODO: check what happens when different users use Cache simultaneously
public ObjectCache Cache
{
get { return MemoryCache.Default; }
}
public bool IsInMemory(string Key)
{
return Cache.Contains(K... | mit | C# |
27c80d19f53e0d2f2c678a6748a1a26683f8d0c7 | Fix some issues | asarium/FSOLauncher | Libraries/FSOManagement/Profiles/FlagInformation.cs | Libraries/FSOManagement/Profiles/FlagInformation.cs | using System;
using FSOManagement.Annotations;
namespace FSOManagement.Profiles
{
[Serializable]
internal struct FlagInformation : IComparable<FlagInformation>
{
private readonly string _name;
private readonly object _value;
public FlagInformation([NotNull] string name, [CanBeNul... | using System;
using FSOManagement.Annotations;
namespace FSOManagement.Profiles
{
[Serializable]
internal struct FlagInformation : IComparable<FlagInformation>
{
private readonly string _name;
private readonly object _value;
public FlagInformation([NotNull] string name, [CanBeNul... | mit | C# |
96691532adf691b7437553376105de4e4a900e2f | clean up | santiaago/grpc.demo,santiaago/grpc.demo | csharp.client/Program.cs | csharp.client/Program.cs | using System;
using Grpc.Core;
using Reverse;
namespace csharp.client
{
internal class Program
{
private static void Main()
{
var channel = new Channel("127.0.0.1:50051", ChannelCredentials.Insecure);
var client = new ReverseService.ReverseServiceClient(channel);
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Grpc.Core;
using Reverse;
namespace csharp.client
{
{
static void Main(string[] args)
{
var channel = new Channel("127.0.0.1:50051", ChannelCredentials.Insecure);
... | mit | C# |
a57910ac24de00a21ce8bced19cae8ad09bb7990 | Fix Error With Skill Test | DevelopersGuild/Castle-Bashers | Assets/skilltesting.cs | Assets/skilltesting.cs | using UnityEngine;
using System.Collections;
public class test : Skill
{
private float duration = 10f;
private float expiration;
bool active;
Player player;
private int bonusStrength;
protected override void Start()
{
base.Start();
base.SetBaseValues(15, 16000, 150, "I... | using UnityEngine;
using System.Collections;
public class test : Skill
{
private float duration = 10f;
private float expiration;
bool active;
Player player;
private int bonusStrength;
protected override void Start()
{
base.Start();
base.SetBaseValues(15, 16000, 150, "I... | mit | C# |
af3bcb01f81819df42828fcae626e5418c748063 | Update correct date span for copyright notification. | mcneel/RhinoCycles | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Rhino.PlugIns;
// Plug-In title and Guid are extracted from the following two attributes
[assembly: AssemblyTitle("RhinoCycles")]
[assembly: Guid("9BC28E9E-7A6C-4B8F-A0C6-3D05E02D1B97")]
// Plug-in Description... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Rhino.PlugIns;
// Plug-In title and Guid are extracted from the following two attributes
[assembly: AssemblyTitle("RhinoCycles")]
[assembly: Guid("9BC28E9E-7A6C-4B8F-A0C6-3D05E02D1B97")]
// Plug-in Description... | apache-2.0 | C# |
6c7be5c8205bff134017be8223c86de681e2ecfe | Add edge case unit tests | PioneerCode/pioneer-pagination,PioneerCode/pioneer-pagination,PioneerCode/pioneer-pagination | test/Pioneer.Pagination.Tests/ClampTests.cs | test/Pioneer.Pagination.Tests/ClampTests.cs | using Xunit;
namespace Pioneer.Pagination.Tests
{
/// <summary>
/// Clamp Tests
/// </summary>
public class ClampTests
{
private readonly PaginatedMetaService _sut = new PaginatedMetaService();
[Fact]
public void NextPageIsLastPageInCollectionWhenRequestedPageIsGreatedThen... | using Xunit;
namespace Pioneer.Pagination.Tests
{
/// <summary>
/// Clamp Tests
/// </summary>
public class ClampTests
{
private readonly PaginatedMetaService _sut = new PaginatedMetaService();
[Fact]
public void LastPageDisplayed()
{
var result = _sut.... | mit | C# |
614ade23006022517e254409c46d9e74d84f9977 | Fix effect matrix | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D.ViewModels/Style/PathEffects/Path2DPathEffect.cs | src/Draw2D.ViewModels/Style/PathEffects/Path2DPathEffect.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Runtime.Serialization;
using Spatial;
namespace Draw2D.ViewModels.Style.PathEffects
{
[DataContract(IsReference... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Runtime.Serialization;
using Spatial;
namespace Draw2D.ViewModels.Style.PathEffects
{
[DataContract(IsReference... | mit | C# |
e6b38e5ca74c3cc6433c24d8964710e0abe4389b | Update version number | vnbaaij/ImageProcessor.Web.Episerver,vnbaaij/ImageProcessor.Web.Episerver,vnbaaij/ImageProcessor.Web.Episerver | src/ImageProcessor.Web.Episerver/Properties/AssemblyInfo.cs | src/ImageProcessor.Web.Episerver/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("Imag... | 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("Imag... | mit | C# |
d54d15f66d6d853a55d4854a294b675a39774042 | Tidy up BrushConverter | grokys/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,DavidKarlas/Perspex,kekekeks/Perspex,SuperJMN/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,tshcherban/Perspex,AvaloniaUI/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,Perspex/Perspex,ncarrillo/Perspex,kekekeks/Perspex,susloparovdenis/Perspex,susloparovdenis/... | src/Markup/Perspex.Markup.Xaml/Converters/BrushConverter.cs | src/Markup/Perspex.Markup.Xaml/Converters/BrushConverter.cs | // -----------------------------------------------------------------------
// <copyright file="BrushConverter.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Marku... | // -----------------------------------------------------------------------
// <copyright file="BrushConverter.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Marku... | mit | C# |
8cc43affdcc2c496b24b93962f534f9a755faf4f | Update ObservableExtensions.cs | keith-hall/Extensions,keith-hall/Extensions | src/ObservableExtensions.cs | src/ObservableExtensions.cs | using System;
using System.Reactive.Linq;
namespace HallLibrary.Extensions
{
/// <summary>
/// Contains extension methods for working with observables.
/// </summary>
public static class ObservableExtensions
{
/// <summary>
/// Returns the current value of an observable with the previous value.
/// </summar... | using System;
using System.Reactive.Linq;
namespace HallLibrary.Extensions
{
/// <summary>
/// Contains extension methods for working with observables.
/// </summary>
public static class ObservableExtensions
{
/// <summary>
/// Returns the current value of an observable with the previous value.
/// </summar... | apache-2.0 | C# |
7c2b9e171e63489ec3ce550bf71bcdb2a0128f46 | fix response type | restdotnet/RestDotNet | src/RestDotNet/IResponse.cs | src/RestDotNet/IResponse.cs | using System.Threading;
using System.Threading.Tasks;
namespace RestDotNet
{
public interface IResponse
{
IRestHandler Handler { get; }
Task ExecuteAsync();
Task ExecuteAsync(CancellationToken cancellationToken);
}
public interface IResponse<TResponse>
{
IRestHan... | using System.Threading;
using System.Threading.Tasks;
namespace RestDotNet
{
public interface IResponse
{
IRestHandler Handler { get; }
Task ExecuteAsync();
Task ExecuteAsync(CancellationToken cancellationToken);
}
public interface IResponse<TResponse> : IResponse
{
... | mit | C# |
12f5cb74972d0d0305978ef23944be4de9f2802c | Correct alignment in display | LodewijkSioen/ExitStrategy,LodewijkSioen/ExitStrategy | src/TestWebsite/Views/Shared/DisplayTemplates/Object.cshtml | src/TestWebsite/Views/Shared/DisplayTemplates/Object.cshtml | @model Object
@if (ViewData.TemplateInfo.TemplateDepth > 1)
{
@ViewData.ModelMetadata.SimpleDisplayText
}
else
{
foreach (var prop in ViewData.ModelMetadata.Properties.Where(pm => pm.ShowForDisplay && !ViewData.TemplateInfo.Visited(pm)))
{
<div class="form-group">
@Html.Label(prop.Pr... | @model Object
@if (ViewData.TemplateInfo.TemplateDepth > 1)
{
@ViewData.ModelMetadata.SimpleDisplayText
}
else
{
foreach (var prop in ViewData.ModelMetadata.Properties.Where(pm => pm.ShowForDisplay && !ViewData.TemplateInfo.Visited(pm)))
{
<div class="form-group">
@Html.Label(prop.Pr... | mit | C# |
095c038edd4dc62116a2da58fa8b22da3639ee9e | apply message styles (#5820) | stevetayloruk/Orchard2,OrchardCMS/Brochard,stevetayloruk/Orchard2,petedavis/Orchard2,xkproject/Orchard2,xkproject/Orchard2,petedavis/Orchard2,xkproject/Orchard2,stevetayloruk/Orchard2,stevetayloruk/Orchard2,xkproject/Orchard2,OrchardCMS/Brochard,xkproject/Orchard2,OrchardCMS/Brochard,petedavis/Orchard2,petedavis/Orchar... | src/OrchardCore.Themes/TheAdmin/Views/Message.cshtml | src/OrchardCore.Themes/TheAdmin/Views/Message.cshtml | @{
string type = Model.Type.ToString().ToLowerInvariant();
}
<div class="alert alert-dismissible fade show message-@type" role="alert">
@Model.Message
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
| <div class="alert alert-warning alert-dismissible fade show" role="alert">
@Model.Message
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
| bsd-3-clause | C# |
e128f4a5a4a826265f2224fa7d35a73ec124116a | Split up logic for GetValidPMixinFiles to make it easier to debug | ppittle/pMixins,ppittle/pMixins,ppittle/pMixins | pMixins.VisualStudio/Extensions/SolutionExtensions.cs | pMixins.VisualStudio/Extensions/SolutionExtensions.cs | //-----------------------------------------------------------------------
// <copyright file="SolutionExtensions.cs" company="Copacetic Software">
// Copyright (c) Copacetic Software.
// <author>Philip Pittle</author>
// <date>Tuesday, May 6, 2014 1:06:27 PM</date>
// Licensed under the Apache License, Version 2... | //-----------------------------------------------------------------------
// <copyright file="SolutionExtensions.cs" company="Copacetic Software">
// Copyright (c) Copacetic Software.
// <author>Philip Pittle</author>
// <date>Tuesday, May 6, 2014 1:06:27 PM</date>
// Licensed under the Apache License, Version 2... | apache-2.0 | C# |
630b90cf27ac2ac1badf8d808b848df3bd73186e | Enable https redirection and authorization for non-dev envs only | surlycoder/truck-router | TruckRouter/Program.cs | TruckRouter/Program.cs | using TruckRouter.Models;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
build... | using TruckRouter.Models;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
build... | mit | C# |
b1c34777aaf2c0937fc6b6e650528851b879e21b | Add test for authorization requirement in TraktUserCustomListUpdateRequest | henrikfroehling/TraktApiSharp | Source/Tests/TraktApiSharp.Tests/Experimental/Requests/Users/OAuth/TraktUserCustomListUpdateRequestTests.cs | Source/Tests/TraktApiSharp.Tests/Experimental/Requests/Users/OAuth/TraktUserCustomListUpdateRequestTests.cs | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Base.Put;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
using TraktApiSharp.Objects.Get.Users.Lists;
u... | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Base.Put;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
using TraktApiSharp.Objects.Get.Users.Lists;
u... | mit | C# |
71bac467bf355735c4b56e5c0b8e1d70b41c0f00 | Fix CodeFactor | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/AddWallet/ConnectHardwareWalletViewModel.cs | WalletWasabi.Fluent/ViewModels/AddWallet/ConnectHardwareWalletViewModel.cs | using NBitcoin;
using ReactiveUI;
using System.Linq;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Wallets;
namespace WalletWasabi.Fluent.ViewModels.Add... | using NBitcoin;
using ReactiveUI;
using System.Linq;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Wallets;
namespace WalletWasabi.Fluent.ViewModels.Add... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.