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 |
|---|---|---|---|---|---|---|---|---|
18bb3d0b19e07384678bedb769f0b19868e36d18 | Fix event factory parsing of documents | smbc-digital/iag-webapp,smbc-digital/iag-webapp,smbc-digital/iag-webapp | src/StockportWebapp/ContentFactory/EventFactory.cs | src/StockportWebapp/ContentFactory/EventFactory.cs | using StockportWebapp.Models;
using StockportWebapp.Parsers;
using StockportWebapp.Utils;
namespace StockportWebapp.ContentFactory
{
public class EventFactory
{
private readonly ISimpleTagParserContainer _simpleTagParserContainer;
private readonly MarkdownWrapper _markdownWrapper;
priv... | using StockportWebapp.Models;
using StockportWebapp.Parsers;
using StockportWebapp.Utils;
namespace StockportWebapp.ContentFactory
{
public class EventFactory
{
private readonly ISimpleTagParserContainer _simpleTagParserContainer;
private readonly MarkdownWrapper _markdownWrapper;
priv... | mit | C# |
af9c5e3102fc2e135d7b3d1b86890ee6517d879f | Add AssemblyVersion to AssemblyInfo.cs Fix #73 | mganss/HtmlSanitizer | src/HtmlSanitizer/Properties/AssemblyInfo.cs | src/HtmlSanitizer/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
#if !NETSTANDARD
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)... | using System.Reflection;
using System.Runtime.InteropServices;
#if !NETSTANDARD
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)... | mit | C# |
c2b794008c9203df640e5a46810fc22d8461356a | add a space in GameStateUtilities think i shoud commit [develop] | GGProductions/LetterStorm,GGProductions/LetterStorm,GGProductions/LetterStorm | Assets/Classes/GGProductions/LetterStorm/Utilities/GameStateUtilities.cs | Assets/Classes/GGProductions/LetterStorm/Utilities/GameStateUtilities.cs | using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using GGProductions.LetterStorm.Data;
using UnityEngine;
namespace GGProductions.LetterStorm.Utilities
{
public static class GameStateUtilities
{
#region Load State ----------------------------------------------------
/// <summary>
/// Lo... | using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using GGProductions.LetterStorm.Data;
using UnityEngine;
namespace GGProductions.LetterStorm.Utilities
{
public static class GameStateUtilities
{
#region Load State ----------------------------------------------------
/// ... | mit | C# |
4bf23d4e440ee5912a5723c807adb4e70019ca03 | remove discus from drafts | boyarincev/boyarincev.net,boyarincev/boyarincev.net | Snow/themes/snowbyte/_layouts/post.cshtml | Snow/themes/snowbyte/_layouts/post.cshtml | @inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<Snow.ViewModels.PostViewModel>
@using System.Collections.Generic
@{
Layout = "default.cshtml";
}
<div class="post">
<h1>@Model.Title</h1>
<div class="meta">
<p class="posted">@Model.PostDate.ToString("dd MMM yyyy")</p>
<ul class="categor... | @inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<Snow.ViewModels.PostViewModel>
@using System.Collections.Generic
@{
Layout = "default.cshtml";
}
<div class="post">
<h1>@Model.Title</h1>
<div class="meta">
<p class="posted">@Model.PostDate.ToString("dd MMM yyyy")</p>
<ul class="categor... | mit | C# |
5075aba09bdd84ed62074b10de1a9ced5617817f | clear up more Tokenizer.setReader/TokenStream.reset issues | laimis/lucenenet,jeme/lucenenet,NightOwl888/lucenenet,NightOwl888/lucenenet,jeme/lucenenet,jpsullivan/lucenenet,jeme/lucenenet,NightOwl888/lucenenet,laimis/lucenenet,sisve/lucenenet,jeme/lucenenet,apache/lucenenet,jpsullivan/lucenenet,mdissel/lucene.net,mdissel/lucene.net,sisve/lucenenet,apache/lucenenet,zmaruo/lucenen... | src/contrib/Spatial/Prefix/PrefixCellsTokenizer.cs | src/contrib/Spatial/Prefix/PrefixCellsTokenizer.cs | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | apache-2.0 | C# |
012d16775c6155016a36f76557dfc147238d23ae | update startup to dotnetapp2.0 | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Api/Startup.cs | src/FilterLists.Api/Startup.cs | using FilterLists.Api.DependencyInjection.Extensions;
using FilterLists.Data.DependencyInjection.Extensions;
using FilterLists.Services.DependencyInjection.Extensions;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace FilterLists.Ap... | using System.IO;
using FilterLists.Api.DependencyInjection.Extensions;
using FilterLists.Data.DependencyInjection.Extensions;
using FilterLists.Services.DependencyInjection.Extensions;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespa... | mit | C# |
97dc4cc41cfc6217b45826a30b67ab522f7a9db8 | change serie title size | jmirancid/TropicalNet.Topppro,jmirancid/TropicalNet.Topppro,jmirancid/TropicalNet.Topppro | Topppro.WebSite/Views/Shared/Index.cshtml | Topppro.WebSite/Views/Shared/Index.cshtml | @using Topppro.WebSite.Extensions;
@using xFNet.Common.Extensions;
@model IEnumerable<Topppro.Entities.Assn_CategorySerie>
<div class="container">
<!-- CATEGORY -->
<div class="row">
<div class="col">
<span class="text-muted">@ViewContext.RouteData.Values["controller"].ToString().ToUpper(... | @using Topppro.WebSite.Extensions;
@using xFNet.Common.Extensions;
@model IEnumerable<Topppro.Entities.Assn_CategorySerie>
<div class="container">
<!-- CATEGORY -->
<div class="row">
<div class="col">
<span class="text-muted">@ViewContext.RouteData.Values["controller"].ToString().ToUpper(... | mit | C# |
4590409eba8f8e357a7ff702cf098c447d7cd861 | fix compile error | kheiakiyama/speech-eng-functions | SentenceScraping/run.csx | SentenceScraping/run.csx | #r "System.Configuration"
#r "System.Collections"
#r "System.Linq.Expressions"
#load "../QuestionEntity.csx"
using System.Net;
using System.Net.Http;
using System.Configuration;
using System.Linq;
using Newtonsoft.Json;
using Microsoft.Azure;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.T... | #r "System.Configuration"
#r "System.Collections"
#r "System.Linq.Expressions"
#load "../QuestionEntity.csx"
using System.Net;
using System.Net.Http;
using System.Configuration;
using System.Linq;
using Newtonsoft.Json;
using Microsoft.Azure;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.T... | mit | C# |
f910b107a00c5936f43d0016ad53bf124ed4c65f | Remove using. | ryanjfitz/SimpSim.NET | SimpSim.NET/Registers.cs | SimpSim.NET/Registers.cs | using System;
namespace SimpSim.NET
{
[Serializable]
public class Registers
{
[field: NonSerialized]
public event Action<char> ValueWrittenToOutputRegister;
[field: NonSerialized]
public event Action Changed;
private readonly byte[] _array;
public Registers... | using System;
using System.Collections.Specialized;
namespace SimpSim.NET
{
[Serializable]
public class Registers
{
[field: NonSerialized]
public event Action<char> ValueWrittenToOutputRegister;
[field: NonSerialized]
public event Action Changed;
private readonly by... | mit | C# |
f534f750cd7de1b845d2e0909c879fb2bc53db4d | Fix merge | bartdesmet/roslyn,jasonmalinowski/roslyn,shyamnamboodiripad/roslyn,eriawan/roslyn,wvdd007/roslyn,diryboy/roslyn,mavasani/roslyn,physhi/roslyn,bartdesmet/roslyn,CyrusNajmabadi/roslyn,physhi/roslyn,sharwell/roslyn,sharwell/roslyn,shyamnamboodiripad/roslyn,AmadeusW/roslyn,mavasani/roslyn,KevinRansom/roslyn,weltkante/rosly... | src/Features/LanguageServer/Protocol/Handler/DocumentChanges/DidChangeHandler.cs | src/Features/LanguageServer/Protocol/Handler/DocumentChanges/DidChangeHandler.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Composition;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
us... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Composition;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
us... | mit | C# |
1269681906758a11eba126da57ee0b08355095b1 | Build and publish nuget package | RockFramework/Rock.EmbeddedNativeLibrary | src/Properties/AssemblyInfo.cs | src/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("Ro... | 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("Ro... | mit | C# |
c32bf8e4c68239b76584578b733524e8a67651dc | Update xmldoc ref | ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework | osu.Framework/Utils/OrderAttribute.cs | osu.Framework/Utils/OrderAttribute.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
namespace osu.Framework.Utils
{
public static class OrderAttributeUtils
{
/// <summary... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
namespace osu.Framework.Utils
{
public static class OrderAttributeUtils
{
/// <summary... | mit | C# |
7d637691d77ccd7d490beff037ee1166daf022f4 | Use non-guest user ID for non-guest user | smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,ZLima12/osu,UselessToucan/osu,johnneijzen/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,ppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,2yangk23/osu,smoogipoo/osu,2yangk23/osu,DrabWeb/osu,johnneijzen/osu,EVAST9919/osu,DrabWeb/osu,DrabWeb/osu,NeoAdonis/osu,pep... | osu.Game/Online/API/DummyAPIAccess.cs | osu.Game/Online/API/DummyAPIAccess.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Game.Users;
namespace osu.Game.Online.API
{
public class DummyAPIAccess : IAPIProvider
{
public Bindable<User> ... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Game.Users;
namespace osu.Game.Online.API
{
public class DummyAPIAccess : IAPIProvider
{
public Bindable<User> ... | mit | C# |
f3c8cd91f4e87c461b2cee362a84fd096f838d05 | Remove unused method | ppy/osu,smoogipooo/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,ppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu | osu.Game/Screens/Edit/EditorScreen.cs | osu.Game/Screens/Edit/EditorScreen.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
namespace ... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
namespace ... | mit | C# |
5d5bd0222a4d2f10cf90f3b9b72386ae77ca750f | Add oracle InsufficientFunds code (#2037) | AntShares/AntShares | src/neo/Network/P2P/Payloads/OracleResponseCode.cs | src/neo/Network/P2P/Payloads/OracleResponseCode.cs | namespace Neo.Network.P2P.Payloads
{
public enum OracleResponseCode : byte
{
Success = 0x00,
ConsensusUnreachable = 0x10,
NotFound = 0x12,
Timeout = 0x14,
Forbidden = 0x16,
ResponseTooLarge = 0x18,
InsufficientFunds = 0x1a,
Error = 0xff
}
}
| namespace Neo.Network.P2P.Payloads
{
public enum OracleResponseCode : byte
{
Success = 0x00,
NotFound = 0x10,
Timeout = 0x12,
Forbidden = 0x14,
Error = 0xff
}
}
| mit | C# |
1605b4beb842a8e677d469d1c5f4ab197fcab1da | update product name | Sitecore/Sitecore-Instance-Manager | src/SIM.Sitecore9Installer/Properties/AssemblyInfo.cs | src/SIM.Sitecore9Installer/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("SIM... | 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("Win... | mit | C# |
8e728c349737039f39e1994c74f22e862cd2e340 | Remove support for SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE | Cyberboss/tgstation-server,tgstation/tgstation-server,tgstation/tgstation-server,Cyberboss/tgstation-server,tgstation/tgstation-server-tools | src/Tgstation.Server.Host/IO/WindowsSymlinkFactory.cs | src/Tgstation.Server.Host/IO/WindowsSymlinkFactory.cs | using BetterWin32Errors;
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Tgstation.Server.Host.IO
{
/// <summary>
/// <see cref="ISymlinkFactory"/> for windows systems
/// </summary>
sealed class WindowsSymlinkFactory : ISymlinkFactory
{
/// <inheritdoc />
publi... | using BetterWin32Errors;
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Tgstation.Server.Host.IO
{
/// <summary>
/// <see cref="ISymlinkFactory"/> for windows systems
/// </summary>
sealed class WindowsSymlinkFactory : ISymlinkFactory
{
/// <inheritdoc />
publi... | agpl-3.0 | C# |
1b779dae779a469f80d42cbe91c903e0a2bd562c | Use CodeFileSanity as a cake addin. | smoogipooo/osu,EVAST9919/osu,ppy/osu,EVAST9919/osu,DrabWeb/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,UselessToucan/osu,ZLima12/osu,smoogipoo/osu,naoey/osu,DrabWeb/osu,DrabWeb/osu,ZLima12/osu,johnneijzen/osu,smoogipoo/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu-new,2yangk23/osu,naoey/... | build.cake | build.cake | #tool "nuget:?package=JetBrains.ReSharper.CommandLineTools"
#tool "nuget:?package=NVika.MSBuild"
#addin "nuget:?package=CodeFileSanity"
var NVikaToolPath = GetFiles("./tools/NVika.MSBuild.*/tools/NVika.exe").First();
///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
/////////... | #tool "nuget:?package=JetBrains.ReSharper.CommandLineTools"
#tool "nuget:?package=NVika.MSBuild"
var NVikaToolPath = GetFiles("./tools/NVika.MSBuild.*/tools/NVika.exe").First();
var CodeFileSanityToolPath = DownloadFile("https://github.com/peppy/CodeFileSanity/releases/download/v0.2.5/CodeFileSanity.exe");
///////////... | mit | C# |
5e8e059c4e962200307c81ead893d28768d775bf | Add NuGet package restore to the cake file | madelson/MedallionShell | build.cake | build.cake | #tool "nuget:?package=xunit.runner.console"
var target = Argument("target", "Default");
Task("RestoreNuGetPackages")
.Does(() =>
{
NuGetRestore("MedallionShell.sln");
});
Task("CompileSampleCommand")
.IsDependentOn("RestoreNuGetPackages")
.Does(() => {
MSBuild("SampleCommand/SampleCommand.csproj");
});
... | #tool "nuget:?package=xunit.runner.console"
var target = Argument("target", "Default");
Task("CompileSampleCommand")
.Does(() => {
MSBuild("SampleCommand/SampleCommand.csproj");
});
Task("CompileNetCore")
.Does(() =>
{
DotNetCoreBuild("MedallionShell.NetCore");
});
Task("TestNetCore")
.IsDependentOn("Comp... | mit | C# |
518bfbb5bf8bfdd4c92d38701b293e6b42291235 | Fix for appveyor script | ipvalverde/EPPlus.DataExtractor | build.cake | build.cake | #tool "nuget:?package=GitVersion.CommandLine"
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////... | #tool "nuget:?package=GitVersion.CommandLine"
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////... | mit | C# |
1659df393ee634e90d49409ef06437e4b3a73a22 | Implement loop to find projects | syedhassaanahmed/aspnet-core-crud-demo,syedhassaanahmed/aspnet-core-crud-demo,syedhassaanahmed/aspnet-core-crud-demo | build.cake | build.cake | #tool "nuget:?package=GitVersion.CommandLine"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var framework = Argument("framework", "netcoreapp1.1");
var outputDir = "./artifacts/";
var artifactName = "artifact.zip";
var projectPath = "./AspNetCore.CrudDemo";
var ... | #tool "nuget:?package=GitVersion.CommandLine"
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var framework = Argument("framework", "netcoreapp1.1");
var outputDir = "./artifacts/";
var artifactName = "artifact.zip";
var projectPath = "./AspNetCore.CrudDemo";
var ... | mit | C# |
bbbe93094af65115c9d2e47689b20e2f7dc2af11 | Load GitContextPackage in UICONTEXT.RepositoryOpen | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.VisualStudio/GitContextPackage.cs | src/GitHub.VisualStudio/GitContextPackage.cs | using System;
using System.Threading;
using System.Runtime.InteropServices;
using GitHub.Exports;
using GitHub.Services;
using Microsoft.VisualStudio.Shell;
using Task = System.Threading.Tasks.Task;
using static Microsoft.VisualStudio.VSConstants;
namespace GitHub.VisualStudio
{
/// <summary>
/// This package... | using System;
using System.Threading;
using System.Runtime.InteropServices;
using GitHub.Exports;
using GitHub.Services;
using Microsoft.VisualStudio.Shell;
using Task = System.Threading.Tasks.Task;
namespace GitHub.VisualStudio
{
/// <summary>
/// This package creates a custom UIContext <see cref="Guids.UICo... | mit | C# |
07836b8ec5bce26156421a06abe5ddbc4493a31d | Add overload SerializeToXml with object type | diadoc/diadocsdk-csharp,halex2005/diadocsdk-csharp,diadoc/diadocsdk-csharp,halex2005/diadocsdk-csharp | src/XmlSerializerExtensions.cs | src/XmlSerializerExtensions.cs | using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using JetBrains.Annotations;
namespace Diadoc.Api
{
public static class XmlSerializerExtensions
{
public static byte[] SerializeToXml<T>(this T @object)
{
var serializer = new XmlSerializer(typeof(T));
... | using System.IO;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using JetBrains.Annotations;
namespace Diadoc.Api
{
public static class XmlSerializerExtensions
{
public static byte[] SerializeToXml<T>(this T @object)
{
var serializer = new XmlSerializer(typeof(T));
... | mit | C# |
9d7d2998ab82e8d837d720dedf324a6a0c484667 | Clean code | anychart-integrations/asp-net-core-mvc-mysql-template | Models/FruitDBContext.cs | Models/FruitDBContext.cs | using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using MySql.Data.MySqlClient;
using System.Collections.Generic;
namespace asp_net_core_mvc_mysql_template.Models
{
public class FruitDBContext
{
public string ConnectionString { get; set; }
... | using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using MySql.Data.MySqlClient;
using System.Collections.Generic;
namespace asp_net_core_mvc_mysql_template.Models
{
public class FruitDBContext
{
public string ConnectionString { get; set; }
... | apache-2.0 | C# |
67fe207480300e0cd28e67fb88c6e12fd422340a | Update to version 1.6.1. | darrencauthon/AutoMoq,darrencauthon/AutoMoq,darrencauthon/AutoMoq | src/AutoMoq/Properties/AssemblyInfo.cs | src/AutoMoq/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("AutoMoq")]
[assembly: AssemblyDes... | 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("AutoMoq")]
[assembly: AssemblyDes... | mit | C# |
8a2136e021ecc0590f6932fe6026532a7e142918 | Add CoordinateSystem property to IFrameBuffer. | eylvisaker/AgateLib | AgateLib/DisplayLib/IFrameBuffer.cs | AgateLib/DisplayLib/IFrameBuffer.cs | using AgateLib.Geometry;
using System;
namespace AgateLib.DisplayLib
{
/// <summary>
/// This interface is implemented by the FrameBuffer class. Its main purpose is
/// to allow you to create a fake object implementing the interface in order to
/// write unit tests for drawing code.
/// </summary>
publ... | using AgateLib.Geometry;
using System;
namespace AgateLib.DisplayLib
{
/// <summary>
/// This interface is implemented by the FrameBuffer class. Its main purpose is
/// to allow you to create a fake object implementing the interface in order to
/// write unit tests for drawing code.
/// </summary>
publ... | mit | C# |
5b2c1d497c6a7b01b48f33c12b803aae2b477d98 | fix redirect url | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EAS.Api/Controllers/EmployerUserController.cs | src/SFA.DAS.EAS.Api/Controllers/EmployerUserController.cs | using System.Threading.Tasks;
using System.Web.Http;
using SFA.DAS.EAS.Account.Api.Attributes;
using SFA.DAS.EAS.Domain.Configuration;
namespace SFA.DAS.EAS.Account.Api.Controllers
{
[RoutePrefix("api/user/{userRef}")]
public class EmployerUserController : ApiController
{
private readonly Employer... | using System.Threading.Tasks;
using System.Web.Http;
using SFA.DAS.EAS.Account.Api.Attributes;
using SFA.DAS.EAS.Domain.Configuration;
namespace SFA.DAS.EAS.Account.Api.Controllers
{
[RoutePrefix("api/user/{userRef}")]
public class EmployerUserController : ApiController
{
private readonly Employer... | mit | C# |
b1642880cf0a3ce612e86f4770afc8a4ba1a15be | Fix build script test path | stormpath/stormpath-dotnet-owin-middleware | build.cake | build.cake | var configuration = Argument("configuration", "Debug");
Task("Clean")
.Does(() =>
{
CleanDirectory("./artifacts/");
});
Task("Restore")
.Does(() =>
{
DotNetCoreRestore();
});
Task("Build")
.Does(() =>
{
DotNetCoreBuild("./src/**/project.json", new DotNetCoreBuildSettings
{
Configuration = co... | var configuration = Argument("configuration", "Debug");
Task("Clean")
.Does(() =>
{
CleanDirectory("./artifacts/");
});
Task("Restore")
.Does(() =>
{
DotNetCoreRestore();
});
Task("Build")
.Does(() =>
{
DotNetCoreBuild("./src/**/project.json", new DotNetCoreBuildSettings
{
Configuration = co... | apache-2.0 | C# |
1da070c185c27cac352331edc86f951b12fe115f | Add GetOrAdd IEntityRef extension methods | copygirl/EntitySystem | src/IEntityRef.cs | src/IEntityRef.cs | using System;
using System.Collections.Generic;
using EntitySystem.Utility;
namespace EntitySystem
{
public interface IEntityRef
{
/// <summary> Returns the Entity value associated with this entity reference, if any. </summary>
Option<Entity> Entity { get; }
/// <summary> Returns an enumerable of all of thi... | using System.Collections.Generic;
using EntitySystem.Utility;
namespace EntitySystem
{
public interface IEntityRef
{
/// <summary> Returns the Entity value associated with this entity reference, if any. </summary>
Option<Entity> Entity { get; }
/// <summary> Returns an enumerable of all of this entity's com... | mit | C# |
b1913fd6c25f8866e65de069243edd8fbe1586dc | Add assembly attribute to get rid of warnings | joemcbride/graphql-dotnet,joemcbride/graphql-dotnet,graphql-dotnet/graphql-dotnet,plecong/graphql-dotnet,dNetGuru/graphql-dotnet,graphql-dotnet/graphql-dotnet,alexmcmillan/graphql-dotnet,alexmcmillan/graphql-dotnet,graphql-dotnet/graphql-dotnet,plecong/graphql-dotnet,dNetGuru/graphql-dotnet | src/GraphQL/Properties/AssemblyInfo.cs | src/GraphQL/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
[assembly: AssemblyTitle("GraphQL")]
[assembly: AssemblyProduct("GraphQL")]
[assembly: AssemblyDescription("GraphQL for .NET")]
[assembly: AssemblyCopyright("Copyright 2015-2016 Joseph T. McBride, et al. All rights reserved.")]
[assembly: AssemblyVersion("0.8.2.0")]
[assembly: A... | using System.Reflection;
[assembly: AssemblyTitle("GraphQL")]
[assembly: AssemblyProduct("GraphQL")]
[assembly: AssemblyDescription("GraphQL for .NET")]
[assembly: AssemblyCopyright("Copyright 2015-2016 Joseph T. McBride, et al. All rights reserved.")]
[assembly: AssemblyVersion("0.8.2.0")]
[assembly: AssemblyFileVer... | mit | C# |
1247387731c364972fc1a2fff9e0f3c61ea15dbc | fix js 404 error | joeaudette/cloudscribe.SimpleContent,joeaudette/cloudscribe.SimpleContent | src/cloudscribe.SimpleContent.Web/Views/Page/Index.cshtml | src/cloudscribe.SimpleContent.Web/Views/Page/Index.cshtml | @model cloudscribe.SimpleContent.Web.ViewModels.PageViewModel
@using cloudscribe.SimpleContent.Models
@using cloudscribe.SimpleContent.Web
@using cloudscribe.SimpleContent.Web.TagHelpers
@inject IRoleSelectorProperties roleSelector
@section Meta {
@{await Html.RenderPartialAsync("MetaPartial", Model); }
}
@sectio... | @model cloudscribe.SimpleContent.Web.ViewModels.PageViewModel
@using cloudscribe.SimpleContent.Models
@using cloudscribe.SimpleContent.Web
@using cloudscribe.SimpleContent.Web.TagHelpers
@inject IRoleSelectorProperties roleSelector
@section Meta {
@{await Html.RenderPartialAsync("MetaPartial", Model); }
}
@sectio... | apache-2.0 | C# |
51e1f387dda346882516d7b6bca62c41eb4669a0 | Comment out debugging code | feliwir/openSage,feliwir/openSage | src/OpenSage.Game.Tests/TestUtility.cs | src/OpenSage.Game.Tests/TestUtility.cs | using System;
using System.IO;
namespace OpenSage.Data.Tests
{
internal static class TestUtility
{
public static void DoRoundtripTest<T>(
Func<Stream> getOriginalStream,
Func<Stream, T> parseCallback,
Action<T, Stream> serializeCallback,
bool skipRoundtr... | using System;
using System.IO;
namespace OpenSage.Data.Tests
{
internal static class TestUtility
{
public static void DoRoundtripTest<T>(
Func<Stream> getOriginalStream,
Func<Stream, T> parseCallback,
Action<T, Stream> serializeCallback,
bool skipRoundtr... | mit | C# |
4d8f4673da8a648ab060ef5cef5abb1662c2382e | upgrade version to 0.3.0. | nabehiro/TableIO | src/TableIO/Properties/AssemblyInfo.cs | src/TableIO/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TableIO")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: Assemb... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("TableIO")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: Assemb... | apache-2.0 | C# |
24f850656773747eb7ad9d94b1eb343110ea6148 | Update game screen to say Game instead of Session | aaron-lillywhite/planet-wars-competition,reichlew/planet-wars-competition,aaron-lillywhite/planet-wars-competition,aaron-lillywhite/planet-wars-competition,reichlew/planet-wars-competition,reichlew/planet-wars-competition | PlanetWars/Views/Home/Game.cshtml | PlanetWars/Views/Home/Game.cshtml | @model PlanetWars.Models.GameSession
@{
ViewBag.Title = "Game Session #" + Model.GameId;
ViewBag.FullWidth = true;
}
<div class="game-container">
<div class="game-info">
<h2 id="game-id">Game #@Model.GameId</h2>
<h3 id="game-turns">Turn: <span>(Waiting for players...)</span></h3>
<... | @model PlanetWars.Models.GameSession
@{
ViewBag.Title = "Game Session #" + Model.GameId;
ViewBag.FullWidth = true;
}
<div class="game-container">
<div class="game-info">
<h2 id="game-id">Session #@Model.GameId</h2>
<h3 id="game-turns">Turn: <span>(Waiting for players...)</span></h3>
... | bsd-3-clause | C# |
ce7131d6141c21ec789c944ac3b8c977d0ccb1b2 | fix code format | marihachi/MSharp | src/MSharp/Misskey.cs | src/MSharp/Misskey.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Json;
namespace MSharp
{
public class Misskey
{
public string AppKey { private set; get; }
public string UserKey { private set; get; }
public string UserId { private set; get; }
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Json;
namespace MSharp
{
public class Misskey
{
public string AppKey { private set; get; }
public string UserKey { private set; get; }
public string UserId { private set; get; }
p... | mit | C# |
769b3ca98d5af375149c6fccdd559602845bb7ba | Update Program.cs | sanjaysingh/mabweb,sanjaysingh/mabweb,sanjaysingh/mabweb,sanjaysingh/mabweb | src/MabWeb/Program.cs | src/MabWeb/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace MabWeb
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.U... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
namespace MabWeb
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.U... | mit | C# |
3b53c592f2d52eb35ce089235722fbc859996363 | Fix to CollisionList Contains methods not comparing Subjects | lucas-miranda/Raccoon | Raccoon/Core/Physics/CollisionList.cs | Raccoon/Core/Physics/CollisionList.cs | using System.Collections.Generic;
namespace Raccoon {
public class CollisionList<T> : List<CollisionInfo<T>> {
public void Add(T subject, params Contact[] contacts) {
Add(new CollisionInfo<T>(subject, contacts));
}
public void Add(T subject, ContactList contacts) {
... | using System.Collections.Generic;
namespace Raccoon {
public class CollisionList<T> : List<CollisionInfo<T>> {
public void Add(T subject, params Contact[] contacts) {
Add(new CollisionInfo<T>(subject, contacts));
}
public void Add(T subject, ContactList contacts) {
... | mit | C# |
8b83fd271b2a1403bdcbbded9241c9ac6f054a52 | Update AssemblyInfo.cs | Jarlotee/xCache | src/xCache/Properties/AssemblyInfo.cs | src/xCache/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("xC... | 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("xC... | mit | C# |
d5173fd2ae63b8a11edbf226907a7dadd1d54933 | Read api key from env setting | novanet/ndc2017,novanet/ndc2017,novanet/ndc2017,novanet/ndc2017 | src/Upload/Security/ApiKeyValidator.cs | src/Upload/Security/ApiKeyValidator.cs | using System;
using System.Threading.Tasks;
namespace Upload.Security
{
public class ApiKeyValidator : IApiKeyValidator
{
public Task<bool> ValidateAsync(string apiKey)
{
return Task.FromResult(apiKey == Environment.GetEnvironmentVariable("APPSETTING_ApiKey"));
}
}
}
| using System.Threading.Tasks;
namespace Upload.Security
{
public class ApiKeyValidator : IApiKeyValidator
{
public Task<bool> ValidateAsync(string apiKey)
{
return Task.FromResult(true);
}
}
}
| mit | C# |
ba8e94675b021e85e10e7469c8fc76bd9cf560a2 | create 5.05 version | elliotritchie/NES | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | u s i n g S y s t e m ;
u s i n g S y s t e m . R e f l e c t i o n ;
u s i n g S y s t e m . R u n t i m e . C o m p i l e r S e r v i c e s ;
u s i n g S y s t e m . R u n t i m e . I n t e r o p S e r v i c e s ;
[ a s s e m b l y : A s s e m b l y C o m p a n y A t t r i b u t e ( " E ... | u s i n g S y s t e m ;
u s i n g S y s t e m . R e f l e c t i o n ;
u s i n g S y s t e m . R u n t i m e . C o m p i l e r S e r v i c e s ;
u s i n g S y s t e m . R u n t i m e . I n t e r o p S e r v i c e s ;
[ a s s e m b l y : A s s e m b l y C o m p a n y A t t r i b u t e ( " E ... | mit | C# |
96140eed7bb50b35f35b6772529774860f4607cf | Add deploy experiment function to left-click on button | DMagic1/KSP_Vessel_Manager | Source/NoteUIObjects/NoteExpButton.cs | Source/NoteUIObjects/NoteExpButton.cs | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
using BetterNotes.NoteClasses;
namespace BetterNotes.NoteUIObjects
{
public class NoteExpButton : NoteUIObjectBase
{
private NotesExperiment expObject;
private bool highlight;
private void Start()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
using BetterNotes.NoteClasses;
namespace BetterNotes.NoteUIObjects
{
public class NoteExpButton : NoteUIObjectBase
{
private NotesExperiment expObject;
private bool highlight;
private void Start()
{
... | mit | C# |
161150e50a52f3f99023298dab29a5937cab7fea | Fix comment on caching disco document. #1710 | chrisowhite/IdentityServer4,chrisowhite/IdentityServer4,IdentityServer/IdentityServer4,MienDev/IdentityServer4,MienDev/IdentityServer4,chrisowhite/IdentityServer4,IdentityServer/IdentityServer4,IdentityServer/IdentityServer4,IdentityServer/IdentityServer4,MienDev/IdentityServer4,MienDev/IdentityServer4 | src/IdentityServer4/Configuration/DependencyInjection/Options/DiscoveryOptions.cs | src/IdentityServer4/Configuration/DependencyInjection/Options/DiscoveryOptions.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 System.Collections.Generic;
namespace IdentityServer4.Configuration
{
/// <summary>
/// Options class to configure discovery e... | // 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 System.Collections.Generic;
namespace IdentityServer4.Configuration
{
/// <summary>
/// Options class to configure discovery e... | apache-2.0 | C# |
ec60f8afd32b9f16b2f266d4e8aa9d3557d3d8dc | Remove apostrophe in parse error description | sebastienros/esprima-dotnet,sebastienros/esprima-dotnet | src/Esprima/ErrorHandler.cs | src/Esprima/ErrorHandler.cs | using System.Collections.Generic;
namespace Esprima
{
public class ErrorHandler : IErrorHandler
{
public IList<ParserException> Errors { get; }
public bool Tolerant { get; set; }
public string Source { get; set; }
public ErrorHandler()
{
Errors = new List<... | using System.Collections.Generic;
namespace Esprima
{
public class ErrorHandler : IErrorHandler
{
public IList<ParserException> Errors { get; }
public bool Tolerant { get; set; }
public string Source { get; set; }
public ErrorHandler()
{
Errors = new List<... | bsd-3-clause | C# |
cbf28388c0f8990c2381e643ba5b8ad07768c8c2 | Add helper WebRequest extensions, useful when playing with REST-ful APIs | mono/ServiceStack.Text,NServiceKit/NServiceKit.Text,NServiceKit/NServiceKit.Text,gerryhigh/ServiceStack.Text,gerryhigh/ServiceStack.Text,mono/ServiceStack.Text | src/ServiceStack.Text/WebRequestExtensions.cs | src/ServiceStack.Text/WebRequestExtensions.cs | using System;
using System.IO;
using System.Net;
namespace ServiceStack.Text
{
public static class WebRequestExtensions
{
public static string GetJsonFromUrl(this string url)
{
return url.GetStringFromUrl("application/json");
}
public static string GetStringFromUrl... | using System.IO;
using System.Net;
namespace ServiceStack.Text
{
public static class WebRequestExtensions
{
public static string GetJsonFromUrl(this string url)
{
return url.GetStringFromUrl("application/json");
}
public static string GetStringFromUrl(this string u... | bsd-3-clause | C# |
35896c62723785d6a0a85f5d7b976a2174cc1ce8 | Update Usage.cs | SimonCropp/NServiceBus.MessagePack | src/Tests/Snippets/Usage.cs | src/Tests/Snippets/Usage.cs | using MessagePack.Resolvers;
using NServiceBus;
using MessagePackSerializer = NServiceBus.MessagePack.MessagePackSerializer;
class Usage
{
Usage(EndpointConfiguration configuration)
{
#region MessagePackSerialization
configuration.UseSerialization<MessagePackSerializer>();
#endregion... | using MessagePack.Resolvers;
using NServiceBus;
using MessagePackSerializer = NServiceBus.MessagePack.MessagePackSerializer;
class Usage
{
Usage(EndpointConfiguration endpointConfiguration)
{
#region MessagePackSerialization
endpointConfiguration.UseSerialization<MessagePackSerializer>();
... | mit | C# |
301f30f8e3e38c35a7df8f7bdb4509add6757c14 | Fix failing test after custom ProblemDetails type was removed | khellang/Middleware,khellang/Middleware | test/ProblemDetails.Tests/ProblemDetailsExceptionTests.cs | test/ProblemDetails.Tests/ProblemDetailsExceptionTests.cs | using Hellang.Middleware.ProblemDetails;
using Xunit;
using ReasonPhrases = Microsoft.AspNetCore.WebUtilities.ReasonPhrases;
namespace ProblemDetails.Tests
{
public class ProblemDetailsExceptionTests
{
private static Microsoft.AspNetCore.Mvc.ProblemDetails CreateProblemDetails()
{
... | using Hellang.Middleware.ProblemDetails;
using Xunit;
using ReasonPhrases = Microsoft.AspNetCore.WebUtilities.ReasonPhrases;
namespace ProblemDetails.Tests
{
public class ProblemDetailsExceptionTests
{
private static Microsoft.AspNetCore.Mvc.ProblemDetails CreateProblemDetails()
{
... | mit | C# |
bc2e48c3422f19777d32edd035ca5a1f571ef794 | Update API name in obsolete message (#35373) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Components/Web/src/Forms/InputFile/RemoteBrowserFileStreamOptions.cs | src/Components/Web/src/Forms/InputFile/RemoteBrowserFileStreamOptions.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.Versioning;
namespace Microsoft.AspNetCore.Components.Forms
{
/// <summary>
/// Repesents configurable options for <see cref="BrowserFileS... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.Versioning;
namespace Microsoft.AspNetCore.Components.Forms
{
/// <summary>
/// Repesents configurable options for <see cref="BrowserFileS... | apache-2.0 | C# |
fc5a5946f054c5fe941f50706fb351ab55052147 | Fix tests | tom-englert/TomsToolbox | TomsToolbox.Composition.Tests/MetadataReaderTest.cs | TomsToolbox.Composition.Tests/MetadataReaderTest.cs | namespace TomsToolbox.Composition.Tests
{
using System.Runtime.CompilerServices;
using ApprovalTests;
using ApprovalTests.Reporters;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
[TestClass]
[UseReporter(typeof(DiffReporter))]
public class MetadataReader... | namespace TomsToolbox.Composition.Tests
{
using ApprovalTests;
using ApprovalTests.Reporters;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
[TestClass]
[UseReporter(typeof(DiffReporter))]
public class MetadataReaderTest
{
[TestMethod]
publ... | mit | C# |
84a6516a0e72ae5c4fc650c778d5907f0d73dfb1 | Clean up code for SQLite connection | rowanmiller/UnicornStore,rowanmiller/UnicornStore,rowanmiller/UnicornStore | UnicornPacker/UnicornPacker/Models/OrdersContext.cs | UnicornPacker/UnicornPacker/Models/OrdersContext.cs | using Microsoft.Data.Entity;
using System;
using System.IO;
using Windows.Storage;
namespace UnicornPacker.Models
{
public class OrdersContext : DbContext
{
public DbSet<Order> Orders { get; set; }
public DbSet<OrderLine> OrderLines { get; set; }
protected override void OnConfiguring(... | using Microsoft.Data.Entity;
using System;
using System.IO;
using Windows.Storage;
namespace UnicornPacker.Models
{
public class OrdersContext : DbContext
{
public DbSet<Order> Orders { get; set; }
public DbSet<OrderLine> OrderLines { get; set; }
protected override void OnConfiguring(... | apache-2.0 | C# |
be8e1314f70959cfb2efa82da5f1789f8dcc2bb2 | Update GhostTeleport.cs | krille90/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation,fomalsd/unitystation | UnityProject/Assets/Scripts/Player/GhostTeleport.cs | UnityProject/Assets/Scripts/Player/GhostTeleport.cs | using System.Collections;
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Teleporting Ghosts to other players
/// </summary>
public class GhostTeleport : MonoBehaviour
{
//Dictionary of UniqueKey(int), data
public IDictionary<int, dynamic> MobList = new Dictionary<int, d... | using System.Collections;
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// Teleporting Ghosts to other players
/// </summary>
public class GhostTeleport : MonoBehaviour
{
//Dictionary of UniqueKey(int), data
public IDictionary<int, dynamic> MobList = new Dictionary<int, d... | agpl-3.0 | C# |
71d00720b168ebbd5f1769b43511f79ae66c400b | Read sound until the end of file correctly | SteamDatabase/ValveResourceFormat | ValveResourceFormat/Resource/ResourceTypes/Sound.cs | ValveResourceFormat/Resource/ResourceTypes/Sound.cs | using System;
using System.IO;
using System.Text;
namespace ValveResourceFormat.ResourceTypes
{
public class Sound : Blocks.ResourceData
{
private BinaryReader Reader;
private NTRO NTROBlock;
public override void Read(BinaryReader reader, Resource resource)
{
Reade... | using System;
using System.IO;
using System.Text;
namespace ValveResourceFormat.ResourceTypes
{
public class Sound : Blocks.ResourceData
{
private BinaryReader Reader;
private long DataOffset;
private NTRO NTROBlock;
public override void Read(BinaryReader reader, Resource reso... | mit | C# |
dda9f832a7caf375b6e171e505bd2e06c5042c00 | Add MiniLabel & Prefix | laicasaane/VFW | Assets/Plugins/Editor/Vexe/GUIs/BaseGUI/Controls/Labels.cs | Assets/Plugins/Editor/Vexe/GUIs/BaseGUI/Controls/Labels.cs | using UnityEditor;
using UnityEngine;
namespace Vexe.Editor.GUIs
{
public abstract partial class BaseGUI
{
public void NumericLabel(int n, GUIStyle style)
{
Label(n + " ", style, kNumericLabel);
}
public void NumericLabel(int n)
{
NumericLabel(n, EditorStyles.miniLabel);
}
public void NumericTe... | using UnityEditor;
using UnityEngine;
namespace Vexe.Editor.GUIs
{
public abstract partial class BaseGUI
{
public void NumericLabel(int n, GUIStyle style)
{
Label(n + "- ", style, new Layout { width = kNumericLabelWidth });
}
public void NumericLabel(int n)
{
NumericLabel(n, EditorStyles.miniLabel);... | mit | C# |
44f0a1a89d891f8cc674520e7ad3ff2a88b4febe | Remove unnecessary check for SharpZipLib dll. | cloudfoundry-incubator/IronFrame,cloudfoundry/IronFrame,cloudfoundry/IronFrame,cloudfoundry-incubator/if_warden,cloudfoundry-incubator/if_warden,stefanschneider/IronFrame,cloudfoundry-incubator/IronFrame,stefanschneider/IronFrame | IronFoundry.Container/ContainerHostDependencyHelper.cs | IronFoundry.Container/ContainerHostDependencyHelper.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
namespace IronFoundry.Container
{
public class ContainerHostDependencyHelper
{
const string ContainerHostAssemblyName = "IronFoundry.Container.Host";
readonly Assembly containerHostAss... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
namespace IronFoundry.Container
{
public class ContainerHostDependencyHelper
{
const string ContainerHostAssemblyName = "IronFoundry.Container.Host";
readonly Assembly containerHostAss... | apache-2.0 | C# |
36132282f9aab15dcca84d4e79492b6e80eaceef | Update version | studio-nine/Nine.Application,yufeih/Nine.Application | src/Portable/AssemblyInfo.cs | src/Portable/AssemblyInfo.cs | using System.Resources;
using System.Reflection;
[assembly: AssemblyTitle("Nine.Application")]
[assembly: AssemblyDescription("A portable way of accessing common device functionality for client applications")]
[assembly: AssemblyCompany("Studio Nine")]
[assembly: AssemblyProduct("Nine.Application")]
[assembly: Assemb... | using System.Resources;
using System.Reflection;
[assembly: AssemblyTitle("Nine.Application")]
[assembly: AssemblyDescription("A portable way of accessing common device functionality for client applications")]
[assembly: AssemblyCompany("Studio Nine")]
[assembly: AssemblyProduct("Nine.Application")]
[assembly: Assemb... | mit | C# |
81740239b1cade0e04d09a9732224a3b620373bf | set version to 2.0.0.0 | jittuu/NSupport | NSupport/Properties/AssemblyInfo.cs | NSupport/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("NSupport")]
[assembly: AssemblyDescriptio... | 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("NSupport")]
[assembly: AssemblyDescriptio... | mit | C# |
28dc51279afe0fdbbc77376f16a1051258c8c216 | Allow RulesetConfigCache to return null configs (#5835) | johnneijzen/osu,ppy/osu,2yangk23/osu,smoogipooo/osu,smoogipoo/osu,EVAST9919/osu,UselessToucan/osu,ZLima12/osu,UselessToucan/osu,2yangk23/osu,johnneijzen/osu,ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,EVAST9919/osu,ZLima12/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu... | osu.Game/Rulesets/RulesetConfigCache.cs | osu.Game/Rulesets/RulesetConfigCache.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Concurrent;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
namespace osu.Game... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Concurrent;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
namespace osu.Game... | mit | C# |
f8183e90712b0f46e9595159f728f92092fe1f07 | Bump version to 1.1.3 | rohk/PreMailer.Net,CarterTsai/PreMailer.Net,CodeAnimal/PreMailer.Net,milkshakesoftware/PreMailer.Net,tobio/PreMailer.Net,kendallb/PreMailer.Net | PreMailer.Net/GlobalAssemblyInfo.cs | PreMailer.Net/GlobalAssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]
[assembly: AssemblyProduct("PreMailer.Net")]
[assembly: AssemblyCompany("Milkshake Software")]
[assembly: AssemblyCopyright("Copyright © Milkshake Software 2013")]
[assembly: Ass... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]
[assembly: AssemblyProduct("PreMailer.Net")]
[assembly: AssemblyCompany("Milkshake Software")]
[assembly: AssemblyCopyright("Copyright © Milkshake Software 2011")]
[assembly: Ass... | mit | C# |
560fe1c62b24537da706cc1366a288c9a0c7f09e | Bump development version to v1.5.0 | mdesalvo/RDFSharp | RDFSharp/Properties/AssemblyInfo.cs | RDFSharp/Properties/AssemblyInfo.cs | /*
Copyright 2012-2018 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 ... | /*
Copyright 2012-2018 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 ... | apache-2.0 | C# |
e9dee7d0c4bd37f6661123c0faab1b836d2cca77 | Indent JSON responses | returnString/Servya | Samples/AccountBackend/JsonRoute.cs | Samples/AccountBackend/JsonRoute.cs | using Servya;
using Newtonsoft.Json;
namespace AccountBackend
{
public class JsonRouteAttribute : RouteAttribute
{
private static JsonSerializerSettings JsonSettings = new JsonSerializerSettings
{
Formatting = Formatting.Indented,
};
public override object Transform(object response)
{
return JsonCo... | using Servya;
using Newtonsoft.Json;
namespace AccountBackend
{
public class JsonRouteAttribute : RouteAttribute
{
public override object Transform(object response)
{
return JsonConvert.SerializeObject(response);
}
public override object HandleError(RouteError error)
{
return Transform(new Response... | mit | C# |
a412692658e60bbe2a171585c0a0ce9b2692dda4 | fix pre-release update check ffs | Dalet/140-speedrun-timer,Dalet/140-speedrun-timer,Dalet/140-speedrun-timer | 140-speedrun-timer/Updater.cs | 140-speedrun-timer/Updater.cs | using System;
using System.Collections;
using System.Reflection;
using UnityEngine;
namespace SpeedrunTimerMod
{
internal sealed class Updater : MonoBehaviour
{
const string REPO_URL = "https://raw.githubusercontent.com/Dalet/140-speedrun-timer/";
const string UPDATE_URL = REPO_URL + "master/latestVersion.txt";... | using System;
using System.Collections;
using System.Reflection;
using UnityEngine;
namespace SpeedrunTimerMod
{
internal sealed class Updater : MonoBehaviour
{
const string REPO_URL = "https://raw.githubusercontent.com/Dalet/140-speedrun-timer/";
const string UPDATE_URL = REPO_URL + "master/latestVersion.txt";... | unlicense | C# |
9f1fd0a439ff6043abaf530ff3b3eb3db697ac91 | Fix zero score check | davidebbo/ForumScorer | ForumScorer/index.cshtml | ForumScorer/index.cshtml | @using Newtonsoft.Json;
@{
string dataFile = Server.MapPath("~/App_Data/data.json");
string json = File.ReadAllText(dataFile);
var data = (IEnumerable<dynamic>)JsonConvert.DeserializeObject(json);
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Forum ... | @using Newtonsoft.Json;
@{
string dataFile = Server.MapPath("~/App_Data/data.json");
string json = File.ReadAllText(dataFile);
var data = (IEnumerable<dynamic>)JsonConvert.DeserializeObject(json);
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Forum ... | apache-2.0 | C# |
dce56dabde578b68536375561040c0ce988907e1 | Fix bug on From | HolyNoodle/Utility | HolyNoodle.Utility/HolyNoodle.Utility/Email/EmailHelper.cs | HolyNoodle.Utility/HolyNoodle.Utility/Email/EmailHelper.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
namespace HolyNoodle.Utility.Email
{
public static class EmailHelper
{
public static string Host { get; private set; }
public static int ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
namespace HolyNoodle.Utility.Email
{
public static class EmailHelper
{
public static string Host { get; private set; }
public static int ... | mit | C# |
75f759ab1f2219537bf8f36d037ed182e61615f8 | upgrade the NCharder helper. | ziyunhx/thrinax | Helper/NChardetHelper.cs | Helper/NChardetHelper.cs | using System;
using System.Linq;
using System.Text;
using Thrinax.Data;
namespace Thrinax.Helper
{
public class NChardetHelper
{
/// <summary>
/// Recog the Encoding from byte array.
/// </summary>
/// <param name="bytes">the byte array.</param>
/// <param name="languag... | using System;
using System.Linq;
using System.Text;
using Thrinax.Data;
namespace Thrinax.Helper
{
public class NChardetHelper
{
/// <summary>
/// Recog the Encoding from byte array.
/// </summary>
/// <param name="bytes">the byte array.</param>
/// <param name="languag... | apache-2.0 | C# |
3f5a76d60bcec28ebe91f31945e99dbcd4fd6622 | Fix ShowRules command when specifying an amount of seconds. | 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.Server/Info/ShowRulesCommand.cs | Content.Server/Info/ShowRulesCommand.cs | using Content.Server.Administration;
using Content.Shared.Administration;
using Content.Shared.CCVar;
using Content.Shared.Info;
using Robust.Server.Player;
using Robust.Shared.Configuration;
using Robust.Shared.Console;
using Robust.Shared.IoC;
using Robust.Shared.Network;
namespace Content.Server.Info;
[AdminComma... | using Content.Server.Administration;
using Content.Shared.Administration;
using Content.Shared.CCVar;
using Content.Shared.Info;
using Robust.Server.Player;
using Robust.Shared.Configuration;
using Robust.Shared.Console;
using Robust.Shared.IoC;
using Robust.Shared.Network;
namespace Content.Server.Info;
[AdminComma... | mit | C# |
34478acdf1011ba67017d9f3815175a02dad2c2c | add difficulty to card description #116 | netxph/cards | src/Cards.Web/Views/Cards/Edit.cshtml | src/Cards.Web/Views/Cards/Edit.cshtml | @{
ViewBag.Title = "Edit";
}
@section scripts {
@Scripts.Render("~/bundles/moment")
@Scripts.Render("~/bundles/knockout")
@Scripts.Render("~/bundles/editcard")
}
<section class="edit-section" data-cardid="@ViewBag.CardID" data-bind="with: card" >
<section class="edit-form">
<header>
... | @{
ViewBag.Title = "Edit";
}
@section scripts {
@Scripts.Render("~/bundles/moment")
@Scripts.Render("~/bundles/knockout")
@Scripts.Render("~/bundles/editcard")
}
<section class="edit-section" data-cardid="@ViewBag.CardID" data-bind="with: card" >
<section class="edit-form">
<header>
... | mit | C# |
46424a4a77cb5f88cd2342d05ebab2f0d51eac72 | Add a new baked texure module methid to support baked texturing mesh avatars | TomDataworks/opensim,TomDataworks/opensim,RavenB/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,RavenB/opensim,TomDataworks/opensim,RavenB/opensim,TomDataworks/opensim,TomDataworks/opensim,RavenB/opensim,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC,EriHoss/OpenSim_0.8.2.0_Dev_L... | OpenSim/Region/Framework/Interfaces/IBakedTextureModule.cs | OpenSim/Region/Framework/Interfaces/IBakedTextureModule.cs | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | bsd-3-clause | C# |
14d6ea7f4c2c75c1f0a742949d46ace741015176 | Add missing fields to Part | LordMike/TMDbLib | TMDbLib/Objects/Collections/Part.cs | TMDbLib/Objects/Collections/Part.cs | using System;
using Newtonsoft.Json;
namespace TMDbLib.Objects.Collections
{
public class Part
{
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("adult")]
public bool Adult { get; set; }
[JsonProperty("genre_ids")]
public int[] GenreIds { get; se... | using System;
using Newtonsoft.Json;
namespace TMDbLib.Objects.Collections
{
public class Part
{
[JsonProperty("title")]
public string Title { get; set; }
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("release_date")]
public DateTime? ReleaseDa... | mit | C# |
6dfed28152c551692d2c7cf141e87dbf45c11a6e | Fix connection drop handling. | vtsingaras/SharpOCSP | SharpOCSP/HttpHandler.cs | SharpOCSP/HttpHandler.cs | using System;
using System.IO;
using System.Net;
using System.Threading;
namespace SharpOCSP
{
public class HttpHandler
{
private readonly HttpListener _listener = new HttpListener();
private readonly Func<HttpListenerRequest, byte[]> _responderMethod;
public HttpHandler(string[] prefixes, Func<HttpListenerR... | using System;
using System.IO;
using System.Net;
using System.Threading;
namespace SharpOCSP
{
public class HttpHandler
{
private readonly HttpListener _listener = new HttpListener();
private readonly Func<HttpListenerRequest, byte[]> _responderMethod;
public HttpHandler(string[] prefixes, Func<HttpListenerR... | mit | C# |
6a5379348455bdb6e4b38b09b942222cc3930efe | Fix sections syntax | peterblazejewicz/mdl-app-layouts,peterblazejewicz/mdl-app-layouts | AppLayouts/src/Views/Home/Index.cshtml | AppLayouts/src/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
@section styles {
}
@section scripts {
}
<h1>Hello World!</h1>
| @{
ViewData["Title"] = "Home Page";
}
@styles {
}
@scripts {
}
<h1>Hello World!</h1>
| unlicense | C# |
89cff116a4e94b09347ca44278747433e5c649c2 | tag thinger | shellscape/Gmail-Notifier-Plus,tkpb/Gmail-Notifier-Plus | Application/Properties/AssemblyInfo.cs | Application/Properties/AssemblyInfo.cs | using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: Shellscape.AssemblyResourceNamespace("GmailNotifierPlus.Resources")]
// General Information about an assembly is controlled through the following
// set of attributes. Change t... | using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: Shellscape.AssemblyResourceNamespace("GmailNotifierPlus.Resources")]
// General Information about an assembly is controlled through the following
// set of attributes. Change th... | mit | C# |
ae0e7e64e854d62e2099599e86a8962d0a41c342 | Revert "Fix error when launching missing files" | danielchalmers/DesktopWidgets | DesktopWidgets/Helpers/ProcessHelper.cs | DesktopWidgets/Helpers/ProcessHelper.cs | #region
using System.Diagnostics;
using System.IO;
using DesktopWidgets.Classes;
#endregion
namespace DesktopWidgets.Helpers
{
internal static class ProcessHelper
{
public static void Launch(string path, string args = "", string startIn = "",
ProcessWindowStyle style = ProcessWindowStyle... | #region
using System.Diagnostics;
using System.IO;
using DesktopWidgets.Classes;
#endregion
namespace DesktopWidgets.Helpers
{
internal static class ProcessHelper
{
public static void Launch(string path, string args = "", string startIn = "",
ProcessWindowStyle style = ProcessWindowStyle... | apache-2.0 | C# |
9f7b69e0736c061f0a5c462c29a6b5b3724043b5 | Update version | uwx/DSharpPlus,Emzi0767/DSharpPlus,parryjacob/DiscordSharp,Luigifan/DiscordSharp,parryjacob/DiscordSharp,Luigifan/DiscordSharp,uwx/DSharpPlus | DiscordSharp/Properties/AssemblyInfo.cs | DiscordSharp/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("Di... | 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("Di... | mit | C# |
298bc4a71486b1d0cd446c77cbfdf67259c439cc | revert back the command prefix | Chris-Johnston/CSSBot | CSSBot/GlobalConfiguration.cs | CSSBot/GlobalConfiguration.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml.Serialization;
namespace CSSBot
{
/// <summary>
/// This class should be used for containing Configuration classes
/// or classes that depend on the configuration and that should
/// be re-used
//... | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Xml.Serialization;
namespace CSSBot
{
/// <summary>
/// This class should be used for containing Configuration classes
/// or classes that depend on the configuration and that should
/// be re-used
//... | mit | C# |
0561a2ba484e659dfed387cf37cc049249ccc399 | add missing default table | splitice/IPTables.Net,splitice/IPTables.Net,splitice/IPTables.Net,splitice/IPTables.Net | IPTables.Net/Iptables/IPTablesTables.cs | IPTables.Net/Iptables/IPTablesTables.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IPTables.Net.Exceptions;
namespace IPTables.Net.Iptables
{
/// <summary>
/// Data to define the default IPTables tables and chains
/// </summary>
internal class IPTablesTables
{
internal static Dict... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IPTables.Net.Exceptions;
namespace IPTables.Net.Iptables
{
/// <summary>
/// Data to define the default IPTables tables and chains
/// </summary>
internal class IPTablesTables
{
internal static Dict... | apache-2.0 | C# |
f7987d5426e934b7ef9bc363e6fb4a856b5766c4 | Change ExpenditureEntry so that it inherits from IExpenditureEntry | xyon1/Expenditure-App | ExpenditureAppModel/ExpenditureEntry.cs | ExpenditureAppModel/ExpenditureEntry.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GeneralUseClasses;
using GeneralUseClasses.Contracts;
namespace ExpenditureAppModel
{
public class ExpenditureEntry : IExpenditureEntry, IComparable<ExpenditureEntry>
{
public bool budgetItem;
public st... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GeneralUseClasses;
namespace ExpenditureAppModel
{
public class ExpenditureEntry : IComparable<ExpenditureEntry>
{
internal bool budgetItem;
internal string dominantTag;
internal List<string> as... | apache-2.0 | C# |
cac464ecdf066135d19470ff0f5de17b8f1f8353 | Change test exception type. | hiscodeness/Flower | Flower.Tests/TestDoubles/TestWorkers.cs | Flower.Tests/TestDoubles/TestWorkers.cs | using System;
using System.Collections.Generic;
using System.Globalization;
namespace Flower.Tests.TestDoubles
{
internal class TestWorkerThrowsException : IWorker
{
public void Execute()
{
throw new Exception(ErrorMessage);
}
public static string ErrorMessage
... | using System;
using System.Collections.Generic;
using System.Globalization;
namespace Flower.Tests.TestDoubles
{
internal class TestWorkerThrowsException : IWorker
{
public void Execute()
{
throw new Exception(ErrorMessage);
}
public static string ErrorMessage
... | mit | C# |
22054fa03a2b232ffa545a586c8ecaa7b8a618bf | fix trace | jefking/King.Service | King.Service/BackoffRunner.cs | King.Service/BackoffRunner.cs | namespace King.Service
{
/// <summary>
/// Simplified Backoff Runner
/// </summary>
public class BackoffRunner : BackoffTask
{
#region Members
/// <summary>
/// Backoff Runs
/// </summary>
protected readonly IDynamicRuns run = null;
#endregion
... | namespace King.Service
{
/// <summary>
/// Simplified Backoff Runner
/// </summary>
public class BackoffRunner : BackoffTask
{
#region Members
/// <summary>
/// Backoff Runs
/// </summary>
protected readonly IDynamicRuns run = null;
#endregion
... | mit | C# |
84e801ec7e528700ead0391c49087b5cd467cc27 | copy headers to new request | Pondidum/Jess,Pondidum/Jess | Jess/Controllers/HydrationController.cs | Jess/Controllers/HydrationController.cs | using System;
using System.Linq;
using System.Net.Http;
using System.Web.Http;
namespace Jess.Controllers
{
public class HydrationController : ApiController
{
public HttpResponseMessage Get(HttpRequestMessage request)
{
var client = new HttpClient();
var proxyRequest = new HttpRequestMessage
{
Req... | using System;
using System.Net.Http;
using System.Web.Http;
namespace Jess.Controllers
{
public class HydrationController : ApiController
{
public HttpResponseMessage Get(HttpRequestMessage request)
{
var client = new HttpClient();
var proxyRequest = new HttpRequestMessage
{
RequestUri = ModifyUri... | lgpl-2.1 | C# |
9e71278ca6834e51a0d798bb87c4f3006127d94c | Bump up assembly version | shuagarw/azure-sdk-for-net,shuagarw/azure-sdk-for-net,DeepakRajendranMsft/azure-sdk-for-net,pomortaz/azure-sdk-for-net,ailn/azure-sdk-for-net,namratab/azure-sdk-for-net,vladca/azure-sdk-for-net,dasha91/azure-sdk-for-net,ScottHolden/azure-sdk-for-net,msfcolombo/azure-sdk-for-net,shahabhijeet/azure-sdk-for-net,ogail/azur... | src/Common/Properties/AssemblyInfo.cs | src/Common/Properties/AssemblyInfo.cs | //
// Copyright (c) Microsoft. 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 applicable la... | //
// Copyright (c) Microsoft. 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 applicable la... | apache-2.0 | C# |
cd4bb3cf02101d013c05c4e0c24dd43c2eb3be4c | Add a `lib` prefix to the DllImport so it works with mono | Tragetaschen/DbusCore | src/Dbus/Connection.Authentication.cs | src/Dbus/Connection.Authentication.cs | using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Dbus
{
public partial class Connection
{
private static async Task authenticate(Stream stream)
{
using (var writer = new StreamWriter(stream, Encoding.ASC... | using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Dbus
{
public partial class Connection
{
private static async Task authenticate(Stream stream)
{
using (var writer = new StreamWriter(stream, Encoding.ASC... | mit | C# |
419a8f1a7ad75e6be638212b8b1a099117efa0fe | bump version to 1.0.1 | mlittle/avaya-moagent-client | AvayaMoagentClient/Properties/AssemblyInfo.cs | AvayaMoagentClient/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... | bsd-2-clause | C# |
ab15fada5375c7993a9d34122a2deaad340cd2b9 | Update Rammus.cs | metaphorce/leaguesharp | MetaSmite/Champions/Rammus.cs | MetaSmite/Champions/Rammus.cs | using System;
using LeagueSharp;
using LeagueSharp.Common;
using SharpDX;
namespace MetaSmite.Champions
{
public static class Rammus
{
internal static Spell champSpell;
private static Menu Config = MetaSmite.Config;
private static double totalDamage;
private static double spell... | using System;
using LeagueSharp;
using LeagueSharp.Common;
using SharpDX;
namespace MetaSmite.Champions
{
public static class Rammus
{
internal static Spell champSpell;
private static Menu Config = MetaSmite.Config;
private static double totalDamage;
private static double spell... | mit | C# |
fab41798e2b8a6bf73e1a95c959f7622d475b36f | Hide disliked remarks query | noordwind/Coolector,noordwind/Collectively.Api,noordwind/Coolector.Api,noordwind/Collectively.Api,noordwind/Coolector,noordwind/Coolector.Api | Coolector.Api/Queries/BrowseRemarks.cs | Coolector.Api/Queries/BrowseRemarks.cs | using System.Collections.Generic;
using Coolector.Common.Types;
namespace Coolector.Api.Queries
{
public class BrowseRemarks : PagedQueryBase
{
public double Latitude { get; set; }
public double Longitude { get; set; }
public double Radius { get; set; }
public string Descriptio... | using System.Collections.Generic;
using Coolector.Common.Types;
namespace Coolector.Api.Queries
{
public class BrowseRemarks : PagedQueryBase
{
public double Latitude { get; set; }
public double Longitude { get; set; }
public double Radius { get; set; }
public string Descriptio... | mit | C# |
6a21f5d2e84195aadaef605a409a2205ad777abb | Update assembly info | Plac3hold3r/PH.Wdullaer.Materialdatetimepicker,Plac3hold3r/PH.Wdullaer.Materialdatetimepicker,Plac3hold3r/PH.Wdullaer.Materialdatetimepicker | src/Binding/Properties/AssemblyInfo.cs | src/Binding/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
using Android;
[assembly: AssemblyTitle("Binding")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Binding")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assemb... | using System.Reflection;
using System.Runtime.InteropServices;
using Android;
[assembly: AssemblyTitle("Binding")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Binding")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assemb... | apache-2.0 | C# |
a9452e7eb3b7af3c3a63c6f2c431be392b52fdbf | Use properties in example code | openmedicus/dbus-sharp,Tragetaschen/dbus-sharp,arfbtwn/dbus-sharp,Tragetaschen/dbus-sharp,mono/dbus-sharp,arfbtwn/dbus-sharp,mono/dbus-sharp,openmedicus/dbus-sharp | examples/TestObjects.cs | examples/TestObjects.cs | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.Collections.Generic;
using NDesk.DBus;
using org.freedesktop.DBus;
public class ManagedDBusTestObjects
{
public static void Main ()
{
Bus bus = Bus.Session;
... | // Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System;
using System.Collections.Generic;
using NDesk.DBus;
using org.freedesktop.DBus;
public class ManagedDBusTestObjects
{
public static void Main ()
{
Bus bus = Bus.Session;
... | mit | C# |
506b22fbae6fc2e60650e3591bcc508fdb44dbbe | move player fixed | patrickpissurno/samecitysameshit | GGJ2016/Assets/Scripts/Service/GameService.cs | GGJ2016/Assets/Scripts/Service/GameService.cs | using UnityEngine;
using System.Collections;
using System;
public class GameService : IGameService
{
private static readonly GameObject playerObject = GameObject.Find(ElementType.Player.ToString());
private static readonly int speed = 5;
private GameView gameView;
private PlayerModel player;
p... | using UnityEngine;
using System.Collections;
using System;
public class GameService : IGameService
{
private static readonly GameObject playerObject = GameObject.Find(ElementType.Player.ToString());
private static readonly int speed = 2;
private GameView gameView;
private PlayerModel player;
p... | cc0-1.0 | C# |
b042f17d2db743ed25d5aa27cbe6e11f2627291e | simplify AddNode method | Voxelgon/Voxelgon,Voxelgon/Voxelgon | Assets/Plugins/Voxelgon/ShipEditor/ShipEditor.cs | Assets/Plugins/Voxelgon/ShipEditor/ShipEditor.cs | using UnityEngine;
using System.Collections;
using Voxelgon;
using Voxelgon.EventSystems;
using Voxelgon.ShipEditor;
namespace Voxelgon.ShipEditor {
public class ShipEditor : MonoBehaviour, IModeChangeHandler {
private Wall tempWall;
private ArrayList nodes = new ArrayList();
public void OnModeChange (Mode... | using UnityEngine;
using System.Collections;
using Voxelgon;
using Voxelgon.EventSystems;
using Voxelgon.ShipEditor;
namespace Voxelgon.ShipEditor {
public class ShipEditor : MonoBehaviour, IModeChangeHandler {
private Wall tempWall;
private ArrayList nodes = new ArrayList();
public void OnModeChange (Mode... | apache-2.0 | C# |
cfa01df3ab82ab8332a8c9e5d2d68006e784cdcd | Set version to 1.100.0 | koliva8245/HeroesMatchTracker,koliva8245/HeroesParserData | HeroesMatchTracker/Properties/AssemblyInfo.cs | HeroesMatchTracker/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: AssemblyTit... | 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: AssemblyTit... | mit | C# |
ae63f3f61552b0c9fc14b33c70484cec92294d76 | Update RasterBandWriters.cs | LANDIS-II-Foundation/Landis-Spatial-Modeling-Library | src/RasterIO.Gdal/RasterBandWriters.cs | src/RasterIO.Gdal/RasterBandWriters.cs | // Contributors:
// James Domingo, Green Code LLC
namespace Landis.RasterIO.Gdal
{
public static class RasterBandWriters
{
public static RasterBandWriter<byte> NewByteWriter(OSGeo.GDAL.Band gdalBand)
{
return new RasterBandWriter<byte>(gdalBand, GdalBandIO.WriteByteBlock);
... | // Copyright 2010 Green Code LLC
// All rights reserved.
//
// The copyright holders license this file under the New (3-clause) BSD
// License (the "License"). You may not use this file except in
// compliance with the License. A copy of the License is available at
//
// http://www.opensource.org/licenses/BSD-3-Cla... | apache-2.0 | C# |
770c1d51bb010cd2a08b2d150fb7c70ba32a5e0f | Add MfA video picker | nexussays/Xamarin.Mobile,xamarin/Xamarin.Mobile,xamarin/Xamarin.Mobile,haithemaraissia/Xamarin.Mobile,orand/Xamarin.Mobile,moljac/Xamarin.Mobile | MonoDroid/Xamarin.Mobile/Media/MediaPicker.cs | MonoDroid/Xamarin.Mobile/Media/MediaPicker.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Android.Content;
namespace Xamarin.Media
{
public class MediaPicker
{
public MediaPicker (Context context)
{
this.context = context;
}
public Task<Photo> PickPhotoAsync()
{
return PickMediaAsync<Photo> ("image/*");
}
publ... | using System;
using System.Threading;
using System.Threading.Tasks;
using Android.Content;
namespace Xamarin.Media
{
public class MediaPicker
{
public MediaPicker (Context context)
{
this.context = context;
}
public Task<Photo> PickPhotoAsync()
{
int id = this.requestId;
if (this.requestId == Int... | apache-2.0 | C# |
61ee0220267dbc83cd27b392e445fc506ebc7f37 | Revert "Fixed subscription payments list endpoint" | Viincenttt/MollieApi,Viincenttt/MollieApi | Mollie.Api/Client/SubscriptionClient.cs | Mollie.Api/Client/SubscriptionClient.cs | using System.Net.Http;
using System.Threading.Tasks;
using Mollie.Api.Client.Abstract;
using Mollie.Api.Models.List;
using Mollie.Api.Models.Payment.Response;
using Mollie.Api.Models.Subscription;
using Mollie.Api.Models.Url;
namespace Mollie.Api.Client {
public class SubscriptionClient : BaseMollieClient, ISubsc... | using System.Net.Http;
using System.Threading.Tasks;
using Mollie.Api.Client.Abstract;
using Mollie.Api.Models.List;
using Mollie.Api.Models.Payment.Response;
using Mollie.Api.Models.Subscription;
using Mollie.Api.Models.Url;
namespace Mollie.Api.Client {
public class SubscriptionClient : BaseMollieClient, ISubsc... | mit | C# |
7ef19dc14c1c5259904962e15cccbf2b8d50c4ec | Make container configuration resilient to type load failures. | kzu/OctoHook,LeCantaloop/OctoHook | OctoHook.Web/ContainerConfiguration.cs | OctoHook.Web/ContainerConfiguration.cs | namespace OctoHook.Web
{
using Autofac;
using OctoHook.CommonComposition;
using OctoHook.Diagnostics;
using Octokit;
using Octokit.Internal;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
public static cl... | namespace OctoHook.Web
{
using Autofac;
using OctoHook.CommonComposition;
using Octokit;
using Octokit.Internal;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
public static class ContainerConfiguration
{
public static ICon... | apache-2.0 | C# |
2455074d34ae79d95a5064ea7de93d1ae0fddf5c | Update RazorTemplateManager.cs | stephanstapel/ZUGFeRD-csharp,stephanstapel/ZUGFeRD-csharp | ZUGFeRDRenderer/RazorTemplateManager.cs | ZUGFeRDRenderer/RazorTemplateManager.cs | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | using RazorEngine.Templating;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace s2industries.ZUGFeRDRenderer
{
class RazorTemplateManager : ITemplateManager
{
public ITemplateSource Resolve(ITemplateKey key)
{
... | apache-2.0 | C# |
df7057365a70b1607404ced4b32724d989a1c532 | Fix StackOverflow | gmamaladze/trienet | TrieNet/_Ukkonen/Node.cs | TrieNet/_Ukkonen/Node.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Gma.DataStructures.StringSearch
{
internal class Node<T>
{
private readonly IDictionary<char, Edge<T>> _edges;
private readonly HashSet<T> _data;
public Node()
{
_edges = new Cha... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Gma.DataStructures.StringSearch
{
internal class Node<T>
{
private readonly IDictionary<char, Edge<T>> _edges;
private readonly HashSet<T> _data;
public Node()
{
_edges = new Cha... | mit | C# |
d0b6827d906e259d5c981add1fbac06d24db42e2 | Set methods, where the response is a callback, as one way. | Paymentsense/Dapper.SimpleSave | PS.Mothership.Core/PS.Mothership.Core.Common/Contracts/IDiallerService.cs | PS.Mothership.Core/PS.Mothership.Core.Common/Contracts/IDiallerService.cs | using System;
using System.ServiceModel;
using PS.Mothership.Core.Common.Dto;
using PS.Mothership.Core.Common.Enums;
namespace PS.Mothership.Core.Common.Contracts
{
[ServiceContract(CallbackContract = typeof (IDiallerServiceCallback), Name = "DiallerService")]
public interface IDiallerService
{
... | using System;
using System.Collections.Generic;
using System.ServiceModel;
using PS.Mothership.Core.Common.Dto;
using PS.Mothership.Core.Common.Enums;
namespace PS.Mothership.Core.Common.Contracts
{
[ServiceContract(CallbackContract = typeof (IDiallerServiceCallback), Name = "DiallerService")]
public... | mit | C# |
ffb196dbdb212d87132cc86ed79c4b8cfce94d23 | Correct year when development started. | PenguinF/sandra-three | Sandra.UI.WF/Properties/AssemblyInfo.cs | Sandra.UI.WF/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Sandra")]
[assembly: AssemblyDescription("Hosted on https://github.com/PenguinF/sandra-three")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Sandra")]
[assembly: AssemblyCopyri... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Sandra")]
[assembly: AssemblyDescription("Hosted on https://github.com/PenguinF/sandra-three")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Sandra")]
[assembly: AssemblyCopyri... | apache-2.0 | C# |
826ceaf142ec470f64d61fed3282270ef41456c7 | Fix null exception | cedw032/MarkerMetro.Unity.WinIntegration,MarkerMetro/MarkerMetro.Unity.WinIntegration,hungweng/MarkerMetro.Unity.WinIntegration | SharedSource/Logging/ExceptionLogger.cs | SharedSource/Logging/ExceptionLogger.cs | using System;
using System.Diagnostics;
namespace MarkerMetro.Unity.WinIntegration.Logging
{
/// <summary>
/// Exception Logger.
/// </summary>
public static class ExceptionLogger
{
private static IExceptionLogger _logger;
static readonly object _sync = new object();
publ... | using System;
using System.Diagnostics;
namespace MarkerMetro.Unity.WinIntegration.Logging
{
/// <summary>
/// Exception Logger.
/// </summary>
public static class ExceptionLogger
{
private static IExceptionLogger _logger;
static readonly object _sync = new object();
publ... | mit | C# |
be2e50c7e1d2a3de94a18ac0440eeb8d0700a0a1 | Set assembly language to (none) in UnitsNet. NUnit runner failed to load DLL. | neutmute/UnitsNet,anjdreas/UnitsNet,BoGrevyDynatest/UnitsNet,Tirael/UnitsNet,maherkassim/UnitsNet,maherkassim/UnitsNet,BrandonLWhite/UnitsNet,BrandonLWhite/UnitsNet,anjdreas/UnitsNet | Src/UnitsNet/Properties/AssemblyInfo.cs | Src/UnitsNet/Properties/AssemblyInfo.cs | // Copyright © 2007 by Initial Force AS. All rights reserved.
// https://github.com/InitialForce/SIUnits
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, inc... | // Copyright © 2007 by Initial Force AS. All rights reserved.
// https://github.com/InitialForce/SIUnits
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, inc... | mit | C# |
180f4721818a6ee6a618e08598dd075597f14ab9 | Update AssemblyInfo.cs | ovatsus/Apps,ovatsus/Apps | UKTrains.WP7/Properties/AssemblyInfo.cs | UKTrains.WP7/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
// 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.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
// 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... | apache-2.0 | C# |
cf81c9379025cf260924cef8f44ea294df328bb8 | Add method to set a field of a class | MunkiWinchester/WpfUtility | WpfUtility/Services/ObservableObject.cs | WpfUtility/Services/ObservableObject.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using NlogViewer.Properties;
namespace WpfUtility.Services
{
/// <summary>
/// This class allows simpler handling of the INotifyPropertyChanged
/// </summary>
public class Observable... | using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using NlogViewer.Properties;
namespace WpfUtility.Services
{
/// <summary>
/// This class allows simpler handling of the INotifyPropertyChanged
/// </summary>
public class ObservableObject : INoti... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.