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 |
|---|---|---|---|---|---|---|---|---|
5631118a72bba49f90b61c3ee70b8d4f05506f26 | Add NavigationPage. | ijufumi/garbage_calendar | garbage_calendar/App.xaml.cs | garbage_calendar/App.xaml.cs | using System;
using garbage_calendar.Views;
using Prism.Unity;
using Xamarin.Forms;
namespace garbage_calendar
{
public partial class App : PrismApplication
{
public App(IPlatformInitializer initializer) : base(initializer)
{
}
protected override void OnInitialized()
{
InitializeComponent(... | using System;
using garbage_calendar.Views;
using Prism.Unity;
using Xamarin.Forms;
namespace garbage_calendar
{
public partial class App : PrismApplication
{
public App(IPlatformInitializer initializer) : base(initializer)
{
}
protected override void OnInitialized()
{
InitializeComponent(... | mit | C# |
79de543bc52a53c5c68ef88261c3ba1eba361de3 | Rename endpoint to instances | mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard | src/Okanshi.Dashboard/DashboardModule.cs | src/Okanshi.Dashboard/DashboardModule.cs | using Nancy;
using Okanshi.Dashboard.Models;
namespace Okanshi.Dashboard
{
public class DashboardModule : NancyModule
{
private readonly IGetHealthChecks _getHealthChecks;
public DashboardModule(IConfiguration configuration, IGetMetrics getMetrics, IGetHealthChecks getHealthChecks)
{
_getHealthChecks = ge... | using Nancy;
using Okanshi.Dashboard.Models;
namespace Okanshi.Dashboard
{
public class DashboardModule : NancyModule
{
private readonly IGetHealthChecks _getHealthChecks;
public DashboardModule(IConfiguration configuration, IGetMetrics getMetrics, IGetHealthChecks getHealthChecks)
{
_getHealthChecks = ge... | mit | C# |
6b3196987414c05b77419c434fa3b2812b423fab | Correct contains | verybadcat/CSharpMath | CSharpMath.Xaml.Tests.NuGet/Test.cs | CSharpMath.Xaml.Tests.NuGet/Test.cs | namespace CSharpMath.Xaml.Tests.NuGet {
using Avalonia;
using SkiaSharp;
using Forms;
public class Program {
static string File(string platform, [System.Runtime.CompilerServices.CallerFilePath] string thisDir = "") =>
System.IO.Path.Combine(thisDir, "..", $"Test.{platform}.png");
[Xunit.Fa... | namespace CSharpMath.Xaml.Tests.NuGet {
using Avalonia;
using SkiaSharp;
using Forms;
public class Program {
static string File(string platform, [System.Runtime.CompilerServices.CallerFilePath] string thisDir = "") =>
System.IO.Path.Combine(thisDir, "..", $"Test.{platform}.png");
[Xunit.Fa... | mit | C# |
c907baa3929597a244066afab8c34f145b71c759 | Bump version to 8.0.0.18336 | HearthSim/HearthDb | HearthDb/Properties/AssemblyInfo.cs | HearthDb/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("Hea... | 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("Hea... | mit | C# |
69a59dd2469e5c64e9830eb6b547f0edd40d33c4 | Verify preorder - right | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | LeetCode/bootleg/verify_preorder.cs | LeetCode/bootleg/verify_preorder.cs | // http://lcoj.tk/problems/verify-preorder-serialization-of-a-binary-tree-dietpepsi-review/
//
// Given a string of comma separated values,
// verify whether it is a correct preorder traversal serialization of a binary tree.
// Find an algorithm without reconstructing the tree.
//
// A value in the string is eithe... | // http://lcoj.tk/problems/verify-preorder-serialization-of-a-binary-tree-dietpepsi-review/
//
// Given a string of comma separated values,
// verify whether it is a correct preorder traversal serialization of a binary tree.
// Find an algorithm without reconstructing the tree.
//
// A value in the string is eithe... | mit | C# |
535551245194fdc2859a45f41a4d0b4d78d9b624 | Load image from bundle | Didux/MvvmCross-Plugins,MatthewSannes/MvvmCross-Plugins,lothrop/MvvmCross-Plugins,martijn00/MvvmCross-Plugins | Cirrious/DownloadCache/Cirrious.MvvmCross.Plugins.DownloadCache.Touch/MvxTouchLocalFileImageLoader.cs | Cirrious/DownloadCache/Cirrious.MvvmCross.Plugins.DownloadCache.Touch/MvxTouchLocalFileImageLoader.cs | // MvxTouchLocalFileImageLoader.cs
// (c) Copyright Cirrious Ltd. http://www.cirrious.com
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, me@slodge.com
using Cirrious.CrossCore;
using Cirri... | // MvxTouchLocalFileImageLoader.cs
// (c) Copyright Cirrious Ltd. http://www.cirrious.com
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, me@slodge.com
using Cirrious.CrossCore;
using Cirri... | mit | C# |
a0ee3fb677b019009127b586e2ceb44d27ecfd9a | Implement RequestExistsByProviderIdQueryHandlerShould | colhountech/allReady,HamidMosalla/allReady,mipre100/allReady,VishalMadhvani/allReady,forestcheng/allReady,dpaquette/allReady,mgmccarthy/allReady,colhountech/allReady,gitChuckD/allReady,c0g1t8/allReady,arst/allReady,arst/allReady,bcbeatty/allReady,GProulx/allReady,GProulx/allReady,BillWagner/allReady,forestcheng/allRead... | AllReadyApp/Web-App/AllReady.UnitTest/Features/Requests/RequestExistsByProviderIdQueryHandlerShould.cs | AllReadyApp/Web-App/AllReady.UnitTest/Features/Requests/RequestExistsByProviderIdQueryHandlerShould.cs | using AllReady.Features.Requests;
using AllReady.Models;
using Xunit;
namespace AllReady.UnitTest.Features.Requests
{
public class RequestExistsByProviderIdQueryHandlerShould : InMemoryContextTest
{
[Fact]
public void ReturnsTrueWhenRequestExists()
{
const string... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AllReady.UnitTest.Features.Requests
{
public class RequestExistsByProviderIdQueryHandlerShould
{
}
}
| mit | C# |
a70c96ea9799d737e9e6c9506b2ac82fa6725104 | Use a BandStub for the DesignBandPageViewModel data | corsairmarks/band.personalize | src/Band.Personalize/Band.Personalize.App.Universal/ViewModels/Design/DesignBandPageViewModel.cs | src/Band.Personalize/Band.Personalize.App.Universal/ViewModels/Design/DesignBandPageViewModel.cs | // Copyright 2016 Nicholas Butcher
//
// 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 ... | // Copyright 2016 Nicholas Butcher
//
// 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 ... | apache-2.0 | C# |
6b9f663f3481f0b86c2a7ff5ceaeea59d93e166e | update community page links (#558) | reactiveui/website,reactiveui/website,reactiveui/website,reactiveui/website | input/contribute/community/index.cshtml | input/contribute/community/index.cshtml | Order: 100
---
<ul>
<li>
<a href="https://reddit.com/r/Clojure/comments/73yznc/on_whose_authority/do1olag" target="_blank">reddit.com</a>
</li>
<li>
<a href="https://olivierlacan.com/posts/ruby-heroes-farewell/" target="_blank">Ruby Heroes Farewell</a>
</li>
</ul>
@Html.Partial("_ChildP... | Order: 100
---
https://reddit.com/r/Clojure/comments/73yznc/on_whose_authority/do1olag
https://olivierlacan.com/posts/ruby-heroes-farewell/
@Html.Partial("_ChildPages")
<div class="video-iframe-wrapper">
<div class="video-iframe-item">
<?# YouTube ZSFDm3UYkeE /?>
</div>
</div>
| mit | C# |
0152b156bcbee3d19896991fce0f91732ebb124d | Update LocalizablePropertyProcessor.cs | rolembergfilho/Serenity,WasimAhmad/Serenity,WasimAhmad/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,WasimAhmad/Serenity,WasimAhmad/Serenity,volkanceylan/Serenity,rolembergfilho/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,rolembergfilho/Serenity,WasimAhmad/Serenity,volkanceylan/Serenity,volkanceylan... | Serenity.Services/RequestHandlers/IntegratedFeatures/Localization/LocalizablePropertyProcessor.cs | Serenity.Services/RequestHandlers/IntegratedFeatures/Localization/LocalizablePropertyProcessor.cs | using Serenity.ComponentModel;
using Serenity.Data;
using System;
using System.ComponentModel;
using System.Reflection;
namespace Serenity.PropertyGrid
{
public partial class LocalizablePropertyProcessor : PropertyProcessor
{
private ILocalizationRowHandler localizationRowHandler;
... | using Serenity.ComponentModel;
using Serenity.Data;
using System;
using System.ComponentModel;
using System.Reflection;
namespace Serenity.PropertyGrid
{
public partial class LocalizablePropertyProcessor : PropertyProcessor
{
private ILocalizationRowHandler localizationRowHandler;
... | mit | C# |
b219842567ccf88fc6c228dac898f3d6de874ac1 | Use NetLib client | ashfordl/netlib | ConsoleApplication1/Program.cs | ConsoleApplication1/Program.cs | using NetLib.Client;
using NetLib.Server;
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int port = 6565;
Server server = new Server(port);
serve... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NetLib.Client;
using NetLib.Server;
using System.Net.Sockets;
using System.Net;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
... | mit | C# |
f43fc6433f67c74d9026de4e7fdeacc0f6b6448e | change error file name | jongha/clickoncedm,jongha/clickoncedm | src/ClickOnceDMLib/Process/LogProcess.cs | src/ClickOnceDMLib/Process/LogProcess.cs | using ClickOnceDMLib.Path;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace ClickOnceDMLib.Process
{
public class LogProcess
{
private enum LOGTYPE { INFO, ERROR };
public static void Error(string message)
{
W... | using ClickOnceDMLib.Path;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace ClickOnceDMLib.Process
{
public class LogProcess
{
private enum LOGTYPE { INFO, ERROR };
public static void Error(string message)
{
W... | mit | C# |
0a9a9d6756184d8db4c189f79ab9a7d3acac93f2 | Debug logging | DMagic1/Science-Contracts | ContractScienceUtils.cs | ContractScienceUtils.cs | #region license
/*The MIT License (MIT)
Science Contract Utilities
Copyright (c) 2014 DMagic
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... | #region license
/*The MIT License (MIT)
Science Contract Utilities
Copyright (c) 2014 DMagic
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... | mit | C# |
55590a5bf6f0b765bb4994de2730c529b60d3306 | Revert "Update HttpHelpers.cs" | mperdeck/jsnlog | src/JSNLog/Infrastructure/HttpHelpers.cs | src/JSNLog/Infrastructure/HttpHelpers.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
#if NET40
using System.Web;
#else
using Microsoft.AspNetCore.Http;
#endif
namespace JSNLog.Infrastructure
{
internal static class HttpHelpers
{
private static Regex _regex = new ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
#if NET40
using System.Web;
#else
using Microsoft.AspNetCore.Http;
#endif
namespace JSNLog.Infrastructure
{
internal static class HttpHelpers
{
private static Regex _regex = new ... | mit | C# |
753871749cfbe9bb6108ef7638297661e84e1236 | remove check for args for /xyzzy | yadyn/JabbR,yadyn/JabbR,yadyn/JabbR | JabbR/Commands/XyzzyCommand.cs | JabbR/Commands/XyzzyCommand.cs | using System;
using System.Linq;
using JabbR.Models;
using Microsoft.AspNet.SignalR;
namespace JabbR.Commands
{
[Command("xyzzy", "Xyzzy_CommandInfo", "note", "user")]
public class XyzzyCommand : UserCommand
{
public override void Execute(CommandContext context, CallerContext callerContext, ChatUs... | using System;
using System.Linq;
using JabbR.Models;
using Microsoft.AspNet.SignalR;
namespace JabbR.Commands
{
[Command("xyzzy", "Xyzzy_CommandInfo", "note", "user")]
public class XyzzyCommand : UserCommand
{
public override void Execute(CommandContext context, CallerContext callerContext, ChatUs... | mit | C# |
f37a3cb206cbd7b09c2861045a64e2cfb4d3d4b7 | fix #2604 add position_length on analyze api response (#2622) | CSGOpenSource/elasticsearch-net,adam-mccoy/elasticsearch-net,CSGOpenSource/elasticsearch-net,elastic/elasticsearch-net,adam-mccoy/elasticsearch-net,elastic/elasticsearch-net,CSGOpenSource/elasticsearch-net,adam-mccoy/elasticsearch-net | src/Nest/Indices/Analyze/AnalyzeToken.cs | src/Nest/Indices/Analyze/AnalyzeToken.cs | using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class AnalyzeToken
{
[JsonProperty(PropertyName = "token")]
public string Token { get; internal set; }
[JsonProperty(PropertyName = "type")]
public string Type { get; internal set; }
//TODO change to long in 6.0
[JsonProperty(PropertyName = ... | using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class AnalyzeToken
{
[JsonProperty(PropertyName = "token")]
public string Token { get; internal set; }
[JsonProperty(PropertyName = "type")]
public string Type { get; internal set; }
[JsonProperty(PropertyName = "start_offset")]
public int ... | apache-2.0 | C# |
61c15ad4a656b02884290a299bdaa080d7014818 | Update 20.12 | aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_NET | Examples/CSharp/Articles/ManagingWorkbooksWorksheets/ExportExcelDataToDataTableWithoutFormatting.cs | Examples/CSharp/Articles/ManagingWorkbooksWorksheets/ExportExcelDataToDataTableWithoutFormatting.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace Aspose.Cells.Examples.CSharp.Articles.ManagingWorkbooksWorksheets
{
class ExportExcelDataToDataTableWithoutFormatting
{
public static void Run()
{
// ExStart:ExportExc... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace Aspose.Cells.Examples.CSharp.Articles.ManagingWorkbooksWorksheets
{
class ExportExcelDataToDataTableWithoutFormatting
{
public static void Run()
{
// ExStart:ExportExc... | mit | C# |
9612f7f4655aac02794a1d834674f64fe8ac0583 | Handle missing ratelimit headers (can occur with uploadtexttrack) | mohibsheth/vimeo-dot-net,mfilippov/vimeo-dot-net,needham-develop/vimeo-dot-net | src/VimeoDotNet/VimeoClient_RateLimit.cs | src/VimeoDotNet/VimeoClient_RateLimit.cs | using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using VimeoDotNet.Constants;
using VimeoDotNet.Enums;
using VimeoDotNet.Exceptions;
using VimeoDotNet.Models;
using VimeoDotNet.Net;
namespace Vimeo... | using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using VimeoDotNet.Constants;
using VimeoDotNet.Enums;
using VimeoDotNet.Exceptions;
using VimeoDotNet.Models;
using VimeoDotNet.Net;
namespace Vimeo... | mit | C# |
792bbd19bc2ddc2514df3737600bb40a43edcc57 | Handle NLayer failures. | Meowtrix/osu-Auto-Mapping-Toolkit | MusicProcess/MusicProcesser.cs | MusicProcess/MusicProcesser.cs | using NLayer;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Meowtrix.osuAMT.MusicProcess
{
public class MusicProcessException : Exception
{
public MusicProcessException() : base() { }
public MusicProcessException(string messag... | using NLayer;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Meowtrix.osuAMT.MusicProcess
{
public class MusicProcessException : Exception
{
public MusicProcessException() : base() { }
public MusicProcessException(string messag... | mit | C# |
262129b96b695b5b2c3652dff7a4006c3b7a883a | Remove unused property from chat message (#5053) | johnneijzen/osu,ppy/osu,EVAST9919/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new,ppy/osu,smoogipoo/osu,johnneijzen/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,EVAST9919/osu,2yangk23/osu,ZLima12/osu,peppy/osu,UselessToucan/osu,ZLima12/osu,2yangk23/osu,smoogipooo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,Neo... | osu.Game/Online/Chat/Message.cs | osu.Game/Online/Chat/Message.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 Newtonsoft.Json;
using osu.Game.Users;
namespace osu.Game.Online.Chat
{
public class Message : IComparable<Mess... | // 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 Newtonsoft.Json;
using osu.Game.Users;
namespace osu.Game.Online.Chat
{
public class Message : IComparable<Mess... | mit | C# |
9f52cb17c480fbae83dc736bf5dbdb2dd6e9a69f | Update gio-sharp | mono/f-spot,mans0954/f-spot,Sanva/f-spot,dkoeb/f-spot,GNOME/f-spot,Yetangitu/f-spot,dkoeb/f-spot,mans0954/f-spot,dkoeb/f-spot,Sanva/f-spot,mono/f-spot,Sanva/f-spot,Yetangitu/f-spot,dkoeb/f-spot,Sanva/f-spot,GNOME/f-spot,Yetangitu/f-spot,Yetangitu/f-spot,mans0954/f-spot,dkoeb/f-spot,mono/f-spot,nathansamson/F-Spot-Album... | gio-sharp/gio/FileFactory.cs | gio-sharp/gio/FileFactory.cs | //
// FileFactory.cs
//
// Author(s):
// Stephane Delcroix <stephane@delcroix.org>
//
// Copyright (c) 2008 Stephane Delcroix
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foun... | //
// FileFactory.cs
//
// Author(s):
// Stephane Delcroix <stephane@delcroix.org>
//
// Copyright (c) 2008 Stephane Delcroix
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foun... | mit | C# |
de47b86a9682dd0e15687e74382bb6bee809e18c | 添加bFold字段,标识该项在面板中是否展开 | Andy-Sun/Unity3d-Sequential | scripts/DataSource.cs | scripts/DataSource.cs | /*
* Author: AndySun
* Date: 2015-07-02
* Description: The DataStruct for xml file & Unity Scripts Communication with each other.
*/
using System.Collections.Generic;
using System.Xml;
using UnityEngine;
/// <summary>
/// 操作的类型
/// </summary>
public enum EOperType
{
Trans,
Rot,
SetParent
}
... | /*
* Author: AndySun
* Date: 2015-07-02
* Description: The DataStruct for xml file & Unity Scripts Communication with each other.
*/
using System.Collections.Generic;
using System.Xml;
using UnityEngine;
/// <summary>
/// 操作的类型
/// </summary>
public enum EOperType
{
Trans,
Rot,
SetParent
}
... | mit | C# |
66c004c8a008f9603b7aa96956749486e838e201 | Add doc comment. | nguerrera/roslyn,tannergooding/roslyn,ErikSchierboom/roslyn,aelij/roslyn,KevinRansom/roslyn,CyrusNajmabadi/roslyn,dpoeschl/roslyn,physhi/roslyn,brettfo/roslyn,genlu/roslyn,gafter/roslyn,agocke/roslyn,weltkante/roslyn,DustinCampbell/roslyn,davkean/roslyn,agocke/roslyn,wvdd007/roslyn,swaroop-sridhar/roslyn,sharwell/rosly... | src/Features/Core/Portable/GenerateEqualsAndGetHashCodeFromMembers/IGenerateEqualsAndGetHashCodeService.cs | src/Features/Core/Portable/GenerateEqualsAndGetHashCodeFromMembers/IGenerateEqualsAndGetHashCodeService.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;
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Host;
namespace Microso... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Host;
namespace Microsoft.CodeAnalysi... | mit | C# |
aedc9816942d3f32f78f4a6d8fa1005fb2306e6d | deal with null | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Core/Extensions/StringExtensions.cs | Anlab.Core/Extensions/StringExtensions.cs | using System;
using System.Globalization;
namespace Anlab.Core.Extensions
{
public static class StringExtensions
{
public static string SafeToUpper(this string value)
{
if (value == null)
{
return null;
}
return valu... | using System;
using System.Globalization;
namespace Anlab.Core.Extensions
{
public static class StringExtensions
{
public static string SafeToUpper(this string value)
{
if (value == null)
{
return null;
}
return valu... | mit | C# |
a3f2ea7b10b3ce422787062603a5da0a64c111a3 | Set FormatterFactory as public | PKRoma/refit,martijn00/refit,mteper/refit,onovotny/refit,martijn00/refit,mteper/refit,onovotny/refit,ammachado/refit,paulcbetts/refit,jlucansky/refit,paulcbetts/refit,PureWeen/refit,jlucansky/refit,ammachado/refit,PureWeen/refit | Refit/RequestBuilder.cs | Refit/RequestBuilder.cs | using System;
using System.Collections.Generic;
using System.Net.Http;
namespace Refit
{
public interface IRequestBuilder
{
IEnumerable<string> InterfaceHttpMethods { get; }
Func<object[], HttpRequestMessage> BuildRequestFactoryForMethod(string methodName, string basePath = "");
Func<Ht... | using System;
using System.Collections.Generic;
using System.Net.Http;
namespace Refit
{
public interface IRequestBuilder
{
IEnumerable<string> InterfaceHttpMethods { get; }
Func<object[], HttpRequestMessage> BuildRequestFactoryForMethod(string methodName, string basePath = "");
Func<Ht... | mit | C# |
ed53c1c00bd48c65145df2cc80232110b252ca3b | Fix assembly resolve on x64 | simontaylor81/DirectXTex.net,simontaylor81/DirectXTex.net,simontaylor81/DirectXTex.net | src/DirectXTexNet/DirectXTex.cs | src/DirectXTexNet/DirectXTex.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace DirectXTexNet
{
public static class DirectXTex
{
public static IScratchImage LoadFromDDSFile(string filename)
{
return Impl.DirectXTex.LoadFr... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace DirectXTexNet
{
public static class DirectXTex
{
public static IScratchImage LoadFromDDSFile(string filename)
{
return Impl.DirectXTex.LoadFr... | mit | C# |
570e79f23c9e8237502394924fe1be3068e94d15 | add todo | kreeben/resin,kreeben/resin | src/DocumentTable/Compressor.cs | src/DocumentTable/Compressor.cs | using System.IO;
using System.IO.Compression;
namespace DocumentTable
{
public static class Deflator
{
//TODO: write directly to output stream
public static byte[] Compress(string text)
{
if (string.IsNullOrWhiteSpace(text)) return new byte[0];
var bytes = Table... | using System.IO;
using System.IO.Compression;
namespace DocumentTable
{
public static class Deflator
{
public static byte[] Compress(string text)
{
if (string.IsNullOrWhiteSpace(text)) return new byte[0];
var bytes = TableSerializer.Encoding.GetBytes(text);
... | mit | C# |
723627c77630de08f75a77da5c8adc80d80c86e5 | Simplify control flow and reduce excessive calls to IEnumerable.Any(). | plioi/parsley | src/Parsley/ErrorMessageList.cs | src/Parsley/ErrorMessageList.cs | namespace Parsley;
public class ErrorMessageList
{
public static readonly ErrorMessageList Empty = new();
readonly ErrorMessage? head;
readonly ErrorMessageList? tail;
ErrorMessageList()
{
head = null;
tail = null;
}
ErrorMessageList(ErrorMessage head, ErrorMessageList ta... | namespace Parsley;
public class ErrorMessageList
{
public static readonly ErrorMessageList Empty = new();
readonly ErrorMessage? head;
readonly ErrorMessageList? tail;
ErrorMessageList()
{
head = null;
tail = null;
}
ErrorMessageList(ErrorMessage head, ErrorMessageList ta... | mit | C# |
ddc4c7dc95be9432fc96c095b226dac305ec325f | update example | jasarsoft/ipcs-primjeri | ipcs_36/primjer01/Program.cs | ipcs_36/primjer01/Program.cs | using System;
using System.Collections;
namespace primjer01
{
class Program
{
static void Main(string[] args)
{
//deklarisemo kolekciju tipa ArrayList
ArrayList names = new ArrayList();
Console.WriteLine("Incjalizovani broj elemenata: " + names.Count + "\n")... | using System;
using System.Collections;
namespace primjer01
{
class Program
{
static void Main(string[] args)
{
//deklarisemo kolekciju tipa ArrayList
ArrayList names = new ArrayList();
Console.WriteLine("Incjalizovani broj elemenata: " + names.Count + "\n")... | apache-2.0 | C# |
d9dbfcc2c7fe8b977ac4251e37d79005fd3ac674 | Add Tasker to global service provider 🗜 | Huex/VKDiscordBot | VKDiscordBot/Program.cs | VKDiscordBot/Program.cs | using Discord.Commands;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.IO;
using System.Threading.Tasks;
using VKDiscordBot.Models;
using VKDiscordBot.Services;
namespace VKDiscordBot
{
public class Program
{
static void Main(string[] args)
... | using Discord.Commands;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.IO;
using System.Threading.Tasks;
using VKDiscordBot.Services;
namespace VKDiscordBot
{
public class Program
{
static void Main(string[] args)
{
new Program()... | mit | C# |
06a00b85bde05cc78cc548334a1393b2fecf39d5 | Update IMapperBuilder.cs | NN---/CodeJam,rsdn/CodeJam | CodeJam.Blocks/Mapping/IMapperBuilder.cs | CodeJam.Blocks/Mapping/IMapperBuilder.cs | #if !LESSTHAN_NET40
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using CodeJam.Reflection;
using JetBrains.Annotations;
namespace CodeJam.Mapping
{
/// <summary>
/// Builds a mapper that maps an object of <i>TFrom</i> type to an object of <i>TTo</i> type.
/// </summary>
[Public... | #if !LESSTHAN_NET40
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using CodeJam.Reflection;
using JetBrains.Annotations;
namespace CodeJam.Mapping
{
/// <summary>
/// Builds a mapper that maps an object of <i>TFrom</i> type to an object of <i>TTo</i> type.
/// </summary>
[Public... | mit | C# |
b288499bc81cf8e309ad59888c57f1c2ae49ebc3 | Update Program.cs | sqfish/cheers | Cheers/Cheers/Program.cs | Cheers/Cheers/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cheers
{
class Program
{
static void Main(string[] args)
{
//Get the user's name and print it.
Console.WriteLine("What's your name?");
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cheers
{
class Program
{
static void Main(string[] args)
{
//Get the user's name and print it.
Console.WriteLine("What's your name?");
... | mit | C# |
f27349abfef05c59264b9f8f5886a8ed331c3140 | Add cast Environment to int | SIROK/growthbeat-unity,SIROK/growthbeat-unity,growthbeat/growthbeat-unity,growthbeat/growthbeat-unity | source/Assets/Plugins/Growthbeat/GrowthPush.cs | source/Assets/Plugins/Growthbeat/GrowthPush.cs | //
// GrowthPush.cs
// Growthbeat-unity
//
// Created by Baekwoo Chung on 2015/06/15.
// Copyright (c) 2015年 SIROK, Inc. All rights reserved.
//
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
public class GrowthPush {
private s... | //
// GrowthPush.cs
// Growthbeat-unity
//
// Created by Baekwoo Chung on 2015/06/15.
// Copyright (c) 2015年 SIROK, Inc. All rights reserved.
//
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
public class GrowthPush {
private s... | apache-2.0 | C# |
98ced92bec2e933eeff9f9e0e65e2e51f70b104d | add new tags | patrickpissurno/samecitysameshit | GGJ2016/Assets/Scripts/Domain/TagType.cs | GGJ2016/Assets/Scripts/Domain/TagType.cs | using UnityEngine;
using System.Collections;
public class TagType {
public const string BusStop = "BusStop";
public const string Limit = "Limit";
public const string Bus = "Bus";
public const string Car = "Car";
public const string Taxi = "Taxi";
public const string Rebu = "Rebu";
public c... | using UnityEngine;
using System.Collections;
public class TagType {
public const string BusStop = "BusStop";
public const string Limit = "Limit";
}
| cc0-1.0 | C# |
e4e63cea2e7dbc92d2f7410d6c8edcc4e5025107 | add ContextFreeTask.Run methods for creating ContextFreeTask | ufcpp/ContextFreeTask | src/ContextFreeTasks.Shared/ContextFreeTask.cs | src/ContextFreeTasks.Shared/ContextFreeTask.cs | using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using ContextFreeTasks.Internal;
using static System.Threading.Tasks.Task;
namespace ContextFreeTasks
{
[AsyncMethodBuilder(typeof(AsyncContextFreeTaskMethodBuilder))]
public struct ContextFreeTask
{
private readonl... | using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using ContextFreeTasks.Internal;
using static System.Threading.Tasks.Task;
namespace ContextFreeTasks
{
[AsyncMethodBuilder(typeof(AsyncContextFreeTaskMethodBuilder))]
public struct ContextFreeTask
{
private readonly Task _task;
... | mit | C# |
fcf29a4b139e23d81fa066e878df7d85c31e25e5 | Add a single-instance check on application startup | Phrynohyas/eve-o-preview,Phrynohyas/eve-o-preview,Ligraph/eve-o-preview | Eve-O-Preview/Program.cs | Eve-O-Preview/Program.cs | using System;
using System.Threading;
using System.Windows.Forms;
using EveOPreview.Configuration;
using EveOPreview.UI;
namespace EveOPreview
{
static class Program
{
private static string MutexName = "EVE-O Preview Single Instance Mutex";
private static string ConfigParameterName = "--config:";
... | using System;
using System.Windows.Forms;
using EveOPreview.Configuration;
using EveOPreview.UI;
namespace EveOPreview
{
static class Program
{
private static string ConfigParameterName = "--config:";
/// <summary>The main entry point for the application.</summary>
[STAThread]
static void Main(... | mit | C# |
cd101571a4ecfb5a28e645bef7b458e6e82c7224 | enable calibration for image | myxini/block-program | block-program/Execution/BlockProgramExecuter.cs | block-program/Execution/BlockProgramExecuter.cs | using Myxini.Communication;
using Myxini.Recognition;
using Myxini.Recognition.Image;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myxini.Execution
{
public class BlockProgramExecuter : IBlockProgramExecuter
{
private Whi... | using Myxini.Communication;
using Myxini.Recognition;
using Myxini.Recognition.Image;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myxini.Execution
{
public class BlockProgramExecuter : IBlockProgramExecuter
{
/// <summar... | mit | C# |
225ca60f8772c5cad3d6172e793524d24d41a299 | Add unknown MissionObjectiveType values | feliwir/openSage,feliwir/openSage | src/OpenSage.Game/Data/Map/MissionObjective.cs | src/OpenSage.Game/Data/Map/MissionObjective.cs | using System.IO;
using OpenSage.Data.Utilities.Extensions;
namespace OpenSage.Data.Map
{
[AddedIn(SageGame.Ra3)]
public sealed class MissionObjective
{
public string ID { get; private set; }
public string Text { get; private set; }
public string Description { get; private set; }
... | using System.IO;
using OpenSage.Data.Utilities.Extensions;
namespace OpenSage.Data.Map
{
[AddedIn(SageGame.Ra3)]
public sealed class MissionObjective
{
public string ID { get; private set; }
public string Text { get; private set; }
public string Description { get; private set; }
... | mit | C# |
78d2e9b18a3610c2e016e6de454646d719090163 | Rename variable to make more sense | codeforamerica/denver-schedules-api,schlos/denver-schedules-api,schlos/denver-schedules-api,codeforamerica/denver-schedules-api | Schedules.API/Modules/RemindersModule.cs | Schedules.API/Modules/RemindersModule.cs | using Nancy;
using Nancy.ModelBinding;
using Schedules.API.Models;
using Simpler;
using Schedules.API.Tasks.Reminders;
namespace Schedules.API.Modules
{
public class RemindersModule : NancyModule
{
public RemindersModule ()
{
Post["/reminders/sms"] = _ => {
var createSMSReminder = CreateARem... | using Nancy;
using Nancy.ModelBinding;
using Schedules.API.Models;
using Simpler;
using Schedules.API.Tasks.Reminders;
namespace Schedules.API.Modules
{
public class RemindersModule : NancyModule
{
public RemindersModule ()
{
Post["/reminders/sms"] = _ => {
var createSMSReminder = CreateARem... | mit | C# |
f16369d8001b32a901c419f60d757c0583764d3f | Prepare 0.5.0 | pleonex/deblocus,pleonex/deblocus | Deblocus/Properties/AssemblyInfo.cs | Deblocus/Properties/AssemblyInfo.cs | //
// AssemblyInfo.cs
//
// Author:
// Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez (c) 2015
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// ... | //
// AssemblyInfo.cs
//
// Author:
// Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez (c) 2015
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// ... | agpl-3.0 | C# |
46e321bd18d0038d41414874974380a25bd68784 | fix ref | Fody/MethodTimer | Tests/AssemblyTestersests/IgnoreCodes.cs | Tests/AssemblyTestersests/IgnoreCodes.cs | using System.Collections.Generic;
public static class IgnoreCodes
{
public static IEnumerable<string> GetIgnoreCoders()
{
#if NET461
return System.Linq.Enumerable.Empty<string>();
#endif
#if NETCOREAPP2_0
return new[] { "0x80131869" };
#endif
}
} | using System.Collections.Generic;
public static class IgnoreCodes
{
public static IEnumerable<string> GetIgnoreCoders()
{
#if NET461
return Enumerable.Empty<string>();
#endif
#if NETCOREAPP2_0
return new[] { "0x80131869" };
#endif
}
} | mit | C# |
db2840fe28500c2ab1969d89dfd16fe9b4367e38 | Remove InternalsVisibleTo because it causes tight coupling and type confliction. | scopely/msgpack-cli,modulexcite/msgpack-cli,msgpack/msgpack-cli,undeadlabs/msgpack-cli,scopely/msgpack-cli,undeadlabs/msgpack-cli,msgpack/msgpack-cli,modulexcite/msgpack-cli | cli/src/MsgPack.Mono/Properties/AssemblyInfo.cs | cli/src/MsgPack.Mono/Properties/AssemblyInfo.cs | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010 FUJIWARA, Yusuke
//
// 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.or... | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010 FUJIWARA, Yusuke
//
// 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.or... | apache-2.0 | C# |
4d16812f874be3da362700adb28c7674e85becc9 | test fixed from removing dependency. | BrettStory/Macabre2D | UI/Tests/Services/ProjectServiceTests.cs | UI/Tests/Services/ProjectServiceTests.cs | namespace Macabre2D.UI.Tests.Services {
using Macabre2D.UI.Models;
using Macabre2D.UI.ServiceInterfaces;
using Macabre2D.UI.Services;
using NSubstitute;
using NUnit.Framework;
using System;
using System.IO;
using System.Threading.Tasks;
[TestFixture]
public static class Projec... | namespace Macabre2D.UI.Tests.Services {
using Macabre2D.UI.Models;
using Macabre2D.UI.ServiceInterfaces;
using Macabre2D.UI.Services;
using NSubstitute;
using NUnit.Framework;
using System;
using System.IO;
using System.Threading.Tasks;
[TestFixture]
public static class Projec... | mit | C# |
6bc507d49ed2bc76cbbaffc5dc9ddac087a5bd8f | Increase coordinate parsing limits | peppy/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,ppy/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,smoogipooo/osu | osu.Game/Beatmaps/Formats/Parsing.cs | osu.Game/Beatmaps/Formats/Parsing.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.Globalization;
namespace osu.Game.Beatmaps.Formats
{
/// <summary>
/// Helper methods to parse from string to number and perform very ... | // 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.Globalization;
namespace osu.Game.Beatmaps.Formats
{
/// <summary>
/// Helper methods to parse from string to number and perform very ... | mit | C# |
75d8a4c28522492767ba59a6bdbd10e1d941d6cc | Bump version to 12.2.0.26757 | HearthSim/HearthDb | HearthDb/Properties/AssemblyInfo.cs | HearthDb/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("Hea... | 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("Hea... | mit | C# |
6aff137a8a165fc9f5443414c3ab6ee011d29d5d | Make example DownloadHandler public | haozhouxu/CefSharp,Octopus-ITSM/CefSharp,rover886/CefSharp,haozhouxu/CefSharp,jamespearce2006/CefSharp,yoder/CefSharp,Livit/CefSharp,joshvera/CefSharp,Haraguroicha/CefSharp,twxstar/CefSharp,rlmcneary2/CefSharp,dga711/CefSharp,jamespearce2006/CefSharp,VioletLife/CefSharp,VioletLife/CefSharp,windygu/CefSharp,twxstar/CefS... | CefSharp.Example/DownloadHandler.cs | CefSharp.Example/DownloadHandler.cs | namespace CefSharp.Example
{
public class DownloadHandler : IDownloadHandler
{
public bool OnBeforeDownload(DownloadItem downloadItem, out string downloadPath, out bool showDialog)
{
downloadPath = downloadItem.SuggestedFileName;
showDialog = true;
return tr... | namespace CefSharp.Example
{
internal class DownloadHandler : IDownloadHandler
{
public bool OnBeforeDownload(DownloadItem downloadItem, out string downloadPath, out bool showDialog)
{
downloadPath = downloadItem.SuggestedFileName;
showDialog = true;
return ... | bsd-3-clause | C# |
3e0cf9188fc6993fed4eb6bb3622b5a00f0b3e89 | Add DebuggerDisplay attribute for Token class | igitur/ClosedXML,ClosedXML/ClosedXML | ClosedXML/Excel/CalcEngine/Token.cs | ClosedXML/Excel/CalcEngine/Token.cs | using System.Diagnostics;
namespace ClosedXML.Excel.CalcEngine
{
/// <summary>
/// Represents a node in the expression tree.
/// </summary>
[DebuggerDisplay("{Value} ({ID} {Type})")]
internal class Token
{
// ** fields
public TKID ID;
public TKTYPE Type;
public ... | namespace ClosedXML.Excel.CalcEngine
{
/// <summary>
/// Represents a node in the expression tree.
/// </summary>
internal class Token
{
// ** fields
public TKID ID;
public TKTYPE Type;
public object Value;
// ** ctor
public Token(object value, TKID ... | mit | C# |
7acb0ae402273e349718827c782f87ba4ab53344 | Add data copier test | TheAngryByrd/DataflowEx,gridsum/DataflowEx | Gridsum.DataflowEx.Test/TestDataCopier.cs | Gridsum.DataflowEx.Test/TestDataCopier.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Gridsum.DataflowEx.Test
{
[TestClass]
public class TestDataCopier
{
[TestMethod]
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Gridsum.DataflowEx.Test
{
[TestClass]
public class TestDataCopier
{
[TestMethod]
public void TestDataCopier1()
... | mit | C# |
c0009360bc9f59cbcc155cab694579581614eed6 | Mark TreeEntryTargetType.Tag as obsolete | dlsteuer/libgit2sharp,AArnott/libgit2sharp,xoofx/libgit2sharp,OidaTiftla/libgit2sharp,GeertvanHorrik/libgit2sharp,sushihangover/libgit2sharp,Zoxive/libgit2sharp,AArnott/libgit2sharp,vorou/libgit2sharp,rcorre/libgit2sharp,rcorre/libgit2sharp,Zoxive/libgit2sharp,oliver-feng/libgit2sharp,OidaTiftla/libgit2sharp,AMSadek/li... | LibGit2Sharp/TreeEntryTargetType.cs | LibGit2Sharp/TreeEntryTargetType.cs | using System;
using LibGit2Sharp.Core;
namespace LibGit2Sharp
{
/// <summary>
/// Underlying type of the target a <see cref = "TreeEntry" />
/// </summary>
public enum TreeEntryTargetType
{
/// <summary>
/// A file revision object.
/// </summary>
Blob = 1,
... | using System;
using LibGit2Sharp.Core;
namespace LibGit2Sharp
{
/// <summary>
/// Underlying type of the target a <see cref = "TreeEntry" />
/// </summary>
public enum TreeEntryTargetType
{
/// <summary>
/// A file revision object.
/// </summary>
Blob = 1,
... | mit | C# |
6f9c6a5ec5755d79eeba67635e5d4894a295d26c | update error message | pacal/NPoco_Identity_Provider | NPoco_Idenity_Provider/RoleStore.cs | NPoco_Idenity_Provider/RoleStore.cs | using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
namespace Pacal.NPoco_Idenity_Provider
{
public class RoleStore<TRole>: IQueryableRoleStore<TRole> where TRole : IdentityRole
{
private RoleTable roleTable;
public DataProvider Database { get; set;... | using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
namespace Pacal.NPoco_Idenity_Provider
{
public class RoleStore<TRole>: IQueryableRoleStore<TRole> where TRole : IdentityRole
{
private RoleTable roleTable;
public DataProvider Database { get; set;... | mit | C# |
606378cb41ee89ee2201692411b91ff81be6d473 | Remove redundant Type on Button | praeclarum/Ooui,praeclarum/Ooui,praeclarum/Ooui | Ooui/Button.cs | Ooui/Button.cs | using System;
namespace Ooui
{
public class Button : FormControl
{
string val = "";
public string Value {
get => val;
set => SetProperty (ref val, value, "value");
}
public event EventHandler Clicked {
add => AddEventListener ("click", value... | using System;
namespace Ooui
{
public class Button : FormControl
{
string typ = "submit";
public string Type {
get => typ;
set => SetProperty (ref typ, value, "type");
}
string val = "";
public string Value {
get => val;
... | mit | C# |
b578d005aebad97f77087b68bbf48446c66edd7f | Make shop more robust | Particular/SagaMasterClass | Shop/Program.cs | Shop/Program.cs | namespace Shop
{
using System;
using NServiceBus;
using NServiceBus.Logging;
class Program
{
static void Main()
{
LogManager.Use<DefaultFactory>().Level(LogLevel.Error);
var busConfiguration = new BusConfiguration();
using (var bus = Bus.Create... | namespace Shop
{
using System;
using NServiceBus;
using NServiceBus.Logging;
class Program
{
static void Main()
{
LogManager.Use<DefaultFactory>().Level(LogLevel.Error);
var busConfiguration = new BusConfiguration();
using (var bus = Bus.Create... | mit | C# |
8d786ef8a9735f5c2f376d97ed0c60c8f92d89d4 | undo version change. | bdukes/Dnn.Platform,RichardHowells/Dnn.Platform,robsiera/Dnn.Platform,RichardHowells/Dnn.Platform,valadas/Dnn.Platform,janjonas/Dnn.Platform,EPTamminga/Dnn.Platform,svdv71/Dnn.Platform,valadas/Dnn.Platform,nvisionative/Dnn.Platform,SCullman/Dnn.Platform,wael101/Dnn.Platform,janjonas/Dnn.Platform,mitchelsellers/Dnn.Plat... | SolutionInfo.cs | SolutionInfo.cs | #region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2017
// by DotNetNuke Corporation
//
// 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 restrict... | #region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2017
// by DotNetNuke Corporation
//
// 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 restrict... | mit | C# |
07b22caf93f98e7e6ee03554923eb2aab083fb51 | bump ver | AntonyCorbett/OnlyT,AntonyCorbett/OnlyT | SolutionInfo.cs | SolutionInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("SoundBox")]
[assembly: AssemblyProduct("OnlyT")]
[assembly: AssemblyCopyright("Copyright © 2019 Antony Corbett")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.2.0.1")] | using System.Reflection;
[assembly: AssemblyCompany("SoundBox")]
[assembly: AssemblyProduct("OnlyT")]
[assembly: AssemblyCopyright("Copyright © 2019 Antony Corbett")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.1.0.68")] | mit | C# |
9532e8e7b7e5deca6e7b2866ff0803101eb5885c | bump ver | AntonyCorbett/OnlyT,AntonyCorbett/OnlyT | SolutionInfo.cs | SolutionInfo.cs | using System.Reflection;
[assembly: AssemblyCompany("SoundBox")]
[assembly: AssemblyProduct("OnlyT")]
[assembly: AssemblyCopyright("Copyright © 2019, 2020 Antony Corbett")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.2.0.29")] | using System.Reflection;
[assembly: AssemblyCompany("SoundBox")]
[assembly: AssemblyProduct("OnlyT")]
[assembly: AssemblyCopyright("Copyright © 2019, 2020 Antony Corbett")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.2.0.28")] | mit | C# |
632bff021237121214f12005120e88f5365d319b | Bump the version to v5.0.2 | RachelTucker/ds3_net_sdk,RachelTucker/ds3_net_sdk,SpectraLogic/ds3_net_sdk,shabtaisharon/ds3_net_sdk,shabtaisharon/ds3_net_sdk,SpectraLogic/ds3_net_sdk,shabtaisharon/ds3_net_sdk,RachelTucker/ds3_net_sdk,SpectraLogic/ds3_net_sdk | VersionInfo.cs | VersionInfo.cs | /*
* ******************************************************************************
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License i... | /*
* ******************************************************************************
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License i... | apache-2.0 | C# |
d89cad2509204ac1cceece359bf7ba77b9b23439 | Fix lobby player duplication on WarpAck | HelloKitty/Booma.Proxy | src/Booma.Proxy.Client.Unity.Ship/Handlers/Command/Warping/BlockOtherClientAlertedExistenceEventhandler.cs | src/Booma.Proxy.Client.Unity.Ship/Handlers/Command/Warping/BlockOtherClientAlertedExistenceEventhandler.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Logging;
using GladNet;
using SceneJect.Common;
using UnityEngine;
namespace Booma.Proxy
{
[AdditionalRegisterationAs(typeof(IRemoteClientAcknowledgedWarpEventSubscribable))]
[SceneTypeCr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Logging;
using GladNet;
using SceneJect.Common;
using UnityEngine;
namespace Booma.Proxy
{
[AdditionalRegisterationAs(typeof(IRemoteClientAcknowledgedWarpEventSubscribable))]
[SceneTypeCr... | agpl-3.0 | C# |
962f0f2fb8126750bf2ae299ce61d6a6eac7874f | Add test | sakapon/Samples-2014,sakapon/Samples-2014,sakapon/Samples-2014 | MonadSample/MonadConsole/Program.cs | MonadSample/MonadConsole/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MonadConsole
{
class Program
{
static void Main(string[] args)
{
MonadTest();
MaybeTest();
FlowTest();
}
static voi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MonadConsole
{
class Program
{
static void Main(string[] args)
{
}
}
}
| mit | C# |
0dd7830dbfe7986c03925e9a5c3d42837b0be7d0 | make mocks strict by default | Unity-Technologies/CodeEditor,Unity-Technologies/CodeEditor | src/CodeEditor.Testing/MockBasedTest.cs | src/CodeEditor.Testing/MockBasedTest.cs | using Moq;
using NUnit.Framework;
namespace CodeEditor.Testing
{
public abstract class MockBasedTest
{
[SetUp]
public void SetUpMockRepository()
{
_mocks = new MockRepository(MockBehavior.Strict);
}
protected Mock<T> MockFor<T>() where T : class
{
return MockFor<T>(MockBehavior.Strict);
}
pro... | using Moq;
using NUnit.Framework;
namespace CodeEditor.Testing
{
public abstract class MockBasedTest
{
[SetUp]
public void SetUpMockRepository()
{
_mocks = new MockRepository(MockBehavior.Strict);
}
protected Mock<T> MockFor<T>() where T : class
{
return MockFor<T>(MockBehavior.Default);
}
p... | mit | C# |
6e66722a9efd9047cb49a4470094ddd375d15dc3 | Add XML doc comment | modulexcite/dnlib,picrap/dnlib,0xd4d/dnlib,ZixiangBoy/dnlib,jorik041/dnlib,ilkerhalil/dnlib,kiootic/dnlib,yck1509/dnlib,Arthur2e5/dnlib | src/DotNet/Writer/Extensions.cs | src/DotNet/Writer/Extensions.cs | using System.IO;
namespace dot10.DotNet.Writer {
/// <summary>
/// Extension methods
/// </summary>
public static partial class Extensions {
/// <summary>
/// Write zeros
/// </summary>
/// <param name="writer">this</param>
/// <param name="count">Number of zeros</param>
public static void WriteZeros(... | using System.IO;
namespace dot10.DotNet.Writer {
/// <summary>
/// Extension methods
/// </summary>
public static partial class Extensions {
public static void WriteZeros(this BinaryWriter writer, int count) {
if (count <= 0x20) {
for (int i = 0; i < count; i++)
writer.Write((byte)0);
}
else
... | mit | C# |
238d7c1ba8c6491085178192aa03522341da6185 | Fix crash with null exception (#578) | NuKeeperDotNet/NuKeeper,skolima/NuKeeper,NuKeeperDotNet/NuKeeper,skolima/NuKeeper,NuKeeperDotNet/NuKeeper,skolima/NuKeeper,AnthonySteele/NuKeeper,skolima/NuKeeper,AnthonySteele/NuKeeper,AnthonySteele/NuKeeper,AnthonySteele/NuKeeper,NuKeeperDotNet/NuKeeper | NuKeeper.Inspection/Logging/ConfigurableLogger.cs | NuKeeper.Inspection/Logging/ConfigurableLogger.cs | using System;
using NuKeeper.Abstractions.Logging;
namespace NuKeeper.Inspection.Logging
{
public class ConfigurableLogger : INuKeeperLogger, IConfigureLogger
{
private IInternalLogger _inner;
public void Initialise(LogLevel logLevel, LogDestination destination, string filePath)
{
... | using System;
using NuKeeper.Abstractions.Logging;
namespace NuKeeper.Inspection.Logging
{
public class ConfigurableLogger : INuKeeperLogger, IConfigureLogger
{
private IInternalLogger _inner;
public void Initialise(LogLevel logLevel, LogDestination destination, string filePath)
{
... | apache-2.0 | C# |
144fcd36b43066ee11d21a4dd4f6538d091859fc | Fix build for UE4.2 - Add SlateCore as new module dependency | SRombauts/UE4GitPlugin,SRombauts/UE4GitPlugin,SRombauts/UE4GitPlugin | Source/GitSourceControl/GitSourceControl.Build.cs | Source/GitSourceControl/GitSourceControl.Build.cs | // Copyright (c) 2014 Sebastien Rombauts (sebastien.rombauts@gmail.com)
//
// Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
// or copy at http://opensource.org/licenses/MIT)
using UnrealBuildTool;
public class GitSourceControl : ModuleRules
{
public GitSourceControl(TargetInfo Target)
{... | // Copyright (c) 2014 Sebastien Rombauts (sebastien.rombauts@gmail.com)
//
// Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
// or copy at http://opensource.org/licenses/MIT)
using UnrealBuildTool;
public class GitSourceControl : ModuleRules
{
public GitSourceControl(TargetInfo Target)
{... | mit | C# |
f07bf5bbb24fa376d7cb53423a235de0803773b0 | Enable callback test only when url is set | mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager | SupportManager.Web/Pages/User/ApiKeys/List.cshtml | SupportManager.Web/Pages/User/ApiKeys/List.cshtml | @page
@model SupportManager.Web.Pages.User.ApiKeys.ListModel
@{
Layout = "/Features/Shared/_Layout.cshtml";
ViewData["Title"] = "API Keys";
}
<h2>API Keys</h2>
@if (!Model.Data.ApiKeys.Any())
{
<div class="jumbotron">
<p>
No API keys created yet.
</p>
<p>
... | @page
@model SupportManager.Web.Pages.User.ApiKeys.ListModel
@{
Layout = "/Features/Shared/_Layout.cshtml";
ViewData["Title"] = "API Keys";
}
<h2>API Keys</h2>
@if (!Model.Data.ApiKeys.Any())
{
<div class="jumbotron">
<p>
No API keys created yet.
</p>
<p>
... | mit | C# |
f9c3a251a0eac9c4e775ef9db135674ca12ca9a2 | Make Expirable smarter, automatic update on Value retrieve | fiinix00/DNSRootServerResolver | Expirable.cs | Expirable.cs | using System;
namespace DNSRootServerResolver
{
public class Expirable<T>
{
private bool initialized;
private Func<T> renewer;
private Func<T, DateTime> reexpirator;
public DateTime ExpiresAt { get; set; }
private T value;
public T Value
{
... | using System;
namespace DNSRootServerResolver
{
public class Expirable<T>
{
private Func<T> renewer;
private Func<T, DateTime> reexpirator;
public DateTime ExpiresAt { get; set; }
public T Value { get; set; }
public Expirable(Func<T> renewer, Func<T, DateTime> reexpi... | mit | C# |
ca00deca82371897aa57f4f96011d93a1a7f50fe | Update Models | gOOvaUY/Plexo.Models,gOOvaUY/Goova.Plexo.Models | FieldType.cs | FieldType.cs | using System.Runtime.Serialization;
// ReSharper disable InconsistentNaming
namespace Goova.Plexo
{
[DataContract]
public enum FieldType
{
[EnumMember] Pan,
[EnumMember] Expiration,
[EnumMember] Pin,
[EnumMember] CVC,
[EnumMember] Name,
[EnumMember] Address,... | using System.Runtime.Serialization;
// ReSharper disable InconsistentNaming
namespace Goova.Plexo
{
[DataContract]
public enum FieldType
{
[EnumMember] Pan,
[EnumMember] Expiration,
[EnumMember] Pin,
[EnumMember] CVC,
[EnumMember] Name,
[EnumMember] Address,... | agpl-3.0 | C# |
de632c1bc7f29e637a9690a1e06dfe83cb6bbfd8 | Add MethodSemanticsAttributes.None | Arthur2e5/dnlib,jorik041/dnlib,picrap/dnlib,ZixiangBoy/dnlib,kiootic/dnlib,ilkerhalil/dnlib,0xd4d/dnlib,modulexcite/dnlib,yck1509/dnlib | src/DotNet/MethodSemanticsAttributes.cs | src/DotNet/MethodSemanticsAttributes.cs | // dnlib: See LICENSE.txt for more info
using System;
namespace dnlib.DotNet {
/// <summary>
/// Method semantics flags, see CorHdr.h/CorMethodSemanticsAttr
/// </summary>
[Flags]
public enum MethodSemanticsAttributes : ushort {
/// <summary>No bit is set</summary>
None = 0,
/// <summary>Setter for prope... | // dnlib: See LICENSE.txt for more info
using System;
namespace dnlib.DotNet {
/// <summary>
/// Method semantics flags, see CorHdr.h/CorMethodSemanticsAttr
/// </summary>
[Flags]
public enum MethodSemanticsAttributes : ushort {
/// <summary>Setter for property</summary>
Setter = 0x0001,
/// <summary>Get... | mit | C# |
4dc5b1b2985c7729ab7ea38c8e52a7da148d1aab | Update ScribbleShape.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/Draw2D.Core/Shapes/ScribbleShape.cs | src/Draw2D.Core/Shapes/ScribbleShape.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Draw2D.Core.Renderers;
namespace Draw2D.Core.Shapes
{
public class ScribbleShape... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Draw2D.Core.Renderers;
namespace Draw2D.Core.Shapes
{
public class ScribbleShape... | mit | C# |
b90e0cc002904cd7109b7ea53d121c532762226c | Use String.Split(...) instead of recreating it. | fixie/fixie | src/Fixie.Assertions/AssertException.cs | src/Fixie.Assertions/AssertException.cs | namespace Fixie.Assertions
{
using System;
using System.Collections.Generic;
public class AssertException : Exception
{
public static string FilterStackTraceAssemblyPrefix = "Fixie.Assertions.";
public AssertException(string message)
: base(message)
{
}
... | namespace Fixie.Assertions
{
using System;
using System.Collections.Generic;
public class AssertException : Exception
{
public static string FilterStackTraceAssemblyPrefix = "Fixie.Assertions.";
public AssertException(string message)
: base(message)
{
}
... | mit | C# |
28f6af5ac266c604b4cb4d2fea5cfb33652ac1de | Simplify help messages | TrackerMigrator/IssueMigrator | src/IssueMigrator/CommandLineOptions.cs | src/IssueMigrator/CommandLineOptions.cs |
using CommandLine;
using CommandLine.Text;
namespace CodePlexIssueMigrator
{
/// <summary>
/// The options class which contains the different options to CodePlex to GitHub migration utility.
/// </summary>
public class CommandLineOptions
{
#region HelpText
const string CodeplexProjectHelpText = "CodePlex p... |
using CommandLine;
using CommandLine.Text;
namespace CodePlexIssueMigrator
{
/// <summary>
/// The options class which contains the different options to CodePlex to GitHub migration utility.
/// </summary>
public class CommandLineOptions
{
#region HelpText
const string CodeplexProjectHelpText = "The name o... | mit | C# |
043f8fda61931ee23416bd68865f3623f3ce2ac2 | Fix typo (delegate) in documentation (#830) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.Http.Abstractions/Extensions/UseExtensions.cs | src/Microsoft.AspNetCore.Http.Abstractions/Extensions/UseExtensions.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Builder
{
/// <summary>
/// Extensi... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Builder
{
/// <summary>
/// Extensi... | apache-2.0 | C# |
34893657170b7726c142887c6087c8380a7e68b6 | add photo.cs | Cream2015/VoteWeb,Cream2015/VoteWeb,Cream2015/VoteWeb | VoteWeb/src/VoteWeb/Models/Photo.cs | VoteWeb/src/VoteWeb/Models/Photo.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace VoteWeb.Models
{
public class Photo
{
/// <summary>
/// 作者ID
/// </summary>
public long PhotoID { get; set; }
/// <summary>
/// 作品名称
/// </summary>
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace VoteWeb.Models
{
public class Photo
{
/// <summary>
/// 作品ID
/// </summary>
public long PhotoID { get; set; }
/// <summary>
/// 作品标题
/// </summary>... | mit | C# |
d101a7ecd47a8caf9dd253f4aa4e8477eafe276c | Load footer image in JavaScript disabled | martincostello/website,martincostello/website,martincostello/website,martincostello/website | src/Website/Views/Shared/_Footer.cshtml | src/Website/Views/Shared/_Footer.cshtml | @model SiteOptions
<hr />
<footer>
<p>
© @Model.Metadata.Author.Name @DateTimeOffset.UtcNow.Year |
<a id="link-status" href="@Model.ExternalLinks.Status.AbsoluteUri" target="_blank" title="View site uptime information">
Site Status & Uptime
</a>
| Built from
... | @model SiteOptions
<hr />
<footer>
<p>
© @Model.Metadata.Author.Name @DateTimeOffset.UtcNow.Year |
<a id="link-status" href="@Model.ExternalLinks.Status.AbsoluteUri" target="_blank" title="View site uptime information">
Site Status & Uptime
</a>
| Built from
... | apache-2.0 | C# |
9425542d170e4367a9e0b836b606a67947da279c | Generalize NamespaceDoc | YallaDotNet/Yalla.Core | src/Yalla.Core/Portable/NamespaceDoc.cs | src/Yalla.Core/Portable/NamespaceDoc.cs | namespace Yalla
{
/// <summary>
/// Yalla types.
/// </summary>
[System.Runtime.CompilerServices.CompilerGenerated]
internal sealed class NamespaceDoc
{
}
}
| namespace Yalla
{
/// <summary>
/// Yalla Core classes, interfaces and enumerations.
/// </summary>
[System.Runtime.CompilerServices.CompilerGenerated]
internal sealed class NamespaceDoc
{
}
}
| apache-2.0 | C# |
8d3541e82bb9d83c51de633859474fccc1e4b7e5 | Adjust columns for guitars home | michaelp0730/MichaelsMusic,michaelp0730/MichaelsMusic,michaelp0730/MichaelsMusic | MichaelsMusic/Views/Guitars/index.cshtml | MichaelsMusic/Views/Guitars/index.cshtml | @model MichaelsMusic.Models.GuitarCollection
@{
Layout = "~/Views/Shared/_Layout.cshtml";
ViewBag.Title = "Guitars";
ViewBag.Description = "This is the guitar collections page. These are all guitars that I either: own, used to own, or wish I owned (which is most of them). If you want to look at guitars, bu... | @model MichaelsMusic.Models.GuitarCollection
@{
Layout = "~/Views/Shared/_Layout.cshtml";
ViewBag.Title = "Guitars";
ViewBag.Description = "This is the guitar collections page. These are all guitars that I either: own, used to own, or wish I owned (which is most of them). If you want to look at guitars, bu... | mit | C# |
c5f9cf87bd3a18e4acf130a001f84b249598acc4 | Exclude the first word | BinaryTENSHi/mountain-thoughts | mountain-thoughts/Program.cs | mountain-thoughts/Program.cs | using System;
using System.Diagnostics;
using System.Linq;
namespace mountain_thoughts
{
public class Program
{
public static void Main(string[] args)
{
Process mountainProcess = NativeMethods.GetMountainProcess();
if (mountainProcess == null)
{
... | using System;
using System.Diagnostics;
namespace mountain_thoughts
{
public class Program
{
public static void Main(string[] args)
{
Process mountainProcess = NativeMethods.GetMountainProcess();
if (mountainProcess == null)
{
Console.WriteLi... | mit | C# |
6578aa82f894f6c4c4a5d83c12b330bb673355b8 | add safe post | gridsum/DataflowEx,TheAngryByrd/DataflowEx | Gridsum.DataflowEx/BlockContainerUtils.cs | Gridsum.DataflowEx/BlockContainerUtils.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
using Gridsum.DataflowEx.AutoCompletion;
using Gridsum.DataflowEx.Exceptions;
using Microsoft.CSharp.RuntimeBinder;
namespace Gridsum.Dataf... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
using Gridsum.DataflowEx.AutoCompletion;
using Microsoft.CSharp.RuntimeBinder;
namespace Gridsum.DataflowEx
{
public static class BlockContainerUtils
{
... | mit | C# |
cbf464b37078cb374df563bfebb2fb00a64638ca | fix progress bars | RelistenNet/RelistenApi,alecgorge/RelistenApi,RelistenNet/RelistenApi,alecgorge/RelistenApi,RelistenNet/RelistenApi,RelistenNet/RelistenApi | RelistenApi/Vendor/ProgressExtensions.cs | RelistenApi/Vendor/ProgressExtensions.cs | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Hangfire.Console.Progress;
namespace Relisten
{
public static class ProgressExtensions
{
public static async Task<IList<T>> AsyncForEachWithProgress<T>(this IList<T> list, IProgressBar bar, Func<T, Task> action)
{
var count =... | using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Hangfire.Console.Progress;
namespace Relisten
{
public static class ProgressExtensions
{
public static async Task<IList<T>> AsyncForEachWithProgress<T>(this IList<T> list, IProgressBar bar, Func<T, Task> action)
{
var count =... | mit | C# |
84a3c9cdc70e0a9d8a1ffba94fc05ab0ebfd91f1 | Correct a typo in comment for 'Invoke-WebRequest' (#6700) | JamesWTruher/PowerShell-1,daxian-dbw/PowerShell,PaulHigin/PowerShell,JamesWTruher/PowerShell-1,TravisEz13/PowerShell,PaulHigin/PowerShell,TravisEz13/PowerShell,JamesWTruher/PowerShell-1,daxian-dbw/PowerShell,PaulHigin/PowerShell,daxian-dbw/PowerShell,JamesWTruher/PowerShell-1,daxian-dbw/PowerShell,TravisEz13/PowerShell... | src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs | src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Management.Automation;
using System.Net.Http;
using System.IO;
namespace Microsoft.PowerShell.Commands
{
/// <summary>
/// The Invoke-WebRequest command.
/// This command makes an HTT... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Management.Automation;
using System.Net.Http;
using System.IO;
namespace Microsoft.PowerShell.Commands
{
/// <summary>
/// The Invoke-RestMethod command
/// This command makes an HTTP... | mit | C# |
44b42284baf0812e4e9a55b2df72ce47ba1780c7 | Add summary | killerantz/HoloToolkit-Unity,DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MixedRealityToolkit.Providers/WindowsMixedReality/Shared/Definitions/IWindowsMixedRealityUtilitiesProvider.cs | Assets/MixedRealityToolkit.Providers/WindowsMixedReality/Shared/Definitions/IWindowsMixedRealityUtilitiesProvider.cs | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
namespace Microsoft.MixedReality.Toolkit.WindowsMixedReality
{
/// <summary>
/// Defines a set of IntPtr properties that are used by the static <see cref="WindowsMixedRealityUtilities"/>
/// to provide access to spec... | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
namespace Microsoft.MixedReality.Toolkit.WindowsMixedReality
{
public interface IWindowsMixedRealityUtilitiesProvider
{
/// <summary>
/// The current native root <see href="https://docs.microsoft.com/uwp/... | mit | C# |
306b86077182956a43addc6c4e140e8ad3ce8ac9 | Fix MSTest test | atata-framework/atata-samples | MSTest/AtataSamples.MSTest/SampleTests.cs | MSTest/AtataSamples.MSTest/SampleTests.cs | using Atata;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AtataSamples.MSTest
{
[TestClass]
public class SampleTests : UITestFixture
{
/// <summary>
/// Simple test approach when you don't need to add exception/error information to the log.
/// For example, when yo... | using Atata;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace AtataSamples.MSTest
{
[TestClass]
public class SampleTests : UITestFixture
{
/// <summary>
/// Simple test approach when you don't need to add exception/error information to the log.
/// For example, when yo... | apache-2.0 | C# |
9254640d1c6ffbbb3ca9bbfe5641cd70cb7ce095 | Update for IIS | WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework,WorkplaceX/Framework | Framework/Server/Startup.cs | Framework/Server/Startup.cs | namespace Server
{
using Framework;
using Framework.Server;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System.Diagnostics;
/// <su... | namespace Server
{
using Framework;
using Framework.Server;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System.Diagnostics;
/// <su... | mit | C# |
7d22a94564beaa9bf18bc937ace85415325bce44 | Update for SSL error with site | irfancharania/HackyNewsClone | HackyNewsWeb/Global.asax.cs | HackyNewsWeb/Global.asax.cs | using System.Net;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace HackyNewsWeb
{
public class Global : HttpApplication
{
protected void Application_Start()
{
// to account for SSL error
ServicePointManager.SecurityProtocol = System.Net.Securi... | using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace HackyNewsWeb
{
public class Global : HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RouteConfig.RegisterRoutes(RouteTable.Routes);
}
}
}
| mit | C# |
4c47fabfc9016d5506e6cdaded694dc7f911a17d | fix shockwave | danyaal/CTFUnity,danyaal/CTFUnity | Assets/Scripts/Shockwave.cs | Assets/Scripts/Shockwave.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System;
public class Shockwave : DropItem
{
const int numEdgePoints = 200;
const float maxScale = 8f;
const float initialLifeTime = 0.6f;
LineRenderer line;
Vector3 startScale;
Color startC... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System;
public class Shockwave : DropItem
{
const int numEdgePoints = 200;
const float maxScale = 5f;
LineRenderer line;
List<Vector3> points;
Vector3 startScale;
Color startColor;
floa... | mit | C# |
6852b767e6384e02bea8787c79db017427a2fb9e | Add an extension point for defining more tables on a schema during SchemaBuilder.Build(); | SilkStack/Silk.Data.SQL.ORM | Silk.Data.SQL.ORM/Schema/SchemaBuilder.cs | Silk.Data.SQL.ORM/Schema/SchemaBuilder.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Silk.Data.SQL.ORM.Modelling;
namespace Silk.Data.SQL.ORM.Schema
{
public class SchemaBuilder
{
private readonly List<EntitySchemaOptions> _entityTypes
= new List<EntitySchemaOptions>();
protected virtual IEnumerable<Table> ... | using System;
using System.Collections.Generic;
using System.Linq;
using Silk.Data.SQL.ORM.Modelling;
namespace Silk.Data.SQL.ORM.Schema
{
public class SchemaBuilder
{
private readonly List<EntitySchemaOptions> _entityTypes
= new List<EntitySchemaOptions>();
public EntitySchemaOptions<T> DefineE... | mit | C# |
1f48378ce72b4036601eb09d0a6090ba51434d38 | Add xmldoc to SnapFinder | UselessToucan/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,peppy/osu-new | osu.Game/Rulesets/Objects/SnapFinder.cs | osu.Game/Rulesets/Objects/SnapFinder.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.Utils;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Rulesets.Objects
{
/// <summary>
/// ... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Utils;
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Rulesets.Objects
{
public class SnapFinde... | mit | C# |
b51e714ae5d5997bcc952ba8dc6cd53acf08c318 | Fix xmldoc | peppy/osu,ppy/osu,ppy/osu,naoey/osu,DrabWeb/osu,UselessToucan/osu,smoogipoo/osu,DrabWeb/osu,smoogipooo/osu,ppy/osu,peppy/osu-new,DrabWeb/osu,peppy/osu,EVAST9919/osu,smoogipoo/osu,2yangk23/osu,2yangk23/osu,naoey/osu,NeoAdonis/osu,naoey/osu,EVAST9919/osu,smoogipoo/osu,ZLima12/osu,NeoAdonis/osu,ZLima12/osu,NeoAdonis/osu,p... | osu.Game/Rulesets/RulesetConfigCache.cs | osu.Game/Rulesets/RulesetConfigCache.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
namespace osu.Game.R... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using System.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
namespace osu.Game.R... | mit | C# |
ae05b8de04303f9e9fd4fb54452d81912596158d | Prepare 0.6.2 release | LouisTakePILLz/ArgumentParser | ArgumentParser/Properties/AssemblyInfo.cs | ArgumentParser/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("ArgumentParser")]
[assembly: AssemblyDescr... | 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("ArgumentParser")]
[assembly: AssemblyDescr... | apache-2.0 | C# |
b585267fe660283573a2cb0439b512fe63e1aa86 | Update Startup.cs | stevejgordon/CorrelationId | samples/2.2/MvcSample/Startup.cs | samples/2.2/MvcSample/Startup.cs | using CorrelationId;
using CorrelationId.DependencyInjection;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace MvcSample
{
public class Startup
{
public Startup(IConfiguration con... | using CorrelationId;
using CorrelationId.DependencyInjection;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace MvcSample
{
public class Startup
{
public Startup(IConfiguration con... | mit | C# |
be4a8ab0be14b47566b366b7b266dd489d5441ad | add RecursiveDataStructuresStackOverflowTest | acple/ParsecSharp | UnitTest.ParsecSharp/StackOverflowTest.cs | UnitTest.ParsecSharp/StackOverflowTest.cs | #if !DEBUG
using System;
using System.Linq;
using ChainingAssertion;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using static ParsecSharp.Parser;
using static ParsecSharp.Text;
namespace UnitTest.ParsecSharp
{
[TestClass]
[TestCategory("SkipWhenLiveUnitTesting")]
public class StackOverflowTest
... | #if !DEBUG
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using static ParsecSharp.Parser;
namespace UnitTest.ParsecSharp
{
[TestClass]
[TestCategory("SkipWhenLiveUnitTesting")]
public class StackOverflowTest
{
[TestMethod]
public void SimpleRecursi... | mit | C# |
958a3d7798f1ceb5352bddbab4aab9d955c738c7 | Fix path of libinfo file | nikeee/HolzShots | src/patch-version.csx | src/patch-version.csx | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
const string git = "git";
const string gitArgs = "describe --tags --long";
var libInfoFile = @"HolzShots.Common\LibraryIn... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
const string git = "git";
const string gitArgs = "describe --tags --long";
var libInfoFile = @"src\HolzShots.Common\Libra... | agpl-3.0 | C# |
345e30f2f019f6fed9060ba681b1693845174450 | Add tooltips to the Settings asset | loicteixeira/gj-unity-api | Assets/Plugins/GameJolt/Scripts/API/Settings.cs | Assets/Plugins/GameJolt/Scripts/API/Settings.cs | using UnityEngine;
namespace GameJolt.API
{
[System.Serializable]
public class Settings : ScriptableObject {
[Header("Game")]
[Tooltip("The game ID. It can be found on the Game Jolt website under Dashboard > YOUR-GAME > Game API > API Settings.")]
public int gameID;
[Tooltip("The game Private Key. It can be... | using UnityEngine;
namespace GameJolt.API
{
[System.Serializable]
public class Settings : ScriptableObject {
[Header("Game")]
public int gameID;
public string privateKey;
[Header("Settings")]
public float timeout = 10f;
public bool autoPing = true;
public bool useCaching = true;
[Header("Debug")]
... | mit | C# |
c4dc4e80493d15382e5ccf99b7d2bef4ef62dedf | Fix CCLog compile error on Windows platforms. Windows gives an error while assigning Debug.WriteLine to a delegate where Xamarin is not as stringent. | zmaruo/CocosSharp,zmaruo/CocosSharp,haithemaraissia/CocosSharp,mono/CocosSharp,TukekeSoft/CocosSharp,MSylvia/CocosSharp,TukekeSoft/CocosSharp,haithemaraissia/CocosSharp,MSylvia/CocosSharp,mono/CocosSharp | src/platform/CCLog.cs | src/platform/CCLog.cs | /****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
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 ... | /****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
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 ... | mit | C# |
a85049ec558d79797ccf78448e628f04f2e9652c | Add checking for end of text | lzcd/LeanGoldfish | LeanGoldfish/IsCharacter.cs | LeanGoldfish/IsCharacter.cs | using System;
namespace LeanGoldfish
{
public class IsCharacter : ParsingUnit
{
private char character;
public IsCharacter(char character)
{
this.character = character;
}
internal override ParsingResult TryParse(string text, int position)
{
... | using System;
namespace LeanGoldfish
{
public class IsCharacter : ParsingUnit
{
private char character;
public IsCharacter(char character)
{
this.character = character;
}
internal override ParsingResult TryParse(string text, int position)
{
... | mit | C# |
3d7dae1f70cfe46550a3e437513f2cfc714ed582 | Initialize TypeNameMatcher with a collection of candidate types | appharbor/appharbor-cli | src/AppHarbor/TypeNameMatcher.cs | src/AppHarbor/TypeNameMatcher.cs | using System;
using System.Collections.Generic;
namespace AppHarbor
{
public class TypeNameMatcher
{
private readonly IEnumerable<Type> _candidateTypes;
public TypeNameMatcher(IEnumerable<Type> candidateTypes)
{
_candidateTypes = candidateTypes;
}
}
}
| namespace AppHarbor
{
public class TypeNameMatcher
{
}
}
| mit | C# |
8c7d905154fccb998d904ed426dd368f808f474c | use a queueingBasicConsumer so we can support timeouts | Pondidum/RabbitHarness,Pondidum/RabbitHarness | RabbitHarness/Extensions.cs | RabbitHarness/Extensions.cs | using System;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
namespace RabbitHarness
{
public static class Extensions
{
public static void Query<TResponse>(this ConnectionFactory factory, string queueName, object message, Action<Response... | using System;
using System.Text;
using Newtonsoft.Json;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
namespace RabbitHarness
{
public static class Extensions
{
public static void Query<TResponse>(this ConnectionFactory factory, string queueName, object message, Action<ResponseContext<TResponse>> callback)
... | lgpl-2.1 | C# |
1f10b62077b0aa9adad1d53f9e1261beddca233c | Change highlight.js style | stvnhrlnd/SH,stvnhrlnd/SH,stvnhrlnd/SH | SH.Site/Views/Master.cshtml | SH.Site/Views/Master.cshtml | @inherits UmbracoViewPage<IMaster>
@{
var website = Model.Ancestor<Website>();
var menuItems = website.Children<IMaster>();
}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@Model.SeoMetadata.Title</title>
<meta name="description" content="@Model.SeoMetadata.Description" />... | @inherits UmbracoViewPage<IMaster>
@{
var website = Model.Ancestor<Website>();
var menuItems = website.Children<IMaster>();
}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@Model.SeoMetadata.Title</title>
<meta name="description" content="@Model.SeoMetadata.Description" />... | mit | C# |
4af41e326baa9efa939b74a77936eda4da007ea3 | fix missing field | kerzyte/OWLib,overtools/OWLib | STULib/STUFieldAttribute.cs | STULib/STUFieldAttribute.cs | using System;
namespace STULib {
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class STUFieldAttribute : Attribute {
public bool ReferenceArray = false;
public bool ReferenceValue = false;
public object Verify = null;
public uint Chec... | using System;
namespace STULib {
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class STUFieldAttribute : Attribute {
public bool ReferenceArray = false;
public bool ReferenceValue = false;
public object Verify = null;
public uint Chec... | mit | C# |
6be31d1e6024628760e848206f0d3ab335969925 | Join up hardcoded lines in a Row | 12joan/hangman | row.cs | row.cs | using System;
namespace Hangman {
public class Row {
public Cell[] Cells;
public Row(Cell[] cells) {
Cells = cells;
}
public string Draw(int width) {
// return new String(' ', width - Text.Length) + Text;
return String.Join("\n", Lines());
}
public string[] Lines() {
... | using System;
namespace Hangman {
public class Row {
public Cell[] Cells;
public Row(Cell[] cells) {
Cells = cells;
}
public string Draw(int width) {
// return new String(' ', width - Text.Length) + Text;
return "I have many cells!";
}
}
}
| unlicense | C# |
c9ae0a7fa434a7266f33ca5281670b86842c2571 | Remove magic number. | scopely/msgpack-cli,scopely/msgpack-cli,undeadlabs/msgpack-cli,msgpack/msgpack-cli,modulexcite/msgpack-cli,msgpack/msgpack-cli,modulexcite/msgpack-cli,undeadlabs/msgpack-cli | cli/src/MsgPack/Serialization/DataMemberContract.cs | cli/src/MsgPack/Serialization/DataMemberContract.cs | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010 FUJIWARA, Yusuke
//
// 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... | #region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010 FUJIWARA, Yusuke
//
// 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... | apache-2.0 | C# |
1e50cb7767e58e9e2780ef25e7c0cde4c3ce9bbf | Remove redundant partial classes | cwensley/maccore,mono/maccore,jorik041/maccore | src/CoreImage/Enums.cs | src/CoreImage/Enums.cs | //
// Copyright 2011, 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 Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,... | //
// Copyright 2011, 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 Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,... | apache-2.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.