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 |
|---|---|---|---|---|---|---|---|---|
30737326b9783ece8d12dffe739cf3cb4bf7a0f6 | Allow profiling the builder in Farkle.Samples.Cli. | teo-tsirpanis/Farkle | sample/Farkle.Samples.Cli/Program.cs | sample/Farkle.Samples.Cli/Program.cs | // Copyright (c) 2019 Theodore Tsirpanis
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
using System;
using System.IO;
using static Farkle.Builder.DesigntimeFarkleBuild;
namespace Farkle.Samples.Cli
{
internal static class Program
{
private const int Ite... | // Copyright (c) 2019 Theodore Tsirpanis
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
using System;
using System.IO;
namespace Farkle.Samples.Cli
{
internal static class Program
{
private const int IterationCount = 1000;
private const string Js... | mit | C# |
ebbd0eac57db61c51a5fe237326c8c686690ee9b | Order by track id | csharpfritz/aspnetcore-app-workshop,jongalloway/aspnetcore-app-workshop,anurse/ConferencePlanner,anurse/ConferencePlanner,dotnet-presentations/aspnetcore-app-workshop,csharpfritz/aspnetcore-app-workshop,dotnet-presentations/aspnetcore-app-workshop,dotnet-presentations/aspnetcore-app-workshop,dotnet-presentations/aspnet... | src/FrontEnd/Pages/Index.cshtml.cs | src/FrontEnd/Pages/Index.cshtml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ConferenceDTO;
using FrontEnd.Services;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.Authorization;
namespace FrontEnd.Pages
{
public class IndexModel : PageModel
{
private r... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ConferenceDTO;
using FrontEnd.Services;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.Authorization;
namespace FrontEnd.Pages
{
public class IndexModel : PageModel
{
private r... | mit | C# |
4dbd4eced9803f4f969de04b04e26bda3fd087bf | Remove explicit path | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Views/Home/Index.cshtml | Anlab.Mvc/Views/Home/Index.cshtml | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Update posted: September 30, 2020<br /><br />
In response to the emergency need for the analysis of wine for smoke taint,
... | @{
ViewData["Title"] = "Home Page";
}
<div class="col-8">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Update posted: September 30, 2020<br /><br />
In response to the emergency need for the analysis of wine for smoke taint,
... | mit | C# |
f409645e2efaeb996d9d0c4767b4a3089247f138 | Change to DbFile model | iliantrifonov/SubtitleCommunitySystem,iliantrifonov/SubtitleCommunitySystem | SubtitleCommunitySystem/SubtitleCommunitySystem.Model/DbFile.cs | SubtitleCommunitySystem/SubtitleCommunitySystem.Model/DbFile.cs | namespace SubtitleCommunitySystem.Model
{
public class DbFile
{
public int Id { get; set; }
public byte[] Content { get; set; }
public string FileName { get; set; }
public string ContentType { get; set; }
}
}
| namespace SubtitleCommunitySystem.Model
{
public class DbFile
{
public int Id { get; set; }
public byte[] Content { get; set; }
public string FileName { get; set; }
public string ContentFile { get; set; }
}
}
| mit | C# |
10f6c98995a9a2ccd62f903e53cc4f1cfa2f6a43 | use EditorBrowsable to hide unnecessary property | acple/ParsecSharp | ParsecSharp/Core/Result/Failure.cs | ParsecSharp/Core/Result/Failure.cs | using System;
using System.ComponentModel;
namespace ParsecSharp
{
public abstract class Failure<TToken, T> : Result<TToken, T>
{
[EditorBrowsable(EditorBrowsableState.Never)]
public sealed override T Value => throw this.Exception;
public abstract IParsecState<TToken> State { get; }
... | using System;
namespace ParsecSharp
{
public abstract class Failure<TToken, T> : Result<TToken, T>
{
public sealed override T Value => throw this.Exception;
public abstract IParsecState<TToken> State { get; }
public virtual ParsecException Exception => new(this.ToString());
p... | mit | C# |
b4101d58ed2e28f20f6f657be21b32a8765c15af | Fix build break caused by BlobStorageTest not updated | studio-nine/Nine.Storage,yufeih/Nine.Storage | test/Server/BlobStorageTest.cs | test/Server/BlobStorageTest.cs | namespace Nine.Storage
{
using System;
using System.Collections.Generic;
using Xunit;
class BlobStorageTest : BlobStorageSpec<BlobStorageTest>
{
public override IEnumerable<ITestFactory<IBlobStorage>> GetData()
{
return new[]
{
new TestFactor... | namespace Nine.Storage
{
using System;
using System.Collections.Generic;
class BlobStorageTest : BlobStorageSpec<BlobStorageTest>
{
public override IEnumerable<Func<IBlobStorage>> GetData()
{
return new[]
{
new Func<IBlobStorage>(() => new BlobSt... | mit | C# |
b473c02003b3e0da2832d863d942d0720998aa15 | Clean up file | NuGetPackageExplorer/NuGetPackageExplorer,campersau/NuGetPackageExplorer,NuGetPackageExplorer/NuGetPackageExplorer | Core/Utility/DiagnosticsClient.cs | Core/Utility/DiagnosticsClient.cs | using System;
using System.Collections.Generic;
using System.Windows;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Extensibility;
using NuGetPe.Utility;
namespace NuGetPe
{
public static class DiagnosticsClient
{
private static TelemetryClient? _client;
public sta... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.E... | mit | C# |
b9b19952263cb45888d7a9b063b3541cf40a5955 | Revert FileListings.cs | robinrodricks/FluentFTP,robinrodricks/FluentFTP,robinrodricks/FluentFTP | FluentFTP/Helpers/FileListings.cs | FluentFTP/Helpers/FileListings.cs | namespace FluentFTP.Helpers {
/// <summary>
/// Extension methods related to FTP tasks
/// </summary>
internal static class FileListings {
/// <summary>
/// Checks if the given file exists in the given file listing.
/// Supports servers that return: 1) full paths, 2) only filenames, 3) full paths withou... | namespace FluentFTP.Helpers {
/// <summary>
/// Extension methods related to FTP tasks
/// </summary>
internal static class FileListings {
/// <summary>
/// Checks if the given file exists in the given file listing.
/// Supports servers that return: 1) full paths, 2) only filenames, 3) full paths withou... | mit | C# |
b57b6cead8f5ad04fab49ea0088a92761c1fa0e1 | Clean up unused lat/long coordinates in language tests. | jcheng31/DarkSkyApi,jcheng31/ForecastPCL | ForecastPCL.Test/LanguageTests.cs | ForecastPCL.Test/LanguageTests.cs | using System.Threading.Tasks;
namespace ForecastPCL.Test
{
using System;
using System.Configuration;
using ForecastIOPortable;
using NUnit.Framework;
[TestFixture]
public class LanguageTests
{
// These coordinates came from the Forecast API documentation,
// and should r... | using System.Threading.Tasks;
namespace ForecastPCL.Test
{
using System;
using System.Configuration;
using ForecastIOPortable;
using NUnit.Framework;
[TestFixture]
public class LanguageTests
{
// These coordinates came from the Forecast API documentation,
// and should r... | mit | C# |
1ffa81e8d3762ea0956de2ab0966939434103bbe | tweak formatting in targets | adamralph/liteguard,adamralph/liteguard | targets/Program.cs | targets/Program.cs | using System;
using System.Threading.Tasks;
using SimpleExec;
using static Bullseye.Targets;
using static SimpleExec.Command;
internal class Program
{
public static Task Main(string[] args)
{
Target("build", () => RunAsync("dotnet", "build --configuration Release --nologo --verbosity quiet"))... | using System;
using System.Threading.Tasks;
using SimpleExec;
using static Bullseye.Targets;
using static SimpleExec.Command;
internal class Program
{
public static Task Main(string[] args)
{
Target("build", () => RunAsync("dotnet", "build --configuration Release --nologo --verbosity quiet"))... | mit | C# |
1fadc6e5378aa7f7683450f03cb77c30ecb0faf7 | Use ConcurrentDictionary in CachingScriptMetadataResolver | OmniSharp/omnisharp-roslyn,OmniSharp/omnisharp-roslyn | src/OmniSharp.Script/CachingScriptMetadataResolver.cs | src/OmniSharp.Script/CachingScriptMetadataResolver.cs | using System.Collections.Concurrent;
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
namespace OmniSharp.Script
{
public class CachingScriptMetadataResolver : MetadataReferenceResolver
{
private readonly MetadataReferenceResolver _defaultReferenceResolver;
private static Conc... | using System.Collections.Generic;
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
namespace OmniSharp.Script
{
public class CachingScriptMetadataResolver : MetadataReferenceResolver
{
private readonly MetadataReferenceResolver _defaultReferenceResolver;
private static Diction... | mit | C# |
6b127bb5c7b3d1236aef9d665d7e24c989dc651b | Fix font | jamesmontemagno/nibbles | Nibbles.Shared/GameAppDelegate.cs | Nibbles.Shared/GameAppDelegate.cs | using System;
using CocosSharp;
using Nibbles.Shared.Layers;
using CocosDenshion;
namespace Nibbles.Shared
{
public class GameAppDelegate : CCApplicationDelegate
{
public const string MainFont = "fonts/Roboto-Light.ttf";
#if __ANDROID__
public static Android.App.Activity CurrentActivity { get; set; }
#endi... | using System;
using CocosSharp;
using Nibbles.Shared.Layers;
using CocosDenshion;
namespace Nibbles.Shared
{
public class GameAppDelegate : CCApplicationDelegate
{
public const string MainFont = "fonts/Roboto-Light.tff";
#if __ANDROID__
public static Android.App.Activity CurrentActivity { get; set; }
#endi... | mit | C# |
6debfc791153acfa4ff711d448477cec632405d1 | Remove using. | chromium/vs-chromium,chromium/vs-chromium,chromium/vs-chromium,chromium/vs-chromium | src/Server/FileSystemContents/IFileContentsFactory.cs | src/Server/FileSystemContents/IFileContentsFactory.cs | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
using VsChromium.Core.Files;
namespace VsChromium.Server.FileSystemContents {
public interface IFileContentsFactory {
FileContents ReadFil... | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
using System;
using VsChromium.Core.Files;
namespace VsChromium.Server.FileSystemContents {
public interface IFileContentsFactory {
FileC... | bsd-3-clause | C# |
d13ddca8f763833e9254f826d1600000e20bc5ea | Fix stackoverflow error caused by navigation property in Session model | meutley/ISTS | src/Api/DependencyInjectionConfiguration.cs | src/Api/DependencyInjectionConfiguration.cs | using Microsoft.Extensions.DependencyInjection;
using ISTS.Application.Rooms;
using ISTS.Application.Schedules;
using ISTS.Application.Studios;
using ISTS.Domain.Rooms;
using ISTS.Domain.Schedules;
using ISTS.Domain.Studios;
using ISTS.Infrastructure.Repository;
namespace ISTS.Api
{
public static class Dependency... | using Microsoft.Extensions.DependencyInjection;
using ISTS.Application.Rooms;
using ISTS.Application.Studios;
using ISTS.Domain.Rooms;
using ISTS.Domain.Studios;
using ISTS.Infrastructure.Repository;
namespace ISTS.Api
{
public static class DependencyInjectionConfiguration
{
public static void Configu... | mit | C# |
834404486d841a960b409a11bbc7e59743f02ce8 | Fix View References | PioneerCode/pioneer-blog,PioneerCode/pioneer-blog,PioneerCode/pioneer-blog,PioneerCode/pioneer-blog | src/Pioneer.Blog/Views/Account/Login.cshtml | src/Pioneer.Blog/Views/Account/Login.cshtml | @using Microsoft.AspNetCore.Identity
@using Pioneer.Blog.Entity
@model Pioneer.Blog.Model.Views.LoginViewModel
@inject SignInManager<UserEntity> SignInManager
@{
ViewData["Title"] = "Log in";
}
<div class="row">
<div class="large-8 large-push-2 columns">
<h2>@ViewData["Title"].</h2>
<form asp-controlle... | @using Microsoft.AspNetCore.Identity
@using Pioneer.Blog.DAL.Entites
@model Pioneer.Blog.Model.Views.LoginViewModel
@inject SignInManager<UserEntity> SignInManager
@{
ViewData["Title"] = "Log in";
}
<div class="row">
<div class="large-8 large-push-2 columns">
<h2>@ViewData["Title"].</h2>
<form asp-cont... | mit | C# |
93229a8c35fdbec67ed73dbbf37258e16d3468b9 | Simplify component factory with generics | mysticfall/Alensia | Assets/Editor/Alensia/Core/UI/ComponentFactory.cs | Assets/Editor/Alensia/Core/UI/ComponentFactory.cs | using System;
using UnityEditor;
using UnityEngine;
namespace Alensia.Core.UI
{
public static class ComponentFactory
{
[MenuItem("GameObject/UI/Alensia/Button", false, 10)]
public static Button CreateButton(MenuCommand command) => CreateComponent(command, Button.CreateInstance);
[MenuI... | using UnityEditor;
using UnityEngine;
namespace Alensia.Core.UI
{
public static class ComponentFactory
{
[MenuItem("GameObject/UI/Alensia/Button", false, 10)]
public static Button CreateButton(MenuCommand command)
{
var button = Button.CreateInstance();
GameObje... | apache-2.0 | C# |
5fbd0fe51b8c6be4d32afc67087e54d325fc0ce0 | Print currentPath in console | stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity,stoyanov7/SoftwareUniversity | C#Development/BashSoft/BashSoft/IO/InputReader.cs | C#Development/BashSoft/BashSoft/IO/InputReader.cs | namespace BashSoft.IO
{
using System;
using BashSoft.StaticData;
public static class InputReader
{
private const string QuitCommand = "quit";
private const string ExitCommand = "exit";
public static void StartReadingCommands()
{
OutputWriter.Wri... | namespace BashSoft.IO
{
using BashSoft.StaticData;
using System;
public static class InputReader
{
private const string quitCommand = "quit";
private const string exitCommand = "exit";
public static void StartReadingCommands()
{
OutputWriter.Wri... | mit | C# |
ff29118539d22d5067faac3ba73e84a3f5dfce59 | Modify the enode project assembly.cs file | Aaron-Liu/enode,tangxuehua/enode | src/ENode/Properties/AssemblyInfo.cs | src/ENode/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("EN... | 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("EN... | mit | C# |
324529bb18223fa97db994f451c787e8abc258fa | test bidisi | ziyasal/FluentBootstrapPolicy | FluentBootstrapPolicy.Tests/PolicyContextTests.cs | FluentBootstrapPolicy.Tests/PolicyContextTests.cs | using System;
using Autofac;
using Common.Testing.NUnit;
using NUnit.Framework;
namespace FluentBootstrapPolicy.Tests
{
public class PolicyContextTests : TestBase
{
private IPolicyContext _policyContext;
protected override void FinalizeSetUp()
{
_policyContext = PolicyCon... | using System;
using Autofac;
using Common.Testing.NUnit;
using NUnit.Framework;
namespace FluentBootstrapPolicy.Tests
{
public class PolicyContextTests : TestBase
{
private IPolicyContext _policyContext;
protected override void FinalizeSetUp()
{
var builder = new Container... | mit | C# |
14a554e411ae8c0baa7b052afd0bf65b71039060 | Improve Error message when use Asset name. | liarjo/MediaBlutlerTest01 | MediaButler.BaseProcess/Base/SelectAssetByStep.cs | MediaButler.BaseProcess/Base/SelectAssetByStep.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MediaButler.Common.workflow;
using System.Diagnostics;
using MediaButler.Common.ResourceAccess;
using MediaButler.Common;
using Microsoft.WindowsAzure.MediaServices.Client;
namespace MediaButler.B... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MediaButler.Common.workflow;
using System.Diagnostics;
using MediaButler.Common.ResourceAccess;
using MediaButler.Common;
using Microsoft.WindowsAzure.MediaServices.Client;
namespace MediaButler.B... | mit | C# |
5a6a011ef45e44c5f8663bf581505a1c7730a648 | Remove the non-active button from the jumbotron. | bigfont/sweet-water-revolver | mvcWebApp/Views/Home/_Jumbotron.cshtml | mvcWebApp/Views/Home/_Jumbotron.cshtml | <section class="container">
<div id="our-jumbotron" class="jumbotron">
<h1>Welcome!</h1>
<p>We are Sweet Water Revolver. This is our website. Please look around.</p>
</div>
</section>
| <section class="container">
<div id="our-jumbotron" class="jumbotron">
<h1>Welcome!</h1>
<p>We are Sweet Water Revolver. This is our website. Please look around and check out our...</p>
<p><a class="btn btn-primary btn-lg" role="button">... showtimes.</a></p>
</div>
</section>
| mit | C# |
009b973234c9923d66c5f2975b03cd5f19188bfd | Revert "Newline at end of file missing, added." | marceloyuela/google-cloud-powershell,GoogleCloudPlatform/google-cloud-powershell,marceloyuela/google-cloud-powershell,ILMTitan/google-cloud-powershell,marceloyuela/google-cloud-powershell,chrsmith/google-cloud-powershell | Google.PowerShell/Dns/GcdCmdlet.cs | Google.PowerShell/Dns/GcdCmdlet.cs |
// Copyright 2016 Google Inc. All Rights Reserved.
// Licensed under the Apache License Version 2.0.
using Google.Apis.Dns.v1;
using Google.PowerShell.Common;
namespace Google.PowerShell.Dns
{
/// <summary>
/// Base class for Google DNS-based cmdlets.
/// </summary>
public abstract class GcdCmdlet ... |
// Copyright 2016 Google Inc. All Rights Reserved.
// Licensed under the Apache License Version 2.0.
using Google.Apis.Dns.v1;
using Google.PowerShell.Common;
namespace Google.PowerShell.Dns
{
/// <summary>
/// Base class for Google DNS-based cmdlets.
/// </summary>
public abstract class GcdCmdlet ... | apache-2.0 | C# |
deb6c052bdfecb1dd1471650db5d35aa6801d64b | Fix build error in VS2015 | dgnorth/DriftUe4Plugin,dgnorth/DriftUe4Plugin,dgnorth/DriftUe4Plugin,dgnorth/DriftUe4Plugin | Plugins/Drift/Source/RapidJson/RapidJson.Build.cs | Plugins/Drift/Source/RapidJson/RapidJson.Build.cs | // Copyright 2015-2017 Directive Games Limited - All Rights Reserved
using UnrealBuildTool;
public class RapidJson : ModuleRules
{
public RapidJson(TargetInfo Target)
{
bFasterWithoutUnity = true;
PCHUsage = PCHUsageMode.NoSharedPCHs;
PublicIncludePaths.AddRange(
... | // Copyright 2015-2017 Directive Games Limited - All Rights Reserved
using UnrealBuildTool;
public class RapidJson : ModuleRules
{
public RapidJson(TargetInfo Target)
{
bFasterWithoutUnity = true;
PCHUsage = PCHUsageMode.NoSharedPCHs;
PublicIncludePaths.AddRange(
... | mit | C# |
5aee92f855a33912b6c30648e9517d1fde58917e | Add extension method for working out if an entry is deleted or not. | andrew-schofield/keepass2-haveibeenpwned | HaveIBeenPwned/PwEntryExtension.cs | HaveIBeenPwned/PwEntryExtension.cs | using KeePass.Plugins;
using KeePassLib;
using System;
using System.Linq;
namespace HaveIBeenPwned
{
public static class PwEntryExtension
{
public static DateTime GetPasswordLastModified(this PwEntry entry)
{
if(entry.History != null && entry.History.Any())
{
... | using KeePassLib;
using System;
using System.Linq;
namespace HaveIBeenPwned
{
public static class PwEntryExtension
{
public static DateTime GetPasswordLastModified(this PwEntry entry)
{
if(entry.History != null && entry.History.Any())
{
var sortedEntries... | mit | C# |
bc850d72037ccf5621d5edf462a87ada9d82c434 | Fix script location via AppDomain base dir for web applications | NServiceBusSqlPersistence/NServiceBus.SqlPersistence | src/SqlPersistence/ScriptLocation.cs | src/SqlPersistence/ScriptLocation.cs | using System;
using System.IO;
using System.Reflection;
using NServiceBus;
using NServiceBus.Settings;
static class ScriptLocation
{
const string ScriptFolder = "NServiceBus.Persistence.Sql";
public static string FindScriptDirectory(ReadOnlySettings settings)
{
var currentDirectory = GetCurrentDi... | using System;
using System.IO;
using System.Reflection;
using NServiceBus;
using NServiceBus.Settings;
static class ScriptLocation
{
public static string FindScriptDirectory(ReadOnlySettings settings)
{
var currentDirectory = GetCurrentDirectory(settings);
return Path.Combine(currentDirectory,... | mit | C# |
58bb3da43d484bbd5dda19e4d82072e42fc42758 | include databaseName in ConnectionStringInfo | dfaruque/Serenity,dfaruque/Serenity,WasimAhmad/Serenity,volkanceylan/Serenity,linpiero/Serenity,rolembergfilho/Serenity,linpiero/Serenity,WasimAhmad/Serenity,rolembergfilho/Serenity,dfaruque/Serenity,linpiero/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,rolembergfil... | Serenity.Data/Connections/ConnectionStringInfo.cs | Serenity.Data/Connections/ConnectionStringInfo.cs |
using System;
using System.Data.Common;
namespace Serenity.Data
{
public class ConnectionStringInfo
{
private string databaseName;
public ConnectionStringInfo(string connectionString, string providerName, DbProviderFactory providerFactory)
{
this.ConnectionStrin... |
using System;
using System.Data.Common;
namespace Serenity.Data
{
public class ConnectionStringInfo
{
public ConnectionStringInfo(string connectionString, string providerName, DbProviderFactory providerFactory)
{
this.ConnectionString = connectionString;
this.... | mit | C# |
213bd6f4540e9844fd9503c2635cd9a3f00ceb0b | Implement extracting the property name | Rhaeo/Rhaeo.Mvvm | Sources/Rhaeo.Mvvm/Rhaeo.Mvvm/ObservableObject.cs | Sources/Rhaeo.Mvvm/Rhaeo.Mvvm/ObservableObject.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ObservableObject.cs" company="Rhaeo">
// Licenced under the MIT licence.
// </copyright>
// <summary>
// Defines the ObservableObject type.
// </summary>
// ------------------... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rhaeo.Mvvm
{
public class ObservableObject
{
}
} | mit | C# |
4c4fbb26fb8223d572727771fc17f70c65a0a68c | Update PlexDirHelper.cs | cjmurph/PmsService,cjmurph/PmsService | PlexServiceCommon/PlexDirHelper.cs | PlexServiceCommon/PlexDirHelper.cs | using System;
using System.IO;
using Microsoft.Win32;
namespace PlexServiceCommon {
public static class PlexDirHelper {
/// <summary>
/// Returns the full path and filename of the plex media server executable
/// </summary>
/// <returns></returns>
public static string GetPlexDataDir()
{
var result = En... | using System;
using System.IO;
using Microsoft.Win32;
namespace PlexServiceCommon {
public static class PlexDirHelper {
/// <summary>
/// Returns the full path and filename of the plex media server executable
/// </summary>
/// <returns></returns>
public static string GetPlexDataDir()
{
var result = En... | mit | C# |
7692a31d4a329eaa0c6256b21307ab9a37f45041 | Build and print the trie | Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews,Gerula/interviews | ProgrammingPraxis/red_squiggles.cs | ProgrammingPraxis/red_squiggles.cs | // https://www.reddit.com/r/dailyprogrammer/comments/3n55f3/20150930_challenge_234_intermediate_red_squiggles/
//
// Your challenge today is to implement a real time spell checker and indicate where you would throw the red squiggle. For your dictionary use /usr/share/dict/words
//
using System;
using System.Collectio... | // https://www.reddit.com/r/dailyprogrammer/comments/3n55f3/20150930_challenge_234_intermediate_red_squiggles/
//
// Your challenge today is to implement a real time spell checker and indicate where you would throw the red squiggle. For your dictionary use /usr/share/dict/words
//
using System;
using System.Collectio... | mit | C# |
50c7d32ed796b7b60495caf1f4e719bac85272c3 | Bump to 1.4.1 | i3at/ArchiSteamFarm,JustArchi/ArchiSteamFarm,KlappPc/ArchiSteamFarm,blackpanther989/ArchiSteamFarm,JustArchi/ArchiSteamFarm,i3at/ArchiSteamFarm,KlappPc/ArchiSteamFarm,JustArchi/ArchiSteamFarm,blackpanther989/ArchiSteamFarm,KlappPc/ArchiSteamFarm,JustArchi/ArchiSteamFarm | ArchiSteamFarm/Properties/AssemblyInfo.cs | ArchiSteamFarm/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("Ar... | 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("Ar... | apache-2.0 | C# |
7b2e1a67bf41efb9deb6a18b0b8c613b811a24c7 | Check for missing logger config. | winnitron/WinnitronLauncher,winnitron/WinnitronLauncher | Assets/Scripts/System/LogOutputHandler.cs | Assets/Scripts/System/LogOutputHandler.cs | // https://github.com/CharmedMatter/UnityEngine_Log_to_Loggly
using UnityEngine;
using System.Collections;
public class LogOutputHandler : MonoBehaviour {
// Create a string to store log level in
string level = "";
// Register the HandleLog function on scene start to fire on debug.log events
public ... | // https://github.com/CharmedMatter/UnityEngine_Log_to_Loggly
using UnityEngine;
using System.Collections;
public class LogOutputHandler : MonoBehaviour {
// Create a string to store log level in
string level = "";
// Register the HandleLog function on scene start to fire on debug.log events
public ... | mit | C# |
699dc071ff11c9dabe5b3e8a45bc0f6f2e86f268 | Fix AssemblyInfo.cs | martijn00/MvvmCross-Plugins,lothrop/MvvmCross-Plugins,Didux/MvvmCross-Plugins,MatthewSannes/MvvmCross-Plugins | Cirrious/ThreadUtils/Cirrious.MvvmCross.Plugins.ThreadUtils.Wpf/Properties/AssemblyInfo.cs | Cirrious/ThreadUtils/Cirrious.MvvmCross.Plugins.ThreadUtils.Wpf/Properties/AssemblyInfo.cs | // AssemblyInfo.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 System.Reflection;
using System.Runtim... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | mit | C# |
7a3b5f051f02e2e0689df3232ffac5b76f6d986b | Make ThreadSafeObjectPool actually thread safe | AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia | src/Avalonia.Base/Threading/ThreadSafeObjectPool.cs | src/Avalonia.Base/Threading/ThreadSafeObjectPool.cs | using System.Collections.Generic;
namespace Avalonia.Threading
{
public class ThreadSafeObjectPool<T> where T : class, new()
{
private Stack<T> _stack = new Stack<T>();
public static ThreadSafeObjectPool<T> Default { get; } = new ThreadSafeObjectPool<T>();
public T Get()
{
... | using System.Collections.Generic;
namespace Avalonia.Threading
{
public class ThreadSafeObjectPool<T> where T : class, new()
{
private Stack<T> _stack = new Stack<T>();
private object _lock = new object();
public static ThreadSafeObjectPool<T> Default { get; } = new ThreadSafeObjectPool... | mit | C# |
5b14826071ca6a42e3fbd2e00f675bdd99271e7e | remove destination_path | mikymod/crown,taylor001/crown,mikymod/crown,mikymod/crown,galek/crown,galek/crown,taylor001/crown,taylor001/crown,dbartolini/crown,galek/crown,dbartolini/crown,galek/crown,dbartolini/crown,taylor001/crown,mikymod/crown,dbartolini/crown | tools/gui/starter/ProjectDialog.cs | tools/gui/starter/ProjectDialog.cs | using System;
using Gtk;
namespace starter
{
public partial class ProjectDialog : Gtk.Dialog
{
MainWindow win;
public ProjectDialog (MainWindow win)
{
this.Build ();
this.win = win;
}
protected void OnProjectDialogOkClicked (object sender, EventArgs e)
{
win.project_name = name_entry.Text;
... | using System;
using Gtk;
namespace starter
{
public partial class ProjectDialog : Gtk.Dialog
{
MainWindow win;
public ProjectDialog (MainWindow win)
{
this.Build ();
this.win = win;
}
protected void OnProjectDialogOkClicked (object sender, EventArgs e)
{
win.project_name = name_entry.Text;
... | mit | C# |
5a70a677c9f45489de8cf18cb4c6835b0db67e8d | Update InterfaceUrl.cs | rongcloud/server-sdk-dotnet,p3p3pp3/server-sdk-dotnet-async | RongCloudServerSDK/InterfaceUrl.cs | RongCloudServerSDK/InterfaceUrl.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace io.rong
{
class InterfaceUrl
{
public static String server_addr = "http://api.cn.ronghub.com";
public static String getTokenUrl = server_addr+"/user/getToken.json";
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace io.rong
{
class InterfaceUrl
{
public static String server_addr = "https://api.cn.ronghub.com";
public static String getTokenUrl = server_addr+"/user/getToken.json";
... | mit | C# |
e1cce88ae5d587b3bd625e4e812e66259b379a19 | Allow rotating the screen without crashing by overriding the Configuration changes. | ZLima12/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,ppy/osu-framework,DrabWeb/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-frame... | SampleGame.Android/MainActivity.cs | SampleGame.Android/MainActivity.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 Android.App;
using Android.OS;
using Android.Content.PM;
using Android.Views;
using System;
using Android.Runtime;
using Android.Content.Res;
namespace... | // 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 Android.App;
using Android.OS;
using Android.Content.PM;
using Android.Views;
namespace SampleGame.Android
{
[Activity(Label = "SampleGame", MainLa... | mit | C# |
c1f416b1ccb6cea656d90c128c120048d9619a81 | Add back missing rethrow | peppy/osu,ZLima12/osu,smoogipoo/osu,DrabWeb/osu,naoey/osu,peppy/osu,2yangk23/osu,naoey/osu,ZLima12/osu,smoogipoo/osu,peppy/osu,NeoAdonis/osu,naoey/osu,DrabWeb/osu,smoogipoo/osu,johnneijzen/osu,NeoAdonis/osu,ppy/osu,EVAST9919/osu,UselessToucan/osu,UselessToucan/osu,johnneijzen/osu,UselessToucan/osu,peppy/osu-new,DrabWeb... | osu.Game/Database/DatabaseWriteUsage.cs | osu.Game/Database/DatabaseWriteUsage.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;
namespace osu.Game.Database
{
public class DatabaseWriteUsage : IDisposable
{
public readonly OsuDbCont... | // 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;
namespace osu.Game.Database
{
public class DatabaseWriteUsage : IDisposable
{
public readonly OsuDbCont... | mit | C# |
c2cd9d22bc54aaa8771a66e21f5203a4494ca112 | add summary to IAbpPerRequestRedisCacheManager | aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,luchaoshuai/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,ryancyq/aspnetboilerplate,aspnetboilerplate/aspnetboilerplate,luchaoshuai/aspnetboilerplate | src/Abp.AspNetCore.PerRequestRedisCache/Runtime/Caching/Redis/IAbpPerRequestRedisCacheManager.cs | src/Abp.AspNetCore.PerRequestRedisCache/Runtime/Caching/Redis/IAbpPerRequestRedisCacheManager.cs | namespace Abp.Runtime.Caching.Redis
{
/// <summary>
/// An upper level container for <see cref="ICache"/> objects.
/// <para>
/// ICache objects requested from <see cref="IAbpPerRequestRedisCacheManager"/> stores redis caches per http context. And it does not try to pull it again from redis during the ... | namespace Abp.Runtime.Caching.Redis
{
public interface IAbpPerRequestRedisCacheManager : ICacheManager
{
}
} | mit | C# |
5b8caab38f39b4dea017ac8e918f4e29bcef0de8 | fix number parsing for decimal and scientific notations | maul-esel/CobaltAHK,maul-esel/CobaltAHK | CobaltAHK/Expressions/Literals.cs | CobaltAHK/Expressions/Literals.cs | using System.Collections.Generic;
using System.Globalization;
namespace CobaltAHK.Expressions
{
public abstract class ValueLiteralExpression : ValueExpression
{
protected ValueLiteralExpression(SourcePosition pos) : base(pos) { }
}
public class StringLiteralExpression : ValueLiteralExpression
{
public String... | using System.Collections.Generic;
using System.Globalization;
namespace CobaltAHK.Expressions
{
public abstract class ValueLiteralExpression : ValueExpression
{
protected ValueLiteralExpression(SourcePosition pos) : base(pos) { }
}
public class StringLiteralExpression : ValueLiteralExpression
{
public String... | mit | C# |
b856f4410297d81ebdca9888cbcf3fcb79f2588c | Fix #1268333 - Increase the selection handle size and tolerance. | PintaProject/Pinta,Mailaender/Pinta,PintaProject/Pinta,jakeclawson/Pinta,Fenex/Pinta,Mailaender/Pinta,jakeclawson/Pinta,PintaProject/Pinta,Fenex/Pinta | Pinta.Tools/Tools/ToolControl/ToolControl.cs | Pinta.Tools/Tools/ToolControl/ToolControl.cs | //
// ToolControl.cs
//
// Author:
// Olivier Dufour <olivier.duff@gmail.com>
//
// Copyright (c) 2011 Olivier Dufour
//
// 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 ... | //
// ToolControl.cs
//
// Author:
// Olivier Dufour <olivier.duff@gmail.com>
//
// Copyright (c) 2011 Olivier Dufour
//
// 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 ... | mit | C# |
67dcf4f9cf4402946162ce48a7f7fae50d11df1a | Remove Nts reference from Mapsui.Samples.iOS | charlenni/Mapsui,charlenni/Mapsui | Samples/Mapsui.Samples.iOS/ViewController.cs | Samples/Mapsui.Samples.iOS/ViewController.cs | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using Mapsui.UI.iOS;
using UIKit;
using CoreGraphics;
using Mapsui.UI;
using Mapsui.Samples.Common.Helpers;
using Mapsui.Samples.Common.Maps;
namespace Mapsui.Samples.iOS
{
public partial class ViewController : UIViewController
{
... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using Mapsui.UI.iOS;
using UIKit;
using CoreGraphics;
using Mapsui.UI;
using Mapsui.Samples.Common.Helpers;
using Mapsui.Samples.Common.Maps;
using Mapsui.Nts;
namespace Mapsui.Samples.iOS
{
public partial class ViewController : UIViewCon... | mit | C# |
739d6a52cce9cbc07698e51137218ad09a28a746 | fix namespace | RapidScada/scada,RapidScada/scada,RapidScada/scada,RapidScada/scada | ScadaComm/ScadaComm/ScadaCommMono/Program.cs | ScadaComm/ScadaComm/ScadaCommMono/Program.cs | /*
* Copyright 2015 Mikhail Shiryaev
*
* 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 a... | /*
* Copyright 2015 Mikhail Shiryaev
*
* 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 a... | apache-2.0 | C# |
733aed7afbdaff5c79b226f73c8b9ecb71fdeb97 | Fix #24: Only subscribe to Invalid URI messages once | IrvingtonProgramming/InteractApp,IrvingtonProgramming/InteractApp,IrvingtonProgramming/InteractApp | InteractApp/EventInfoPage.xaml.cs | InteractApp/EventInfoPage.xaml.cs | using Xamarin.Forms;
using Android.Support.Design.Widget;
using Java.Security.Cert;
namespace InteractApp
{
public partial class EventInfoPage : ContentPage
{
private static bool _subscribed = false;
readonly EventInfoPageViewModel _viewModel;
public EventInfoPageViewModel ViewModel {
get {
return _v... | using Xamarin.Forms;
namespace InteractApp
{
public partial class EventInfoPage : ContentPage
{
readonly EventInfoPageViewModel _viewModel;
public EventInfoPageViewModel ViewModel {
get {
return _viewModel;
}
}
public EventInfoPage (Event evt)
{
InitializeComponent ();
_viewModel = new ... | mit | C# |
a100f1a5fd7a220d0ac82389dd6582f1e046b642 | Add a Stop method to timeout. Maybe it should be renamed though, since you cant restart it. | jacksonh/manos,mdavid/manos-spdy,mdavid/manos-spdy,jacksonh/manos,jacksonh/manos,jmptrader/manos,jacksonh/manos,jmptrader/manos,jacksonh/manos,jacksonh/manos,jacksonh/manos,mdavid/manos-spdy,mdavid/manos-spdy,jmptrader/manos,jmptrader/manos,mdavid/manos-spdy,jmptrader/manos,mdavid/manos-spdy,jmptrader/manos,jmptrader/m... | src/Manos/Manos/Timeout.cs | src/Manos/Manos/Timeout.cs | //
// Copyright (C) 2010 Jackson Harper (jackson@manosdemono.com)
//
// 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,... | //
// Copyright (C) 2010 Jackson Harper (jackson@manosdemono.com)
//
// 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,... | mit | C# |
23c145a03a68a06f5fcd529b9c9411f6098b9abd | Work on robot software - #13 | henkmollema/MindstormR,henkmollema/MindstormR,henkmollema/MindstormR | src/MindstormR.EV3/Main.cs | src/MindstormR.EV3/Main.cs | using System;
using System.Diagnostics;
using MonoBrickFirmware;
using MonoBrickFirmware.Display.Dialogs;
using MonoBrickFirmware.Display;
using MonoBrickFirmware.Movement;
using System.Threading;
using System.Net;
namespace MonoBrickHelloWorld
{
class MainClass
{
private static int _id;
publ... | using System;
using MonoBrickFirmware;
using MonoBrickFirmware.Display.Dialogs;
using MonoBrickFirmware.Display;
using MonoBrickFirmware.Movement;
using System.Threading;
using System.Net;
namespace MonoBrickHelloWorld
{
class MainClass
{
private static int _id;
public static void Main(string... | mit | C# |
f48e1d8ec163e8dc786100a0d842c36010510c7b | Increment version before creating release (0.2.5). | VictorZakharov/pinwin | PinWin/Properties/AssemblyInfo.cs | PinWin/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("Pi... | 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("Pi... | mit | C# |
ae82631a265aae3351a74b65c006d7acdcc3202a | Add StringParameterClone test | TheBerkin/Rant | Rant.Tests/Expressions/Strings.cs | Rant.Tests/Expressions/Strings.cs | using NUnit.Framework;
namespace Rant.Tests.Expressions
{
[TestFixture]
public class Strings
{
private readonly RantEngine rant = new RantEngine();
[Test]
[TestCase("test", Result = "test")]
[TestCase("<noun>", Result = "<noun>")]
public string RegularStrings(string value)
{
return rant.Do($"[@ \"{... | using NUnit.Framework;
namespace Rant.Tests.Expressions
{
[TestFixture]
public class Strings
{
private readonly RantEngine rant = new RantEngine();
[Test]
[TestCase("test", Result = "test")]
[TestCase("<noun>", Result = "<noun>")]
public string RegularStrings(string value)
{
return rant.Do($"[@ \"{... | mit | C# |
b1543b53a0b4fd7278541f9374092d93c86f36a8 | Remove unused constant | Brightspace/D2L.Security.OAuth2 | D2L.Security.OAuth2/Validation/D2L.Security.RequestAuthentication.Tests/Utilities/TestUris.cs | D2L.Security.OAuth2/Validation/D2L.Security.RequestAuthentication.Tests/Utilities/TestUris.cs | using System;
namespace D2L.Security.RequestAuthentication.Tests.Utilities {
internal static class TestUris {
private static readonly Uri AUTH_SERVER_SITE = new Uri( "https://phwinsl01.proddev.d2l:44333" );
internal static readonly Uri TOKEN_VERIFICATION_AUTHORITY_URI = new Uri( AUTH_SERVER_SITE, "core/... | using System;
namespace D2L.Security.RequestAuthentication.Tests.Utilities {
internal static class TestUris {
private static readonly Uri AUTH_SERVER_SITE = new Uri( "https://phwinsl01.proddev.d2l:44333" );
internal static readonly Uri TOKEN_VERIFICATION_AUTHORITY_URI = new Uri( AUTH_SERVER_SITE, "core/... | apache-2.0 | C# |
b3d947086bc0ed56928ce9e57ceee46a53547957 | 修改FileUtils.GetSizeDisplayName的参数类型到long | zkweb-framework/ZKWeb,zkweb-framework/ZKWeb,zkweb-framework/ZKWeb,303248153/ZKWeb,zkweb-framework/ZKWeb,zkweb-framework/ZKWeb,zkweb-framework/ZKWeb | ZKWeb.Utils/Functions/FileUtils.cs | ZKWeb.Utils/Functions/FileUtils.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ZKWeb.Utils.Functions {
/// <summary>
/// 文件工具类
/// </summary>
public static class FileUtils {
/// <summary>
/// 获取字节大小的显示名称
/// 自动转换成KB、MB或GB格式
/// </summary>
///... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ZKWeb.Utils.Functions {
/// <summary>
/// 文件工具类
/// </summary>
public static class FileUtils {
/// <summary>
/// 获取字节大小的显示名称
/// 自动转换成KB、MB或GB格式
/// </summary>
///... | mit | C# |
5f139e62a25e2c3304b2b2869a6dcf70acb33e52 | Fix animation | atompacman/ConfitureCreative | Assets/Script/AnimationScript.cs | Assets/Script/AnimationScript.cs | using UnityEngine;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine.UI;
using System.IO;
public class AnimationScript : MonoBehaviour {
const int lastFrame = 21;
const int loopFrame = 12;
const float frameInterval = 0.3f;
List<Texture> frameImages = new List<Texture>();
pr... | using UnityEngine;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine.UI;
using System.IO;
public class AnimationScript : MonoBehaviour {
const int lastFrame = 25;
const int loopFrame = 16;
const float frameInterval = 0.3f;
List<Texture> frameImages = new List<Texture>();
pr... | mit | C# |
4be287a8bbc742bb4b0758adb32a7be78bd6a09c | Write the autolink's URL so we can see the autolink. | Kryptos-FR/markdig.wpf,Kryptos-FR/markdig-wpf | src/Markdig.Wpf/Renderers/Wpf/Inlines/AutoLinkInlineRenderer.cs | src/Markdig.Wpf/Renderers/Wpf/Inlines/AutoLinkInlineRenderer.cs | // Copyright (c) 2016-2017 Nicolas Musset. All rights reserved.
// This file is licensed under the MIT license.
// See the LICENSE.md file in the project root for more information.
using System;
using System.Windows.Documents;
using Markdig.Annotations;
using Markdig.Syntax.Inlines;
using Markdig.Wpf;
namespace Markd... | // Copyright (c) 2016-2017 Nicolas Musset. All rights reserved.
// This file is licensed under the MIT license.
// See the LICENSE.md file in the project root for more information.
using System;
using System.Windows.Documents;
using Markdig.Annotations;
using Markdig.Syntax.Inlines;
using Markdig.Wpf;
namespace Markd... | mit | C# |
d381494ef083440506f85fb542d363497b3e723a | Use MvcJsonOptions json serializer formatting when generating swagger.json | domaindrivendev/Swashbuckle.AspNetCore,domaindrivendev/Swashbuckle.AspNetCore,domaindrivendev/Ahoy,oconics/Ahoy,domaindrivendev/Ahoy,domaindrivendev/Swashbuckle.AspNetCore,oconics/Ahoy,domaindrivendev/Ahoy | src/Swashbuckle.Swagger/Application/SwaggerSerializerFactory.cs | src/Swashbuckle.Swagger/Application/SwaggerSerializerFactory.cs | using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
namespace Swashbuckle.Swagger.Application
{
public class SwaggerSerializerFactory
{
internal static JsonSerializer Create(IOptions<MvcJsonOptions> mvcJsonOptions)
{
// TODO: Should this handl... | using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
namespace Swashbuckle.Swagger.Application
{
public class SwaggerSerializerFactory
{
internal static JsonSerializer Create(IOptions<MvcJsonOptions> mvcJsonOptions)
{
// TODO: Should this handl... | mit | C# |
72c8417bdf9bdc9e4ddb610b028e32d4664f3ed9 | Fix type | scho/gameoflife | GameOfLife/Model/GameInitializer.cs | GameOfLife/Model/GameInitializer.cs | using System.Collections.Generic;
using System.Linq;
namespace GameOfLife.Model
{
public class GameInitializer
{
private IList<IList<Cell>> field;
private readonly bool[][] initialState;
public GameInitializer(bool[][] initialState)
{
this.initialState ... | using System.Collections.Generic;
using System.Linq;
namespace GameOfLife.Model
{
public class GameInitializer
{
private IList<IList<Cell>> field;
private readonly bool[][] initialState;
public GameInitializer(bool[][] initialState)
{
this.initialState ... | mit | C# |
e7a5e30aad18487885aa5d0d6c75772a9b9bfc46 | Enforce CLS compliance. | eggrobin/Principia,eggrobin/Principia,Norgg/Principia,Norgg/Principia,mockingbirdnest/Principia,pleroy/Principia,pleroy/Principia,mockingbirdnest/Principia,mockingbirdnest/Principia,pleroy/Principia,Norgg/Principia,eggrobin/Principia,Norgg/Principia,mockingbirdnest/Principia,pleroy/Principia | Geometry/Properties/AssemblyInfo.cs | Geometry/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("Geo... | 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("Ge... | mit | C# |
e0f0d102bbbd40400965cca6e37bdd72b4eadecb | Disable Raven's Embedded HTTP server | alastairs/cgowebsite,alastairs/cgowebsite | src/CGO.Web/NinjectModules/RavenModule.cs | src/CGO.Web/NinjectModules/RavenModule.cs | using Ninject;
using Ninject.Modules;
using Ninject.Web.Common;
using Raven.Client;
using Raven.Client.Embedded;
namespace CGO.Web.NinjectModules
{
public class RavenModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<IDocumentStore>().ToMethod(_ => InitialiseDocume... | using Ninject;
using Ninject.Modules;
using Ninject.Web.Common;
using Raven.Client;
using Raven.Client.Embedded;
namespace CGO.Web.NinjectModules
{
public class RavenModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<IDocumentStore>().ToMethod(_ => InitialiseDocume... | mit | C# |
529673cb22089b3bf90822c8f4a378ca90f75f6f | 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# |
e94d04f9196e3bdec9226bcfb89571249f62b6f3 | Add newer algorithms to the AssemblyHashAlgorithm enum. (#656) | mono/cecil,jbevain/cecil,fnajera-rac-de/cecil | Mono.Cecil/AssemblyHashAlgorithm.cs | Mono.Cecil/AssemblyHashAlgorithm.cs | //
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2015 Jb Evain
// Copyright (c) 2008 - 2011 Novell, Inc.
//
// Licensed under the MIT/X11 license.
//
namespace Mono.Cecil {
public enum AssemblyHashAlgorithm : uint {
None = 0x0000,
MD5 = 0x8003,
SHA1 = 0x8004,
SHA256 = 0x800C,
... | //
// Author:
// Jb Evain (jbevain@gmail.com)
//
// Copyright (c) 2008 - 2015 Jb Evain
// Copyright (c) 2008 - 2011 Novell, Inc.
//
// Licensed under the MIT/X11 license.
//
namespace Mono.Cecil {
public enum AssemblyHashAlgorithm : uint {
None = 0x0000,
Reserved = 0x8003, // MD5
SHA1 = 0x8004
}
}
| mit | C# |
649c65bee4cfc17ec7d527ed322bd6b02054819d | Update StatInfo.cs - fixed variable type to match database entity | NinjaVault/NinjaHive,NinjaVault/NinjaHive | NinjaHive.Contract/DTOs/StatInfo.cs | NinjaHive.Contract/DTOs/StatInfo.cs | using System;
using System.ComponentModel.DataAnnotations;
using NinjaHive.Core.Validations;
namespace NinjaHive.Contract.DTOs
{
public class StatInfo
{
[NonEmptyGuid]
public Guid Id { get; set; }
public int Health { get; set; }
public int Magic { get; set; }
public in... | using System;
using System.ComponentModel.DataAnnotations;
using NinjaHive.Core.Validations;
namespace NinjaHive.Contract.DTOs
{
public class StatInfo
{
[NonEmptyGuid]
public Guid Id { get; set; }
public int Health { get; set; }
public int Magic { get; set; }
public in... | apache-2.0 | C# |
456cf86841e05b3bfb74be04bcc6128791edd0ef | Read serial port in separate thread | paasovaara/nes-zapper,paasovaara/nes-zapper | Unity/zapper-shooter/Assets/Scripts/ArduinoListener.cs | Unity/zapper-shooter/Assets/Scripts/ArduinoListener.cs | using UnityEngine;
using System.Collections;
using System.IO.Ports;
using System.Threading;
/**
* For System.IO.Ports namespace you need to enable .Net 2.0 instead of .Net 2.0 subset (which is default).
*
* You can find this setting from "Edit > project settings > player"
* */
public enum ComPort {
COM3,
... | using UnityEngine;
using System.Collections;
using System.IO.Ports;
/**
* For System.IO.Ports namespace you need to enable .Net 2.0 instead of .Net 2.0 subset (which is default).
*
* You can find this setting from "Edit > project settings > player"
* */
public enum ComPort {
COM3,
COM4
}
public class A... | mit | C# |
bc54d8e810d0e564ea3a7b0db644ab0d1ca67f32 | make ctrl+g general navigation key | kbilsted/KeyboordUsage | code/Configuration/UserStates/UserStateStandardConfiguraion.cs | code/Configuration/UserStates/UserStateStandardConfiguraion.cs | using System;
using System.Collections.Generic;
using System.Windows.Forms;
using KeyboordUsage.Configuration.Keyboard;
namespace KeyboordUsage.Configuration.UserStates
{
class UserStateStandardConfiguraion
{
private readonly CommandLineArgs commandLineArgs;
public UserStateStandardConfiguraion(Comma... | using System;
using System.Collections.Generic;
using System.Windows.Forms;
using KeyboordUsage.Configuration.Keyboard;
namespace KeyboordUsage.Configuration.UserStates
{
class UserStateStandardConfiguraion
{
private readonly CommandLineArgs commandLineArgs;
public UserStateStandardConfiguraion(Comma... | apache-2.0 | C# |
80441df8d5ffef18d8472501a645e36a819cfe6f | set working directory | stwalkerster/eyeinthesky,stwalkerster/eyeinthesky,stwalkerster/eyeinthesky | EyeInTheSky/Commands/Version.cs | EyeInTheSky/Commands/Version.cs | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
namespace EyeInTheSky.Commands
{
class Version : GenericCommand
{
public Version()
{
this.requiredAccessLevel = User.UserRights.... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
namespace EyeInTheSky.Commands
{
class Version : GenericCommand
{
public Version()
{
this.requiredAccessLevel = User.UserRights.... | mit | C# |
9b94131d14ffbb304c977f728e6a2b21f2802124 | add property to gameobject | TeamLeoTolstoy/Leo | Game/StopTheBunny/GameObject.cs | Game/StopTheBunny/GameObject.cs | namespace StopTheBunny
{
public abstract class GameObject
{
public UpperLeftPoint UpperLeftPoint { get; set; }
public abstract char Sign { get; set; }
public abstract Color Color { get; set; }
}
}
| namespace StopTheBunny
{
public abstract class GameObject
{
protected int posiotionX;
protected int positionY;
public int PositionX
{
get { return this.posiotionX; }
set
{
if (value<0 || value>)
{
... | mit | C# |
3d05bd4cbfceb211fa8c5c0b8e69b0a68519fb9a | Change signature | yskatsumata/resharper-workshop,gorohoroh/resharper-workshop,gorohoroh/resharper-workshop,JetBrains/resharper-workshop,gorohoroh/resharper-workshop,JetBrains/resharper-workshop,yskatsumata/resharper-workshop,yskatsumata/resharper-workshop,JetBrains/resharper-workshop | 04-Refactoring/05-Change_signature.cs | 04-Refactoring/05-Change_signature.cs | namespace JetBrains.ReSharper.Koans.Refactoring
{
// Change Signature
//
// Update a method signature, adding, removing or reordering parameters
//
// Ctrl+R, S (VS)
// Ctrl+F6 (IntelliJ)
public class ChangeSignature
{
// 1. Change method signature
// Place text care... | namespace Refactoring
{
public class Change_signature
{
}
} | apache-2.0 | C# |
2b3afdd6cb112a498eec3e86af510252fc63cc41 | Update Pantheon.cs | metaphorce/leaguesharp | MetaSmite/Champions/Pantheon.cs | MetaSmite/Champions/Pantheon.cs | using System;
using LeagueSharp;
using LeagueSharp.Common;
using SharpDX;
namespace MetaSmite.Champions
{
public static class Pantheon
{
internal static Spell champSpell;
private static Menu Config = MetaSmite.Config;
private static double totalDamage;
private static double spe... | using System;
using LeagueSharp;
using LeagueSharp.Common;
using SharpDX;
namespace MetaSmite.Champions
{
public static class Pantheon
{
internal static Spell champSpell;
private static Menu Config = MetaSmite.Config;
private static double totalDamage;
private static double spe... | mit | C# |
86fedfa945ada920fade2663e8f30123f3e4a099 | Make ListBoxItem focusable thus selectable. | jkoritzinsky/Perspex,susloparovdenis/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,MrDaedra/Avalonia,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,susloparovdenis/Perspex,grokys/Perspex,sagamors/Perspex,susloparovdenis/Perspex,ncarrillo/Perspex,MrDaedra/Avalonia,wieslawsoltes/Perspex,bbqchickenrobot/Perspex,Avalon... | Perspex.Controls/ListBoxItem.cs | Perspex.Controls/ListBoxItem.cs | // -----------------------------------------------------------------------
// <copyright file="ListBoxItem.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Control... | // -----------------------------------------------------------------------
// <copyright file="ListBoxItem.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Control... | mit | C# |
48a5e57f5efd66fc9c204a5722584d84f2d188b5 | Fix Uninstall-Package failing to find package. | mrward/monodevelop-nuget-extensions,mrward/monodevelop-nuget-extensions | src/MonoDevelop.PackageManagement.Cmdlets/MonoDevelop.PackageManagement.Cmdlets/UninstallPackageCmdlet.cs | src/MonoDevelop.PackageManagement.Cmdlets/MonoDevelop.PackageManagement.Cmdlets/UninstallPackageCmdlet.cs | //
// UninstallPackageCmdlet.cs
//
// Author:
// Matt Ward <ward.matt@gmail.com>
//
// Copyright (C) 2011-2014 Matthew Ward
//
// 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 withou... | //
// UninstallPackageCmdlet.cs
//
// Author:
// Matt Ward <ward.matt@gmail.com>
//
// Copyright (C) 2011-2014 Matthew Ward
//
// 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 withou... | mit | C# |
d719aa4de393c6f8644b75f6e675ac986d9edc5c | Test Commit | TanmayDharmaraj/Hack-The-Algo | TheLoveLetterMystery/Program.cs | TheLoveLetterMystery/Program.cs | using System;
using System.Linq;
using System.Text;
namespace TheLoveLetterMystery
{
class Program
{
static void Main(string[] args)
{
int testCases = Convert.ToInt32(Console.ReadLine());
int[] output = new int[testCases];
int count = 0;
for (int... | using System;
using System.Linq;
using System.Text;
namespace TheLoveLetterMystery
{
class Program
{
static void Main(string[] args)
{
int testCases = Convert.ToInt32(Console.ReadLine());
int[] output = new int[testCases];
int count = 0;
for (int... | mit | C# |
b207594a6c954506e5d745ca492907c30638bfb0 | Update View convention to recognize MainWindow | distantcam/Pirac | src/Pirac/Conventions/ViewConvention.cs | src/Pirac/Conventions/ViewConvention.cs | using System;
using Conventional.Conventions;
namespace Pirac.Conventions
{
internal class ViewConvention : Convention
{
public ViewConvention()
{
Must.Pass(t => t.IsClass && (t.Name.EndsWith("View") || t.Name == "MainWindow"), "Name ends with View or is named MainWindow");
... | using Conventional.Conventions;
namespace Pirac.Conventions
{
internal class ViewConvention : Convention
{
public ViewConvention()
{
Must.HaveNameEndWith("View").BeAClass();
Should.BeAConcreteClass();
BaseName = t => t.Name.Substring(0, t.Name.Length - 4);... | mit | C# |
9383954d1658b31721eb510df5f2b54fa367014f | fix track description struct name encoding issue | xue-blood/wpfVlc,marcomeyer/Vlc.DotNet,thephez/Vlc.DotNet,jeremyVignelles/Vlc.DotNet,marcomeyer/Vlc.DotNet,xue-blood/wpfVlc,ZeBobo5/Vlc.DotNet,thephez/Vlc.DotNet | src/Vlc.DotNet.Core/TrackDescription.cs | src/Vlc.DotNet.Core/TrackDescription.cs | using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using Vlc.DotNet.Core.Interops.Signatures;
namespace Vlc.DotNet.Core
{
public sealed class TrackDescription
{
public int ID { get; private set; }
public string Name { get; private set; }
... | using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Vlc.DotNet.Core.Interops.Signatures;
namespace Vlc.DotNet.Core
{
public sealed class TrackDescription
{
public int ID { get; private set; }
public string Name { get; private set; }
internal Tra... | mit | C# |
ea61116b28b576ba502cd3ebd38646656d33b7c2 | Update BrianBunke.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/BrianBunke.cs | src/Firehose.Web/Authors/BrianBunke.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 BrianBunke : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Brian";
... | 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 BrianBunke : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Brian";
... | mit | C# |
5eb24f09cf7f04037cee14b837dc9187fb1ead8d | Make subscribe a bit more sync | northspb/RawRabbit,pardahlman/RawRabbit | src/RawRabbit/Operations/Subscriber.cs | src/RawRabbit/Operations/Subscriber.cs | using System;
using System.Threading.Tasks;
using RawRabbit.Common;
using RawRabbit.Configuration.Subscribe;
using RawRabbit.Consumer.Contract;
using RawRabbit.Context;
using RawRabbit.Context.Enhancer;
using RawRabbit.Context.Provider;
using RawRabbit.Logging;
using RawRabbit.Operations.Contracts;
using RawRabbit.Ser... | using System;
using System.Threading.Tasks;
using RawRabbit.Common;
using RawRabbit.Configuration.Subscribe;
using RawRabbit.Consumer.Contract;
using RawRabbit.Context;
using RawRabbit.Context.Enhancer;
using RawRabbit.Context.Provider;
using RawRabbit.Logging;
using RawRabbit.Operations.Contracts;
using RawRabbit.Ser... | mit | C# |
6f98c94b7f28b4021ebea040dccaef6a265e2293 | Remove unused import | takenet/elephant | src/Take.Elephant.Sql/SqlExtensions.cs | src/Take.Elephant.Sql/SqlExtensions.cs | using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using Take.Elephant.Sql.Mapping;
namespace Take.Elephant.Sql
{
public static class SqlExtensions
{
/// <summary>
/// Transform to a flat string with comma separate values.
/// </summary>
... | using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Text.RegularExpressions;
using Take.Elephant.Sql.Mapping;
namespace Take.Elephant.Sql
{
public static class SqlExtensions
{
/// <summary>
/// Transform to a flat string with comma sep... | apache-2.0 | C# |
85830fbd4588ab8c4ea82efcb40ba65c5d6491d8 | Fix task delay | proyecto26/Xamarin | src/android/App/App/Utilities/Azure.cs | src/android/App/App/Utilities/Azure.cs | using Microsoft.WindowsAzure.MobileServices;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Moq;
using Newtonsoft.Json.Linq;
using System.Threading;
namespace App.Utilities
{
public class ServiceHelper
{
private IMobileServiceTable<User> _userTable;
//MobileServiceClient client = ne... | using Microsoft.WindowsAzure.MobileServices;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Moq;
using Newtonsoft.Json.Linq;
using System.Threading;
namespace App.Utilities
{
public class ServiceHelper
{
private IMobileServiceTable<User> _userTable;
//MobileServiceClient client = ne... | mit | C# |
c764e459af72f1d6319b7bf3ea669db12bc12cdd | Rename variable | appharbor/appharbor-cli | src/AppHarbor/Commands/CreateCommand.cs | src/AppHarbor/Commands/CreateCommand.cs | using System;
using System.Linq;
namespace AppHarbor.Commands
{
public class CreateCommand : ICommand
{
private readonly IAppHarborClient _appHarborClient;
private readonly ApplicationConfiguration _applicationConfiguration;
public CreateCommand(IAppHarborClient appHarborClient, ApplicationConfiguration appl... | using System;
using System.Linq;
namespace AppHarbor.Commands
{
public class CreateCommand : ICommand
{
private readonly IAppHarborClient _appHarborClient;
private readonly ApplicationConfiguration _applicationConfiguration;
public CreateCommand(IAppHarborClient appHarborClient, ApplicationConfiguration appl... | mit | C# |
809fc29bb7947355d3af1e1c421d230a59c0b2c4 | Handle null _value | tmeschter/roslyn,mmitche/roslyn,panopticoncentral/roslyn,DustinCampbell/roslyn,dpoeschl/roslyn,sharwell/roslyn,VSadov/roslyn,dotnet/roslyn,MattWindsor91/roslyn,khyperia/roslyn,Giftednewt/roslyn,paulvanbrenk/roslyn,mgoertz-msft/roslyn,heejaechang/roslyn,MattWindsor91/roslyn,eriawan/roslyn,abock/roslyn,eriawan/roslyn,dir... | src/Compilers/Core/Portable/Optional.cs | src/Compilers/Core/Portable/Optional.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;
namespace Microsoft.CodeAnalysis
{
/// <summary>
/// Combines a value, <see cref="Value"/>, and a flag, <see cref="HasValue"/>,
/... | // 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;
namespace Microsoft.CodeAnalysis
{
/// <summary>
/// Combines a value, <see cref="Value"/>, and a flag, <see cref="HasValue"/>,
/... | mit | C# |
64810a8aee2c73eebe27c59a78730fa31218a7e0 | update console logger, removes coloring from all except error logging | tsolarin/dotnet-globals,tsolarin/dotnet-globals | src/DotNet.Globals.Cli/ConsoleLogger.cs | src/DotNet.Globals.Cli/ConsoleLogger.cs | namespace DotNet.Globals.Cli
{
using System;
using DotNet.Globals.Core.Logging;
class ConsoleLogger : ILogger
{
private void Log(string data) => Console.WriteLine(data);
public void LogSuccess(string data) => Log($"LOG: {data}");
public void LogError(string data)
{
... | namespace DotNet.Globals.Cli
{
using System;
using DotNet.Globals.Core.Logging;
class ConsoleLogger : ILogger
{
private void Log(string data)
{
Console.WriteLine(data);
}
public void LogSuccess(string data)
{
Console.ForegroundColor = Con... | mit | C# |
ded606b306d7e046df14964c68021157c7dbe0f4 | Fix Overlap detection | ektrah/nsec | src/Cryptography/Utilities.cs | src/Cryptography/Utilities.cs | using System;
using System.Runtime.CompilerServices;
namespace NSec.Cryptography
{
internal static class Utilities
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe bool Overlap(
ReadOnlySpan<byte> first,
ReadOnlySpan<byte> second)
{
... | using System;
using System.Runtime.CompilerServices;
namespace NSec.Cryptography
{
internal static class Utilities
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe bool Overlap(
ReadOnlySpan<byte> first,
ReadOnlySpan<byte> second)
{
... | mit | C# |
b620ce7ff8552fc8d09b35acfa0acb891e17a653 | Change version to 0.3 | kornelijepetak/incident-cs | IncidentCS/Properties/AssemblyInfo.cs | IncidentCS/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Incident CS")]
[assembly: AssemblyDescription("A world of everything random")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("IncidentCS")]... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Incident CS")]
[assembly: AssemblyDescription("A world of everything random")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("IncidentCS")]... | mit | C# |
f2494a0983dbb70e68f6332b7d5eb9d079ac47ec | Update AssemblyInfo.cs | Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal,Appleseed/portal | Master/Appleseed/Projects/Appleseed.Framework.Providers.AppleseedMembershipProvider/Properties/AssemblyInfo.cs | Master/Appleseed/Projects/Appleseed.Framework.Providers.AppleseedMembershipProvider/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( "A... | 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( "A... | apache-2.0 | C# |
663c2e327c88d0839dd7ebd683318b956ca7b5be | Add nofollow to API example links | ShamsulAmry/Malaysia-GST-Checker | Amry.Gst.Web/Views/Home/Api.cshtml | Amry.Gst.Web/Views/Home/Api.cshtml | @{
ViewBag.Title = "Malaysia GST Checker - Developer API";
ViewBag.PageTag = PageTag.Api;
}
<div class="row">
<div class="col-md-offset-2 col-md-8 col-sm-offset-2 col-sm-8">
<h1>API for Developers</h1>
<div class="panel panel-primary">
<div class="panel-heading">
... | @{
ViewBag.Title = "Malaysia GST Checker - Developer API";
ViewBag.PageTag = PageTag.Api;
}
<div class="row">
<div class="col-md-offset-2 col-md-8 col-sm-offset-2 col-sm-8">
<h1>API for Developers</h1>
<div class="panel panel-primary">
<div class="panel-heading">
... | mit | C# |
dcae587c89f2838561b98a0b3f49cf2c892e485d | Handle SocketException in UT | PNSolutions/MegaApiClient,gpailler/MegaApiClient | MegaApiClient.Tests/PollyWebClient.cs | MegaApiClient.Tests/PollyWebClient.cs | using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using Polly;
namespace CG.Web.MegaApiClient.Tests
{
internal class PollyWebClient : IWebClient
{
private readonly IWebClient _webClient;
private readonly Policy _policy;
public PollyWebClient(IWebC... | using System;
using System.IO;
using System.Net;
using Polly;
namespace CG.Web.MegaApiClient.Tests
{
internal class PollyWebClient : IWebClient
{
private readonly IWebClient _webClient;
private readonly Policy _policy;
public PollyWebClient(IWebClient webClient, int maxRet... | mit | C# |
35910f7c58afa2ddfc7c62551003ade407afc2e0 | Add Title to Notification object | ucdavis/Badges,ucdavis/Badges | Badges.Core/Domain/Notification.cs | Badges.Core/Domain/Notification.cs | using System;
using FluentNHibernate.Mapping;
namespace Badges.Core.Domain
{
public class Notification : DomainObjectGuid
{
public virtual User To { get; set; }
public virtual bool Pending { get; set; }
public virtual DateTime Created { get; set; }
public virtual ... | using System;
using FluentNHibernate.Mapping;
namespace Badges.Core.Domain
{
public class Notification : DomainObjectGuid
{
public virtual User To { get; set; }
public virtual bool Pending { get; set; }
public virtual DateTime Created { get; set; }
public virtual ... | mpl-2.0 | C# |
b0319dd872a3ab3ef0b3e4d8f6cb6fdb364ba843 | Increase test coverage. | gustavofrizzo/BinInfo | BinInfoUnitTest/BinInfoUnitTest.cs | BinInfoUnitTest/BinInfoUnitTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BinInfo;
namespace BinInfoUnitTest
{
[TestClass]
public class BinInfoUnitTest
{
[TestMethod]
public void Find_BinListTest()
{
IssuerInformation info = BinList.Find("431940");
Assert.Are... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BinInfo;
namespace BinInfoUnitTest
{
[TestClass]
public class BinInfoUnitTest
{
[TestMethod]
public void Find_BinListTest()
{
IssuerInformation info = BinList.Find("431940");
Assert.Are... | mit | C# |
db1c0b83ab014a70549d1f3a5f0a17674f21136d | Change reference to DependencyInjection.IServiceCollection | acastaner/acastaner.fr-mvc6,acastaner/acastaner.fr-mvc6 | src/acastaner_mvc6/Startup.cs | src/acastaner_mvc6/Startup.cs | using System;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.Framework.DependencyInjection;
namespace acastaner_mvc6
{
public class Startup
{
public void ConfigureServices(Microsoft.Framework.DependencyInjection.IServiceCollection services)
{
services.AddMvc();... | using System;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.Framework.DependencyInjection;
namespace acastaner_mvc6
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
}
public void Configur... | mit | C# |
10c20edee1427615d04447b2ffa7cd9fb0cd58b9 | Install NuGet as a tool | mitchelsellers/Dnn.Platform,mitchelsellers/Dnn.Platform,valadas/Dnn.Platform,mitchelsellers/Dnn.Platform,bdukes/Dnn.Platform,valadas/Dnn.Platform,dnnsoftware/Dnn.Platform,nvisionative/Dnn.Platform,mitchelsellers/Dnn.Platform,valadas/Dnn.Platform,dnnsoftware/Dnn.Platform,nvisionative/Dnn.Platform,dnnsoftware/Dnn.Platfor... | Build/Program.cs | Build/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using Cake.Core;
using Cake.Core.Configuration;
using Cake.Frosting;
using Cake.NuGet;
public class Program : IFrostingStartup
{
public static int Main(string[] args)
{
// Create the host.
var host = new CakeHostBuil... | using System;
using System.Collections.Generic;
using System.IO;
using Cake.Core;
using Cake.Core.Configuration;
using Cake.Frosting;
using Cake.NuGet;
public class Program : IFrostingStartup
{
public static int Main(string[] args)
{
// Create the host.
var host = new CakeHostBuil... | mit | C# |
065b1ef0b93ac98967b087de62cde0206ba4d586 | Create Status.UNC. | AIWolfSharp/AIWolf_NET,AIWolfSharp/AIWolfCore | AIWolfLib/Status.cs | AIWolfLib/Status.cs | //
// Status.cs
//
// Copyright (c) 2016 Takashi OTSUKI
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
namespace AIWolf.Lib
{
#if JHELP
/// <summary>
/// プレイヤーの生死
/// </summary>
#else
/// <summary>
/// Enumeration type for player's statu... | //
// Status.cs
//
// Copyright (c) 2016 Takashi OTSUKI
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
namespace AIWolf.Lib
{
#if JHELP
/// <summary>
/// プレイヤーの生死
/// </summary>
#else
/// <summary>
/// Enumeration type for player's statu... | mit | C# |
9a61cf08ecc25d9bb0b5e52e98335d047f05cb00 | Include <see> tag in UIActionForm description. | PenguinF/sandra-three | Sandra.UI/AppTemplate/UIActionForm.cs | Sandra.UI/AppTemplate/UIActionForm.cs | #region License
/*********************************************************************************
* UIActionForm.cs
*
* Copyright (c) 2004-2019 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | #region License
/*********************************************************************************
* UIActionForm.cs
*
* Copyright (c) 2004-2019 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | apache-2.0 | C# |
f2fdca6d267121e0e7ae42f6d47fca325c84896a | Make BiggestKillScore signed | glitch100/Halo-API | HaloEzAPI/Model/Response/Stats/CampaignPlayerStat.cs | HaloEzAPI/Model/Response/Stats/CampaignPlayerStat.cs | using HaloEzAPI.Converter;
using Newtonsoft.Json;
namespace HaloEzAPI.Model.Response.Stats
{
public class CampaignPlayerStat : PlayerMatchBreakdown
{
public int BiggestKillScore { get; set; }
public FlexibleStats FlexibleStats { get; set; }
[JsonConverter(typeof(ScoreConverter))]
... | using HaloEzAPI.Converter;
using Newtonsoft.Json;
namespace HaloEzAPI.Model.Response.Stats
{
public class CampaignPlayerStat : PlayerMatchBreakdown
{
public uint BiggestKillScore { get; set; }
public FlexibleStats FlexibleStats { get; set; }
[JsonConverter(typeof(ScoreConverter))]
... | mit | C# |
784cec48fad09535dd2202c9cbf4a388612ba23d | Move DataFolder config get to static member initializer | AnshulYADAV007/Lean,AlexCatarino/Lean,jameschch/Lean,AnshulYADAV007/Lean,kaffeebrauer/Lean,desimonk/Lean,wowgeeker/Lean,exhau/Lean,bizcad/LeanAbhi,rchien/Lean,dalebrubaker/Lean,bizcad/LeanITrend,Phoenix1271/Lean,tzaavi/Lean,Mendelone/forex_trading,mabeale/Lean,devalkeralia/Lean,bizcad/LeanJJN,andrewhart098/Lean,QuantCo... | Common/Constants.cs | Common/Constants.cs | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ... | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ... | apache-2.0 | C# |
4931eaa1aa4b42e30123d2f34ce8c787a38b468f | fix string in test | ResourceDataInc/Simpler.Data,ResourceDataInc/Simpler.Data,gregoryjscott/Simpler,gregoryjscott/Simpler,ResourceDataInc/Simpler.Data | Simpler.Tests/Core/Tasks/CreateJobTest.cs | Simpler.Tests/Core/Tasks/CreateJobTest.cs | using NUnit.Framework;
using Simpler.Core.Jobs;
using Simpler.Tests.Core.Mocks;
namespace Simpler.Tests.Core.Jobs
{
[TestFixture]
public class CreateJobTest
{
[Test]
public void should_just_provide_instance_if_given_type_is_not_decorated_with_execution_callbacks_attribute()
{
... | using NUnit.Framework;
using Simpler.Core.Jobs;
using Simpler.Tests.Core.Mocks;
namespace Simpler.Tests.Core.Jobs
{
[TestFixture]
public class CreateJobTest
{
[Test]
public void should_just_provide_instance_if_given_type_is_not_decorated_with_execution_callbacks_attribute()
{
... | mit | C# |
4fd42ccc71a0bfa63a48475130b2081c0be89bef | mark ILightSource as IAether element | tainicom/Aether | Source/Elementary/Photons/ILightSource.cs | Source/Elementary/Photons/ILightSource.cs | #region License
// Copyright 2015 Kastellanos Nikolaos
//
// 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 requi... | #region License
// Copyright 2015 Kastellanos Nikolaos
//
// 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 requi... | apache-2.0 | C# |
4afafc9784a6ef8c60634fcf68c864c69fdf6285 | Use a path for storage that doesn't include version and company name | zr40/kyru-dotnet,zr40/kyru-dotnet | Kyru/Core/Config.cs | Kyru/Core/Config.cs | using System;
using System.IO;
namespace Kyru.Core
{
internal sealed class Config
{
internal string storeDirectory;
internal Config()
{
storeDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Kyru", "objects");
}
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace Kyru.Core
{
class Config
{
internal readonly string storeDirectory;
internal Config() {
storeDirectory = Path.Combine(System.Windows.Forms.Application.User... | bsd-3-clause | C# |
1bb695c09d16f52b76bcd87f0b778bcf60da91a7 | change [RestService] paths to Routes.Add | ServiceStack/ServiceStack.Examples,ServiceStack/ServiceStack.Examples,zhaokunfay/ServiceStack.Examples,zhaokunfay/ServiceStack.Examples,assaframan/MoviesRestForAppHarbor,zhaokunfay/ServiceStack.Examples,zhaokunfay/ServiceStack.Examples,assaframan/MoviesRestForAppHarbor,ServiceStack/ServiceStack.Examples,ServiceStack/Se... | src/Backbone.Todos/Global.asax.cs | src/Backbone.Todos/Global.asax.cs | using System;
using ServiceStack.Redis;
using ServiceStack.ServiceInterface;
using ServiceStack.WebHost.Endpoints;
//The entire C# source code for the ServiceStack + Redis TODO REST backend. There is no other .cs :)
namespace Backbone.Todos
{
//Register REST Paths
public class Todo //REST Resource DTO
{
public l... | using System;
using ServiceStack.Redis;
using ServiceStack.ServiceInterface;
using ServiceStack.WebHost.Endpoints;
using ServiceStack.ServiceHost;
//The entire C# source code for the ServiceStack + Redis TODO REST backend. There is no other .cs :)
namespace Backbone.Todos
{
//Register REST Paths
[RestService("/todo... | bsd-3-clause | C# |
f49376ccf38bc24923b67c654c2ecfb3931d11b5 | add error test | j2ghz/IntranetGJAK,j2ghz/IntranetGJAK | UnitTests/Class1.cs | UnitTests/Class1.cs | using IntranetGJAK.Controllers;
using Microsoft.AspNet.Mvc;
using Xunit;
namespace UnitTests
{
// This project can output the Class library as a NuGet Package.
// To enable this option, right-click on the project and select the Properties menu item. In the Build tab select "Produce outputs on build".
publ... | using IntranetGJAK.Controllers;
using Xunit;
namespace UnitTests
{
// This project can output the Class library as a NuGet Package.
// To enable this option, right-click on the project and select the Properties menu item. In the Build tab select "Produce outputs on build".
public class Home
{
... | agpl-3.0 | C# |
5cc8ab4d9c1fb82d31c981bf54023a24fbc35b08 | Update the static content module to fit the new API. | jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,mdavid/manos-spdy,mdavid/manos-spdy,jmptrader/manos,jacksonh/manos,jmptrader/manos,jmptrader/manos,mdavid/manos-spdy,jacksonh/manos,jmptrader/manos,jmptrader/manos,jacksonh/manos,jacksonh/manos,jmptrader/manos,jacksonh/manos,jmptrader/manos,jacksonh/manos,jacksonh/manos,... | data/mango-tool/layouts/default/StaticContentModule.cs | data/mango-tool/layouts/default/StaticContentModule.cs |
using System;
using System.IO;
using Mango;
//
// This the default StaticContentModule that comes with all Mango apps
// if you do not wish to serve any static content with Mango you can
// remove its route handler from <YourApp>.cs's constructor and delete
// this file.
//
// All Content placed on the Conten... |
using System;
using System.IO;
using Mango;
//
// This the default StaticContentModule that comes with all Mango apps
// if you do not wish to serve any static content with Mango you can
// remove its route handler from <YourApp>.cs's constructor and delete
// this file.
//
// All Content placed on the Conten... | mit | C# |
e24ffd611b8c4f0bd266d974db5a7879eba38158 | Fix default category for new addins | mhutch/MonoDevelop.AddinMaker,mhutch/MonoDevelop.AddinMaker | Templates/Properties/AddinInfo.cs | Templates/Properties/AddinInfo.cs | using System;
using Mono.Addins;
using Mono.Addins.Description;
[assembly:Addin (
"${ProjectName}",
Namespace = "${ProjectName}",
Version = "1.0"
)]
[assembly:AddinName ("${ProjectName}")]
[assembly:AddinCategory ("IDE extensions")]
[assembly:AddinDescription ("${ProjectName}")]
[assembly:AddinAuthor ("${AuthorN... | using System;
using Mono.Addins;
using Mono.Addins.Description;
[assembly:Addin (
"${ProjectName}",
Namespace = "${ProjectName}",
Version = "1.0"
)]
[assembly:AddinName ("${ProjectName}")]
[assembly:AddinCategory ("${ProjectName}")]
[assembly:AddinDescription ("${ProjectName}")]
[assembly:AddinAuthor ("${AuthorN... | mit | C# |
ffd8f9f8ccaaf3cd5fdb420ba85f48af1e680d1e | Bump version | McNeight/SharpZipLib | src/AssemblyInfo.cs | src/AssemblyInfo.cs | // AssemblyInfo.cs
//
// Copyright (C) 2001 Mike Krueger
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// Th... | // AssemblyInfo.cs
//
// Copyright (C) 2001 Mike Krueger
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// Th... | mit | C# |
fafb76821c11f2213afce115c039cd19ec14991b | Fix Collapse | CyberCRI/Hero.Coli,CyberCRI/Hero.Coli | Assets/BioBricksCollapse.cs | Assets/BioBricksCollapse.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class BioBricksCollapse : MonoBehaviour {
[SerializeField]
private Transform[] _bricksTransform;
private float _distanceBetweenMiddleBricks;
private float _distanceBetweenSideBricksL;
private float _distanceBetw... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class BioBricksCollapse : MonoBehaviour {
[SerializeField]
private Transform[] _bricksTransform;
private float _distanceBetweenMiddleBricks;
private float _distanceBetweenSideBricksL;
private float _distanceBetw... | mit | C# |
aca52f77adbe04de50d6ea2466b974d7e4edf2eb | update lexeme comments | bilsaboob/Pliant,patrickhuber/Pliant | libraries/Pliant/Lexeme.cs | libraries/Pliant/Lexeme.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pliant
{
/// <summary>
/// A Lexeme is something special. It acts like a token and a mini parser.
/// </summary>
public class Lexeme
{
private StringBu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pliant
{
/// <summary>
/// A Lexeme is something special. It is not a production.
/// </summary>
public class Lexeme
{
private StringBuilder _catpure;
... | mit | C# |
1bb45a91188d99b206c56fb7c2c3039fc2bfb3b4 | Fix UserConfig creating a directory instead of a file | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck | Configuration/UserConfig.cs | Configuration/UserConfig.cs | using System;
using System.Drawing;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
namespace TweetDick.Configuration{
[Serializable]
sealed class UserConfig{
private static readonly IFormatter Formatter = new BinaryFormatter();
// ST... | using System;
using System.Drawing;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
namespace TweetDick.Configuration{
[Serializable]
sealed class UserConfig{
private static readonly IFormatter Formatter = new BinaryFormatter();
// ST... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.