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 |
|---|---|---|---|---|---|---|---|---|
09de28373f328a0b44f3e08190cc88b4fc6c2bb0 | Add missing repository | cezarypiatek/Tellurium,cezarypiatek/Tellurium,cezarypiatek/MaintainableSelenium,cezarypiatek/MaintainableSelenium,cezarypiatek/MaintainableSelenium,cezarypiatek/Tellurium | Src/VisualAssertions/Screenshots/AssertView.cs | Src/VisualAssertions/Screenshots/AssertView.cs | using System;
using Tellurium.MvcPages.BrowserCamera;
using Tellurium.VisualAssertions.Infrastructure.Persistence;
using Tellurium.VisualAssertions.Screenshots.Domain;
using Tellurium.VisualAssertions.TestRunersAdapters;
namespace Tellurium.VisualAssertions.Screenshots
{
public static class AssertView
{
... | using System;
using Tellurium.MvcPages.BrowserCamera;
using Tellurium.VisualAssertions.Infrastructure.Persistence;
using Tellurium.VisualAssertions.Screenshots.Domain;
using Tellurium.VisualAssertions.TestRunersAdapters;
namespace Tellurium.VisualAssertions.Screenshots
{
public static class AssertView
{
... | mit | C# |
4f05b30f77ecd69980f6a3b39cb6e14c2150e452 | test fix for can_handle_inherited_messages | PKI-InVivo/reactive-domain | src/ReactiveDomain.Messaging.Tests/Subscribers/QueuedSubscriber/can_handle_inherited_messages.cs | src/ReactiveDomain.Messaging.Tests/Subscribers/QueuedSubscriber/can_handle_inherited_messages.cs | using ReactiveDomain.Testing;
using Xunit;
namespace ReactiveDomain.Messaging.Tests.Subscribers.QueuedSubscriber
{
// ReSharper disable once InconsistentNaming
public sealed class can_handle_inherited_messages : IClassFixture<QueuedSubscriberFixture>
{
private readonly QueuedSubscriberFixture _fix... | using ReactiveDomain.Testing;
using Xunit;
namespace ReactiveDomain.Messaging.Tests.Subscribers.QueuedSubscriber
{
// ReSharper disable once InconsistentNaming
public sealed class can_handle_inherited_messages : IClassFixture<QueuedSubscriberFixture>
{
private readonly QueuedSubscriberFixture _fix... | mit | C# |
9783248c9b7d1c840559237385f31479e25d5d25 | fix right click | Avanturik/Ubiquitous2,Avanturik/Ubiquitous2 | Ubiquitous2/Interactivity/DragThumbBehavior.cs | Ubiquitous2/Interactivity/DragThumbBehavior.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Interactivity;
namespace UB.Interactivity
{
public class DragThumb :Behavior<UIElement>
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Interactivity;
namespace UB.Interactivity
{
public class DragThumb :Behavior<UIElement>
{
... | mit | C# |
529c9c5b36eeb50477ba6870c71147b9f3bbc34e | fix update sdk version number | NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity,NIFTYCloud-mbaas/ncmb_unity | ncmb_unity/Assets/NCMB/Script/CommonConstant.cs | ncmb_unity/Assets/NCMB/Script/CommonConstant.cs | /*******
Copyright 2017-2018 FUJITSU CLOUD TECHNOLOGIES LIMITED All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requir... | /*******
Copyright 2017-2018 FUJITSU CLOUD TECHNOLOGIES LIMITED All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requir... | apache-2.0 | C# |
b67354c93b579a3029270d59605968796173e1f6 | Support for .p7s extension #412 | roman-yagodin/R7.University,roman-yagodin/R7.University,roman-yagodin/R7.University | R7.University/Utilities/UniversityFileHelper.cs | R7.University/Utilities/UniversityFileHelper.cs | using System;
using DotNetNuke.Common;
using DotNetNuke.Entities.Tabs;
using DotNetNuke.Services.FileSystem;
using R7.Dnn.Extensions.Text;
namespace R7.University.Utilities
{
public class UniversityFileHelper
{
private static readonly Lazy<UniversityFileHelper> _instance = new Lazy<UniversityFileHelper... | using System;
using DotNetNuke.Common;
using DotNetNuke.Entities.Tabs;
using DotNetNuke.Services.FileSystem;
using R7.Dnn.Extensions.Text;
namespace R7.University.Utilities
{
public class UniversityFileHelper
{
private static readonly Lazy<UniversityFileHelper> _instance = new Lazy<UniversityFileHelper... | agpl-3.0 | C# |
273ea7a82b77069f646912ba0d6566b5b16af081 | Normalise line endings | jameswiseman76/JsGoogleCompile,jameswiseman76/JsGoogleCompile,jameswiseman76/JsGoogleCompile | JsGoogleCompile.Tests/JSGoogleCompile.CLI/ArgumentRules/IsValidWarningSuppressionArgumentTests.cs | JsGoogleCompile.Tests/JSGoogleCompile.CLI/ArgumentRules/IsValidWarningSuppressionArgumentTests.cs | namespace JsGoogleCompile.Tests
{
using System;
using System.Linq;
using JsGoogleCompile.CLI;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System.Collections.Generic;
[TestClass]
public class IsValidWarningSuppressionArgumentTests
{
[Te... | namespace JsGoogleCompile.Tests
{
using System;
using System.Linq;
using JsGoogleCompile.CLI;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System.Collections.Generic;
[TestClass]
public class IsValidWarningSuppressionArgumentTests
{
[TestMethod]... | mit | C# |
d8c9a9246b6490bb97bbddbbd07b17c37d9d8270 | Comment tidy. | invertedtomato/integer-compression | InvertedTomato.Common/Utilities/GuidUtility.cs | InvertedTomato.Common/Utilities/GuidUtility.cs | using System;
using System.Security.Cryptography;
using System.Text;
namespace InvertedTomato {
public class GuidUtility {
/// <summary>
/// Create a GUID from a given integer. Useful for legacy interfacing.
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
public static Guid Create... | using System;
using System.Security.Cryptography;
using System.Text;
namespace InvertedTomato {
public class GuidUtility {
/// <summary>
/// Create a GUID from a given integer. Useful for legacy interfacing.
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
public static Guid Create... | mit | C# |
ddc031768c16ed6d9f33ba3190df003c6f37dc82 | Add to | stripe/stripe-dotnet | src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAcssDebit.cs | src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAcssDebit.cs | namespace Stripe
{
using Newtonsoft.Json;
public class ChargePaymentMethodDetailsAcssDebit : StripeEntity<ChargePaymentMethodDetailsAcssDebit>
{
/// <summary>
/// Name of the bank associated with the bank account.
/// </summary>
[JsonProperty("bank_name")]
public str... | namespace Stripe
{
using Newtonsoft.Json;
public class ChargePaymentMethodDetailsAcssDebit : StripeEntity<ChargePaymentMethodDetailsAcssDebit>
{
/// <summary>
/// Uniquely identifies this particular bank account. You can use this attribute to check
/// whether two bank accounts are ... | apache-2.0 | C# |
92f0eb76611bb79b6976ac6d5fba3d9016cfa206 | Update XProperty.cs | wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D | src/Core2D/Data/XProperty.cs | src/Core2D/Data/XProperty.cs | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Core2D.Attributes;
namespace Core2D.Data
{
/// <summary>
/// Data property.
/// </summary>
public class XProperty : ObservableObject
{
... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Core2D.Attributes;
namespace Core2D.Data
{
/// <summary>
/// Data property.
/// </summary>
public class XProperty : ObservableObject
{
... | mit | C# |
997f9a676c0cb2f2829dbe86804a257f104a4beb | add default | wolfspelz/KataFromRomanNumerals | FromRomanNumerals/Program.cs | FromRomanNumerals/Program.cs | using System;
namespace FromRomanNumerals
{
class Program
{
static void Main()
{
Console.WriteLine("Please enter a roman number (<quit> to exit) [MMXVII]:");
string line;
while ((line = Console.ReadLine()) != "quit")
{
try
... | using System;
namespace FromRomanNumerals
{
class Program
{
static void Main()
{
Console.WriteLine("Please enter a roman number (ENTER to exit):");
string line;
while ((line = Console.ReadLine()) != "")
{
try
{
... | bsd-3-clause | C# |
24070f6ac8b815417324e563345bc9f852ad3be3 | Fix whitespace formatting | shyamnamboodiripad/roslyn,KirillOsenkov/roslyn,diryboy/roslyn,stephentoub/roslyn,weltkante/roslyn,brettfo/roslyn,sharwell/roslyn,stephentoub/roslyn,tannergooding/roslyn,aelij/roslyn,genlu/roslyn,mavasani/roslyn,aelij/roslyn,davkean/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,eriawan/roslyn,genlu/roslyn,davkean/rosly... | 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.Code... | // 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# |
fcffa8721297f9522227a95f2a0cc787b005635c | Fix bucketSettingsTest compilation issue | aliyun/aliyun-oss-csharp-sdk | test/TestCase/BucketTestCase/BucketSettingsTest.cs | test/TestCase/BucketTestCase/BucketSettingsTest.cs | using Aliyun.OSS;
using Aliyun.OSS.Test.Util;
using NUnit.Framework;
namespace Aliyun.OSS.Test.TestClass.BucketTestClass
{
[TestFixture]
public partial class BucketSettingsTest
{
private static IOss _ossClient;
private static string _className;
private static string _b... | using Aliyun.OSS;
using Aliyun.OSS.Test.Util;
using NUnit.Framework;
namespace Aliyun.OSS.Test.TestClass.BucketTestClass
{
[TestFixture]
public partial class BucketSettingsTest
{
private static IOss _ossClient;
private static string _className;
private static string _b... | mit | C# |
e22d3a7045037ad6dab687ab19c0deaf408485f8 | Create directory if needed | ysanghi/Vipr,tonycrider/Vipr,tonycrider/Vipr,MSOpenTech/Vipr,Microsoft/Vipr,v-am/Vipr | src/Core/Vipr/FileWriter.cs | src/Core/Vipr/FileWriter.cs | using System;
using System.Collections.Generic;
using System.IO;
using Vipr.Core;
namespace Vipr
{
internal static class FileWriter
{
public static void Write(IEnumerable<TextFile> textFilesToWrite, string outputDirectoryPath = null)
{
if (!string.IsNullOrWhiteSpace(outputDirec... | using System;
using System.Collections.Generic;
using System.IO;
using Vipr.Core;
namespace Vipr
{
internal static class FileWriter
{
public static void Write(IEnumerable<TextFile> textFilesToWrite, string outputDirectoryPath = null)
{
if (!string.IsNullOrWhiteSpace(outputDirec... | mit | C# |
d38db33c6121c3f9beddf7809486354934ad4690 | fix projects view not showing online collaborators | ribombee/mothman-dad-city,ribombee/mothman-dad-city,ribombee/mothman-dad-city,ribombee/mothman-dad-city | VLN2-H27/VLN2-H27/Views/Editor/projects.cshtml | VLN2-H27/VLN2-H27/Views/Editor/projects.cshtml | @{
ViewBag.Title = "projects";
var projects = ViewBag.projects;
var projectIdsJson = ViewBag.projectIdsJson;
}
<!-- Link project page CSS to HTML-->
<link rel="stylesheet" href="../../Content/ProjectStyle.css">
<div id="projects-body">
@Html.Partial("NewProjectPartial")
<hr id="projects-body-hr" /... | @{
ViewBag.Title = "projects";
var projects = ViewBag.projects;
var projectIdsJson = ViewBag.projectIdsJson;
}
<!-- Link project page CSS to HTML-->
<link rel="stylesheet" href="../../Content/ProjectStyle.css">
<div id="projects-body">
@Html.Partial("NewProjectPartial")
<hr id="projects-body-hr" /... | mit | C# |
e03a278a080eee17658f04b8f11e0202f2967487 | Hide async warning | ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab,ucdavis/Anlab | Anlab.Mvc/Services/ITestItemPriceService.cs | Anlab.Mvc/Services/ITestItemPriceService.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Anlab.Core.Data;
using Anlab.Core.Models;
using Microsoft.EntityFrameworkCore;
namespace AnlabMvc.Services
{
public interface ITestItemPriceService
{
Task<IList<TestItemPrices>> GetPrices... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Anlab.Core.Data;
using Anlab.Core.Models;
using Microsoft.EntityFrameworkCore;
namespace AnlabMvc.Services
{
public interface ITestItemPriceService
{
Task<IList<TestItemPrices>> GetPrices... | mit | C# |
69f0ed0aa6986b529fb37c39d3038be679ff2f00 | fix filename | darvell/Coremero | Coremero/Coremero.Plugin.Weather/WeatherPlugin.cs | Coremero/Coremero.Plugin.Weather/WeatherPlugin.cs | using System;
using System.IO;
using System.Threading.Tasks;
using Coremero.Utilities;
using Coremero.Commands;
using Coremero.Attachments;
using Coremero.Context;
using Coremero.Messages;
using Coremero.Storage;
namespace Coremero.Plugin.Weather
{
public class WeatherPlugin : IPlugin
{
private string... | using System;
using System.IO;
using System.Threading.Tasks;
using Coremero.Utilities;
using Coremero.Commands;
using Coremero.Attachments;
using Coremero.Context;
using Coremero.Messages;
using Coremero.Storage;
namespace Coremero.Plugin.Weather
{
public class WeatherPlugin : IPlugin
{
private string... | mit | C# |
33edfb1f1a6ef754a1b9a0fb6edabc06a6a8fd5c | add test for no-arg rounding | mikebridge/Liquid.NET,mikebridge/Liquid.NET,mikebridge/Liquid.NET | Liquid.NET.Tests/Filters/Math/RoundFilterTests.cs | Liquid.NET.Tests/Filters/Math/RoundFilterTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Liquid.NET.Tests.Filters.Math
{
[TestFixture]
public class RoundFilterTests
{
[Test]
[Tes... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Liquid.NET.Tests.Filters.Math
{
[TestFixture]
public class RoundFilterTests
{
[Test]
[Tes... | mit | C# |
fffefb3137b35e5c49d497cb691cd6c2fe961f1b | Fix get messages url. Fix send message syntax error. | Mikuz/Battlezeppelins,Mikuz/Battlezeppelins | Battlezeppelins/Views/Shared/ChatBox.cshtml | Battlezeppelins/Views/Shared/ChatBox.cshtml | <div style="height:436px; overflow: hidden;padding-left: 15px;padding-right: 15px;">
<div class="row well" style="padding:0px;margin-bottom: 3px;">
<ul class="list-inline" style="margin:2px;">
<li>
<small class="text-primary">{{msg.time | chatTime}}</small>
</li>
<li class="text-primary... | <div style="height:436px; overflow: hidden;padding-left: 15px;padding-right: 15px;">
<div class="row well" style="padding:0px;margin-bottom: 3px;">
<ul class="list-inline" style="margin:2px;">
<li>
<small class="text-primary">{{msg.time | chatTime}}</small>
</li>
<li class="text-primary... | apache-2.0 | C# |
ce17e9b02b5f4d97a33dbd214893b1d835dcd03e | update GameManager CRLF | GROWrepo/Santa_Inc | Assets/script/monoBehavior/GameManager.cs | Assets/script/monoBehavior/GameManager.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour {
STATUS_GAME SG;
dialog current;
// Use this for initialization
void Start () {
SG = STATUS_GAME.MENU;
current = null;
}
// Update is called once pe... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour {
STATUS_GAME SG;
dialog current;
// Use this for initialization
void Start () {
SG = STATUS_GAME.MENU;
current = null;
}
// Update is called once per fram... | mit | C# |
094d8f30ccfe9aec0148d302cec55e6a2f6636a5 | Update TitleCapitalization.cs | michaeljwebb/Algorithm-Practice | Other/TitleCapitalization.cs | Other/TitleCapitalization.cs | //Capitalize(first letter) the first word in a title.
//Capitalize(first letter) the last word in a title.
//Lowercase the following words unless they are first or last word of the title: "a", "the", "to", "at", "in", "with", "and", "but", "or"
//Capitalize(first letter) any words not in the list above.
using System;
u... | //Capitalize(first letter) the first word in a title.
//Capitalize(first letter) the last word in a title.
//Lowercase the following words unless they are first or last word of the title: "a", "the", "to", "at", "in", "with", "and", "but", "or"
//Capitalize(first letter) any words not in the list above.
using System;
u... | mit | C# |
af2316e48c3b0f066374886a301ee0026c22f5f2 | Use Enum.Parse overload available in PCL | cureos/Evil-DICOM | EvilDICOM.Core/EvilDICOM.Core/Helpers/EnumHelper.cs | EvilDICOM.Core/EvilDICOM.Core/Helpers/EnumHelper.cs | using System;
namespace EvilDICOM.Core.Helpers
{
public class EnumHelper
{
public static T StringToEnum<T>(string name)
{
return (T) Enum.Parse(typeof (T), name, false);
}
}
} | using System;
namespace EvilDICOM.Core.Helpers
{
public class EnumHelper
{
public static T StringToEnum<T>(string name)
{
return (T) Enum.Parse(typeof (T), name);
}
}
} | mit | C# |
d2c77c07f5bbe98326aea552ce09fa217318c911 | add producer. | ouraspnet/cap,dotnetcore/CAP,dotnetcore/CAP,dotnetcore/CAP | src/Cap.Consistency/Producer/IProducerClient.cs | src/Cap.Consistency/Producer/IProducerClient.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Cap.Consistency.Producer
{
public interface IProducerClient
{
Task SendAsync(string topic, string content);
}
}
| using System;
using System.Collections.Generic;
using System.Text;
namespace Cap.Consistency.Producer
{
public interface IProducerClient
{
}
}
| mit | C# |
7a838a64be05d2cd87a0dc437c8a342c3fcabcdb | Include compilation messages to exception message | toddams/RazorLight,toddams/RazorLight | src/RazorLight/Compilation/CompilationResult.cs | src/RazorLight/Compilation/CompilationResult.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace RazorLight.Compilation
{
/// <summary>
/// Represents the result of compilation.
/// </summary>
public struct CompilationResult
{
/// <summary>
/// Initializes a new instance of <see cref="CompilationResult"/> for a successful compi... | using System;
using System.Collections.Generic;
namespace RazorLight.Compilation
{
/// <summary>
/// Represents the result of compilation.
/// </summary>
public struct CompilationResult
{
/// <summary>
/// Initializes a new instance of <see cref="CompilationResult"/> for a successful compilation.
/// </sum... | apache-2.0 | C# |
b3cd9de55367da7da037e779cb4c195d71613547 | use development connection | corker/estuite | Estuite/Estuite.Example/ProgramConfiguration.cs | Estuite/Estuite.Example/ProgramConfiguration.cs | using Estuite.AzureEventStore;
using Estuite.Example.Configuration;
namespace Estuite.Example
{
public class ProgramConfiguration : IEventStoreConfiguration, ICloudStorageAccountConfiguration
{
public string ConnectionString => "UseDevelopmentStorage=true";
public string StreamTableName => "es... | using Estuite.AzureEventStore;
using Estuite.Example.Configuration;
namespace Estuite.Example
{
public class ProgramConfiguration : IEventStoreConfiguration, ICloudStorageAccountConfiguration
{
//public string ConnectionString => "UseDevelopmentStorage=true";
public string ConnectionString => ... | mit | C# |
a420af67b72e470b9481d6b2eca29f7c7c2254d2 | Fix French translation | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | samples/MvcSample.Web/Views/Shared/fr/_Layout.cshtml | samples/MvcSample.Web/Views/Shared/fr/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Ma Requête ASP.NET</title>
<link rel="stylesheet" href="~/content/bootstrap.min.css" />
<style>
body {
padding-top: 60px;
... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Ma Demande ASP.NET</title>
<link rel="stylesheet" href="~/content/bootstrap.min.css" />
<style>
body {
padding-top: 60px;
... | apache-2.0 | C# |
cc92fc77fdbcdba17b01131d20a11f882d90f733 | Add test | sakapon/Samples-2016,sakapon/Samples-2016 | MathSample/PropositionsConsole/Program.cs | MathSample/PropositionsConsole/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Blaze.Propositions;
using static Blaze.Propositions.Formula;
namespace PropositionsConsole
{
class Program
{
static void Main(string[] args)
{
var p = Variable("P");
var q = Variable("... | using System;
using System.Collections.Generic;
using System.Linq;
using Blaze.Propositions;
using static Blaze.Propositions.Formula;
namespace PropositionsConsole
{
class Program
{
static void Main(string[] args)
{
var p = Variable("P");
var q = Variable("... | mit | C# |
8f57fd4495433a4b3d7a608fac00f4dfed1bbc05 | Tag release with updated version number. | dneelyep/MonoGameUtils | MonoGameUtils/UI/GameComponents/Button.cs | MonoGameUtils/UI/GameComponents/Button.cs | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGameUtils.UI.GameComponents
{
/// <summary>
/// Represents a rectangular button that can be clicked in a game.
/// </summary>
public class Button : DrawableGameComponent
{
public SpriteFont Font { get; set... | using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace MonoGameUtils.UI.GameComponents
{
/// <summary>
/// Represents a rectangular button that can be clicked in a game.
/// </summary>
public class Button : DrawableGameComponent
{
public SpriteFont Font { get; set... | mit | C# |
7ecc15a79a85bf10222e2dc092d5d1a13eb769ee | Disable Serilog004 warnings in ILoggerExtensions | github/VisualStudio,github/VisualStudio,github/VisualStudio | src/GitHub.Logging/Logging/ILoggerExtensions.cs | src/GitHub.Logging/Logging/ILoggerExtensions.cs | using System;
using Serilog;
namespace GitHub.Logging
{
public static class ILoggerExtensions
{
public static void Assert(this ILogger logger, bool condition, string messageTemplate)
{
if (!condition)
{
messageTemplate = "Assertion Failed: " + messageTemp... | using System;
using Serilog;
namespace GitHub.Logging
{
public static class ILoggerExtensions
{
public static void Assert(this ILogger logger, bool condition, string messageTemplate)
{
if (!condition)
{
messageTemplate = "Assertion Failed: " + messageTemp... | mit | C# |
31ecba29ad965be7b5d5db5bdef7df15c8a6dcc1 | Make properties a params array | x335/WootzJs,x335/WootzJs,kswoll/WootzJs,kswoll/WootzJs,x335/WootzJs,kswoll/WootzJs | WootzJs.Models/Validation.cs | WootzJs.Models/Validation.cs | #region License
//-----------------------------------------------------------------------
// <copyright>
// The MIT License (MIT)
//
// Copyright (c) 2014 Kirk S Woll
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Softw... | #region License
//-----------------------------------------------------------------------
// <copyright>
// The MIT License (MIT)
//
// Copyright (c) 2014 Kirk S Woll
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Softw... | mit | C# |
05c40a518471f98dc43909783fdcdce75291aa73 | fix File.Create leaving the file open | Pondidum/NuCache,Pondidum/NuCache,Pondidum/NuCache | NuCache.Tests/FileSystemTests/FileExistsTests.cs | NuCache.Tests/FileSystemTests/FileExistsTests.cs | using System;
using System.IO;
using Should;
using Should.Core.Assertions;
namespace NuCache.Tests.FileSystemTests
{
public class FileExistsTests : IDisposable
{
private readonly string _filename;
private readonly FileSystem _fileSystem;
public FileExistsTests()
{
_fileSystem = new FileSystem();
_fi... | using System;
using System.IO;
using Should;
using Should.Core.Assertions;
namespace NuCache.Tests.FileSystemTests
{
public class FileExistsTests : IDisposable
{
private readonly string _filename;
private readonly FileSystem _fileSystem;
public FileExistsTests()
{
_fileSystem = new FileSystem();
_fi... | lgpl-2.1 | C# |
94e75e84f91a39c696e39c8eb6a6d03978768c8b | Handle dir separator better for Mono | maxpiva/CloudFileSystem | NutzCode.CloudFileSystem/AuthorizationFactory.cs | NutzCode.CloudFileSystem/AuthorizationFactory.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using NutzCode.Libraries.Web.StreamProvider;
namespace NutzCode.CloudFileSystem
{
p... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using NutzCode.Libraries.Web.StreamProvider;
namespace NutzCode.CloudFileSystem
{
p... | apache-2.0 | C# |
a33625f4bed1bc074a2d062b7bcd619887c5c94b | Update ICustomDeserializer.cs | tiksn/TIKSN-Framework | TIKSN.Core/Serialization/ICustomDeserializer.cs | TIKSN.Core/Serialization/ICustomDeserializer.cs | namespace TIKSN.Serialization
{
/// <summary>
/// Custom (specialized or typed) deserializer interface
/// </summary>
/// <typeparam name="TSerial">Type to deserialize from, usually string or byte array</typeparam>
public interface ICustomDeserializer<TSerial, TModel>
{
/// <summary... | namespace TIKSN.Serialization
{
/// <summary>
/// Custom (specialized or typed) deserializer interface
/// </summary>
/// <typeparam name="TSerial">Type to deserialize from, usually string or byte array</typeparam>
public interface ICustomDeserializer<TSerial, TModel>
{
/// <summary>
... | mit | C# |
2579ca1f37b500fb6ddc0385afd44dfffc087e18 | Add EF extension method for unique index with column order | TheOtherTimDuncan/TOTD | TOTD.EntityFramework/ConfigurationExtensions.cs | TOTD.EntityFramework/ConfigurationExtensions.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Infrastructure.Annotations;
using System.Data.Entity.ModelConfiguration.Configuration;
using System.Linq;
namespace TOTD.EntityFramework
{
public static class ConfigurationExtensions
{
... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Infrastructure.Annotations;
using System.Data.Entity.ModelConfiguration.Configuration;
using System.Linq;
namespace TOTD.EntityFramework
{
public static class ConfigurationExtensions
{
... | mit | C# |
4626f9425fbef4ce01296c9e4e8b4fa530a046c0 | Update UI/ConferencesIO.UI.Web/Views/Home/Index.cshtml | tekconf/tekconf,tekconf/tekconf | UI/ConferencesIO.UI.Web/Views/Home/Index.cshtml | UI/ConferencesIO.UI.Web/Views/Home/Index.cshtml | @{
ViewBag.Title = "Home Page";
}
<h3>We suggest the following steps:</h3>
<ul>
<li>Install CI server</li>
<li>Install OctopusDeploy</li>
<li>????</li>
<li>Profit</li>
</ul>
| @{
ViewBag.Title = "Home Page";
}
<h3>We suggest the following steps:</h3>
| mit | C# |
e596f8d7d76bd5a1e16e58cc1b006f394e4a85be | Throw error when trying to generate indexed tiles without palettes. | Prof9/PixelPet | PixelPet/CLI/Commands/GenerateTilemapCmd.cs | PixelPet/CLI/Commands/GenerateTilemapCmd.cs | using LibPixelPet;
using System;
using System.Drawing;
namespace PixelPet.CLI.Commands {
internal class GenerateTilemapCmd : CliCommand {
public GenerateTilemapCmd()
: base("Generate-Tilemap",
new Parameter(true, new ParameterValue("format")),
new Parameter("no-reduce", "nr", false),
new Parameter("... | using LibPixelPet;
using System;
using System.Drawing;
namespace PixelPet.CLI.Commands {
internal class GenerateTilemapCmd : CliCommand {
public GenerateTilemapCmd()
: base("Generate-Tilemap",
new Parameter(true, new ParameterValue("format")),
new Parameter("no-reduce", "nr", false),
new Parameter("... | mit | C# |
5e37d2f6c01909ad636a549e6877328aa87ec388 | Implement Super ZZT #lock properly. | SaxxonPike/roton,SaxxonPike/roton | Roton/Emulation/SuperZZT/SuperZztGrammar.cs | Roton/Emulation/SuperZZT/SuperZztGrammar.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Roton.Core;
using Roton.Emulation.Execution;
namespace Roton.Emulation.SuperZZT
{
internal sealed class SuperZztGrammar : Grammar
{
public SuperZztGrammar(IColorList colors, IElementList elements) : base(colors... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Roton.Core;
using Roton.Emulation.Execution;
namespace Roton.Emulation.SuperZZT
{
internal sealed class SuperZztGrammar : Grammar
{
public SuperZztGrammar(IColorList colors, IElementList elements) : base(colors... | isc | C# |
6fc1da8f526c7f2c5b24eb81425c1792b8fac302 | Update version number. | Damnae/storybrew | editor/Properties/AssemblyInfo.cs | editor/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("storybrew editor")]
[assembly: AssemblyDe... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("storybrew editor")]
[assembly: AssemblyDe... | mit | C# |
78324bb08e378c25fde367ed0349f64b713fab5b | Add add range funciton to interface | kirkchen/EFRepository | EFRepository/IRepository.cs | EFRepository/IRepository.cs | using System.Collections.Generic;
namespace EFRepository
{
/// <summary>
/// IRepository
/// </summary>
/// <typeparam name="TEntity">The type of the entity.</typeparam>
public interface IRepository<TEntity> where TEntity : class
{
/// <summary>
/// Adds the specified data.
... | namespace EFRepository
{
/// <summary>
/// IRepository
/// </summary>
/// <typeparam name="TEntity">The type of the entity.</typeparam>
public interface IRepository<TEntity> where TEntity : class
{
/// <summary>
/// Adds the specified data.
/// </summary>
/// <pa... | mit | C# |
b3989dd12d1c777c90128c33c641de3c31a3d3d2 | Update assembly info. | eealeivan/jozh-translit | Src/JoZhTranslit/Properties/AssemblyInfo.cs | Src/JoZhTranslit/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("Jo... | 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("Jo... | mit | C# |
cbf485384a376be65ab15b977b161191e7ba93b9 | Update unshelve usage. | codemerlin/git-tfs,steveandpeggyb/Public,hazzik/git-tfs,adbre/git-tfs,jeremy-sylvis-tmg/git-tfs,irontoby/git-tfs,hazzik/git-tfs,irontoby/git-tfs,jeremy-sylvis-tmg/git-tfs,TheoAndersen/git-tfs,spraints/git-tfs,kgybels/git-tfs,andyrooger/git-tfs,modulexcite/git-tfs,steveandpeggyb/Public,allansson/git-tfs,jeremy-sylvis-tm... | GitTfs/Commands/Unshelve.cs | GitTfs/Commands/Unshelve.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using NDesk.Options;
using StructureMap;
using Sep.Git.Tfs.Core;
namespace Sep.Git.Tfs.Commands
{
[Pluggable("unshelve")]
[Descriptio... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using NDesk.Options;
using StructureMap;
using Sep.Git.Tfs.Core;
namespace Sep.Git.Tfs.Commands
{
[Pluggable("unshelve")]
[Descriptio... | apache-2.0 | C# |
2d4b8d928d1148ed57d24bf8e7cfce9e53765ae8 | Update MainActivity.cs | iperezmx87/Xamarin30Labs | Lab09/Lab09/MainActivity.cs | Lab09/Lab09/MainActivity.cs | using Android.App;
using Android.Widget;
using Android.OS;
using System;
namespace Lab09
{
[Activity(Label = "Lab09", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
... | using Android.App;
using Android.Widget;
using Android.OS;
using System;
namespace Lab09
{
[Activity(Label = "Lab09", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
... | mit | C# |
6a3944aab7819d9b19b6cfd659dd487a2324724d | Mark TimerAttribute as MeansImplicitUse | ikkentim/SampSharp,ikkentim/SampSharp,ikkentim/SampSharp | src/SampSharp.Entities/Timers/TimerAttribute.cs | src/SampSharp.Entities/Timers/TimerAttribute.cs | using System;
using SampSharp.Entities.Annotations;
namespace SampSharp.Entities
{
/// <summary>
/// An attribute which indicates the method should be invoked at a specified interval.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
[MeansImplicitUse]
public class TimerAttribute : Attr... | using System;
namespace SampSharp.Entities
{
/// <summary>
/// An attribute which indicates the method should be invoked at a specified interval.
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class TimerAttribute : Attribute
{
/// <summary>
/// Initializes a n... | apache-2.0 | C# |
869a15e6cdeca65c8259913187b970e8905c634f | Update MappingFramework/Mapping.cs | GeertBellekens/UML-Tooling-Framework,GeertBellekens/UML-Tooling-Framework | MappingFramework/Mapping.cs | MappingFramework/Mapping.cs |
using System;
using UML=TSF.UmlToolingFramework.UML;
namespace MappingFramework
{
/// <summary>
/// Description of Mapping.
/// </summary>
public interface Mapping
{
MappingNode source {get;set;}
MappingNode target {get;set;}
MappingLogic mappingLogic {get;set;}
string mappingLogicDescriptio... |
using System;
using UML=TSF.UmlToolingFramework.UML;
namespace MappingFramework
{
/// <summary>
/// Description of Mapping.
/// </summary>
public interface Mapping
{
MappingNode source {get;set;}
MappingNode target {get;set;}
MappingLogic mappingLogic {get;set;}
void save();
}
}
| bsd-2-clause | C# |
b05bcd195468b90677edd0f18d68dbe5cf19201c | Fix build | manio143/ShadowsOfShadows | src/Entities/Character.cs | src/Entities/Character.cs | using System;
using Microsoft.Xna.Framework;
using System.Collections.Generic;
using ShadowsOfShadows.Items;
using ShadowsOfShadows.Helpers;
using ShadowsOfShadows.Physics;
namespace ShadowsOfShadows.Entities
{
public abstract class Character : Entity, IInteractable, IUpdateable
{
public string Name { get; }
p... | using System;
using Microsoft.Xna.Framework;
using System.Collections.Generic;
using ShadowsOfShadows.Items;
using ShadowsOfShadows.Helpers;
using ShadowsOfShadows.Physics;
namespace ShadowsOfShadows.Entities
{
public abstract class Character : Entity, IInteractable, IUpdateable
{
public string Name { get; }
p... | mit | C# |
250e3cac5b33be8fb94fd47417ff26e1751c1af4 | Fix typo | jacobdufault/fullserializer,darress/fullserializer,jacobdufault/fullserializer,jagt/fullserializer,Ksubaka/fullserializer,jagt/fullserializer,shadowmint/fullserializer,jacobdufault/fullserializer,jagt/fullserializer,Ksubaka/fullserializer,zodsoft/fullserializer,nuverian/fullserializer,lazlo-bonin/fullserializer,Ksubaka... | Source/Internal/fsOption.cs | Source/Internal/fsOption.cs | using System;
namespace FullSerializer.Internal {
/// <summary>
/// Simple option type. This is akin to nullable types.
/// </summary>
public struct fsOption<T> {
private bool _hasValue;
private T _value;
public bool HasValue {
get { return _hasValue; }
}
... | using System;
namespace FullSerializer.Internal {
/// <summary>
/// Simple option time. This is akin to nullable types.
/// </summary>
public struct fsOption<T> {
private bool _hasValue;
private T _value;
public bool HasValue {
get { return _hasValue; }
}
... | mit | C# |
55e8336d7e0e5ca9d3aa40a22118a6f578601b27 | fix FaultSetCollection.GetMinimalSets() | maul-esel/ssharp,maul-esel/ssharp,isse-augsburg/ssharp,isse-augsburg/ssharp,isse-augsburg/ssharp,maul-esel/ssharp,isse-augsburg/ssharp,maul-esel/ssharp,isse-augsburg/ssharp | Source/SafetySharp/Analysis/FaultSetCollection.cs | Source/SafetySharp/Analysis/FaultSetCollection.cs | using System;
using System.Collections;
using System.Collections.Generic;
using SafetySharp.Runtime;
namespace SafetySharp.Analysis
{
class FaultSetCollection : IEnumerable<FaultSet>
{
private readonly int numFaults;
private readonly HashSet<FaultSet>[] elementsByCardinality;
public FaultSetCollection(int nu... | using System;
using System.Collections;
using System.Collections.Generic;
using SafetySharp.Runtime;
namespace SafetySharp.Analysis
{
class FaultSetCollection : IEnumerable<FaultSet>
{
private readonly int numFaults;
private readonly HashSet<FaultSet>[] elementsByCardinality;
public FaultSetCollection(int nu... | mit | C# |
d8865a2fc6897663288365b523416408d9e73204 | Remove Expenses from Report. | ProjectBlueMonkey/BlueMonkey,ProjectBlueMonkey/BlueMonkey | client/BlueMonkey/BlueMonkey.Business/Report.cs | client/BlueMonkey/BlueMonkey.Business/Report.cs | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Prism.Mvvm;
namespace BlueMonkey.Business
{
public class Report : BindableBase
{
private string _id;
public string Id
{
... | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Prism.Mvvm;
namespace BlueMonkey.Business
{
public class Report : BindableBase
{
private string _id;
public string Id
{
... | mit | C# |
78e829397c85f4c4d067cd389a4a94aaec8cc83a | Truncate user-agent version. | GetTabster/Tabster | Tabster/TabsterWebClient.cs | Tabster/TabsterWebClient.cs | #region
using System.Net;
using System.Text;
using System.Windows.Forms;
#endregion
namespace Tabster
{
public class TabsterWebClient : WebClient
{
public TabsterWebClient(IWebProxy proxy = null)
{
Proxy = proxy;
Encoding = Encoding.UTF8;
H... | #region
using System.Net;
using System.Text;
using System.Windows.Forms;
#endregion
namespace Tabster
{
public class TabsterWebClient : WebClient
{
public TabsterWebClient(IWebProxy proxy = null)
{
Proxy = proxy;
Encoding = Encoding.UTF8;
H... | apache-2.0 | C# |
b01cd12922fef944e68f920c823a1fc382a2b775 | update spatial refrence help text | agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov | WebAPI.API/Views/Shared/_SpatialReference.cshtml | WebAPI.API/Views/Shared/_SpatialReference.cshtml | <p class="help-block">
The spatial reference for the output and input geometries.
<strong class="text-warning">The output and input spatial references must match.</strong>
Choose any of the <abbr title="Well-known Id">wkid</abbr>'s from the
<a href="http://resources.arcgis.com/en/help/main/10.1/018z/p... | <p class="help-block">
The spatial reference of the input geographic coordinate pair.
Choose any of the <abbr title="Well-known Id">wkid</abbr>'s from the
<a href="http://resources.arcgis.com/en/help/main/10.1/018z/pdf/geographic_coordinate_systems.pdf">Geographic Coordinate System wkid reference</a>
o... | mit | C# |
a0f03e1f307b193fcebe682ec7a08f384322338a | Add Dustin2 to Contact page. | jpfultonzm/trainingsandbox,jpfultonzm/trainingsandbox,jpfultonzm/trainingsandbox | ZirMed.TrainingSandbox/Views/Home/Contact.cshtml | ZirMed.TrainingSandbox/Views/Home/Contact.cshtml | @{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.co... | @{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.co... | mit | C# |
6f864db660c061dd666b20dc5ea59518485782ca | Make demo script comply with guidelines | DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MixedRealityToolkit.Examples/Experimental/Demos/UX/ObjectManipulator/Scripts/ReturnToBounds.cs | Assets/MixedRealityToolkit.Examples/Experimental/Demos/UX/ObjectManipulator/Scripts/ReturnToBounds.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Examples.Experimental.Demos
{
public cla... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ReturnToBounds : MonoBehaviour
{
[SerializeField]
Transform frontBounds = null;
[SerializeField]
Transform backBounds = null;
[SerializeField]
Transform leftBounds = null;
[SerializeField]
Tr... | mit | C# |
a13ff0d4c3e6685729b7e9f9d44d6bee5e8ec889 | Apply suggestions from code review | mavasani/roslyn-analyzers,dotnet/roslyn-analyzers,mavasani/roslyn-analyzers,dotnet/roslyn-analyzers | src/Microsoft.CodeAnalysis.Analyzers/CSharp/MetaAnalyzers/CSharpDiagnosticAnalyzerAPIUsageAnalyzer.cs | src/Microsoft.CodeAnalysis.Analyzers/CSharp/MetaAnalyzers/CSharpDiagnosticAnalyzerAPIUsageAnalyzer.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 Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace Micros... | // 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 Microsoft.CodeAnalysis.Analyzers.MetaAnalyzers;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace Micros... | mit | C# |
fb6ca1e24300120f387c95c0247007606b385c8d | Add Radius property to support ShapeType.Circle | MiXTelematics/MiX.Integrate.Api.Client | MiX.Integrate.Shared/Entities/Locations/Location.cs | MiX.Integrate.Shared/Entities/Locations/Location.cs | using System.Collections.Generic;
namespace MiX.Integrate.Shared.Entities.Locations
{
/// <summary>
/// defines a Location for a shape on a map.
/// </summary>
public class Location
{
/// <summary>Unique Id for the location</summary>
public long LocationId { get; set; }
/// <summary>Name of the location</s... | using System.Collections.Generic;
namespace MiX.Integrate.Shared.Entities.Locations
{
/// <summary>
/// defines a Location for a shape on a map.
/// </summary>
public class Location
{
/// <summary>Unique Id for the location</summary>
public long LocationId { get; set; }
/// <summary>Name of the location</s... | mit | C# |
638ce41c5434059a1a3002628a0c37344e480b8e | Fix the DoorRecorder (PunRPC) | 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# |
109ee87d08d625d50c429d7bc5ca1d9b9674a21e | fix up assembly info | half-ogre/OwinDispatcher,half-ogre/OwinDispatcher | OwinDispatcher/Properties/AssemblyInfo.cs | OwinDispatcher/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Andrew Miller")]
[assembly: AssemblyProduct("OwinDispatcher")]
[assembly: AssemblyTitle("OwinDispatcher")]
[assembly: AssemblyCopyright("Copyright (C) 2013 Andrew Miller")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersi... | 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("Ow... | mit | C# |
f019339cecd3b6b3972d6aa31d47e7f8d23ab89e | improve ContextPropagationToken doc comment | ejona86/grpc,grpc/grpc,muxi/grpc,jtattermusch/grpc,firebase/grpc,nicolasnoble/grpc,sreecha/grpc,stanley-cheung/grpc,vjpai/grpc,nicolasnoble/grpc,ctiller/grpc,nicolasnoble/grpc,nicolasnoble/grpc,ejona86/grpc,muxi/grpc,nicolasnoble/grpc,stanley-cheung/grpc,jtattermusch/grpc,nicolasnoble/grpc,carl-mastrangelo/grpc,donnadi... | src/csharp/Grpc.Core/ContextPropagationToken.cs | src/csharp/Grpc.Core/ContextPropagationToken.cs | #region Copyright notice and license
// Copyright 2015 gRPC authors.
//
// 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 req... | #region Copyright notice and license
// Copyright 2015 gRPC authors.
//
// 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 req... | apache-2.0 | C# |
4ad2d0cfb606835a9fe82ddb3b22181588e04e33 | Remove deprecated debug setting | UselessToucan/osu,johnneijzen/osu,peppy/osu,2yangk23/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,EVAST9919/osu,NeoAdonis/osu,johnneijzen/osu,ppy/osu,peppy/osu-new,smoogipooo/osu,EVAST9919/osu,peppy/osu,2yangk23/osu,peppy/osu | osu.Game/Overlays/Settings/Sections/Debug/GeneralSettings.cs | osu.Game/Overlays/Settings/Sections/Debug/GeneralSettings.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.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
namespace osu.Game.Overlays.Settings.Sections.Debug
{
public class ... | // 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.Allocation;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
namespace osu.Game.Overlays.Settings.Sections.Debug
{
public class ... | mit | C# |
10a9d97e32f2ded7b7ea0cfbe4bc3ba546528af9 | Fix PythiaOptions (#59565) | shyamnamboodiripad/roslyn,KevinRansom/roslyn,KevinRansom/roslyn,jasonmalinowski/roslyn,bartdesmet/roslyn,dotnet/roslyn,jasonmalinowski/roslyn,CyrusNajmabadi/roslyn,weltkante/roslyn,bartdesmet/roslyn,mavasani/roslyn,jasonmalinowski/roslyn,shyamnamboodiripad/roslyn,CyrusNajmabadi/roslyn,weltkante/roslyn,mavasani/roslyn,d... | src/Workspaces/Core/Portable/ExternalAccess/Pythia/Api/PythiaOptions.cs | src/Workspaces/Core/Portable/ExternalAccess/Pythia/Api/PythiaOptions.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.
#nullable disable
using System;
using System.Collections.Immutable;
using System.Composition;
using Microsoft.Code... | // 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.
#nullable disable
using System;
using System.Collections.Immutable;
using System.Composition;
using Microsoft.Code... | mit | C# |
c9f27c638c7c8cfe7b6ebce6ce175d2f281c012d | create folder if it does not exist | cvent/Metrics.NET,Recognos/Metrics.NET,DeonHeyns/Metrics.NET,etishor/Metrics.NET,Liwoj/Metrics.NET,mnadel/Metrics.NET,ntent-ad/Metrics.NET,MetaG8/Metrics.NET,etishor/Metrics.NET,cvent/Metrics.NET,Recognos/Metrics.NET,MetaG8/Metrics.NET,alhardy/Metrics.NET,MetaG8/Metrics.NET,Liwoj/Metrics.NET,alhardy/Metrics.NET,huoxudo... | Src/Metrics/Reporters/TextFileReporter.cs | Src/Metrics/Reporters/TextFileReporter.cs | using System.Collections.Generic;
using System.IO;
namespace Metrics.Reporters
{
public class TextFileReporter : HumanReadableReporter
{
private readonly string fileName;
private readonly List<string> buffer = new List<string>();
public TextFileReporter(string fileName)
{
... | using System.Collections.Generic;
using System.IO;
namespace Metrics.Reporters
{
public class TextFileReporter : HumanReadableReporter
{
private readonly string fileName;
private readonly List<string> buffer = new List<string>();
public TextFileReporter(string fileName)
{
... | apache-2.0 | C# |
25f35d2c58371405eb574734dfb966f42d192c1e | Remove semicolon as it causes a JS parse error on Edge | stackify/stackify-api-dotnet,stackify/stackify-api-dotnet,stackify/stackify-api-dotnet | Src/StackifyLib/Web/RealUserMonitoring.cs | Src/StackifyLib/Web/RealUserMonitoring.cs | using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using StackifyLib.Utils;
namespace StackifyLib.Web
{
public static class RealUserMonitoring
{
public static string GetHeaderScript()
{
var rumScriptUrl = Config.Rum... | using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using StackifyLib.Utils;
namespace StackifyLib.Web
{
public static class RealUserMonitoring
{
public static string GetHeaderScript()
{
var rumScriptUrl = Config.Rum... | apache-2.0 | C# |
e1eba6820b8409b5b16a6b6e36a2bfe0dc7d4b0c | Update IMongoUnitOfWork.cs | tiksn/TIKSN-Framework | TIKSN.Core/Data/Mongo/IMongoUnitOfWork.cs | TIKSN.Core/Data/Mongo/IMongoUnitOfWork.cs | using System;
namespace TIKSN.Data.Mongo
{
public interface IMongoUnitOfWork : IUnitOfWork
{
public IServiceProvider Services { get; }
}
}
| using System;
namespace TIKSN.Data.Mongo
{
public interface IMongoUnitOfWork : IUnitOfWork
{
public IServiceProvider Services { get; }
}
} | mit | C# |
365502a6878cd270efd1236240a4f8dcc5504efc | Change ctor parameter to byte array | mstrother/BmpListener | BmpListener/Bgp/IPAddrPrefix.cs | BmpListener/Bgp/IPAddrPrefix.cs | using System;
using System.Net;
namespace BmpListener.Bgp
{
public class IPAddrPrefix
{
public IPAddrPrefix(byte[] data, AddressFamily afi = AddressFamily.IP)
{
DecodeFromBytes(data, afi);
}
public byte Length { get; private set; }
public IPAddress Prefix {... | using System;
using System.Linq;
using System.Net;
namespace BmpListener.Bgp
{
public class IPAddrPrefix
{
public IPAddrPrefix(ArraySegment<byte> data, AddressFamily afi = AddressFamily.IP)
{
DecodeFromBytes(data, afi);
}
public byte Length { get; private set; }
... | mit | C# |
bb5cee9c4ad9a34400979903c8a6521322fd7b0e | fix input | HydroChlorix/NumberTranslater | ConsoleApplication/ConsoleTranslater/Program.cs | ConsoleApplication/ConsoleTranslater/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleTranslater
{
class Program
{
static void Main(string[] args)
{
while (true)
{
Console.Write("Input number : ");
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleTranslater
{
class Program
{
static void Main(string[] args)
{
while (true)
{
Console.Write("Input number : ");
... | mit | C# |
f4e837c4c4ca2816cd76ec67d078f26dcd08a0e8 | fix GenderTools | petrovich/petrovich-net | NPetrovich/Utils/GenderUtils.cs | NPetrovich/Utils/GenderUtils.cs | using System.Globalization;
namespace NPetrovich.Utils
{
public static class GenderUtils
{
private const string ExceptionMessage = "You must specify middle name to detect gender";
private const string ParameterName = "middleName";
public static Gender Detect(string middleName)
... | using System.Globalization;
namespace NPetrovich.Utils
{
public static class GenderUtils
{
private const string ExceptionMessage = "You must specify middle name to detect gender";
private const string ParameterName = "middleName";
public static Gender Detect(string middleName)
... | mit | C# |
109cdb5444123d146404539b399497956fcb0416 | Update RuleUpdater.cs | win120a/ACClassRoomUtil,win120a/ACClassRoomUtil | ProcessBlockUtil/RuleUpdater.cs | ProcessBlockUtil/RuleUpdater.cs | /*
Copyright (C) 2011-2014 AC Inc. (Andy Cheung)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | /*
Copyright (C) 2011-2014 AC Inc. (Andy Cheung)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | apache-2.0 | C# |
f285467a83145e2253fb019d94118c347376f948 | Test code | whampson/bft-spec,whampson/cascara | Src/WHampson.Cascara/Program.cs | Src/WHampson.Cascara/Program.cs | #region License
/* Copyright (c) 2017 Wes Hampson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | #region License
/* Copyright (c) 2017 Wes Hampson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | mit | C# |
dd39b563cff5100032337af4beb052e2b89ffa98 | Fix formatting | jcmoyer/Yeena | Yeena/PathOfExile/PoEItemMod.cs | Yeena/PathOfExile/PoEItemMod.cs | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | // Copyright 2013 J.C. Moyer
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | apache-2.0 | C# |
ef15ab07dc4cdd3697fb1db5c46751273a25c911 | add range & angle increment | adamabdelhamed/PowerArgs,workabyte/PowerArgs,adamabdelhamed/PowerArgs,workabyte/PowerArgs | PowerArgs/CLI/Games/Weapons/SmartMineDropper.cs | PowerArgs/CLI/Games/Weapons/SmartMineDropper.cs | using PowerArgs.Cli.Physics;
namespace PowerArgs.Games
{
public class SmartMineDropper : Weapon
{
public float Range { get; set; } = 10;
public float AngleIncrement { get; set; } = 30;
public override WeaponStyle Style => WeaponStyle.Explosive;
public string TargetTag { get; set... | using PowerArgs.Cli.Physics;
namespace PowerArgs.Games
{
public class SmartMineDropper : Weapon
{
public override WeaponStyle Style => WeaponStyle.Explosive;
public string TargetTag { get; set; } = "enemy";
public float Speed { get; set; } = 50;
public override void FireIntern... | mit | C# |
b8edb0e6ce60492a0b3fd12e5de7a84571b0ed93 | Change version to 1.0.0.0 | PierrickI3/ScreenRecordingAddin | ScreenRecordingAddin/Properties/AssemblyInfo.cs | ScreenRecordingAddin/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.
using ININ.InteractionClient... | 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.
using ININ.InteractionClient... | apache-2.0 | C# |
dea9c720b4e19f55f7aa4c969bec62ea6415d79b | Update InternetConnectivityState.cs | tiksn/TIKSN-Framework | TIKSN.Core/Network/InternetConnectivityState.cs | TIKSN.Core/Network/InternetConnectivityState.cs | using System;
using System.Collections.Generic;
namespace TIKSN.Network
{
public class InternetConnectivityState : IEqualityComparer<InternetConnectivityState>,
IEquatable<InternetConnectivityState>
{
public InternetConnectivityState(bool isInternetAvailable, bool isWiFiAvailable,
b... | using System;
using System.Collections.Generic;
namespace TIKSN.Network
{
public class InternetConnectivityState : IEqualityComparer<InternetConnectivityState>,
IEquatable<InternetConnectivityState>
{
public InternetConnectivityState(bool isInternetAvailable, bool isWiFiAvailable,
b... | mit | C# |
98f6ea90f43b7302cc6540982f03a052c6ea8c04 | Make edit profile policy optional | lambdakris/templating,seancpeters/templating,rschiefer/templating,mlorbetske/templating,danroth27/templating,danroth27/templating,danroth27/templating,seancpeters/templating,seancpeters/templating,seancpeters/templating,rschiefer/templating,lambdakris/templating,rschiefer/templating,lambdakris/templating,mlorbetske/tem... | template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/StarterWeb-CSharp/Views/Shared/_LoginPartial.cshtml | template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/StarterWeb-CSharp/Views/Shared/_LoginPartial.cshtml | @*#if (IndividualLocalAuth) *@
@using Microsoft.AspNetCore.Identity
@using Company.WebApplication1.Models
@*#else
@*#if (IndividualB2CAuth)
@using Microsoft.Extensions.Options
#endif
@using System.Security.Principal
#endif *@
@*#if (IndividualLocalAuth) *@
@inject SignInManager<ApplicationUser> SignInManager
@inject ... | @*#if (IndividualLocalAuth) *@
@using Microsoft.AspNetCore.Identity
@using Company.WebApplication1.Models
@*#else
@using System.Security.Principal
#endif *@
@*#if (IndividualLocalAuth) *@
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
@*#endif *@
@*#if (Individua... | mit | C# |
4e90f9d7028974f0b61dff1353894f4963406acf | Update _LoginPartial.cshtml | seancpeters/templating,danroth27/templating,danroth27/templating,lambdakris/templating,rschiefer/templating,danroth27/templating,seancpeters/templating,seancpeters/templating,mlorbetske/templating,rschiefer/templating,lambdakris/templating,seancpeters/templating,mlorbetske/templating,rschiefer/templating,lambdakris/tem... | template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/StarterWeb-CSharp/Views/Shared/_LoginPartial.cshtml | template_feed/Microsoft.DotNet.Web.ProjectTemplates.2.0/content/StarterWeb-CSharp/Views/Shared/_LoginPartial.cshtml | @*#if (IndividualAuth) *@
@using Microsoft.AspNetCore.Identity
@using Company.WebApplication1.Models
@*#else
@using System.Security.Principal
#endif *@
@*#if (IndividualAuth) *@
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
@*#endif *@
@*#if (IndividualAuth) *@
... | @*#if (IndividualAuth) *@
@using Microsoft.AspNetCore.Identity
@using Company.WebApplication1.Models
@*#else
@using System.Security.Principal
#endif *@
@*#if (IndividualAuth) *@
@inject SignInManager<ApplicationUser> SignInManager
@inject UserManager<ApplicationUser> UserManager
@*#endif *@
@*#if (IndividualAuth) *@
... | mit | C# |
ec71d448297599e79eff87a428a65b2680e9da91 | Use current principal if provided for auth | civicsource/http,civicsource/webapi-utils | Core/Link.cs | Core/Link.cs | using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace Archon.WebApi
{
public abstract class Link
{
public Authorization Authorization { get; set; }
public HttpRequestMessage CreateRequest()
{
var req = CreateRequestInternal();
var authToken = GetAuthToken... | using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace Archon.WebApi
{
public abstract class Link
{
public Authorization Authorization { get; set; }
public HttpRequestMessage CreateRequest()
{
var req = CreateRequestInternal();
if (Authorization != null)
req.Headers.Authoriza... | mit | C# |
702636586a3835f52da712ca0e12cf8cf64cf24c | Fix test | Vector241-Eric/CoypuDemo,Vector241-Eric/CoypuDemo,Vector241-Eric/CoypuDemo | src/FunctionalTests.Web/Tests/CalculatorPageTests.cs | src/FunctionalTests.Web/Tests/CalculatorPageTests.cs | using FunctionalTests.Web.Bases;
using FunctionalTests.Web.Pages;
using NUnit.Framework;
using Should;
namespace FunctionalTests.Web.Tests
{
public class CalculatorPageTests
{
[TestFixture]
public class When_landing_on_the_page : FunctionalTestBase
{
[Test]
publ... | using FunctionalTests.Web.Bases;
using FunctionalTests.Web.Pages;
using NUnit.Framework;
using Should;
namespace FunctionalTests.Web.Tests
{
public class CalculatorPageTests
{
[TestFixture]
public class When_landing_on_the_page : FunctionalTestBase
{
[Test]
publ... | mit | C# |
9cc72f31a150725eaa1ec72f8464c3bfc40cd02c | Add semver styles | nikeee/HolzShots | src/HolzShots.Core/Net/Custom/SemVersionConverter.cs | src/HolzShots.Core/Net/Custom/SemVersionConverter.cs | using Newtonsoft.Json;
using Semver;
namespace HolzShots.Net.Custom
{
/// <summary>
/// Taken from
/// https://gist.github.com/madaz/efab4a5554b88dc2862d58046ddba00f
/// (https://github.com/maxhauser/semver/issues/21)
/// </summary>
public class SemVersionConverter : JsonConverter
{
... | using Newtonsoft.Json;
using Semver;
namespace HolzShots.Net.Custom
{
/// <summary>
/// Taken from
/// https://gist.github.com/madaz/efab4a5554b88dc2862d58046ddba00f
/// (https://github.com/maxhauser/semver/issues/21)
/// </summary>
public class SemVersionConverter : JsonConverter
{
... | agpl-3.0 | C# |
114defcc13a960c8aed446c4510d35686d4be058 | Print milliseconds | xPaw/adventofcode-solutions,xPaw/adventofcode-solutions,xPaw/adventofcode-solutions | 2021/Program.cs | 2021/Program.cs | using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using AdventOfCode2021;
Console.OutputEncoding = Encoding.UTF8;
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
var day = DateTime.Today.Day;
var runs = 1;
if (args.Length > 0)
{
if (!int... | using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using AdventOfCode2021;
Console.OutputEncoding = Encoding.UTF8;
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
var day = DateTime.Today.Day;
var runs = 1;
if (args.Length > 0)
{
if (!int... | unlicense | C# |
7d2ce35646db5f13a89881332b660a240da8b8ef | fix button toggle base. | Amarcolina/LeapMotionCoreAssets,ryanwang/LeapMotionCoreAssets | Assets/LeapMotion/Widgets/Scripts/Button/ButtonToggleBase.cs | Assets/LeapMotion/Widgets/Scripts/Button/ButtonToggleBase.cs | using UnityEngine;
using System.Collections;
namespace LMWidgets
{
public abstract class ButtonToggleBase : ButtonBase, BinaryInteractionHandler<bool>, IDataBoundWidget<ButtonToggleBase, bool> {
protected DataBinderToggle m_dataBinder;
protected bool m_toggleState = true;
public abstract void ButtonTu... | using UnityEngine;
using System.Collections;
namespace LMWidgets
{
public abstract class ButtonToggleBase : ButtonBase, BinaryInteractionHandler<bool>, IDataBoundWidget<ButtonToggleBase, bool> {
protected DataBinderToggle m_dataBinder;
protected bool m_toggleState = true;
public abstract void ButtonTu... | apache-2.0 | C# |
f7c8fefb2de39a7fe5a84c3f98e3fa38f353b288 | Update UnprotectProtectSheet.cs | maria-shahid-aspose/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,aspose-cells/Aspose.Cells-for-.NET,asposecells/Aspose_Cells_NET,maria-shahid-aspose/Aspose.Cells-for-.NET,maria-shahid-aspose/Aspose.Cells-for-.... | Examples/CSharp/Worksheets/Security/Unprotect/UnprotectProtectSheet.cs | Examples/CSharp/Worksheets/Security/Unprotect/UnprotectProtectSheet.cs | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Worksheets.Security.Unprotect
{
public class UnprotectingProtectedWorksheet
{
public static void Main(string[] args)
{
//ExStart:1
// The path to the documents directory.
string dataDir = A... | using System.IO;
using Aspose.Cells;
namespace Aspose.Cells.Examples.Worksheets.Security.Unprotect
{
public class UnprotectingProtectedWorksheet
{
public static void Main(string[] args)
{
// The path to the documents directory.
string dataDir = Aspose.Cells.Examples.Uti... | mit | C# |
485d67f42086413dab66947789451cde25edd1ec | update UrlGenarator | csyntax/BlogSystem | Source/BlogSystem.Web.Infrastructure/Helpers/UrlGenerator.cs | Source/BlogSystem.Web.Infrastructure/Helpers/UrlGenerator.cs | namespace BlogSystem.Web.Infrastructure.Helpers
{
using System.Text;
public class UrlGenerator : IUrlGenerator
{
public string GenerateUrl(string uglyString)
{
var resultString = new StringBuilder(uglyString.Length);
var isLastCharacterDash = false;
ugl... | namespace BlogSystem.Web.Infrastructure.Helpers
{
using System.Text;
public class UrlGenerator : IUrlGenerator
{
public string GenerateUrl(string uglyString)
{
StringBuilder resultString = new StringBuilder(uglyString.Length);
bool isLastCharacterDash = false;
... | mit | C# |
0de606b995353ebf215db6ef785648db4096b8ff | Fix failing tests. | SuperJMN/Avalonia,AvaloniaUI/Avalonia,Perspex/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,SuperJMN/Avalonia,SuperJMN/Avalonia,akrisiun/Perspex,AvaloniaUI/Avalonia,grokys/Perspex,grokys/Perspex,jkoritzinsky/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Pers... | tests/Avalonia.Controls.UnitTests/ImageTests.cs | tests/Avalonia.Controls.UnitTests/ImageTests.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 Moq;
using Avalonia.Media;
using Avalonia.Media.Imaging;
using Xunit;
namespace Avalonia.Controls.UnitTests
{
public class ImageTests
{
... | // 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 Moq;
using Avalonia.Media;
using Avalonia.Media.Imaging;
using Xunit;
namespace Avalonia.Controls.UnitTests
{
public class ImageTests
{
... | mit | C# |
4a89d93bffed06b50510c4beef2d6c98d277543b | Add non generic IService interface | peasy/Peasy.NET,ahanusa/Peasy.NET,ahanusa/facile.net | Peasy/IService.cs | Peasy/IService.cs | using System.Collections.Generic;
namespace Peasy
{
public interface IService
{
}
public interface IService<T, TKey> : ISupportGetAllCommand<T>,
ISupportGetByIDCommand<T, TKey>,
ISupportInsertCommand<T>,
... | using System.Collections.Generic;
namespace Peasy
{
public interface IService<T, TKey> : ISupportGetAllCommand<T>,
ISupportGetByIDCommand<T, TKey>,
ISupportInsertCommand<T>,
ISupportUpdateCo... | mit | C# |
529f97992ef8a29f48f8f9960e3dc071c16d28c6 | remove bugsnag api key entries | peeedge/mobile,eatskolnikov/mobile,peeedge/mobile,ZhangLeiCharles/mobile,ZhangLeiCharles/mobile,eatskolnikov/mobile,masterrr/mobile,eatskolnikov/mobile,masterrr/mobile | Phoebe/Build.cs | Phoebe/Build.cs | using System;
namespace Toggl.Phoebe
{
public static class Build
{
#warning Please fill in build settings and make git assume this file is unchanged.
#region Phoebe build config
public static readonly Uri ApiUrl = new Uri ("https://toggl.com/api/");
public static readonly Uri ReportsAp... | using System;
namespace Toggl.Phoebe
{
public static class Build
{
#warning Please fill in build settings and make git assume this file is unchanged.
#region Phoebe build config
public static readonly Uri ApiUrl = new Uri ("https://toggl.com/api/");
public static readonly Uri ReportsAp... | bsd-3-clause | C# |
800c18bcc20d2281314e54c876fb0d663e7bb4e2 | Update Bootstrap package in v5 test pages to v5.2.2 | atata-framework/atata-bootstrap,atata-framework/atata-bootstrap | test/Atata.Bootstrap.TestApp/Pages/v5/_Layout.cshtml | test/Atata.Bootstrap.TestApp/Pages/v5/_Layout.cshtml | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewBag.Title - Atata.Bootstrap.TestApp v5</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet">
@RenderSection("styles", false)
</hea... | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewBag.Title - Atata.Bootstrap.TestApp v5</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HM... | apache-2.0 | C# |
2176af7edd14d5797358091725b3e0da637c72a0 | Add IHttpMaxRequestBodySizeFeature.IsReadOnly (#858) | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | src/Microsoft.AspNetCore.Http.Features/IHttpMaxRequestBodySizeFeature.cs | src/Microsoft.AspNetCore.Http.Features/IHttpMaxRequestBodySizeFeature.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Http.Features
{
/// <summary>
/// Feature to inspect and modify the maximum request body size for a single reque... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Http.Features
{
/// <summary>
/// Feature to inspect and modify the maximum request body size for a single reque... | apache-2.0 | C# |
37d40a3cf6ee7e9cd3d57b9cc0a96045664d29ba | Add notes, remove duplicate call | NickCraver/StackExchange.Exceptional,NickCraver/StackExchange.Exceptional | src/StackExchange.Exceptional.AspNetCore/ExceptionalServiceExtensions.cs | src/StackExchange.Exceptional.AspNetCore/ExceptionalServiceExtensions.cs | using Microsoft.Extensions.Configuration;
using StackExchange.Exceptional;
using System;
using Microsoft.AspNetCore.Hosting;
namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// Extension methods for configuring Exceptional for MVC.
/// </summary>
public static class ExceptionalServi... | using Microsoft.Extensions.Configuration;
using StackExchange.Exceptional;
using System;
using Microsoft.AspNetCore.Hosting;
namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// Extension methods for configuring Exceptional for MVC.
/// </summary>
public static class ExceptionalServi... | apache-2.0 | C# |
fc9a96602f4c54a57aa2789848d7702c40fd2cf6 | add new value based on additional tests | AerisG222/NExifTool | src/NExifTool/Enums/GainControl.cs | src/NExifTool/Enums/GainControl.cs | using System;
namespace NExifTool.Enums
{
public class GainControl
: TagEnum<ushort>
{
public static readonly GainControl None = new GainControl(0, "None");
public static readonly GainControl LowGainUp = new GainControl(1, "Low gain up");
public static readonly GainControl High... | using System;
namespace NExifTool.Enums
{
public class GainControl
: TagEnum<ushort>
{
public static readonly GainControl None = new GainControl(0, "None");
public static readonly GainControl LowGainUp = new GainControl(1, "Low gain up");
public static readonly GainControl High... | mit | C# |
3015bc31de8bf90a4b7f10ea1a50632125e55672 | Fix typo on IRenderProcessMessageHandler.OnContextCreated | jamespearce2006/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,Livit/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,Livit/CefSharp | CefSharp/Handler/IRenderProcessMessageHandler.cs | CefSharp/Handler/IRenderProcessMessageHandler.cs | // Copyright © 2010-2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
/// <summary>
/// Messages sent by the render process can be handled by implementing this
/// interface.
/// ... | // Copyright © 2010-2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
/// <summary>
/// Messages sent by the render process can be handled by implementing this
/// interface.
/// ... | bsd-3-clause | C# |
b27b1606d764ac616e9780c5f91865c0dfd18bcc | use a list of key-value pairs instead of a dictionary (as it's not supported by xmlserializer natively and I'm too lazy to make it work) | SexyFishHorse/CitiesSkylines-Birdcage | Infrastructure/Configuration/ModConfiguration.cs | Infrastructure/Configuration/ModConfiguration.cs | namespace SexyFishHorse.CitiesSkylines.Infrastructure.Configuration
{
using System;
using System.Collections.Generic;
public class ModConfiguration
{
public ModConfiguration()
{
Settings = new List<KeyValuePair<string, object>>();
}
public List<KeyValuePair... | namespace SexyFishHorse.CitiesSkylines.Infrastructure.Configuration
{
using System.Collections.Generic;
public class ModConfiguration
{
public IDictionary<string, object> Settings { get; set; }
}
}
| mit | C# |
6e49d6464c000d81fb31730209246b36f4bc17a2 | Test to run gui on STA thread | admoexperience/admo-kinect,admoexperience/admo-kinect | AdmoTests/CustomActionTests/CustomActionTests.cs | AdmoTests/CustomActionTests/CustomActionTests.cs | using System;
using System.Threading;
using Admo;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AdmoInstallerCustomAction;
using System.Windows;
namespace AdmoTests.CustomActionTests
{
[TestClass]
public class CustomActionTests
{
[TestMethod]
public void TestRunWPFOnSTAThread... | using System;
using System.Threading;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AdmoInstallerCustomAction;
using System.Windows;
namespace AdmoTests.CustomActionTests
{
[TestClass]
public class CustomActionTests
{
[TestMethod]
public void TestMethod1()
{
... | mit | C# |
b2718f18baf66188477efccc73f97569d957723b | fix rsa key generation failing | NTumbleBit/NTumbleBit,DanGould/NTumbleBit | NTumbleBit/BouncyCastle/security/SecureRandom.cs | NTumbleBit/BouncyCastle/security/SecureRandom.cs | using NBitcoin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NTumbleBit.BouncyCastle.Security
{
internal class SecureRandom : Random
{
public SecureRandom()
{
}
public override int Next()
{
return RandomUtils.GetInt32();
... | using NBitcoin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NTumbleBit.BouncyCastle.Security
{
internal class SecureRandom : Random
{
public SecureRandom()
{
}
public override int Next()
{
throw new NotImplementedExcepti... | mit | C# |
a8490b5bba75afe927b21a9f8a9771824b6b1a53 | Add version number | loicteixeira/gj-unity-api | Assets/Plugins/GameJolt/Scripts/API/Constants.cs | Assets/Plugins/GameJolt/Scripts/API/Constants.cs | using UnityEngine;
using System.Collections;
namespace GameJolt.API
{
public static class Constants
{
public const string VERSION = "2.0.0";
public const string SETTINGS_ASSET_NAME = "GJAPISettings";
public const string SETTINGS_ASSET_FULL_NAME = SETTINGS_ASSET_NAME + ".asset";
public const string SETTINGS... | using UnityEngine;
using System.Collections;
namespace GameJolt.API
{
public static class Constants
{
public const string SETTINGS_ASSET_NAME = "GJAPISettings";
public const string SETTINGS_ASSET_FULL_NAME = SETTINGS_ASSET_NAME + ".asset";
public const string SETTINGS_ASSET_PATH = "Assets/Plugins/GameJolt/Res... | mit | C# |
60301099399d32e7c142182a0e3a1d5f8c612b90 | Update CompositeCurrencyConverter.cs | tiksn/TIKSN-Framework | TIKSN.Core/Finance/CompositeCurrencyConverter.cs | TIKSN.Core/Finance/CompositeCurrencyConverter.cs | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace TIKSN.Finance
{
public abstract class CompositeCurrencyConverter : ICompositeCurrencyConverter
{
protected ICurrencyConversionCompositionStrategy compositionStrategy;
protected List<... | using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace TIKSN.Finance
{
public abstract class CompositeCurrencyConverter : ICompositeCurrencyConverter
{
protected ICurrencyConversionCompositionStrategy compositionStrategy;
protected List<... | mit | C# |
aaf37729bcc062e08c1d9b6fa732b37199d979c6 | Add Get web client string method | fredatgithub/UsefulFunctions | FonctionsUtiles.Fred.Csharp/FunctionsInternet.cs | FonctionsUtiles.Fred.Csharp/FunctionsInternet.cs | using System;
using System.Net;
using System.Text;
namespace FonctionsUtiles.Fred.Csharp
{
public class FunctionsInternet
{
public static string Manifest()
{
const string newLine = "\n";
StringBuilder result = new StringBuilder();
result.Append(newLine + "Name= FonctionsUtiles.Fred.Cshar... | using System;
using System.Net;
using System.Text;
namespace FonctionsUtiles.Fred.Csharp
{
public class FunctionsInternet
{
public static string Manifest()
{
const string newLine = "\n";
StringBuilder result = new StringBuilder();
result.Append(newLine + "Name= FonctionsUtiles.Fred.Cshar... | mit | C# |
50b25680e220c3517f8372df30f175dd72bd8d99 | update AssemblyVersion on ServiceContract | gigya/microdot | Gigya.ServiceContract/Properties/AssemblyInfo.cs | Gigya.ServiceContract/Properties/AssemblyInfo.cs | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | #region Copyright
// Copyright 2017 Gigya Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// THI... | apache-2.0 | C# |
3f1a4a5f50cb62ee10f1e989cc4da8c874002cfa | remove error when trying to delete list | ismaelbelghiti/Tigwi,ismaelbelghiti/Tigwi | Core/Tigwi.UI/Views/Shared/_ConfirmDeleteModal.cshtml | Core/Tigwi.UI/Views/Shared/_ConfirmDeleteModal.cshtml | <div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h3>Delete a list</h3>
</div>
<div class="modal-body">
<p>This feature is not implemented yet.</p>
</div>
@*
<div class="modal-body">
<p>Are you sur you want to delete list <b id="deleteListName"></b> : <b id="deleteL... | <div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h3>Delete a list</h3>
</div>
<div class="modal-body">
<p>Are you sur you want to delete list <b id="deleteListName"></b> : <b id="deleteListDescr"></b> ?</p>
<ul id="deleteListMembers">
</ul>
</div>
<... | bsd-3-clause | C# |
5db49cb2a557354883cf4d00a5b599cc26266e60 | Implement first step of automation layer | dirkrombauts/fizz-buzz | Specification/AutomationLayer/StepDefinitions.cs | Specification/AutomationLayer/StepDefinitions.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TechTalk.SpecFlow;
namespace FizzBuzz.Specification.AutomationLayer
{
[Binding]
public class StepDefinitions
{
private int currentNumber;
[Given(@"the current number is '(.*)'")]
public void GivenTheCurrentN... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TechTalk.SpecFlow;
namespace FizzBuzz.Specification.AutomationLayer
{
[Binding]
public class StepDefinitions
{
[Given(@"the current number is '(.*)'")]
public void GivenTheCurrentNumberIs(int p0)
{
Scen... | mit | C# |
4c41b6ae7eac45a43a82ac79139a0fbda8ec01a9 | Throw error if not attached to a camera | EvanHahn/Unity-RTS-camera | RTSCamera.cs | RTSCamera.cs | using UnityEngine;
using System.Collections;
public class RTSCamera : MonoBehaviour {
public bool disablePanning = false;
public bool disableSelect = false;
public Color selectColor = Color.green;
public float selectLineWidth = 2f;
private readonly string[] INPUT_MOUSE_BUTTONS = {"Mouse Look", "Mouse Select"}... | using UnityEngine;
using System.Collections;
public class RTSCamera : MonoBehaviour {
public bool disablePanning = false;
public bool disableSelect = false;
public Color selectColor = Color.green;
public float selectLineWidth = 2f;
private readonly string[] INPUT_MOUSE_BUTTONS = {"Mouse Look", "Mouse Select"}... | mit | C# |
d41ab6a42965397218c9c91cc808201d24c382dd | Fix integration tests - register PackageMigrationRunner | dawoe/Umbraco-CMS,arknu/Umbraco-CMS,abjerner/Umbraco-CMS,umbraco/Umbraco-CMS,abjerner/Umbraco-CMS,dawoe/Umbraco-CMS,dawoe/Umbraco-CMS,marcemarc/Umbraco-CMS,marcemarc/Umbraco-CMS,umbraco/Umbraco-CMS,robertjf/Umbraco-CMS,arknu/Umbraco-CMS,abjerner/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,robertjf/Umbraco-CM... | src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Installer.cs | src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Installer.cs | using Microsoft.Extensions.DependencyInjection;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Install.InstallSteps;
using Umbraco.Cms.Core.Install.Models;
using Umbraco.Cms.Infrastructure.Install;
using Umbraco.Cms.Infrastructure.Install.InstallSteps;
using Umbraco.Extensions;
namespace Umbraco.Cm... | using Microsoft.Extensions.DependencyInjection;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Install.InstallSteps;
using Umbraco.Cms.Core.Install.Models;
using Umbraco.Cms.Infrastructure.Install;
using Umbraco.Cms.Infrastructure.Install.InstallSteps;
using Umbraco.Extensions;
namespace Umbraco.Cm... | mit | C# |
1b78327ba0ddb98baebfc103dd5c15b7acf0a038 | Fix broken test | jsimonweb/csharp-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,GoogleCloudPlatform/dotnet-docs-samples,jsimonweb/csharp-docs-samples,GoogleCloudPlatform/dotnet-docs-samples | iam/api/GrantableRolesTest/GrantableRolesTest.cs | iam/api/GrantableRolesTest/GrantableRolesTest.cs | // Copyright 2018 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | // Copyright 2018 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | apache-2.0 | C# |
5fd7588f3e556c3104fbdb3ef536f4c39a73003e | Implement WebResourceName.GetHashCode and Equals for UnitTests | aluxnimm/outlookcaldavsynchronizer | CalDavSynchronizer/DataAccess/WebResourceName.cs | CalDavSynchronizer/DataAccess/WebResourceName.cs | // This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)
// Copyright (c) 2015 Gerhard Zehetbauer
// Copyright (c) 2015 Alexander Nimmervoll
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License a... | // This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)
// Copyright (c) 2015 Gerhard Zehetbauer
// Copyright (c) 2015 Alexander Nimmervoll
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License a... | agpl-3.0 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.