commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
d6cfd7f0c5327b0ad4f73852a3239842ccd199f0 | src/Pickles/Pickles/DocumentationFormat.cs | src/Pickles/Pickles/DocumentationFormat.cs | #region License
/*
Copyright [2011] [Jeffrey Cameron]
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... | #region License
/*
Copyright [2011] [Jeffrey Cameron]
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... | Add annotation to DHtml enum | Add annotation to DHtml enum
So it will provide a bit more context
| C# | apache-2.0 | magicmonty/pickles,magicmonty/pickles,ludwigjossieaux/pickles,magicmonty/pickles,dirkrombauts/pickles,blorgbeard/pickles,picklesdoc/pickles,magicmonty/pickles,ludwigjossieaux/pickles,irfanah/pickles,ludwigjossieaux/pickles,irfanah/pickles,blorgbeard/pickles,irfanah/pickles,irfanah/pickles,picklesdoc/pickles,dirkrombaut... |
3799a055f3b277a10bc2009083f104c8f1ddc91c | test-assets/test-projects/AntlrGeneratedFiles/Program.cs | test-assets/test-projects/AntlrGeneratedFiles/Program.cs | using System;
namespace Test
{
class Program
{
static void Main(string[] args)
{
new GrammarParser(null);
}
}
}
| using System;
[assembly: CLSCompliant(true)]
namespace Test
{
class Program
{
static void Main(string[] args)
{
new GrammarParser(null);
}
}
}
| Clean up warnings where preparing AntlrGeneratedFiles test project | Clean up warnings where preparing AntlrGeneratedFiles test project
| C# | mit | DustinCampbell/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn,OmniSharp/omnisharp-roslyn,OmniSharp/omnisharp-roslyn |
688f48fb2dd09194be9a1d48cf13b7ba00dd2555 | src/Core/Text/TextQuery.cs | src/Core/Text/TextQuery.cs | #region Copyright (c) 2016 Atif Aziz. 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 ap... | #region Copyright (c) 2016 Atif Aziz. 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 ap... | Fix text translations to be non-blocking | Fix text translations to be non-blocking
| C# | apache-2.0 | atifaziz/WebLinq,atifaziz/WebLinq,weblinq/WebLinq,weblinq/WebLinq |
a18483264002421e88b91d2e85de87fc504b3ca1 | CefSharp.Owin.Example.Wpf/Views/Home.cshtml | CefSharp.Owin.Example.Wpf/Views/Home.cshtml | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CefSharp.Own.Example.Wpf</title>
</head>
<body>
<header>
<h1>@Model.Text</h1>
</header>
<section>
<h2>Backlog</h2>
<ul class="bugs" id="backlog">
<li>a bug</li>
</ul>
</section>
... | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CefSharp.Own.Example.Wpf</title>
</head>
<body>
<header>
<h1>@Model.Text</h1>
</header>
<section>
<h2>CefSharp + OWIN + Nancy + Razor</h2>
<ul>
<li>No network requests are made, just in memory ... | Make the example html.cshtml a little more relevant | Make the example html.cshtml a little more relevant
| C# | mit | amaitland/CefSharp.Owin,amaitland/CefSharp.Owin |
62e02b319ac4d9bf84374af55bb437686e6585d5 | LolHandbook/Pages/ChampionSkinsPage.xaml.cs | LolHandbook/Pages/ChampionSkinsPage.xaml.cs | using DataDragon;
using LolHandbook.ViewModels;
using System;
using System.Collections.Generic;
using Windows.ApplicationModel.DataTransfer;
using Windows.Storage.Streams;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
namespace LolHandbook.Pages
{
public sealed partial c... | using DataDragon;
using LolHandbook.ViewModels;
using System;
using System.Collections.Generic;
using Windows.ApplicationModel.DataTransfer;
using Windows.Storage.Streams;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
namespace LolHandbook.Pages
{
public sealed partial c... | Include URI in DataPackage when sharing a skin | Include URI in DataPackage when sharing a skin
This opens up a significant number of share targets which support URIs but not bitmaps.
| C# | mit | lmadhavan/lol-handbook |
877d8cdce2573d86d43a316cd1628c25a16f6091 | NUnit.Tests2/Test_StartDateEndDateFinder.cs | NUnit.Tests2/Test_StartDateEndDateFinder.cs | using NUnit.Framework;
using System;
using System.IO;
using Time_Table_Arranging_Program;
using Time_Table_Arranging_Program.Class;
namespace NUnit.Tests2 {
[TestFixture]
public class Test_StartDateEndDateFinder {
string input = Helper.RawStringOfTestFile("SampleData-FAM-2017-2ndSem.html");
[... | using NUnit.Framework;
using System;
using System.IO;
using Time_Table_Arranging_Program;
using Time_Table_Arranging_Program.Class;
namespace NUnit.Tests2 {
[TestFixture]
public class Test_StartDateEndDateFinder {
string input = Helper.RawStringOfTestFile("SampleData-FAM-2017-2ndSem.html");
[... | Update test case to suit test data | Update test case to suit test data
| C# | agpl-3.0 | wongjiahau/TTAP-UTAR,wongjiahau/TTAP-UTAR |
a153bc00bcb9092700bd536874df4cfadb076c3f | src/Server/Bit.Owin/Implementations/DefaultJsonContentFormatter.cs | src/Server/Bit.Owin/Implementations/DefaultJsonContentFormatter.cs | using Bit.Core.Contracts;
using Newtonsoft.Json;
namespace Bit.Owin.Implementations
{
public class DefaultJsonContentFormatter : IContentFormatter
{
private static IContentFormatter _current;
public static IContentFormatter Current
{
get
{
if (_... | using Bit.Core.Contracts;
using Newtonsoft.Json;
namespace Bit.Owin.Implementations
{
public class DefaultJsonContentFormatter : IContentFormatter
{
private static IContentFormatter _current;
public static IContentFormatter Current
{
get
{
if (_... | Use indented json formatting in json content formatter | Use indented json formatting in json content formatter
| C# | mit | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework |
b13e6fd4425d14c934d4e8fecd2bab987bc4fcf6 | WCF/Shared.Tests/Integration/OneWayTests.cs | WCF/Shared.Tests/Integration/OneWayTests.cs | using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Wcf.Tests.Channels;
using Microsoft.ApplicationInsights.Wcf.Tests.Service;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Linq;
namespace Microsoft.ApplicationInsights.Wcf.Tests.Integration
{
[Te... | using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Wcf.Tests.Channels;
using Microsoft.ApplicationInsights.Wcf.Tests.Service;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Linq;
namespace Microsoft.ApplicationInsights.Wcf.Tests.Integration
{
[Te... | Improve test to avoid potential race condition | Improve test to avoid potential race condition
| C# | mit | Microsoft/ApplicationInsights-SDK-Labs |
b240ed88b9456ff8f811b8f91341793eff171a60 | src/Assent/Reporters/DiffPrograms/VsCodeDiffProgram.cs | src/Assent/Reporters/DiffPrograms/VsCodeDiffProgram.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Assent.Reporters.DiffPrograms
{
public class VsCodeDiffProgram : DiffProgramBase
{
static VsCodeDiffProgram()
{
var paths = new List<string>();
if (DiffReporter.IsWindows)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Assent.Reporters.DiffPrograms
{
public class VsCodeDiffProgram : DiffProgramBase
{
static VsCodeDiffProgram()
{
var paths = new List<string>();
if (DiffReporter.IsWindows)
{
... | Add default macOS install location | Add default macOS install location
| C# | mit | droyad/Assent |
42e3ba819c5e6909a448817e5e76294a24dc899e | PropertyChanged.Fody/TypeResolver.cs | PropertyChanged.Fody/TypeResolver.cs | using System;
using System.Collections.Generic;
using Mono.Cecil;
public partial class ModuleWeaver
{
Dictionary<string, TypeDefinition> definitions = new Dictionary<string, TypeDefinition>();
public TypeDefinition Resolve(TypeReference reference)
{
TypeDefinition definition;
if (definiti... | using System;
using System.Collections.Generic;
using Mono.Cecil;
public partial class ModuleWeaver
{
Dictionary<string, TypeDefinition> definitions = new Dictionary<string, TypeDefinition>();
public TypeDefinition Resolve(TypeReference reference)
{
TypeDefinition definition;
if (definiti... | Throw an exception if InnerResolve returns null | Throw an exception if InnerResolve returns null
| C# | mit | Fody/PropertyChanged,user1568891/PropertyChanged |
7a00c5fc09cb2d52188ab6d39c373b2de79cbd11 | src/HelloCoreClrApp/Data/Entities/Greeting.cs | src/HelloCoreClrApp/Data/Entities/Greeting.cs | using System;
using System.ComponentModel.DataAnnotations;
namespace HelloCoreClrApp.Data.Entities
{
public class Greeting
{
[Key]
public Guid GreetingId { get; set; }
[Required]
[MaxLength(20)]
public string Name { get; set; }
[Required]
public DateTim... | using System;
using System.ComponentModel.DataAnnotations;
namespace HelloCoreClrApp.Data.Entities
{
public class Greeting
{
[Key]
public Guid GreetingId { get; set; }
[Required]
[MaxLength(30)]
public string Name { get; set; }
[Required]
public DateTim... | Increase size since we add something to the max. 20 chars coming from the request. | Increase size since we add something to the max. 20 chars coming from the request.
| C# | mit | jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr |
2fb484abfc2bb1f678b9c7ce8f23c968f8716620 | ArraysAndlists/RotateArray/RotateArray.cs | ArraysAndlists/RotateArray/RotateArray.cs | // Program for rotating arrays using different Algorithms
using System;
using System.Linq;
public class RotateArray
{
public static void Main()
{
// Reads ints from the Console and converts them to an array of ints
Console.WriteLine("Please enter array of integers (integers separated by spaces)");
... | // Program for rotating arrays using different Algorithms
using System;
using System.Linq;
public class RotateArray
{
public static void Main()
{
// Reads ints from the Console and converts them to an array of ints
Console.WriteLine("Please enter array of integers (integers separated by spac... | Work begin on program to test different algorithms for shifting arrays | Work begin on program to test different algorithms for shifting arrays
| C# | mit | BoykoNeov/SoftUni---Programming-fundamentals-May-2017 |
f7c1a8c7685d1a1aaf8155c419d04ae1c3303fa6 | BudgetAnalyser.Engine/Statement/PersistentFiltersV1.cs | BudgetAnalyser.Engine/Statement/PersistentFiltersV1.cs | using System;
using BudgetAnalyser.Engine.BankAccount;
using Rees.UserInteraction.Contracts;
namespace BudgetAnalyser.Engine.Statement
{
public class PersistentFiltersV1 : IPersistent
{
public Account Account { get; set; }
public DateTime? BeginDate { get; set; }
public DateTime? EndDa... | using System;
using Rees.UserInteraction.Contracts;
namespace BudgetAnalyser.Engine.Statement
{
public class PersistentFiltersV1 : IPersistent
{
public DateTime? BeginDate { get; set; }
public DateTime? EndDate { get; set; }
public int LoadSequence => 50;
}
} | Remove Account from the filter state persistence | Remove Account from the filter state persistence
| C# | mit | Benrnz/BudgetAnalyser |
d541cadb2220d2a7987386cd25acc89df755b38e | LibGit2Sharp/Core/ObjectSafeWrapper.cs | LibGit2Sharp/Core/ObjectSafeWrapper.cs | using System;
using LibGit2Sharp.Core.Handles;
namespace LibGit2Sharp.Core
{
internal class ObjectSafeWrapper : IDisposable
{
private readonly GitObjectSafeHandle objectPtr;
public ObjectSafeWrapper(ObjectId id, RepositorySafeHandle handle, bool allowNullObjectId = false)
{
... | using System;
using LibGit2Sharp.Core.Handles;
namespace LibGit2Sharp.Core
{
internal class ObjectSafeWrapper : IDisposable
{
private readonly GitObjectSafeHandle objectPtr;
public ObjectSafeWrapper(ObjectId id, RepositorySafeHandle handle, bool allowNullObjectId = false)
{
... | Remove unnecessary finalizer (cleanup already guaranteed by the SafeHandle) | Remove unnecessary finalizer (cleanup already guaranteed by the SafeHandle)
| C# | mit | jeffhostetler/public_libgit2sharp,xoofx/libgit2sharp,yishaigalatzer/LibGit2SharpCheckOutTests,whoisj/libgit2sharp,AArnott/libgit2sharp,oliver-feng/libgit2sharp,AArnott/libgit2sharp,jamill/libgit2sharp,Skybladev2/libgit2sharp,OidaTiftla/libgit2sharp,dlsteuer/libgit2sharp,AMSadek/libgit2sharp,shana/libgit2sharp,rcorre/li... |
e196df6d5b9972435af8ec9f24655164a3ece9cc | Sakuno.UserInterface/Commands/InvokeMethodExtension.cs | Sakuno.UserInterface/Commands/InvokeMethodExtension.cs | using Sakuno.UserInterface.ObjectOperations;
using System;
using System.Windows.Data;
using System.Windows.Markup;
namespace Sakuno.UserInterface.Commands
{
public class InvokeMethodExtension : MarkupExtension
{
string r_Method;
object r_Parameter;
public InvokeMethodExtension(string... | using Sakuno.UserInterface.ObjectOperations;
using System;
using System.Windows.Data;
using System.Windows.Markup;
namespace Sakuno.UserInterface.Commands
{
public class InvokeMethodExtension : MarkupExtension
{
string r_Method;
object r_Parameter;
public object Target { get; set; }
... | Add target property for InvokeMethod markup extension | Add target property for InvokeMethod markup extension
| C# | mit | KodamaSakuno/Library |
0677373629291e321d8f66ddc94512e03956023b | Zk/Global.asax.cs | Zk/Global.asax.cs | using System;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Security;
using System.Web.Routing;
using WebMatrix.WebData;
using Zk.Models;
namespace Zk
{
public class MvcApplication : HttpApplication
{
public static void RegisterRoutes... | using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using WebMatrix.WebData;
namespace Zk
{
public class MvcApplication : HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.Ig... | Add possible (insecure) fix for anti forgery token error: suppress identity heuristics | Add possible (insecure) fix for anti forgery token error: suppress identity heuristics
| C# | mit | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner |
73f5db962df459669c3752fc4129a9ee06eed9e6 | 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... | Create server side API for single multiple answer question | Create server side API for single multiple answer question
| C# | mit | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist |
2c02b56faea02635cd1b6985880ae00dabccbf49 | Configgy/Properties/AssemblyInfo.cs | Configgy/Properties/AssemblyInfo.cs | using System.Resources;
using System.Reflection;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Configgy")]
[assembly: AssemblyDescription("Configgy: C... | using System.Resources;
using System.Reflection;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Configgy")]
[assembly: AssemblyDescription("Configgy: C... | Fix version number 2.0.3.0 => 2.0.3 | Fix version number 2.0.3.0 => 2.0.3
| C# | mit | bungeemonkee/Configgy |
77b017cf039ac8b6aaea77889050630d65771374 | Battery-Commander.Web/Views/PurchaseOrders/Index.cshtml | Battery-Commander.Web/Views/PurchaseOrders/Index.cshtml | @{
ViewBag.Title = "Purchase Order Tracker";
}
<div class="page-header">
<h1>@ViewBag.Title</h1>
</div>
<div class="btn-group">
@Html.ActionLink("Add New", "Create", "PurchaseOrders", null, new { @class = "btn btn-default" })
</div>
<!-- AirTable Embed Script for List -->
<iframe class="airtable-embed" ... | @{
ViewBag.Title = "Purchase Order Tracker";
}
<div class="page-header">
<h1>@ViewBag.Title</h1>
</div>
<div class="btn-group">
@Html.ActionLink("Add New", "Create", "PurchaseOrders", null, new { @class = "btn btn-default" })
</div>
<!-- AirTable Embed Script for List -->
<iframe class="airtable-embed" ... | Switch to kanban by status | Switch to kanban by status
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
a27f25b216aa16a00fe02616cb4de495b8c0f586 | osu.Framework/Testing/TestingExtensions.cs | osu.Framework/Testing/TestingExtensions.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 osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Framework.Testing
{
public static class Testin... | // 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 osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Framework.Testing
{
public static class Testin... | Fix ChildrenOfType<> early exit for matching types | Fix ChildrenOfType<> early exit for matching types
| C# | mit | ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ZLima12/osu-framework |
ce46eb12a651a08731292356163275590b131f64 | CefSharp.BrowserSubprocess/CefRenderProcess.cs | CefSharp.BrowserSubprocess/CefRenderProcess.cs | using CefSharp.Internals;
using System.Collections.Generic;
using System.ServiceModel;
namespace CefSharp.BrowserSubprocess
{
public class CefRenderProcess : CefSubProcess, IRenderProcess
{
private DuplexChannelFactory<IBrowserProcess> channelFactory;
private CefBrowserBase browser;
pu... | using CefSharp.Internals;
using System.Collections.Generic;
using System.ServiceModel;
namespace CefSharp.BrowserSubprocess
{
public class CefRenderProcess : CefSubProcess, IRenderProcess
{
private DuplexChannelFactory<IBrowserProcess> channelFactory;
private CefBrowserBase browser;
pu... | Split code onto multiple lines for debugging purposes | Split code onto multiple lines for debugging purposes
| C# | bsd-3-clause | twxstar/CefSharp,joshvera/CefSharp,wangzheng888520/CefSharp,joshvera/CefSharp,ruisebastiao/CefSharp,jamespearce2006/CefSharp,Octopus-ITSM/CefSharp,Octopus-ITSM/CefSharp,twxstar/CefSharp,rover886/CefSharp,battewr/CefSharp,Haraguroicha/CefSharp,AJDev77/CefSharp,zhangjingpu/CefSharp,battewr/CefSharp,rlmcneary2/CefSharp,Ha... |
92a6a7940225886ca1b575521f6cc7a7d5441fdb | CountryFoodSubscribe/CountryFood.Web/Views/Shared/_ProductsPartial.cshtml | CountryFoodSubscribe/CountryFood.Web/Views/Shared/_ProductsPartial.cshtml | @model ICollection<CountryFood.Web.ViewModels.ProductViewModel>
<h3>Products</h3>
@foreach (var product in Model)
{
<div class="panel panel-body">
<div>
<a href="">@product.Name</a>
</div>
<div>
<span>Votes: </span> @(int.Parse(product.PositiveVotes) + int.Parse(prod... | @model ICollection<CountryFood.Web.ViewModels.ProductViewModel>
<h3>Products</h3>
@foreach (var product in Model)
{
<div class="panel panel-body">
<div>
<a href="">@product.Name</a>
</div>
<div>
<span>Votes: </span> @(int.Parse(product.PositiveVotes) + int.Parse(prod... | Put link on the product view for subscription. | Put link on the product view for subscription.
| C# | mit | yyankova/CountryFoodSubscribe,yyankova/CountryFoodSubscribe |
9f6cb140907aa83bacde7321ac6d3f98d55d4a83 | SnapMD.VirtualCare.LeopardonSso/AbstractJwt.cs | SnapMD.VirtualCare.LeopardonSso/AbstractJwt.cs | using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens;
using System.Security.Claims;
namespace SnapMD.VirtualCare.LeopardonSso
{
public abstract class AbstractJwt
{
protected readonly JwtSecurityTokenHandler SecurityTokenHandler = new JwtSecurityTokenHandler();
pro... | using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens;
using System.Security.Claims;
namespace SnapMD.VirtualCare.LeopardonSso
{
public abstract class AbstractJwt
{
protected readonly JwtSecurityTokenHandler SecurityTokenHandler = new JwtSecurityTokenHandler();
pro... | Adjust polymorphism rules for base class | Adjust polymorphism rules for base class
| C# | apache-2.0 | dhawalharsora/connectedcare-sdk,SnapMD/connectedcare-sdk |
c2e302f8bbd7115616fc7de39a859a6dea45b8cf | app/Server/Service/ServerStartup.cs | app/Server/Service/ServerStartup.cs | using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;
using DHT.Server.Database;
using DHT.Server.Endpoints;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http.Json;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace DHT.Server.Service ... | using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;
using DHT.Server.Database;
using DHT.Server.Endpoints;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http.Json;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace DHT.Server.Service ... | Allow tracking from old Discord domain in the app (discordapp.com) | Allow tracking from old Discord domain in the app (discordapp.com)
| C# | mit | chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker,chylex/Discord-History-Tracker |
b9bf3a1829002036201e96c8359519add545e172 | osu.Game.Rulesets.Mania/Configuration/ManiaConfigManager.cs | osu.Game.Rulesets.Mania/Configuration/ManiaConfigManager.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Configuration.Tracking;
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
using osu.Game.Rulesets.Mania.UI;
namespace osu.Game.R... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Configuration.Tracking;
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
using osu.Game.Rulesets.Mania.UI;
namespace osu.Game.R... | Make mania scroll downwards by default | Make mania scroll downwards by default
| C# | mit | smoogipoo/osu,ZLima12/osu,2yangk23/osu,DrabWeb/osu,peppy/osu-new,ZLima12/osu,DrabWeb/osu,EVAST9919/osu,DrabWeb/osu,naoey/osu,peppy/osu,ppy/osu,johnneijzen/osu,UselessToucan/osu,UselessToucan/osu,naoey/osu,ppy/osu,peppy/osu,NeoAdonis/osu,johnneijzen/osu,peppy/osu,naoey/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,EVAST9919/o... |
1f4604f3aa4ef9b799ba8d6a17b1434fb98ac7d2 | Assets/Scripts/_Utils/CameraAspectAdjuster.cs | Assets/Scripts/_Utils/CameraAspectAdjuster.cs | using UnityEngine;
using System.Collections;
public class CameraAspectAdjuster : MonoBehaviour
{
public Camera mainCamera;
public float targetAspectRatio;
// Use this for initialization
void Awake ()
{
float windowAspectRatio = (float)Screen.width / (float)Screen.height;
float scale = windowAspectRatio / ta... | using UnityEngine;
using System.Collections;
public class CameraAspectAdjuster : MonoBehaviour
{
public Camera mainCamera;
public float targetAspectRatio;
private float latestWindowAspectRatio;
void Awake ()
{
latestWindowAspectRatio = targetAspectRatio;
AdjustIfNeeded ();
}
void Update ()
{
AdjustIf... | Fix problem when setting WebGL build to fullscreen | Fix problem when setting WebGL build to fullscreen
| C# | apache-2.0 | p-dahlback/ld-35 |
a7b994db80d3c43a840c0384676c1450a99fc8bc | tests/YouTrackSharp.Tests/Infrastructure/Connections.cs | tests/YouTrackSharp.Tests/Infrastructure/Connections.cs | using System.Collections.Generic;
namespace YouTrackSharp.Tests.Infrastructure
{
public class Connections
{
public static string ServerUrl
=> "https://ytsharp.myjetbrains.com/youtrack/";
public static Connection UnauthorizedConnection =>
new BearerTokenConnect... | using System.Collections.Generic;
using System.Net.Http;
using System.Security.Authentication;
namespace YouTrackSharp.Tests.Infrastructure
{
public class Connections
{
public static string ServerUrl
=> "https://ytsharp.myjetbrains.com/youtrack/";
public static Connection... | Use TLS 1.2 for test suite | Use TLS 1.2 for test suite
| C# | apache-2.0 | JetBrains/YouTrackSharp,JetBrains/YouTrackSharp |
4699ca6beade795c0df02106f8c11e1ef0a2f9e9 | FFImageLoading.Droid/Work/StreamResolver/ApplicationBundleStreamResolver.cs | FFImageLoading.Droid/Work/StreamResolver/ApplicationBundleStreamResolver.cs | using System;
using Android.Graphics.Drawables;
using System.IO;
using FFImageLoading.Work;
using Android.Content;
using Android.Content.Res;
using System.Threading.Tasks;
namespace FFImageLoading
{
public class ApplicationBundleStreamResolver : IStreamResolver
{
private Context Context {
get {
return glo... | using System;
using Android.Graphics.Drawables;
using System.IO;
using FFImageLoading.Work;
using Android.Content;
using Android.Content.Res;
using System.Threading.Tasks;
namespace FFImageLoading
{
public class ApplicationBundleStreamResolver : IStreamResolver
{
private Context Context {
get {
return glo... | Revert back strategy for ImageSource - ApplicationBundle | Revert back strategy for ImageSource - ApplicationBundle
| C# | mit | daniel-luberda/FFImageLoading,kalarepa/FFImageLoading,AndreiMisiukevich/FFImageLoading,molinch/FFImageLoading,petlack/FFImageLoading,luberda-molinet/FFImageLoading |
a4dadb0a2a070fa2ed65f9da06071d1fe2d4e500 | src/silverlight/Properties/AssemblyInfo.cs | src/silverlight/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("Mo... | 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("Mo... | Add company name to assembly. | Silverlight: Add company name to assembly.
| C# | agpl-3.0 | moxiecode/moxie,moxiecode/moxie,moxiecode/moxie,moxiecode/moxie |
df6486eec49fd42e0d90ede3a783636d98c25e52 | Agiil.Bootstrap/ObjectMaps/AutomapperResolversModule.cs | Agiil.Bootstrap/ObjectMaps/AutomapperResolversModule.cs | using System;
using Agiil.ObjectMaps;
using Autofac;
namespace Agiil.Bootstrap.ObjectMaps
{
public class AutomapperResolversModule : Module
{
protected override void Load(ContainerBuilder builder)
{
builder.RegisterType<IdentityValueResolver>();
builder.RegisterGeneric(typeof(GetEntityByIdenti... | using System;
using System.Collections.Generic;
using System.Linq;
using Agiil.ObjectMaps.Resolvers;
using Autofac;
namespace Agiil.Bootstrap.ObjectMaps
{
public class AutomapperResolversModule : Module
{
protected override void Load(ContainerBuilder builder)
{
var types = GetCandidateTypes();
... | Rework resolvers DI registration (automatic) | Rework resolvers DI registration (automatic)
| C# | mit | csf-dev/agiil,csf-dev/agiil,csf-dev/agiil,csf-dev/agiil |
93e3b15119edb56397ae3778227dab9b22f6fe47 | Tests/FluentAssertions.Specs/Execution/IgnoringFailuresAssertionStrategy.cs | Tests/FluentAssertions.Specs/Execution/IgnoringFailuresAssertionStrategy.cs | namespace FluentAssertions.Specs.Execution
{
using System.Collections.Generic;
using FluentAssertions.Execution;
internal class IgnoringFailuresAssertionStrategy : IAssertionStrategy
{
public IEnumerable<string> FailureMessages => new string[0];
public void HandleFailure(string message... | using System.Collections.Generic;
using FluentAssertions.Execution;
namespace FluentAssertions.Specs.Execution
{
internal class IgnoringFailuresAssertionStrategy : IAssertionStrategy
{
public IEnumerable<string> FailureMessages => new string[0];
public void HandleFailure(string message)
... | Move using directives outside of namespace | Move using directives outside of namespace
Fixes IDE0065
"Using directives must be placed outside of a namespace declaration"
| C# | apache-2.0 | fluentassertions/fluentassertions,fluentassertions/fluentassertions,dennisdoomen/fluentassertions,jnyrup/fluentassertions,dennisdoomen/fluentassertions,jnyrup/fluentassertions |
22cc5499e3b039bbdc9dfd28035137fa97ce6b65 | spectator/Program.cs | spectator/Program.cs | using log4net;
using spectator.Configuration;
using spectator.Metrics;
using spectator.Sources;
using StatsdClient;
using Topshelf;
namespace spectator
{
public class Program
{
private static readonly ILog Log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
... | using log4net;
using spectator.Configuration;
using spectator.Metrics;
using spectator.Sources;
using StatsdClient;
using Topshelf;
namespace spectator
{
public class Program
{
private static readonly ILog Log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
... | Set current directory to the executable directory, since windows services execute from system32. | Set current directory to the executable directory, since windows services execute from system32.
| C# | apache-2.0 | plmwong/spectator,plmwong/spectator |
e143467a5d868be7b8bb1ce1ebd5b12af62e8c01 | MediaManager/Platforms/Ios/Video/PlayerViewController.cs | MediaManager/Platforms/Ios/Video/PlayerViewController.cs | using AVKit;
namespace MediaManager.Platforms.Ios.Video
{
public class PlayerViewController : AVPlayerViewController
{
protected MediaManagerImplementation MediaManager => CrossMediaManager.Apple;
public override void ViewWillDisappear(bool animated)
{
base.ViewWillDisappe... | using AVKit;
namespace MediaManager.Platforms.Ios.Video
{
public class PlayerViewController : AVPlayerViewController
{
protected MediaManagerImplementation MediaManager => CrossMediaManager.Apple;
public override void ViewWillDisappear(bool animated)
{
base.ViewWillDisappe... | Add curly braces around the nested statement in if block | Add curly braces around the nested statement in if block
| C# | mit | mike-rowley/XamarinMediaManager,martijn00/XamarinMediaManager,mike-rowley/XamarinMediaManager,martijn00/XamarinMediaManager |
1eafce66b628b86c31a1b7a5d53a0caafa4f4cac | WebSocketSharpServerTool/ServiceBehavior.cs | WebSocketSharpServerTool/ServiceBehavior.cs | using WebSocketSharp;
using WebSocketSharp.Server;
namespace WebSocketServerTool
{
class ServiceBehavior : WebSocketBehavior
{
protected override void OnMessage(MessageEventArgs e)
{
base.Send(e.RawData);
}
protected override void OnClose(CloseEventArgs... | using WebSocketSharp;
using WebSocketSharp.Server;
namespace WebSocketServerTool
{
class ServiceBehavior : WebSocketBehavior
{
protected override void OnMessage(MessageEventArgs e)
{
if (e.IsBinary)
base.Send(e.RawData);
else
... | Maintain same message type when echoing back | Maintain same message type when echoing back
| C# | mit | tewarid/NetTools,tewarid/net-tools |
b2a188150498bab8d915dd8624bf3feb49ba42db | Duplicati/UnitTest/ResultFormatSerializerProviderTest.cs | Duplicati/UnitTest/ResultFormatSerializerProviderTest.cs | using Duplicati.Library.Modules.Builtin;
using Duplicati.Library.Modules.Builtin.ResultSerialization;
using NUnit.Framework;
namespace Duplicati.UnitTest
{
[TestFixture]
public class ResultFormatSerializerProviderTest
{
[Test]
public void TestGetSerializerGivenDuplicatiReturnsDuplicatiSeri... | using Duplicati.Library.Modules.Builtin;
using Duplicati.Library.Modules.Builtin.ResultSerialization;
using NUnit.Framework;
namespace Duplicati.UnitTest
{
[TestFixture]
public class ResultFormatSerializerProviderTest
{
[Test]
[Category("Serialization")]
public void TestGetSerializ... | Add Serialization test category to aid CI configuration. | Add Serialization test category to aid CI configuration.
| C# | lgpl-2.1 | sitofabi/duplicati,mnaiman/duplicati,mnaiman/duplicati,duplicati/duplicati,duplicati/duplicati,sitofabi/duplicati,sitofabi/duplicati,duplicati/duplicati,sitofabi/duplicati,duplicati/duplicati,duplicati/duplicati,mnaiman/duplicati,mnaiman/duplicati,mnaiman/duplicati,sitofabi/duplicati |
79fb6eaa4073f0cac9b715ed23bf62c7d74a7ceb | MediaManager/Platforms/Ios/Video/PlayerViewController.cs | MediaManager/Platforms/Ios/Video/PlayerViewController.cs | using AVKit;
namespace MediaManager.Platforms.Ios.Video
{
public class PlayerViewController : AVPlayerViewController
{
public override void ViewWillDisappear(bool animated)
{
base.ViewWillDisappear(animated);
Player = null;
}
}
}
| using AVKit;
namespace MediaManager.Platforms.Ios.Video
{
public class PlayerViewController : AVPlayerViewController
{
protected MediaManagerImplementation MediaManager => CrossMediaManager.Apple;
public override void ViewWillDisappear(bool animated)
{
base.ViewWillDisappe... | Detach VideoView on disappearing (iOS) | Detach VideoView on disappearing (iOS)
| C# | mit | mike-rowley/XamarinMediaManager,martijn00/XamarinMediaManager,martijn00/XamarinMediaManager,mike-rowley/XamarinMediaManager |
40322c0f8b408dda058458ea83dc2b6ccc92cd48 | src/FluentValidation/Internal/IConfigurable.cs | src/FluentValidation/Internal/IConfigurable.cs | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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... | #region License
// Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk)
//
// 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... | Remove editorbrowsable attribute from Configure | Remove editorbrowsable attribute from Configure
| C# | apache-2.0 | IRlyDontKnow/FluentValidation,regisbsb/FluentValidation,mgmoody42/FluentValidation,deluxetiky/FluentValidation,olcayseker/FluentValidation,GDoronin/FluentValidation,cecilphillip/FluentValidation,glorylee/FluentValidation,ruisebastiao/FluentValidation,robv8r/FluentValidation |
78efc6a430af1d1256f9c14d57c5f3c33d137109 | symbooglix/symbooglix/driver.cs | symbooglix/symbooglix/driver.cs | using System;
using Microsoft;
using System.Linq;
using Microsoft.Boogie;
using System.Diagnostics;
namespace symbooglix
{
public class driver
{
public static int Main(String[] args)
{
if (args.Length == 0) {
Console.WriteLine ("Pass boogie file as first arg!");
... | using System;
using Microsoft;
using System.Linq;
using Microsoft.Boogie;
using System.Diagnostics;
using System.Collections.Generic;
namespace symbooglix
{
public class driver
{
public static int Main(String[] args)
{
if (args.Length == 0) {
Console.WriteLine ("Pas... | Copy basic Boogie parser stuff from Adam's DynamicAnalysis tool. Things are still broken. The type checker throws an exception when trying to resolve() | Copy basic Boogie parser stuff from Adam's DynamicAnalysis tool.
Things are still broken. The type checker throws an exception when
trying to resolve()
| C# | bsd-2-clause | symbooglix/symbooglix,symbooglix/symbooglix,symbooglix/symbooglix |
6d650404c2fef2ab87020201ae4b4a83777249bc | Src/Business/Rik.Codecamp.Entities/Brave.cs | Src/Business/Rik.Codecamp.Entities/Brave.cs | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Dapper.FastCrud;
using Smooth.IoC.Cqrs.Query;
using Smooth.IoC.Cqrs.Requests;
namespace Rik.Codecamp.Entities
{
public class Brave : IRequest, IQuery
{
[Key, DatabaseGeneratedDefaultVal... | using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Dapper.FastCrud;
using Newtonsoft.Json;
using Smooth.IoC.Cqrs.Query;
using Smooth.IoC.Cqrs.Requests;
namespace Rik.Codecamp.Entities
{
public class Brave : IRequest, IQuery
{
[Key, Data... | Add json ignor to brave | Add json ignor to brave
| C# | mit | generik0/Rik.CodeCamp |
4ba9597ccbf433abc31739dcce8165547d4871b1 | samples/WebAppMvc/WebAppMvc/Views/Home/Index.cshtml | samples/WebAppMvc/WebAppMvc/Views/Home/Index.cshtml | @{
ViewBag.Title = "Home Page";
}
<h2>Demo Start Page</h2>
| @{
ViewBag.Title = "Home Page";
}
<h2>Demo Start Page</h2>
@Html.ActionLink("Download PDF","ContributorsList") | Add link to PDF Download to make it more discoverable | Add link to PDF Download to make it more discoverable
| C# | mit | icsharpcode/SharpDevelopReporting |
cb6162c7f94862f1f7d5502fa895181858d3de49 | AjaxMinAST/Program.cs | AjaxMinAST/Program.cs | using System;
using System.IO;
using Microsoft.Ajax.Utilities;
namespace AjaxMinAST {
class Program {
static void Main(string[] args) {
var input = File.ReadAllText("input.js");
Console.WriteLine("--- Raw ---");
Console.WriteLine(input);
Console.WriteLine("\r\n");
Console.WriteLine("-... | using System;
using System.IO;
using Microsoft.Ajax.Utilities;
namespace AjaxMinAST {
class Program {
static void Main(string[] args) {
var input = File.ReadAllText("input.js");
Console.WriteLine("--- Raw ---");
Console.WriteLine(input);
Console.WriteLine("\r\n");
Console.WriteLine("-... | Set the function's name in the object literal. | Set the function's name in the object literal.
| C# | unlicense | jmatysczak/DotNETPOCs,jmatysczak/DotNETPOCs |
4b55b7b4be7df7f459330b5261236bf70198e51a | IronBank/IronBank/App_Start/RouteConfig.cs | IronBank/IronBank/App_Start/RouteConfig.cs | using System.Web.Mvc;
using System.Web.Routing;
[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(IronBank.App_Start.RouteConfig), "RegisterRoutes")]
namespace IronBank.App_Start
{
public class RouteConfig
{
public static void RegisterRoutes()
{
RouteTable.Rou... | using System.Web.Mvc;
using System.Web.Routing;
[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(IronBank.App_Start.RouteConfig), "RegisterRoutes")]
namespace IronBank.App_Start
{
public class RouteConfig
{
public static void RegisterRoutes()
{
RouteTable.Rou... | Set the default route of the site to be /Home/Index | Set the default route of the site to be /Home/Index
| C# | mit | jhenriquez/ironbank |
ea75c5583051b53e91bb067874e305b088a755d5 | src/Orchard.Web/Core/Common/Views/Parts.Common.Metadata.SummaryAdmin.cshtml | src/Orchard.Web/Core/Common/Views/Parts.Common.Metadata.SummaryAdmin.cshtml | @using Orchard.ContentManagement;
@using Orchard.Core.Common.Models;
@using Orchard.Security;
@{
CommonPart commonPart = Model.ContentPart;
DateTime? modifiedUtc = commonPart.As<CommonPart>() == null ? null : commonPart.As<CommonPart>().ModifiedUtc;
// owner isn't really who last modified this, is it... | @using Orchard.ContentManagement;
@using Orchard.Core.Common.Models;
@using Orchard.Security;
@{
CommonPart commonPart = Model.ContentPart;
DateTime? modifiedUtc = commonPart.As<CommonPart>() == null ? null : commonPart.As<CommonPart>().ModifiedUtc;
// owner isn't really who last modified this, is it... | Make UI resilient to delete user | Make UI resilient to delete user
Work Item: 17101
--HG--
branch : 1.x
| C# | bsd-3-clause | Inner89/Orchard,LaserSrl/Orchard,Sylapse/Orchard.HttpAuthSample,DonnotRain/Orchard,fassetar/Orchard,aaronamm/Orchard,bigfont/orchard-cms-modules-and-themes,Praggie/Orchard,salarvand/Portal,stormleoxia/Orchard,salarvand/orchard,dcinzona/Orchard,JRKelso/Orchard,smartnet-developers/Orchard,patricmutwiri/Orchard,yonglehou/... |
0f235f780decc6ae64945f3d6d7a60e13a7d8a33 | NitroDebugger/RSP/Packets/ReadRegisters.cs | NitroDebugger/RSP/Packets/ReadRegisters.cs | //
// ReadRegisters.cs
//
// Author:
// Benito Palacios Sánchez <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foun... | //
// ReadRegisters.cs
//
// Author:
// Benito Palacios Sánchez <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foun... | Fix typo that don't compile. | Fix typo that don't compile.
Why chars are not implicit casted to string? | C# | mit | pleonex/NitroDebugger,pleonex/NitroDebugger,pleonex/NitroDebugger |
829903157de9976ddeeb8fa2209d51d91959cf53 | src/SFA.DAS.EmployerFinance.Jobs/ScheduledJobs/ImportLevyDeclarationsJob.cs | src/SFA.DAS.EmployerFinance.Jobs/ScheduledJobs/ImportLevyDeclarationsJob.cs | using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using NServiceBus;
using SFA.DAS.EmployerFinance.Messages.Commands;
namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs
{
public class ImportLevyDeclarationsJob
{
private readonly IMessageSession _message... | using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using NServiceBus;
using SFA.DAS.EmployerFinance.Messages.Commands;
namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs
{
public class ImportLevyDeclarationsJob
{
private readonly IMessageSession _message... | Revert "Change levy run date to 24th" | Revert "Change levy run date to 24th"
This reverts commit f785dbf2b5649adcbc0431b2d9b04f31a8958a05.
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
02bafe2fb5c7a5e8e530f4fe49ea081082820ba0 | Assets/Scripts/NotesEditor/NoteObject.cs | Assets/Scripts/NotesEditor/NoteObject.cs | using UnityEngine;
public class NoteObject : MonoBehaviour
{
public NotePosition notePosition;
public int noteType;
NotesEditorModel model;
RectTransform rectTransform;
void Awake()
{
model = NotesEditorModel.Instance;
rectTransform = GetComponent<RectTransform>();
rec... | using UnityEngine;
public class NoteObject : MonoBehaviour
{
public NotePosition notePosition;
public int noteType;
NotesEditorModel model;
RectTransform rectTransform;
void Awake()
{
model = NotesEditorModel.Instance;
rectTransform = GetComponent<RectTransform>();
rec... | Add notes editing only when over auxiliary line | Add notes editing only when over auxiliary line
| C# | mit | setchi/NoteEditor,setchi/NotesEditor |
cd2351b8953102617a9b51186c67cc3d71647137 | src/Glimpse.Agent.AspNet/Internal/Inspectors/Mvc/Proxies/ProxyAdapter.cs | src/Glimpse.Agent.AspNet/Internal/Inspectors/Mvc/Proxies/ProxyAdapter.cs | using System;
using System.Collections.Generic;
using Microsoft.Extensions.DiagnosticAdapter.Internal;
namespace Glimpse.Agent.Internal.Inspectors.Mvc.Proxies
{
public class ProxyAdapter
{
private static readonly ProxyTypeCache _cache = new ProxyTypeCache();
public ProxyAdapter()
{
... | using System;
using System.Collections.Generic;
using Microsoft.Extensions.DiagnosticAdapter.Internal;
namespace Glimpse.Agent.Internal.Inspectors.Mvc.Proxies
{
public class ProxyAdapter
{
private static readonly ProxyTypeCache _cache = new ProxyTypeCache();
public ProxyAdapter()
{
... | Fix for duplicate type in assembly error | Fix for duplicate type in assembly error
| C# | mit | peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Proto... |
2bea4338b53c27fa3fe4bec6a2da012cab59d836 | Properties/VersionAssemblyInfo.cs | Properties/VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | Split WCF functionality out of Autofac.Extras.Multitenant into a separate assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned 3.1.0. | Split WCF functionality out of Autofac.Extras.Multitenant into a separate
assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned
3.1.0.
| C# | mit | autofac/Autofac.Extras.AttributeMetadata |
d607bde824f1ebbbb8cc59f0baa52f2fb23fa8be | MultiMiner.Remoting.Server/RemotingServer.cs | MultiMiner.Remoting.Server/RemotingServer.cs | using System;
using System.ServiceModel;
namespace MultiMiner.Remoting.Server
{
public class RemotingServer
{
private bool serviceStarted = false;
private ServiceHost myServiceHost = null;
public void Startup()
{
Uri baseAddress = new Uri("net.tcp://localho... | using System;
using System.Net;
using System.ServiceModel;
namespace MultiMiner.Remoting.Server
{
public class RemotingServer
{
private bool serviceStarted = false;
private ServiceHost myServiceHost = null;
public void Startup()
{
//use Dns.GetHostName() in... | Improve MultiMiner Remoting compatibility on Linux+Mono | Improve MultiMiner Remoting compatibility on Linux+Mono
| C# | mit | IWBWbiz/MultiMiner,nwoolls/MultiMiner,nwoolls/MultiMiner,IWBWbiz/MultiMiner |
2010d87de0e532f9d8d2b25120d7e4a205d41aa4 | Source/TeaCommerce.Umbraco.Application/Caching/TeaCommerceCacheRefresherBase.cs | Source/TeaCommerce.Umbraco.Application/Caching/TeaCommerceCacheRefresherBase.cs | using Autofac;
using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
using TeaCommerce.Api.Dependency;
using TeaCommerce.Api.Infrastructure.Caching;
using umbraco.interfaces;
using Umbraco.Core.Cache;
namespace TeaCommerce.Umbraco.Application.Caching
{
public abstract class TeaCommerceCacheRef... | using Autofac;
using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
using TeaCommerce.Api.Dependency;
using TeaCommerce.Api.Infrastructure.Caching;
using umbraco.interfaces;
using Umbraco.Core.Cache;
namespace TeaCommerce.Umbraco.Application.Caching
{
public abstract class TeaCommerceCacheRef... | Add null check to cache refresher | Add null check to cache refresher
| C# | mit | TeaCommerce/Tea-Commerce-for-Umbraco,TeaCommerce/Tea-Commerce-for-Umbraco,TeaCommerce/Tea-Commerce-for-Umbraco |
f9ae51775d010c4547947cc854afd165063d78f0 | Tigwi/Tigwi.UI/Controllers/HomeController.cs | Tigwi/Tigwi.UI/Controllers/HomeController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Tigwi.UI.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
throw new NotImplementedException("HomeController.Index");
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Tigwi.UI.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
this.ViewBag.CurrentUser = "Zak";
return this.View();
... | Create an empty Home controller. | Create an empty Home controller.
That's necessary for working on the HTML at the same time.
| C# | bsd-3-clause | ismaelbelghiti/Tigwi,ismaelbelghiti/Tigwi |
39f4771faa73681591fd2281ba4ed30c546206e5 | Criteo.Profiling.Tracing/Annotations.cs | Criteo.Profiling.Tracing/Annotations.cs | using System.Net;
using Criteo.Profiling.Tracing.Annotation;
namespace Criteo.Profiling.Tracing
{
/// <summary>
/// Factory for annotations
/// </summary>
public static class Annotations
{
public static IAnnotation ClientRecv()
{
return new ClientRecv();
}
... | using System.Net;
using Criteo.Profiling.Tracing.Annotation;
namespace Criteo.Profiling.Tracing
{
/// <summary>
/// Factory for annotations
/// </summary>
public static class Annotations
{
private static readonly IAnnotation AnnClientReceive = new ClientRecv();
private static read... | Remove unnecessary object creation of IAnnotation | Remove unnecessary object creation of IAnnotation
Change-Id: Iac7a22031d737acb1fef3c86b0297a65e06ec002
JIRA: CSI-1181
| C# | apache-2.0 | criteo/zipkin4net,criteo/zipkin4net |
9d0f4b0a297e01f73e2cf840321a9c2bf7e67d73 | src/webforms/CodeTorch.Web/MasterPages/BaseMasterPage.cs | src/webforms/CodeTorch.Web/MasterPages/BaseMasterPage.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using System.Reflection;
using System.Web.UI;
namespace CodeTorch.Web.MasterPages
{
public class BaseMasterPage : System.Web.UI.MasterPage
{
protected Label currentYear;
prote... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using System.Reflection;
using System.Web.UI;
namespace CodeTorch.Web.MasterPages
{
public class BaseMasterPage : System.Web.UI.MasterPage
{
protected Label currentYear;
prote... | Allow base master page to be overridden | Allow base master page to be overridden
| C# | mit | EminentTechnology/CodeTorch |
0ae0e096767f0ea2d873676c25b68c0305a816e7 | Editor/YesAndEditor/YesAndEditorUtil.cs | Editor/YesAndEditor/YesAndEditorUtil.cs | using UnityEditor;
using UnityEditor.SceneManagement;
namespace YesAndEditor {
// Static class packed to the brim with helpful Unity editor utilities.
public static class YesAndEditorUtil {
// Forcefully mark open loaded scenes dirty and save them.
[MenuItem ("File/Force Save")]
public static void ForceSave... | using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using System.Linq;
namespace YesAndEditor {
// Static class packed to the brim with helpful Unity editor utilities.
public static class YesAndEditorUtil {
// Forcefully mark open loaded scenes dirty and save them.
[MenuItem ("File/Force ... | Add a unified method to make an editor-only object | Add a unified method to make an editor-only object
| C# | apache-2.0 | YesAndGames/YesAndEngine |
ca48f91c971cedcec75403cc248d6556a4d700b8 | FridgeShoppingList/Views/Splash.xaml.cs | FridgeShoppingList/Views/Splash.xaml.cs | using System;
using System.Threading.Tasks;
using Windows.ApplicationModel.Activation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
namespace FridgeShoppingList.Views
{
public sealed partial class Splash : UserControl
{
public Task SplashInProgress { get; private ... | using System;
using System.Threading.Tasks;
using Windows.ApplicationModel.Activation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
namespace FridgeShoppingList.Views
{
public sealed partial class Splash : UserControl
{
public Task SplashInProgress { get; private ... | Remove 100sec boot screen =D | Remove 100sec boot screen =D
| C# | mit | pingzing/fridge-shopping-list |
b211a87ae3961ed470621883c54ce157f8a32884 | FieldEngineerLite.Service/App_Start/AutomapperConfiguration.cs | FieldEngineerLite.Service/App_Start/AutomapperConfiguration.cs | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
// This file reused from: https://code.msdn.microsoft.com/Field-Engineer-501df99d
using AutoMapper... | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
// This file reused from: https://code.msdn.microsoft.com/Field-Engineer-501df99d
using AutoMapper... | Rename variable in Automapper config to match its type (Job instead of JobDTO) | Rename variable in Automapper config to match its type (Job instead of JobDTO)
| C# | apache-2.0 | paulbatum/FieldEngineerLite |
3351594cb7070755e5ce3e2cc2cde65c51b560c4 | src/Glimpse.Host.Web.AspNet/GlimpseMiddleware.cs | src/Glimpse.Host.Web.AspNet/GlimpseMiddleware.cs | using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Glimpse.Web;
using System;
namespace Glimpse.Host.Web.AspNet
{
public class GlimpseMiddleware
{
private readonly RequestDelegate _innerNext;
private readonly MasterRequestRuntime _runtime;
private readonly ISettings _s... | using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Glimpse.Web;
using System;
namespace Glimpse.Host.Web.AspNet
{
public class GlimpseMiddleware
{
private readonly RequestDelegate _innerNext;
private readonly MasterRequestRuntime _runtime;
private readonly ISettings _s... | Update todo message to explain what is the issue | Update todo message to explain what is the issue
| C# | mit | Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,pranavkm/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Protot... |
58e5a71d31e0f06d544b0b2bccf20a675d2ea8bc | MitternachtWeb/Views/Shared/_NavbarLogin.cshtml | MitternachtWeb/Views/Shared/_NavbarLogin.cshtml | @{
var DiscordUser = UserHelper.GetDiscordUser(User);
}
@if(DiscordUser == null) {
<a class="nav-link text-dark" asp-area="" asp-controller="Login" asp-action="Index">Login</a>
} else {
@DiscordUser
}
| @{
var DiscordUser = UserHelper.GetDiscordUser(User);
}
@if(DiscordUser == null) {
<a class="nav-link text-dark" asp-area="" asp-controller="Login" asp-action="Index">Login</a>
} else {
@DiscordUser.User
}
| Fix showing username when logged in. | Fix showing username when logged in.
| C# | mit | Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW |
5ca7862c91245c4633c68d4f6a690fb54d185e3e | src/StructuredLogViewer.Core/ProjectImport.cs | src/StructuredLogViewer.Core/ProjectImport.cs | using System;
namespace StructuredLogViewer
{
public struct ProjectImport : IEquatable<ProjectImport>
{
public ProjectImport(string importedProject, int line, int column)
{
ProjectPath = importedProject;
Line = line;
Column = column;
}
... | using System;
namespace StructuredLogViewer
{
public struct ProjectImport : IEquatable<ProjectImport>
{
public ProjectImport(string importedProject, int line, int column)
{
ProjectPath = importedProject;
Line = line;
Column = column;
}
... | Fix hash code to use a tuple. | Fix hash code to use a tuple.
| C# | mit | KirillOsenkov/MSBuildStructuredLog,KirillOsenkov/MSBuildStructuredLog |
7d26c47ef3c6000a9fe4dafa585fefe135ce093c | tests/Compiler/Clr.Tests/Compilation/CSharp/CSharpAssemblyGeneratorTests.cs | tests/Compiler/Clr.Tests/Compilation/CSharp/CSharpAssemblyGeneratorTests.cs | using slang.Compiler.Clr.Compilation.Core.Builders;
using slang.Compiler.Clr.Compilation.CSharp;
using Xunit;
namespace Clr.Tests.Compilation.CSharp
{
public class CSharpAssemblyGeneratorTests
{
[Fact]
public void Given_a_defined_module_When_compiled_Then_a_CLR_class_is_created()
{
... | using System.Reflection;
using FluentAssertions;
using slang.Compiler.Clr.Compilation.Core.Builders;
using slang.Compiler.Clr.Compilation.CSharp;
using Xunit;
namespace Clr.Tests.Compilation.CSharp
{
public class CSharpAssemblyGeneratorTests
{
[Fact]
public void Given_a_defined_module_When_com... | Improve test name and assertion | Improve test name and assertion
Assert against the properties of the created class not just that there
is a class created.
| C# | mit | jagrem/slang,jagrem/slang,jagrem/slang |
19db35501e156ceaaf45f65bb4360dc4d859a68f | osu.Game/Screens/Multi/Timeshift/TimeshiftReadyButton.cs | osu.Game/Screens/Multi/Timeshift/TimeshiftReadyButton.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 osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Game.Graphics;
using osu.Game.Online.Multiplayer;
using osu.Game.Screens.Multi.Comp... | // 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 osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Game.Graphics;
using osu.Game.Online.Multiplayer;
using osu.Game.Screens.Multi.Comp... | Fix incorrect end date usage in timeshift ready button | Fix incorrect end date usage in timeshift ready button
| C# | mit | NeoAdonis/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu,UselessToucan/osu,peppy/osu-new,peppy/osu,ppy/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu |
dd7441434d6bb20b277f71627175a9136b8cb889 | FineBot/FineBot.Workers/DI/WorkerInstaller.cs | FineBot/FineBot.Workers/DI/WorkerInstaller.cs | using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
namespace FineBot.Workers.DI
{
public class WorkerInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.... | using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
namespace FineBot.Workers.DI
{
public class WorkerInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.... | Fix lifestyles of job to dispose after each execution | Fix lifestyles of job to dispose after each execution
| C# | mit | prinzo/Attack-Of-The-Fines-TA15,prinzo/Attack-Of-The-Fines-TA15,prinzo/Attack-Of-The-Fines-TA15 |
e2404c13987e4c70f57016cdbd8ad8b1aacc8514 | src/Security/Interfaces/ISecurityManager.cs | src/Security/Interfaces/ISecurityManager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Jebur27.Security.Interfaces
{
public interface ISecurityManager
{
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Jebur27.Security.Interfaces
{
public interface ISecurityManager
{
string UserName { get; set; }
int UserSecurityLevel { get; set; }
}
}
| Update Security Manager to include Parameters | Update Security Manager to include Parameters
| C# | mit | JoeBurns27/FactoryByReflection |
d116a3263d71d2a1783165eaa017c9e63fe8fc47 | src/ProjectEuler/Puzzles/Puzzle048.cs | src/ProjectEuler/Puzzles/Puzzle048.cs | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.ProjectEuler.Puzzles
{
using System;
using System.Globalization;
using System.Linq;
using System.Numeri... | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.ProjectEuler.Puzzles
{
using System;
using System.Globalization;
using System.Linq;
using System.Numeri... | Use BigInteger.Zero instead of implicit conversion | Use BigInteger.Zero instead of implicit conversion
| C# | apache-2.0 | martincostello/project-euler |
2354163900f89a8df4f2fbff4387ddbab1a6bbd5 | osu.Game/Overlays/Settings/Sections/AudioSection.cs | osu.Game/Overlays/Settings/Sections/AudioSection.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Overlays.Settings.Sections.Audio;
namespace osu.Game.Overlays.Settings.Sections
{
pu... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Overlays.Settings.Sections.Audio;
namespace osu.Game.Overlays.Settings.Sections
{
pu... | Change icon for audio settings | Change icon for audio settings
| C# | mit | 2yangk23/osu,johnneijzen/osu,DrabWeb/osu,2yangk23/osu,EVAST9919/osu,naoey/osu,smoogipoo/osu,peppy/osu,ppy/osu,peppy/osu,ZLima12/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,DrabWeb/osu,Nabile-Rahmani/osu,peppy/osu,ppy/osu,ppy/osu,johnneijzen/osu,NeoAdonis/osu,DrabWeb/osu,naoey/osu,smoogipoo/osu,UselessToucan/osu,... |
bd3bb063251a19a9da38bf7b1f2752c7be321d73 | src/EditorFeatures/Core.Wpf/Tags/DefaultImageMonikerService.cs | src/EditorFeatures/Core.Wpf/Tags/DefaultImageMonikerService.cs | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using System.Composition;
using Microsoft.CodeAnalysis.Editor.Wpf;
using Microsoft.VisualStudio.Imaging;
using Microsoft.... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.Editor.Wpf;
using Microsoft.VisualStudio.Imaging;
using Microsoft.VisualStudio.Imaging.Inter... | Fix mismatched use of MEF 1 and 2 | Fix mismatched use of MEF 1 and 2
| C# | mit | brettfo/roslyn,mgoertz-msft/roslyn,tannergooding/roslyn,mgoertz-msft/roslyn,genlu/roslyn,sharwell/roslyn,nguerrera/roslyn,stephentoub/roslyn,bartdesmet/roslyn,agocke/roslyn,stephentoub/roslyn,tannergooding/roslyn,wvdd007/roslyn,jmarolf/roslyn,ErikSchierboom/roslyn,davkean/roslyn,weltkante/roslyn,eriawan/roslyn,weltkant... |
45d51e4c6759aff14c23346d0b4e894aceb8d544 | src/NSpec.VsAdapter/Test/Samples/AdHocConsoleRunner/Program.cs | src/NSpec.VsAdapter/Test/Samples/AdHocConsoleRunner/Program.cs | using NSpec;
using NSpec.Domain;
using NSpec.Domain.Formatters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace AdHocConsoleRunner
{
class Program
{
static void Main(string[] args)
{
var assemblies = new Assembly[]
... | using NSpec;
using NSpec.Domain;
using NSpec.Domain.Formatters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace AdHocConsoleRunner
{
class Program
{
static void Main(string[] args)
{
var assemblies = new Assembly[]
... | Add closing message to sample console runner | Add closing message to sample console runner
| C# | mit | nspec/NSpec.VsAdapter,BrainCrumbz/NSpec.VsAdapter |
1842f2c756b035f4661d5c5331ac0ebe325ccebc | source/Nuke.Core/EnvironmentInfo.Others.cs | source/Nuke.Core/EnvironmentInfo.Others.cs | // Copyright Matthias Koch 2017.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
#if NETCORE
using System.IO;
#endif
namespace Nuke.Core
{
public static partial class EnvironmentInfo
{
public static string NewLine => En... | // Copyright Matthias Koch 2017.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
#if NETCORE
using System.IO;
#endif
namespace Nuke.Core
{
public static partial class Envi... | Add wrapper for environment variables. | Add wrapper for environment variables.
| C# | mit | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke |
e78382d649176de977e966444847e3f71ffcb2e1 | 04.EncapsulationAndPolymorphism/EncapsulationAndPolimophism/Shapes/Program.cs | 04.EncapsulationAndPolymorphism/EncapsulationAndPolimophism/Shapes/Program.cs | using System;
using Shapes.Class;
namespace Shapes
{
using Interfaces;
class Program
{
static void Main()
{
IShape circle = new Circle(4);
Console.WriteLine(circle.CalculateArea());
circle.CalculatePerimeter();
IShape triangle = new Triangle(... | using System;
using Shapes.Class;
namespace Shapes
{
using Interfaces;
class Program
{
static void Main()
{
IShape circle = new Circle(4);
Console.WriteLine("circle area: " + circle.CalculateArea());
Console.WriteLine("circle perimeter: " + circle.Calcul... | Add ConsoleWhriteLine on Area and Perimeter Methods | Add ConsoleWhriteLine on Area and Perimeter Methods
| C# | cc0-1.0 | ivayloivanof/OOP.CSharp,ivayloivanof/OOP.CSharp |
05a597e045f5267726315fb78e8a10661356245a | Battery-Commander.Web/Jobs/PERSTATReportJob.cs | Battery-Commander.Web/Jobs/PERSTATReportJob.cs | using BatteryCommander.Web.Models;
using BatteryCommander.Web.Services;
using FluentEmail.Core;
using FluentEmail.Core.Models;
using FluentScheduler;
using System.Collections.Generic;
using System.IO;
namespace BatteryCommander.Web.Jobs
{
public class PERSTATReportJob : IJob
{
private static IList<Add... | using BatteryCommander.Web.Models;
using BatteryCommander.Web.Services;
using FluentEmail.Core;
using FluentEmail.Core.Models;
using FluentScheduler;
using System.Collections.Generic;
using System.IO;
namespace BatteryCommander.Web.Jobs
{
public class PERSTATReportJob : IJob
{
private static IList<Add... | Tweak so it'll send for any non-ignored units | Tweak so it'll send for any non-ignored units
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
5f6d83963062513ec4bd9027a580d40d72aa0f8a | Kooboo.CMS/Kooboo/ApplicationInitialization.cs | Kooboo.CMS/Kooboo/ApplicationInitialization.cs | #region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
namespace Kooboo
{
/// <summary>
///
/// </summary>
public static class ApplicationIn... | #region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
namespace Kooboo
{
/// <summary>
///
/// </summary>
[Obsolete]
public static clas... | Make as an obsolete class. | Make as an obsolete class.
| C# | bsd-3-clause | andyshao/CMS,lingxyd/CMS,techwareone/Kooboo-CMS,jtm789/CMS,Kooboo/CMS,Kooboo/CMS,jtm789/CMS,lingxyd/CMS,lingxyd/CMS,techwareone/Kooboo-CMS,jtm789/CMS,andyshao/CMS,techwareone/Kooboo-CMS,Kooboo/CMS,andyshao/CMS |
97430790869d926c787eafb93f08763fb5c94a68 | Battery-Commander.Web/Views/SUTA/Edit.cshtml | Battery-Commander.Web/Views/SUTA/Edit.cshtml | @model BatteryCommander.Web.Commands.UpdateSUTARequest
@using (Html.BeginForm("Edit", "SUTA", new { Model.Id }, FormMethod.Post, true, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary()
<div class="form-group form-group-lg">
@Html.Disp... | @model BatteryCommander.Web.Commands.UpdateSUTARequest
@using (Html.BeginForm("Edit", "SUTA", new { Model.Id }, FormMethod.Post, true, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary()
<div class="form-group form-group-lg">
@Html.Disp... | Make the text areas bigger on suta edit | Make the text areas bigger on suta edit
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
ee2b341660e33e9cee439199b0cb027f6fba057a | Battery-Commander.Web/Models/Reports/Stat.cs | Battery-Commander.Web/Models/Reports/Stat.cs | using System;
using System.ComponentModel.DataAnnotations;
using static BatteryCommander.Web.Models.Soldier;
namespace BatteryCommander.Web.Models.Reports
{
public class Stat
{
public int Assigned { get; set; }
public int Passed { get; set; }
public int Failed { get; set; }
... | using System;
using System.ComponentModel.DataAnnotations;
using static BatteryCommander.Web.Models.Soldier;
namespace BatteryCommander.Web.Models.Reports
{
public class Stat
{
public int Assigned { get; set; }
public int Passed { get; set; }
public int Failed { get; set; }
... | Fix a different error on unit create | Fix a different error on unit create
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
77a1a260a16bca38d8e1c066b7b3978a9f3af234 | Proto/Assets/Scripts/UI/OnActivateRefresh.cs | Proto/Assets/Scripts/UI/OnActivateRefresh.cs | using UnityEngine;
public class OnActivateRefresh : MonoBehaviour
{
private ServerUI _serverUi;
private void Start()
{
_serverUi = FindObjectOfType<ServerUI>();
}
private void OnEnable()
{
_serverUi.GetServerList();
}
} | using UnityEngine;
public class OnActivateRefresh : MonoBehaviour
{
private ServerUI _serverUi;
private void Start()
{
_serverUi = FindObjectOfType<ServerUI>();
_serverUi.GetServerList();
}
private void OnEnable()
{
if(_serverUi)_serverUi.GetServerList();
}
} | Fix the server list update | Fix the server list update
| C# | mit | DragonEyes7/ConcoursUBI17,DragonEyes7/ConcoursUBI17 |
706a73911294613836b52ce0dd3a07309d060cda | Assets/BitStrap/Plugins/Inspector/Editor/ContextMenus/ScriptableObjectContextMenu.cs | Assets/BitStrap/Plugins/Inspector/Editor/ContextMenus/ScriptableObjectContextMenu.cs | using UnityEditor;
namespace BitStrap
{
public class ScriptableObjectContextMenu
{
[MenuItem("CONTEXT/ScriptableObject/Select in Project View")]
public static void SelectScriptabelObject(MenuCommand menuCommand)
{
EditorGUIUtility.PingObject(menuCommand.context);
}
}
} | using UnityEditor;
using UnityEngine;
namespace BitStrap
{
public class ScriptableObjectContextMenu
{
[MenuItem("CONTEXT/ScriptableObject/Select Script", false, 10)]
public static void SelectScriptabelObjectScript(MenuCommand menuCommand)
{
var serializedObject = new SerializedObject(menuCommand.context);
... | Add context menu to select the script of a scriptable object | Add context menu to select the script of a scriptable object
| C# | mit | bitcake/bitstrap |
b8f63e5b1a27ee63d60d9698b0b544c060d2eefb | test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitionExtensibilityPoints.cs | test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitionExtensibilityPoints.cs | using System;
using JsonApiDotNetCore.Resources;
namespace JsonApiDotNetCoreTests.IntegrationTests
{
/// <summary>
/// Lists the various extensibility points on <see cref="IResourceDefinition{TResource,TId}" />.
/// </summary>
[Flags]
public enum ResourceDefinitionExtensibilityPoints
{
... | using System;
using JsonApiDotNetCore.Resources;
namespace JsonApiDotNetCoreTests.IntegrationTests
{
/// <summary>
/// Lists the various extensibility points on <see cref="IResourceDefinition{TResource,TId}" />.
/// </summary>
[Flags]
public enum ResourceDefinitionExtensibilityPoints
{
... | Add None enum member to flags | Add None enum member to flags
| C# | mit | json-api-dotnet/JsonApiDotNetCore |
26da01e8b3e9fda5dcf29ab5cd4cd1d49699ff91 | Common/Constants.cs | Common/Constants.cs | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 ... | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 ... | Allow 'data-folder' and 'data-directory' config options | Allow 'data-folder' and 'data-directory' config options
| C# | apache-2.0 | bizcad/LeanJJN,StefanoRaggi/Lean,bizcad/Lean,mabeale/Lean,dpavlenkov/Lean,QuantConnect/Lean,dpavlenkov/Lean,AnshulYADAV007/Lean,JKarathiya/Lean,AlexCatarino/Lean,QuantConnect/Lean,devalkeralia/Lean,dpavlenkov/Lean,tomhunter-gh/Lean,bizcad/Lean,Obawoba/Lean,kaffeebrauer/Lean,JKarathiya/Lean,squideyes/Lean,Obawoba/Lean,y... |
4bd9692dad155fc9da56b95f9707544199fc04a9 | src/Graphs/AdjacencyListDirectedGraph.cs | src/Graphs/AdjacencyListDirectedGraph.cs | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
namespace Bearded.Utilities.Graphs
{
class AdjacencyListDirectedGraph<T> : IDirectedGraph<T> where T : IEquatable<T>
{
private readonly ImmutableList<T> elements;
private readonly ImmutableDictionary<T, Immutab... | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
namespace Bearded.Utilities.Graphs
{
class AdjacencyListDirectedGraph<T> : IDirectedGraph<T> where T : IEquatable<T>
{
private readonly ImmutableList<T> elements;
private readonly ImmutableDictionary<T, Immutab... | Make querying successors and predeccors fail explicitly | :lipstick: Make querying successors and predeccors fail explicitly
| C# | mit | beardgame/utilities |
af617d559f27fab1687e356260d65e312ef8a4b7 | Solutions/SharpArch.NHibernate/NHibernateValidator/HasUniqueDomainSignatureAttribute.cs | Solutions/SharpArch.NHibernate/NHibernateValidator/HasUniqueDomainSignatureAttribute.cs | namespace SharpArch.NHibernate.NHibernateValidator
{
using System.ComponentModel.DataAnnotations;
using SharpArch.Domain;
using SharpArch.Domain.DomainModel;
using SharpArch.Domain.PersistenceSupport;
/// <summary>
/// Provides a class level validator for determining if the entity has a u... | namespace SharpArch.NHibernate.NHibernateValidator
{
using System.ComponentModel.DataAnnotations;
using SharpArch.Domain;
using SharpArch.Domain.DomainModel;
using SharpArch.Domain.PersistenceSupport;
/// <summary>
/// Provides a class level validator for determining if the entity has a u... | Fix type name in exception message for HasUniqueDomainSignature | Fix type name in exception message for HasUniqueDomainSignature
| C# | bsd-3-clause | alphacloud/Sharp-Architecture,ysdiong/Sharp-Architecture,chenkaibin/Sharp-Architecture |
0195d654cacb2e496ce7cc2b3c3b3991111eabb3 | osu.Game/Beatmaps/ControlPoints/DifficultyControlPoint.cs | osu.Game/Beatmaps/ControlPoints/DifficultyControlPoint.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.Graphics;
using osuTK.Graphics;
namespace osu.Game.Beatmaps.ControlPoints
{
public class DifficultyControlPoint : Contr... | // 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.Graphics;
using osuTK.Graphics;
namespace osu.Game.Beatmaps.ControlPoints
{
public class DifficultyControlPoint : Contr... | Increase the precision of speed multiplier to match osu-stable | Increase the precision of speed multiplier to match osu-stable
| C# | mit | peppy/osu,UselessToucan/osu,peppy/osu-new,NeoAdonis/osu,UselessToucan/osu,peppy/osu,ppy/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,smoogipoo/osu,ppy/osu |
54d8dd34a375fb9df5b4eea32e73741a9bae9885 | Mos6510/Instructions/AddressingMode.cs | Mos6510/Instructions/AddressingMode.cs | namespace Mos6510.Instructions
{
public enum AddressingMode
{
Implied,
Immediate,
Absolute,
AbsoluteX,
AbsoluteY,
Zeropage,
ZeropageX,
ZeropageY,
IndirectX,
IndirectY
}
}
| namespace Mos6510.Instructions
{
public enum AddressingMode
{
Absolute,
AbsoluteX,
AbsoluteY,
Accumulator,
Immediate,
Implied,
IndirectX,
IndirectY,
Zeropage,
ZeropageX,
ZeropageY,
}
}
| Add the accumulator addressing mode. | Add the accumulator addressing mode.
| C# | mit | joshpeterson/mos,joshpeterson/mos,joshpeterson/mos |
d5490c37a709bd468db6645b525f740a6076f664 | RetailStore/RetailStore/RetailStore.cs | RetailStore/RetailStore/RetailStore.cs | using System.Collections.Generic;
namespace RetailStore
{
public class RetailStore
{
private readonly Screen m_Screen;
private readonly Dictionary<string, string> m_Products;
public RetailStore(Screen screen, Dictionary<string, string> products)
{
m_Screen = screen... | using System.Collections.Generic;
namespace RetailStore
{
public class RetailStore
{
private readonly Screen m_Screen;
private readonly Dictionary<string, string> m_Products;
public RetailStore(Screen screen, Dictionary<string, string> products)
{
m_Screen = screen... | Fix failing when passing null | Fix failing when passing null
| C# | mit | angellaa/RetailStoreSpike |
121b7a497c44c2eb7c8c748e33c98e140eefd27d | alert-roster.web/Views/Home/New.cshtml | alert-roster.web/Views/Home/New.cshtml | @model alert_roster.web.Models.Message
@{
ViewBag.Title = "Create New Message";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("New", "Home", FormMethod.Post))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Message</h4>
<hr />
@Html.ValidationSummary(true)
... | @model alert_roster.web.Models.Message
@{
ViewBag.Title = "Create New Message";
}
<h2>@ViewBag.Title</h2>
<div>
@Html.ActionLink("Back to List", "Index")
</div>
@using (Html.BeginForm("New", "Home", FormMethod.Post))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Message</h4... | Move back to list link | Move back to list link
| C# | mit | mattgwagner/alert-roster |
b5ae26141f360165afec8d0d6039f6404155a02e | src/Northwind.Model/Mapping/OrderDetailMap.cs | src/Northwind.Model/Mapping/OrderDetailMap.cs | using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace Northwind.Model.Mapping
{
public class OrderDetailMap : EntityTypeConfiguration<OrderDetail>
{
public OrderDetailMap()
{
// Primary Key
HasKey(t => new { t.OrderId,... | using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
namespace Northwind.Model.Mapping
{
public class OrderDetailMap : EntityTypeConfiguration<OrderDetail>
{
public OrderDetailMap()
{
// Primary Key
HasKey(t => new { t.OrderId,... | Change OrderDetails table name from 'OrderDetails' to 'Order Details' in the mapping. | Change OrderDetails table name from 'OrderDetails' to 'Order Details' in the mapping.
| C# | unlicense | shilin-he/spa-northwind,shilin-he/spa-northwind |
564d6ba3291ddbff162a0997723a0423c85a0526 | src/Stripe.net.Tests/account/account_behaviors.cs | src/Stripe.net.Tests/account/account_behaviors.cs | using Machine.Specifications;
namespace Stripe.Tests
{
[Behaviors]
public class account_behaviors
{
protected static StripeAccountSharedOptions CreateOrUpdateOptions;
protected static StripeAccount StripeAccount;
//It should_have_the_correct_email_address = () =>
// Str... | using Machine.Specifications;
namespace Stripe.Tests
{
[Behaviors]
public class account_behaviors
{
protected static StripeAccountSharedOptions CreateOrUpdateOptions;
protected static StripeAccount StripeAccount;
//It should_have_the_correct_email_address = () =>
// Str... | Remove this test as the API is broken | Remove this test as the API is broken
The API currently behaves incorrectly and this test is not useful
| C# | apache-2.0 | stripe/stripe-dotnet,richardlawley/stripe.net |
f86c5e676932f899b28fdc1efd7e72ec7e7ca342 | VotingApplication/VotingApplication.Web.Api/Global.asax.cs | VotingApplication/VotingApplication.Web.Api/Global.asax.cs | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Newtonsoft.Json;
using VotingApplication.Data.Context;
using VotingApplicati... | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Newtonsoft.Json;
using VotingApplication.Data.Context;
using VotingApplicati... | Revert "Revert "Force fix for new databases"" | Revert "Revert "Force fix for new databases""
This reverts commit fa7be52fa71ab991d7911c558b05ed48f2a1cda3.
| C# | apache-2.0 | Generic-Voting-Application/voting-application,JDawes-ScottLogic/voting-application,stevenhillcox/voting-application,tpkelly/voting-application,stevenhillcox/voting-application,stevenhillcox/voting-application,Generic-Voting-Application/voting-application,tpkelly/voting-application,Generic-Voting-Application/voting-appl... |
3ec91c58b823d3f4c8ff6afe0c2a0d5aa1a09be7 | Assets/PrimativeCreator/Editor/PrimitiveCreatorSaveData.cs | Assets/PrimativeCreator/Editor/PrimitiveCreatorSaveData.cs | namespace RedBlueGames.ToolsExamples
{
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class PrimitiveCreatorSaveData : ScriptableObject
{
public List<PrimitiveCreator.Config> ConfigPresets;
public bool HasConfigForIndex(int index)
{
... | namespace RedBlueGames.ToolsExamples
{
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class PrimitiveCreatorSaveData : ScriptableObject
{
public List<PrimitiveCreator.Config> ConfigPresets;
private void OnEnable()
{
if (th... | Fix NPE where saveData was accessed before being initialized | Fix NPE where saveData was accessed before being initialized
| C# | mit | edwardrowe/unity-custom-tool-example |
6eec48167260a31618719d66b11d5d49eb9e30bd | src/Umbraco.Infrastructure/PropertyEditors/EyeDropperColorPickerPropertyEditor.cs | src/Umbraco.Infrastructure/PropertyEditors/EyeDropperColorPickerPropertyEditor.cs | using Microsoft.Extensions.Logging;
using Umbraco.Cms.Core.IO;
using Umbraco.Cms.Core.Serialization;
using Umbraco.Cms.Core.Services;
using Umbraco.Cms.Core.Strings;
namespace Umbraco.Cms.Core.PropertyEditors
{
[DataEditor(
Constants.PropertyEditors.Aliases.ColorPickerEyeDropper,
"Eye Dropper Colo... | using Microsoft.Extensions.Logging;
using Umbraco.Cms.Core.IO;
using Umbraco.Cms.Core.Serialization;
using Umbraco.Cms.Core.Services;
using Umbraco.Cms.Core.Strings;
namespace Umbraco.Cms.Core.PropertyEditors
{
[DataEditor(
Constants.PropertyEditors.Aliases.ColorPickerEyeDropper,
EditorType.Proper... | Allow Eye Dropper to be used as macro parameter editor | Allow Eye Dropper to be used as macro parameter editor
| C# | mit | marcemarc/Umbraco-CMS,marcemarc/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,umbraco/Umbraco-CMS,robertjf/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,dawoe/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,robertjf/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,marcemarc/Umbraco-CM... |
a3979fa5130953822c2f238e4ea575ea4cc46d75 | TestUtilities/DatacardUtility.cs | TestUtilities/DatacardUtility.cs | using System;
using System.IO;
using System.IO.Compression;
using System.Reflection;
namespace TestUtilities
{
public static class DatacardUtility
{
public static string WriteDatacard(string name)
{
var directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
... | using System;
using System.IO;
using System.IO.Compression;
using System.Reflection;
namespace TestUtilities
{
public static class DatacardUtility
{
public static string WriteDatacard(string name)
{
var directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
... | Fix test datacard path case | Fix test datacard path case
| C# | epl-1.0 | tarakreddy/ADMPlugin,strhea/ADMPlugin,ADAPT/ADMPlugin |
92fdf15774239b605c3bcaf6295e18392400a32f | Bonobo.Git.Server/Extensions/UserExtensions.cs | Bonobo.Git.Server/Extensions/UserExtensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security;
using System.Security.Claims;
using System.Security.Principal;
using System.Web;
namespace Bonobo.Git.Server
{
public static class UserExtensions
{
public static string GetClaim(this IPrincipal user, string claim... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security;
using System.Security.Claims;
using System.Security.Principal;
using System.Web;
namespace Bonobo.Git.Server
{
public static class UserExtensions
{
public static string GetClaim(this IPrincipal user, string claim... | Use correct claims in case UserPrincipal has more than one identity | Use correct claims in case UserPrincipal has more than one identity
| C# | mit | anyeloamt1/Bonobo-Git-Server,larshg/Bonobo-Git-Server,padremortius/Bonobo-Git-Server,Acute-sales-ltd/Bonobo-Git-Server,PGM-NipponSysits/IIS.Git-Connector,igoryok-zp/Bonobo-Git-Server,igoryok-zp/Bonobo-Git-Server,crowar/Bonobo-Git-Server,larshg/Bonobo-Git-Server,padremortius/Bonobo-Git-Server,Ollienator/Bonobo-Git-Serve... |
c2d6575d5380ca27e27116197d72ff1638ffb938 | Source/Mvvm/Views/WindowService/WindowService.cs | Source/Mvvm/Views/WindowService/WindowService.cs | namespace Inspiring.Mvvm.Views {
using System.Windows;
using System.Windows.Media;
using Inspiring.Mvvm.Common;
using Inspiring.Mvvm.Screens;
public class WindowService : IWindowService {
public static readonly Event<InitializeWindowEventArgs> InitializeWindowEvent = new Event<InitializeWi... | namespace Inspiring.Mvvm.Views {
using System.Windows;
using System.Windows.Media;
using Inspiring.Mvvm.Common;
using Inspiring.Mvvm.Screens;
public class WindowService : IWindowService {
public static readonly Event<InitializeWindowEventArgs> InitializeWindowEvent = new Event<InitializeWi... | Optimize element and text rendering for modern Windows versions | Optimize element and text rendering for modern Windows versions
Using "TextRenderingMode.Aliased" is not recommended any more since ClearType is enabled by default and does a good job on modern Windows versions.
Enabling "UseLayoutRounding" doesn't affect text, but helps with sharp rendering of other UI elements.
| C# | epl-1.0 | InspiringCode/Inspiring.MVVM |
807463edca90444b66ffe254d03103c697f69b21 | src/Duracellko.PlanningPoker.Web/HttpClientSetupService.cs | src/Duracellko.PlanningPoker.Web/HttpClientSetupService.cs | using System;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting.Server;
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.Extensions.Hosting;
namespace Duracellko.PlanningPoker.Web
{
public class HttpClientSetupServ... | using System;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting.Server;
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.Extensions.Hosting;
namespace Duracellko.PlanningPoker.Web
{
public class HttpClientSetupServ... | Replace any API endpoint [::] for localhost when configuring HttpClient base address | Replace any API endpoint [::] for localhost when configuring HttpClient base address
| C# | mit | duracellko/planningpoker4azure,duracellko/planningpoker4azure,duracellko/planningpoker4azure |
35b9dddabdee020e952181dc657791d4299a684b | Examples/MyDbWebApi/App_Start/WebApiConfig.cs | Examples/MyDbWebApi/App_Start/WebApiConfig.cs | using System;
using System.Web.Http;
using DataBooster.DbWebApi;
namespace MyDbWebApi
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DbWebApi",
routeTemplate: "{sp}",
defaults: new { controller = "DbWebA... | using System;
using System.Web.Http;
using DataBooster.DbWebApi;
namespace MyDbWebApi
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DbWebApi",
routeTemplate: "{sp}/{ext}",
defaults: new { controller = "... | Add Uri Path Extension - constraints: new { ext = @"|json|xml|csv" } | Add Uri Path Extension - constraints: new { ext = @"|json|xml|csv" }
| C# | mit | DataBooster/DbWebApi,DataBooster/DbWebApi,DataBooster/DbWebApi,DataBooster/DbWebApi |
06720ca68077eeb545932e881d5413f2bb1bf784 | src/Elders.Cronus/Properties/AssemblyInfo.cs | src/Elders.Cronus/Properties/AssemblyInfo.cs | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyTitleAttribute("Elders.Cronus")]
[assembly: AssemblyDescriptionAttribute("Elders.Cronus")]
[assembly: AssemblyProductAttribute("Elders.Cronus")]
[assembly: AssemblyVersionAttribute("1.2.7")]
[assembly: AssemblyInformationalVersionAttribute("1.2.7")]
[as... | // <auto-generated/>
using System.Reflection;
[assembly: AssemblyTitleAttribute("Elders.Cronus")]
[assembly: AssemblyDescriptionAttribute("Elders.Cronus")]
[assembly: AssemblyProductAttribute("Elders.Cronus")]
[assembly: AssemblyVersionAttribute("1.2.8")]
[assembly: AssemblyInformationalVersionAttribute("1.2.8")]
[as... | Initialize AggregateRepository only for CommandConsumer | Initialize AggregateRepository only for CommandConsumer
| C# | apache-2.0 | Elders/Cronus,Elders/Cronus |
a3bdd989ba474e9a3df1e95b805ff3456fccf6e5 | sources/TIMEmSYSTEM.SemanticLogging.Mongo/EventEntryExtensions.cs | sources/TIMEmSYSTEM.SemanticLogging.Mongo/EventEntryExtensions.cs | using System.Collections.Generic;
using System.Linq;
using Microsoft.Practices.EnterpriseLibrary.SemanticLogging;
using MongoDB.Bson;
namespace TIMEmSYSTEM.SemanticLogging.Mongo
{
internal static class EventEntryExtensions
{
internal static BsonDocument AsBsonDocument(this EventEntry eventEntry)
... | using System.Collections.Generic;
using System.Linq;
using Microsoft.Practices.EnterpriseLibrary.SemanticLogging;
using MongoDB.Bson;
namespace TIMEmSYSTEM.SemanticLogging.Mongo
{
internal static class EventEntryExtensions
{
internal static BsonDocument AsBsonDocument(this EventEntry eventEntry)
... | Remove OpCode and Task from mapping | Remove OpCode and Task from mapping
| C# | mit | TIMEmSYSTEM/slab-mongodb |
81a64ad8d80b0da269d0a72337ddff112a9d7aa7 | IdunnSql.Console/ExecuteOptions.cs | IdunnSql.Console/ExecuteOptions.cs | using CommandLine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IdunnSql.Console
{
[Verb("execute", HelpText = "Execute the permission checks defined in a file")]
public class ExecuteOptions
{
[Option('s', "source", R... | using CommandLine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IdunnSql.Console
{
[Verb("execute", HelpText = "Execute the permission checks defined in a file")]
public class ExecuteOptions
{
[Option('s', "source", R... | Add new option to redirect to output from command line | Add new option to redirect to output from command line
| C# | apache-2.0 | Seddryck/Idunn.SqlServer |
de4aad6e1b40b3c4481f7ee1dfb66d046196cad2 | NugetPackageTrimmer/Program.cs | NugetPackageTrimmer/Program.cs | using System;
using System.IO;
using NuGet;
namespace NugetPackageTrimmer
{
class Program
{
static void Main(string[] args)
{
var repoUrl = args.Length > 2 ? args[1] : "https://packages.nuget.org/api/v2";
Console.WriteLine($"Checking if packages in [{args[0]}] exist in {repoUrl} and deleting any that don... | using System;
using System.Globalization;
using System.IO;
using NuGet;
namespace NugetPackageTrimmer
{
class Program
{
static void Main(string[] args)
{
var repoUrl = args.Length > 3 ? args[2] : "https://packages.nuget.org/api/v2";
Console.WriteLine($"Checking if packages in [{args[0]}] exist in {repoUr... | Deploy as well as trim | Deploy as well as trim
| C# | mit | Smartrak/Smartrak.Library |
debb0891d7f33b182511ea12789bf6d589367b0b | Oxide.Ext.Unity/UnityScript.cs | Oxide.Ext.Unity/UnityScript.cs | using Oxide.Core;
using UnityEngine;
namespace Oxide.Unity
{
/// <summary>
/// The main MonoBehaviour which calls OxideMod.OnFrame
/// </summary>
public class UnityScript : MonoBehaviour
{
public static GameObject Instance { get; private set; }
public static void Create()
... | using Oxide.Core;
using UnityEngine;
namespace Oxide.Unity
{
/// <summary>
/// The main MonoBehaviour which calls OxideMod.OnFrame
/// </summary>
public class UnityScript : MonoBehaviour
{
public static GameObject Instance { get; private set; }
public static void Create()
... | Use deprecated method for older Unity support | Use deprecated method for older Unity support
| C# | mit | Visagalis/Oxide,bawNg/Oxide,bawNg/Oxide,ApocDev/Oxide,LaserHydra/Oxide,ApocDev/Oxide,Nogrod/Oxide-2,Nogrod/Oxide-2,Visagalis/Oxide,MSylvia/Oxide,MSylvia/Oxide,LaserHydra/Oxide |
cc0b9dd6278b340f46b58f9d5395cddd556d36f8 | Battery-Commander.Web/Migrations/20190126183747_CanLogin.cs | Battery-Commander.Web/Migrations/20190126183747_CanLogin.cs | using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace BatteryCommander.Web.Migrations
{
public partial class CanLogin : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
... | using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace BatteryCommander.Web.Migrations
{
public partial class CanLogin : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
... | Tweak raw sql data update | Tweak raw sql data update
| C# | mit | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander |
0064d64fa27c20893be07e2d3f26cdaba8a6dda6 | src/VersionAssemblyInfo.cs | src/VersionAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("3.1.0.0")]
[assembly: AssemblyFileVersion("3.1.0.0")]
//// [assembly: AssemblyInformationalVersion("3.1.0.0 Release")] | using System.Reflection;
[assembly: AssemblyVersion("5.0.0.0")]
[assembly: AssemblyFileVersion("5.0.0.0")]
//// [assembly: AssemblyInformationalVersion("3.1.0.0 Release")] | Set assembly version to 5.0.0.0 | Set assembly version to 5.0.0.0
| C# | mit | marcoaoteixeira/NEventStore,D3-LucaPiombino/NEventStore,gael-ltd/NEventStore,jamiegaines/NEventStore,chris-evans/NEventStore,AGiorgetti/NEventStore,NEventStore/NEventStore,deltatre-webplu/NEventStore,paritoshmmmec/NEventStore,adamfur/NEventStore,nerdamigo/NEventStore |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.