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 |
|---|---|---|---|---|---|---|---|---|
e2d0788518b201080160dd0b168707228830bab5 | Fix NRE 2 | DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer | Client/Systems/VesselImmortalSys/VesselImmortalEvents.cs | Client/Systems/VesselImmortalSys/VesselImmortalEvents.cs | using LunaClient.Base;
using UniLinq;
namespace LunaClient.Systems.VesselImmortalSys
{
public class VesselImmortalEvents : SubSystem<VesselImmortalSystem>
{
/// <summary>
/// Set vessel immortal state just when the vessel loads
/// </summary>
public void VesselLoaded(Vessel ves... | using LunaClient.Base;
using UniLinq;
namespace LunaClient.Systems.VesselImmortalSys
{
public class VesselImmortalEvents : SubSystem<VesselImmortalSystem>
{
/// <summary>
/// Set vessel immortal state just when the vessel loads
/// </summary>
public void VesselLoaded(Vessel ves... | mit | C# |
cf8d96dcfbaa64aa76ec7033d9ee546b64eabbc9 | Set NullHandling to Ignore for key | SuperDrew/MbDotNet,mattherman/MbDotNet,mattherman/MbDotNet | MbDotNet/Models/Imposters/HttpsImposter.cs | MbDotNet/Models/Imposters/HttpsImposter.cs | using MbDotNet.Models.Stubs;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MbDotNet.Models.Imposters
{
public class HttpsImposter : Imposter
{
[JsonProperty("stubs")]
public ICollection<HttpStub> Stubs { get; private set; }
// TODO This won't serialize ke... | using MbDotNet.Models.Stubs;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MbDotNet.Models.Imposters
{
public class HttpsImposter : Imposter
{
[JsonProperty("stubs")]
public ICollection<HttpStub> Stubs { get; private set; }
// TODO Need to not include key... | mit | C# |
b072b7f10a7409489b8e644bc04a8527b5614da3 | Fix issue with keyboard focus on SystemButtons. | Grabacr07/MetroRadiance | source/MetroRadiance/UI/Controls/SystemButtons.cs | source/MetroRadiance/UI/Controls/SystemButtons.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace MetroRadiance.UI.Controls
{
public class SystemButtons : Control
{
static SystemButtons()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(SystemBut... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace MetroRadiance.UI.Controls
{
public class SystemButtons : Control
{
static SystemButtons()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(SystemBut... | mit | C# |
b0d00cb00e3d49f23365c5eb0612fd28c57bb358 | Put in defensive code to prevent crash when toggling wait cursor state. | JohnThomson/libpalaso,ermshiperete/libpalaso,glasseyes/libpalaso,tombogle/libpalaso,JohnThomson/libpalaso,gtryus/libpalaso,darcywong00/libpalaso,glasseyes/libpalaso,marksvc/libpalaso,hatton/libpalaso,andrew-polk/libpalaso,mccarthyrb/libpalaso,gmartin7/libpalaso,chrisvire/libpalaso,ddaspit/libpalaso,hatton/libpalaso,mar... | PalasoUIWindowsForms/Miscellaneous/WaitCursor.cs | PalasoUIWindowsForms/Miscellaneous/WaitCursor.cs | using System;
using System.Linq;
using System.Windows.Forms;
namespace Palaso.UI.WindowsForms.Miscellaneous
{
/// ----------------------------------------------------------------------------------------
public class WaitCursor
{
/// --------------------------------------------------------------------------------... | using System;
using System.Linq;
using System.Windows.Forms;
namespace Palaso.UI.WindowsForms.Miscellaneous
{
/// ----------------------------------------------------------------------------------------
public class WaitCursor
{
/// --------------------------------------------------------------------------------... | mit | C# |
abbcdea006b0972a39e036c036b6412a9e276a7a | Bump From 0.5.0 (not the good reading) since first release is 1.0 to 1.0.1 | MobBotTeam/PokeMobBot,MobBotTeam/PokeMobBot | PoGo.PokeMobBot.Logic/Properties/AssemblyInfo.cs | PoGo.PokeMobBot.Logic/Properties/AssemblyInfo.cs | #region using directives
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// 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("Po... | #region using directives
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// 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("Po... | agpl-3.0 | C# |
97131143b60119cc6fac2d78a41d9b26e5f08fb2 | add some cooldown time after each process invocation | os2kitos/kitos,os2kitos/kitos,os2kitos/kitos,os2kitos/kitos | Presentation.Web/Hangfire/KeepReadModelsInSyncProcess.cs | Presentation.Web/Hangfire/KeepReadModelsInSyncProcess.cs | using System;
using System.Threading;
using Hangfire.Server;
using Infrastructure.Services.BackgroundJobs;
using Microsoft.Extensions.DependencyInjection;
using Ninject;
using Presentation.Web.Ninject;
namespace Presentation.Web.Hangfire
{
public class KeepReadModelsInSyncProcess : IBackgroundProcess
{
... | using System.Threading;
using Hangfire.Server;
using Infrastructure.Services.BackgroundJobs;
using Microsoft.Extensions.DependencyInjection;
using Ninject;
using Presentation.Web.Ninject;
namespace Presentation.Web.Hangfire
{
public class KeepReadModelsInSyncProcess : IBackgroundProcess
{
private read... | mpl-2.0 | C# |
2259399d899c397788ee320aec39881db7c201b8 | Bump version | oozcitak/imagelistview | ImageListView/Properties/AssemblyInfo.cs | ImageListView/Properties/AssemblyInfo.cs | // ImageListView - A listview control for image files
// Copyright (C) 2009 Ozgur Ozcitak
//
// 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/... | // ImageListView - A listview control for image files
// Copyright (C) 2009 Ozgur Ozcitak
//
// 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/... | apache-2.0 | C# |
530ddbdbb27157b058fa4c5114c7d113ff17ae5f | add vector extension | Weingartner/SolidworksAddinFramework | SolidworksAddinFramework/MathVectorExtensions.cs | SolidworksAddinFramework/MathVectorExtensions.cs | using System;
using SolidWorks.Interop.sldworks;
namespace SolidworksAddinFramework
{
public static class MathVectorExtensions
{
/// <summary>
/// gives the multiplier for b which would be the projection of a on b
/// </summary>
/// <param name="a"></param>
/// <param n... | using SolidWorks.Interop.sldworks;
namespace SolidworksAddinFramework
{
public static class MathVectorExtensions
{
/// <summary>
/// gives the multiplier for b which would be the projection of a on b
/// </summary>
/// <param name="a"></param>
/// <param name="b"></para... | mit | C# |
5c871f0e3c6c7685b0887350031fe5fc93097da9 | Add method to get entity by id | isurakka/ecs | ECS/EntityComponentSystem.cs | ECS/EntityComponentSystem.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ECS
{
public class EntityComponentSystem
{
private readonly EntityManager entityManager;
private readonly SystemManager systemManager;
private static readonly ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ECS
{
public class EntityComponentSystem
{
private readonly EntityManager entityManager;
private readonly SystemManager systemManager;
private static readonly ... | apache-2.0 | C# |
0b6d5a9cfcab959f31451ccb18da760f24e1e9e8 | Transpose Array | snownz/VI | VI/VI.Neural/ANNOperations/ANNDenseOperations.cs | VI/VI.Neural/ANNOperations/ANNDenseOperations.cs | using VI.Neural.ActivationFunction;
using VI.Neural.Error;
using VI.Neural.Layer;
using VI.Neural.OptimizerFunction;
using VI.NumSharp.Arrays;
namespace VI.Neural.ANNOperations
{
public class ANNDenseOperations : ISupervisedOperations
{
private IActivationFunction _activationFunction;
protected IErrorFunction... | using VI.Neural.ActivationFunction;
using VI.Neural.Error;
using VI.Neural.Layer;
using VI.Neural.OptimizerFunction;
using VI.NumSharp.Arrays;
namespace VI.Neural.ANNOperations
{
public class ANNDenseOperations : ISupervisedOperations
{
private IActivationFunction _activationFunction;
protected IErrorFunction... | mit | C# |
dda43e440c0520b4bd795e3198c0911765238618 | Add comments for XBox360GamepadButton enum | mina-asham/XBox360ControllerManager | XBox360ControllerManager/XBox360GamepadButton.cs | XBox360ControllerManager/XBox360GamepadButton.cs | namespace XBox360ControllerManager
{
/// <summary>
/// Enum to represent XBox 360 gamepad buttons
/// For more info check: http://support.xbox.com/en-GB/xbox-360/accessories/controllers
/// </summary>
public enum XBox360GamepadButton : ushort
{
/// <summary>
/// Directional pad ... | namespace XBox360ControllerManager
{
public enum XBox360GamepadButton : ushort
{
DPadUp = 0x0001,
DPadDown = 0x0002,
DPadLeft = 0x0004,
DPadRight = 0x0008,
Start = 0x0010,
Back = 0x0020,
LeftThumb = 0x0040,
RightThumb = 0x0080,
LeftShoulde... | mit | C# |
a2f1ae628620743a54beecadb9f03d2c6664e32a | Make test more robust | sillsdev/icu-dotnet,sillsdev/icu-dotnet | source/icu.net.tests/NativeMethods/DllResolverTests.cs | source/icu.net.tests/NativeMethods/DllResolverTests.cs | // Copyright (c) 2022 SIL International
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
using System.IO;
using NUnit.Framework;
namespace Icu.Tests
{
#if NET
[TestFixture]
public class DllResolverTests
{
private string _tempPath;
[TearDown]
public void TearDown()
{
... | // Copyright (c) 2022 SIL International
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
using System.IO;
using NUnit.Framework;
namespace Icu.Tests
{
#if NET
[TestFixture]
public class DllResolverTests
{
private string _tempPath;
[TearDown]
public void TearDown()
{
... | mit | C# |
eab394fcfaaa30c38d03b4589e1b8127b4d7e490 | unify string representation for end of stream | acple/ParsecSharp | ParsecSharp/Data/Internal/EmptyStream.cs | ParsecSharp/Data/Internal/EmptyStream.cs | namespace ParsecSharp.Internal
{
public sealed class EmptyStream<TToken> : IParsecStateStream<TToken>
{
public static IParsecStateStream<TToken> Instance { get; } = new EmptyStream<TToken>();
public TToken Current => default!;
public bool HasValue => false;
public IPosition Po... | namespace ParsecSharp.Internal
{
public sealed class EmptyStream<TToken> : IParsecStateStream<TToken>
{
public static IParsecStateStream<TToken> Instance { get; } = new EmptyStream<TToken>();
public TToken Current => default!;
public bool HasValue => false;
public IPosition Po... | mit | C# |
e8b0cb84ea03777c1e476caed241afb889313658 | add 2x GetExtension() unit tests | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | tests/FilterLists.Agent.Tests/Extensions/UriExtensionsTests.cs | tests/FilterLists.Agent.Tests/Extensions/UriExtensionsTests.cs | using System;
using System.Collections.Generic;
using FilterLists.Agent.Extensions;
using Xunit;
namespace FilterLists.Agent.Tests.Extensions
{
public class UriExtensionsTests
{
[Fact]
public void GetExtension_UriWithoutExtension_ReturnsEmptyString()
{
var uri = new Uri("ht... | using System;
using System.Collections.Generic;
using FilterLists.Agent.Extensions;
using Xunit;
namespace FilterLists.Agent.Tests.Extensions
{
public class UriExtensionsTests
{
[Fact]
public void IsValidUrl_WithValidUrl_ReturnsTrue()
{
const string uriString = "https://www... | mit | C# |
bd2fa5d16f61ea53d939320e970022b3b1bd377d | Use the managed thread id as identifier in our trace messages. | Bloomcredit/SSH.NET,sshnet/SSH.NET,miniter/SSH.NET | src/Renci.SshNet/Abstractions/DiagnosticAbstraction.cs | src/Renci.SshNet/Abstractions/DiagnosticAbstraction.cs | using System.Diagnostics;
using System.Threading;
namespace Renci.SshNet.Abstractions
{
internal static class DiagnosticAbstraction
{
#if FEATURE_DIAGNOSTICS_TRACESOURCE
private static readonly SourceSwitch SourceSwitch = new SourceSwitch("SshNetSwitch");
public static bool IsEnabled(TraceEv... | using System.Diagnostics;
namespace Renci.SshNet.Abstractions
{
internal static class DiagnosticAbstraction
{
#if FEATURE_DIAGNOSTICS_TRACESOURCE
private static readonly SourceSwitch SourceSwitch = new SourceSwitch("SshNetSwitch");
public static bool IsEnabled(TraceEventType traceEventType)
... | mit | C# |
99a08883b3f818b5251f856a05bf3d8f215ece46 | Remove leftover debug output | protyposis/Aurio,protyposis/Aurio | AudioAlign/AudioAlign/ViewModels/WangFingerprintingViewModel.cs | AudioAlign/AudioAlign/ViewModels/WangFingerprintingViewModel.cs | using AudioAlign.Audio.Matching;
using AudioAlign.Audio.Project;
using AudioAlign.Audio.TaskMonitor;
using AudioAlign.Models;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
namespace AudioAlign.V... | using AudioAlign.Audio.Matching;
using AudioAlign.Audio.Project;
using AudioAlign.Audio.TaskMonitor;
using AudioAlign.Models;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
namespace AudioAlign.V... | agpl-3.0 | C# |
d2dfa89a5f59d9ef23f3e529313e24158833cf29 | fix scope resolver | ircnelson/enjoy.cqrs,ircnelson/enjoy.cqrs | src/EnjoyCQRS/Configuration/EnjoyConfiguration.cs | src/EnjoyCQRS/Configuration/EnjoyConfiguration.cs | using System.Linq;
using EnjoyCQRS.Commands;
using EnjoyCQRS.Events;
namespace EnjoyCQRS.Configuration
{
public class EnjoyConfiguration
{
private readonly IResolver _resolver;
private readonly HandlerDictionary _handlerDictionary;
private readonly IEnjoyTypeScanner _scanner;
... | using System.Linq;
using EnjoyCQRS.Commands;
using EnjoyCQRS.Events;
namespace EnjoyCQRS.Configuration
{
public class EnjoyConfiguration
{
private readonly IScopeResolver _scopeResolver;
private readonly HandlerDictionary _handlerDictionary;
private readonly IEnjoyTypeScanner _scanner;... | mit | C# |
492ac3bdac1724b2c0d6fdcb96c4fe155d2b7335 | Add a title for nested types | theprash/FSharp.Formatting,tpetricek/FSharp.Formatting,modulexcite/FSharp.Formatting,Rickasaurus/FSharp.Formatting,tpetricek/FSharp.Formatting,mktange/FSharp.Formatting,ademar/FSharp.Formatting,halcwb/FSharp.Formatting,ademar/FSharp.Formatting,modulexcite/FSharp.Formatting,ademar/FSharp.Formatting,tpetricek/FSharp.Form... | src/FSharp.MetadataFormat/templates/module.cshtml | src/FSharp.MetadataFormat/templates/module.cshtml | @{
Layout = "default";
Title = "Module";
}
<div class="row">
<div class="span1"></div>
<div class="span10" id="main">
<h1>@Model.Module.Name</h1>
<div class="xmldoc">
@Model.Module.Comment.FullText
</div>
@if (Model.Module.NestedTypes.Length > 0) {
<h2>Nested types</h2>
<div>
... | @{
Layout = "default";
Title = "Module";
}
<div class="row">
<div class="span1"></div>
<div class="span10" id="main">
<h1>@Model.Module.Name</h1>
<div class="xmldoc">
@Model.Module.Comment.FullText
</div>
@if (Model.Module.NestedTypes.Length > 0) {
<div>
<table class="table t... | apache-2.0 | C# |
e931b47d5cdbe32d5b7030193f3f1934772998b1 | fix compile error | LagoVista/DeviceAdmin | src/LagoVista.IoT.DeviceAdmin/Models/Attribute.cs | src/LagoVista.IoT.DeviceAdmin/Models/Attribute.cs | using LagoVista.Core.Attributes;
using LagoVista.Core.Models;
using LagoVista.Core.Validation;
using LagoVista.IoT.DeviceAdmin.Resources;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace LagoVista.IoT.DeviceAdmin.Models
{
[EntityDescription(Dev... | using LagoVista.Core.Attributes;
using LagoVista.Core.Models;
using LagoVista.Core.Validation;
using LagoVista.IoT.DeviceAdmin.Resources;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace LagoVista.IoT.DeviceAdmin.Models
{
[EntityDescription(Dev... | mit | C# |
9ee8644234591e209e49b1c99dc31e23c56e18cb | Make IND hostile to everybody by default | will-hart/AnvilEditor,will-hart/AnvilEditor | AnvilEditor/Templates/MissionBase.cs | AnvilEditor/Templates/MissionBase.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AnvilParser;
using AnvilParser.Tokens;
namespace AnvilEditor.Templates
{
public class MissionBase : ParserClass
{
/// <summary>
/// Handles random seeds
/// </summ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AnvilParser;
using AnvilParser.Tokens;
namespace AnvilEditor.Templates
{
public class MissionBase : ParserClass
{
/// <summary>
/// Handles random seeds
/// </summ... | mit | C# |
c9563e6c38a5c55b944de847cb66285c4cc4dfe6 | Remove NetSerializable from DamageTypePrototype (#12594) | 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.Shared/Damage/Prototypes/DamageTypePrototype.cs | Content.Shared/Damage/Prototypes/DamageTypePrototype.cs | using Robust.Shared.Prototypes;
namespace Content.Shared.Damage.Prototypes
{
/// <summary>
/// A single damage type. These types are grouped together in <see cref="DamageGroupPrototype"/>s.
/// </summary>
[Prototype("damageType")]
public sealed class DamageTypePrototype : IPrototype
{
... | using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared.Damage.Prototypes
{
/// <summary>
/// A single damage type. These types are grouped together in <see cref="DamageGroupPrototype"/>s.
/// </summary>
[Prototype("damageType")]
[Serializable, NetSerializabl... | mit | C# |
7f146a07fd5428fd866aa8114221a0829e910f39 | Fix License information in UrbanDictionary.cs | TheInterframe/Urban10 | PixelatedTile.Urban10/UrbanDictionary.cs | PixelatedTile.Urban10/UrbanDictionary.cs | /*
The MIT License (MIT)
Copyright (c) 2015 Suraj "Interframe" G.
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, c... | /*
Class: UrbanDictionary.cs
Description: A simple class to interact with the Urban Dictionary API
Created By: @Interframe
Copyright 2015 Suraj "Interframe" G.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with ... | apache-2.0 | C# |
da9364fbf2e3c8c1bd1e8ce0524004affc6b455b | Fix call dot expression first test | ajlopez/BScript | Src/BScript.Tests/Expressions/CallDotExpressionTests.cs | Src/BScript.Tests/Expressions/CallDotExpressionTests.cs | namespace BScript.Tests.Expressions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BScript.Commands;
using BScript.Expressions;
using BScript.Language;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
pub... | namespace BScript.Tests.Expressions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BScript.Commands;
using BScript.Expressions;
using BScript.Language;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
pub... | mit | C# |
31c280489e1e52dafa46cd99a1dee13ea4a25012 | Order cleanup deletes. (Try to fix test failure due to referential constraint on MySQL on the build server (unable to reproduce locally)). | livioc/nhibernate-core,fredericDelaporte/nhibernate-core,ManufacturingIntelligence/nhibernate-core,ngbrown/nhibernate-core,fredericDelaporte/nhibernate-core,hazzik/nhibernate-core,gliljas/nhibernate-core,RogerKratz/nhibernate-core,nhibernate/nhibernate-core,fredericDelaporte/nhibernate-core,alobakov/nhibernate-core,ngb... | src/NHibernate.Test/NHSpecificTest/NH3641/TestFixture.cs | src/NHibernate.Test/NHSpecificTest/NH3641/TestFixture.cs | using System.Linq;
using NHibernate.Linq;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH3641
{
public class TestFixture : BugTestCase
{
protected override void OnSetUp()
{
using (var session = OpenSession())
using (var tx = session.BeginTransaction())
{
var child = ... | using System.Linq;
using NHibernate.Linq;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH3641
{
public class TestFixture : BugTestCase
{
protected override void OnSetUp()
{
using (var session = OpenSession())
using (var tx = session.BeginTransaction())
{
var child = ... | lgpl-2.1 | C# |
1f24c74b3c5aad71aa76a01e198d744361d6f479 | Make sure the anchor is the parent element | PearMed/Pear-Interaction-Engine | Scripts/Interactions/ObjectWithAnchor.cs | Scripts/Interactions/ObjectWithAnchor.cs | using UnityEngine;
namespace Pear.InteractionEngine.Interactions
{
/// <summary>
/// Manipulating objects, such as resizing and moving, can be tricky when you have multiple scripts trying the modify the same thing.
/// This class creates an anchor element which is used to help these manipulations
/// </summary>
... | using UnityEngine;
namespace Pear.InteractionEngine.Interactions
{
/// <summary>
/// Manipulating objects, such as resizing and moving, can be tricky when you have multiple scripts trying the modify the same thing.
/// This class creates an anchor element which is used to help these manipulations
/// </summary>
... | mit | C# |
c900d4ff46309eafbeeff6a2646dddb3272e6496 | Fix from phone number for SMS sender | MasterOfSomeTrades/CommentEverythingCommunications | CEComms/ClassLibrary1/Communications/Twilio/SMS/TextMessageSender.cs | CEComms/ClassLibrary1/Communications/Twilio/SMS/TextMessageSender.cs | using CEComms.Communications.Twilio.User;
using CommentEverythingCryptography.Encryption;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Twilio;
namespace Stockiment.Communications.Twilio.SMS {
public class TextMessageSender {
public TextMessageSender() {
... | using CEComms.Communications.Twilio.User;
using CommentEverythingCryptography.Encryption;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Twilio;
namespace Stockiment.Communications.Twilio.SMS {
public class TextMessageSender {
public TextMessageSender() {
... | mit | C# |
76c075df2cee8be3a45b14f24826a8933d0ee2fb | Fix codefactor | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/Views/AddWallet/LegalDocumentsView.axaml.cs | WalletWasabi.Fluent/Views/AddWallet/LegalDocumentsView.axaml.cs | using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace WalletWasabi.Fluent.Views.AddWallet
{
public class LegalDocumentsView : UserControl
{
public LegalDocumentsView()
{
InitializeComponent();
}
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
}
| using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace WalletWasabi.Fluent.Views.AddWallet
{
public class LegalDocumentsView : UserControl
{
public LegalDocumentsView()
{
InitializeComponent();
}
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
}
| mit | C# |
895f7386943f554aae3c9509df69569415a475a0 | Update for cookies | wbsimms/PracticeTime,wbsimms/PracticeTime,wbsimms/PracticeTime,wbsimms/PracticeTime | src/Web/PracticeTime.Web.Test/UI_Automation/LoginTest.cs | src/Web/PracticeTime.Web.Test/UI_Automation/LoginTest.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WatiN.Core;
namespace PracticeTime.Web.Test.UI_Automation
{
[TestClass]
public class LoginTest
{
[TestMethod, Ignore]
public void LoginStudentTest()
{
using (var browser = new IE("http://localhost:2... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WatiN.Core;
namespace PracticeTime.Web.Test.UI_Automation
{
[TestClass]
public class LoginTest
{
[TestMethod, Ignore]
public void LoginStudentTest()
{
using (var browser = new IE("http://localhost:2... | apache-2.0 | C# |
4cfca71d080822734e7f29de27b5273f3304460a | Fix a few test scenes | smoogipooo/osu,UselessToucan/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,ppy/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,peppy/osu,NeoAdonis/osu | osu.Game/Tests/Visual/RateAdjustedBeatmapTestScene.cs | osu.Game/Tests/Visual/RateAdjustedBeatmapTestScene.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics;
using osu.Framework.Extensions.ObjectExtensions;
namespace osu.Game.Tests.Visual
{
/// <summary>
/// Test case which adjusts the beatma... | // 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.Extensions.ObjectExtensions;
namespace osu.Game.Tests.Visual
{
/// <summary>
/// Test case which adjusts the beatmap's rate to match any spee... | mit | C# |
006f91456dfed7607e0b1be44c26ade04ec85b5e | make SpecExtensions.Find by name more reliable | nspec/NSpec,mattflo/NSpec,BennieCopeland/NSpec,mattflo/NSpec,mattflo/NSpec,nspec/NSpec,BennieCopeland/NSpec,mattflo/NSpec | NSpecSpecs/SpecExtensions.cs | NSpecSpecs/SpecExtensions.cs | using System.Linq;
using System.Text.RegularExpressions;
using NSpec;
using NSpec.Domain;
namespace NSpecSpecs
{
public static class SpecExtensions
{
public static Context Find(this ContextCollection contextCollection, string name)
{
return contextCollection.AllContexts()... | using System.Linq;
using System.Text.RegularExpressions;
using NSpec;
using NSpec.Domain;
namespace NSpecSpecs
{
public static class SpecExtensions
{
public static Context Find(this ContextCollection contextCollection, string name)
{
return contextCollection.AllContexts()... | mit | C# |
252be27100ec45a916be258b1e147c5ec7c23584 | Remove namespace and public from console app | mlorbetske/cli,johnbeisner/cli,dasMulli/cli,blackdwarf/cli,svick/cli,blackdwarf/cli,blackdwarf/cli,ravimeda/cli,weshaggard/cli,harshjain2/cli,livarcocc/cli-1,nguerrera/cli,AbhitejJohn/cli,mlorbetske/cli,nguerrera/cli,Faizan2304/cli,weshaggard/cli,MichaelSimons/cli,svick/cli,EdwardBlair/cli,harshjain2/cli,MichaelSimons/... | src/dotnet/commands/dotnet-new/CSharp_Console/Program.cs | src/dotnet/commands/dotnet-new/CSharp_Console/Program.cs | using System;
public class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
| using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
| mit | C# |
ccc164c1a061d1dc29bc3022d2583d5c9066d38a | set version to 1.5.0.6 | evitself/HTML-Renderer,tinygg/graphic-HTML-Renderer,evitself/HTML-Renderer,ArthurHub/HTML-Renderer,tinygg/graphic-HTML-Renderer,Perspex/HTML-Renderer,Perspex/HTML-Renderer,todor-dk/HTML-Renderer,slagou/HTML-Renderer,todor-dk/HTML-Renderer,verdesgrobert/HTML-Renderer,ArthurHub/HTML-Renderer,tinygg/graphic-HTML-Renderer,... | Source/SharedAssemblyInfo.cs | Source/SharedAssemblyInfo.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("HTML Renderer")]
[assembly: AssemblyDesc... | 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("HTML Renderer")]
[assembly: AssemblyDesc... | bsd-3-clause | C# |
2976883ddb383462f01418a79d06b5582db93274 | Add docs to Result | exodrifter/unity-rumor | Parser/Result.cs | Parser/Result.cs | namespace Exodrifter.Rumor.Parser
{
/// <summary>
/// Represents a successful result from a parser.
/// </summary>
/// <typeparam name="T">
/// The type of the value which was parsed.
/// </typeparam>
public sealed class Result<T>
{
/// <summary>
/// The state to use for the next parser after this one.
/... | namespace Exodrifter.Rumor.Parser
{
public sealed class Result<T>
{
public State NextState { get; }
public T Value { get; }
public Result(State nextState, T value)
{
NextState = nextState;
Value = value;
}
}
}
| mit | C# |
9179a84932db8f9a6973f3d3e1bbfb3672cca64b | Handle filename changes | Unity-Technologies/editorconfig-visualstudio,jedmao/editorconfig-visualstudio,jedmao/editorconfig-visualstudio,Unity-Technologies/editorconfig-visualstudio | Plugin/Plugin.cs | Plugin/Plugin.cs | using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
namespace EditorConfig.VisualStudio
{
/// <summary>
/// This plugin attaches to an editor instance and updates its settings at
/// the appropriate times
/// </summary>
internal class Plugin
{
public Plugin(IWpf... | using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
namespace EditorConfig.VisualStudio
{
/// <summary>
/// This plugin attaches to an editor instance and updates its settings at
/// the appropriate times
/// </summary>
internal class Plugin
{
public Plugin(IWpf... | bsd-2-clause | C# |
b5a71683de5b2b0aabe22b5b9f89f07a95a20427 | Change date range input field type to text | jittuu/AzureLog,jittuu/AzureLog,jittuu/AzureLog | AzureLog.Web/Views/Home/Index.cshtml | AzureLog.Web/Views/Home/Index.cshtml | @model IEnumerable<AzureLog.Web.Models.AzureLogEntity>
@{
ViewBag.Title = "Home Page";
}
<div class="row">
<div class="page-header" id="banner">
Azure Log Viewer
</div>
@using (Html.BeginForm())
{
<div class="form-group">
<div class="timestamp">
<input ... | @model IEnumerable<AzureLog.Web.Models.AzureLogEntity>
@{
ViewBag.Title = "Home Page";
}
<div class="row">
<div class="page-header" id="banner">
Azure Log Viewer
</div>
@using (Html.BeginForm())
{
<div class="form-group">
<div class="timestamp">
<input ... | mit | C# |
ba1beeddf437673b1e66764038b3eeea2cb8012c | Fix prog | jefking/King.Azure.Imaging,jefking/King.Azure.Imaging,jefking/King.Azure.Imaging | King.Azure.Imaging.WebJob/Program.cs | King.Azure.Imaging.WebJob/Program.cs | namespace King.Azure.Imaging.WebJob
{
using System;
using Microsoft.Azure;
using Microsoft.Azure.WebJobs;
public class Program
{
public static void Main()
{
var webJobsDashboard = CloudConfigurationManager.GetSetting("AzureWebJobsDashboard");
var webJobsStor... | namespace King.Azure.Imaging.WebJob
{
using System;
using System.Configuration;
using Microsoft.Azure.WebJobs;
public class Program
{
public static void Main()
{
var webJobsStorage = ConfigurationManager.ConnectionStrings["AzureWebJobsStorage"].ConnectionString;
... | mit | C# |
a861edbf9931de5ae87b054fa13f04d581712eb4 | Fix "deposit notification" message | croquet-australia/croquet-australia-website,croquet-australia/website-application,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia.com.au,croquet-australia/croquet-australia-website,croquet-australia/croquet-australia.com.au,croquet-australia/cro... | source/CroquetAustralia.Website/app/tournaments/deposited.cshtml | source/CroquetAustralia.Website/app/tournaments/deposited.cshtml | <section>
<h1>EFT Deposit</h1>
<p>Thank you for notifying us of your EFT Deposit</p>
<p>
Regards<br/>
Croquet Australia
</p>
</section> | <section>
<h1>EFT Deposit</h1>
<p>Thank you notifying us of your EFT Deposit</p>
<p>
Regards<br/>
Croquet Australia
</p>
</section> | mit | C# |
bd64240b97c2df2e00f9e06af2c37ff60f28849f | Remove reference to Hibernating Rhinos | sixteencolors/Pablo.Gallery,sixteencolors/Pablo.Gallery,sixteencolors/Pablo.Gallery,sixteencolors/Pablo.Gallery | src/Pablo.Gallery/Global.asax.cs | src/Pablo.Gallery/Global.asax.cs | using Pablo.Gallery.Models;
using System.Data.Entity;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using System;
using System.Threading;
namespace Pablo.Gallery
{
public class MvcApplication : HttpApplication
{
static MvcApplication()
{
... | using Pablo.Gallery.Models;
using System.Data.Entity;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using System;
using System.Threading;
namespace Pablo.Gallery
{
public class MvcApplication : HttpApplication
{
static MvcApplication()
{
... | mit | C# |
3c88f894037f8d7c7bb80791009465a4a11f53b0 | remove commented out code | jobeland/NeuralNetwork | NeuralNetwork/NeuralNetwork/Layer.cs | NeuralNetwork/NeuralNetwork/Layer.cs | using ArtificialNeuralNetwork.ActivationFunctions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ArtificialNeuralNetwork
{
[Serializable]
public class Layer : ILayer
{
private readonly IList<INeuron> _neuronsInLayer;
... | using ArtificialNeuralNetwork.ActivationFunctions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ArtificialNeuralNetwork
{
[Serializable]
public class Layer : ILayer
{
private readonly IList<INeuron> _neuronsInLayer;
... | mit | C# |
eda41176d157bf12179714100b762c1abaca17dd | test ultra small index prefix | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | src/FilterLists.Api/Migrations/20181019141708_AddRuleRawIndex.cs | src/FilterLists.Api/Migrations/20181019141708_AddRuleRawIndex.cs | using FilterLists.Api.Migrations.Extensions;
using Microsoft.EntityFrameworkCore.Migrations;
namespace FilterLists.Api.Migrations
{
public partial class AddRuleRawIndex : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateIndex(
... | using FilterLists.Api.Migrations.Extensions;
using Microsoft.EntityFrameworkCore.Migrations;
namespace FilterLists.Api.Migrations
{
public partial class AddRuleRawIndex : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateIndex(
... | mit | C# |
5b9fb5cb861caae6b98d7b3e78330f7183fa812d | Fix EmptyContainer properly. | 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/Construction/Completions/EmptyContainer.cs | Content.Server/Construction/Completions/EmptyContainer.cs | #nullable enable
using System.Linq;
using System.Threading.Tasks;
using Content.Shared.Construction;
using JetBrains.Annotations;
using Robust.Server.GameObjects;
using Robust.Shared.Containers;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
namespace Content.Server.Construction.Completions
{
... | #nullable enable
using System.Threading.Tasks;
using Content.Shared.Construction;
using JetBrains.Annotations;
using Robust.Server.GameObjects;
using Robust.Shared.Containers;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
namespace Content.Server.Construction.Completions
{
[UsedImplicitly]
... | mit | C# |
dd0e4e05d8562193f478bc3ac2ec1a45476790b3 | Apply naming conventions to QAnimation | jnbt/NeoQueues | Assets/NeoQueues/QAnimation.cs | Assets/NeoQueues/QAnimation.cs | using System;
using System.Collections;
using Neo.Async;
namespace Neo.Queues {
/// <summary>
/// Wraps any Unity-base animation into a queue item which will finished
/// as soon as the animation has finished.
/// </summary>
/// <example><![CDATA[
/// QAnimation qAni = new QAnimation(gameObject.GetComponen... | using System;
using System.Collections;
using Neo.Async;
namespace Neo.Queues {
/// <summary>
/// Wraps any Unity-base animation into a queue item which will finished
/// as soon as the animation has finished.
/// </summary>
/// <example><![CDATA[
/// QAnimation qAni = new QAnimation(gameObject.GetComponen... | mit | C# |
443e63430fcccb76e542e2f5bc86b979a8a70374 | Remove unused using | Galad/tranquire,Galad/tranquire,Galad/tranquire | src/Sandbox/Program.cs | src/Sandbox/Program.cs | using FluentAssertions;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Edge;
using OpenQA.Selenium.Firefox;
using Tranquire;
using Tranquire.Selenium;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ToDoList.Automation.Actions;
using ToDoLi... | using FluentAssertions;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Edge;
using OpenQA.Selenium.Firefox;
using Tranquire;
using Tranquire.Selenium;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ToDoList.Automation.Actions;
using ToDoLi... | mit | C# |
3b6ee74b81eb12d0da78d63119d96e8d3eb0d5fd | Add back missing bracket | Weingartner/SolidworksAddinFramework | SolidworksAddinFramework.Spec/EnumerableExtensionsSpec.cs | SolidworksAddinFramework.Spec/EnumerableExtensionsSpec.cs | using System.Linq;
using FluentAssertions;
using Xunit;
namespace SolidworksAddinFramework.Spec
{
public class EnumerableExtensionsSpec
{
[Fact]
public void BufferWhileNotChangedShouldWork()
{
var list = new[] {2, 4, 6, 8, 1, 3, 7, 2, 9, 7, 11, 4, 8, 100};
var ... | using System.Linq;
using FluentAssertions;
using Xunit;
namespace SolidworksAddinFramework.Spec
{
public class EnumerableExtensionsSpec
{
[Fact]
public void BufferWhileNotChangedShouldWork()
{
var list = new[] {2, 4, 6, 8, 1, 3, 7, 2, 9, 7, 11, 4, 8, 100};
var ... | mit | C# |
8ae48aee68d459fb479179814688fa9b867a7534 | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | autofac/Autofac.Extras.AttributeMetadata | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Extras.Attributed")]
[assembly: InternalsVisibleTo("Autofac.Tests.Extras.Attributed, PublicKey=00240000048000009400000006020000002400005253413100040000010001008728425885ef385e04... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Extras.Attributed")]
[assembly: AssemblyDescription("Autofac Extensions for categorized discovery using attributes")]
[assembly: InternalsVisibleTo("Autofac.Tests.Extras.Attrib... | mit | C# |
660011854b2d4d2f472d58d0990dc7fa287dabea | bump version to v1.1 | micdenny/PRTG-Redis-Sensor,cdemi/PRTG-Redis-Sensor | Properties/AssemblyInfo.cs | 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("PR... | 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("PR... | mit | C# |
d41fcaa9b90691d0e2a78bd3e46d4a4475158c19 | Bump version to 1.2.0 | kalaider/kPassKeep,kalaider/kPassKeep,kalaider/kPassKeep | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows.Media;
// 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 System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows.Media;
// 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.
... | apache-2.0 | C# |
51dc56c0dcdb80dad09ea06e4e489569699201a5 | update version for web | cswares/CS.Utility | sources/CS.Utility.Web/Properties/AssemblyInfo.cs | sources/CS.Utility.Web/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("CS.Utility.Web")]
[assembly: AssemblyDescription("所有关于Web的,MVC的相关的扩展和实用方法扩展")]
[assembly: AssemblyConfiguration("")]
//将 ComVisible 设置为 fals... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("CS.Utility.Web")]
[assembly: AssemblyDescription("所有关于Web的,MVC的相关的扩展和实用方法扩展")]
[assembly: AssemblyConfiguration("")]
//将 ComVisible 设置为 fals... | apache-2.0 | C# |
de5c3db54d33791f3f00c3b751e60d43b024b9ad | Rename DragOperationsMask enum values Apply flags attribute and implement `Every` option | gregmartinhtc/CefSharp,wangzheng888520/CefSharp,VioletLife/CefSharp,yoder/CefSharp,windygu/CefSharp,Haraguroicha/CefSharp,Haraguroicha/CefSharp,rlmcneary2/CefSharp,joshvera/CefSharp,zhangjingpu/CefSharp,rover886/CefSharp,VioletLife/CefSharp,battewr/CefSharp,rlmcneary2/CefSharp,AJDev77/CefSharp,haozhouxu/CefSharp,twxsta... | CefSharp/DragOperationsMask.cs | CefSharp/DragOperationsMask.cs | // Copyright © 2010-2014 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.
using System;
namespace CefSharp
{
[Flags]
public enum DragOperationsMask
{
None = 0,
Copy = 1,
Link = 2,
... | // Copyright © 2010-2014 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
{
public enum DragOperationsMask
{
DRAG_OPERATION_NONE = 0,
DRAG_OPERATION_COPY = 1,
DRAG_OPERA... | bsd-3-clause | C# |
3226e87eb23bb0254e7165817e4e5c826dc34fc7 | test case | jefking/King.A-Trak | King.ATrak.Test/ContentTypesTests.cs | King.ATrak.Test/ContentTypesTests.cs | namespace King.ATrak.Test
{
using King.ATrak;
using NUnit.Framework;
using System;
[TestFixture]
public class ContentTypesTests
{
[Test]
[ExpectedException(typeof(ArgumentException))]
public void ContentTypeFilePathInvalid()
{
ContentTypes.ContentTyp... | namespace King.ATrak.Test
{
using King.ATrak;
using NUnit.Framework;
using System;
[TestFixture]
public class ContentTypesTests
{
[Test]
[ExpectedException(typeof(ArgumentException))]
public void ContentTypeFilePathInvalid()
{
ContentTypes.ContentTyp... | mit | C# |
f133b0d93d157533f1a134d5b2dff83e7a0af814 | add extensions for creating sequences from integers | Pondidum/Ledger,Pondidum/Ledger | Ledger/Infrastructure/Extensions.cs | Ledger/Infrastructure/Extensions.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace Ledger.Infrastructure
{
public static class Extensions
{
public static IEnumerable<T> Apply<T>(this IEnumerable<T> self, Action<T> action)
{
foreach (var item in self)
{
action(item);
yield return item;
}
}
public... | using System;
using System.Collections.Generic;
using System.Linq;
namespace Ledger.Infrastructure
{
public static class Extensions
{
public static IEnumerable<T> Apply<T>(this IEnumerable<T> self, Action<T> action)
{
foreach (var item in self)
{
action(item);
yield return item;
}
}
public... | lgpl-2.1 | C# |
222f83c2bdcd548b27bc7573906a7c6046648d33 | Update GenericType enum in accordance with spec | roblans/ZWave4Net,MiTheFreeman/ZWave4Net | ZWave/GenericType.cs | ZWave/GenericType.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace ZWave
{
public enum GenericType : byte
{
Unknown = 0x00,
GenericController = 0x01,
StaticController = 0x02,
AVControlPoint = 0x03,
Display = 0x04,
NetworkExtender = 0x05,
Applia... | using System;
using System.Collections.Generic;
using System.Text;
namespace ZWave
{
public enum GenericType : byte
{
Unknown = 0x00,
PortableRemote = 0x01,
StaticController = 0x02,
AVControlPoint = 0x03,
RoutingSlave = 0x04,
Display = 0x06,
GarageDoor =... | mit | C# |
c862759598dad173b88c8950af00b9d762c15640 | fix ConnectionFactoryOracle | bgTeamDev/bgTeam.Core,bgTeamDev/bgTeam.Core | src/bgTeam.Impl.Oracle/ConnectionFactoryOracle.cs | src/bgTeam.Impl.Oracle/ConnectionFactoryOracle.cs | namespace bgTeam.DataAccess.Impl.Oracle
{
using System.Data;
using System.Threading.Tasks;
using global::Oracle.ManagedDataAccess.Client;
public class ConnectionFactoryOracle : IConnectionFactory
{
private readonly IAppLogger _logger;
private readonly IConnectionSetting _setting;
... | namespace bgTeam.DataAccess.Impl.Oracle
{
using System.Data;
using System.Threading.Tasks;
using global::Oracle.ManagedDataAccess.Client;
public class ConnectionFactoryOracle : IConnectionFactory
{
private readonly IAppLogger _logger;
private readonly IConnectionSetting _setting;
... | mit | C# |
1c47823d9e2fb696c5d5f6518250da7d0adc84d7 | Format adjustment. | DragonSpark/Framework,DragonSpark/Framework,DragonSpark/Framework,DragonSpark/Framework | DragonSpark.Presentation/Components/Forms/ValidationDefinition.cs | DragonSpark.Presentation/Components/Forms/ValidationDefinition.cs | using Microsoft.AspNetCore.Components.Forms;
using System.Threading.Tasks;
namespace DragonSpark.Presentation.Components.Forms
{
sealed class ValidationDefinition : IValidationDefinition
{
readonly OperationView<FieldIdentifier, bool> _view;
public ValidationDefinition(OperationView<FieldIdentifier, bool> view... | using Microsoft.AspNetCore.Components.Forms;
using System.Threading.Tasks;
namespace DragonSpark.Presentation.Components.Forms
{
public sealed class ValidationDefinition : IValidationDefinition
{
readonly OperationView<FieldIdentifier, bool> _view;
public ValidationDefinition(OperationView<FieldIdentifier, boo... | mit | C# |
8880f6fd1e9edd01651226e4512c4a42bb8216f6 | fix the foreignKey link | sitedisks/YuYan | YuYan.API/YuYan.Domain/Database/tbSurveyClientAnswer.cs | YuYan.API/YuYan.Domain/Database/tbSurveyClientAnswer.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YuYan.Domain.Database
{
[Table("SurveyClientAnswer")]
public class tbSurveyClientAnswer
{
[Key,Column("Id")]
public long AnswerId { get... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YuYan.Domain.Database
{
[Table("SurveyClientAnswer")]
public class tbSurveyClientAnswer
{
[Key,Column("Id")]
public long AnswerId { get... | mit | C# |
cb80e620fda4ab5c0c85142b3f1b4ca17668aac2 | Fix ListBox column autosizing (#766) | mono/xwt,TheBrainTech/xwt,hamekoz/xwt,antmicro/xwt,cra0zy/xwt,lytico/xwt,hwthomas/xwt | Xwt.XamMac/Xwt.Mac/ListBoxBackend.cs | Xwt.XamMac/Xwt.Mac/ListBoxBackend.cs | //
// ListBoxBackend.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restrictio... | //
// ListBoxBackend.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restrictio... | mit | C# |
d1be5005a8476293e24d3db5ce473f8fc964cc32 | Make equipped list a property instead of a field | Cisien/OniBot | OniBot/CommandConfigs/SweepConfig.cs | OniBot/CommandConfigs/SweepConfig.cs | using Newtonsoft.Json;
using OniBot.Interfaces;
using System.Collections.Generic;
namespace OniBot.CommandConfigs
{
public class SweepConfig : CommandConfig
{
public Dictionary<ulong, string> Equiped { get; set; } = new Dictionary<ulong, string>();
[JsonIgnore]
public override string ... | using Newtonsoft.Json;
using OniBot.Interfaces;
using System.Collections.Generic;
namespace OniBot.CommandConfigs
{
public class SweepConfig : CommandConfig
{
public Dictionary<ulong, string> Equiped = new Dictionary<ulong, string>();
[JsonIgnore]
public override string ConfigKey => "... | apache-2.0 | C# |
0e980b69e04def5999fddd7c7d318c0cccd55524 | Update parallel task | marcotmp/BehaviorTree | Assets/Scripts/BehaviorTree/Composites/Parallel.cs | Assets/Scripts/BehaviorTree/Composites/Parallel.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Parallel : CompositeTask
{
private int taskIndex = 0;
private int maxFailCount = 0;
private int maxSuccessCount = 0;
public Parallel(string name, int maxSuccessCount = 0, int maxFailCount = 0) : base(name)
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Parallel : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
| unlicense | C# |
e5d762319bd976e4ff11fc076352f81adb6e6b83 | Bump to version 2.1.2.0 | Silv3rPRO/proshine,bobus15/proshine,MeltWS/proshine | PROShine/Properties/AssemblyInfo.cs | PROShine/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
// 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: As... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
// 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: As... | mit | C# |
dbeae8376a360097c4611a360654ba0eed3b2908 | Remove dead code | cbcrc/LinkIt | HeterogeneousDataSources/PropertyInfoExtensions.cs | HeterogeneousDataSources/PropertyInfoExtensions.cs | using System.Reflection;
namespace HeterogeneousDataSources
{
public static class PropertyInfoExtensions
{
public static bool IsPublicReadWrite(this PropertyInfo property) {
return property.CanRead &&
property.GetGetMethod(false)!=null &&
property.CanWrite &&... | using System.Reflection;
namespace HeterogeneousDataSources
{
public static class PropertyInfoExtensions
{
public static bool IsPublicReadWrite(this PropertyInfo property) {
return property.CanRead &&
property.GetGetMethod(false)!=null &&
property.CanWrite &&... | mit | C# |
bacf89f94d2737781c055208c35e72620224ab6e | Update version to 1.3.6 | anonymousthing/ListenMoeClient | Properties/AssemblyInfo.cs | 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("Listen.moe Client")]
[assembly: Ass... | using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Listen.moe Client")]
[assembly: Ass... | mit | C# |
2f2bd59844e65fa6a57ab05d81dc39907a3aeb23 | Remove editor functionality from VirtualBeatmapTrack | peppy/osu,UselessToucan/osu,NeoAdonis/osu,smoogipooo/osu,peppy/osu,NeoAdonis/osu,peppy/osu,johnneijzen/osu,2yangk23/osu,naoey/osu,johnneijzen/osu,NeoAdonis/osu,EVAST9919/osu,ppy/osu,DrabWeb/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,smoogipoo/osu,2yangk23/osu,DrabWeb/osu,ppy/osu,ZLima12/osu,naoey/osu,DrabWeb/osu,Usele... | osu.Game/Beatmaps/WorkingBeatmap_VirtualBeatmapTrack.cs | osu.Game/Beatmaps/WorkingBeatmap_VirtualBeatmapTrack.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Linq;
using osu.Framework.Audio.Track;
using osu.Game.Rulesets.Objects.Types;
namespace osu.Game.Beatmaps
{
public partial class WorkingBeatmap
{
... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Linq;
using osu.Framework.Audio.Track;
using osu.Game.Rulesets.Objects.Types;
namespace osu.Game.Beatmaps
{
public partial class WorkingBeatmap
{
... | mit | C# |
5a592012c673c89035edf80a167f7f85d4eb6468 | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | autofac/Autofac.Extras.EnterpriseLibraryConfigurator | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Extras.EnterpriseLibraryConfigurator")]
[assembly: ComVisible(false)] | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Extras.EnterpriseLibraryConfigurator")]
[assembly: AssemblyDescription("Autofac support for Enterprise Library container configuration.")]
[assembly: ComVisible(false)] | mit | C# |
f4ccbbd09261ac4ba63d4633d3d884841b4139c9 | Add basic server implementation | UselessToucan/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new,ppy/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipoo/osu | osu.Game/Online/RealtimeMultiplayer/ISpectatorServer.cs | osu.Game/Online/RealtimeMultiplayer/ISpectatorServer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading.Tasks;
namespace osu.Game.Online.RealtimeMultiplayer
{
/// <summary>
/// An interface defining the spectator server instance.
/// </su... | // 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.
namespace osu.Game.Online.RealtimeMultiplayer
{
/// <summary>
/// An interface defining the spectator server instance.
/// </summary>
public interface IMu... | mit | C# |
7807dfe3c49f7a623eb2824e4af91f269ca9ed53 | bump version | BeowulfStratOps/BSU.Sync | Properties/AssemblyInfo.cs | 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("BS... | 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("BS... | mit | C# |
d26bf79d4d82681d4fec888c383b9e82f00054af | Add weakreferences to UrhoEventAdapter | florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho,florin-chelaru/urho | bindings/src/Runtime/UrhoEventAdapter.cs | bindings/src/Runtime/UrhoEventAdapter.cs | using System;
using System.Collections.Generic;
namespace Urho
{
internal class UrhoEventAdapter<TEventArgs>
{
readonly Dictionary<IntPtr, List<WeakReference<Action<TEventArgs>>>> managedSubscribersByObjects;
readonly Dictionary<IntPtr, Subscription> nativeSubscriptionsForObjects;
public UrhoEventAdapter()
... | using System;
using System.Collections.Generic;
namespace Urho
{
internal class UrhoEventAdapter<TEventArgs>
{
//TODO: seems we should use List<WeakReference<Action<TEventArgs>>>> here
readonly Dictionary<IntPtr, List<Action<TEventArgs>>> managedSubscribersByObjects;
readonly Dictionary<IntPtr, Subscription> ... | mit | C# |
0886036d3306c2c5b5987d2a484952b3bf2f4ad5 | Revert "I added a table of garbage" | Manchen08/ToDoList,Manchen08/ToDoList,Manchen08/ToDoList | Project1/Views/ToDoList/Index.cshtml | Project1/Views/ToDoList/Index.cshtml | @model IEnumerable<Project1.ToDoList>
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Index</h2>
<p>
@Html.ActionLink("Create New", "Create" )
</p>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
... | @model IEnumerable<Project1.ToDoList>
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Index</h2>
<p>
@Html.ActionLink("Create New", "Create" )
</p>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
... | mit | C# |
58d76e903618e640fe97d9b341959cca33804940 | Use FinishTransforms() | UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,ppy/osu,ppy/osu,UselessToucan/osu,smoogipooo/osu,peppy/osu-new,smoogipoo/osu,NeoAdonis/osu | osu.Game/Screens/OnlinePlay/Lounge/Components/RoomStatusPill.cs | osu.Game/Screens/OnlinePlay/Lounge/Components/RoomStatusPill.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites... | mit | C# |
518dba02fe65bb1ca32d7e7d98be8febe995ca8e | Update program.cs | justynak2/indywidualne | program.cs | program.cs | int a =2;
int b =4;
| int a =2;
| mit | C# |
92a7308e3f64ac46f2c5a03abae0cc423863e6e7 | optimize unit test naming | tinohager/Nager.Date,tinohager/Nager.Date,tinohager/Nager.Date | Src/Nager.Date.UnitTest/Country/UnitedKingdomTest.cs | Src/Nager.Date.UnitTest/Country/UnitedKingdomTest.cs | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace Nager.Date.UnitTest.Country
{
[TestClass]
public class UnitedKingdomTest
{
[TestMethod]
public void TestUnitedKingdom()
{
var testDate = new DateTime(2017, 08, 28);
var isPublicHolid... | using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace Nager.Date.UnitTest.Country
{
[TestClass]
public class UnitedKingdomTest
{
[TestMethod]
public void TestUnitedKingdom()
{
var testDate = new DateTime(2017, 08, 28);
var isPublicHolid... | mit | C# |
bede40838233618c6c494d678da464a79b9e283e | Remove unneeded using statements. | codemonkey85/libuxie | libuxie/libuxie/libuxie.cs | libuxie/libuxie/libuxie.cs | using System;
namespace libuxie {
namespace GBA {
}
namespace NDS {
}
namespace DSI {
}
/*
namespace 3DS {
}
*/
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace libuxie {
namespace GBA {
}
namespace NDS {
}
namespace DSI {
}
/*
namespace 3DS {
}
*/
}
| unlicense | C# |
775fc50d031ac6b392bdc74c895d1dd027280cdf | fix compilation errors | dkataskin/bstrkr | bstrkr.mobile/bstrkr.mvvm/Converters/ZoomToMarkerSizeConverter.cs | bstrkr.mobile/bstrkr.mvvm/Converters/ZoomToMarkerSizeConverter.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Cirrious.CrossCore.Converters;
using bstrkr.mvvm.views;
namespace bstrkr.mvvm.converters
{
public class ZoomToMarkerSizeConverter : IMvxValueConverter
{
private readonly IList<Tuple<float, MapMarkerSizes>> _map ... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Cirrious.CrossCore.Converters;
using bstrkr.mvvm.views;
namespace bstrkr.mvvm.converters
{
public class ZoomToMarkerSizeConverter : IMvxValueConverter
{
private readonly IList<Tuple<float, MapMarkerSizes>> _map ... | bsd-2-clause | C# |
439f41a38e209e7558475327fd77b3cba93d6a81 | Reduce minimum measurement distance. | Simie/PrecisionEngineering | Src/PrecisionEngineering/Settings.cs | Src/PrecisionEngineering/Settings.cs | using UnityEngine;
namespace PrecisionEngineering
{
internal static class Settings
{
public const float MinimumDistanceMeasure = 0.9f;
public const float SnapAngle = 5;
public const float GuideLinesVisibilityDistance = 80f;
public const float GuideLinesSnapDistance = 5f;
... | using UnityEngine;
namespace PrecisionEngineering
{
internal static class Settings
{
public const float MinimumDistanceMeasure = 3;
public const float SnapAngle = 5;
public const float GuideLinesVisibilityDistance = 80f;
public const float GuideLinesSnapDistance = 5f;
... | mit | C# |
e37b86d123d1156d4b115732234f75dc7c352939 | Fix code style issue | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Stores/BitcoinStore.cs | WalletWasabi/Stores/BitcoinStore.cs | using NBitcoin;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using WalletWasabi.Blockchain.Blocks;
using WalletWasabi.Blockchain.Mempool;
using WalletWasabi.Blockchain.P2p;
using WalletWasabi.Blockchain.Transactions;
using WalletWasabi.Helpers;
using ... | using NBitcoin;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using WalletWasabi.Blockchain.Blocks;
using WalletWasabi.Blockchain.Mempool;
using WalletWasabi.Blockchain.P2p;
using WalletWasabi.Blockchain.Transactions;
using WalletWasabi.Helpers;
using ... | mit | C# |
5888f9905ec7c03b6f2d7155fb98136b8af7666c | Reconfigure Constructor to allow Initialization with values | xivSolutions/StaticAnchorManager | WLWSimpleAnchorManager/AnchorData.cs | WLWSimpleAnchorManager/AnchorData.cs | using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace WLWSimpleAnchorManager
{
public class AnchorData
{
private static string rgxOnlyAlphaNumeric = "[^0-9a-zA-Z-]";
private string _anchorName = "";
//public AnchorData() : ... | using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace WLWSimpleAnchorManager
{
public class AnchorData
{
private string rgxOnlyAlphaNumeric = "[^0-9a-zA-Z-]";
private string _anchorName;
public string DisplayText { get; set... | mit | C# |
92b762d0c42cc46199387637e0be1c8cf81eff31 | Add docs for IMenuItemBackend | directhex/xwt,akrisiun/xwt,lytico/xwt,antmicro/xwt,mono/xwt,iainx/xwt,mminns/xwt,TheBrainTech/xwt,mminns/xwt,hamekoz/xwt,sevoku/xwt,residuum/xwt,hwthomas/xwt,cra0zy/xwt,steffenWi/xwt | Xwt/Xwt.Backends/IMenuItemBackend.cs | Xwt/Xwt.Backends/IMenuItemBackend.cs | //
// IMenuItemBackend.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
// Eric Maupin <ermau@xamarin.com>
//
// Copyright (c) 2011-2012 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softw... | //
// IMenuItemBackend.cs
//
// Author:
// Lluis Sanchez <lluis@xamarin.com>
//
// Copyright (c) 2011 Xamarin Inc
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without rest... | mit | C# |
83195bee3abe58c13bf59389e1db2b17802e3ba3 | fix compile error | kheiakiyama/speech-eng-functions | QuestionEntity.csx | QuestionEntity.csx | using System.Configuration;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
public class QuestionEntity : TableEntity
{
public QuestionEntity(ulong id)
{
this.PartitionKey = "speech-eng";
this.RowKey = id.ToString();
ResultCount = 0;
CorrectCoun... | using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
public class QuestionEntity : TableEntity
{
public QuestionEntity(ulong id)
{
this.PartitionKey = "speech-eng";
this.RowKey = id.ToString();
ResultCount = 0;
CorrectCount = 0;
}
public Que... | mit | C# |
5bcb4aa61441e21bd1f823aa1131e921889d5fa1 | Update GitHubMarkdownProcessor.cs | SimonCropp/CaptureSnippets | src/CaptureSnippetsSimple/Processing/GitHubMarkdownProcessor.cs | src/CaptureSnippetsSimple/Processing/GitHubMarkdownProcessor.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace CaptureSnippets
{
public static class GitHubMarkdownProcessor
{
static Action<string> log;
static GitHubMarkdownProcessor()
{
log = s => { };
}
public static Act... | using System;
using System.Collections.Generic;
using System.IO;
namespace CaptureSnippets
{
public static class GitHubMarkdownProcessor
{
public static void Run(string targetDirectory)
{
Guard.AgainstNullAndEmpty(targetDirectory, nameof(targetDirectory));
var snippetFi... | mit | C# |
bd9de18625575575000a7be476abd2e779480048 | Sort Enteties | Acumatica/cb-cli | Utils/Sorter.cs | Utils/Sorter.cs | using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
namespace PX.Api.ContractBased.Maintenance.Cli.Utils
{
static class Sorter
{
public static void Sort(this XDocument original)
{
XElement root = original.Elements().Single();
XNamespac... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace PX.Api.ContractBased.Maintenance.Cli.Utils
{
static class Sorter
{
public static void Sort(this XDocument original)
{
}
... | mit | C# |
a0febec277304655ae547b59a7c2b7ce125ac0e9 | Add TODO for wishlist tests | rileywhite/Cilador | src/Bix.Mixers/Fody.Tests/InterfaceMixTests/EmptyInterfaceFixture.cs | src/Bix.Mixers/Fody.Tests/InterfaceMixTests/EmptyInterfaceFixture.cs | using Bix.Mixers.Fody.Core;
using Bix.Mixers.Fody.InterfaceMixing;
using Bix.Mixers.Fody.Tests.Common;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
namespace Bix.Mixers.Fody.Tests.InterfaceMixTests
{
[TestFixture]
internal ... | using Bix.Mixers.Fody.Core;
using Bix.Mixers.Fody.InterfaceMixing;
using Bix.Mixers.Fody.Tests.Common;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
namespace Bix.Mixers.Fody.Tests.InterfaceMixTests
{
[TestFixture]
internal ... | apache-2.0 | C# |
c825f028c10d69dfbd328135040819d57dee8573 | Fix StackTrace unit test for Release builds | n1ghtmare/corefx,cydhaselton/corefx,benjamin-bader/corefx,dhoehna/corefx,krk/corefx,weltkante/corefx,dhoehna/corefx,fgreinacher/corefx,twsouthwick/corefx,CherryCxldn/corefx,shmao/corefx,rjxby/corefx,axelheer/corefx,larsbj1988/corefx,iamjasonp/corefx,dtrebbien/corefx,rahku/corefx,marksmeltzer/corefx,comdiv/corefx,manu-s... | src/System.Runtime.Extensions/tests/System/Environment.StackTrace.cs | src/System.Runtime.Extensions/tests/System/Environment.StackTrace.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.... | mit | C# |
56525323e62ccbcf14ee2071f01c55961050b3b9 | add parameter check in sample | persi12/Hangfire.Mongo,persi12/Hangfire.Mongo | src/Hangfire.Mongo.Sample/Controllers/HomeController.cs | src/Hangfire.Mongo.Sample/Controllers/HomeController.cs | using MongoDB.Bson;
using System;
using System.Diagnostics;
using System.Web.Mvc;
namespace Hangfire.Mongo.Sample.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
public ActionResult FireAndForget... | using MongoDB.Bson;
using System;
using System.Diagnostics;
using System.Web.Mvc;
namespace Hangfire.Mongo.Sample.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
public ActionResult FireAndForget... | mit | C# |
63a06afab220c116928299a18582e4117c7be3e2 | Add missing license header | ppy/osu,ppy/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu | osu.Game/Collections/CollectionToggleMenuItem.cs | osu.Game/Collections/CollectionToggleMenuItem.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.Game.Beatmaps;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Collections
{
public class CollectionToggleMenuItem : ToggleMenuItem
{
... | using osu.Game.Beatmaps;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Collections
{
public class CollectionToggleMenuItem : ToggleMenuItem
{
public CollectionToggleMenuItem(BeatmapCollection collection, IBeatmapInfo beatmap)
: base(collection.Name.Value, MenuItemType.Standard, ... | mit | C# |
02e0e2474a12f9cc18d828cba8b837f090e81787 | remove self description as it complicates codegen in current state | Kukkimonsuta/Odachi | src/Odachi.AspNetCore.JsonRpc/Modules/ServerModule.cs | src/Odachi.AspNetCore.JsonRpc/Modules/ServerModule.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Odachi.AspNetCore.JsonRpc.Internal;
using Odachi.Annotations;
namespace Odachi.AspNetCore.JsonRpc.Modules
{
public class ServerModule
{
[RpcMethod]
public static string[] ListMethods(JsonRpcServer server)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Odachi.AspNetCore.JsonRpc.Internal;
using Odachi.Annotations;
namespace Odachi.AspNetCore.JsonRpc.Modules
{
public class ServerModule
{
[RpcMethod]
public static string[] ListMethods(JsonRpcServer server)
{
... | apache-2.0 | C# |
885d163857c09f428113b690e6360c64fd103f71 | Hide keep alive warnings | darcymiranda/PFire | src/PFire.Core/Protocol/Messages/Inbound/KeepAlive.cs | src/PFire.Core/Protocol/Messages/Inbound/KeepAlive.cs | using System.Threading.Tasks;
using PFire.Core.Session;
namespace PFire.Core.Protocol.Messages.Inbound
{
internal sealed class KeepAlive : XFireMessage
{
public KeepAlive() : base(XFireMessageType.KeepAlive) {}
public override Task Process(IXFireClient client)
{
return Tas... | namespace PFire.Core.Protocol.Messages.Inbound
{
internal sealed class KeepAlive : XFireMessage
{
public KeepAlive() : base(XFireMessageType.KeepAlive) {}
}
}
| mit | C# |
47cba5b3fefdd949a936373d61d2992aab1011f8 | Fix spacing. | mdavid/nuget,mdavid/nuget | src/Core/Repositories/IPackageRepository.cs | src/Core/Repositories/IPackageRepository.cs | using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
namespace NuGet {
public interface IPackageRepository {
string Source { get; }
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "This call might be expensive")]
IQuery... | using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
namespace NuGet {
public interface IPackageRepository {
string Source { get; }
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "This call might be expensive")]
IQuer... | apache-2.0 | C# |
1741a507f852284ff1ab7f0e2fa501ffdfe47359 | Replace Ticks by Random | Cybermaxs/Nullify | src/Nullify/Configuration/CreationPolicy.cs | src/Nullify/Configuration/CreationPolicy.cs | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using System.Linq;
namespace Nullify.Configuration
{
internal class CreationPolicy
{
/// <summary>
/// Name of the policy. Used for the generated class Name as well as for pre-registration.
... | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using System.Linq;
namespace Nullify.Configuration
{
internal class CreationPolicy
{
/// <summary>
/// Name of the policy. Used for the generated class Name as well as for pre-registration.
... | mit | C# |
7dd1d3827b6371fce755740489d238935584af8b | Use the AppSettings 'NuGetPackagePath' if exists and the default ~/Packages otherwise | mdavid/nuget,mdavid/nuget | src/Server/Infrastructure/PackageUtility.cs | src/Server/Infrastructure/PackageUtility.cs | using System;
using System.Web;
using System.Web.Hosting;
using System.Configuration;
namespace NuGet.Server.Infrastructure
{
public class PackageUtility
{
internal static string PackagePhysicalPath;
private static string DefaultPackagePhysicalPath = HostingEnvironment.MapPath("~/Pa... | using System;
using System.Web;
using System.Web.Hosting;
namespace NuGet.Server.Infrastructure {
public class PackageUtility {
internal static string PackagePhysicalPath = HostingEnvironment.MapPath("~/Packages");
public static Uri GetPackageUrl(string path, Uri baseUri) {
re... | apache-2.0 | C# |
dbbe4e7343ffb9cd8d81ceba5f0cf8e0d777ee4b | Update LoginRequestQuery with additional fields. Closes #193 | jerriep/auth0.net,auth0/auth0.net,jerriep/auth0.net,jerriep/auth0.net,auth0/auth0.net | src/Auth0.ManagementApi/Models/Rules/LoginRequestQuery.cs | src/Auth0.ManagementApi/Models/Rules/LoginRequestQuery.cs | using Newtonsoft.Json;
namespace Auth0.ManagementApi.Models.Rules
{
/// <summary>
///
/// </summary>
[JsonObject]
public class LoginRequestQuery
{
/// <summary>
///
/// </summary>
[JsonProperty("audience")]
public string Audience { get; set; }
... | using Newtonsoft.Json;
namespace Auth0.ManagementApi.Models.Rules
{
/// <summary>
///
/// </summary>
[JsonObject]
public class LoginRequestQuery
{
/// <summary>
///
/// </summary>
[JsonProperty("client_id")]
public string ClientId { get; set; }
... | mit | C# |
e40f195956bfb0a4581abdf5d4e98d5401a46582 | Add CreateCollector to interface | bcemmett/SurveyMonkeyApi | SurveyMonkey/ISurveyMonkeyApi.cs | SurveyMonkey/ISurveyMonkeyApi.cs | using System.Collections.Generic;
namespace SurveyMonkey
{
public interface ISurveyMonkeyApi
{
int RequestsMade { get; }
int QuotaAllotted { get; }
int QuotaUsed { get; }
//Endpoints
List<Survey> GetSurveyList();
List<Survey> GetSurveyList(GetSurveyListSettings ... | using System.Collections.Generic;
namespace SurveyMonkey
{
public interface ISurveyMonkeyApi
{
int RequestsMade { get; }
int QuotaAllotted { get; }
int QuotaUsed { get; }
//Endpoints
List<Survey> GetSurveyList();
List<Survey> GetSurveyList(GetSurveyListSettings ... | mit | C# |
37869ed78acee76444ba9947c80d5fe186dc1d5a | Fix local service discovery now that services are listening on 0.0.0.0 | LukeTillman/killrvideo-csharp,LukeTillman/killrvideo-csharp,LukeTillman/killrvideo-csharp | src/KillrVideo.Protobuf/ServiceDiscovery/LocalServiceDiscovery.cs | src/KillrVideo.Protobuf/ServiceDiscovery/LocalServiceDiscovery.cs | using System;
using Google.Protobuf.Reflection;
using KillrVideo.Host.Config;
namespace KillrVideo.Protobuf.ServiceDiscovery
{
/// <summary>
/// Service discovery implementation that just points all service clients to 'localhost' and the port
/// where they have been configured to run locally.
/// </s... | using System;
using System.Linq;
using System.Net;
using Google.Protobuf.Reflection;
using KillrVideo.Host.Config;
namespace KillrVideo.Protobuf.ServiceDiscovery
{
/// <summary>
/// Service discovery implementation that just points all service clients to the host/port where they
/// have been configured t... | apache-2.0 | C# |
b6aa083983084bdeae67ac279f32031ae6ca1a2f | Use AlmostEquals for CircularContainer test cases | DrabWeb/osu-framework,peppy/osu-framework,ZLima12/osu-framework,Tom94/osu-framework,DrabWeb/osu-framework,DrabWeb/osu-framework,Tom94/osu-framework,Nabile-Rahmani/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framewo... | osu.Framework.Tests/Visual/TestCaseCircularContainer.cs | osu.Framework.Tests/Visual/TestCaseCircularContainer.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics;
using OpenTK;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.MathUtils... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics;
using OpenTK;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Testing;
... | mit | C# |
90753a8e407ead9d242761e20c3dd1610c01d1b4 | Set correct version number in main window | arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5 | src/Arkivverket.Arkade.UI/Views/MainWindow.xaml.cs | src/Arkivverket.Arkade.UI/Views/MainWindow.xaml.cs | using System.Reflection;
using System.Windows;
namespace Arkivverket.Arkade.UI.Views
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Title = string.Format(UI.Resources.UI.General_WindowTitle, "0.3.0"); // Todo - get correct appl... | using System.Reflection;
using System.Windows;
namespace Arkivverket.Arkade.UI.Views
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Title = string.Format(UI.Resources.UI.General_WindowTitle, typeof(App).Assembly.GetName().Versi... | agpl-3.0 | C# |
501c9eaf66aa4c4dda93457269397e77b456cc4c | Update MockHttpHandlerTest.cs | WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common,WeihanLi/WeihanLi.Common | test/WeihanLi.Common.Test/HttpTest/MockHttpHandlerTest.cs | test/WeihanLi.Common.Test/HttpTest/MockHttpHandlerTest.cs | // Copyright (c) Weihan Li. All rights reserved.
// Licensed under the MIT license.
using System.Net;
using WeihanLi.Common.Http;
using Xunit;
namespace WeihanLi.Common.Test.HttpTest;
public class MockHttpHandlerTest
{
[Theory]
[InlineData(HttpStatusCode.OK)]
[InlineData(HttpStatusCode.BadRequest)]
... | // Copyright (c) Weihan Li. All rights reserved.
// Licensed under the MIT license.
using System.Net;
using WeihanLi.Common.Http;
using Xunit;
namespace WeihanLi.Common.Test.HttpTest;
public class MockHttpHandlerTest
{
[Theory]
[InlineData(HttpStatusCode.OK)]
[InlineData(HttpStatusCode.BadRequest)]
... | mit | C# |
a33d5f1d2f966f115c53943bdafc7b1561052f5e | Fix typo. | ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton,ZooPin/CK-Glouton | src/CK.Glouton.Model/Server/Handlers/AlertEntry.cs | src/CK.Glouton.Model/Server/Handlers/AlertEntry.cs | using System;
using System.Collections.Generic;
using CK.Core;
using CK.Monitoring;
namespace CK.Glouton.Model.Server.Handlers
{
public class AlertEntry : IAlertEntry
{
public IMulticastLogEntry MulticastLogEntry { get; set; }
public string AppName { get; set; }
public void WriteLogEn... | using CK.Core;
using CK.Monitoring;
using System;
using System.Collections.Generic;
namespace CK.Glouton.Model.Server.Handlers
{
public class AlertEntry : IAlertEntry
{
public IMulticastLogEntry MulticastMulticastLogEntry { get; set; }
public string AppName { get; set; }
public void W... | mit | C# |
ed1686b489feae5a667d0336a15d0f95ec085d15 | Add missing semi-colon (to fix #22) | agc93/Cake.VisualStudio,agc93/Cake.VisualStudio | template/ItemTemplate/build.cake | template/ItemTemplate/build.cake | ///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
///////////////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////////... | ///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
///////////////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////////... | mit | C# |
f9a2dea556e2979df653fae8dfe240c0c6754a56 | Sort usings | appharbor/appharbor-cli | src/AppHarbor.Tests/Commands/BuildCommandTest.cs | src/AppHarbor.Tests/Commands/BuildCommandTest.cs | using System;
using System.Collections.Generic;
using System.IO;
using AppHarbor.Commands;
using AppHarbor.Model;
using Moq;
using Ploeh.AutoFixture.Xunit;
using Xunit;
using Xunit.Extensions;
namespace AppHarbor.Tests.Commands
{
public class BuildCommandTest
{
[Theory, AutoCommandData]
public void ShouldOutput... | using System;
using System.Collections.Generic;
using System.IO;
using AppHarbor.Commands;
using AppHarbor.Model;
using Moq;
using Ploeh.AutoFixture.Xunit;
using Xunit.Extensions;
using Xunit;
namespace AppHarbor.Tests.Commands
{
public class BuildCommandTest
{
[Theory, AutoCommandData]
public void ShouldOutput... | mit | C# |
d0dfeb2056f6c610f372e3f534e70f291eae06d6 | Remove genuinely unused parameter | BenJenkinson/nodatime,BenJenkinson/nodatime,nodatime/nodatime,nodatime/nodatime | src/NodaTime/Annotations/TestExemptionAttribute.cs | src/NodaTime/Annotations/TestExemptionAttribute.cs | // Copyright 2017 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
namespace NodaTime.Annotations
{
/// <summary>
/// Attribute to effectively ignore a particular kind of test, because it's known
... | // Copyright 2017 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
namespace NodaTime.Annotations
{
/// <summary>
/// Attribute to effectively ignore a particular kind of test, because it's known
... | apache-2.0 | C# |
c1da3bc9cf831b35f368bb54c64e84bdede47339 | Remove skinnable parents at the same time as their smoke children | ppy/osu,peppy/osu,ppy/osu,peppy/osu,peppy/osu,ppy/osu | osu.Game.Rulesets.Osu/UI/SmokeContainer.cs | osu.Game.Rulesets.Osu/UI/SmokeContainer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using osu.Framework.Input.Bindings;
using osu.Framework... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using osu.Framework.Input.Bindings;
using osu.Framework... | mit | C# |
1dfcfb386f25c2af7c0fe34ebbfd9850e6591893 | Add a debug assert when a node is being reparented. | KirillOsenkov/MSBuildStructuredLog,KirillOsenkov/MSBuildStructuredLog | src/StructuredLogger/ObjectModel/ParentedNode.cs | src/StructuredLogger/ObjectModel/ParentedNode.cs | using System.Collections.Generic;
namespace Microsoft.Build.Logging.StructuredLogger
{
public class ParentedNode : BaseNode
{
private TreeNode parent;
public TreeNode Parent
{
get => parent;
set
{
#if DEBUG
if (parent != ... | using System.Collections.Generic;
namespace Microsoft.Build.Logging.StructuredLogger
{
public class ParentedNode : BaseNode
{
public TreeNode Parent { get; set; }
public IEnumerable<ParentedNode> GetParentChain()
{
var chain = new List<ParentedNode>();
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.