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 |
|---|---|---|---|---|---|---|---|---|
5fe1c012dedc8ae9fa428f77c348c86a01b6ee07 | Fix Stylet.Samples.RedditBrowser | canton7/Stylet,canton7/Stylet,cH40z-Lord/Stylet,cH40z-Lord/Stylet | Samples/Stylet.Samples.RedditBrowser/Pages/SubredditViewModel.cs | Samples/Stylet.Samples.RedditBrowser/Pages/SubredditViewModel.cs | using Stylet.Samples.RedditBrowser.RedditApi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Stylet.Samples.RedditBrowser.Pages
{
public class SubredditViewModel : Conductor<IScreen>.StackNavigation
{
private IPostCommentsV... | using Stylet.Samples.RedditBrowser.RedditApi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Stylet.Samples.RedditBrowser.Pages
{
public class SubredditViewModel : Conductor<IScreen>.StackNavigation
{
private IPostCommentsV... | mit | C# |
c2e4037a155ab3a78042ae45e5c29fac04db7d5c | Fix "Cannot deserialize a 'Decimal' from BsonType 'Document'." #resolved | InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform,InfinniPlatform/InfinniPlatform | InfinniPlatform.DocumentStorage/MongoDB/MongoDecimalBsonSerializer.cs | InfinniPlatform.DocumentStorage/MongoDB/MongoDecimalBsonSerializer.cs | using System;
using MongoDB.Bson;
using MongoDB.Bson.IO;
using MongoDB.Bson.Serialization;
namespace InfinniPlatform.DocumentStorage.MongoDB
{
internal class MongoDecimalBsonSerializer : MongoBsonSerializerBase<decimal>
{
public static readonly MongoDecimalBsonSerializer Default = new MongoDecimalBso... | using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization;
namespace InfinniPlatform.DocumentStorage.MongoDB
{
internal class MongoDecimalBsonSerializer : MongoBsonSerializerBase<decimal>
{
public static readonly MongoDecimalBsonSerializer Default = new MongoDecimalBsonSerializer();
... | agpl-3.0 | C# |
9d9d618430c78d4a55d2ef806d3eaa2a58969c6d | Add Ok return. | bigfont/webapi-cors | CORS/Controllers/ValuesController.cs | CORS/Controllers/ValuesController.cs | using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Cors;
namespace CORS.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return new string[] { "This is a CORS request.",... | using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Cors;
namespace CORS.Controllers
{
public class ValuesController : ApiController
{
// GET api/values
public IEnumerable<string> Get()
{
return new string[] { "This is a CORS request.",... | mit | C# |
91b7a95485136062541252d6c8d45189a9e7d465 | Update the Initialize method | BillWagner/NonVirtualEventAnalyzer | NonVirtualEventAnalyzer/NonVirtualEventAnalyzer/DiagnosticAnalyzer.cs | NonVirtualEventAnalyzer/NonVirtualEventAnalyzer/DiagnosticAnalyzer.cs | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace NonVirtualEventAnalyzer
{
... | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace NonVirtualEventAnalyzer
{
... | apache-2.0 | C# |
ae7c5a20f4d2e98e55cb4e601a8ecc9e97c673d5 | Create server side API for single multiple answer question | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository _question... | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository _question... | mit | C# |
a59a2fa6498561670823003ff7ecd97ea4d747eb | Solve build related issue | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository _question... | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository _question... | mit | C# |
0a0f2658b5fe91880e90fa390598d655541dca24 | Fix CodeFactor | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/Dialog/DialogViewModelBaseOfTResult.cs | WalletWasabi.Fluent/ViewModels/Dialog/DialogViewModelBaseOfTResult.cs | using System;
using System.Collections.Generic;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WalletWasabi.Fluent.ViewModels.Dialog
{
/// <summary>
/// Base ViewModel class for Dialogs that returns a value back.
/// </summary>
/// <typeparam name="TResult">The type of the v... | using System;
using System.Collections.Generic;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WalletWasabi.Fluent.ViewModels.Dialog
{
/// <summary>
/// Base ViewModel class for Dialogs that returns a value back.
/// </summary>
/// <typeparam name="TResult">The type of the v... | mit | C# |
35113c0a784e822e34e8fa6c1059174240047ab1 | Add a description | bretcope/Mayflower.NET | Mayflower/Properties/AssemblyInfo.cs | Mayflower/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("Ma... | 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("Ma... | mit | C# |
1f412d0337e2212440bd9cfa15db9425219c7dd0 | Allow a zone and version to be specified in the tzvalidate controller | malcolmr/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,nodatime/nodatime,malcolmr/nodatime,jskeet/nodatime,jskeet/nodatime,nodatime/nodatime | src/NodaTime.Web/Controllers/TzValidateController.cs | src/NodaTime.Web/Controllers/TzValidateController.cs | // Copyright 2016 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using Microsoft.AspNetCore.Mvc;
using NodaTime.TimeZones;
using NodaTime.TzValidate.NodaDump;
using NodaTime.Web.Models;
using System.IO;
using System.Lin... | // Copyright 2016 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using Microsoft.AspNetCore.Mvc;
using NodaTime.TimeZones;
using NodaTime.TzValidate.NodaDump;
using System.IO;
using System.Net;
namespace NodaTime.Web.C... | apache-2.0 | C# |
2035883559aeca0e30b4668a2dd079e3c86def90 | Update OrderManager.cs | tonyc4800/Papa_Bobs_Pizza_Challenge,tonyc4800/Papa_Bobs_Pizza_Challenge | PapaBobsPizza.Domain/OrderManager.cs | PapaBobsPizza.Domain/OrderManager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PapaBobsPizza.Domain
{
public class OrderManager
{
public static List<DTO.OrderListDTO> GetOrders() => Persistence.OrderRepository.GetOrders();
public static... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PapaBobsPizza.Domain
{
public class OrderManager
{
public static List<DTO.OrderListDTO> GetOrders()
{
return Persistence.OrderRepository.GetOrders();
... | apache-2.0 | C# |
15bf45619270384c5b6c8a9192761925b6b755fc | Remove AssemblyFileVersion property | segrived/WTManager | WTManager/Properties/AssemblyInfo.cs | WTManager/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("WTManager")]
[assembly: AssemblyDescription("Control your Windows services with tray")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Babaev Evgeniy")]
[assembly: AssemblyProduct("WTManager")]
[assembl... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("WTManager")]
[assembly: AssemblyDescription("Control your Windows services with tray")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Babaev Evgeniy")]
[assembly: AssemblyProduct("WTManager")]
[assembl... | mit | C# |
10e52a8360f273175c2875d27fe8eb451035285d | fix NSUUID gen | aritchie/bluetoothle,aritchie/bluetoothle | Acr.Ble.iOS/Extensions.cs | Acr.Ble.iOS/Extensions.cs | using System;
using Foundation;
using CoreBluetooth;
namespace Acr.Ble
{
internal static class BleExtensions
{
public static Guid ToGuid(this NSUuid uuid)
{
return Guid.ParseExact(uuid.AsString(), "d");
}
public static Guid ToGuid(this CBUUID uuid)
{
... | using System;
using Foundation;
using CoreBluetooth;
namespace Acr.Ble
{
internal static class BleExtensions
{
public static Guid ToGuid(this NSUuid uuid)
{
return Guid.ParseExact(uuid.AsString(), "d");
}
public static Guid ToGuid(this CBUUID uuid)
{
... | mit | C# |
ce6e3323c0fe30f79c4704ffacebdc2f686a7d1d | handle http content provided as content | aonweb/fluent-http | AonWeb.FluentHttp/Formatter.cs | AonWeb.FluentHttp/Formatter.cs | using System.IO;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using AonWeb.FluentHttp.Helpers;
using AonWeb.FluentHttp.Serialization;
namespace AonWeb.FluentHttp
{
public class Formatter : IFormatter
{
public Formatter()
{... | using System.IO;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using AonWeb.FluentHttp.Helpers;
using AonWeb.FluentHttp.Serialization;
namespace AonWeb.FluentHttp
{
public class Formatter : IFormatter
{
public Formatter()
{... | mit | C# |
e2848a17b3827ab32e22582164eed4c233c560f0 | Fix for URL Encoding | saguiitay/DropboxRestAPI,timerickson/DropboxRestAPI,hurricanepkt/DropboxRestAPI | src/DropboxRestAPI/Utils/HttpUtility.cs | src/DropboxRestAPI/Utils/HttpUtility.cs | using System;
using System.Linq;
namespace DropboxRestAPI.Utils
{
public static class HttpValueCollectionExtensions
{
public static HttpValueCollection ParseQueryString(this string query)
{
if (query == null)
{
throw new ArgumentNullException("query");
... | using System;
using System.Linq;
namespace DropboxRestAPI.Utils
{
public static class HttpValueCollectionExtensions
{
public static HttpValueCollection ParseQueryString(this string query)
{
if (query == null)
{
throw new ArgumentNullException("query");
... | mit | C# |
21922315f93653e6a95194fac13f7b7cf0be06de | add running message | tsqllint/tsqllint,tsqllint/tsqllint | source/TSQLLint/Program.cs | source/TSQLLint/Program.cs | using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using TSQLLint.Infrastructure.Reporters;
namespace TSQLLint
{
public class Program
{
[ExcludeFromCodeCoverage]
public static void Main(string[] args)
... | using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using TSQLLint.Infrastructure.Reporters;
namespace TSQLLint
{
public class Program
{
[ExcludeFromCodeCoverage]
public static void Main(string[] args)
... | mit | C# |
5a9f27f3210e140242d91f6ff0763feb202e38f3 | Remove semicolon from view | ritterim/AspNetBrowserLocale,kendaleiv/AspNetBrowserLocale | src/Mvc5Sample/Views/Shared/_Layout.cshtml | src/Mvc5Sample/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - AspNetBrowserLocale Mvc5Sample</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
<link r... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - AspNetBrowserLocale Mvc5Sample</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" />
<link r... | mit | C# |
804d2768f7c9ba94e30c91531720d3a6d74b5db3 | Update version | takuya-takeuchi/RedArmory | source/RedArmory/AssemblyProperty.cs | source/RedArmory/AssemblyProperty.cs | namespace Ouranos.RedArmory
{
internal static class AssemblyProperty
{
/// <summary>
/// アセンブリ マニフェストに含める、製品名に関するカスタム属性を定義します。
/// </summary>
public const string Product = "Red Armory";
/// <summary>
/// RedArmory.exe の説明を指定します。
/// </summary>
public const ... | namespace Ouranos.RedArmory
{
internal static class AssemblyProperty
{
/// <summary>
/// アセンブリ マニフェストに含める、製品名に関するカスタム属性を定義します。
/// </summary>
public const string Product = "Red Armory";
/// <summary>
/// RedArmory.exe の説明を指定します。
/// </summary>
public const ... | mit | C# |
00b93cd8da3b9509bba3eb453c6a1d1cf7cd7d35 | include exceptions in logs | ArsenShnurkov/BitSharp | BitSharp.Node/LoggingModule.cs | BitSharp.Node/LoggingModule.cs | using Ninject;
using Ninject.Modules;
using NLog;
using NLog.Config;
using NLog.Targets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BitSharp.Node
{
public class LoggingModule : NinjectModule
{
private rea... | using Ninject;
using Ninject.Modules;
using NLog;
using NLog.Config;
using NLog.Targets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BitSharp.Node
{
public class LoggingModule : NinjectModule
{
private rea... | unlicense | C# |
84195930bcb1e6d0f4b6eb4cc9dc85d5238aae7f | add reloadOnChange for Log4NetLoggerFactory | zclmoon/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,Nongzhsh/aspnetboilerplate,carldai0106/aspnetboilerplate,carldai0106/aspnetboilerplate,ryancyq/aspnetboilerplate,verdentk/aspnetboilerplate,virtualcca/aspnetboilerplate,beratcarsi/aspnetboilerplate,andmattia/aspnetboilerplate,andmattia/aspnetboilerplate,ryan... | src/Abp.Castle.Log4Net/Castle/Logging/Log4Net/Log4NetLoggerFactory.cs | src/Abp.Castle.Log4Net/Castle/Logging/Log4Net/Log4NetLoggerFactory.cs | using System;
using System.IO;
using System.Xml;
using Abp.Reflection.Extensions;
using Castle.Core.Logging;
using log4net;
using log4net.Config;
using log4net.Repository;
namespace Abp.Castle.Logging.Log4Net
{
public class Log4NetLoggerFactory : AbstractLoggerFactory
{
internal const string DefaultCo... | using System;
using System.IO;
using System.Xml;
using Abp.Reflection.Extensions;
using Castle.Core.Logging;
using log4net;
using log4net.Config;
using log4net.Repository;
namespace Abp.Castle.Logging.Log4Net
{
public class Log4NetLoggerFactory : AbstractLoggerFactory
{
internal const string DefaultCo... | mit | C# |
75cac7340fa0f4931cbdcdc3b02ff96bc55bae4e | test results were duplicated because of lists not being cleared | continuoustests/AutoTest.Net,acken/AutoTest.Net,acken/AutoTest.Net,acken/AutoTest.Net,continuoustests/AutoTest.Net,continuoustests/AutoTest.Net,acken/AutoTest.Net,continuoustests/AutoTest.Net,continuoustests/AutoTest.Net,acken/AutoTest.Net,acken/AutoTest.Net,continuoustests/AutoTest.Net | src/AutoTest.TestRunner/AutoTest.TestRunners.Shared/TestRunProcess.cs | src/AutoTest.TestRunner/AutoTest.TestRunners.Shared/TestRunProcess.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoTest.TestRunners.Shared.Options;
using System.Threading;
using AutoTest.TestRunners.Shared.Results;
using AutoTest.TestRunners.Shared.Targeting;
using AutoTest.TestRunners.Shared.AssemblyAnalysis;
namespace AutoTest.TestRu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoTest.TestRunners.Shared.Options;
using System.Threading;
using AutoTest.TestRunners.Shared.Results;
using AutoTest.TestRunners.Shared.Targeting;
using AutoTest.TestRunners.Shared.AssemblyAnalysis;
namespace AutoTest.TestRu... | mit | C# |
4bdcdad81a6f70987f0d8c152402ce37fca979ca | check status code in httpclientservice | srdjan-bozovic/sinergijaspeakers013 | src/MsCampus.Win8.Shared/Implementation/Services/HttpClientService.cs | src/MsCampus.Win8.Shared/Implementation/Services/HttpClientService.cs | using MsCampus.Win8.Shared.Contracts.Services;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace MsCampus.Win8.Shared.Implementation.Services
{
public class HttpClientS... | using MsCampus.Win8.Shared.Contracts.Services;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace MsCampus.Win8.Shared.Implementation.Services
{
public class HttpClientS... | unlicense | C# |
222c970969d9682c86e0e048fbd5c8e759eedbd1 | Update page title. | neptuo/com.neptuo.go,neptuo/com.neptuo.go | src/WebSite/Views/Shared/_Layout.cshtml | src/WebSite/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>List of all links to all Neptuo pages</title>
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/web.css" rel="stylesheet" />
... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/web.css" rel="stylesheet" />... | apache-2.0 | C# |
1d6712a40cfd3db0e04078e96089c47fd8547360 | Change Scope to support multi-tenant scenarios | mag-dev/chassis | src/Chassis/Startup/StartUpFeature.cs | src/Chassis/Startup/StartUpFeature.cs | using Autofac;
using Chassis.Features;
using Chassis.Types;
namespace Chassis.Startup
{
public class StartupFeature : Feature
{
public override void RegisterComponents(ContainerBuilder builder, TypePool pool)
{
builder.RegisterType<StartupBootstrapper>()
... | using Autofac;
using Chassis.Features;
using Chassis.Types;
namespace Chassis.Startup
{
public class StartupFeature : Feature
{
public override void RegisterComponents(ContainerBuilder builder, TypePool pool)
{
builder.RegisterType<StartupBootstrapper>()
... | apache-2.0 | C# |
c0da41da8fc576bfe5907a1acc735e0a2a8487f2 | Update MarkWragg.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/MarkWragg.cs | src/Firehose.Web/Authors/MarkWragg.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class MarkWragg : IAmACommunityMember
{
public string FirstName => "Mark";
public string LastName => "Wragg";
pu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class MarkWragg : IAmACommunityMember
{
public string FirstName => "Mark";
public string LastName => "Wragg";
pu... | mit | C# |
9344d41e3a91e0597e45429a3af4db5815ce4693 | Change default for DetailedAppointments to 'false' | waf/CalSync | src/CalSync/Infrastructure/Config.cs | src/CalSync/Infrastructure/Config.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
namespace CalSync.Infrastructure
{
class Config
{
public int SyncRangeDays { get; private set; }
public string TargetEmailAddress { get; private set; }
public b... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
namespace CalSync.Infrastructure
{
class Config
{
public int SyncRangeDays { get; private set; }
public string TargetEmailAddress { get; private set; }
public b... | mit | C# |
48784e5259b5faad984a76f0d4140dacae5b34a3 | add lnk prefix to links generated in the list | mvbalaw/FluentWebControls | src/FluentWebControls/CommandItem.cs | src/FluentWebControls/CommandItem.cs | using System;
using System.Text;
using FluentWebControls.Extensions;
namespace FluentWebControls
{
public class CommandItem
{
public static CommandItem<T> For<T>(Func<T, string> getHref)
{
return new CommandItem<T>(getHref);
}
}
public interface ICommandItem
{
AlignAttribute Align { get; }
string ... | using System;
using System.Text;
using FluentWebControls.Extensions;
namespace FluentWebControls
{
public class CommandItem
{
public static CommandItem<T> For<T>(Func<T, string> getHref)
{
return new CommandItem<T>(getHref);
}
}
public interface ICommandItem
{
AlignAttribute Align { get; }
string ... | mit | C# |
2f59889835b1797b6f31f2366de3c0a509fc7b82 | add DisposableAction | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | src/WeihanLi.Common/NullDisposable.cs | src/WeihanLi.Common/NullDisposable.cs | using System;
using System.Threading;
namespace WeihanLi.Common
{
/// <summary>
/// A singleton disposable that does nothing when disposed.
/// </summary>
public sealed class NullDisposable : IDisposable
{
private NullDisposable()
{
}
public void Dispose()
... | using System;
namespace WeihanLi.Common
{
/// <summary>
/// A singleton disposable that does nothing when disposed.
/// </summary>
public sealed class NullDisposable : IDisposable
{
private NullDisposable()
{
}
public void Dispose()
{
}
///... | mit | C# |
7a5b9c5df687d977868c98c0eb38b85ae68a660c | Add ignoredFiles array with files to be ignored | Voxelgon/Voxelgon,Voxelgon/Voxelgon | Assets/Plugins/Voxelgon/Asset.cs | Assets/Plugins/Voxelgon/Asset.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.IO;
using SimpleJSON;
namespace Voxelgon{
static class Asset{
static string resourcePath;
static string[] ignoredFiles= new string[] {
".[Dd][Ss]_[Ss]to... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using SimpleJSON;
namespace Voxelgon{
static class Asset{
static string resourcePath;
//returns the parent (../) directory of the given path
static public string Parent(string path) {
... | apache-2.0 | C# |
cc3ba394afa45c733fec1c6e29e856d6f035af15 | Change copyright. | daniellor/My-FyiReporting,chripf/My-FyiReporting,daniellor/My-FyiReporting,daniellor/My-FyiReporting,majorsilence/My-FyiReporting,chripf/My-FyiReporting,chripf/My-FyiReporting,daniellor/My-FyiReporting,daniellor/My-FyiReporting,maratoss/My-FyiReporting,majorsilence/My-FyiReporting,maratoss/My-FyiReporting,daniellor/My-... | RdlEngine/AssemblyInfo.cs | RdlEngine/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
//
// 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("RDL Engine")... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
//
// 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("RDL Engine")... | apache-2.0 | C# |
83205cc1c010a740ad0173d3d8979c9387dc6926 | Make sure ResourcePump Ratio is non-negative. | allista/AT_Utils | Resources/ResourcePump.cs | Resources/ResourcePump.cs | // ResourcePump.cs
//
// Author:
// Allis Tauri <allista@gmail.com>
//
// Copyright (c) 2016 Allis Tauri
using UnityEngine;
namespace AT_Utils
{
public class ResourcePump
{
const float eps = 1e-7f;
const float min_request = 1e-5f;
float request;
readonly Part part;
public readonly PartResourc... | // ResourcePump.cs
//
// Author:
// Allis Tauri <allista@gmail.com>
//
// Copyright (c) 2016 Allis Tauri
using UnityEngine;
namespace AT_Utils
{
public class ResourcePump
{
const float eps = 1e-7f;
const float min_request = 1e-5f;
float request;
readonly Part part;
public readonly PartResourc... | mit | C# |
2f81e5d2bd8270d2a9ac321e04500b7a455ee419 | Update version number. | Damnae/storybrew | editor/Properties/AssemblyInfo.cs | editor/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("storybrew editor")]
[assembly: AssemblyDe... | 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("storybrew editor")]
[assembly: AssemblyDe... | mit | C# |
b7d84b886e8e3604b427a2e7a5723d7290d9d492 | Fix unit test after merging in new Component SetStateAsync method signatures - surprised it wasn't a compile time failure for ambiguous call | ProductiveRage/Bridge.React,ProductiveRage/Bridge.React | Bridge.React.Tests/PureComponentTests.cs | Bridge.React.Tests/PureComponentTests.cs | using System;
using System.Threading.Tasks;
using static Bridge.QUnit.QUnit;
namespace Bridge.React.Tests
{
public static class PureComponentTests
{
public static void RunTests()
{
Module("PureComponent Tests");
Test("PureComponent re-rendered with equivalent props should not have to re-render", assert =... | using System;
using System.Threading.Tasks;
using static Bridge.QUnit.QUnit;
namespace Bridge.React.Tests
{
public static class PureComponentTests
{
public static void RunTests()
{
Module("PureComponent Tests");
Test("PureComponent re-rendered with equivalent props should not have to re-render", assert =... | mit | C# |
93c31f5d88a9304f7a1068a038a187623d8e0d7f | Fix to work with Anonymous Roles | fujiy/FujiyBlog,fujiy/FujiyBlog,fujiy/FujiyBlog | src/FujiyBlog.Web/Infrastructure/AuthorizePermissionAttribute.cs | src/FujiyBlog.Web/Infrastructure/AuthorizePermissionAttribute.cs | using System;
using System.Linq;
using System.Security.Principal;
using System.Web;
using System.Web.Mvc;
using FujiyBlog.Core.DomainObjects;
using FujiyBlog.Core.Extensions;
namespace FujiyBlog.Web.Infrastructure
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, Allo... | using System;
using System.Linq;
using System.Web.Mvc;
using FujiyBlog.Core.DomainObjects;
namespace FujiyBlog.Web.Infrastructure
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
public class AuthorizePermissionAttribute : AuthorizeAttribute
... | mit | C# |
6f2c5903a9d219c2c7851665f9508ca1ca9c7301 | Update IPathSegment.cs | wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D | src/Core2D/Model/Path/IPathSegment.cs | src/Core2D/Model/Path/IPathSegment.cs | using System.Collections.Generic;
using Core2D.Shapes;
namespace Core2D.Path
{
/// <summary>
/// Defines path segment contract.
/// </summary>
public interface IPathSegment : IObservableObject, IStringExporter
{
/// <summary>
/// Gets or sets flag indicating whether segment is stro... | using System.Collections.Generic;
using Core2D.Shapes;
namespace Core2D.Path
{
/// <summary>
/// Defines path segment contract.
/// </summary>
public interface IPathSegment : IObservableObject
{
/// <summary>
/// Gets or sets flag indicating whether segment is stroked.
/// ... | mit | C# |
737f0c2eb8e19e4791e008a5e43c3bb772714f21 | Rename finished, Bumped version to 0.9 | Bobris/Nowin,et1975/Nowin,modulexcite/Nowin,modulexcite/Nowin,pysco68/Nowin,lstefano71/Nowin,lstefano71/Nowin,pysco68/Nowin,et1975/Nowin,modulexcite/Nowin,Bobris/Nowin,lstefano71/Nowin,et1975/Nowin,pysco68/Nowin,Bobris/Nowin | Nowin/Properties/AssemblyInfo.cs | Nowin/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("Nowin")]
[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("NowinWebServer")]
[assembly: AssemblyDesc... | mit | C# |
f52e47499ff9dfcd3d4e81455d95653801ac3827 | Add FirstOrDefault | SaberSnail/GoldenAnvil.Utility | GoldenAnvil.Utility/EnumerableUtility.cs | GoldenAnvil.Utility/EnumerableUtility.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace GoldenAnvil.Utility
{
public static class EnumerableUtility
{
public static IEnumerable<T> EmptyIfNull<T>(this IEnumerable<T> items) => items ?? Enumerable.Empty<T>();
public static IEnumerable<T> WhereNotNul... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace GoldenAnvil.Utility
{
public static class EnumerableUtility
{
public static IEnumerable<T> EmptyIfNull<T>(this IEnumerable<T> items)
{
return items ?? Enumerable.Empty<T>();
}
public static IEnumerable... | mit | C# |
6747ff4b5662749992fb21d58d074b805ec3d27c | Update Logic_Operators.cs | zulaldogan/unity-csharp-beginner | LogicOperators/Assets/Logic_Operators.cs | LogicOperators/Assets/Logic_Operators.cs | using UnityEngine;
public class Logic_Operators : MonoBehaviour
{
public int a;
public int b;
public int c;
public int average;
void Start()
{
average = (a + b + c) / 3;
}
void Update()
{
}
}
| using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Logic_Operators : MonoBehaviour
{
public int a;
public int b;
public int c;
public int average;
// Use this for initialization
void Start ()
{
average = (a + b + c)/ 3;
}
// Update is called ... | mit | C# |
002e9891a4f5b29bd72d36ab1252b75859e7e0d1 | update assembly info | MrZANE42/im-only-resting,jordanbtucker/im-only-resting,ItsAGeekThing/im-only-resting,stephen-swensen/im-only-resting,abhinavwaviz/im-only-resting,jordanbtucker/im-only-resting,MrZANE42/im-only-resting,ItsAGeekThing/im-only-resting,nathanwblair/im-only-resting,nathanwblair/im-only-resting,stephen-swensen/im-only-resting... | Ior/Properties/AssemblyInfo.cs | Ior/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("I'm Only Resting")]
[assembly: Ass... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("I'm Only Resting")]
[assembly: Ass... | apache-2.0 | C# |
4a904509a742435c636893ff5fc92ff863214daa | Initialize AuthCommand with an IAppHarborClient | appharbor/appharbor-cli | src/AppHarbor/Commands/AuthCommand.cs | src/AppHarbor/Commands/AuthCommand.cs | using System;
namespace AppHarbor.Commands
{
public class AuthCommand : ICommand
{
private readonly IAppHarborClient _appharborClient;
public AuthCommand(IAppHarborClient appharborClient)
{
_appharborClient = appharborClient;
}
public void Execute(string[] arguments)
{
throw new NotImplementedEx... | using System;
namespace AppHarbor.Commands
{
public class AuthCommand : ICommand
{
public void Execute(string[] arguments)
{
throw new NotImplementedException();
}
}
}
| mit | C# |
f839729186a1aed63ed06728a282a740af149712 | Increment patch version | inputfalken/Sharpy | src/Sharpy/Properties/AssemblyInfo.cs | src/Sharpy/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("S... | 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("S... | mit | C# |
52fc3623362d706454947786e836e8b3f60992f0 | Make microgame camera black on pause | Barleytree/NitoriWare,NitorInc/NitoriWare,uulltt/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare,plrusek/NitoriWare | Assets/Scripts/Stage/PauseManager.cs | Assets/Scripts/Stage/PauseManager.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class PauseManager : MonoBehaviour
{
public UnityEvent onPause, onUnPause;
[SerializeField]
private bool enableVigorousTesting;
//Whitelisted items won't be affected by pause
public AudioSource[] aud... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class PauseManager : MonoBehaviour
{
public UnityEvent onPause, onUnPause;
[SerializeField]
private bool enableVigorousTesting;
//Whitelisted items won't be affected by pause
public AudioSource[] aud... | mit | C# |
6704f4f90775d5b58a0fab1dcd731cb9777cb60d | Update key-only querystring comparisons to use "" rather than null to make it more compatible with form data | oschwald/mockhttp,richardszalay/mockhttp | RichardSzalay.MockHttp/Matchers/QueryStringMatcher.cs | RichardSzalay.MockHttp/Matchers/QueryStringMatcher.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RichardSzalay.MockHttp.Matchers
{
public class QueryStringMatcher : IMockedRequestMatcher
{
readonly IEnumerable<KeyValuePair<string, string>> values;
public QueryStringMatcher(string queryString)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RichardSzalay.MockHttp.Matchers
{
public class QueryStringMatcher : IMockedRequestMatcher
{
readonly IEnumerable<KeyValuePair<string, string>> values;
public QueryStringMatcher(string queryString)
... | mit | C# |
a43fbd73081158f1aff22b283f3d34d986f873a9 | remove redundant version | WojcikMike/docs.particular.net,yuxuac/docs.particular.net,SzymonPobiega/docs.particular.net,eclaus/docs.particular.net,pedroreys/docs.particular.net,pashute/docs.particular.net | Snippets/Snippets_3/Conventions/MessageConventions.cs | Snippets/Snippets_3/Conventions/MessageConventions.cs | using System;
using NServiceBus;
public class MessageConventions
{
public void Simple()
{
#region MessageConventions
// NOTE: When you're self hosting, `.DefiningXXXAs()` has to be before `.UnicastBus()`,
// otherwise you'll get: `System.InvalidOperationException: "No destina... | using System;
using NServiceBus;
public class MessageConventions
{
public void Simple()
{
#region MessageConventions 3
// NOTE: When you're self hosting, `.DefiningXXXAs()` has to be before `.UnicastBus()`,
// otherwise you'll get: `System.InvalidOperationException: "No desti... | apache-2.0 | C# |
6e8e52df9737820a72f782037bcf8538278f6945 | Add constructor | rhynodegreat/CSharpGameLibrary,vazgriz/CSharpGameLibrary,rhynodegreat/CSharpGameLibrary,vazgriz/CSharpGameLibrary | CSharpGameLibrary/Graphics/Bitmap.cs | CSharpGameLibrary/Graphics/Bitmap.cs | using System;
using System.Collections.Generic;
namespace CSGL.Graphics {
public class Bitmap<T> where T : struct {
public int Width { get; private set; }
public int Height { get; private set; }
public T[] Data { get; private set; }
public Bitmap(int width, int height) {
... | using System;
using System.Collections.Generic;
namespace CSGL.Graphics {
public class Bitmap<T> where T : struct {
public int Width { get; private set; }
public int Height { get; private set; }
public T[] Data { get; private set; }
public Bitmap(int width, int height) {
... | mit | C# |
638be50840b237bd0b43199549c3a45177388097 | fix test | ilya-murzinov/WhiteSharp | src/SampleTests/SampleTestScenario.cs | src/SampleTests/SampleTestScenario.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit.Framework;
using SampleTests.ScreenObjects;
using System.Diagnostics;
using System.Windows.Automation;
namespace SampleTests
{
[TestClass]
[TestFixture]
public class SampleTestScenario
{
public static string Path = @"..\..\..\..\\... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit.Framework;
using SampleTests.ScreenObjects;
using System.Windows.Automation;
namespace SampleTests
{
[TestClass]
[TestFixture]
public class SampleTestScenario
{
[TestFixtureSetUp]
public void Init()
{
}
... | mit | C# |
49dcdfbec58ceeaed20f074f2994f9ddddd22009 | add tests for propertyWriters | Pondidum/Stronk,Pondidum/Stronk | src/Stronk.Tests/StronkConfigTests.cs | src/Stronk.Tests/StronkConfigTests.cs | using System.Collections.Generic;
using Shouldly;
using Stronk.ConfigurationSourcing;
using Stronk.Policies;
using Stronk.PropertyWriters;
using Xunit;
namespace Stronk.Tests
{
public class StronkConfigTests
{
private IStronkConfig _config;
[Fact]
public void When_nothing_is_specified()
{
_config = new ... | using System.Collections.Generic;
using Shouldly;
using Stronk.ConfigurationSourcing;
using Stronk.Policies;
using Xunit;
namespace Stronk.Tests
{
public class StronkConfigTests
{
private IStronkConfig _config;
[Fact]
public void When_nothing_is_specified()
{
_config = new StronkConfig() as IStronkConfi... | lgpl-2.1 | C# |
8bcf35c026558770f34741c84738922c0405a8a3 | comment in console write to clean error output | conekta/conekta-.net | src/conekta/conekta/Base/Requestor.cs | src/conekta/conekta/Base/Requestor.cs | using System;
using System.IO;
using System.Net;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace conekta
{
public class Requestor
{
public Requestor ()
{
}
public String request (String method, String resource_uri, String data = "{}")
{
String api_version = conekta.Ap... | using System;
using System.IO;
using System.Net;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace conekta
{
public class Requestor
{
public Requestor ()
{
}
public String request (String method, String resource_uri, String data = "{}")
{
String api_version = conekta.Ap... | mit | C# |
01dfbc33d5412537b9862457726fc1c8fe2c8521 | Fix a bug in BringIntoViewBehavior. | GaoSui/SkyTimer,GaoSui/SkyTimer,GaoSui/SkyTimer | SkyTimer/Helper/BringIntoViewBehavior.cs | SkyTimer/Helper/BringIntoViewBehavior.cs | using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Windows.Controls;
using System.Windows.Interactivity;
namespace SkyTimer.Helper
{
public class BringIntoViewBehavior : Behavior<ListBox>
{
protected override void OnAttached()
{
Associated... | using System.Collections.Specialized;
using System.Windows.Controls;
using System.Windows.Interactivity;
namespace SkyTimer.Helper
{
public class BringIntoViewBehavior : Behavior<ListBox>
{
protected override void OnAttached()
{
AssociatedObject.Loaded += AssociatedObject_Loaded;
... | mit | C# |
f044bd7027595079e981e9164293cd307a6fcb72 | Allow keyboard configs as well | RonnChyran/snowflake,RonnChyran/snowflake,SnowflakePowered/snowflake,faint32/snowflake-1,faint32/snowflake-1,faint32/snowflake-1,RonnChyran/snowflake,SnowflakePowered/snowflake,SnowflakePowered/snowflake | Snowflake.API/Emulator/EmulatorBridge.cs | Snowflake.API/Emulator/EmulatorBridge.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Snowflake.Emulator.Configuration.Template;
using Snowflake.Emulator.Configuration;
using Snowflake.Emulator.Input.Template;
using Snowflake.Platform.Controller;
using System.Collections;
namespa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Snowflake.Emulator.Configuration.Template;
using Snowflake.Emulator.Configuration;
using Snowflake.Emulator.Input.Template;
using Snowflake.Platform.Controller;
namespace Snowflake.Emulator
{
... | mpl-2.0 | C# |
fb537c79bbbffe92b3fb330fda81c0a19e8f6185 | Fix #812 - Add support for AnsiString quoting | dudzon/Glimpse,elkingtonmcb/Glimpse,codevlabs/Glimpse,SusanaL/Glimpse,paynecrl97/Glimpse,Glimpse/Glimpse,flcdrg/Glimpse,codevlabs/Glimpse,flcdrg/Glimpse,flcdrg/Glimpse,SusanaL/Glimpse,paynecrl97/Glimpse,rho24/Glimpse,sorenhl/Glimpse,Glimpse/Glimpse,SusanaL/Glimpse,dudzon/Glimpse,sorenhl/Glimpse,paynecrl97/Glimpse,gabri... | source/Glimpse.Ado/Tab/Support/CommandSanitizer.cs | source/Glimpse.Ado/Tab/Support/CommandSanitizer.cs | using System.Collections.Generic;
using Glimpse.Ado.Extensibility;
using Glimpse.Ado.Model;
namespace Glimpse.Ado.Tab.Support
{
internal class CommandSanitizer
{
public CommandSanitizer()
{
Parsers = new Dictionary<string, ICommandParameterParser>();
PopulateParsers();
... | using System.Collections.Generic;
using Glimpse.Ado.Extensibility;
using Glimpse.Ado.Model;
namespace Glimpse.Ado.Tab.Support
{
internal class CommandSanitizer
{
public CommandSanitizer()
{
Parsers = new Dictionary<string, ICommandParameterParser>();
PopulateParsers();
... | apache-2.0 | C# |
994a57ba3a1dc0bd670c057ec1f6af8ee5e41720 | fix blmapper error | danielsmcelhaney/dsm-store | StoreRest/StoreRestBL/Models/BLMapper.cs | StoreRest/StoreRestBL/Models/BLMapper.cs | using StoreRestBL.StoreDASoap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StoreRestBL.Models
{
class BLMapper
{
public product ProductDaoToProduct(productDao pd)
{
product p = new product();
p.Id = pd.Id;
... | using StoreRestBL.StoreDASoap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StoreRestBL.Models
{
class BLMapper
{
public product ProductDaoToProduct(productDao pd)
{
product p = new product();
p.Id = pd.Id;
... | mit | C# |
d8cfb8ac56e0ef7752766535479841d44d6f664c | Update stub to be buildable. | yas-mnkornym/TaihaToolkit | source/TaihaToolkit.Rest.Tests/StubParameterBag.cs | source/TaihaToolkit.Rest.Tests/StubParameterBag.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Studiotaiha.Toolkit.Rest.Tests
{
class StubParameterBag : IParameterBag
{
public IDictionary<string, string> Body { get; } = new Dictionary<string, string>();
public IDi... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Studiotaiha.Toolkit.Rest.Tests
{
class StubParameterBag : IParameterBag
{
public IDictionary<string, string> Body { get; } = new Dictionary<string, string>();
public IDi... | mit | C# |
58c3ae7fcede8ef947c85a07bcb8a2f1fd05157e | remove assembly versions | letsar/DoLess.Commands | src/DoLess.Commands.Pcl/Properties/AssemblyInfo.cs | src/DoLess.Commands.Pcl/Properties/AssemblyInfo.cs | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Les informations générales relatives à un assembly dépendent de
// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
// associées à un asse... | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Les informations générales relatives à un assembly dépendent de
// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
// associées à un asse... | mit | C# |
d7f3076dd9cd01a5c2f815196109b5118d1e7297 | Update EnemyAI.cs | Panther450/450Game | NEFMA/Assets/Scripts/EnemyAI.cs | NEFMA/Assets/Scripts/EnemyAI.cs | /************************************************************
* Author: Michael Morris
* File: EnemyAI.cs
*
* Credits:
* http://www.devination.com/2015/07/unity-2d-platformer-tutorial-part-4.html
* (Unity 2D Platformer Tutorial - Part 4 - Enemy Movement)
*********************************************************... | /************************************************************
* Author: Michael Morris
* File: EnemyAI.cs
*
* Credits:
* http://www.devination.com/2015/07/unity-2d-platformer-tutorial-part-4.html
* (Unity 2D Platformer Tutorial - Part 4 - Enemy Movement)
*********************************************************... | apache-2.0 | C# |
e841583f3855497da2bccb9972c8a6e3f8c6aae8 | Use ticks | numinit/open-waveform-format,numinit/open-waveform-format,numinit/open-waveform-format | c-sharp/OWF-test/Serializers/BinarySerializerTests.cs | c-sharp/OWF-test/Serializers/BinarySerializerTests.cs | using System;
using System.Web;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OWF.Serializers;
using OWF.DTO;
using System.Collections.Generic;
namespace OWF_test.Serializers
{
[TestClass]
public class BinarySerializerTests
{
private byte[] ReadOWF(string filename)
... | using System;
using System.Web;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OWF.Serializers;
using OWF.DTO;
using System.Collections.Generic;
namespace OWF_test.Serializers
{
[TestClass]
public class BinarySerializerTests
{
private byte[] ReadOWF(string filename)
... | apache-2.0 | C# |
bba77e124aa0228efebff783f856045fe5885f2d | Replace SafeHandleZeroOrMinusOneIsInvalid with SafeHandle | GeertvanHorrik/libgit2sharp,Skybladev2/libgit2sharp,AMSadek/libgit2sharp,jorgeamado/libgit2sharp,dlsteuer/libgit2sharp,AMSadek/libgit2sharp,Zoxive/libgit2sharp,GeertvanHorrik/libgit2sharp,jamill/libgit2sharp,yishaigalatzer/LibGit2SharpCheckOutTests,sushihangover/libgit2sharp,red-gate/libgit2sharp,xoofx/libgit2sharp,viv... | LibGit2Sharp/RepositorySafeHandle.cs | LibGit2Sharp/RepositorySafeHandle.cs | using System;
using System.Runtime.InteropServices;
using LibGit2Sharp.Core;
namespace LibGit2Sharp
{
public class RepositorySafeHandle : SafeHandle
{
public RepositorySafeHandle() : base(IntPtr.Zero, true)
{
}
protected override bool ReleaseHandle()
{
Nati... | using LibGit2Sharp.Core;
using Microsoft.Win32.SafeHandles;
namespace LibGit2Sharp
{
public class RepositorySafeHandle : SafeHandleZeroOrMinusOneIsInvalid
{
public RepositorySafeHandle() : base(true)
{
}
protected override bool ReleaseHandle()
{
NativeMetho... | mit | C# |
643658357eb784a62909537b677726deb44a8380 | 修改App Title | JunhuaFan/NASA_UNCLE,JunhuaFan/NASA_UNCLE,JunhuaFan/NASA_UNCLE | nasauncle/Views/Shared/_Layout.cshtml | nasauncle/Views/Shared/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Nasa 大叔隊</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="navbar navbar-inverse navbar... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Nasa 大叔隊</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="navbar navbar-inverse navbar... | apache-2.0 | C# |
2b8efb67904102354a7adc12ebc6efdb56fa9641 | Add PushRegistration to UserData event | GoCarrot/teak-unity,GoCarrot/teak-unity,GoCarrot/teak-unity,GoCarrot/teak-unity,GoCarrot/teak-unity | Assets/Teak/Teak.UserData.cs | Assets/Teak/Teak.UserData.cs | #region References
/// @cond hide_from_doxygen
using System;
using System.Collections.Generic;
/// @endcond
#endregion
public partial class Teak {
/// <summary>
///
/// </summary>
public class UserData {
/// <summary>Arbitrary, per-user, information sent from the Teak server.</summary>
... | #region References
/// @cond hide_from_doxygen
using System;
using System.Collections.Generic;
/// @endcond
#endregion
public partial class Teak {
/// <summary>
///
/// </summary>
public class UserData {
/// <summary>Arbitrary, per-user, information sent from the Teak server.</summary>
... | apache-2.0 | C# |
f43643dbd12fe3e6dca9bdf39ca178d30aaa0a81 | check for dup keys in dictionary before adding | MrLeebo/unitystation,Lancemaker/unitystation,Necromunger/unitystation,MrLeebo/unitystation,fomalsd/unitystation,MrLeebo/unitystation,fomalsd/unitystation,Lancemaker/unitystation,Necromunger/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,fomalsd/unitystation,Necromunger/unitystation,Necromu... | Assets/scripts/GameMatrix.cs | Assets/scripts/GameMatrix.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameMatrix : MonoBehaviour
{
public static GameMatrix control;
//items
public Dictionary<int,GameObject> items = new Dictionary<int,GameObject>();
//cupboards
public Dictionary<int,Cupboards.DoorTrigger> ... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameMatrix : MonoBehaviour
{
public static GameMatrix control;
//items
public Dictionary<int,GameObject> items = new Dictionary<int,GameObject>();
//cupboards
public Dictionary<int,Cupboards.DoorTrigger> ... | agpl-3.0 | C# |
fcf7feba6eec1ea714fbd4f5e8c72efe07739962 | Change name of unitytest | CPLN/en-voiture | EnVoitureUnitTest/TestWay.cs | EnVoitureUnitTest/TestWay.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using EnVoiture;
using System.Drawing;
namespace EnVoitureUnitTest
{
[TestClass]
public class TestWay
{
[TestMethod]
public void TestLocation()
{
List<Orientation> o = ne... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using EnVoiture;
using System.Drawing;
namespace EnVoitureUnitTest
{
[TestClass]
public class TestWay
{
[TestMethod]
public void TestLocation()
{
List<Orientation> o = ne... | mit | C# |
b2a0fa42495bb484dc1d4d4719f72f64657b623d | Set assembly version number of Prexonite to 1.2.2 | SealedSun/prx | Prexonite/Properties/AssemblyInfo.cs | Prexonite/Properties/AssemblyInfo.cs | using System;
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("Prexonite")]
[asse... | using System;
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("Prexonite")]
[asse... | bsd-3-clause | C# |
ed85e82c8876d50616872b9f87fb52171dc7997f | Set version. | Jaaromy/gitnet | gitnet.app/Properties/AssemblyInfo.cs | gitnet.app/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("gi... | 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("gi... | mit | C# |
940aac0f576184040709adbbe7d4bfa2a5481a1b | Change UserLearntWord to simplify system and reflect changes to system design | mtcairneyleeming/latin | auto_decliner/Database/UserLearntWord.cs | auto_decliner/Database/UserLearntWord.cs | using System;
namespace LatinAutoDecline.Database
{
public class UserLearntWord
{
public string UserId { get; set; }
public int LemmaId { get; set; }
public DateTime NextRevision { get; set; }
public int RevisionStage { get; set; }
public Lemma Lemma { get; set; }
... | using System;
namespace LatinAutoDecline.Database
{
public class UserLearntWord
{
public string UserId { get; set; }
public int LemmaId { get; set; }
public double LearntPercentage { get; set; }
public DateTime NextRevision { get; set; }
public int RevisionStage { get; ... | mit | C# |
53d06c32fc46ad26e10ae46803dd351a8ae7eefe | change Insert signature to use interface | sqlkata/querybuilder | QueryBuilder/Query.Insert.cs | QueryBuilder/Query.Insert.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace SqlKata
{
public partial class Query
{
public Query Insert(IEnumerable<string> columns, IEnumerable<object> values)
{
if (columns.Count() != values.Count())
{
throw new Invalid... | using System;
using System.Collections.Generic;
using System.Linq;
namespace SqlKata
{
public partial class Query
{
public Query Insert(IEnumerable<string> columns, IEnumerable<object> values)
{
if (columns.Count() != values.Count())
{
throw new Invalid... | mit | C# |
77ebfd7b2b072f539bc2bcd91ab08de52439b26f | fix spelling | zmira/abremir.AllMyBricks | abremir.AllMyBricks.Onboarding.Tests/Services/OnboardingServiceTests.cs | abremir.AllMyBricks.Onboarding.Tests/Services/OnboardingServiceTests.cs | using abremir.AllMyBricks.Core.Models;
using abremir.AllMyBricks.Onboarding.Interfaces;
using abremir.AllMyBricks.Onboarding.Services;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace abremir.AllMyBricks.Onboarding.Tests.Services
{
[TestClass]
public class On... | using abremir.AllMyBricks.Core.Models;
using abremir.AllMyBricks.Onboarding.Interfaces;
using abremir.AllMyBricks.Onboarding.Services;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace abremir.AllMyBricks.Onboarding.Tests.Services
{
[TestClass]
public class On... | mit | C# |
c1a331b9062370a4d511ddfef2c55bfe03ac86f0 | Add App Service. | OrionDevelop/Orion,mika-f/Orion | Source/Orion.UWP/App.xaml.cs | Source/Orion.UWP/App.xaml.cs | using System.Diagnostics;
using System.Threading.Tasks;
using Windows.ApplicationModel.Activation;
using Microsoft.Azure.Mobile;
using Microsoft.Azure.Mobile.Analytics;
using Microsoft.Practices.Unity;
using Orion.UWP.Models;
using Orion.UWP.Services;
using Orion.UWP.Services.Interfaces;
using Prism.Unity.Windows;... | using System.Diagnostics;
using System.Threading.Tasks;
using Windows.ApplicationModel.Activation;
using Microsoft.Practices.Unity;
using Orion.UWP.Models;
using Orion.UWP.Services;
using Orion.UWP.Services.Interfaces;
using Prism.Unity.Windows;
namespace Orion.UWP
{
/// <summary>
/// 既定の Application ... | mit | C# |
7bed4eb23b73ec49bba20136d5aa6c257cb474f1 | Tidy up WaveformTestBeatmap | peppy/osu-new,UselessToucan/osu,2yangk23/osu,UselessToucan/osu,johnneijzen/osu,peppy/osu,EVAST9919/osu,ZLima12/osu,ppy/osu,johnneijzen/osu,EVAST9919/osu,ppy/osu,ZLima12/osu,peppy/osu,smoogipoo/osu,2yangk23/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,smo... | osu.Game.Tests/WaveformTestBeatmap.cs | osu.Game.Tests/WaveformTestBeatmap.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.IO;
using System.Linq;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics.Textures;
using osu.Game.Beatmaps;
using osu... | // 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.IO;
using System.Linq;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics.Textures;
using osu.Game.Beatmaps;
using osu... | mit | C# |
d983c9a97f8ccaf6599299798bfbff387557ae3e | Support OpenCL 2.0 at test execution time | tunnelvisionlabs/NOpenCL,sharwell/NOpenCL | NOpenCL.Test/TestPlatform.cs | NOpenCL.Test/TestPlatform.cs | // Copyright (c) Tunnel Vision Laboratories, LLC. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace NOpenCL.Test
{
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Microsoft.Vi... | // Copyright (c) Tunnel Vision Laboratories, LLC. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace NOpenCL.Test
{
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Microsoft.Vi... | mit | C# |
db60f393b7ec36c2e295f0ccf340895ba6038605 | Add offsite types for installment citi | omise/omise-dotnet | Omise/Models/OffsiteTypes.cs | Omise/Models/OffsiteTypes.cs | using System.Runtime.Serialization;
namespace Omise.Models
{
public enum OffsiteTypes
{
[EnumMember(Value = null)]
None,
[EnumMember(Value = "internet_banking_scb")]
InternetBankingSCB,
[EnumMember(Value = "internet_banking_bbl")]
InternetBankingBBL,
[En... | using System.Runtime.Serialization;
namespace Omise.Models
{
public enum OffsiteTypes
{
[EnumMember(Value = null)]
None,
[EnumMember(Value = "internet_banking_scb")]
InternetBankingSCB,
[EnumMember(Value = "internet_banking_bbl")]
InternetBankingBBL,
[En... | mit | C# |
d7418111740255f8ae485d80d3989e5c1195164d | add tests for AddRoute<> | Pondidum/Conifer,Pondidum/Conifer | Conifer.Tests/RouterConfigurationExpressionTests.cs | Conifer.Tests/RouterConfigurationExpressionTests.cs | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http.Controllers;
using Conifer.Conventions;
using NSubstitute;
using Shouldly;
using Xunit;
namespace Conifer.Tests
{
public class RouterConfig... | using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http.Controllers;
using Conifer.Conventions;
using NSubstitute;
using Shouldly;
using Xunit;
namespace Conifer.Tests
{
public class RouterConfigurationExpressionTests
{
private readonly ... | lgpl-2.1 | C# |
6c4b83d6fe67884470a1876b8f2e7b1d999810b8 | Fix failing tests on dotnetcore | criteo/zipkin4net,criteo/zipkin4net | Criteo.Profiling.Tracing/Properties/AssemblyInfo.cs | Criteo.Profiling.Tracing/Properties/AssemblyInfo.cs | // Copyright 2017 Criteo
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | // Copyright 2017 Criteo
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | apache-2.0 | C# |
a19cac6ebe6892bc88c0244a031dabc12ee235ec | Update Program.cs | ddecours/building-blocks-demo | DemoConsoleApp/DemoConsoleApp/Program.cs | DemoConsoleApp/DemoConsoleApp/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DemoConsoleApp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello Doug!");
/// More
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DemoConsoleApp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello");
/// More
}
}
}
| mit | C# |
ad60e9dc82b549074302f85e487dd5014c7bbe64 | Allow "user"-specified delegates to be passed to ShowOutputFromXmlRpcPInvoke, and prefix the output of the default delegate with a string indicating the source of the console spam. | uml-robotics/ROS.NET,nickkazepis/ROS.NET,beanstalk42/ROS.NET,nickkazepis/ROS.NET,nickkazepis/ROS.NET | XmlRpc_Wrapper/XmlRpcUtil.cs | XmlRpc_Wrapper/XmlRpcUtil.cs | using System;
using System.Runtime.InteropServices;
namespace XmlRpc_Wrapper
{
public static class XmlRpcUtil
{
private static printint _PRINTINT;
private static printstr _PRINTSTR;
private static void thisishowawesomeyouare(string s)
{
Console.WriteLine("XMLRPC NA... | using System;
using System.Runtime.InteropServices;
namespace XmlRpc_Wrapper
{
public static class XmlRpcUtil
{
private static printint _PRINTINT;
private static printstr _PRINTSTR;
private static void thisishowawesomeyouare(string s)
{
Console.WriteLine(s);
... | bsd-2-clause | C# |
55231f833aabd312a5690178c1f5e2cc7dc38184 | Bump version to 1.1.2 | rosolko/WebDriverManager.Net | WebDriverManager/Properties/AssemblyInfo.cs | WebDriverManager/Properties/AssemblyInfo.cs | using System;
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("WebDriverManager.Net")]
[ass... | using System;
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("WebDriverManager.Net")]
[ass... | mit | C# |
a5a2336b4708403f6c395470be3944b047b0df71 | add device name to low battery message | xpressive-websolutions/Xpressive.Home.ProofOfConcept,xpressive-websolutions/Xpressive.Home.ProofOfConcept,xpressive-websolutions/Xpressive.Home,xpressive-websolutions/Xpressive.Home.ProofOfConcept,xpressive-websolutions/Xpressive.Home,xpressive-websolutions/Xpressive.Home | Xpressive.Home.Services/LowBatteryDeviceObserver.cs | Xpressive.Home.Services/LowBatteryDeviceObserver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Autofac;
using Xpressive.Home.Contracts.Gateway;
using Xpressive.Home.Contracts.Messaging;
namespace Xpressive.Home.Services
{
internal sealed class LowBatteryDeviceObserver : ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Autofac;
using Xpressive.Home.Contracts.Gateway;
using Xpressive.Home.Contracts.Messaging;
namespace Xpressive.Home.Services
{
internal sealed class LowBatteryDeviceObserver : ... | mit | C# |
b03c1631d645c814141dc8c88457ef1af022f893 | Remove unnecessary comment | peppy/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,EVAST9919/osu-framework,Tom94/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,DrabWeb/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,ppy/osu-framework,ZLima12/osu-framework,EVAST9919/osu-fr... | osu.Framework/Platform/Linux/Sdl/SdlClipboard.cs | osu.Framework/Platform/Linux/Sdl/SdlClipboard.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System.Runtime.InteropServices;
namespace osu.Framework.Platform.Linux.Sdl
{
public class SdlClipboard : Clipboard
{
#if ANDROID
... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
// using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace osu.Framework.Platform.Linux.Sdl
{
public class SdlClipboard : Clipboard
... | mit | C# |
9410234264342b70a91b4c6db56de15fdb67cb0d | fix Throttler limit condition | WasimAhmad/Serenity,dfaruque/Serenity,rolembergfilho/Serenity,WasimAhmad/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,dfaruque/Serenity,dfaruque/Serenity,dfaruque/Serenity,rolembergfilho/Serenity,rolembergfilho/Serenity,WasimAhmad/Serenity,WasimAhmad/Serenity,rolembergfilho/Serenity,rolembergfilho/Serenity,volk... | Serenity.Core/Authorization/Throttler.cs | Serenity.Core/Authorization/Throttler.cs | using Serenity.Abstractions;
using System;
namespace Serenity
{
public class Throttler
{
public Throttler(string key, TimeSpan duration, int limit)
{
Key = key;
Duration = duration;
Limit = limit;
CacheKey = "Throttling:" + key + ":" ... | using Serenity.Abstractions;
using System;
namespace Serenity
{
public class Throttler
{
public Throttler(string key, TimeSpan duration, int limit)
{
Key = key;
Duration = duration;
Limit = limit;
CacheKey = "Throttling:" + key + ":" ... | mit | C# |
3e80b9c5ae9153b17e1ec46c453c630905242b7b | Normalize line endings in text viewer | SteamDatabase/ValveResourceFormat | GUI/Types/Viewers/ByteViewer.cs | GUI/Types/Viewers/ByteViewer.cs | using System.IO;
using System.Linq;
using System.Windows.Forms;
using GUI.Utils;
namespace GUI.Types.Viewers
{
public class ByteViewer : IViewer
{
public static bool IsAccepted() => true;
public TabPage Create(VrfGuiContext vrfGuiContext, byte[] input)
{
var tab = new TabPa... | using System.IO;
using System.Linq;
using System.Windows.Forms;
using GUI.Utils;
namespace GUI.Types.Viewers
{
public class ByteViewer : IViewer
{
public static bool IsAccepted() => true;
public TabPage Create(VrfGuiContext vrfGuiContext, byte[] input)
{
var tab = new TabPa... | mit | C# |
006b07e9e9363d583b42bdc78240b8b98743fadf | Handle nullable value types in cursor | RehanSaeed/ASP.NET-MVC-Boilerplate,ASP-NET-MVC-Boilerplate/Templates,ASP-NET-Core-Boilerplate/Templates,RehanSaeed/ASP.NET-MVC-Boilerplate,ASP-NET-Core-Boilerplate/Templates,ASP-NET-MVC-Boilerplate/Templates,ASP-NET-Core-Boilerplate/Templates,RehanSaeed/ASP.NET-MVC-Boilerplate | Source/Content/GraphQLTemplate/Cursor.cs | Source/Content/GraphQLTemplate/Cursor.cs | namespace GraphQLTemplate
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
public static class Cursor
{
public static T FromCursor<T>(string cursor)
{
if (string.IsNullOrEmpty(cursor))
... | namespace GraphQLTemplate
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
public static class Cursor
{
public static T FromCursor<T>(string cursor)
{
if (string.IsNullOrEmpty(cursor))
... | mit | C# |
56ae8629c13d81a8f05f3977a518bd7b9ac5731c | Change public field to property | fluentassertions/fluentassertions,dennisdoomen/fluentassertions,jnyrup/fluentassertions,dennisdoomen/fluentassertions,fluentassertions/fluentassertions,jnyrup/fluentassertions | Src/FluentAssertions/AssertionOptions.cs | Src/FluentAssertions/AssertionOptions.cs | #region
using System;
using FluentAssertions.Common;
using FluentAssertions.Equivalency;
#endregion
namespace FluentAssertions
{
/// <summary>
/// Holds any global options that control the behavior of FluentAssertions.
/// </summary>
public static class AssertionOptions
{
private static ... | #region
using System;
using FluentAssertions.Common;
using FluentAssertions.Equivalency;
#endregion
namespace FluentAssertions
{
/// <summary>
/// Holds any global options that control the behavior of FluentAssertions.
/// </summary>
public static class AssertionOptions
{
private static ... | apache-2.0 | C# |
5498f5e4da6b111a869e7fc93653850f75522493 | Test commit 2 | HaraGabi/TestProject | TestHElloWorld/TestHElloWorld/Program.cs | TestHElloWorld/TestHElloWorld/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestHElloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Speak your mind!");
string message = Console.ReadLine();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestHElloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}
}
| apache-2.0 | C# |
8bfdfe3672997fcacfed8a571629c17403348d9e | Add literal string marker | peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,peppy/osu,smoogipoo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu,ppy/osu,NeoAdonis/osu | osu.Game/Beatmaps/IBeatmapSetInfo.cs | osu.Game/Beatmaps/IBeatmapSetInfo.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Game.Database;
#nullable enable
namespace osu.Game.Beatmaps
{
/// <summary>
/// A r... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Game.Database;
#nullable enable
namespace osu.Game.Beatmaps
{
/// <summary>
/// A r... | mit | C# |
f3992c1b29cb204b0ff8bf8b98163edec6e58f29 | Add separate overloads for Vector3/Quaternion to remove casts | SteamDatabase/ValveResourceFormat | ValveResourceFormat/Resource/ResourceTypes/ModelAnimation/Frame.cs | ValveResourceFormat/Resource/ResourceTypes/ModelAnimation/Frame.cs | using System;
using System.Collections.Generic;
using System.Numerics;
namespace ValveResourceFormat.ResourceTypes.ModelAnimation
{
public class Frame
{
public Dictionary<string, FrameBone> Bones { get; }
public Frame()
{
Bones = new Dictionary<string, FrameBone>();
... | using System;
using System.Collections.Generic;
using System.Numerics;
namespace ValveResourceFormat.ResourceTypes.ModelAnimation
{
public class Frame
{
public Dictionary<string, FrameBone> Bones { get; }
public Frame()
{
Bones = new Dictionary<string, FrameBone>();
... | mit | C# |
f6018a81149955902b618185664113683137f6a2 | Remove usage of TypeSwitch. | jmarolf/roslyn,KevinH-MS/roslyn,mattwar/roslyn,CyrusNajmabadi/roslyn,tmeschter/roslyn,eriawan/roslyn,bkoelman/roslyn,jcouv/roslyn,tmat/roslyn,mattscheffer/roslyn,swaroop-sridhar/roslyn,jkotas/roslyn,shyamnamboodiripad/roslyn,genlu/roslyn,reaction1989/roslyn,nguerrera/roslyn,lorcanmooney/roslyn,AmadeusW/roslyn,MattWinds... | src/Workspaces/Core/Portable/Utilities/IReadOnlyDictionaryExtensions.cs | src/Workspaces/Core/Portable/Utilities/IReadOnlyDictionaryExtensions.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.Generic;
using Microsoft.CodeAnalysis.Shared.Extensions;
namespace Roslyn.Utilities
{
internal static class IReadOnlyDictionary... | // 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.Generic;
using Microsoft.CodeAnalysis.Shared.Extensions;
namespace Roslyn.Utilities
{
internal static class IReadOnlyDictionary... | mit | C# |
d21efc27af040eaa8ee36e0617c92632e6f3c1d0 | Make PlayerScore cloneable | TheEadie/PlayerRank,TheEadie/PlayerRank | PlayerRank/PlayerScore.cs | PlayerRank/PlayerScore.cs | using System;
using System.Runtime.InteropServices;
namespace PlayerRank
{
/// <summary>
/// A single line on a scoreboard
/// Stores a players name, points and position
/// </summary>
public class PlayerScore : ICloneable
{
public string Name { get; set; }
public Points Points... | using System;
using System.Runtime.InteropServices;
namespace PlayerRank
{
/// <summary>
/// A single line on a scoreboard
/// Stores a players name, points and position
/// </summary>
public class PlayerScore
{
public string Name { get; set; }
public Points Points { get; inter... | mit | C# |
d5e64bcb115a7507d0fcbca52d2084ae733fdab0 | Bump version. | kyourek/Pagination,kyourek/Pagination,kyourek/Pagination | sln/AssemblyVersion.cs | sln/AssemblyVersion.cs | using System.Reflection;
[assembly: AssemblyVersion("2.1.2")]
| using System.Reflection;
[assembly: AssemblyVersion("2.1.1.2")]
| mit | C# |
8f6861bbd764083af22cbc74b6bf1b743c03a057 | Remove my Mixpanel token | jellybob/jump-frog,jellybob/jump-frog | Assets/GameController.cs | Assets/GameController.cs | using UnityEngine;
using System.Collections;
public class GameController : MonoBehaviour {
public bool PlayerHasPreviouslyDied() {
return false;
return PlayerPrefs.HasKey ("PlayerHasPreviouslyDied");
}
public void Start() {
SetupMixpanel ();
if (PlayerHasPreviouslyDied ()) {
Mixpanel.SendEvent("Tried ... | using UnityEngine;
using System.Collections;
public class GameController : MonoBehaviour {
public bool PlayerHasPreviouslyDied() {
return false;
return PlayerPrefs.HasKey ("PlayerHasPreviouslyDied");
}
public void Start() {
SetupMixpanel ();
if (PlayerHasPreviouslyDied ()) {
Mixpanel.SendEvent("Tried ... | mit | C# |
ea0449f1c6e3b5a7468d7b251dd37a28676908b1 | Revert "#3 Modified Legato.Sample Program.cs" | Legato-Dev/Legato | Legato.Sample/Program.cs | Legato.Sample/Program.cs | using System;
using System.Windows.Forms;
namespace AimpAccesser.Sample
{
static class Program
{
/// <summary>
/// アプリケーションのメイン エントリ ポイントです。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
App... | using System;
using System.Windows.Forms;
namespace Legato.Sample
{
static class Program
{
/// <summary>
/// アプリケーションのメイン エントリ ポイントです。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Applicati... | mit | C# |
f4572f140c9fd396354031f4557d1ab965397625 | remove reference on terminate | JaredGG/GameWork | States/StateController.cs | States/StateController.cs | using System.Collections.Generic;
using GameWork.Interfaces;
using GameWork.States.Interfaces;
namespace GameWork.States
{
public class StateController : IController
{
private readonly Dictionary<string, IState> _states = new Dictionary<string, IState>();
private string _activeState;
... | using System.Collections.Generic;
using GameWork.Interfaces;
using GameWork.States.Interfaces;
namespace GameWork.States
{
public class StateController : IController
{
private readonly Dictionary<string, IState> _states = new Dictionary<string, IState>();
private string _activeState;
... | mit | C# |
0086bcd22c9e4395bbf93ae02dda71fb3f723175 | Move default Dashboard API base address to constant | anthonylangsworth/Meraki | src/Meraki/MerakiDashboardClientSettingsSetup.cs | src/Meraki/MerakiDashboardClientSettingsSetup.cs | using System;
using Microsoft.Extensions.Options;
namespace Meraki
{
/// <summary>
/// Initialize a <see cref="MerakiDashboardClientSettings"/> object.
/// </summary>
internal class MerakiDashboardClientSettingsSetup : ConfigureOptions<MerakiDashboardClientSettings>
{
public static readonl... | using System;
using Microsoft.Extensions.Options;
namespace Meraki
{
/// <summary>
/// Initialize a <see cref="MerakiDashboardClientSettings"/> object.
/// </summary>
internal class MerakiDashboardClientSettingsSetup : ConfigureOptions<MerakiDashboardClientSettings>
{
/// <summary>
... | mit | C# |
fafcbec71fb6a2670f60d558032605b27f7b1daf | add try ... catch to handle https service exception | poumason/MixpanelClientDotNet,poumason/Mixpanel.Net.Client | Library/MixpanelClientDotNet.Shared/ServiceModel/Services/HttpService.cs | Library/MixpanelClientDotNet.Shared/ServiceModel/Services/HttpService.cs | using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace MixpanelDotNet.ServiceModel
{
public class HttpService
{
private HttpClient httpClient;
public HttpService()
{
httpClient = new HttpClient();
}
public async Task<string> SendReque... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace MixpanelDotNet.ServiceModel
{
public class HttpService
{
private HttpClient httpClient;
public HttpService()
{
httpClient = ... | apache-2.0 | C# |
1fff5213f9faf63c8e1546f4f4bf355a8d8999bd | Rename twitchpageoptions to pageoptions | Aux/NTwitch,Aux/NTwitch | src/NTwitch.Rest/API/Common/TwitchPageOptions.cs | src/NTwitch.Rest/API/Common/TwitchPageOptions.cs | using System;
namespace NTwitch.Rest
{
public class PageOptions
{
public int Limit { get; set; }
public int Page { get; set; }
public int Offset
=> (Limit * Page) - Limit;
public PageOptions(int limit = 10, int page = 1)
{
if (limit < 1 || limit... | using System;
namespace NTwitch.Rest
{
public class TwitchPageOptions
{
public int Limit { get; set; }
public int Page { get; set; }
public int Offset
=> (Limit * Page) - Limit;
public TwitchPageOptions(int limit = 10, int page = 1)
{
if (limit ... | mit | C# |
375e5901566db2580c92239240ee7302e21a870a | Change user.config format to app.confg schema | Ackara/Daterpillar | src/Test.Daterpillar/Helpers/ConnectionString.cs | src/Test.Daterpillar/Helpers/ConnectionString.cs | using System.Configuration;
namespace Tests.Daterpillar.Helpers
{
public static class ConnectionString
{
public static string GetMySQLServerConnectionString()
{
return GetConnectionString("mysql");
}
public static string GetSQLServerConnectionString()
{
... | using System.Linq;
using System.Xml.Linq;
namespace Tests.Daterpillar.Helpers
{
public static class ConnectionString
{
private static readonly string _configFile = "database.config.xml";
public static string GetMySQLServerConnectionString()
{
return GetConnectionString("my... | mit | C# |
456f759f181cd93d72dc9761ec029c51fb8a447f | Remove temporary test | villermen/runescape-cache-tools,villermen/runescape-cache-tools | RuneScapeCacheToolsTests/Tests/FileTypesTests/ReferenceTableFileTests.cs | RuneScapeCacheToolsTests/Tests/FileTypesTests/ReferenceTableFileTests.cs | using System.Linq;
using RuneScapeCacheToolsTests.Fixtures;
using Villermen.RuneScapeCacheTools.Cache;
using Villermen.RuneScapeCacheTools.Cache.FileTypes;
using Xunit;
namespace Villermen.RuneScapeCacheTools.Tests.Tests.FileTypesTests
{
[Collection(TestCacheCollection.Name)]
public class ReferenceTableFileTe... | using System.Linq;
using RuneScapeCacheToolsTests.Fixtures;
using Villermen.RuneScapeCacheTools.Cache;
using Villermen.RuneScapeCacheTools.Cache.FileTypes;
using Xunit;
namespace Villermen.RuneScapeCacheTools.Tests.Tests.FileTypesTests
{
[Collection(TestCacheCollection.Name)]
public class ReferenceTableFileTe... | mit | C# |
10adb504a44178c53df7ab9cdc1c4d3856d448f9 | Test Commit | lsadam0/BEx | BEx/UserTransactions.cs | BEx/UserTransactions.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace BEx
{
public class UserTransactions : APIResult
{
internal UserTransactions(List<UserTransaction> transactions, Currency baseCurrency, Currency counterCurrency, ExchangeType sourceExchange)
: base(DateTime.Now, so... | using System;
using System.Collections.Generic;
using System.Linq;
namespace BEx
{
public class UserTransactions : APIResult
{
internal UserTransactions(List<UserTransaction> transactions, Currency baseCurrency, Currency counterCurrency, ExchangeType sourceExchange)
: base(DateTime.Now, so... | mit | C# |
191c82738ba84b3fe2d8b532c5794290897aa656 | Update documentation for Product enum. | danpierce1/Colore,WolfspiritM/Colore,CoraleStudios/Colore,Sharparam/Colore | Colore/Razer/Product.cs | Colore/Razer/Product.cs | // ---------------------------------------------------------------------------------------
// <copyright file="Product.cs" company="">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associat... | // ---------------------------------------------------------------------------------------
// <copyright file="Product.cs" company="">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associat... | mit | C# |
11fa13f0bb772d49b3fc37c77d2c5efdc8ed7d6b | Tweak google analytics detection to work on twitter.com | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck | Core/Handling/RequestHandlerBrowser.cs | Core/Handling/RequestHandlerBrowser.cs | using CefSharp;
namespace TweetDuck.Core.Handling{
class RequestHandlerBrowser : RequestHandler{
public override void OnRenderProcessTerminated(IWebBrowser browserControl, IBrowser browser, CefTerminationStatus status){
browser.Reload();
}
public override CefReturnValue OnBefo... | using CefSharp;
namespace TweetDuck.Core.Handling{
class RequestHandlerBrowser : RequestHandler{
public override void OnRenderProcessTerminated(IWebBrowser browserControl, IBrowser browser, CefTerminationStatus status){
browser.Reload();
}
public override CefReturnValue OnBefo... | mit | C# |
da17b22185ddef57ba6cc8ade95295f07e64bafe | change pattern for -1 files | UnstableMutex/DropboxCameraUploadsSorter | DropboxSorter/DropboxSorter/Program.cs | DropboxSorter/DropboxSorter/Program.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace DropboxSorter
{
class Program
{
static void Main(string[] args)
{
... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace DropboxSorter
{
class Program
{
static void Main(string[] args)
{
... | mit | C# |
3fa1b53b2ae3d670bc7f1f2a6f8b55cb57659b93 | Add back combo colours for osu!classic | ZLima12/osu,johnneijzen/osu,UselessToucan/osu,smoogipoo/osu,2yangk23/osu,smoogipoo/osu,johnneijzen/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,peppy/osu,smoogipooo/osu,ppy/osu,peppy/osu,EVAST9919/osu,UselessToucan/osu,2yangk23/osu,ppy/osu,EVAST9919/osu,peppy/osu-new,smoogipoo/osu,ZLima12/osu,peppy/osu,NeoAdonis/osu,Neo... | osu.Game/Skinning/DefaultLegacySkin.cs | osu.Game/Skinning/DefaultLegacySkin.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.Audio;
using osu.Framework.IO.Stores;
using osuTK.Graphics;
namespace osu.Game.Skinning
{
public class DefaultLegacySkin : LegacySkin
{
... | // 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.Audio;
using osu.Framework.IO.Stores;
using osuTK.Graphics;
namespace osu.Game.Skinning
{
public class DefaultLegacySkin : LegacySkin
{
... | mit | C# |
4e441600ee3f786c8b488381cb8a93b25c4c2390 | Fix not allowing to compile project with no implementation of IDotvvmServiceConfigurator | riganti/dotvvm,riganti/dotvvm,riganti/dotvvm,riganti/dotvvm | src/DotVVM.Compiler/Resolving/DotvvmServiceConfiguratorResolver.cs | src/DotVVM.Compiler/Resolving/DotvvmServiceConfiguratorResolver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using DotVVM.Compiler.Exceptions;
using DotVVM.Framework.Configuration;
using DotVVM.Framework.Utils;
using Microsoft.Extensions.DependencyInjection;
namespace DotVVM.Compiler.Resolving
{
public class DotvvmServiceConfigur... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using DotVVM.Compiler.Exceptions;
using DotVVM.Framework.Configuration;
using DotVVM.Framework.Utils;
using Microsoft.Extensions.DependencyInjection;
namespace DotVVM.Compiler.Resolving
{
public class DotvvmServiceConfigur... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.