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 |
|---|---|---|---|---|---|---|---|---|
e8f59ea23323f1d735bb63e68bdf7979ab8cc0ec | add type 35 to cRequestContract | neowutran/OpcodeSearcher | DamageMeter.Core/Heuristic/C_REQUEST_CONTRACT.cs | DamageMeter.Core/Heuristic/C_REQUEST_CONTRACT.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tera.Game.Messages;
namespace DamageMeter.Heuristic
{
class C_REQUEST_CONTRACT : AbstractPacketHeuristic
{
public new void Process(ParsedMessage message)
{
base... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tera.Game.Messages;
namespace DamageMeter.Heuristic
{
class C_REQUEST_CONTRACT : AbstractPacketHeuristic
{
public new void Process(ParsedMessage message)
{
base... | mit | C# |
4bb5d649db2cd70637491f683d1aae4587de45b5 | Fix extract zip. | DatabaseApp-Team-Linnaeus/DatabasesApp,DatabaseApp-Team-Linnaeus/DatabasesApp | SupermarketsChain/SupermarketsChain.Importers.Excel/Program.cs | SupermarketsChain/SupermarketsChain.Importers.Excel/Program.cs | namespace SupermarketsChain.Importers.ZipExcel
{
using System;
using System.IO;
using System.IO.Compression;
using System.Data.OleDb;
using System.Data;
internal class Program
{
private static void Main(string[] args)
{
string zipPath = @".\reports";... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.IO.Compression;
using System.Data.OleDb;
using SupermarketsChain.Models;
using Microsoft.Office.Core;
using Excel = Microsoft.Office.Interop.Excel;
using System.D... | mit | C# |
e6a6401c3a5766cb1e90764aeeafd275ee13ad0b | Move test. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Tests/UnitTests/Hwi/SerialDefaultResponseTests.cs | WalletWasabi.Tests/UnitTests/Hwi/SerialDefaultResponseTests.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Hwi.ProcessBridge;
using WalletWasabi.Microservices;
using Xunit;
namespace WalletWasabi.Tests.UnitTests.Hwi
{
/// <summary>
/// The test in this collection is time-sensitive, therefore this test collection is run in a special way... | using System;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Hwi.ProcessBridge;
using Xunit;
namespace WalletWasabi.Tests.UnitTests.Hwi
{
/// <summary>
/// The test in this collection is time-sensitive, therefore this test collection is run in a special way:
/// Parallel-capable test colle... | mit | C# |
df931e11580a7ad02346d1d0911000a17de26f4f | Update version for merge | cognisant/cr-message-dispatch | src/dispatchers.eventstore/Properties/AssemblyInfo.cs | src/dispatchers.eventstore/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: AssemblyTit... | 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... | bsd-3-clause | C# |
4a656a1aa5a3c3e57c773cdd01179bfaaf09a673 | Disable useUserOverride in CultureContext | shyamnamboodiripad/roslyn,shyamnamboodiripad/roslyn,CyrusNajmabadi/roslyn,weltkante/roslyn,AdamSpeight2008/roslyn-AdamSpeight2008,jasonmalinowski/roslyn,shyamnamboodiripad/roslyn,cston/roslyn,heejaechang/roslyn,jamesqo/roslyn,CaptainHayashi/roslyn,abock/roslyn,physhi/roslyn,Giftednewt/roslyn,aelij/roslyn,brettfo/roslyn... | src/Test/Utilities/Portable/CultureContext.cs | src/Test/Utilities/Portable/CultureContext.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.Globalization;
using System.Threading;
namespace Roslyn.Test.Utilities
{
public class CultureContext : IDisposable
{
... | // 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.Globalization;
using System.Threading;
namespace Roslyn.Test.Utilities
{
public class CultureContext : IDisposable
{
... | mit | C# |
6c4bf1fef555d60426176a104cfaa2859db6d2e5 | Use Path.Combine instead of Windows-specific directory separators | joelverhagen/TorSharp | TorSharp/Tools/Tor/TorConfigurationDictionary.cs | TorSharp/Tools/Tor/TorConfigurationDictionary.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace Knapcode.TorSharp.Tools.Tor
{
public class TorConfigurationDictionary : IConfigurationDictionary
{
private readonly string _torDirectoryPath;
public TorConfigurationDictionary(string torDire... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace Knapcode.TorSharp.Tools.Tor
{
public class TorConfigurationDictionary : IConfigurationDictionary
{
private readonly string _torDirectoryPath;
public TorConfigurationDictionary(string torDire... | mit | C# |
3f07f77ee6a0d3f95953095a8d53eefeaf8a6f1b | update vi script | dncuug/dot-net.in.ua,dncuug/dot-net.in.ua,dncuug/dot-net.in.ua | src/WebSite/Views/Shared/_SmartContent.cshtml | src/WebSite/Views/Shared/_SmartContent.cshtml | <div class="in-feed-ad">
<script type="text/javascript">
(function (v,i){
var source = 'https://test-mobile.viewster.com/ad-unit/source.js',
config = {
ChannelID: '59c4d02d28a06117d405b228',
AdUnitType: '2',
PublisherID:... | <div class="in-feed-ad">
<script type="text/javascript">
(function (v,i){
var source = 'https://s.vi-serve.com/source.js',
config = {
ChannelID: '59c4d02d28a06117d405b228',
AdUnitType: '2',
PublisherID: '225216805684543'... | mit | C# |
8c1cc5ec08de143e5404e95c67ee60b0c013cee9 | Remove unused using statements. | KuduApps/NuGetGallery,KuduApps/NuGetGallery,KuduApps/NuGetGallery,grenade/NuGetGallery_download-count-patch,skbkontur/NuGetGallery,mtian/SiteExtensionGallery,projectkudu/SiteExtensionGallery,projectkudu/SiteExtensionGallery,mtian/SiteExtensionGallery,JetBrains/ReSharperGallery,ScottShingler/NuGetGallery,skbkontur/NuGet... | Website/DataServices/ODataRemoveVersionSorter.cs | Website/DataServices/ODataRemoveVersionSorter.cs | using System;
using System.Linq;
using System.Linq.Expressions;
namespace NuGetGallery
{
public class ODataRemoveVersionSorter : ExpressionVisitor
{
protected override Expression VisitMethodCall(MethodCallExpression node)
{
if (IsSortingOnVersion(node))
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
namespace NuGetGallery
{
public class ODataRemoveVersionSorter : ExpressionVisitor
{
protected override Expression VisitMethodCall(MethodCallExpression node)
{
if (Is... | apache-2.0 | C# |
da058197c737072bf9ff6c591eda9027e4652f27 | Remove useless field in ProgramSource | derekforeman/Wox,renzhn/Wox,mika76/Wox,dstiert/Wox,Wox-launcher/Wox,EmuxEvans/Wox,AlexCaranha/Wox,qianlifeng/Wox,gnowxilef/Wox,Launchify/Launchify,kdar/Wox,mika76/Wox,kdar/Wox,JohnTheGr8/Wox,18098924759/Wox,apprentice3d/Wox,qianlifeng/Wox,Launchify/Launchify,lances101/Wox,kayone/Wox,jondaniels/Wox,qianlifeng/Wox,dstier... | Wox.Infrastructure/UserSettings/ProgramSource.cs | Wox.Infrastructure/UserSettings/ProgramSource.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Infrastructure.UserSettings
{
[Serializable]
public class ProgramSource
{
public string Location { get; set; }
public string Type { get; set; }
public int BounsPoints { get; set; }
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Infrastructure.UserSettings
{
[Serializable]
public class ProgramSource
{
public string Location { get; set; }
public string Assembly { get; set; }
public string Type { get; set; }
... | mit | C# |
e357754973b2afa1aa09c80fb87b57106bfed509 | Update the conneg koans. | panesofglass/WebApiKoans | Koans/AboutContentNegotiation.cs | Koans/AboutContentNegotiation.cs | using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Web.Http;
using FSharpKoans.Core;
namespace Koans
{
/**
* Lesson 5: About Content Negotiation
*
* As noted in the last section, Web API provides an abstraction to run
* content negotiation base... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FSharpKoans.Core;
namespace Koans
{
/**
* Lesson 5: About Content Negotiation
*
* As noted in the last section, Web API provides an abstraction to run
* conte... | apache-2.0 | C# |
fe932f35cc29125102c8467b554d9dd0a102fed9 | Add TransferProgress.DebuggerDisplay | whoisj/libgit2sharp,rcorre/libgit2sharp,GeertvanHorrik/libgit2sharp,jeffhostetler/public_libgit2sharp,jorgeamado/libgit2sharp,PKRoma/libgit2sharp,dlsteuer/libgit2sharp,Skybladev2/libgit2sharp,vivekpradhanC/libgit2sharp,sushihangover/libgit2sharp,GeertvanHorrik/libgit2sharp,ethomson/libgit2sharp,shana/libgit2sharp,AArno... | LibGit2Sharp/TransferProgress.cs | LibGit2Sharp/TransferProgress.cs | using System.Diagnostics;
using System.Globalization;
using LibGit2Sharp.Core;
namespace LibGit2Sharp
{
/// <summary>
/// Expose progress values from a fetch operation.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class TransferProgress
{
private GitTransferProgress ... | using LibGit2Sharp.Core;
namespace LibGit2Sharp
{
/// <summary>
/// Expose progress values from a fetch operation.
/// </summary>
public class TransferProgress
{
private GitTransferProgress gitTransferProgress;
/// <summary>
/// Empty constructor.
/// </summary>
... | mit | C# |
f3ee9930bdf7712025ed5694ad09dbb32bbbefb8 | Use static factory method for constructing Results class | pawotter/mastodon-api-cs | Mastodon.API/Entities/Results.cs | Mastodon.API/Entities/Results.cs | using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Mastodon.API
{
/// <summary>
/// Results.
/// https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#results
/// </summary>
public class Results
{
[JsonProperty(... | using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Mastodon.API
{
/// <summary>
/// Results.
/// https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#results
/// </summary>
public class Results
{
[JsonProperty(... | mit | C# |
a49b48103466b64f811bf3056111e7199330a130 | Enable named parameters on DB2CoreDriver (#2546) | RogerKratz/nhibernate-core,ngbrown/nhibernate-core,gliljas/nhibernate-core,RogerKratz/nhibernate-core,RogerKratz/nhibernate-core,nhibernate/nhibernate-core,hazzik/nhibernate-core,RogerKratz/nhibernate-core,fredericDelaporte/nhibernate-core,gliljas/nhibernate-core,ngbrown/nhibernate-core,hazzik/nhibernate-core,fredericD... | src/NHibernate/Driver/DB2CoreDriver.cs | src/NHibernate/Driver/DB2CoreDriver.cs | using System.Data.Common;
using NHibernate.SqlTypes;
namespace NHibernate.Driver
{
/// <summary>
/// A NHibernate Driver for using the IBM.Data.DB2.Core DataProvider.
/// </summary>
public class DB2CoreDriver : DB2DriverBase
{
public DB2CoreDriver() : base("IBM.Data.DB2.Core")
{
}
public override boo... | namespace NHibernate.Driver
{
/// <summary>
/// A NHibernate Driver for using the IBM.Data.DB2.Core DataProvider.
/// </summary>
public class DB2CoreDriver : DB2DriverBase
{
public DB2CoreDriver() : base("IBM.Data.DB2.Core")
{
}
}
}
| lgpl-2.1 | C# |
faf1e81d87d976a40253702f1bdd1e3c415de133 | clean up | tainicom/Aether | Source/Core/Visual/PointLight.cs | Source/Core/Visual/PointLight.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# |
6ab1678aea05e5fd15787e83d4504f94df840435 | Add nullability for helper extensions | MrRoundRobin/telegram.bot | src/Telegram.Bot/Helpers/Extensions.cs | src/Telegram.Bot/Helpers/Extensions.cs | using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
namespace Telegram.Bot.Helpers
{
/// <summary>
/// Extension Methods
/// </summary>
internal static class Extensions
{
static string EncodeUt... | using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
namespace Telegram.Bot.Helpers
{
/// <summary>
/// Extension Methods
/// </summary>
internal static class Extensions
{
static string EncodeUt... | mit | C# |
c6d2e2ce6c0aa817e0ae510abda9e887db89324d | Add necessary assembly info to project. | lijunle/Vsxmd | Vsxmd/Properties/AssemblyInfo.cs | Vsxmd/Properties/AssemblyInfo.cs | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="Junle Li">
// Copyright (c) Junle Li. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System.Reflection;
using System.Runtime... | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="Junle Li">
// Copyright (c) Junle Li. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System.Reflection;
using System.Runtime... | mit | C# |
8391ad96dff001a5d8cdf18e7ab8877b902b1d45 | Fix build break in vNext (#2352) | rrector/orleans,hoopsomuah/orleans,jthelin/orleans,ashkan-saeedi-mazdeh/orleans,MikeHardman/orleans,sergeybykov/orleans,ReubenBond/orleans,Liversage/orleans,yevhen/orleans,jokin/orleans,Carlm-MS/orleans,jokin/orleans,LoveElectronics/orleans,Liversage/orleans,hoopsomuah/orleans,dotnet/orleans,ashkan-saeedi-mazdeh/orlean... | vNext/src/Orleans/Shims/RuntimeStatisticsGroup.cs | vNext/src/Orleans/Shims/RuntimeStatisticsGroup.cs | using System;
namespace Orleans.Runtime
{
internal class RuntimeStatisticsGroup : IDisposable
{
private static readonly Logger logger = LogManager.GetLogger("RuntimeStatisticsGroup", LoggerType.Runtime);
public long MemoryUsage => 0;
public long TotalPhysicalMemory => int.MaxValue;
... | namespace Orleans.Runtime
{
internal class RuntimeStatisticsGroup
{
private static readonly Logger logger = LogManager.GetLogger("RuntimeStatisticsGroup", LoggerType.Runtime);
public long MemoryUsage => 0;
public long TotalPhysicalMemory => int.MaxValue;
public long AvailableMem... | mit | C# |
50d520f2176ed864a17b25bc41a496df18c0b83a | Revert "Fixed typo in assembly company." | HPSoftware/hpaa-octane-dev,HPSoftware/hpaa-octane-dev,HPSoftware/hpaa-octane-dev,HPSoftware/hpaa-octane-dev,HPSoftware/hpaa-octane-dev | HpToolsLauncher/HpToolsLauncherTests/Properties/AssemblyInfo.cs | HpToolsLauncher/HpToolsLauncherTests/Properties/AssemblyInfo.cs | // (c) Copyright 2012 Hewlett-Packard Development Company, L.P.
// 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, modif... | // (c) Copyright 2012 Hewlett-Packard Development Company, L.P.
// 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, modif... | mit | C# |
7fd99a7e04faddc8530b080c18f7834c101cf2c6 | Update version in AssemblyInfo | vnbaaij/ImageProcessor.Web.Episerver,vnbaaij/ImageProcessor.Web.Episerver,vnbaaij/ImageProcessor.Web.Episerver | src/ImageProcessor.Web.Episerver/Properties/AssemblyInfo.cs | src/ImageProcessor.Web.Episerver/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("Imag... | 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("Imag... | mit | C# |
61315a01558f7088fd607c879d5c7cf2b95ca1e3 | Edit Spider confetti | NitorInc/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare,Barleytree/NitoriWare | Assets/Microgames/Spider/Scripts/SpiderConfetti.cs | Assets/Microgames/Spider/Scripts/SpiderConfetti.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpiderConfetti : MonoBehaviour
{
[SerializeField]
private Vector2 valueRange = new Vector2(.7f, .9f);
[SerializeField]
private Vector2 alphaRange = new Vector2(1f, 1f);
private ParticleSystem particles;
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpiderConfetti : MonoBehaviour
{
private ParticleSystem particles;
void Start()
{
particles = GetComponent<ParticleSystem>();
}
void Update()
{
var main = particles.main;
main.startColor = n... | mit | C# |
d49fd7441c52a7562f2fd227f0cd74c267c8719c | Add SM name to suta email | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Events/SUTARequestChanged.cs | Battery-Commander.Web/Events/SUTARequestChanged.cs | using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using BatteryCommander.Web.Models;
using BatteryCommander.Web.Queries;
using BatteryCommander.Web.Services;
using FluentEmail.Core;
using FluentEmail.Core.Models;
using MediatR;
namespace BatteryCommander.Web.Even... | using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using BatteryCommander.Web.Models;
using BatteryCommander.Web.Queries;
using BatteryCommander.Web.Services;
using FluentEmail.Core;
using FluentEmail.Core.Models;
using MediatR;
namespace BatteryCommander.Web.Even... | mit | C# |
388721300611431886c245247a490233b3f3724d | Change code to use async defer call for Google Maps | Mantus667/GridMaps,Mantus667/GridMaps,Mantus667/GridMaps | GridMaps/GridMaps/Render/gridmapsgrideditor.cshtml | GridMaps/GridMaps/Render/gridmapsgrideditor.cshtml | @inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
@if (Model.value != null)
{
string value = Model.value.ToString();
var id = string.Format("{0}_map", Guid.NewGuid());
<div class="map gridmaps" id="@id" style="width:100%;"></div>
<script type="text/javascript">
function initializeMap() {
... | @using System.Web.Mvc.Html
@inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
@if (Model.value != null)
{
string value = Model.value.ToString();
var id = Guid.NewGuid().ToString() + "_map";
var js_id = id.Replace('-', '_');
<div class="map gridmaps" id="@id" style="width:100%;"></div>
<script t... | mit | C# |
efbdf5eb7ec84e99247fba7448bee56f0981e0ea | Update description of "Path". | DheerendraRathor/azure-sdk-for-net,smithab/azure-sdk-for-net,ayeletshpigelman/azure-sdk-for-net,AzCiS/azure-sdk-for-net,brjohnstmsft/azure-sdk-for-net,smithab/azure-sdk-for-net,shahabhijeet/azure-sdk-for-net,jamestao/azure-sdk-for-net,jackmagic313/azure-sdk-for-net,btasdoven/azure-sdk-for-net,djyou/azure-sdk-for-net,sm... | src/ResourceManagement/Resource/Microsoft.Azure.Management.ResourceManager/Generated/Models/AliasPathType.cs | src/ResourceManagement/Resource/Microsoft.Azure.Management.ResourceManager/Generated/Models/AliasPathType.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
... | mit | C# |
2df1000c3a273669b6c06012b3f89e0d3fabdbb4 | Update SimpleEntryAlert.cs | Clancey/iOSHelpers | iOSHelpers/SimpleEntryAlert.cs | iOSHelpers/SimpleEntryAlert.cs | using System;
using System.Threading.Tasks;
using UIKit;
namespace iOSHelpers
{
public class SimpleEntryAlert : IDisposable
{
readonly string title;
readonly string details;
readonly string placeholder;
private readonly string defaultValue;
private readonly string okString;
private readonly string cance... | using System;
using System.Threading.Tasks;
using UIKit;
namespace iOSHelpers
{
public class SimpleEntryAlert : IDisposable
{
readonly string title;
readonly string details;
readonly string placeholder;
private readonly string defaultValue;
UIAlertController alertController;
UIAlertView alertView;
pu... | apache-2.0 | C# |
0094c4cf8741dba0f21e95a7aa865d7c6650a124 | Fix unit test by specifying the font in the test image. | jkoritzinsky/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,Perspex/Perspex,AvaloniaUI/A... | tests/Avalonia.RenderTests/Controls/TextBlockTests.cs | tests/Avalonia.RenderTests/Controls/TextBlockTests.cs | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Threading.Tasks;
using Avalonia.Controls;
using Avalonia.Layout;
using Avalonia.Media;
using Xunit;
#if AVALONIA_SKIA
namespace Avalonia.Ski... | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Threading.Tasks;
using Avalonia.Controls;
using Avalonia.Layout;
using Avalonia.Media;
using Xunit;
#if AVALONIA_SKIA
namespace Avalonia.Ski... | mit | C# |
5e3bd31862c2a754c8b3e5873ddb3988b529de93 | Delete corrupted downloads after an error | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck | lib/TweetLib.Core/Utils/WebUtils.cs | lib/TweetLib.Core/Utils/WebUtils.cs | using System;
using System.ComponentModel;
using System.IO;
using System.Net;
namespace TweetLib.Core.Utils{
public static class WebUtils{
private static bool HasMicrosoftBeenBroughtTo2008Yet;
private static void EnsureTLS12(){
if (!HasMicrosoftBeenBroughtTo2008Yet){
S... | using System;
using System.ComponentModel;
using System.IO;
using System.Net;
namespace TweetLib.Core.Utils{
public static class WebUtils{
private static bool HasMicrosoftBeenBroughtTo2008Yet;
private static void EnsureTLS12(){
if (!HasMicrosoftBeenBroughtTo2008Yet){
S... | mit | C# |
d7892f6bad4fc78d7d2fa424480858440c4e5647 | Fix null reference exception | openchargemap/ocm-system,openchargemap/ocm-system,openchargemap/ocm-system,openchargemap/ocm-system | API/OCM.Net/OCM.API.Core/Common/Extensions/UserComment.cs | API/OCM.Net/OCM.API.Core/Common/Extensions/UserComment.cs | using System.Linq;
namespace OCM.API.Common.Model.Extensions
{
public class UserComment
{
public static Model.UserComment FromDataModel(Core.Data.UserComment source, bool isVerboseMode, Model.CoreReferenceData refData = null)
{
var userComment = new Model.UserComment
{
... | using System.Linq;
namespace OCM.API.Common.Model.Extensions
{
public class UserComment
{
public static Model.UserComment FromDataModel(Core.Data.UserComment source, bool isVerboseMode, Model.CoreReferenceData refData = null)
{
var userComment = new Model.UserComment
{
... | mit | C# |
862a7da755b13ab8f769fc9bebd263ba95dba827 | Update ServiceProviderExtensions.cs | jbattermann/JB.Common | JB.Common/ExtensionMethods/ServiceProviderExtensions.cs | JB.Common/ExtensionMethods/ServiceProviderExtensions.cs | // -----------------------------------------------------------------------
// <copyright file="ServiceProviderExtensions.cs" company="Joerg Battermann">
// Copyright (c) 2015 Joerg Battermann. All rights reserved.
// </copyright>
// <author>Joerg Battermann</author>
// <summary></summary>
// ------------------... | // -----------------------------------------------------------------------
// <copyright file="ServiceProviderExtensions.cs" company="Joerg Battermann">
// Copyright (c) 2015 Joerg Battermann. All rights reserved.
// </copyright>
// <author>Joerg Battermann</author>
// <summary></summary>
// ------------------... | apache-2.0 | C# |
5212b013d2a7d0a9101e15e6f86647776422f400 | Make sure that if our token is canceled, the window immediately closes | jochenvangasse/Squirrel.Windows,flagbug/Squirrel.Windows,jochenvangasse/Squirrel.Windows,cguedel/Squirrel.Windows,Suninus/Squirrel.Windows,akrisiun/Squirrel.Windows,cguedel/Squirrel.Windows,ruisebastiao/Squirrel.Windows,allanrsmith/Squirrel.Windows,allanrsmith/Squirrel.Windows,yovannyr/Squirrel.Windows,JonMartinTx/AS40... | src/Update/AnimatedGifWindow.cs | src/Update/AnimatedGifWindow.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Effects;
using System.Windows... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Effects;
using System.Windows... | mit | C# |
8a79781842a4d566c064aa844242b2448f4327ee | Remove meta charset from fortunes in ASP.NET | Rayne/FrameworkBenchmarks,markkolich/FrameworkBenchmarks,sxend/FrameworkBenchmarks,zapov/FrameworkBenchmarks,zane-techempower/FrameworkBenchmarks,Jesterovskiy/FrameworkBenchmarks,alubbe/FrameworkBenchmarks,k-r-g/FrameworkBenchmarks,raziel057/FrameworkBenchmarks,stefanocasazza/FrameworkBenchmarks,mfirry/FrameworkBenchma... | frameworks/CSharp/aspnet/src/Views/Fortunes.cshtml | frameworks/CSharp/aspnet/src/Views/Fortunes.cshtml | @model IEnumerable<Benchmarks.AspNet.Models.Fortune>
<!DOCTYPE html>
<html>
<head>
<title>Fortunes</title>
</head>
<body>
<table>
<tr>
<th>id</th>
<th>message</th>
</tr>
@foreach (var fortune in Model)
{
<tr>
<td>@fortune.ID</td>
<td>@fortune.Message</td>
</tr>
}
</table>
</body>
</html>
| @model IEnumerable<Benchmarks.AspNet.Models.Fortune>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Fortunes</title>
</head>
<body>
<table>
<tr>
<th>id</th>
<th>message</th>
</tr>
@foreach (var fortune in Model)
{
<tr>
<td>@fortune.ID</td>
<td>@fortune.Message</td>
</tr>
}
</table... | bsd-3-clause | C# |
7dde2f1f4c8e5f2b06d67a362752bb529a816b68 | Change variable name per review request | chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet | Source/MQTTnet/Adapter/MqttConnectingFailedException.cs | Source/MQTTnet/Adapter/MqttConnectingFailedException.cs | using MQTTnet.Client.Connecting;
using MQTTnet.Exceptions;
namespace MQTTnet.Adapter
{
public class MqttConnectingFailedException : MqttCommunicationException
{
public MqttConnectingFailedException(MqttClientAuthenticateResult result)
: base($"Connecting with MQTT server failed ({result.Re... | using MQTTnet.Client.Connecting;
using MQTTnet.Exceptions;
namespace MQTTnet.Adapter
{
public class MqttConnectingFailedException : MqttCommunicationException
{
public MqttConnectingFailedException(MqttClientAuthenticateResult resultCode)
: base($"Connecting with MQTT server failed ({resul... | mit | C# |
f684807d9eac91d9d93b68048c8e3f79c96b4884 | Delete dead method | mattscheffer/roslyn,MichalStrehovsky/roslyn,sharwell/roslyn,Hosch250/roslyn,paulvanbrenk/roslyn,genlu/roslyn,bkoelman/roslyn,jasonmalinowski/roslyn,DustinCampbell/roslyn,tmeschter/roslyn,brettfo/roslyn,gafter/roslyn,diryboy/roslyn,genlu/roslyn,KirillOsenkov/roslyn,reaction1989/roslyn,weltkante/roslyn,jmarolf/roslyn,dir... | src/EditorFeatures/Core/Implementation/IntelliSense/Completion/Presentation/CompletionPresenter.cs | src/EditorFeatures/Core/Implementation/IntelliSense/Completion/Presentation/CompletionPresenter.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.Generic;
using System.Collections.Immutable;
using System.ComponentModel.Composition;
using System.Linq;
using 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;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.Composition;
using System.Linq;
using Microso... | mit | C# |
9fc115a174c53a756dbec2f5d9910284fea15ef1 | Update src/Workspaces/Core/Portable/Workspace/Host/PersistentStorage/IPersistentStorageLocationService.cs | KirillOsenkov/roslyn,agocke/roslyn,ErikSchierboom/roslyn,aelij/roslyn,shyamnamboodiripad/roslyn,AmadeusW/roslyn,tannergooding/roslyn,abock/roslyn,jmarolf/roslyn,AlekseyTs/roslyn,wvdd007/roslyn,KevinRansom/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,bartdesmet/roslyn,physhi/roslyn,diryboy/roslyn,diryboy/roslyn,mgoertz... | src/Workspaces/Core/Portable/Workspace/Host/PersistentStorage/IPersistentStorageLocationService.cs | src/Workspaces/Core/Portable/Workspace/Host/PersistentStorage/IPersistentStorageLocationService.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.
#nullable enable
using System;
using System.Composition;
using System.IO;
using System.Linq;
using Microsoft.CodeAnalysis.Host.Mef;
namespace Microsoft.Cod... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullable enable
using System;
using System.Composition;
using System.IO;
using System.Linq;
using Microsoft.CodeAnalysis.Host.Mef;
namespace Microsoft.Cod... | mit | C# |
5e3b7204089a68aeb1032eac6fe26897c4fc3ec0 | Remove invalid method and P/Invoke in TextProperty | akrisiun/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,Gankov/gtk-sharp,sillsdev/gtk-sharp,sillsdev/gtk-sharp,Gankov/gtk-sharp,akrisiun/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,orion75/gtk-sharp,openmedicus/gtk-sharp,openmedicus/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,orion75/gtk-sharp,G... | gdk/TextProperty.cs | gdk/TextProperty.cs | // Gdk.Text.cs - Custom implementation for Text class
//
// Authors: Mike Kestner <mkestner@ximian.com>
//
// Copyright (c) 2004 Novell, Inc.
//
// 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 Fre... | // Gdk.Text.cs - Custom implementation for Text class
//
// Authors: Mike Kestner <mkestner@ximian.com>
//
// Copyright (c) 2004 Novell, Inc.
//
// 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 Fre... | lgpl-2.1 | C# |
17ef9600e55d520795e648ca93253c47adcb8d98 | Clean diffs | bbqchickenrobot/Eto-1,l8s/Eto,l8s/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto,PowerOfCode/Eto,PowerOfCode/Eto,l8s/Eto,bbqchickenrobot/Eto-1 | Source/Eto.Platform.Windows/Forms/DockLayoutHandler.cs | Source/Eto.Platform.Windows/Forms/DockLayoutHandler.cs | using System;
using SD = System.Drawing;
using SWF = System.Windows.Forms;
using Eto.Forms;
using Eto.Drawing;
namespace Eto.Platform.Windows
{
public class DockLayoutHandler : WindowsLayout<SWF.TableLayoutPanel, DockLayout>, IDockLayout
{
Control child;
Padding padding;
public DockLayoutHandler ()
{
... | using System;
using SD = System.Drawing;
using SWF = System.Windows.Forms;
using Eto.Forms;
using Eto.Drawing;
namespace Eto.Platform.Windows
{
public class DockLayoutHandler : WindowsLayout<SWF.TableLayoutPanel, DockLayout>, IDockLayout
{
Control child;
Padding padding;
public DockLayoutHandler ()
{
... | bsd-3-clause | C# |
b2af78f15e7aa8981b1477306bb0e0f8bb7b1874 | Update PolicyAuthorize.cs | AzureADQuickStarts/B2C-WebApp-OpenIdConnect-DotNet,AzureADQuickStarts/B2C-WebApp-OpenIdConnect-DotNet,Nsrose/Azure-B2C-Stripe-WebApp,Nsrose/Azure-B2C-Stripe-WebApp,Nsrose/Azure-B2C-Stripe-WebApp,AzureADQuickStarts/B2C-WebApp-OpenIdConnect-DotNet | WebApp-B2C-DotNet/PolicyAuthHelpers/PolicyAuthorize.cs | WebApp-B2C-DotNet/PolicyAuthHelpers/PolicyAuthorize.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using Microsoft.Owin.Security;
using System.Web;
using Microsoft.Owin.Security.OpenIdConnect;
namespace WebApp_OpenIDConnect_DotNet_B2C.Policies
{
[AttributeUsage(AttributeTarg... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using Microsoft.Owin.Security;
using System.Web;
using Microsoft.Owin.Security.OpenIdConnect;
namespace WebApp_OpenIDConnect_DotNet_B2C.Policies
{
[AttributeUsage(AttributeTarg... | apache-2.0 | C# |
45da435a076a96d8fdf974a6b680e6ff84335c3a | Update accessor constructor used for tests | tburnett80/blogApp,tburnett80/blogApp | BlogApp/BlogApp.Accessors/BlogCacheAccessor.cs | BlogApp/BlogApp.Accessors/BlogCacheAccessor.cs | using System;
using System.Threading.Tasks;
using BlogApp.Common.Contracts.Accessors;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using StackExchange.Redis;
namespace BlogApp.Accessors
{
public sealed class BlogCacheAccessor : ICacheAccessor
{
#region Constructor and private membe... | using System;
using System.Threading.Tasks;
using BlogApp.Common.Contracts.Accessors;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using StackExchange.Redis;
namespace BlogApp.Accessors
{
public sealed class BlogCacheAccessor : ICacheAccessor
{
#region Constructor and private membe... | mit | C# |
911784cc9a28573ae1690b46a605edb82ab37029 | Add missing UsedImplicitly attribute to Mouse>Static | CoraleStudios/Colore,WolfspiritM/Colore | Corale.Colore/Razer/Mousepad/Effects/Static.cs | Corale.Colore/Razer/Mousepad/Effects/Static.cs | // ---------------------------------------------------------------------------------------
// <copyright file="Static.cs" company="Corale">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and asso... | // ---------------------------------------------------------------------------------------
// <copyright file="Static.cs" company="Corale">
// Copyright © 2015 by Adam Hellberg and Brandon Scott.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and asso... | mit | C# |
b81b7c080512902a3d97e9ced49eb1613f18c72f | Change contrast ratio to get close to 1.5:1 (#45526) | AmadeusW/roslyn,eriawan/roslyn,aelij/roslyn,brettfo/roslyn,stephentoub/roslyn,tmat/roslyn,jasonmalinowski/roslyn,stephentoub/roslyn,tmat/roslyn,panopticoncentral/roslyn,aelij/roslyn,brettfo/roslyn,dotnet/roslyn,weltkante/roslyn,sharwell/roslyn,AlekseyTs/roslyn,shyamnamboodiripad/roslyn,jmarolf/roslyn,sharwell/roslyn,ma... | src/EditorFeatures/Core.Wpf/InlineRename/HighlightTags/RenameFieldBackgroundAndBorderTagDefinition.cs | src/EditorFeatures/Core.Wpf/InlineRename/HighlightTags/RenameFieldBackgroundAndBorderTagDefinition.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.ComponentModel.Composition;
using System.Diagnostics.CodeAnalysis;
using System.Windows.... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.ComponentModel.Composition;
using System.Diagnostics.CodeAnalysis;
using System.Windows.... | mit | C# |
2c0c920099d88e5fb8a8bfb6bc5b452c9c39894d | Add extra password properties | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers | src/SFA.DAS.EmployerUsers.Infrastructure/Data/DocumentDbUser.cs | src/SFA.DAS.EmployerUsers.Infrastructure/Data/DocumentDbUser.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using SFA.DAS.EmployerUsers.Domain;
namespace SFA.DAS.EmployerUsers.Infrastructure.Data
{
internal class DocumentDbUser
{
[JsonProperty("id")]
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using SFA.DAS.EmployerUsers.Domain;
namespace SFA.DAS.EmployerUsers.Infrastructure.Data
{
internal class DocumentDbUser
{
[JsonProperty("id")]
p... | mit | C# |
d28912db04965ed1128fa38eb9a56d25021d996c | Comment should be // not /// | theraot/Theraot | Framework.Core/System/Runtime/CompilerServices/IsReadOnlyAttribute.cs | Framework.Core/System/Runtime/CompilerServices/IsReadOnlyAttribute.cs | #if LESSTHAN_NET471 || LESSTHAN_NETCOREAPP20 || LESSTHAN_NETSTANDARD21
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.ComponentModel;
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Reserved ... | #if LESSTHAN_NET471 || LESSTHAN_NETCOREAPP20 || LESSTHAN_NETSTANDARD21
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.ComponentModel;
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Reserved ... | mit | C# |
35fb8b5c529dea1ca544a883c028f16a6ead05fa | Create SLDR cache directory before trying to get file from SLDR in SldrWritingSystemFactory | gtryus/libpalaso,glasseyes/libpalaso,gmartin7/libpalaso,glasseyes/libpalaso,sillsdev/libpalaso,gmartin7/libpalaso,gtryus/libpalaso,glasseyes/libpalaso,ermshiperete/libpalaso,mccarthyrb/libpalaso,mccarthyrb/libpalaso,tombogle/libpalaso,tombogle/libpalaso,sillsdev/libpalaso,gmartin7/libpalaso,sillsdev/libpalaso,ddaspit/l... | SIL.WritingSystems/SldrWritingSystemFactory.cs | SIL.WritingSystems/SldrWritingSystemFactory.cs | using System.IO;
namespace SIL.WritingSystems
{
public class SldrWritingSystemFactory : SldrWritingSystemFactory<WritingSystemDefinition>
{
protected override WritingSystemDefinition ConstructDefinition()
{
return new WritingSystemDefinition();
}
protected override WritingSystemDefinition ConstructDefin... | using System.IO;
namespace SIL.WritingSystems
{
public class SldrWritingSystemFactory : SldrWritingSystemFactory<WritingSystemDefinition>
{
protected override WritingSystemDefinition ConstructDefinition()
{
return new WritingSystemDefinition();
}
protected override WritingSystemDefinition ConstructDefin... | mit | C# |
6c58eb7592c938448f6c9ab353c941285aab8964 | add view vehicle method [#136209745] | revaturelabs/revashare-svc-webapi | revashare-svc-webapi/revashare-svc-webapi.Logic/DriverLogic.cs | revashare-svc-webapi/revashare-svc-webapi.Logic/DriverLogic.cs | using revashare_svc_webapi.Logic.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using revashare_svc_webapi.Logic.Models;
using revashare_svc_webapi.Logic.RevaShareServiceReference;
using revashare_svc_webapi.Logic.Mappers;
namespace reva... | using revashare_svc_webapi.Logic.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using revashare_svc_webapi.Logic.Models;
using revashare_svc_webapi.Logic.RevaShareServiceReference;
using revashare_svc_webapi.Logic.Mappers;
namespace reva... | mit | C# |
9a0eef932cb889ae5e9ce21ce899c6797dca3115 | Fix AI crash (#10788) | space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14,space-wizards/space-station-14 | Content.Server/AI/Operators/Inventory/OpenStorageOperator.cs | Content.Server/AI/Operators/Inventory/OpenStorageOperator.cs | using Content.Server.AI.Utility;
using Content.Server.AI.WorldState.States.Inventory;
using Content.Server.Storage.Components;
using Content.Server.Storage.EntitySystems;
using Content.Shared.Interaction;
using Robust.Shared.Containers;
namespace Content.Server.AI.Operators.Inventory
{
/// <summary>
/// If the... | using Content.Server.AI.Utility;
using Content.Server.AI.WorldState.States.Inventory;
using Content.Server.Storage.Components;
using Content.Server.Storage.EntitySystems;
using Content.Shared.Interaction;
using Robust.Shared.Containers;
namespace Content.Server.AI.Operators.Inventory
{
/// <summary>
/// If the... | mit | C# |
4a4ec9f79081bc9799fcd6355acc20f4b617aa58 | Remove default paths. | xen2/SharpLang,xen2/SharpLang,xen2/SharpLang,xen2/SharpLang,xen2/SharpLang | src/SharpLang.Compiler/Cecil/CustomAssemblyResolver.cs | src/SharpLang.Compiler/Cecil/CustomAssemblyResolver.cs | using System.IO;
using Mono.Cecil;
namespace SharpLang.CompilerServices.Cecil
{
class CustomAssemblyResolver : DefaultAssemblyResolver
{
public CustomAssemblyResolver()
{
// Start with an empty search directory list
foreach (var searchDirectory in GetSearchDirectories()... | using System.IO;
using Mono.Cecil;
namespace SharpLang.CompilerServices.Cecil
{
class CustomAssemblyResolver : DefaultAssemblyResolver
{
/// <summary>
/// Registers the specified assembly.
/// </summary>
/// <param name="assembly">The assembly to register.</param>
publi... | bsd-2-clause | C# |
8c5c8efc98a0c2b832dbf65dbb381750d8bdbf74 | Update BreakerException.cs | hprose/hprose-dotnet | src/Hprose.RPC.Plugins/CircuitBreaker/BreakerException.cs | src/Hprose.RPC.Plugins/CircuitBreaker/BreakerException.cs | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | /*--------------------------------------------------------*\
| |
| hprose |
| |
| Official WebSite: https://hprose.com |
| ... | mit | C# |
09915e8ec7fa63afcaa8c05e88916b4437e84229 | bump verision to MiniProfiler's 3.1.1.140 | romansp/MiniProfiler.Elasticsearch | src/MiniProfiler.Elasticsearch/Properties/AssemblyInfo.cs | src/MiniProfiler.Elasticsearch/Properties/AssemblyInfo.cs | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("MiniProfiler.Elasticsearch")]
[assembly: AssemblyDescription("Elasticsearch extensions for StackExchange.Profiling - http://miniprofiler.com")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("roman... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("MiniProfiler.Elasticsearch")]
[assembly: AssemblyDescription("Elasticsearch extensions for StackExchange.Profiling - http://miniprofiler.com")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("roman... | mit | C# |
2ffe4deec319bd9dcd81d3dd4a5bb47b38f472ae | Support for parity clique mixhash and nonce in SealFields | Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum | src/Nethereum.RPC/ModelFactories/BlockHeaderRPCFactory.cs | src/Nethereum.RPC/ModelFactories/BlockHeaderRPCFactory.cs | using Nethereum.Hex.HexConvertors.Extensions;
using Nethereum.Model;
using Nethereum.RPC.Eth.DTOs;
namespace Nethereum.RPC.ModelFactories
{
public class BlockHeaderRPCFactory
{
public static BlockHeader FromRPC(Block rpcBlock, bool mixHasAndhNonceInSealFields = false)
{
var blockHe... | using Nethereum.Hex.HexConvertors.Extensions;
using Nethereum.Model;
using Nethereum.RPC.Eth.DTOs;
namespace Nethereum.RPC.ModelFactories
{
public class BlockHeaderRPCFactory
{
public static BlockHeader FromRPC(Block rpcBlock)
{
var blockHeader = new BlockHeader();
bloc... | mit | C# |
4128f4ed9cdb60488e4d962bf9dc6a7393d641e0 | Update ImportingFromArray.cs | aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,asposecells/Aspose_Cells_... | Examples/CSharp/Data/Handling/Importing/ImportingFromArray.cs | Examples/CSharp/Data/Handling/Importing/ImportingFromArray.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Data.Handling.Importing
{
public class ImportingFromArray
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = Aspose.Cells.Exampl... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Data.Handling.Importing
{
public class ImportingFromArray
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Utils.GetDataDir(Syst... | mit | C# |
f739887a03a9ecc0fcc05ec53449d3f4a5f35855 | mark csrf token as SameSite=strict to be more secure (#1799) | joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net | src/JoinRpg.Portal/Infrastructure/CsrfTokenCookieMiddleware.cs | src/JoinRpg.Portal/Infrastructure/CsrfTokenCookieMiddleware.cs | using Microsoft.AspNetCore.Antiforgery;
namespace JoinRpg.Portal.Infrastructure;
// Purpose is to send CSRF token to JS-allowed cookie to allow APIs to use it
// see https://remibou.github.io/CSRF-protection-with-ASPNET-Core-and-Blazor-Week-29/
public class CsrfTokenCookieMiddleware
{
private readonly RequestDele... | using Microsoft.AspNetCore.Antiforgery;
namespace JoinRpg.Portal.Infrastructure;
// Purpose is to send CSRF token to JS-allowed cookie to allow APIs to use it
// see https://remibou.github.io/CSRF-protection-with-ASPNET-Core-and-Blazor-Week-29/
public class CsrfTokenCookieMiddleware
{
private readonly RequestDele... | mit | C# |
f2d40f26d2058e68f8f90fa722ff7fb33d1c58a8 | Remove reason phrase from HttpExceptionMiddleware | ASP-NET-MVC-Boilerplate/Framework,ASP-NET-Core-Boilerplate/Framework,ASP-NET-Core-Boilerplate/Framework,ASP-NET-Core-Boilerplate/Framework,ASP-NET-Core-Boilerplate/Framework,ASP-NET-MVC-Boilerplate/Framework | Source/Boxed.AspNetCore/Middleware/HttpExceptionMiddleware.cs | Source/Boxed.AspNetCore/Middleware/HttpExceptionMiddleware.cs | namespace Boxed.AspNetCore.Middleware
{
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
internal class HttpExceptionMiddleware : IMiddleware
{
public async Task InvokeAsync(HttpContext con... | namespace Boxed.AspNetCore.Middleware
{
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
internal class HttpExceptionMiddleware : IMiddleware
{
... | mit | C# |
82e4050fddb27908c282a5f307f62b22ef62940c | Fix xmldoc | ppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,ppy/osu,peppy/osu-new,NeoAdonis/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu,peppy/osu,UselessToucan/osu | osu.Game.Rulesets.Osu/Objects/Drawables/Pieces/SpinnerBonusDisplay.cs | osu.Game.Rulesets.Osu/Objects/Drawables/Pieces/SpinnerBonusDisplay.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
namespace osu.Game.Rulesets.Osu.Objects.... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
namespace osu.Game.Rulesets.Osu.Objects.... | mit | C# |
bf4d7680bee53140bd8ed70dfc934739a95d71e5 | Fix IndexOutOfRangeException | vkuskov/Entitas-CSharp,vkuskov/Entitas-CSharp,sschmid/Entitas-CSharp,sschmid/Entitas-CSharp | Entitas.Unity/Assets/Entitas/Unity/Editor/EntitasEditorLayout.cs | Entitas.Unity/Assets/Entitas/Unity/Editor/EntitasEditorLayout.cs | using UnityEditor;
using UnityEngine;
namespace Entitas.Unity {
public static class EntitasEditorLayout {
public static void ShowWindow<T>(string title) where T : EditorWindow {
var window = EditorWindow.GetWindow<T>(true, title);
window.minSize = window.maxSize = new Vector2(415f... | using UnityEditor;
using UnityEngine;
namespace Entitas.Unity {
public static class EntitasEditorLayout {
public static void ShowWindow<T>(string title) where T : EditorWindow {
var window = EditorWindow.GetWindow<T>(true, title);
window.minSize = window.maxSize = new Vector2(415f... | mit | C# |
ee99b1257325e296f9e8110f117d29730d3a0d64 | fix compile error | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserSources.cs | WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserSources.cs | using System;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
namespace WalletWasabi.Gui.ManagedDialogs
{
public class ManagedFileChooserSources
{
public Func<ManagedFileChooserNavigationItem[]> GetUserDirectories { get; set; }
= DefaultGetUserDirectories;
public Func<ManagedFileCho... | using System;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
namespace WalletWasabi.Gui.ManagedDialogs
{
public class ManagedFileChooserSources
{
public Func<ManagedFileChooserNavigationItem[]> GetUserDirectories { get; set; }
= DefaultGetUserDirectories;
public Func<ManagedFileCho... | mit | C# |
62750cf99e57d7eb338435d3661882ef2d6aa358 | Add comments to MouseBrush | momo-the-monster/workshop-trails | Assets/MMM/Trails/Scripts/MouseBrush.cs | Assets/MMM/Trails/Scripts/MouseBrush.cs | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
public class MouseBrush : MonoBehaviour {
public GameObject brushPrefab;
public int gridSnap = 1;
internal GameObject currentBrush;
internal Vector3 mousePositionPrevious;
// Use this for initializatio... | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
public class MouseBrush : MonoBehaviour {
public GameObject brushPrefab;
public int gridSnap = 1;
internal GameObject currentBrush;
internal Vector3 mousePositionPrevious;
// Use this for initializatio... | mit | C# |
75dcc28f0e9c2313689b0b5be9744a4d6e048596 | Test coverage for simple void blocks with a variable | agileobjects/ReadableExpressions | ReadableExpressions.UnitTests/WhenTranslatingBlockExpressions.cs | ReadableExpressions.UnitTests/WhenTranslatingBlockExpressions.cs | namespace AgileObjects.ReadableExpressions.UnitTests
{
using System;
using System.Linq.Expressions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class WhenTranslatingBlockExpressions
{
[TestMethod]
public void ShouldTranslateANoVariableBlockWithNoRetur... | namespace AgileObjects.ReadableExpressions.UnitTests
{
using System;
using System.Linq.Expressions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class WhenTranslatingBlockExpressions
{
[TestMethod]
public void ShouldTranslateANoVariableNoReturnValueBlo... | mit | C# |
db56e45032488c1c15025c90d198c9a924818a17 | Remove redundant call to SatisfyImportsOnce | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.App/Factories/ViewViewModelFactory.cs | src/GitHub.App/Factories/ViewViewModelFactory.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Windows;
using GitHub.Exports;
using GitHub.Services;
using GitHub.ViewModels;
namespace GitHub.Factories
{
/// <summary>
/// Factory for creating views and view models.
/// </summary>
... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Windows;
using GitHub.Exports;
using GitHub.Services;
using GitHub.ViewModels;
namespace GitHub.Factories
{
/// <summary>
/// Factory for creating views and view models.
/// </summary>
... | mit | C# |
85cca5a4196dfbb3776b7398e48e94fd16c3fb6c | Correct terminology in description | siwater/Cloudworks,siwater/Cloudworks,siwater/Cloudworks | Citrix.Cloudworks.Agent/AgentService.cs | Citrix.Cloudworks.Agent/AgentService.cs | /*
* Copyright (c) 2013 Citrix Systems, Inc. All Rights Reserved.
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using Citrix.Diagnostics;
namespace Citrix.Cloudworks.Age... | /*
* Copyright (c) 2013 Citrix Systems, Inc. All Rights Reserved.
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using Citrix.Diagnostics;
namespace Citrix.Cloudworks.Age... | mit | C# |
ad37141c38eba363e083804343b45716fe017a3e | Update ForeignExchangeEntity.cs | tiksn/TIKSN-Framework | TIKSN.Core/Finance/ForeignExchange/Data/ForeignExchangeEntity.cs | TIKSN.Core/Finance/ForeignExchange/Data/ForeignExchangeEntity.cs | using System.Collections.Generic;
using TIKSN.Data;
namespace TIKSN.Finance.ForeignExchange.Data
{
public class ForeignExchangeEntity : IEntity<int>
{
public ForeignExchangeEntity() => this.ExchangeRates = new HashSet<ExchangeRateEntity>();
public int LongNameKey { get; set; }
public ... | using System.Collections.Generic;
using TIKSN.Data;
namespace TIKSN.Finance.ForeignExchange.Data
{
public class ForeignExchangeEntity : IEntity<int>
{
public ForeignExchangeEntity()
{
ExchangeRates = new HashSet<ExchangeRateEntity>();
}
public int ID { get; set; }
... | mit | C# |
329465873e26fe1dfeecb82a313e27075a0d5aff | Allow double-clicking on an entry in the breach list to open an edit dialog | andrew-schofield/keepass2-haveibeenpwned | HaveIBeenPwned/BreachedEntriesDialog.cs | HaveIBeenPwned/BreachedEntriesDialog.cs | using KeePass.Plugins;
using KeePassLib;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Windows.Forms;
namespace HaveIBeenPwned
{
public partial class BreachedEntriesDialog : Form
{
private IPluginHost pluginHost;
public BreachedEntriesDialog(IPluginHost ... | using KeePass.Plugins;
using KeePassLib;
using System.Collections.Generic;
using System.Windows.Forms;
namespace HaveIBeenPwned
{
public partial class BreachedEntriesDialog : Form
{
private IPluginHost pluginHost;
public BreachedEntriesDialog(IPluginHost pluginHost)
{
this... | mit | C# |
b7e7d215c9f439e0973380acd5452e5626997579 | Update Field name. | nuitsjp/PrimerOfPrismForms | 03.NavigationService/ViewModelFirstNavigation/ViewModelFirstNavigation/ViewModels/MainPageViewModel.cs | 03.NavigationService/ViewModelFirstNavigation/ViewModelFirstNavigation/ViewModels/MainPageViewModel.cs | using Prism.Commands;
using Prism.Mvvm;
using Prism.Navigation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Input;
namespace ViewModelFirstNavigation.ViewModels
{
public class MainPageViewModel : BindableBase, INavigationAware
{
private string _title;
... | using Prism.Commands;
using Prism.Mvvm;
using Prism.Navigation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Input;
namespace ViewModelFirstNavigation.ViewModels
{
public class MainPageViewModel : BindableBase, INavigationAware
{
private string _title;
... | mit | C# |
3107a60d831d4a6bdc9abca7011ef250ea7e0e62 | Add docs | weltkante/roslyn,CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,diryboy/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,dotnet/roslyn,dotnet/roslyn,bartdesmet/roslyn,mavasani/roslyn,shyamnamboodiripad/roslyn,weltkante/roslyn,diryboy/roslyn,weltkante/roslyn,CyrusNajmabadi/roslyn,CyrusNajmabadi/roslyn,jasonmalinowski/roslyn,... | src/EditorFeatures/Core.Wpf/Adornments/BrushTag.cs | src/EditorFeatures/Core.Wpf/Adornments/BrushTag.cs | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Windows;
using System.Windows.Media;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Windows.Media;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Text.Edi... | mit | C# |
f01e5430a78b103299b55771ed5f7d363311432a | Change signatures | sakapon/Samples-2014,sakapon/Samples-2014,sakapon/Samples-2014 | RxSample/MouseRx2Wpf/MainWindow.xaml.cs | RxSample/MouseRx2Wpf/MainWindow.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using S... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using S... | mit | C# |
dcf3148d23578776ecb8f484b1abb551935cb037 | Fix osu!mania failing due to 0 hp. | peppy/osu-new,naoey/osu,EVAST9919/osu,EVAST9919/osu,2yangk23/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,ZLima12/osu,johnneijzen/osu,DrabWeb/osu,Damnae/osu,johnneijzen/osu,smoogipoo/osu,Frontear/osuKyzer,DrabWeb/osu,UselessToucan/osu,ppy/osu,DrabWeb/osu,Nabile-Rahmani/osu,Drezi126/osu,peppy/o... | osu.Game.Rulesets.Mania/Scoring/ManiaScoreProcessor.cs | osu.Game.Rulesets.Mania/Scoring/ManiaScoreProcessor.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Rulesets.Mania.Judgements;
using osu.Game.Rulesets.Mania.Objects;
using osu.Game.Rulesets.Scoring;
using osu.Game.Rulesets.UI;
namespace osu.Gam... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Rulesets.Mania.Judgements;
using osu.Game.Rulesets.Mania.Objects;
using osu.Game.Rulesets.Scoring;
using osu.Game.Rulesets.UI;
namespace osu.Gam... | mit | C# |
1feed61d9e1a2fbb91abd6e97dcbfd5af09fd5f2 | Put not in place stating that we are essentially project complete | johnnyreilly/jQuery.Validation.Unobtrusive.Native,johnnyreilly/jQuery.Validation.Unobtrusive.Native,johnnyreilly/jQuery.Validation.Unobtrusive.Native | jVUNDemo/Views/Home/Index.cshtml | jVUNDemo/Views/Home/Index.cshtml | @section metatags{
<meta name="Description" content="Provides MVC HTML helper extensions that marry jQuery Validation's native unobtrusive support for validation driven by HTML 5 data attributes with MVC's ability to generate data attributes from Model metadata. With this in place you can use jQuery Validation as ... | @section metatags{
<meta name="Description" content="Provides MVC HTML helper extensions that marry jQuery Validation's native unobtrusive support for validation driven by HTML 5 data attributes with MVC's ability to generate data attributes from Model metadata. With this in place you can use jQuery Validation as ... | mit | C# |
245d2ea21211177a39c739d5866285d1c7caf85d | Switch repo name in tests from deprecated dotnet/cli to the new dotnet/sdk | NuKeeperDotNet/NuKeeper,AnthonySteele/NuKeeper,skolima/NuKeeper,NuKeeperDotNet/NuKeeper,skolima/NuKeeper,AnthonySteele/NuKeeper,AnthonySteele/NuKeeper,AnthonySteele/NuKeeper,skolima/NuKeeper,NuKeeperDotNet/NuKeeper,NuKeeperDotNet/NuKeeper,skolima/NuKeeper | NuKeeper.Integration.Tests/Engine/RepositoryFilterTests.cs | NuKeeper.Integration.Tests/Engine/RepositoryFilterTests.cs | using System;
using System.Threading.Tasks;
using NSubstitute;
using NuKeeper.Abstractions.CollaborationPlatform;
using NuKeeper.Abstractions.Configuration;
using NuKeeper.Abstractions.Logging;
using NuKeeper.Engine;
using NuKeeper.GitHub;
using NUnit.Framework;
namespace NuKeeper.Integration.Tests.Engine
{
[TestF... | using System;
using System.Threading.Tasks;
using NSubstitute;
using NuKeeper.Abstractions.CollaborationPlatform;
using NuKeeper.Abstractions.Configuration;
using NuKeeper.Abstractions.Logging;
using NuKeeper.Engine;
using NuKeeper.GitHub;
using NUnit.Framework;
namespace NuKeeper.Integration.Tests.Engine
{
[TestF... | apache-2.0 | C# |
98b2c163f0c3ec38b7e9528d7989e066aa9c1399 | update vuokaavio 3 | JuusoLo/Programming-basics | Conditional-Statements/conditional-statement/loop_example_3/Program.cs | Conditional-Statements/conditional-statement/loop_example_3/Program.cs | using System;
namespace loop_example_3
{
class Program
{
static void Main(string[] args)
{
Console.OutputEncoding = System.Text.Encoding.UTF8;
Console.WriteLine("Ohjelma laskee. Anna luku, mistä parillisten ja parittomien summan:");
string userInput = Consol... | using System;
namespace loop_example_3
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
| mit | C# |
b0ee0383f334b080cb512da69df0ce5f62bff4ae | Update information about valid archive types | arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5 | src/Arkivverket.Arkade.CLI/ArchiveProcessingOptions.cs | src/Arkivverket.Arkade.CLI/ArchiveProcessingOptions.cs | using CommandLine;
namespace Arkivverket.Arkade.CLI
{
public abstract class ArchiveProcessingOptions : OutputOptions
{
[Option('t', "type", HelpText = "Optional. Archive type, valid values: noark3, noark4, noark5 or fagsystem")]
public string ArchiveType { get; set; }
[Option('a', "arc... | using CommandLine;
namespace Arkivverket.Arkade.CLI
{
public abstract class ArchiveProcessingOptions : OutputOptions
{
[Option('t', "type", HelpText = "Optional. Archive type, valid values: noark3, noark5 or fagsystem")]
public string ArchiveType { get; set; }
[Option('a', "archive", H... | agpl-3.0 | C# |
95f3307a1e74d0766b6513c5c87d2c8102968ee8 | remove bad comment | pharring/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet,Microsoft/ApplicationInsights-dotnet,pharring/ApplicationInsights-dotnet | src/Microsoft.ApplicationInsights/Channel/ITelemetry.cs | src/Microsoft.ApplicationInsights/Channel/ITelemetry.cs | namespace Microsoft.ApplicationInsights.Channel
{
using System;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
/// <summary>
/// The base telemetry type for application insights.
/// </summary>
public interface ITelemetry
{
... | namespace Microsoft.ApplicationInsights.Channel
{
using System;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
/// <summary>
/// The base telemetry type for application insights.
/// </summary>
public interface ITelemetry
{
... | mit | C# |
365406c0f925b1fa52bc6ddf37ca154d718fe15b | fix build error | NServiceKit/NServiceKit,timba/NServiceKit,MindTouch/NServiceKit,NServiceKit/NServiceKit,nataren/NServiceKit,ZocDoc/ServiceStack,ZocDoc/ServiceStack,timba/NServiceKit,MindTouch/NServiceKit,ZocDoc/ServiceStack,NServiceKit/NServiceKit,MindTouch/NServiceKit,nataren/NServiceKit,NServiceKit/NServiceKit,ZocDoc/ServiceStack,ti... | src/ServiceStack.Common/ServiceClient.Web/HttpMethod.cs | src/ServiceStack.Common/ServiceClient.Web/HttpMethod.cs | using System;
namespace ServiceStack.ServiceClient.Web
{
[Obsolete("Moved to ServiceStack.Common.Web.HttpMethods")]
public static class HttpMethod
{
public const string Get = "GET";
public const string Put = "PUT";
public const string Post = "POST";
public const string Delet... | using System;
namespace ServiceStack.ServiceClient.Web
{
[Obsolete("Moved to ServiceStack.Common.Web.HttpMethods")]
public static class HttpMethod
{
public const string Get = "GET";
public const string Put = "PUT";
public const string Post = "POST";
public const string Delet... | bsd-3-clause | C# |
a23901c07a748dce1d2e1ef372447b4ed1950cb5 | Enable email address as macro parameter editor | umbraco/Umbraco-CMS,lars-erik/Umbraco-CMS,lars-erik/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,rasmuseeg/Umbraco-CMS,aaronpowell/Umbraco-CMS,tcmorris/Umbraco-CMS,tompipe/Umbraco-CMS,arknu/Umbraco-CMS,KevinJump/Umbraco-CMS,WebCentrum/Umbraco-CMS,abryukhov/Umbraco-CMS,robertjf/Umbraco-CMS,robertjf/Umbraco-CM... | src/Umbraco.Web/PropertyEditors/EmailAddressPropertyEditor.cs | src/Umbraco.Web/PropertyEditors/EmailAddressPropertyEditor.cs | using Umbraco.Core;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
[PropertyEditor(Constants.PropertyEditors.EmailAddressAlias, "Email address", "email", IsParameterEditor = true, Icon ="icon-message")]
public class EmailAddressPropertyEditor : PropertyEditor
{
... | using Umbraco.Core;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
[PropertyEditor(Constants.PropertyEditors.EmailAddressAlias, "Email address", "email", Icon="icon-message")]
public class EmailAddressPropertyEditor : PropertyEditor
{
protected override Property... | mit | C# |
b43b84afce38dd4a9aeefa847e6a2096f93b59b0 | Normalize newlines in json test. | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | test/AsmResolver.DotNet.Tests/Bundles/BundleFileTest.cs | test/AsmResolver.DotNet.Tests/Bundles/BundleFileTest.cs | using System.Linq;
using System.Text;
using AsmResolver.DotNet.Bundles;
using AsmResolver.PE.DotNet.Metadata.Strings;
using AsmResolver.PE.DotNet.Metadata.Tables;
using AsmResolver.PE.DotNet.Metadata.Tables.Rows;
using Xunit;
namespace AsmResolver.DotNet.Tests.Bundles
{
public class BundleFileTest
{
[F... | using System.Linq;
using System.Text;
using AsmResolver.DotNet.Bundles;
using AsmResolver.PE.DotNet.Metadata.Strings;
using AsmResolver.PE.DotNet.Metadata.Tables;
using AsmResolver.PE.DotNet.Metadata.Tables.Rows;
using Xunit;
namespace AsmResolver.DotNet.Tests.Bundles
{
public class BundleFileTest
{
[F... | mit | C# |
a213b76347766c25512d7b9b91da37a35e001b5b | Update TestBrand.cs | plivo/plivo-dotnet,plivo/plivo-dotnet | tests_netcore/Plivo.NetCore.Test/Resources/TestBrand.cs | tests_netcore/Plivo.NetCore.Test/Resources/TestBrand.cs | using System.Collections.Generic;
using Xunit;
using Plivo.Http;
using Plivo.Resource;
using Plivo.Resource.Brand;
using Plivo.Utilities;
using System;
namespace Plivo.NetCore.Test.Resources
{
public class TestBrand : BaseTestCase
{
[Fact]
public void TestBrandList()
{
var d... | using System.Collections.Generic;
using Xunit;
using Plivo.Http;
using Plivo.Resource;
using Plivo.Resource.Brand;
using Plivo.Utilities;
using System;
namespace Plivo.NetCore.Test.Resources
{
public class TestBrand : BaseTestCase
{
[Fact]
public void TestBrandList()
{
var d... | mit | C# |
3a101f76b3e06fc25cbbf91548ad696319d137ae | remove comment. | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/Dialogs/DialogViewModelBaseOfTResult.cs | WalletWasabi.Fluent/ViewModels/Dialogs/DialogViewModelBaseOfTResult.cs | using ReactiveUI;
using System;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading.Tasks;
using WalletWasabi.Fluent.ViewModels.Navigation;
namespace WalletWasabi.Fluent.ViewModels.Dialogs
{
/// <summary>
/// Base ViewModel class for Dialogs that returns a value back.
/// Do not re... | using ReactiveUI;
using System;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading.Tasks;
using WalletWasabi.Fluent.ViewModels.Navigation;
namespace WalletWasabi.Fluent.ViewModels.Dialogs
{
/// <summary>
/// Base ViewModel class for Dialogs that returns a value back.
/// Do not re... | mit | C# |
0969455179b4fc298b4260b13492d0ae790ad720 | fix build | konradsikorski/smartCAML | KoS.Apps.SharePoint.SmartCAML/KoS.Apps.SharePoint.SmartCAML.SharePointProvider/SharePointProviderType.cs | KoS.Apps.SharePoint.SmartCAML/KoS.Apps.SharePoint.SmartCAML.SharePointProvider/SharePointProviderType.cs | namespace KoS.Apps.SharePoint.SmartCAML.SharePointProvider
{
public enum SharePointProviderType
{
Fake = 0,
SharePoint2013ServerModel = 1,
SharePoint2013ClientModel = 2,
SharePointOnline
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KoS.Apps.SharePoint.SmartCAML.SharePointProvider
{
public enum SharePointProviderType
{
Fake = 0,
SharePoint2010ServerModel = 1,
SharePoint2010ClientModel = 2,
... | apache-2.0 | C# |
0dd5ba61ab102062bf026f5dcea10b23210380cc | Clean up unused culture attribute | KevinJump/Umbraco-CMS,NikRimington/Umbraco-CMS,rasmuseeg/Umbraco-CMS,hfloyd/Umbraco-CMS,bjarnef/Umbraco-CMS,tcmorris/Umbraco-CMS,madsoulswe/Umbraco-CMS,tcmorris/Umbraco-CMS,umbraco/Umbraco-CMS,marcemarc/Umbraco-CMS,robertjf/Umbraco-CMS,mattbrailsford/Umbraco-CMS,abryukhov/Umbraco-CMS,tcmorris/Umbraco-CMS,bjarnef/Umbrac... | src/Umbraco.Web/WebApi/Filters/HttpQueryStringFilterAttribute.cs | src/Umbraco.Web/WebApi/Filters/HttpQueryStringFilterAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Formatting;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace Umbraco.Web.WebApi.Filters
{
/// <summary>
/// Allows an Action to execute with an arbitrary number of QueryStrings
/// </summary... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Formatting;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace Umbraco.Web.WebApi.Filters
{
/// <summary>
/// Allows an Action to execute with an arbitrary number of QueryStrings
/// </summary... | mit | C# |
77c0b8dfa937a76ed071b1c195e4e2f6939a7080 | Fix stray typo | smoogipoo/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,smoogipoo/osu | osu.Game/Migrations/20180628011956_RemoveNegativeSetIDs.cs | osu.Game/Migrations/20180628011956_RemoveNegativeSetIDs.cs | using Microsoft.EntityFrameworkCore.Migrations;
namespace osu.Game.Migrations
{
public partial class RemoveNegativeSetIDs : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
// There was a change that beatmaps were being loaded with "-1" online IDs, which ... | using Microsoft.EntityFrameworkCore.Migrations;
namespace osu.Game.Migrations
{
public partial class RemoveNegativeSetIDs : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
// There was a change that baetmaps were being loaded with "-1" online IDs, which ... | mit | C# |
017319c9b45cc6451c91703b8772e6878de23f2e | Bump version. | EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an,EamonNerbonne/a-vs-an | A-vs-An/A-vs-An-DotNet/Properties/AssemblyInfo.cs | A-vs-An/A-vs-An-DotNet/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: AssemblyTi... | 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... | apache-2.0 | C# |
35edef1aef0bad8360f203848a07d23c46e72180 | Update to Castle Rock header text | opencolorado/.NET-Wrapper-for-CKAN-API,DenverDev/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API,DenverDev/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API | CkanDotNet.Web/Views/Theme/CastleRock/_HomeHeader.cshtml | CkanDotNet.Web/Views/Theme/CastleRock/_HomeHeader.cshtml | @using CkanDotNet.Web.Models.Helpers
<p>As part of an initiative to improve the accessibility, transparency, and
accountability of the Town of Castle Rock, this catalog provides open access to town-managed data.
</p>
@if (SettingsHelper.GetUserVoiceEnabled()) {
<p>We invite you to actively participate in shapin... | @using CkanDotNet.Web.Models.Helpers
<p>As part of an initiative to improve the accessibility, transparency, and
accountability of the Town of Castle Rock, this catalog provides open access to City-managed data.
</p>
@if (SettingsHelper.GetUserVoiceEnabled()) {
<p>We invite you to actively participate in shapin... | apache-2.0 | C# |
7082785eadfbe3088079a26996588210159c5497 | Update to Problem 10. Fibonacci Numbers | SimoPrG/CSharpPart1Homework | Console-IO-Homework/FibonacciNumbers/FibonacciNumbers.cs | Console-IO-Homework/FibonacciNumbers/FibonacciNumbers.cs | /*Problem 10. Fibonacci Numbers
Write a program that reads a number n and prints on the console the first n members of the Fibonacci sequence
(at a single line, separated by comma and space - ,) : 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, ….
Note: You may need to learn how to use loops.
Examples:
n... | /*Problem 10. Fibonacci Numbers
Write a program that reads a number n and prints on the console the first n members of the Fibonacci sequence
(at a single line, separated by comma and space - ,) : 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, ….
Note: You may need to learn how to use loops.
Examples:
n... | mit | C# |
70c95da106bbc997d4f63a3915f5da363a4bcb68 | remove settingfields.none | AsrOneSdk/azure-sdk-for-net,ayeletshpigelman/azure-sdk-for-net,jackmagic313/azure-sdk-for-net,markcowl/azure-sdk-for-net,jackmagic313/azure-sdk-for-net,brjohnstmsft/azure-sdk-for-net,AsrOneSdk/azure-sdk-for-net,stankovski/azure-sdk-for-net,hyonholee/azure-sdk-for-net,brjohnstmsft/azure-sdk-for-net,ayeletshpigelman/azur... | src/SDKs/Azure.ApplicationModel.Configuration/data-plane/Azure.ApplicationModel.Configuration/SettingFields.cs | src/SDKs/Azure.ApplicationModel.Configuration/data-plane/Azure.ApplicationModel.Configuration/SettingFields.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
using System;
namespace Azure.ApplicationModel.Configuration
{
[Flags]
public enum SettingFields : uint
{
Key = 0x0001,
Label = 0x... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
using System;
namespace Azure.ApplicationModel.Configuration
{
[Flags]
public enum SettingFields : uint
{
None = 0x0000,
Key = 0x0... | mit | C# |
ac7d56ecdbe334b831f733b6230e08702bcb1830 | Remove unused constructor and dependencies | larsbrubaker/MatterControl,mmoening/MatterControl,jlewin/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,jlewin/MatterControl,unlimitedbacon/MatterControl,larsbrubaker/MatterControl,larsbrubaker/MatterControl,jlewin/MatterControl,mmoening/MatterControl,mmoening/MatterControl,unlimitedbacon/MatterControl... | MatterControlLib/SlicerConfiguration/SliceSettingData.cs | MatterControlLib/SlicerConfiguration/SliceSettingData.cs | /*
Copyright (c) 2018, Kevin Pope, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and th... | /*
Copyright (c) 2018, Kevin Pope, John Lewin
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and th... | bsd-2-clause | C# |
2a5a3f5992663ce45a0e4080f03514eb4946ee5c | Change default HttpTimeout to 120 seconds | MrHant/tiver-fowl.Drivers,MrHant/tiver-fowl.Drivers | Tiver.Fowl.Drivers/Configuration/DriversConfiguration.cs | Tiver.Fowl.Drivers/Configuration/DriversConfiguration.cs | using System.IO;
using System.Reflection;
namespace Tiver.Fowl.Drivers.Configuration
{
public class DriversConfiguration
{
/// <summary>
/// Location for binaries to be saved
/// Defaults to assembly location
/// </summary>
public string DownloadLocation { get; set; } =... | using System.IO;
using System.Reflection;
namespace Tiver.Fowl.Drivers.Configuration
{
public class DriversConfiguration
{
/// <summary>
/// Location for binaries to be saved
/// Defaults to assembly location
/// </summary>
public string DownloadLocation { get; set; } =... | mit | C# |
705bd5f766cce0ace4c2dfe8269c32c33a8e0b02 | Use new labels | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/TestLineChartViewModel.cs | WalletWasabi.Fluent/ViewModels/TestLineChartViewModel.cs | using System.Collections.Generic;
namespace WalletWasabi.Fluent.ViewModels
{
public class TestLineChartViewModel
{
public List<double> Values => new List<double>()
{
15,
22,
44,
50,
64,
68,
92,
114,... | using System.Collections.Generic;
namespace WalletWasabi.Fluent.ViewModels
{
public class TestLineChartViewModel
{
public List<double> Values => new List<double>()
{
15,
22,
44,
50,
64,
68,
92,
114,... | mit | C# |
eda7b081fa0b91c1dd41a647e647d65438823196 | Support complex field- and record separators | arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5 | src/Arkivverket.Arkade/Core/Addml/Definitions/Separator.cs | src/Arkivverket.Arkade/Core/Addml/Definitions/Separator.cs | using System;
using System.Collections.Generic;
using Arkivverket.Arkade.Util;
namespace Arkivverket.Arkade.Core.Addml.Definitions
{
public class Separator
{
private static readonly Dictionary<string, string> SpecialSeparators = new Dictionary<string, string>
{
{"CRLF", "\r... | using System;
using System.Collections.Generic;
using Arkivverket.Arkade.Util;
namespace Arkivverket.Arkade.Core.Addml.Definitions
{
public class Separator
{
private static readonly Dictionary<string, string> SpecialSeparators = new Dictionary<string, string>
{
{"CRLF", "\r... | agpl-3.0 | C# |
d10cf47c1eef0a7974f162285310b38df4621f3f | Add equality methods to MethodImplementation. | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver | src/AsmResolver.DotNet/MethodImplementation.cs | src/AsmResolver.DotNet/MethodImplementation.cs | using System;
namespace AsmResolver.DotNet
{
/// <summary>
/// Defines an explicit implementation of a method defined by an interface.
/// </summary>
public readonly struct MethodImplementation : IEquatable<MethodImplementation>
{
/// <summary>
/// Creates a new explicit implementat... | namespace AsmResolver.DotNet
{
/// <summary>
/// Defines an explicit implementation of a method defined by an interface.
/// </summary>
public readonly struct MethodImplementation
{
/// <summary>
/// Creates a new explicit implementation of a method.
/// </summary>
//... | mit | C# |
791b2adabe05303c26be9d3ba9113e0e04dcfb28 | Remove unused ctor | AlexanderSher/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,Alexander... | src/Common/Core/Test/Registry/RegistryMocks.cs | src/Common/Core/Test/Registry/RegistryMocks.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.Common.Core.OS;
using Microsoft.Win32;
namespace Microsoft.Common.Core.Test.Registry {
public sealed class RegistryMock : IRegistry {
pr... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using Microsoft.Common.Core.OS;
using Microsoft.Win32;
namespace Microsoft.Common.Core.Test.Registry {
public sealed class RegistryMock : IRegistry {
pr... | mit | C# |
8ea473a00165cc9da021a40ee076d0077aaa8961 | Format Format0SubTable | SixLabors/Fonts | src/SixLabors.Fonts/Tables/General/CMap/Format0SubTable.cs | src/SixLabors.Fonts/Tables/General/CMap/Format0SubTable.cs | // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using SixLabors.Fonts.WellKnownIds;
namespace SixLabors.Fonts.Tables.General.CMap
{
internal sealed class Format0SubTable : CMapSubTable
{
public Format0SubTable(ushort l... | // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System.Collections.Generic;
using SixLabors.Fonts.WellKnownIds;
namespace SixLabors.Fonts.Tables.General.CMap
{
internal sealed class Format0SubTable : CMapSubTable
{
internal byte[] GlyphIds { get;... | apache-2.0 | C# |
3da117a50f0d28882579066452057926d7a3536a | Use awake in GameController | emazzotta/unity-tower-defense | Assets/Scripts/GameController.cs | Assets/Scripts/GameController.cs | using UnityEngine;
using System.Collections;
public class GameController : MonoBehaviour {
public GameObject towerBaseWrap;
public GameObject originalTowerBase;
public GameObject gameField;
private GameObject[,] towerBases;
private GameObject[] waypoints;
private int gameFieldWidth = 0;
private int gameFiel... | using UnityEngine;
using System.Collections;
public class GameController : MonoBehaviour {
public GameObject towerBaseWrap;
public GameObject originalTowerBase;
public GameObject gameField;
private GameObject[,] towerBases;
private GameObject[] waypoints;
private int gameFieldWidth = 0;
private int gameFiel... | mit | C# |
a57306caeef34ed3705639afa88ca230027f1e0a | Check to make sure we have jukebox songs before trying to play one. | winnitron/WinnitronLauncher,winnitron/WinnitronLauncher | Assets/Scripts/System/Jukebox.cs | Assets/Scripts/System/Jukebox.cs | using UnityEngine;
using UnityEngine.UI;
public class Jukebox : MonoBehaviour {
public bool isPlaying;
public Text artistName;
public Text songName;
private int currentTrack;
private AudioSource source;
protected void Start() {
source = gameObject.GetComponent<AudioSource> ();
NextTra... | using UnityEngine;
using UnityEngine.UI;
public class Jukebox : MonoBehaviour {
public bool isPlaying;
public Text artistName;
public Text songName;
private int currentTrack;
private AudioSource source;
protected void Start() {
source = gameObject.GetComponent<AudioSource> ();
NextTra... | mit | C# |
a8e8c25f32b091d257b66269bbfd2cb66a251e7b | Add MoveLeft to MainCharacter | runnersQueue/3minutes | CC-X/CC-X/Model/MainCharacter.cs | CC-X/CC-X/Model/MainCharacter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Urho;
namespace CC_X.Model
{
class MainCharacter : World, Serializer
{
public Vector3 PositionSinceLastCollide { get; set; }
public MainCharacter()
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Urho;
namespace CC_X.Model
{
class MainCharacter : World, Serializer
{
public Vector3 PositionSinceLastCollide { get; set; }
public MainCharacter()
... | mit | C# |
9e7b2df9b2f7b8dc14bff481799b49df131d041d | add alternate data path to support CLI vs VS seed test | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | tests/FilterLists.Data.Tests/SeedFilterListsDbContextTests.cs | tests/FilterLists.Data.Tests/SeedFilterListsDbContextTests.cs | using System.IO;
using FilterLists.Data.Seed.Extensions;
using Microsoft.EntityFrameworkCore;
using MySql.Data.MySqlClient;
using Xunit;
namespace FilterLists.Data.Tests
{
public class SeedFilterListsDbContextTests
{
private const string CiTestServerConnString = "Server=localhost;Uid=travis;";
... | using FilterLists.Data.Seed.Extensions;
using Microsoft.EntityFrameworkCore;
using MySql.Data.MySqlClient;
using Xunit;
namespace FilterLists.Data.Tests
{
public class SeedFilterListsDbContextTests
{
private const string CiTestServerConnString = "Server=localhost;Uid=travis;";
private const str... | mit | C# |
5a32e601417afa8943cdb097652e0e17ad15c956 | Use of UnityWebRequest for default http client. | clanofthecloud/unity-sdk,clanofthecloud/unity-sdk,xtralifecloud/unity-sdk,xtralifecloud/unity-sdk,clanofthecloud/unity-sdk,clanofthecloud/unity-sdk,xtralifecloud/unity-sdk,clanofthecloud/unity-sdk,xtralifecloud/unity-sdk,clanofthecloud/unity-sdk | CotcSdk/Internal/CotcSettings.cs | CotcSdk/Internal/CotcSettings.cs | using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
namespace CotcSdk {
/** @cond private */
[Serializable]
public class CotcSettings : ScriptableObject {
public const string AssetPath = "Assets/Resources/CotcSettings.asset";
public static CotcSettings Instance {
get {
... | using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
namespace CotcSdk {
/** @cond private */
[Serializable]
public class CotcSettings : ScriptableObject {
public const string AssetPath = "Assets/Resources/CotcSettings.asset";
public static CotcSettings Instance {
get {
... | mit | C# |
172034f4b1ed868e2ae8d51b259a9999be5fd4bd | Test window move. | JohanLarsson/Gu.Wpf.UiAutomation | Gu.Wpf.UiAutomation.UiTests/Elements/WindowTests.cs | Gu.Wpf.UiAutomation.UiTests/Elements/WindowTests.cs | namespace Gu.Wpf.UiAutomation.UiTests.Elements
{
using System.Globalization;
using System.Linq;
using NUnit.Framework;
public class WindowTests
{
private const string ExeFileName = "WpfApplication.exe";
[Test]
public void Close()
{
using (var app = Appli... | namespace Gu.Wpf.UiAutomation.UiTests.Elements
{
using System.Globalization;
using System.Linq;
using NUnit.Framework;
public class WindowTests
{
private const string ExeFileName = "WpfApplication.exe";
[Test]
public void Close()
{
using (var app = Appli... | mit | C# |
f8ef53a62e0f4fecc26a614373749ccf08b14d43 | Fix tests. | smoogipoo/osu,ppy/osu,smoogipooo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu,smoogipoo/osu,peppy/osu-new,peppy/osu,NeoAdonis/osu,UselessToucan/osu | osu.Game.Tests/Visual/Gameplay/TestSceneOverlayActivation.cs | osu.Game.Tests/Visual/Gameplay/TestSceneOverlayActivation.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 NUnit.Framework;
using osu.Game.Configuration;
using osu.Game.Overlays;
using osu.Game.Rulesets;
namespace osu.Game.Tests.Visual.Gameplay
{
public class TestS... | // 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 NUnit.Framework;
using osu.Framework.Allocation;
using osu.Game.Configuration;
using osu.Game.Overlays;
using osu.Game.Rulesets;
namespace osu.Game.Tests.Visual.G... | mit | C# |
21543a78e7c6d8aea949ee83b421afc804c1040b | Fix the display of the door | DragonEyes7/ConcoursUBI17,DragonEyes7/ConcoursUBI17 | Proto/Assets/Scripts/Time/Recorders/DoorRecorder.cs | Proto/Assets/Scripts/Time/Recorders/DoorRecorder.cs | using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class DoorRecorder : Recorder
{
private RecordState _previousState;
private bool _isOpen;
private readonly Dictionary<int, DoorRecordState> _states = new Dictionary<int, DoorRecordState>();
[SerializeField]
private ne... | using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class DoorRecorder : Recorder
{
private RecordState _previousState;
private bool _isOpen;
private readonly Dictionary<int, DoorRecordState> _states = new Dictionary<int, DoorRecordState>();
[SerializeField]
private ne... | mit | C# |
37ae30eb4f85417502794bdc1c0b22d5f6158237 | add stop method | splitice/RespServer,splitice/RespServer | RespServer/RespServerListener.cs | RespServer/RespServerListener.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Mina.Core.Service;
using Mina.Core.Session;
using Mina.Filter.Codec;
using Mina.Transport.Socket;
using RespServer.Commands;
using RespServer.Mina;
using RespServer.Protocol;
nam... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using Mina.Core.Service;
using Mina.Core.Session;
using Mina.Filter.Codec;
using Mina.Transport.Socket;
using RespServer.Commands;
using RespServer.Mina;
using RespServer.Protocol;
nam... | mit | C# |
a76ac89222b9fb3967fc9bd2635bc355650b4855 | Fix issue where test wasn't completing in SL runner. | JasonBock/csla,BrettJaner/csla,jonnybee/csla,JasonBock/csla,ronnymgm/csla-light,rockfordlhotka/csla,ronnymgm/csla-light,BrettJaner/csla,rockfordlhotka/csla,BrettJaner/csla,MarimerLLC/csla,ronnymgm/csla-light,MarimerLLC/csla,MarimerLLC/csla,jonnybee/csla,jonnybee/csla,rockfordlhotka/csla,JasonBock/csla | cslatest/Csla.Test/Utilities/CorerseValueTests.cs | cslatest/Csla.Test/Utilities/CorerseValueTests.cs | using Csla;
using Csla.DataPortalClient;
using Csla.Testing.Business.ReadOnlyTest;
using System;
using Csla.Testing.Business.Security;
using UnitDriven;
#if NUNIT
using NUnit.Framework;
using TestClass = NUnit.Framework.TestFixtureAttribute;
using TestInitialize = NUnit.Framework.SetUpAttribute;
using Test... | using Csla;
using Csla.DataPortalClient;
using Csla.Testing.Business.ReadOnlyTest;
using System;
using Csla.Testing.Business.Security;
using UnitDriven;
#if NUNIT
using NUnit.Framework;
using TestClass = NUnit.Framework.TestFixtureAttribute;
using TestInitialize = NUnit.Framework.SetUpAttribute;
using Test... | mit | C# |
b22c88b567cfcc279a8cd3d6bbc766586c4cd766 | Fix CDN urls to match the fallback source folders' versions | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/UI/Areas/Identity/Pages/_ValidationScriptsPartial.cshtml | src/UI/Areas/Identity/Pages/_ValidationScriptsPartial.cshtml | <environment include="Development">
<script src="~/Identity/lib/jquery-validation/dist/jquery.validate.js"></script>
<script src="~/Identity/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
</environment>
<environment exclude="Development">
<script src="https://ajax.aspnetcdn.com... | <environment include="Development">
<script src="~/Identity/lib/jquery-validation/dist/jquery.validate.js"></script>
<script src="~/Identity/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
</environment>
<environment exclude="Development">
<script src="https://ajax.aspnetcdn.com... | apache-2.0 | C# |
54a493f87aa8b7772cd826c2170f902b54766bf1 | Use svg as symbol in WritableLayerSample | charlenni/Mapsui,charlenni/Mapsui | Samples/Mapsui.Samples.Common/Maps/Special/WritableLayerSample.cs | Samples/Mapsui.Samples.Common/Maps/Special/WritableLayerSample.cs | using Mapsui.Layers;
using Mapsui.Nts;
using Mapsui.Samples.Common;
using Mapsui.Styles;
using Mapsui.Tiling;
using Mapsui.UI;
using Mapsui.Utilities;
using NetTopologySuite.Geometries;
namespace Mapsui.Tests.Common.Maps
{
public class WritableLayerSample : ISample
{
public string Name => "WritableLay... | using Mapsui.Layers;
using Mapsui.Nts;
using Mapsui.Samples.Common;
using Mapsui.Tiling;
using Mapsui.UI;
using NetTopologySuite.Geometries;
namespace Mapsui.Tests.Common.Maps
{
public class WritableLayerSample : ISample
{
public string Name => "WritableLayer";
public string Category => "Speci... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.