commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
7387db708710f4997eaff49541ecf8d12bf55125 | Move setting of OptimizedDoubleBuffer style in DoubleBufferedPanel | eightlittlebits/elbgb | elbgb_ui/Components/DoubleBufferedPanel.cs | elbgb_ui/Components/DoubleBufferedPanel.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace elbgb_ui.Components
{
class DoubleBufferedPanel : Panel
{
private bool _realTimeUpdate;
public DoubleBufferedPanel()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace elbgb_ui.Components
{
class DoubleBufferedPanel : Panel
{
private bool _realTimeUpdate;
public DoubleBufferedPanel()
{
this.SetStyle(ControlStyles.Resiz... | mit | C# |
aca2a2884f8628db65a63c62a8afe3a25636a2b2 | Make sure we read the backing store name properly. | JeremyMcGee/WhosPlayingWhen,JeremyMcGee/WhosPlayingWhen,JeremyMcGee/WhosPlayingWhen | Scanner/Scanner/BackingStore.cs | Scanner/Scanner/BackingStore.cs | using System;
using System.IO;
using Newtonsoft.Json;
namespace Scanner
{
using System.Collections.Generic;
public class BackingStore
{
private string backingStoreName;
public BackingStore(string backingStoreName)
{
this.backingStoreName = backingStoreName;
}
... | using System;
using System.IO;
using Newtonsoft.Json;
namespace Scanner
{
using System.Collections.Generic;
public class BackingStore
{
private string backingStoreName;
public BackingStore(string backingStoreName)
{
this.backingStoreName = backingStoreName;
}
... | mit | C# |
55cea67b61a847843745034c38eb50ce3a755330 | Add basic GTA3 save test code | whampson/cascara,whampson/bft-spec | Src/WHampson.Cascara/Program.cs | Src/WHampson.Cascara/Program.cs | #region License
/* Copyright (c) 2017 Wes Hampson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | #region License
/* Copyright (c) 2017 Wes Hampson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | mit | C# |
f6da6a910afae2f3ad1248be15de9a8e59144e3a | fix typo | FrankyBoy/ApiDoc,FrankyBoy/ApiDoc | ApiDoc/Views/Shared/_Layout.cshtml | ApiDoc/Views/Shared/_Layout.cshtml | @using ApiDoc.Models
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
@Styles.Render("~/Content/css")
... | @using ApiDoc.Models
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title</title>
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
@Styles.Render("~/Content/css")
... | apache-2.0 | C# |
a0841f8ea6d4fa33ee1bff9f4f7a8a8260232d92 | Update Tracer.Clear() method | criteo/zipkin4net,criteo/zipkin4net | Criteo.Profiling.Tracing/Tracer.cs | Criteo.Profiling.Tracing/Tracer.cs | using System.Collections.Generic;
namespace Criteo.Profiling.Tracing
{
/// <summary>
/// Keeps track of all the registered tracers.
/// </summary>
public static class Tracer
{
/// <summary>
/// Global list of registred tracers.
/// </summary>
private static ICollect... | using System.Collections.Generic;
namespace Criteo.Profiling.Tracing
{
/// <summary>
/// Keeps track of all the registered tracers.
/// </summary>
public static class Tracer
{
/// <summary>
/// Global list of registred tracers.
/// </summary>
private static readonly... | apache-2.0 | C# |
65b4b106466482188ce67f6d659c42da5fefe70c | Clean up migrations. | Lombiq/Helpful-Extensions,Lombiq/Helpful-Extensions | Extensions/SiteTexts/Migrations.cs | Extensions/SiteTexts/Migrations.cs | using OrchardCore.ContentLocalization.Models;
using OrchardCore.ContentManagement.Metadata;
using OrchardCore.ContentManagement.Metadata.Builders;
using OrchardCore.ContentManagement.Metadata.Settings;
using OrchardCore.Data.Migration;
using OrchardCore.Markdown.Models;
using OrchardCore.Markdown.Settings;
using stati... | using OrchardCore.ContentLocalization.Models;
using OrchardCore.ContentManagement.Metadata;
using OrchardCore.ContentManagement.Metadata.Builders;
using OrchardCore.ContentManagement.Metadata.Settings;
using OrchardCore.Data.Migration;
using OrchardCore.Markdown.Models;
using OrchardCore.Markdown.Settings;
using stati... | bsd-3-clause | C# |
fdef48623ec066a4a113f3b168140ea160e9db15 | Update InteropBitmapInfo to have DirectRect support (possible as we've upgraded to .Net 4.5.2) | wangzheng888520/CefSharp,wangzheng888520/CefSharp,wangzheng888520/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,Livit/CefSharp,wangzheng888520/CefSharp | CefSharp.Wpf/Rendering/InteropBitmapInfo.cs | CefSharp.Wpf/Rendering/InteropBitmapInfo.cs | // Copyright © 2010-2016 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace CefSh... | // Copyright © 2010-2016 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace CefSharp.Wpf.Rendering
{
... | bsd-3-clause | C# |
0c737d3622395f9397efa480112cef41c4fb9be9 | Add 0.6 seconds preview time for spells | StefanoFiumara/Harry-Potter-Unity | Assets/Scripts/HarryPotterUnity/Cards/Generic/GenericSpell.cs | Assets/Scripts/HarryPotterUnity/Cards/Generic/GenericSpell.cs | using System.Collections;
using System.Collections.Generic;
using HarryPotterUnity.Tween;
using HarryPotterUnity.Utils;
using JetBrains.Annotations;
using UnityEngine;
namespace HarryPotterUnity.Cards.Generic
{
public abstract class GenericSpell : GenericCard {
private static readonly Vector3 SpellOffset... | using System.Collections;
using System.Collections.Generic;
using HarryPotterUnity.Tween;
using HarryPotterUnity.Utils;
using JetBrains.Annotations;
using UnityEngine;
namespace HarryPotterUnity.Cards.Generic
{
public abstract class GenericSpell : GenericCard {
private static readonly Vector3 SpellOffset... | mit | C# |
dc8b5a06519411d755c2830c1c5f2c6dcefbce9d | Fix simple inex test. | bosman/raven.testsuite | Raven.TestSuite.Tests/Api/Rest/IndexesBasicOperationsTests.cs | Raven.TestSuite.Tests/Api/Rest/IndexesBasicOperationsTests.cs | namespace Raven.TestSuite.Tests.Api.Rest
{
using Raven.TestSuite.Common.Abstractions;
using Raven.TestSuite.Common.WrapperInterfaces;
using Raven.TestSuite.Tests.Common.Attributes;
using System;
using Xunit;
[Serializable]
[RequiresFreshNorthwindDatabaseAttribute]
public clas... | namespace Raven.TestSuite.Tests.Api.Rest
{
using Raven.TestSuite.Common.Abstractions;
using Raven.TestSuite.Common.WrapperInterfaces;
using Raven.TestSuite.Tests.Common.Attributes;
using System;
using Xunit;
[Serializable]
[RequiresFreshNorthwindDatabaseAttribute]
public clas... | agpl-3.0 | C# |
d138832021c8a5d98359e40448bccf7065bfdd8c | Increment version to v1.1.0.20 | TDaphneB/XeroAPI.Net,MatthewSteeples/XeroAPI.Net,XeroAPI/XeroAPI.Net,jcvandan/XeroAPI.Net | source/XeroApi/Properties/AssemblyInfo.cs | source/XeroApi/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("XeroApi")]
[assembly: AssemblyDesc... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("XeroApi")]
[assembly: AssemblyDesc... | mit | C# |
64f7d2bf798b0ce8364b5b83886b8f1f075c980a | change route mapping to api/controller | mdavid626/artemis | src/Artemis.Web/App_Start/WebApiConfig.cs | src/Artemis.Web/App_Start/WebApiConfig.cs | using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using System.Web.Http.ModelBinding;
using System.Web.Http.ModelBinding.Binders;
namespace Artemis.Web
{
public static class WebApiConfig
{
public static void Register(HttpConfigur... | using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using System.Web.Http.ModelBinding;
using System.Web.Http.ModelBinding.Binders;
namespace Artemis.Web
{
public static class WebApiConfig
{
public static void Register(HttpConfigur... | mit | C# |
bf7acd1c019f4a8c8c5d3f20c92333d1b9dd693c | Update WeeklyXamarin.cs | planetxamarin/planetxamarin,planetxamarin/planetxamarin,planetxamarin/planetxamarin,stvansolano/planetxamarin,planetxamarin/planetxamarin,MabroukENG/planetxamarin,stvansolano/planetxamarin,beraybentesen/planetxamarin,beraybentesen/planetxamarin,MabroukENG/planetxamarin,stvansolano/planetxamarin,MabroukENG/planetxamarin... | src/Firehose.Web/Authors/WeeklyXamarin.cs | src/Firehose.Web/Authors/WeeklyXamarin.cs | using Firehose.Web.Infrastructure;
using System;
using System.Collections.Generic;
namespace Firehose.Web.Authors
{
public class WeeklyXamarin : IAmACommunityMember
{
public string FirstName => "Weekly";
public string LastName => "Xamarin";
public string StateOrRegion => "Internet";
... | using Firehose.Web.Infrastructure;
using System;
using System.Collections.Generic;
namespace Firehose.Web.Authors
{
public class WeeklyXamarin : IAmACommunityMember
{
public string FirstName => "Weekly";
public string LastName => "Xamarin";
public string StateOrRegion => "Internet";
... | mit | C# |
ffb73a1ed8a3fe6da38303127c277e33952efedb | Fix build issues with Injector | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNet.Mvc.Core/Injector.cs | src/Microsoft.AspNet.Mvc.Core/Injector.cs | using System;
using System.Linq;
using System.Reflection;
using Microsoft.AspNet.DependencyInjection;
namespace Microsoft.AspNet.Mvc
{
public static class Injector
{
public static void CallInitializer([NotNull] object obj, [NotNull] IServiceProvider services)
{
var type = obj.GetTy... | using System;
using System.Linq;
using System.Reflection;
using Microsoft.AspNet.DependencyInjection;
namespace Microsoft.AspNet.Mvc
{
public static class Injector
{
public static void CallInitializer([NotNull] object obj, [NotNull] IServiceProvider services)
{
var type = obj.GetTy... | apache-2.0 | C# |
37a42d19ee2de7d0ef7c54c307c4387deda22e85 | Update Validator | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/Services/Validator.cs | src/WeihanLi.Common/Services/Validator.cs | using System.ComponentModel.DataAnnotations;
using WeihanLi.Extensions;
using AnnotationValidationResult = System.ComponentModel.DataAnnotations.ValidationResult;
using ValidationResult = WeihanLi.Common.Models.ValidationResult;
namespace WeihanLi.Common.Services;
public interface IValidator
{
ValidationResult V... | using System.ComponentModel.DataAnnotations;
using WeihanLi.Extensions;
using AnnotationValidationResult = System.ComponentModel.DataAnnotations.ValidationResult;
using ValidationResult = WeihanLi.Common.Models.ValidationResult;
namespace WeihanLi.Common.Services;
public interface IValidator
{
ValidationResult V... | mit | C# |
533d90105bc4eaf47c78fd27bfa59871b815ca16 | Drop the "read-only" qualifier | ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,peppy/osu-framework | osu.Framework/Bindables/ILeasedBindable.cs | osu.Framework/Bindables/ILeasedBindable.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Framework.Bindables
{
/// <summary>
/// An interface that represents a leased bindable.
/// </summary>
public interface ILeasedBindable : IB... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Framework.Bindables
{
/// <summary>
/// An interface that represents a read-only leased bindable.
/// </summary>
public interface ILeasedBin... | mit | C# |
110ba14b7cf87a48cc212f4560d6add46776c6aa | Fix user model segments type | intercom/intercom-dotnet | src/Intercom/Data/User.cs | src/Intercom/Data/User.cs | using System;
using Intercom.Core;
using Intercom.Data;
using Intercom.Clients;
using Intercom.Exceptions;
using RestSharp;
using RestSharp.Authenticators;
using System.Collections;
using System.Linq;
using System.Collections.Generic;
using Newtonsoft.Json;
using Intercom.Converters.AttributeConverters;
namespace Int... | using System;
using Intercom.Core;
using Intercom.Data;
using Intercom.Clients;
using Intercom.Exceptions;
using RestSharp;
using RestSharp.Authenticators;
using System.Collections;
using System.Linq;
using System.Collections.Generic;
using Newtonsoft.Json;
using Intercom.Converters.AttributeConverters;
namespace Int... | apache-2.0 | C# |
5c8f88996527fccbbec231509578df71ef0c3a03 | Fix Mediator issue | Esri/military-planner-application-csharp | source/MilitaryPlanner/Helpers/Mediator.cs | source/MilitaryPlanner/Helpers/Mediator.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MilitaryPlanner.Helpers
{
static public class Mediator
{
static IDictionary<string, List<Action<object>>> pl_dict = new Dictionary<string, List<Action<object>>>();
sta... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MilitaryPlanner.Helpers
{
static public class Mediator
{
static IDictionary<string, List<Action<object>>> pl_dict = new Dictionary<string, List<Action<object>>>();
sta... | apache-2.0 | C# |
fbdec250e5d824a812ed84d97b096a01d4ea07df | Add message id to storage convert process | aloneguid/storage | src/Azure/Storage.Net.Microsoft.Azure.ServiceBus/Converter.cs | src/Azure/Storage.Net.Microsoft.Azure.ServiceBus/Converter.cs | using Microsoft.Azure.ServiceBus;
using System;
using System.Collections.Generic;
using QueueMessage = Storage.Net.Messaging.QueueMessage;
namespace Storage.Net.Microsoft.Azure.ServiceBus
{
static class Converter
{
public static Message ToMessage(QueueMessage message)
{
if(message == null)
... | using Microsoft.Azure.ServiceBus;
using System;
using System.Collections.Generic;
using QueueMessage = Storage.Net.Messaging.QueueMessage;
namespace Storage.Net.Microsoft.Azure.ServiceBus
{
static class Converter
{
public static Message ToMessage(QueueMessage message)
{
if(message == null)
... | mit | C# |
bd63045c19b103b8017650b5332be1e2dc80e569 | Initialize DomainCustomization with TextWriterCustomization | appharbor/appharbor-cli | src/AppHarbor.Tests/DomainCustomization.cs | src/AppHarbor.Tests/DomainCustomization.cs | using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoMoq;
namespace AppHarbor.Tests
{
public class DomainCustomization : CompositeCustomization
{
public DomainCustomization()
: base(
new AutoMoqCustomization(),
new TextWriterCustomization())
{
}
}
}
| using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoMoq;
namespace AppHarbor.Tests
{
public class DomainCustomization : CompositeCustomization
{
public DomainCustomization()
: base(new AutoMoqCustomization())
{
}
}
}
| mit | C# |
0d978ccd6aa647287a565bad657ba4ad5a92a314 | Update ImageKey.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | src/Core2D/ViewModels/Renderer/ImageKey.cs | src/Core2D/ViewModels/Renderer/ImageKey.cs | using System.Runtime.Serialization;
namespace Core2D.Renderer
{
[DataContract(IsReference = true)]
public class ImageKey : IImageKey
{
[DataMember(IsRequired = false, EmitDefaultValue = true)]
public string Key { get; set; }
}
}
|
using System.Runtime.Serialization;
namespace Core2D.Renderer
{
[DataContract(IsReference = true)]
public class ImageKey : IImageKey
{
[DataMember(IsRequired = false, EmitDefaultValue = true)]
public string Key { get; set; }
}
}
| mit | C# |
988e248e55eddbeaf88e0933fc947e51d016901c | Prepare CAMediaTimingFunction.cs for inclusion in MonoMac | mono/maccore,cwensley/maccore | src/CoreAnimation/CAMediaTimingFunction.cs | src/CoreAnimation/CAMediaTimingFunction.cs | //
// Extra methods for CAMediaTimingFunction
//
// Authors:
// Sebastien Pouliot <sebastien@xamarin.com>
//
// Copyright 2012 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Softwa... | //
// Extra methods for CAMediaTimingFunction
//
// Authors:
// Sebastien Pouliot <sebastien@xamarin.com>
//
// Copyright 2012 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Softwa... | apache-2.0 | C# |
88aef7d64ec7febf86f3bca6de3ba0ef4f1be192 | Remove unused overload. | fixie/fixie | src/Fixie.TestAdapter/LoggingExtensions.cs | src/Fixie.TestAdapter/LoggingExtensions.cs | namespace Fixie.TestAdapter
{
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
public static class LoggingExtensions
{
public static void Info(this IMessageLogger logger, string message)
=> logger.SendMessage(TestMessageLevel.Informational, message);
public stati... | namespace Fixie.TestAdapter
{
using System;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
public static class LoggingExtensions
{
public static void Info(this IMessageLogger logger, string message)
=> logger.SendMessage(TestMessageLevel.Informational, message);
... | mit | C# |
d93bc3462a4b78b15885c6e3d1dfe67ce7b63b74 | Fix xmldoc comment | rickbeerendonk/React.NET,reactjs/React.NET,reactjs/React.NET,reactjs/React.NET,chriscamplejohn/React.NET,rickbeerendonk/React.NET,reactjs/React.NET,chriscamplejohn/React.NET,reactjs/React.NET,rickbeerendonk/React.NET,chriscamplejohn/React.NET,rickbeerendonk/React.NET,reactjs/React.NET,chriscamplejohn/React.NET | src/React.AspNet/ReactBuilderExtensions.cs | src/React.AspNet/ReactBuilderExtensions.cs | /*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
using System... | /*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
using System... | mit | C# |
0dc39bee2f1b5de264b37d80089e0c77715d839a | Remove unnecessary interface from TableCommand (#257) | sebastienros/yessql | src/YesSql.Core/Sql/Schema/TableCommand.cs | src/YesSql.Core/Sql/Schema/TableCommand.cs | using System;
using System.Collections.Generic;
namespace YesSql.Sql.Schema
{
public abstract class TableCommand : ITableCommand
{
public string Name { get; private set; }
public List<ITableCommand> TableCommands { get; private set; }
public TableCommand(string tableName)
{
... | using System;
using System.Collections.Generic;
namespace YesSql.Sql.Schema
{
public abstract class TableCommand : ISchemaCommand, ITableCommand
{
public string Name { get; private set; }
public List<ITableCommand> TableCommands { get; private set; }
public TableCommand(string tableN... | mit | C# |
da07882d623c9e5ad8f6a788b7429f338f0a4ad4 | use list of content providers to select best content | Pondidum/Dashen,Pondidum/Dashen,Pondidum/Dashen,Pondidum/Dashen | Dashen/Controllers/StaticController.cs | Dashen/Controllers/StaticController.cs | using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Web.Http;
using Dashen.Static;
namespace Dashen.Controllers
{
public class StaticController : ApiController
{
private readonly List<IStaticContentProvider> _content;
public S... | using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Web.Http;
using Dashen.Static;
namespace Dashen.Controllers
{
public class StaticController : ApiController
{
private readonly StaticContentProvider _cache;
private readonly UserContentProvider _userContent;
public StaticCont... | lgpl-2.1 | C# |
0c3795f3e018515945e678afa10fd94688c1b081 | Add hidden element for club ownerid | yyankov/club-challange,yyankov/club-challange,yyankov/club-challange | ClubChallengeBeta/Views/Club/Edit.cshtml | ClubChallengeBeta/Views/Club/Edit.cshtml | @model ClubChallengeBeta.App_Data.Club
@{
ViewBag.Title = "Edit";
}
<h2>Edit</h2>
@using (Html.BeginForm("Edit", "Club", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Club</h4>
<hr />
@Html.ValidationSumm... | @model ClubChallengeBeta.App_Data.Club
@{
ViewBag.Title = "Edit";
}
<h2>Edit</h2>
@using (Html.BeginForm("Edit", "Club", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Club</h4>
<hr />
@Html.ValidationSumm... | mit | C# |
93ee3508dc77c334333e7cc00b2849ae6f0db567 | Use InlineAutoCommandData | appharbor/appharbor-cli | src/AppHarbor.Tests/CommandDispatcherTest.cs | src/AppHarbor.Tests/CommandDispatcherTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Castle.MicroKernel;
using Moq;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests
{
public class CommandDispatcherTest
{
public class FooCommand : ICommand
{
public virtual void Execute(string[] arguments)
{
}
}
[... | using System;
using System.Collections.Generic;
using System.Linq;
using Castle.MicroKernel;
using Moq;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests
{
public class CommandDispatcherTest
{
public class FooCommand : ICommand
{
public virtual void Execute(string[] arguments)
{
}
}
[... | mit | C# |
3bb3f31c8e3bd7c0c6121909d29a64ec81331e81 | Update ValuesOut.cs | EricZimmerman/RegistryPlugins | RegistryPlugin.UserAssist/ValuesOut.cs | RegistryPlugin.UserAssist/ValuesOut.cs | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.UserAssist
{
public class ValuesOut:IValueOut
{
public ValuesOut(string valueName, string programName, int runCounter, DateTimeOffset? lastRun, int? focusCount, string focusTime)
{
BatchValueName = valueNa... | using System;
using RegistryPluginBase.Interfaces;
namespace RegistryPlugin.UserAssist
{
public class ValuesOut:IValueOut
{
public ValuesOut(string valueName, string programName, int runCounter, DateTimeOffset? lastRun, int? focusCount, string focusTime)
{
BatchValueName = valueNa... | mit | C# |
12a1b5f02cfb640af78164d91f66634c8d3a19a4 | Fix JsonHALMediaTypeFormatter constructor | IsaacSanch/halcyon,visualeyes/halcyon,IsaacSanch/APIology.HAL | src/Halcyon/HAL/JsonHALMediaTypeFormatter.cs | src/Halcyon/HAL/JsonHALMediaTypeFormatter.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Web;
namespace Halcyon.HAL {
public class JsonHALMediaTypeFormatter : JsonMediaTy... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Web;
namespace Halcyon.HAL {
public class JsonHALMediaTypeFormatter : JsonMediaTy... | mit | C# |
fb80b20bab34a203eadaae8d7d2e8d0a6f28c3e4 | Add link in error message | markmeeus/MarcelloDB | MarcelloDB/Records/CollectionFileRoot.cs | MarcelloDB/Records/CollectionFileRoot.cs | using System;
using System.Collections.Generic;
using MarcelloDB.Records;
using MarcelloDB.Transactions;
using MarcelloDB.Serialization;
namespace MarcelloDB
{
internal class CollectionFileRoot
{
// first Int64 points to the collection file root record
internal const int INITIAL_HEAD = sizeof(... | using System;
using System.Collections.Generic;
using MarcelloDB.Records;
using MarcelloDB.Transactions;
using MarcelloDB.Serialization;
namespace MarcelloDB
{
internal class CollectionFileRoot
{
// first Int64 points to the collection file root record
internal const int INITIAL_HEAD = sizeof(... | mit | C# |
080fa6fa9efc0d177e20e89251ebc38dfbd30665 | Update CDN title | ernado-x/MediaHack | MediaHack.WebApp/Views/Home/Video.cshtml | MediaHack.WebApp/Views/Home/Video.cshtml | @model MediaHack.Core.Video
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>@Model.Title</h2>
<ul class="nav nav-tabs">
<li><a data-toggle="tab" href="#menu1">Stream from Blob Storage</a></li>
<li><a data-toggle="tab" href="#menu2">Stream from CDN</a></li>
</ul>
<!--
<video width=... | @model MediaHack.Core.Video
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>@Model.Title</h2>
<ul class="nav nav-tabs">
<li><a data-toggle="tab" href="#menu1">Stream from Blob Storage</a></li>
<li><a data-toggle="tab" href="#menu2">Stream from Blob CDN</a></li>
</ul>
<!--
<video w... | mit | C# |
b2ce6f56a6de0eb987433057ea45b869b37b8cd1 | Clean the Blocks Module of unused code | Nanabell/NoAdsHere | NoAdsHere/Commands/Blocks/BlockModule.cs | NoAdsHere/Commands/Blocks/BlockModule.cs | using System.Threading.Tasks;
using Discord.Commands;
using NoAdsHere.Common;
using NoAdsHere.Common.Preconditions;
using NoAdsHere.Services.AntiAds;
namespace NoAdsHere.Commands.Blocks
{
[Name("Blocks"), Group("Blocks")]
public class BlockModule : ModuleBase
{
[Command("Invite")]
[RequireP... | using System;
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Microsoft.Extensions.DependencyInjection;
using MongoDB.Driver;
using NoAdsHere.Database;
using NoAdsHere.Database.Models.GuildSettings;
using NoAdsHere.Common;
using NoAdsHere.Common.Preconditions;
using NoAdsHere.Services.AntiAds... | mit | C# |
ef4febf8b38394265efc9e145420de1805bdec58 | add a flag in a native interface | milleniumbug/Taxonomy | TaxonomyWpf/NativeExplorerInterface.cs | TaxonomyWpf/NativeExplorerInterface.cs | using System;
using System.Drawing;
using System.Runtime.InteropServices;
namespace TaxonomyWpf
{
public static class NativeExplorerInterface
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
private struct SHFILEINFO
{
public IntPtr hIcon;
public int iIcon;
public uint dwAttributes;... | using System;
using System.Drawing;
using System.Runtime.InteropServices;
namespace TaxonomyWpf
{
public static class NativeExplorerInterface
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
private struct SHFILEINFO
{
public IntPtr hIcon;
public int iIcon;
public uint dwAttributes;... | mit | C# |
248379a4208bccdc46b53596fac423fe73ed91d9 | Update _Scripts.cshtml | gep13/gep13,gep13/gep13,gep13/gep13,gep13/gep13 | input/_Scripts.cshtml | input/_Scripts.cshtml | <script type="text/javascript" src="/assets/js/google.js"></script>
<script type="text/javascript" src="/assets/js/anchor.min.js"></script>
<script type="text/javascript" src="/assets/js/clipboard.min.js"></script>
<script type="text/javascript" src="/assets/js/anchor.js"></script>
| <script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'gep13'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s... | mit | C# |
58891a55ff285790e904f0253978cd8d3236b6df | Switch to StringBuilder for speed. | tavis-software/Tavis.HttpCache | src/PrivateCache/CacheEntry.cs | src/PrivateCache/CacheEntry.cs | using System;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using ClientSamples.CachingTools;
namespace Tavis.PrivateCache
{
public class CacheEntry
{
public PrimaryCacheKey Key { get; private set; }
public HttpHeaderValueCollection<string> VaryHead... | using System;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using ClientSamples.CachingTools;
namespace Tavis.PrivateCache
{
public class CacheEntry
{
public PrimaryCacheKey Key { get; private set; }
public HttpHeaderValueCollection<string> VaryHeaders { get; private... | apache-2.0 | C# |
4548816cec46ffaa21afa44f93e7562ae4d9f2dc | Fix inspection | Particular/SagaMasterClass | Ups.Gateway/Properties/AssemblyInfo.cs | Ups.Gateway/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ups.Gateway")]
[assembly: AssemblyDescri... | 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("Up... | mit | C# |
c6827b97825d64e0f9504a13abb5ba9cfa431bb5 | fix lzma facet namespace | halforbit/data-stores | FileStores/Compression/Lzma/Facets/LzmaCompressionAttribute.cs | FileStores/Compression/Lzma/Facets/LzmaCompressionAttribute.cs | using Halforbit.DataStores.FileStores.Compression.GZip.Implementation;
using Halforbit.Facets.Attributes;
using System;
namespace Halforbit.DataStores.FileStores.Compression.Lzma.Facets
{
public class LzmaCompressionAttribute : FacetAttribute
{
public override Type TargetType => typeof(LzmaCompressor)... | using Halforbit.DataStores.FileStores.Compression.GZip.Implementation;
using Halforbit.Facets.Attributes;
using System;
namespace Halforbit.DataStores.FileStores.Compression.GZip.Facets
{
public class LzmaCompressionAttribute : FacetAttribute
{
public override Type TargetType => typeof(LzmaCompressor)... | mit | C# |
2ca1767d623df0f122bedca906d1c194ed385f0d | Simplify code a bit. | hiscodeness/Flower | Flower/WorkRunners/ThreadPoolWorkRunner.cs | Flower/WorkRunners/ThreadPoolWorkRunner.cs | namespace Flower.WorkRunners
{
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Flower.Works;
/// <summary>
/// An <see cref="IWorkRunner"/> that executes the submitted works on background threads from the thread ... | namespace Flower.WorkRunners
{
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Flower.Works;
/// <summary>
/// An <see cref="IWorkRunner"/> that executes the submitted works on background threads from the thread ... | mit | C# |
8c8de75eedb0fece5867bce37f785793c1c88007 | Improve HWI tests. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Tests/UnitTests/Hwi/SerialDefaultResponseTests.cs | WalletWasabi.Tests/UnitTests/Hwi/SerialDefaultResponseTests.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Hwi.ProcessBridge;
using WalletWasabi.Microservices;
using Xunit;
using WalletWasabi.Helpers;
namespace WalletWasabi.Tests.UnitTests.Hwi
{
/// <summary>
/// The tests in this collection are time-sensitive, therefore this test coll... | using System;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Hwi.ProcessBridge;
using WalletWasabi.Microservices;
using Xunit;
namespace WalletWasabi.Tests.UnitTests.Hwi
{
/// <summary>
/// The tests in this collection are time-sensitive, therefore this test collection is run in a special w... | mit | C# |
17e5c8b2ba786307c1321ff9816b9b8c3827d85f | Add giftcard to PaymentMethod enum. | Viincenttt/MollieApi,Viincenttt/MollieApi | Mollie.Api/Models/Payment/PaymentMethod.cs | Mollie.Api/Models/Payment/PaymentMethod.cs | using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Mollie.Api.Models.Payment {
[JsonConverter(typeof(StringEnumConverter))]
public enum PaymentMethod {
[EnumMember(Value = "ideal")] Ideal,
[EnumMember(Value = "creditcard")] CreditCard,
... | using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Mollie.Api.Models.Payment {
[JsonConverter(typeof(StringEnumConverter))]
public enum PaymentMethod {
[EnumMember(Value = "ideal")] Ideal,
[EnumMember(Value = "creditcard")] CreditCard,
... | mit | C# |
72f9a4e8dae5b4923d882b4fc3cbab42ff1e52a3 | update default cache control test for app service | aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,ryancyq/aspnetboilerplate,luchaoshuai/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate | test/Abp.AspNetCore.Tests/App/AppModule.cs | test/Abp.AspNetCore.Tests/App/AppModule.cs | using Abp.AspNetCore.App.MultiTenancy;
using Abp.AspNetCore.TestBase;
using Abp.Configuration.Startup;
using Abp.Modules;
using Abp.AspNetCore.Configuration;
using Abp.AspNetCore.Mocks;
using Abp.Auditing;
using Abp.FluentValidation;
using Abp.Localization;
using Abp.MultiTenancy;
using Abp.Reflection.Extensions;
usin... | using System.Reflection;
using Abp.AspNetCore.App.MultiTenancy;
using Abp.AspNetCore.TestBase;
using Abp.Configuration.Startup;
using Abp.Modules;
using Abp.AspNetCore.Configuration;
using Abp.AspNetCore.Mocks;
using Abp.Auditing;
using Abp.FluentValidation;
using Abp.Localization;
using Abp.MultiTenancy;
using Abp.Re... | mit | C# |
dfd12d7e1e9d7eac9ea968ed77a188391170243a | Fix some xml parsing issues | Seddryck/NBi,Seddryck/NBi | NBi.Xml/Items/Calculation/ExpressionXml.cs | NBi.Xml/Items/Calculation/ExpressionXml.cs | using NBi.Core.Evaluate;
using NBi.Core.ResultSet;
using NBi.Core.Transformation;
using NBi.Xml.Variables;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace NBi.Xml.Items.Calculatio... | using NBi.Core.Evaluate;
using NBi.Core.ResultSet;
using NBi.Core.Transformation;
using NBi.Xml.Variables;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace NBi.Xml.Items.Calculatio... | apache-2.0 | C# |
6fe663951dd2f889466f9ec65d33b834806389cd | Update new test to use UsePerRequestServices | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/WebSites/TagHelpersWebSite/Startup.cs | test/WebSites/TagHelpersWebSite/Startup.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
namespace TagHelpersWebSite
{
public class Startup... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
namespace TagHelpersWebSite
{
public class Startup... | apache-2.0 | C# |
a8be40480e5840276dde216dde0c679fbc322eb5 | Reduce namespace indentation. | chrarnoldus/VulkanRenderer,chrarnoldus/VulkanRenderer,chrarnoldus/VulkanRenderer | VulkanRendererApprovals/ApprovalTests.cs | VulkanRendererApprovals/ApprovalTests.cs | using ImageMagick;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using Xunit;
namespace VulkanRendererApprovals;
public class ApprovalTests
{
static void RenderModel(string modelPath, [CallerMemberName] string callerMemberName = "", [CallerFilePath] string callerFilePath = "")
... | using ImageMagick;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using Xunit;
namespace VulkanRendererApprovals
{
public class ApprovalTests
{
static void RenderModel(string modelPath, [CallerMemberName] string callerMemberName = "", [CallerFilePath] string callerFil... | unlicense | C# |
e8c37f57a56b826ce349114b80464f1eecaffee8 | Remove now useless test | VuWall/VuWall-Motion,DanH91/vuwall-motion | vuwall-motion/Test/TransparentFormTests.cs | vuwall-motion/Test/TransparentFormTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Windows.Forms;
using NUnit.Framework;
using vuwall_motion;
using System.Drawing;
using System.Threading;
namespace Test {
public class TransparentFormTests : AssertionHelper
{
private TransparentForm form;
[SetUp]
... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Windows.Forms;
using NUnit.Framework;
using vuwall_motion;
using System.Drawing;
using System.Threading;
namespace Test {
public class TransparentFormTests : AssertionHelper
{
private TransparentForm form;
[SetUp]
... | mit | C# |
e5aa619d7c0e26ab9daa881fc6c5cc9b2705b9d3 | fix leftover namespace change | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/CoinJoin/Coordinator/Alice.cs | WalletWasabi/CoinJoin/Coordinator/Alice.cs | using NBitcoin;
using NBitcoin.BouncyCastle.Math;
using System;
using System.Collections.Generic;
using System.Linq;
using WalletWasabi.Helpers;
namespace WalletWasabi.CoinJoin.Coordinator
{
public class Alice
{
public DateTimeOffset LastSeen { get; set; }
public Guid UniqueId { get; }
public Money InputSum ... | using NBitcoin;
using NBitcoin.BouncyCastle.Math;
using System;
using System.Collections.Generic;
using System.Linq;
using WalletWasabi.Helpers;
namespace WalletWasabi.CoinJoin
{
public class Alice
{
public DateTimeOffset LastSeen { get; set; }
public Guid UniqueId { get; }
public Money InputSum { get; }
... | mit | C# |
eed941aa8d0f9a98191dbb525048a57c01e3d163 | move classes from svn:HTLib2.Updating -> git:HCsbLib | htna/HCsbLib,htna/HCsbLib,htna/HCsbLib,htna/HCsbLib,htna/HCsbLib | HCsbLib/HCsbLib/HTLib2.Bioinfo/Hess/Hess.cs | HCsbLib/HCsbLib/HTLib2.Bioinfo/Hess/Hess.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HTLib2.Bioinfo
{
public partial class Hess
{
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HTLib2.Bioinfo
{
public partial class Hess
{
public static HessMatrix GetHessCoarseBlkmat(Matrix hess, IList<int> idx_heavy, ILinAlg ila, double? chkDiagToler, string invtype, params object[] invopt)
... | mit | C# |
8798a280f69f7cae6849879eff9ee2e61f5c2e7d | Remove invalid WeakRefs impl from UrhoEventAdapter | florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho | bindings/src/Runtime/UrhoEventAdapter.cs | bindings/src/Runtime/UrhoEventAdapter.cs | using System;
using System.Collections.Generic;
namespace Urho
{
internal class UrhoEventAdapter<TEventArgs>
{
readonly Dictionary<IntPtr, List<Action<TEventArgs>>> managedSubscribersByObjects;
readonly Dictionary<IntPtr, Subscription> nativeSubscriptionsForObjects;
public UrhoEventAdapter()
{
managedSu... | using System;
using System.Collections.Generic;
namespace Urho
{
internal class UrhoEventAdapter<TEventArgs>
{
readonly Dictionary<IntPtr, List<WeakReference<Action<TEventArgs>>>> managedSubscribersByObjects;
readonly Dictionary<IntPtr, Subscription> nativeSubscriptionsForObjects;
public UrhoEventAdapter()
... | mit | C# |
e86b1bc43a1ff82eba6477403ca260b5894cabcb | Update Accommodation.cs | nikola02333/WebKurs,nikola02333/WebKurs,nikola02333/WebKurs | BookingApp/BookingApp/Models/Accommodation.cs | BookingApp/BookingApp/Models/Accommodation.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BookingApp.Models
{
public class Accommodation
{
public int AccommodationId { get; set; }
public string address { get; set; }
public bool approved { get; set; }
public float averageG... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BookingApp.Models
{
public class Accommodation
{
public int AccommodationId { get; set; }
private string address { get; set; }
private bool approved { get; set; }
private float avera... | mit | C# |
18608f3c8fe897bb3831722809343ead09e79e95 | remove launchers when ammo is 0 | tiagomartines11/ggj17 | Assets/Scripts/Launcher.cs | Assets/Scripts/Launcher.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Launcher : MonoBehaviour {
public int[] projectileAngles;
public float range;
float activeAngle = 0.0f;
private PointBehaviour point;
public float angularSpeed = 2.0f;
GameObject aimContainer;
// Use this for initial... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Launcher : MonoBehaviour {
public int[] projectileAngles;
public float range;
float activeAngle = 0.0f;
private PointBehaviour point;
public float angularSpeed = 2.0f;
GameObject aimContainer;
// Use this for initial... | apache-2.0 | C# |
f1651b3bab887aaa062b62bbaf2edcdc28fd632b | Fix comments. | Picturepark/Picturepark.SDK.DotNet | src/Picturepark.SDK.V1.Tests/Localization/LocalizationTests.cs | src/Picturepark.SDK.V1.Tests/Localization/LocalizationTests.cs | using Picturepark.SDK.V1.Contract;
using Picturepark.SDK.V1.Localization;
using Xunit;
namespace Picturepark.SDK.V1.Tests.Localization
{
public class LocalizationTests
{
[Fact]
[Trait("Stack", "Localization")]
public void ShouldLocalizeException()
{
/// Arrange
var exception = new CustomerNotFoundExce... | using Picturepark.SDK.V1.Contract;
using Picturepark.SDK.V1.Localization;
using Xunit;
namespace Picturepark.SDK.V1.Tests.Localization
{
public class LocalizationTests
{
[Fact]
[Trait("Stack", "Localization")]
public void ShouldLocalizeException()
{
/// Arrange
var exception = new CustomerNotFoundExce... | mit | C# |
3156dcf0a8cea35c3636a48e4e53a83f987853a7 | Sort primary org dropdown | ucdavis/Purchasing,ucdavis/Purchasing,ucdavis/Purchasing | Purchasing.Web/Models/WorkgroupModifyModel.cs | Purchasing.Web/Models/WorkgroupModifyModel.cs | using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
using Purchasing.Core;
using Purchasing.Core.Domain;
using UCDArch.Core.PersistanceSupport;
using UCDArch.Core.Utils;
using System.Linq.Expressions;
namespace Purchasing.Web.Models
{
/// <summary>
/// ModifyModel for the W... | using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
using Purchasing.Core;
using Purchasing.Core.Domain;
using UCDArch.Core.PersistanceSupport;
using UCDArch.Core.Utils;
using System.Linq.Expressions;
namespace Purchasing.Web.Models
{
/// <summary>
/// ModifyModel for the W... | mit | C# |
fee3268b423a156846d487d56c2224f8fad00645 | Bump dev version to v0.12 | hifi/monodevelop-justenoughvi | JustEnoughVi/Properties/AddinInfo.cs | JustEnoughVi/Properties/AddinInfo.cs | using Mono.Addins;
using Mono.Addins.Description;
[assembly: Addin(
"JustEnoughVi",
Namespace = "JustEnoughVi",
Version = "0.12"
)]
[assembly: AddinName("Just Enough Vi")]
[assembly: AddinCategory("IDE extensions")]
[assembly: AddinDescription("Simplified Vi/Vim mode for MonoDevelop/Xamarin Studio.")]
[a... | using Mono.Addins;
using Mono.Addins.Description;
[assembly: Addin(
"JustEnoughVi",
Namespace = "JustEnoughVi",
Version = "0.11"
)]
[assembly: AddinName("Just Enough Vi")]
[assembly: AddinCategory("IDE extensions")]
[assembly: AddinDescription("Simplified Vi/Vim mode for MonoDevelop/Xamarin Studio.")]
[a... | mit | C# |
393c9ce2f87857313f81d086342c761f731f8638 | revert https disable | os2kitos/kitos,os2kitos/kitos,os2kitos/kitos,os2kitos/kitos | Presentation.Web/App_Start/FilterConfig.cs | Presentation.Web/App_Start/FilterConfig.cs | using System.Web.Mvc;
namespace Presentation.Web
{
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
filters.Add(new RequireHttpsAttribute());
}
}
}
| using System.Web.Mvc;
namespace Presentation.Web
{
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
//filters.Add(new RequireHttpsAttribute());
}
}
}
| mpl-2.0 | C# |
b3c99ca9c3595a8baf5389ee3ca07ada9093d155 | Configure HTTP request interception | martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site | tests/LondonTravel.Site.Tests/Integration/TestServerFixture.cs | tests/LondonTravel.Site.Tests/Integration/TestServerFixture.cs | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.LondonTravel.Site.Integration
{
using System;
using System.IO;
using JustEat.HttpClientInterception;
usi... | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.LondonTravel.Site.Integration
{
using System;
using System.IO;
using Microsoft.AspNetCore.Hosting;
using... | apache-2.0 | C# |
552147b7e8286192cb5e113f47c58e4d84d925ac | Bump version | kamil-mrzyglod/Oxygenize | Oxygenize/Properties/AssemblyInfo.cs | Oxygenize/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("Ox... | 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("Ox... | mit | C# |
bb7d6b043c1ede1db2e1765032d79cc437fe97ad | Update IRestBulkRepository.cs | tiksn/TIKSN-Framework | TIKSN.Core/Web/Rest/IRestBulkRepository.cs | TIKSN.Core/Web/Rest/IRestBulkRepository.cs | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using TIKSN.Data;
namespace TIKSN.Web.Rest
{
public interface IRestBulkRepository<TEntity, TIdentity> where TEntity : IEntity<TIdentity>
where TIdentity : IEquatable<TIdentity>
{
Task AddRange... | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using TIKSN.Data;
namespace TIKSN.Web.Rest
{
public interface IRestBulkRepository<TEntity, TIdentity> where TEntity : IEntity<TIdentity> where TIdentity : IEquatable<TIdentity>
{
Task AddRangeAsync(IE... | mit | C# |
e739867bba0e8571dc89d25ef28c9bfab85d6434 | enable links in logs window | sepehr-laal/OpenRoC | OpenRoC/LogsDialog.cs | OpenRoC/LogsDialog.cs | namespace oroc
{
using System;
using System.Diagnostics;
using System.Windows.Forms;
public partial class LogsDialog : Form
{
public LogsDialog()
{
InitializeComponent();
if (LogTextBox.Handle != IntPtr.Zero)
Logger.Configure(this, LogTextBo... | namespace oroc
{
using System;
using System.Windows.Forms;
public partial class LogsDialog : Form
{
public LogsDialog()
{
InitializeComponent();
if (LogTextBox.Handle != IntPtr.Zero)
Logger.Configure(this, LogTextBox);
}
private... | mit | C# |
8f2581aacd6354eee5e3619eecf914a22e537d99 | Fix ksp compatible version | gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer | LmpGlobal/KSPCompatible.cs | LmpGlobal/KSPCompatible.cs | using System;
namespace LmpGlobal
{
public static class KspCompatible
{
public static readonly Version MinKspVersion = new Version("1.4.0");
public static readonly Version MaxKspVersion = new Version("1.4.9");
}
}
| using System;
namespace LmpGlobal
{
public static class KspCompatible
{
public static readonly Version MinKspVersion = new Version("1.3.0");
public static readonly Version MaxKspVersion = new Version("1.3.9");
}
}
| mit | C# |
1026ad571f9507d276ede10ca84c97b76fccb493 | Reduce information displayed in about box | amweiss/vigilant-cupcake | VigilantCupcake/SubForms/AboutBox.cs | VigilantCupcake/SubForms/AboutBox.cs | using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace VigilantCupcake.SubForms {
partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
Text = $"About {AssemblyTitle}";
labelProductName.Text = AssemblyTitle;
... | using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace VigilantCupcake.SubForms {
partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
Text = $"About {AssemblyTitle}";
labelProductName.Text = AssemblyTitle;
... | mit | C# |
106fca41a6267b34c4736d4c3dff6196152cc2a3 | Fix wrong attribute for about box | amweiss/vigilant-cupcake | VigilantCupcake/SubForms/AboutBox.cs | VigilantCupcake/SubForms/AboutBox.cs | using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace VigilantCupcake.SubForms {
partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
Text = $"About {AssemblyTitle}";
labelProductName.Text = AssemblyTitle;
... | using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace VigilantCupcake.SubForms {
partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
Text = $"About {AssemblyTitle}";
labelProductName.Text = AssemblyTitle;
... | mit | C# |
25b9850d6ae0c4ab2b89c7f357aa41a501d76147 | Add license info in assembly. | nagilum/dcm | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Di... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Di... | mit | C# |
510be9e253bdbc71b3410d1b2a6787422cebefeb | Add missed file for last commit | rileywhite/Cilador | src/Bix.Mixers/Fody/ILCloning/ClonerBase.cs | src/Bix.Mixers/Fody/ILCloning/ClonerBase.cs | /***************************************************************************/
// Copyright 2013-2014 Riley White
//
// 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.ap... | /***************************************************************************/
// Copyright 2013-2014 Riley White
//
// 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.ap... | apache-2.0 | C# |
ab25b02d029f0aa234d1b486782087366bc932db | add part of url | blogifierdotnet/Blogifier.Core,blogifierdotnet/Blogifier.Core | samples/WebApp/Views/Blogifier/Admin/Custom/_Shared/_Nav.cshtml | samples/WebApp/Views/Blogifier/Admin/Custom/_Shared/_Nav.cshtml | @using Blogifier.Core.Common
@{
var avatar = ApplicationSettings.ProfileAvatar;
var userName = "";
var blogTitle = ApplicationSettings.Title;
var blogDesc = ApplicationSettings.Description;
var blogImg = ApplicationSettings.ProfileImage;
if (Model.Profile != null)
{
userName = Model... | @using Blogifier.Core.Common
@{
var avatar = ApplicationSettings.ProfileAvatar;
var userName = "";
var blogTitle = ApplicationSettings.Title;
var blogDesc = ApplicationSettings.Description;
var blogImg = ApplicationSettings.ProfileImage;
if (Model.Profile != null)
{
userName = Model... | mit | C# |
3fe9aaa8ddf64957100fe9f3b02e30440dce9cf6 | Use the correct Accept type for json requests | Nabile-Rahmani/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,default0/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,Nabile-Rahmani/osu-framework,EVA... | osu.Framework/IO/Network/JsonWebRequest.cs | osu.Framework/IO/Network/JsonWebRequest.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Net;
using Newtonsoft.Json;
namespace osu.Framework.IO.Network
{
/// <summary>
/// A web request with a specific ... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using Newtonsoft.Json;
namespace osu.Framework.IO.Network
{
/// <summary>
/// A web request with a specific JSON response forma... | mit | C# |
712bc578dcc03a8be8649bba5fd56c483f41aa05 | update setting name and description | ppy/osu,peppy/osu-new,smoogipoo/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,peppy/osu | osu.Game.Rulesets.Osu/Mods/OsuModMirror.cs | osu.Game.Rulesets.Osu/Mods/OsuModMirror.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.Bindables;
using osu.Game.Configuration;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Osu.Obje... | // 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.Bindables;
using osu.Game.Configuration;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Osu.Obje... | mit | C# |
bc027a2815b2dab2ca6c7a5f327b24f467f234e7 | Update IShapeState.cs | Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/Model/Renderer/IShapeState.cs | src/Core2D/Model/Renderer/IShapeState.cs |
namespace Core2D.Renderer
{
/// <summary>
/// Defines shape state contract.
/// </summary>
public interface IShapeState : IObservableObject
{
/// <summary>
/// Gets or sets shape state flags.
/// </summary>
ShapeStateFlags Flags { get; set; }
/// <summary>
... |
namespace Core2D.Renderer
{
/// <summary>
/// Defines shape state contract.
/// </summary>
public interface IShapeState : IObservableObject
{
/// <summary>
/// Gets or sets shape state flags.
/// </summary>
ShapeStateFlags Flags { get; set; }
/// <summary>
... | mit | C# |
85f1974da6a60d0dc6eddafd99d21c5514cf626f | Add TLS change to make the call to the Audit api work | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers | src/SFA.DAS.EmployerUsers.Api/Startup.cs | src/SFA.DAS.EmployerUsers.Api/Startup.cs | using System.Net;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(SFA.DAS.EmployerUsers.Api.Startup))]
namespace SFA.DAS.EmployerUsers.Api
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ServicePointManager.SecurityProtocol |= Security... | using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(SFA.DAS.EmployerUsers.Api.Startup))]
namespace SFA.DAS.EmployerUsers.Api
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
}
}
} | mit | C# |
384cbf6b4c7e0de4b7d5b91116a1c58313751a7f | Fix race condition with async callresults | Facepunch/Facepunch.Steamworks,Facepunch/Facepunch.Steamworks,Facepunch/Facepunch.Steamworks | Facepunch.Steamworks/Callbacks/CallResult.cs | Facepunch.Steamworks/Callbacks/CallResult.cs | using Steamworks.Data;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
namespace Steamworks
{
/// <summary>
/// An awaitable version of a SteamAPICall_t
/// </summary>
internal struct... | using Steamworks.Data;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
namespace Steamworks
{
/// <summary>
/// An awaitable version of a SteamAPICall_t
/// </summary>
internal struct... | mit | C# |
df2b9912f762f289492bef7c6716fc409e0094f3 | Update PlannerController.cs | PiezPiedPy/Kerbalism,PiezPiedPy/Kerbalism,PiezPiedPy/Kerbalism | src/Kerbalism/Modules/PlannerController.cs | src/Kerbalism/Modules/PlannerController.cs | using System;
using System.Collections.Generic;
using UnityEngine;
using KSP.Localization;
namespace KERBALISM
{
public class PlannerController : PartModule
{
// config
[KSPField] public bool toggle = true; // true to show the toggle button in editor
[KSPField] public string title = str... | using System;
using System.Collections.Generic;
using UnityEngine;
using KSP.Localization;
namespace KERBALISM
{
public class PlannerController : PartModule
{
// config
[KSPField] public bool toggle = true; // true to show the toggle button in editor
[KSPField] public string title = str... | unlicense | C# |
145d59fddaa74dd154f8b2a39231aaf0d4e97f43 | Make sure the user really is activated | dlidstrom/Snittlistan,dlidstrom/Snittlistan,dlidstrom/Snittlistan | SnittListan.Test/AccountController_Verify.cs | SnittListan.Test/AccountController_Verify.cs | using System;
using System.Linq;
using System.Web.Mvc;
using Moq;
using MvcContrib.TestHelper;
using SnittListan.Controllers;
using SnittListan.Helpers;
using SnittListan.Models;
using SnittListan.Services;
using Xunit;
namespace SnittListan.Test
{
public class AccountController_Verify : DbTest
{
[... | using System;
using System.Web.Mvc;
using Moq;
using MvcContrib.TestHelper;
using SnittListan.Controllers;
using SnittListan.Models;
using SnittListan.Services;
using Xunit;
namespace SnittListan.Test
{
public class AccountController_Verify : DbTest
{
[Fact]
public void UnknownIdFails()
{
v... | mit | C# |
6d501aa3a6fd0b68fa9fb838b671345555c6ae61 | Change the assembly version to use wildcard | Solybum/Libraries | TSRandom/TSRandom/Properties/AssemblyInfo.cs | TSRandom/TSRandom/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("TSR... | 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("TSR... | mit | C# |
d1877ec77653caa1e8c4c6b895d6a7fb4cf17cc0 | add Deserialize to SpanAirlockSerializer | vostok/core | Vostok.Core/Tracing/SpanAirlockSerializer.cs | Vostok.Core/Tracing/SpanAirlockSerializer.cs | using System;
using System.IO;
using Vostok.Airlock;
using Vostok.Commons.Binary;
namespace Vostok.Tracing
{
internal class SpanAirlockSerializer : IAirlockSerializer<Span>, IAirlockDeserializer<Span>
{
private const byte FormatVersion = 1;
public void Serialize(Span span, IAirlockSink sink)
... | using Vostok.Airlock;
using Vostok.Commons.Binary;
namespace Vostok.Tracing
{
internal class SpanAirlockSerializer : IAirlockSerializer<Span>
{
private const byte FormatVersion = 1;
public void Serialize(Span span, IAirlockSink sink)
{
var writer = sink.Writer;
... | mit | C# |
ba10cf8e9c5e6f42e99d2fb8a7117730a683d3c6 | Update Version Number | martintmg/CRMSimpleRecordCloner | SimpleRecordCloner/SimpleRecordCloner/Properties/AssemblyInfo.cs | SimpleRecordCloner/SimpleRecordCloner/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: Asse... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: Asse... | mit | C# |
bca95dd4586cd5b1674f374dce5f0db81bd2015b | Update Plane.cs | shlee322/openrgss | Runtime/RGSS/Plane.cs | Runtime/RGSS/Plane.cs | namespace OpenRGSS.Runtime.RGSS
{
public class Plane : Entity
{
public Viewport viewport;
public Bitmap bitmap;
public bool visible;
public int z;
public int ox;
public int oy;
public double zoom_x;
public double zoom_y;
public int opacity... | namespace OpenRGSS.Runtime.RGSS
{
public class Plane
{
public Viewport viewport;
public Bitmap bitmap;
public bool visible;
public int z;
public int ox;
public int oy;
public double zoom_x;
public double zoom_y;
public int opacity;
... | mit | C# |
6ccf006688920a623aa62c789c14fa2d47722a85 | Use [Test] instead of [TestCase] in error-handling exercise (#188) | robkeim/xcsharp,exercism/xcsharp,robkeim/xcsharp,GKotfis/csharp,GKotfis/csharp,ErikSchierboom/xcsharp,ErikSchierboom/xcsharp,exercism/xcsharp | exercises/error-handling/ErrorHandlingTest.cs | exercises/error-handling/ErrorHandlingTest.cs | using System;
using NUnit.Framework;
[TestFixture]
public class ErrorHandlingTest
{
// Read more about exception handling here:
// https://msdn.microsoft.com/en-us/library/ms173162.aspx?f=255&MSPPError=-2147217396
[Test]
public void ThrowException()
{
Assert.Throws<Exception>(ErrorHandling... | using System;
using NUnit.Framework;
[TestFixture]
public class ErrorHandlingTest
{
// Read more about exception handling here:
// https://msdn.microsoft.com/en-us/library/ms173162.aspx?f=255&MSPPError=-2147217396
[TestCase]
public void ThrowException()
{
Assert.Throws<Exception>(ErrorHand... | mit | C# |
5ecd39adf9ac74c163288307eb17f19ada10abcd | remove commented out code | PdFramework/BaseClassLibraries | ApiTestProject/Apis/Config/UnityConfig.cs | ApiTestProject/Apis/Config/UnityConfig.cs | namespace Apis.Config
{
using PeinearyDevelopment.Framework.BaseClassLibraries.Web.Http;
using Contracts;
using ContractValidators;
using DataAccess;
using DataAccessContracts;
using Microsoft.Practices.Unity;
using System.Data.Entity;
using System.Web;
using System.Web.Http;
... | namespace Apis.Config
{
using PeinearyDevelopment.Framework.BaseClassLibraries.Web.Http;
using Contracts;
using ContractValidators;
using DataAccess;
using DataAccessContracts;
using Microsoft.Practices.Unity;
using System.Data.Entity;
using System.Web;
using System.Web.Http;
... | mit | C# |
427c36a2e855ba20373e9cae8142de245b326098 | Bump version to 0.5.1 | sqt/cactbot,sqt/cactbot,sqt/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot,quisquous/cactbot | CactbotOverlay/Properties/AssemblyInfo.cs | CactbotOverlay/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CactbotOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CactbotOverlay")]
[assembly: AssemblyC... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("CactbotOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CactbotOverlay")]
[assembly: AssemblyC... | apache-2.0 | C# |
62abd4b122b798cd12c2cbb52e39d8ee2d3d7513 | Refactor to tests to use TestCaseData | parkerholladay/fizz-buzz-tdd | FizzBuzz.Tests/FizzBuzzCalculatorTests.cs | FizzBuzz.Tests/FizzBuzzCalculatorTests.cs | using System.Collections;
using NUnit.Framework;
namespace FizzBuzz.Tests
{
public class FizzBuzzTestData
{
public static IEnumerable TestCases
{
get
{
yield return new TestCaseData(1).Returns("1");
yield return new TestCaseDa... | using NUnit.Framework;
namespace FizzBuzz.Tests
{
[TestFixture]
public class FizzBuzzCalculatorTests
{
private FizzBuzzCalculator _calculator;
[SetUp]
public void Setup()
{
_calculator = new FizzBuzzCalculator();
}
[TestCase(1)]
... | mit | C# |
112f833532acda925d9fa77ed49a42e72b5f8800 | Fix ListBoxAssist.IsToggle toggling disabled items (#1312) | ButchersBoy/MaterialDesignInXamlToolkit,ButchersBoy/MaterialDesignInXamlToolkit,ButchersBoy/MaterialDesignInXamlToolkit | MaterialDesignThemes.Wpf/ListBoxAssist.cs | MaterialDesignThemes.Wpf/ListBoxAssist.cs | using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
namespace MaterialDesignThemes.Wpf
{
public static class ListBoxAssist
{
static ListBoxAssist()
{
EventManager.RegisterClassHandler(typeof (ListBox), UIEl... | using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
namespace MaterialDesignThemes.Wpf
{
public static class ListBoxAssist
{
static ListBoxAssist()
{
EventManager.RegisterClassHandler(typeof (ListBox), UIEl... | mit | C# |
2a592733cb6ef6075d1ea55972b5c43ea729eedd | Adjust --sloppy warning detection. | Prof9/PixelPet | PixelPet/CLI/Commands/ConvertBitmapCmd.cs | PixelPet/CLI/Commands/ConvertBitmapCmd.cs | using LibPixelPet;
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
namespace PixelPet.CLI.Commands {
internal class ConvertBitmapCmd : CliCommand {
public ConvertBitmapCmd()
: base("Convert-Bitmap",
new Parameter(true, new ParameterValue("format")),
... | using LibPixelPet;
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
namespace PixelPet.CLI.Commands {
internal class ConvertBitmapCmd : CliCommand {
public ConvertBitmapCmd()
: base("Convert-Bitmap",
new Parameter(true, new ParameterValue("format")),
... | mit | C# |
4dc81d8b5226902bab883ef563a176cb632884ce | create complex trigger for running lookups | ucdavis/Purchasing,ucdavis/Purchasing,ucdavis/Purchasing | Purchasing.Web/App_Start/CreateIndexes.cs | Purchasing.Web/App_Start/CreateIndexes.cs | using System;
using Purchasing.Web.App_Start.Jobs;
using Quartz;
using Quartz.Impl;
using System.Web;
[assembly: WebActivator.PostApplicationStartMethod(typeof(Purchasing.Web.App_Start.CreateIndexes), "ScheduleJobs")]
namespace Purchasing.Web.App_Start
{
public static class CreateIndexes
{
private sta... | using System;
using Microsoft.Practices.ServiceLocation;
using Purchasing.Web.Services;
using Quartz;
using Quartz.Impl;
using System.Web;
[assembly: WebActivator.PostApplicationStartMethod(typeof(Purchasing.Web.App_Start.CreateIndexes), "ScheduleJobs")]
namespace Purchasing.Web.App_Start
{
public static class Cr... | mit | C# |
4a6719bb66a833199e41cc9483bd6024cedffa11 | Add BankInventoryOptions to item properties | villermen/runescape-cache-tools,villermen/runescape-cache-tools | RuneScapeCacheTools/Model/ItemProperty.cs | RuneScapeCacheTools/Model/ItemProperty.cs | using Villermen.RuneScapeCacheTools.File;
namespace Villermen.RuneScapeCacheTools.Model
{
/// <summary>
/// The identifier for a parameter of an <see cref="ItemDefinitionFile" />.
/// </summary>
public enum ItemProperty
{
WeaponRange = 13,
Unbankable = 59,
EquipOption1 = 528... | using Villermen.RuneScapeCacheTools.File;
namespace Villermen.RuneScapeCacheTools.Model
{
/// <summary>
/// The identifier for a parameter of an <see cref="ItemDefinitionFile" />.
/// </summary>
public enum ItemProperty
{
WeaponRange = 13,
Unbankable = 59,
EquipOption1 = 528... | mit | C# |
e17a23851a9d51c2cb212dec91ce7db00346570e | Increment version to 1.0.8 | GuitarRich/Unicorn,kamsar/Unicorn,MacDennis76/Unicorn,bllue78/Unicorn,MacDennis76/Unicorn,kamsar/Unicorn,GuitarRich/Unicorn,PetersonDave/Unicorn,PetersonDave/Unicorn,rmwatson5/Unicorn,rmwatson5/Unicorn,bllue78/Unicorn | Source/Unicorn/Properties/AssemblyInfo.cs | Source/Unicorn/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Unicorn")]
[assembly: AssemblyDescription... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Unicorn")]
[assembly: AssemblyDescription... | mit | C# |
740a3ea5063461d2d60486ac64de0779df472e53 | Add missing INotifyArrayChanged xmldoc | peppy/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework | osu.Framework/Lists/INotifyArrayChanged.cs | osu.Framework/Lists/INotifyArrayChanged.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;
namespace osu.Framework.Lists
{
/// <summary>
/// Provides an event for notifying about array elements changing.
/// </summary>
public int... | // 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;
namespace osu.Framework.Lists
{
internal interface INotifyArrayChanged
{
event Action ArrayElementChanged;
}
}
| mit | C# |
b8202da7aa746bc2b09fb19b9f40e3e227e8a89e | Fix tests | btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver,btcpayserver/btcpayserver | BTCPayServer/Controllers/ErrorController.cs | BTCPayServer/Controllers/ErrorController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace BTCPayServer.Controllers
{
[Route("[controller]/[action]")]
public class ErrorController : Controller
{
public IActionResult Handle(int? sta... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace BTCPayServer.Controllers
{
[Route("[controller]/[action]")]
public class ErrorController : Controller
{
public IActionResult Handle(int? sta... | mit | C# |
6a7ae71b5afb6e8c860a888af9498c073f49b584 | Update AssemblyInfo.cs | DevExpress/BigQueryProvider | BigQueryProvider/Properties/AssemblyInfo.cs | BigQueryProvider/Properties/AssemblyInfo.cs | /*
Copyright 2015 Developer Express Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | /*
Copyright 2015 Developer Express Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | apache-2.0 | C# |
dbafb173f1ff16acb3cdc7196437fb48d66d6783 | Use throw expression | nikeee/HolzShots | src/HolzShots.Common/ReflectionUtil.cs | src/HolzShots.Common/ReflectionUtil.cs | using System;
using System.Reflection;
namespace HolzShots.Common
{
static class ReflectionUtil
{
/// <summary>
/// Uses reflection to get the field value from an object.
/// </summary>
/// <param name="instance">The instance object.</param>
/// <param name="fieldName">T... | using System;
using System.Reflection;
namespace HolzShots.Common
{
static class ReflectionUtil
{
/// <summary>
/// Uses reflection to get the field value from an object.
/// </summary>
/// <param name="instance">The instance object.</param>
/// <param name="fieldName">T... | agpl-3.0 | C# |
4bd8cc41b09ce3f3e705eb23572acce02ba2db7d | Add back frame statistics | peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,peppy/osu-framework | osu.Framework/Layout/LayoutMember.cs | osu.Framework/Layout/LayoutMember.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.Graphics;
using osu.Framework.Statistics;
namespace osu.Framework.Layout
{
public delegate bool InvalidationConditionDelegate(Drawable source, In... | // 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.Graphics;
namespace osu.Framework.Layout
{
public delegate bool InvalidationConditionDelegate(Drawable source, Invalidation invalidationType);
... | mit | C# |
9224b3c5fad7638cdbd444871e45ec81333eb56a | 修改版本1.0.6 | idefav/Idefav.DataAccess | Idefav.DbObjects/Properties/AssemblyInfo.cs | Idefav.DbObjects/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Idefav.DbObjects")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: Assem... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Idefav.DbObjects")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: Assem... | apache-2.0 | C# |
2c73d284dade3af6e6b4d105393b12c227c2804e | Update Trigger.cs | wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors,wieslawsoltes/AvaloniaBehaviors,XamlBehaviors/XamlBehaviors | src/Avalonia.Xaml.Interactivity/Trigger.cs | src/Avalonia.Xaml.Interactivity/Trigger.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Avalonia.Metadata;
namespace Avalonia.Xaml.Interactivity
{
/// <summary>
/// A base class for behaviors, implementing the basic plumbing of <seeals... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Avalonia.Metadata;
namespace Avalonia.Xaml.Interactivity
{
/// <summary>
/// A base class for behaviors, implementing the basic plumbing of ITrigge... | mit | C# |
02a7bcbdaba82dcac4b01799249744929f3f9413 | Revert "keep username only in sinin cookie" | ZA-PT/Obsidian,ZA-PT/Obsidian,ZA-PT/Obsidian,ZA-PT/Obsidian | src/Obsidian/Services/SignInService.cs | src/Obsidian/Services/SignInService.cs | using Microsoft.AspNetCore.Http;
using Obsidian.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Authentication;
using Obsidian.Application.OAuth20;
namespace Obsidian.Services
{
public class Sign... | using Microsoft.AspNetCore.Http;
using Obsidian.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Authentication;
using Obsidian.Application.OAuth20;
namespace Obsidian.Services
{
public class Sign... | apache-2.0 | C# |
56a382015524d6e6a117a6691c2ad668988153ca | add route template and name support to HttpDeleteAttribute. | lewischeng-ms/WebApi,yonglehou/WebApi,scz2011/WebApi,abkmr/WebApi,chimpinano/WebApi,LianwMS/WebApi,abkmr/WebApi,congysu/WebApi,lungisam/WebApi,congysu/WebApi,scz2011/WebApi,lungisam/WebApi,lewischeng-ms/WebApi,chimpinano/WebApi,LianwMS/WebApi,yonglehou/WebApi | src/System.Web.Http/HttpDeleteAttribute.cs | src/System.Web.Http/HttpDeleteAttribute.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Collections.ObjectModel;
using System.Net.Http;
using System.Web.Http.Routing;
namespace System.Web.Http
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = fal... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Collections.ObjectModel;
using System.Net.Http;
using System.Web.Http.Controllers;
namespace System.Web.Http
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple =... | mit | C# |
d08ed32adeb7cf0b5859fd398a51d23ae03901d7 | Increment version number. | timothy-shields/graphviz | Shields.GraphViz/Properties/AssemblyInfo.cs | Shields.GraphViz/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sh... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sh... | mit | C# |
afe048a7a150bfdf3a6d22137b682073be355c17 | Improve naming of tests to clearly indicate the feature to be tested | oliverzick/Delizious-Filtering | src/Library.Test/AlwaysTests.cs | src/Library.Test/AlwaysTests.cs | #region Copyright and license
// // <copyright file="AlwaysTests.cs" company="Oliver Zick">
// // Copyright (c) 2016 Oliver Zick. All rights reserved.
// // </copyright>
// // <author>Oliver Zick</author>
// // <license>
// // Licensed under the Apache License, Version 2.0 (the "License");
// // you may no... | #region Copyright and license
// // <copyright file="AlwaysTests.cs" company="Oliver Zick">
// // Copyright (c) 2016 Oliver Zick. All rights reserved.
// // </copyright>
// // <author>Oliver Zick</author>
// // <license>
// // Licensed under the Apache License, Version 2.0 (the "License");
// // you may no... | apache-2.0 | C# |
2340aa11adaf5c9bff63d0c466ea0df446f7cf2f | Add SyntaxNodeOrToken.Parent | terrajobst/nquery-vnext | src/NQuery/SyntaxNodeOrToken.cs | src/NQuery/SyntaxNodeOrToken.cs | using System;
using NQuery.Text;
namespace NQuery
{
public struct SyntaxNodeOrToken
{
private readonly SyntaxNode _syntaxNode;
private readonly SyntaxToken _syntaxToken;
internal SyntaxNodeOrToken(SyntaxToken syntaxToken)
{
_syntaxToken = syntaxToken;
_... | using System;
using NQuery.Text;
namespace NQuery
{
public struct SyntaxNodeOrToken
{
private readonly SyntaxNode _syntaxNode;
private readonly SyntaxToken _syntaxToken;
internal SyntaxNodeOrToken(SyntaxToken syntaxToken)
{
_syntaxToken = syntaxToken;
_... | mit | C# |
8084a3405f4ca901237d9d8a51e11277e978858b | Reduce concurrency (not eliminate) in integration tests so that starting up a test suite run doesn't soak up all the threads in our thread pool. | NimbusAPI/Nimbus,NimbusAPI/Nimbus | src/Nimbus.Tests.Integration/AssemblySetUp.cs | src/Nimbus.Tests.Integration/AssemblySetUp.cs | using NUnit.Framework;
[assembly: Category("IntegrationTest")]
[assembly: Parallelizable(ParallelScope.Fixtures)]
[assembly: LevelOfParallelism(2)] | using NUnit.Framework;
[assembly: Category("IntegrationTest")]
[assembly: Parallelizable(ParallelScope.Fixtures)]
[assembly: LevelOfParallelism(32)] | mit | C# |
af0a3514614e60062ea05123606fca6e72f814ee | Check proxy settings | extremecodetv/SocksSharp | tests/SocksSharp.Tests/ProxyClientTests.cs | tests/SocksSharp.Tests/ProxyClientTests.cs | using System;
using System.Diagnostics;
using Microsoft.Extensions.Configuration;
using Xunit;
using SocksSharp;
using SocksSharp.Proxy;
namespace SocksSharp.Tests
{
public class ProxyClientTests
{
private ProxySettings proxySettings;
private void GatherTestConfiguration()
{
... | using System;
using System.Diagnostics;
using Microsoft.Extensions.Configuration;
using Xunit;
using SocksSharp;
using SocksSharp.Proxy;
namespace SocksSharp.Tests
{
public class ProxyClientTests
{
private ProxySettings proxySettings;
private void GatherTestConfiguration()
{
... | mit | C# |
0f6adbebeeab10f6c84909354920d5365b77282a | make default minifiwrsminify method virtual | mwrock/RequestReduce,mwrock/RequestReduce,mwrock/RequestReduce | RequestReduce/Utilities/Minifier.cs | RequestReduce/Utilities/Minifier.cs | using Microsoft.Ajax.Utilities;
using System;
using RequestReduce.ResourceTypes;
namespace RequestReduce.Utilities
{
public class Minifier : IMinifier
{
private readonly Microsoft.Ajax.Utilities.Minifier minifier = new Microsoft.Ajax.Utilities.Minifier();
private readonly CodeSettings... | using Microsoft.Ajax.Utilities;
using System;
using RequestReduce.ResourceTypes;
namespace RequestReduce.Utilities
{
public class Minifier : IMinifier
{
private readonly Microsoft.Ajax.Utilities.Minifier minifier = new Microsoft.Ajax.Utilities.Minifier();
private readonly CodeSettings... | apache-2.0 | C# |
a0fc9782fa20ec9aaf0d797238da381dd43b56dc | Fix shitty namespacing | mattgwagner/CertiPay.Common | CertiPay.Common.Notifications/Notifications/AndroidNotification.cs | CertiPay.Common.Notifications/Notifications/AndroidNotification.cs | using System;
namespace CertiPay.Common.Notifications
{
public class AndroidNotification : Notification
{
public static string QueueName { get; } = "AndroidNotifications";
// Message => Content
/// <summary>
/// The subject line of the email
/// </summary>
pub... | using System;
namespace CertiPay.Common.Notifications.Notifications
{
public class AndroidNotification : Notification
{
public static string QueueName { get; } = "AndroidNotifications";
// Message => Content
/// <summary>
/// The subject line of the email
/// </summar... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.