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 |
|---|---|---|---|---|---|---|---|---|
a52f7aaca22e692aa93de0aaf142b422592e7ae4 | Make log4net appender render the log event (as zero log is rendering it, the comparison wouldn't be fair otherwise) | Abc-Arbitrage/ZeroLog | src/ZeroLog.Benchmarks/Tools/Log4NetTestAppender.cs | src/ZeroLog.Benchmarks/Tools/Log4NetTestAppender.cs | using System.Collections.Generic;
using System.Threading;
using log4net.Appender;
using log4net.Core;
namespace ZeroLog.Benchmarks
{
internal class Log4NetTestAppender : AppenderSkeleton
{
private readonly bool _captureLoggedMessages;
private int _messageCount;
private ManualResetEvent... | using System.Collections.Generic;
using System.Threading;
using log4net.Appender;
using log4net.Core;
namespace ZeroLog.Benchmarks
{
internal class Log4NetTestAppender : AppenderSkeleton
{
private readonly bool _captureLoggedMessages;
private int _messageCount;
private ManualResetEvent... | mit | C# |
ab3addd520e51ec2ed3faf2acc67662f2ab5cd4e | Simplify Register | DimensionDataCBUSydney/jab | jab/jab/Test/ApiBestPracticeTestBase.cs | jab/jab/Test/ApiBestPracticeTestBase.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using jab.Interfaces;
using NSwag;
using NUnit.Framework;
namespace jab.Test
{
public partial class ApiBestPracticeTestBase
{
/// <summary>
/// Default constructor
/// </summary>
static Ap... | using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using jab.Interfaces;
using NSwag;
using NUnit.Framework;
namespace jab.Test
{
public partial class ApiBestPracticeTestBase
{
/// <summary>
/// Default constructor
/// </summary>
static Ap... | apache-2.0 | C# |
18e50815232534bc456429b064ae3e71bc320a01 | Fix test failures | smoogipoo/osu,NeoAdonis/osu,peppy/osu-new,UselessToucan/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,smoogipooo/osu,ppy/osu,peppy/osu,UselessToucan/osu | osu.Game/Tests/Visual/Multiplayer/MultiplayerTestScene.cs | osu.Game/Tests/Visual/Multiplayer/MultiplayerTestScene.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Fra... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Gam... | mit | C# |
86645f87ce6a6b2b8c2d81721f616f5e1fabf34e | Bump version to 1.0.0. | FacilityApi/Facility | SolutionInfo.cs | SolutionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright 2016-2017 Ed Ball")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
| using System.Reflection;
[assembly: AssemblyVersion("0.6.0.0")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCopyright("Copyright 2016-2017 Ed Ball")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
| mit | C# |
507de36dd809a1b6690df24b1f7541867b896be8 | remove unneeded comments | mschray/CalendarHelper | OfficeHoursTopics/run.csx | OfficeHoursTopics/run.csx | using System.Net;
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
log.Info($"C# HTTP trigger function processed a request. RequestUri={req.RequestUri}");
string[] Topics = new string[] {"Node.js","Azure Functions", "Azure App Services"};
return Topics == null
... | using System.Net;
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{
log.Info($"C# HTTP trigger function processed a request. RequestUri={req.RequestUri}");
// parse query parameter
//string name = req.GetQueryNameValuePairs()
// .FirstOrDefault(q => string... | mit | C# |
0fed25acd36bb30a3af8b11e0913a1b24f41dba3 | send some sample Sensu checks for machine health | sepehr-laal/OpenRoC | OpenRoC/SensuInterface.cs | OpenRoC/SensuInterface.cs | namespace oroc
{
using liboroc;
using System;
using System.Text;
using System.Net.Sockets;
public class SensuInterface : IDisposable
{
private readonly ProcessManager Manager;
private UdpClient sensuClientSocket;
public SensuInterface(ProcessManager manager)
{... | namespace oroc
{
using liboroc;
using System;
using System.Net.Sockets;
public class SensuInterface : IDisposable
{
private readonly ProcessManager Manager;
private UdpClient sensuClientSocket;
public SensuInterface(ProcessManager manager)
{
Manager = ... | mit | C# |
9554bd6b8512d68202d442829c6527252206b6c6 | Update Structure Data | Slazanger/SMT | EVEData/Structure.cs | EVEData/Structure.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SMT.EVEData
{
class Structure
{
public enum StructureType
{
// citadel
Astrahus,
Fortizar,
FactionFortizar,
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SMT.EVEData
{
class Structure
{
public enum UpwellType
{
// citadel
Astrahus,
Fortizar,
FactionFortizar,
Kee... | mit | C# |
dc3239fcc50bf52216181e2ad74fd975609a8ff9 | Increment version | hivepeople/FluentAssertionsEx | FluentAssertionsEx/Properties/AssemblyInfo.cs | FluentAssertionsEx/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("FluentAssertionsEx")]
[assembly: Assembly... | 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("FluentAssertionsEx")]
[assembly: Assembly... | apache-2.0 | C# |
19fd3c0dc9adb8ff6ce74a6df7d6294e82c9c97c | Change seeding of topic categories | SkoodleNinjas/Skoodle,SkoodleNinjas/Skoodle | Skoodle/App_Start/CustomInitializer.cs | Skoodle/App_Start/CustomInitializer.cs | using Skoodle.Models;
using System.Data.Entity;
namespace Skoodle.App_Start
{
public class CustomInitializer: DropCreateDatabaseAlways<ApplicationDbContext>
{
protected override void Seed(ApplicationDbContext context)
{
Cathegory Category1 = new Cathegory { CathegoryName = "Categor... | using Skoodle.Models;
using System.Data.Entity;
namespace Skoodle.App_Start
{
public class CustomInitializer: DropCreateDatabaseAlways<ApplicationDbContext>
{
protected override void Seed(ApplicationDbContext context)
{
context.Topics.Add(new Topic { Name = "Topic1", Category = "Ca... | mit | C# |
90430aef9bbbfdd887d0ea47b7c28788ee86aa9a | fix missing save | yuxuac/docs.particular.net,eclaus/docs.particular.net,WojcikMike/docs.particular.net,pashute/docs.particular.net,pedroreys/docs.particular.net,SzymonPobiega/docs.particular.net | Snippets/Snippets_5/ContainerCustom.cs | Snippets/Snippets_5/ContainerCustom.cs | using System;
using System.Collections.Generic;
using NServiceBus;
using NServiceBus.Container;
using NServiceBus.ObjectBuilder.Common;
using NServiceBus.Settings;
public class ContainerCustom
{
// startcode CustomContainersV5
public void CustomContainerExtensionUsage()
{
Configure.With(b => b.Us... | using System;
using System.Collections.Generic;
using NServiceBus;
using NServiceBus.Container;
using NServiceBus.ObjectBuilder.Common;
using NServiceBus.Settings;
public class ContainerCustom
{
#region CustomContainersV5
public void CustomContainerExtensionUsage()
{
Configure.With(b => b.UseCont... | apache-2.0 | C# |
671f5166cb0bc50ca00853acf03fc0bc66bb0166 | Add OrchardCore.DynamicCache as module dependency | Lombiq/Orchard-Training-Demo-Module,Lombiq/Orchard-Training-Demo-Module,Lombiq/Orchard-Training-Demo-Module | Manifest.cs | Manifest.cs | using OrchardCore.Modules.Manifest;
[assembly: Module(
// Name of the module to be displayed on the Modules page of the Dashboard.
Name = "Orchard Core Training Demo",
// Your name, company or any name that identifies the developers working on the project.
Author = "Lombiq",
// Optionally yo... | using OrchardCore.Modules.Manifest;
[assembly: Module(
// Name of the module to be displayed on the Modules page of the Dashboard.
Name = "Orchard Core Training Demo",
// Your name, company or any name that identifies the developers working on the project.
Author = "Lombiq",
// Optionally yo... | bsd-3-clause | C# |
9b565f643b4d38d0266046b4b352ce4cf70b0efc | debug CI | Fody/Fody,GeertvanHorrik/Fody | Tests/Fody/AddinFinderTest/AddinFinderTest.cs | Tests/Fody/AddinFinderTest/AddinFinderTest.cs | using System;
using System.IO;
using System.Linq;
using Xunit;
using ObjectApproval;
public class AddinFinderTest : TestBase
{
[Fact]
public void WithNuGetPackageRoot()
{
var combine = Path.GetFullPath(Path.Combine(AssemblyLocation.CurrentDirectory, "../../../Fody/FakeNuGetPackageRoot"));
v... | using System.IO;
using System.Linq;
using Xunit;
using ObjectApproval;
public class AddinFinderTest : TestBase
{
[Fact]
public void WithNuGetPackageRoot()
{
var combine = Path.GetFullPath(Path.Combine(AssemblyLocation.CurrentDirectory, "../../../Fody/FakeNuGetPackageRoot"));
var nuGetPackag... | mit | C# |
83b6018f2d5b7d6345e26007bc28edc7e14ed582 | Update Console Program with a Condition - Rename GetRoleMessageTest to GetRoleMessageForAdminTest so it is more specific | penblade/Training.CSharpWorkshop | Training.CSharpWorkshop.Tests/ProgramTests.cs | Training.CSharpWorkshop.Tests/ProgramTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Training.CSharpWorkshop.Tests
{
[TestClass]
public class ProgramTests
{
[Ignore]
[TestMethod]
public void IgnoreTest()
{
Assert.Fail();
}
[TestMethod()]
public v... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Training.CSharpWorkshop.Tests
{
[TestClass]
public class ProgramTests
{
[Ignore]
[TestMethod]
public void IgnoreTest()
{
Assert.Fail();
}
[TestMethod()]
public v... | mit | C# |
929be74947ce49ffbee575d42f29c4d66925e3ab | Initialize rotation path | bartlomiejwolk/AnimationPathAnimator | PathData.cs | PathData.cs | using UnityEngine;
using System.Collections;
namespace ATP.AnimationPathTools {
public class PathData : ScriptableObject {
[SerializeField]
private AnimationPath animatedObjectPath;
[SerializeField]
private AnimationPath rotationPath;
[SerializeField]
private AnimationCurve easeCurve;
[SerializeFi... | using UnityEngine;
using System.Collections;
namespace ATP.AnimationPathTools {
public class PathData : ScriptableObject {
[SerializeField]
private AnimationPath animatedObjectPath;
[SerializeField]
private AnimationPath rotationPath;
[SerializeField]
private AnimationCurve easeCurve;
[SerializeFi... | mit | C# |
0aa701f00896fc5d77f0bf5fa0907d6dff7c694f | Bump version | CSIS/EnrollmentStation | EnrollmentStation/Properties/AssemblyInfo.cs | EnrollmentStation/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("EnrollmentStation")]
[assembly: AssemblyD... | 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("EnrollmentStation")]
[assembly: AssemblyD... | mit | C# |
ac612493abd6a203647ca282435d59fc207a5bac | Fix demo code - never use Clock.Now in a test, even for a demo :) | malcolmr/nodatime,malcolmr/nodatime,jskeet/nodatime,jskeet/nodatime,nodatime/nodatime,malcolmr/nodatime,zaccharles/nodatime,zaccharles/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,BenJenkinson/nodatime,nodatime/nodatime,zaccharles/nodatime,zaccharles/nodatime,zaccharles/nodatime,zaccharles/nodatime | src/NodaTime.Demo/TimeZoneDemo.cs | src/NodaTime.Demo/TimeZoneDemo.cs | #region Copyright and license information
// Copyright 2001-2009 Stephen Colebourne
// Copyright 2009-2010 Jon Skeet
//
// 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
//
// h... | #region Copyright and license information
// Copyright 2001-2009 Stephen Colebourne
// Copyright 2009-2010 Jon Skeet
//
// 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
//
// h... | apache-2.0 | C# |
616aeba156d617c98955e437f3283ae66206c2ba | Use chrome instead of chromium on Ubuntu | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | test/Kestrel.Transport.FunctionalTests/ChromeConstants.cs | test/Kestrel.Transport.FunctionalTests/ChromeConstants.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace Interop.FunctionalTests
{
public static class ChromeConstants
{... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace Interop.FunctionalTests
{
public static class ChromeConstants
{... | apache-2.0 | C# |
4dee01e9cd595a9be31046c26f60c742e26a49f3 | Complete the WebApi work, needs tests | csf-dev/agiil,csf-dev/agiil,csf-dev/agiil,csf-dev/agiil | Agiil.Web/ApiControllers/TicketController.cs | Agiil.Web/ApiControllers/TicketController.cs | using System;
using System.Net;
using System.Threading;
using System.Web.Http;
using System.Web.Http.ModelBinding;
using Agiil.Domain.Tickets;
using Agiil.Web.Models;
using Agiil.Web.Services.Tickets;
using CSF.Entities;
namespace Agiil.Web.ApiControllers
{
public class TicketController : ApiController
{
read... | using System;
using System.Net;
using System.Threading;
using System.Web.Http;
using System.Web.Http.ModelBinding;
using Agiil.Domain.Tickets;
using Agiil.Web.Models;
using Agiil.Web.Services.Tickets;
using CSF.Entities;
namespace Agiil.Web.ApiControllers
{
public class TicketController : ApiController
{
read... | mit | C# |
1b1562016125189f7d15ba3cc4f36a07bdca82c4 | mark the client assembly to be CLS Compliant; generated some CLS compliance errors that will need to be cleaned up | mlittle/avaya-moagent-client | AvayaMoagentClient/Properties/AssemblyInfo.cs | AvayaMoagentClient/Properties/AssemblyInfo.cs | //Copyright (c) 2010 - 2012, Matthew J Little and contributors.
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without modification, are permitted
//provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this... | //Copyright (c) 2010 - 2012, Matthew J Little and contributors.
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without modification, are permitted
//provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this... | bsd-2-clause | C# |
cd14bcb3046892f5c99c11231c7da66bf0a49d87 | Add constructors with custom message | mkropat/BetterWin32Errors | BetterWin32Errors/Win32Exception.cs | BetterWin32Errors/Win32Exception.cs | using System;
using System.Runtime.InteropServices;
namespace BetterWin32Errors
{
/// <summary>
/// Exception that represents a <see cref="Win32Error"/>.
/// </summary>
public class Win32Exception : Exception
{
/// <summary>
/// Returns the last <see cref="Win32Error"/>. Note: make... | using System;
using System.Runtime.InteropServices;
namespace BetterWin32Errors
{
/// <summary>
/// Exception that represents a <see cref="Win32Error"/>.
/// </summary>
public class Win32Exception : Exception
{
/// <summary>
/// Returns the last <see cref="Win32Error"/>. Note: make... | mit | C# |
9705838bb8aa37e1c95fffdd2eadd3587c15f420 | Add GetProperty | yanyiyun/LockstepFramework,erebuswolf/LockstepFramework,SnpM/Lockstep-Framework | Core/Utility/Serialization/Editor/Injector.cs | Core/Utility/Serialization/Editor/Injector.cs | using UnityEngine;
using System.Collections;
using UnityEditor;
namespace Lockstep
{
public static class Injector
{
public static void SetTarget (UnityEngine.Object target) {
Target = target;
}
public static Object Target{ get; private set;}
public static Serialized... | using UnityEngine;
using System.Collections;
using UnityEditor;
namespace Lockstep
{
public static class Injector
{
public static void SetTarget (UnityEngine.Object target) {
Target = target;
}
public static Object Target{ get; private set;}
public static void SetF... | mit | C# |
b327a362b153faf5e4fa856b3cf911b14100aaa0 | Add WebInvoke to demonstrate how to post. | tlaothong/lab-swp-ws-kiatnakin,tlaothong/lab-swp-ws-kiatnakin,tlaothong/lab-swp-ws-kiatnakin | LabWsKiatnakin/DemoWcfRest/DemoService.svc.cs | LabWsKiatnakin/DemoWcfRest/DemoService.svc.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
namespace DemoWcfRest
{
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(R... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
namespace DemoWcfRest
{
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(R... | mit | C# |
aec6129c8bcd775bb77d700407e729e9285707d8 | Add 7 | Pesh2003/MyFirstDemoInGitHub | HelloSharp/ThisTimeHello/Program.cs | HelloSharp/ThisTimeHello/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ThisTimeHello
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Helo Melo :)");
Console.WriteLine("Add another feature to t... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ThisTimeHello
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Helo Melo :)");
Console.WriteLine("Add another feature to t... | mit | C# |
c48a1b45e52d5015466f5a526540b417919b2b5d | Remove GetVersion requirement from IScriptLink | rcskids/ScriptLinkStandard | ScriptLinkStandard/Interfaces/IScriptLink.cs | ScriptLinkStandard/Interfaces/IScriptLink.cs | using ScriptLinkStandard.Objects;
namespace ScriptLinkStandard.Interfaces
{
public interface IScriptLink
{
OptionObject ProcessScript(IOptionObject optionObject, string parameter);
OptionObject2 ProcessScript(IOptionObject2 optionObject, string parameter);
OptionObject2015 ProcessScrip... | using ScriptLinkStandard.Objects;
namespace ScriptLinkStandard.Interfaces
{
public interface IScriptLink
{
string GetVersion();
OptionObject ProcessScript(IOptionObject optionObject, string parameter);
OptionObject2 ProcessScript(IOptionObject2 optionObject, string parameter);
... | mit | C# |
0b7059bea287abbcbbcf1b7bbbe557de78c90017 | remove redundant conditional compilation | config-r/config-r | src/ConfigR/Sdk/AppDomainSetupExtensions.cs | src/ConfigR/Sdk/AppDomainSetupExtensions.cs | // <copyright file="AppDomainSetupExtensions.cs" company="ConfigR contributors">
// Copyright (c) ConfigR contributors. (configr.net@gmail.com)
// </copyright>
namespace ConfigR.Sdk
{
using System;
using System.IO;
public static class AppDomainSetupExtensions
{
private static read... | // <copyright file="AppDomainSetupExtensions.cs" company="ConfigR contributors">
// Copyright (c) ConfigR contributors. (configr.net@gmail.com)
// </copyright>
#if TESTS_ACCEPTANCE_ROSLYN_CSHARP
namespace ConfigR.Tests.Acceptance.Roslyn.CSharp.Support
#else
namespace ConfigR.Sdk
#endif
{
using System;
... | mit | C# |
2f6b95da39129c6bfcfa74b34a69ec9611bcf43c | Add descriptions for the remaining settings | peppy/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,peppy/osu-new,smoogipoo/osu,ppy/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipooo/osu | osu.Game/Screens/Edit/Setup/DesignSection.cs | osu.Game/Screens/Edit/Setup/DesignSection.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.Localisation;
using osu.Game.Graphics.UserInterfaceV2;
namespace osu.Game.Screens.Edit.Setup
{
internal class Des... | // 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.Localisation;
using osu.Game.Graphics.UserInterfaceV2;
namespace osu.Game.Screens.Edit.Setup
{
internal class Des... | mit | C# |
be04186ed79d2d6a656e05273df98d9321bba771 | Update ResolutionFailedException.cs | z4kn4fein/stashbox | src/Exceptions/ResolutionFailedException.cs | src/Exceptions/ResolutionFailedException.cs | using Stashbox.Utils;
using System;
using System.Runtime.Serialization;
namespace Stashbox.Exceptions
{
/// <summary>
/// Represents the exception the container throws when a service resolution is failed.
/// </summary>
[Serializable]
public class ResolutionFailedException : Exception
{
... | using System;
using System.Runtime.Serialization;
namespace Stashbox.Exceptions
{
/// <summary>
/// Represents the exception the container throws when a service resolution is failed.
/// </summary>
[Serializable]
public class ResolutionFailedException : Exception
{
/// <summary>
... | mit | C# |
dc072d5aa6d2dc0c4825fdde9b37e908429e5208 | remove link property from incident | lurch83/RfsForChromeService | src/RfsForChrome.Service/Models/Incident.cs | src/RfsForChrome.Service/Models/Incident.cs | using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace RfsForChrome.Service.Models
{
public class Incident
{
public string Title { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public Category Category { get; set; }
public DateTime LastUpd... | using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace RfsForChrome.Service.Models
{
public class Incident
{
public string Title { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public Category Category { get; set; }
public string Link { ge... | mit | C# |
59da22a80e9549e5ee7e7307a70e1fbc964fbc5e | Print MOTD in the screen only | DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer | LmpClient/Systems/Motd/MotdMessageHandler.cs | LmpClient/Systems/Motd/MotdMessageHandler.cs | using LmpClient.Base;
using LmpClient.Base.Interface;
using LmpCommon.Message.Data.Motd;
using LmpCommon.Message.Interface;
using System.Collections.Concurrent;
namespace LmpClient.Systems.Motd
{
public class MotdMessageHandler : SubSystem<MotdSystem>, IMessageHandler
{
public ConcurrentQueue<IServerM... | using System.Collections.Concurrent;
using LmpClient.Base;
using LmpClient.Base.Interface;
using LmpClient.Systems.Chat;
using LmpCommon.Message.Data.Motd;
using LmpCommon.Message.Interface;
namespace LmpClient.Systems.Motd
{
public class MotdMessageHandler : SubSystem<MotdSystem>, IMessageHandler
{
p... | mit | C# |
b883671d9e361431d5aa68388d94b7626d704bc1 | Fix index header fail | BenJenkinson/nodatime,BenJenkinson/nodatime,malcolmr/nodatime,nodatime/nodatime,malcolmr/nodatime,malcolmr/nodatime,malcolmr/nodatime,jskeet/nodatime,nodatime/nodatime,jskeet/nodatime | src/NodaTime.Web/Controllers/TzdbController.cs | src/NodaTime.Web/Controllers/TzdbController.cs | using Microsoft.AspNetCore.Mvc;
using NodaTime.Helpers;
using NodaTime.Web.Models;
using System.Linq;
namespace NodaTime.Web.Controllers
{
[AddHeader("X-Robots-Tag", "noindex")]
public class TzdbController : Controller
{
private const string ContentType = "application/octet-stream";
privat... | using Microsoft.AspNetCore.Mvc;
using NodaTime.Helpers;
using NodaTime.Web.Models;
using System.Linq;
namespace NodaTime.Web.Controllers
{
[AddHeader("X-Robots-Tag", "noindex")]
public class TzdbController : Controller
{
private const string ContentType = "application/octet-stream";
privat... | apache-2.0 | C# |
fe4a6bb6e98ddc4550d474542d2f39001d13b678 | Remove null label for ElementId | jeremytammik/RevitLookup | RevitLookup/Core/RevitTypes/ElementIdData.cs | RevitLookup/Core/RevitTypes/ElementIdData.cs | // Copyright 2003-2022 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
... | // Copyright 2003-2022 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
... | mit | C# |
61c9ab08f562cb1bb8a28826fa536d6088a27bb0 | Update MonsterType.cs (#337) | Shidesu/RiotSharp,Oucema90/RiotSharp,frederickrogan/RiotSharp,JanOuborny/RiotSharp,florinciubotariu/RiotSharp,Challengermode/RiotSharp,BenFradet/RiotSharp,oisindoherty/RiotSharp,jono-90/RiotSharp | RiotSharp/MatchEndpoint/Enums/MonsterType.cs | RiotSharp/MatchEndpoint/Enums/MonsterType.cs | using Newtonsoft.Json;
using RiotSharp.MatchEndpoint.Enums.Converters;
namespace RiotSharp.MatchEndpoint.Enums
{
/// <summary>
/// Type of monster (Match API).
/// </summary>
[JsonConverter(typeof(MonsterTypeConverter))]
public enum MonsterType
{
/// <summary>
/// Corresponds t... | using Newtonsoft.Json;
using RiotSharp.MatchEndpoint.Enums.Converters;
namespace RiotSharp.MatchEndpoint.Enums
{
/// <summary>
/// Type of monster (Match API).
/// </summary>
[JsonConverter(typeof(MonsterTypeConverter))]
public enum MonsterType
{
/// <summary>
/// Corresponds t... | mit | C# |
72aedf32a280b88aff715e1ee819f09de9ff310c | Make planet update dependent components. | dirty-casuals/LD38-A-Small-World | Assets/Scripts/Planet.cs | Assets/Scripts/Planet.cs | using UnityEngine;
[ExecuteInEditMode]
public class Planet : MonoBehaviour {
[SerializeField]
private float _radius;
public float Radius {
get { return _radius; }
set { _radius = value; }
}
public float Permieter {
get { return 2 * Mathf.PI * Radius; }
}
public f... | using UnityEngine;
public class Planet : MonoBehaviour {
[SerializeField]
private float _radius;
public float Radius {
get { return _radius; }
set { _radius = value; }
}
public float Permieter {
get { return 2 * Mathf.PI * Radius; }
}
public float Volume {
... | mit | C# |
ff32d633404171ddc7006b3c912bf80f5559d717 | Update BaseAction.cs | Anatid/XML-Documentation-for-the-KSP-API | src/BaseAction.cs | src/BaseAction.cs | using System;
using System.Collections.Generic;
/// <summary>
/// A BaseAction object is the basic action object.
/// There is one of these automatically created for each 'KSPAction' field in a partModule
/// </summary>
[Serializable]
public class BaseAction
{
/// <summary>
/// Unconfirmed: The act... | using System;
using System.Collections.Generic;
/// <summary>
/// A BaseAction object is the basic action object.
/// There is one of these automatically created for each 'KSPAction' field in a partModule
/// </summary>
[Serializable]
public class BaseAction
{
/// <summary>
/// Unconfirmed: The action groups ... | unlicense | C# |
7bdaec074443d54c305d0010677dd966a409aa54 | add xml docs for the public interface | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EAS.Portal.Client/IPortalClient.cs | src/SFA.DAS.EAS.Portal.Client/IPortalClient.cs | using System.Threading;
using System.Threading.Tasks;
using SFA.DAS.EAS.Portal.Client.Types;
namespace SFA.DAS.EAS.Portal.Client
{
public interface IPortalClient
{
/// <summary>
/// Get the account details required to render the homepage.
/// </summary>
/// <param name="hashedAc... | using System.Threading;
using System.Threading.Tasks;
using SFA.DAS.EAS.Portal.Client.Types;
namespace SFA.DAS.EAS.Portal.Client
{
public interface IPortalClient
{
Task<Account> GetAccount(string hashedAccountId, AccountState accountState,
CancellationToken cancellationToken = default);
... | mit | C# |
9ff1f078b146eea230eff8159eddbd410320ad91 | return Directory as GlassLabel. | dkoeb/f-spot,Yetangitu/f-spot,mans0954/f-spot,GNOME/f-spot,GNOME/f-spot,GNOME/f-spot,dkoeb/f-spot,Sanva/f-spot,dkoeb/f-spot,dkoeb/f-spot,Sanva/f-spot,Yetangitu/f-spot,mans0954/f-spot,GNOME/f-spot,mans0954/f-spot,mans0954/f-spot,Sanva/f-spot,Yetangitu/f-spot,mono/f-spot,mono/f-spot,dkoeb/f-spot,mono/f-spot,NguyenMatthie... | src/DirectoryAdaptor.cs | src/DirectoryAdaptor.cs | using System;
using System.Collections;
namespace FSpot {
public class DirectoryAdaptor : GroupAdaptor {
public PhotoQuery query;
public ArrayList dirs = new ArrayList ();
struct DirInfo {
public string Path;
public int Count;
}
public override void SetLimits (int min, int max)
{
Console.Write... | using System;
using System.Collections;
namespace FSpot {
public class DirectoryAdaptor : GroupAdaptor {
public PhotoQuery query;
public ArrayList dirs = new ArrayList ();
struct DirInfo {
public string Path;
public int Count;
}
public override void SetLimits (int min, int max)
{
Console.Write... | mit | C# |
5f79d7bfa51c38b6f8c8431836538baa48a57580 | change average fps calc method | oggy83/TinyOculusSharpDxDemo | TinyOculusSharpDxDemo/Framework/FpsCounter.cs | TinyOculusSharpDxDemo/Framework/FpsCounter.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace TinyOculusSharpDxDemo
{
public class FpsCounter
{
private const double AverageDeltaTimeUpdateInterval = 1.0;
public FpsCounter()
{
m_sw = new Stopwatch();... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace TinyOculusSharpDxDemo
{
public class FpsCounter
{
private const int MaxDeltaTimeQueueCount = 100;
public FpsCounter()
{
m_sw = new Stopwatch();
m_delta... | mit | C# |
819439edad3497839f8c3b396725609310d91391 | Remove logs link, never worked right | mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander,mattgwagner/Battery-Commander | Battery-Commander.Web/Controllers/AdminController.cs | Battery-Commander.Web/Controllers/AdminController.cs | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.IO;
namespace BatteryCommander.Web.Controllers
{
[Authorize, ApiExplorerSettings(IgnoreApi = true)]
public class AdminController : Controller
{
// Admin Tasks:
... | using BatteryCommander.Web.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.IO;
namespace BatteryCommander.Web.Controllers
{
[Authorize, ApiExplorerSettings(IgnoreApi = true)]
public class AdminController : Controller
{
// Admin Tasks:
... | mit | C# |
50e7dab00b3a295c7541919e1a4b0b7e65fdffbf | Fix incorrect wording | Zyrio/ictus,Zyrio/ictus | src/Yio/Views/Shared/_AboutPanelPartial.cshtml | src/Yio/Views/Shared/_AboutPanelPartial.cshtml | @{
var version = "";
var versionName = Yio.Data.Constants.VersionConstant.Codename.ToString();
if(Yio.Data.Constants.VersionConstant.Patch == 0) {
version = Yio.Data.Constants.VersionConstant.Release.ToString();
} else {
version = Yio.Data.Constants.VersionConstant.Release.ToString() + ... | @{
var version = "";
var versionName = Yio.Data.Constants.VersionConstant.Codename.ToString();
if(Yio.Data.Constants.VersionConstant.Patch == 0) {
version = Yio.Data.Constants.VersionConstant.Release.ToString();
} else {
version = Yio.Data.Constants.VersionConstant.Release.ToString() + ... | mit | C# |
114df1b6df6f072ac28b724ff027981b9853b60e | Reword comment | ZLima12/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,peppy/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ppy/osu-fr... | osu.Framework/Input/UserInputManager.cs | osu.Framework/Input/UserInputManager.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.Collections.Generic;
using osu.Framework.Input.Handlers;
using osu.Framework.Input.StateChanges.Events;
using osu.Framework.Platform;
using osuTK;
namespac... | // 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.Collections.Generic;
using osu.Framework.Input.Handlers;
using osu.Framework.Input.StateChanges.Events;
using osu.Framework.Platform;
using osuTK;
namespac... | mit | C# |
d1fe2286b3976e551bda4de78a2f121b7317f1c5 | update assembly version | Geta/Geta.EPi.Imageshop,Geta/Geta.EPi.Imageshop,Geta/Geta.EPi.Imageshop | src/Properties/AssemblyInfo.cs | src/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("Ge... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ge... | apache-2.0 | C# |
10d7164bac8e1b23730d8afdb2b1d3a441963054 | mark as CLS compliant | keith-hall/reactive-animation | src/Properties/AssemblyInfo.cs | src/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("Rea... | 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("Rea... | apache-2.0 | C# |
f63f5a56868c85cd9deb43d0845334705a55c46e | Update copyright date | dpuleri/WRW | WinRedditWallpaper/Properties/AssemblyInfo.cs | WinRedditWallpaper/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
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
// ass... | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
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 ... | apache-2.0 | C# |
580c16557ab16e86e39d412be443252d60d2a515 | Add console-based trace listener | maxwellb/csharp-driver,maxwellb/csharp-driver,datastax/csharp-driver,mintsoft/csharp-driver,datastax/csharp-driver | src/Cassandra.IntegrationTests/CommonFixtureSetup.cs | src/Cassandra.IntegrationTests/CommonFixtureSetup.cs | using System;
using System.Diagnostics;
using System.Globalization;
using System.Threading;
using Cassandra.IntegrationTests.TestBase;
using Cassandra.IntegrationTests.TestClusterManagement;
using NUnit.Framework;
namespace Cassandra.IntegrationTests
{
[SetUpFixture]
public class CommonFixtureSetup
{
... | using System.Diagnostics;
using System.Globalization;
using System.Threading;
using Cassandra.IntegrationTests.TestBase;
using Cassandra.IntegrationTests.TestClusterManagement;
using NUnit.Framework;
namespace Cassandra.IntegrationTests
{
[SetUpFixture]
public class CommonFixtureSetup
{
[OneTimeSe... | apache-2.0 | C# |
221a726701503a5f34ecceed9eadff00229ec1f7 | Change exception message format | lecaillon/Evolve | src/Evolve/Exception/EvolveConfigurationException.cs | src/Evolve/Exception/EvolveConfigurationException.cs | using System;
namespace Evolve
{
public class EvolveConfigurationException : EvolveException
{
public EvolveConfigurationException(string message) : base(message) { }
public EvolveConfigurationException(string message, Exception innerException) : base(message, innerException) { }
}
}
| using System;
namespace Evolve
{
public class EvolveConfigurationException : EvolveException
{
private const string EvolveConfigurationError = "Evolve configuration error: ";
public EvolveConfigurationException(string message) : base(EvolveConfigurationError + FirstLetterToLower(message)) { }... | mit | C# |
ec5cd2d5828e51ebc4db1b6996e650630f8da965 | Fix for tests added in previous commit (r5368). Failing on TeamCity due to inability to locate embedded image resource. | ngbrown/nhibernate-core,RogerKratz/nhibernate-core,alobakov/nhibernate-core,nkreipke/nhibernate-core,livioc/nhibernate-core,alobakov/nhibernate-core,RogerKratz/nhibernate-core,nhibernate/nhibernate-core,ManufacturingIntelligence/nhibernate-core,fredericDelaporte/nhibernate-core,alobakov/nhibernate-core,hazzik/nhibernat... | src/NHibernate.Test/NHSpecificTest/NH2484/Fixture.cs | src/NHibernate.Test/NHSpecificTest/NH2484/Fixture.cs | using System;
using System.Drawing;
using System.Reflection;
using NUnit.Framework;
using NHibernate.Type;
using NHibernate.SqlTypes;
namespace NHibernate.Test.NHSpecificTest.NH2484
{
[TestFixture]
public class Fixture : BugTestCase
{
protected override bool AppliesTo(NHibernate.Dialect.Dialect dialect... | using System;
using System.Drawing;
using NUnit.Framework;
using NHibernate.Type;
using NHibernate.SqlTypes;
namespace NHibernate.Test.NHSpecificTest.NH2484
{
[TestFixture]
public class Fixture : BugTestCase
{
protected override bool AppliesTo(NHibernate.Dialect.Dialect dialect)
{
return (dialect... | lgpl-2.1 | C# |
409abaded9ce0377f0a87879b1e78b6708842852 | fix identation | takenet/elephant | src/Take.Elephant.Kafka/KafkaPartitionSenderQueue.cs | src/Take.Elephant.Kafka/KafkaPartitionSenderQueue.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using Confluent.Kafka;
namespace Take.Elephant.Kafka
{
public class KafkaPartitionSenderQueue<T> : IPartitionSenderQueue<T>, IDisposable
{
private readonly IEventStreamPublisher<string, string> _producer;
private rea... | using System;
using System.Threading;
using System.Threading.Tasks;
using Confluent.Kafka;
namespace Take.Elephant.Kafka
{
public class KafkaPartitionSenderQueue<T> : IPartitionSenderQueue<T>, IDisposable
{
private readonly IEventStreamPublisher<string, string> _producer;
private rea... | apache-2.0 | C# |
fccd8e8ee7e6699520d82def971efb3e445576bd | Fix incorrect formatting of time stamps | filipetoscano/Zinc | src/Zinc.WebServices.Swashbuckle/ZincSchemaFilter.cs | src/Zinc.WebServices.Swashbuckle/ZincSchemaFilter.cs | using Newtonsoft.Json;
using Swashbuckle.Swagger;
using System;
using System.Globalization;
using System.Linq;
using System.Reflection;
using Zinc.Json;
namespace Zinc.WebServices
{
/// <summary />
public class ZincSchemaFilter : ISchemaFilter
{
/// <summary />
public void Apply( Schema sc... | using Newtonsoft.Json;
using Swashbuckle.Swagger;
using System;
using System.Globalization;
using System.Linq;
using System.Reflection;
using Zinc.Json;
namespace Zinc.WebServices
{
/// <summary />
public class ZincSchemaFilter : ISchemaFilter
{
/// <summary />
public void Apply( Schema sc... | bsd-3-clause | C# |
878213887fc72ec4aaaf211fbd028bcd9e5e576c | Change Russian to Русский for the language selector | qianlifeng/Wox,Wox-launcher/Wox,Wox-launcher/Wox,lances101/Wox,lances101/Wox,qianlifeng/Wox,qianlifeng/Wox | Wox.Core/i18n/AvailableLanguages.cs | Wox.Core/i18n/AvailableLanguages.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Core.i18n
{
internal static class AvailableLanguages
{
public static Language English = new Language("en", "English");
public static Language Chinese = new Language("zh-cn", "中文");
publi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Core.i18n
{
internal static class AvailableLanguages
{
public static Language English = new Language("en", "English");
public static Language Chinese = new Language("zh-cn", "中文");
publi... | mit | C# |
5ff47467a3e9a1c618e1bde53a95b174be1f7d99 | Fix potential thread safety issue in viewmodelbase.cs | Sankra/NDC2015,Hammerstad/NDC2015 | NDC2015/ViewModelBase.cs | NDC2015/ViewModelBase.cs | using System.ComponentModel;
using System.Runtime.CompilerServices;
using NDC2015.Annotations;
namespace NDC2015
{
public class ViewModelBase : INotifyPropertyChanged
{
protected void Set<T>(ref T member, T value, [CallerMemberName] string propertyName = null)
{
member = value;
... | using System.ComponentModel;
using System.Runtime.CompilerServices;
using NDC2015.Annotations;
namespace NDC2015
{
public class ViewModelBase : INotifyPropertyChanged
{
protected void Set<T>(ref T member, T value, [CallerMemberName] string propertyName = null)
{
member = value;
... | mit | C# |
a9ef42c8891a7d06425de4a2627c21658b948cac | Rename params to match convention | Livit/CefSharp,Haraguroicha/CefSharp,dga711/CefSharp,gregmartinhtc/CefSharp,ruisebastiao/CefSharp,yoder/CefSharp,Livit/CefSharp,ITGlobal/CefSharp,ruisebastiao/CefSharp,jamespearce2006/CefSharp,AJDev77/CefSharp,NumbersInternational/CefSharp,illfang/CefSharp,jamespearce2006/CefSharp,rover886/CefSharp,joshvera/CefSharp,il... | CefSharp/IDialogHandler.cs | CefSharp/IDialogHandler.cs | using System.Collections.Generic;
namespace CefSharp
{
public interface IDialogHandler
{
bool OnOpenFile(IWebBrowser browser, string title, string defaultFileName, List<string> acceptTypes, out List<string> result);
}
}
| using System.Collections.Generic;
namespace CefSharp
{
public interface IDialogHandler
{
bool OnOpenFile(IWebBrowser browser, string title, string default_file_name, List<string> accept_types, out List<string> result);
}
}
| bsd-3-clause | C# |
b69861f142e6aaaf627d091cacc08d73ec96e299 | Update HealthScanner.cs | fomalsd/unitystation,Necromunger/unitystation,Necromunger/unitystation,fomalsd/unitystation,fomalsd/unitystation,krille90/unitystation,Necromunger/unitystation,fomalsd/unitystation,Necromunger/unitystation,Necromunger/unitystation,fomalsd/unitystation,Necromunger/unitystation,fomalsd/unitystation,krille90/unitystation,... | UnityProject/Assets/Scripts/Medical/HealthScanner.cs | UnityProject/Assets/Scripts/Medical/HealthScanner.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HealthScanner : PickUpTrigger
{
public void PlayerFound(GameObject Player) {
PlayerHealth Playerhealth = Player.GetComponent<PlayerHealth>();
string ToShow = (Player.name + " is " + Playerhealth.ConsciousState.ToString() ... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HealthScanner : PickUpTrigger
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void PlayerFound... | agpl-3.0 | C# |
f20d1c2f30b9544e2bb29ca2ace2f2223ce5cc84 | improve import scenario workflow > first cancel works | accu-rate/SumoVizUnity,accu-rate/SumoVizUnity | Assets/Editor/ScenarioImporter.cs | Assets/Editor/ScenarioImporter.cs | using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using System.IO;
using System.Collections;
public class ScenarioImporter {
[MenuItem("Assets/Import accu:rate output")]
static void importAccurateOutput() {
if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo ())
return;
... | using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using System.IO;
using System.Collections;
public class ScenarioImporter {
[MenuItem("Assets/Import accu:rate output")]
static void importAccurateOutput() {
var ret = EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo ();
//TODO ... | mit | C# |
50693ce25cd8f0f450bb795492d6e0851af5be3a | Revert the previous change | EasyPost/easypost-csharp,EasyPost/easypost-csharp | EasyPost/Client.cs | EasyPost/Client.cs | using Newtonsoft.Json;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
namespace EasyPost {
public class Client {
public string version;
internal RestClient client;
internal ClientConfiguration configuration;
... | using Newtonsoft.Json;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Threading;
namespace EasyPost {
public class Client {
public string version;
internal RestClient client;
internal ClientConfiguration co... | mit | C# |
c0e863a222c8779e68602f51de4a10053e8c8e41 | Change version to 0.10.1 | Seddryck/Lookum | GlobalAssemblyInfo.cs | GlobalAssemblyInfo.cs | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Lookum Team - Cédric L. Charlier")]
[assembly: AssemblyProduct("Lookum")]
[assembly: AssemblyCopyright("Copyright © 2014-2015 - Cédric L. Charlier")]
[assembly: As... | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Lookum Team - Cédric L. Charlier")]
[assembly: AssemblyProduct("Lookum")]
[assembly: AssemblyCopyright("Copyright © 2014-2015 - Cédric L. Charlier")]
[assembly: As... | apache-2.0 | C# |
dd9e57efa22f9086c8805943dd949653e85affa7 | Fix stupid typo | mmbot/mmbot.scripts | scripts/Fun/Swearjar.csx | scripts/Fun/Swearjar.csx | /**
* <description>
* Monitors for swearing
* </description>
*
* <configuration>
*
* </configuration>
*
* <commands>
* mmbot swearjar - shows the swear stats of users
* </commands>
*
* <author>
* dkarzon
* </author>
*/
var robot = Require<Robot>();
robot.Respond("swearjar", msg =>
{
var swearBrain =... | /**
* <description>
* Monitors for swearing
* </description>
*
* <configuration>
*
* </configuration>
*
* <commands>
* mmbot swearjar - shows the swear stats of users
* </commands>
*
* <author>
* dkarzon
* </author>
*/
var robot = Require<Robot>();
robot.Respond("swearjar", msg =>
{
var swearBrain =... | apache-2.0 | C# |
437cc7d9f053f001bfcb21ba0038906c6b0faf91 | Fix typo in HtmlParseMode.cs | AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp,AngleSharp/AngleSharp | src/AngleSharp/Html/Parser/HtmlParseMode.cs | src/AngleSharp/Html/Parser/HtmlParseMode.cs | namespace AngleSharp.Html.Parser
{
/// <summary>
/// Defines the different tokenization content models.
/// </summary>
enum HtmlParseMode : byte
{
/// <summary>
/// Initial state: Parsed Character Data (characters will be parsed).
/// </summary>
PCData,
/// <... | namespace AngleSharp.Html.Parser
{
/// <summary>
/// Defines the different tokenization content models.
/// </summary>
enum HtmlParseMode : byte
{
/// <summary>
/// Initial state: Parsed Character Data (characters will be parsed).
/// </summary>
PCData,
/// <... | mit | C# |
a0ed0631ed33d52e12aa199754353c6a7b7ab545 | Add DEMON_HUNTER_INITIATE to wild | HearthSim/HearthDb | HearthDb/Helper.cs | HearthDb/Helper.cs | using HearthDb.Enums;
using System.Text.RegularExpressions;
namespace HearthDb
{
public static class Helper
{
public static Regex AtCounterRegex = new Regex(@"\|4\(([^,)]+),\s*([^,)]+)\)");
public static Regex ProgressRegex = new Regex(@"\(@\/\d+\)");
public static CardSet[] WildSets =
{
CardSet.BRM, C... | using HearthDb.Enums;
using System.Text.RegularExpressions;
namespace HearthDb
{
public static class Helper
{
public static Regex AtCounterRegex = new Regex(@"\|4\(([^,)]+),\s*([^,)]+)\)");
public static Regex ProgressRegex = new Regex(@"\(@\/\d+\)");
public static CardSet[] WildSets =
{
CardSet.BRM, C... | mit | C# |
d4d6f6388d3f0c44d36b7269ccc6516cbb9fc2cd | include a public domain license statement on the one code file (tracewriter) which was just derived from the hockeyapp sdk. | tpurtell/AndroidHockeyApp | Additions/TraceWriter.cs | Additions/TraceWriter.cs | // public domain ... derived from https://github.com/bitstadium/HockeySDK-Android/blob/db7fff12beecea715f2894cb69ba358ea324ad17/src/main/java/net/hockeyapp/android/internal/ExceptionHandler.java
using System;
using System.IO;
using Java.Lang;
using Java.Util;
using Exception = System.Exception;
using Process = Android.... | using System;
using System.IO;
using Java.Lang;
using Java.Util;
using Exception = System.Exception;
using Process = Android.OS.Process;
namespace Net.Hockeyapp.Android
{
public static class TraceWriter
{
public static void WriteTrace(object exception)
{
DateTime date = DateTime.Utc... | mit | C# |
95ca5ddbc0165a6fa928c570961621a490f20227 | Add datetime prefix to dumped file name if texture didn't have name | earalov/Skylines-ModTools | Debugger/Utils/FileUtil.cs | Debugger/Utils/FileUtil.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using ColossalFramework.Plugins;
using ICities;
namespace ModTools
{
public static class FileUtil
{
public static List<string> ListFilesInDirectory(string path, List<string> _file... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using ColossalFramework.Plugins;
using ICities;
namespace ModTools
{
public static class FileUtil
{
public static List<string> ListFilesInDirectory(string path, List<string> _file... | mit | C# |
7f923d9a044d0773d2801b4e81bc82d5879606fd | remove ugly hack | martinlindhe/Punku | punku/Strings/Shift.cs | punku/Strings/Shift.cs | using System;
// TODO: upper case!
// TODO: unit test for non-2-shifts
// FIXME: vad är skillnaden mellan Rot13? är det metoden...?
namespace Punku.Strings
{
/**
* Transform english text to a shifted form (a = a + shift)
*/
public class Shift
{
public char[] Table = new char[char.MaxValue];
public Shift (... | using System;
// TODO: upper case!
// FIXME: vad är skillnaden mellan Rotate? är det metoden...?
namespace Punku.Strings
{
/**
* Transform english text to a shifted form (a = a + shift)
*/
public class Shift
{
public char[] Table = new char[char.MaxValue];
public Shift (int shift)
{
for (int i = 0; i... | mit | C# |
39af8e204eb9b7589f3c92ad92ed729fb9fbc68e | Use InternalException | LouisMT/TeleBotDotNet,Naxiz/TeleBotDotNet | Json/JsonException.cs | Json/JsonException.cs | using System;
namespace TeleBotDotNet.Json
{
internal class JsonException : Exception
{
internal JsonException(string input, Exception innerException)
: base(GetExceptionMessage(input), innerException)
{
}
private static string GetExceptionMessage(string... | using System;
namespace TeleBotDotNet.Json
{
internal class JsonException : Exception
{
public Exception UnderlyingException { get; }
internal JsonException(string input, Exception underlyingException)
: base(GetExceptionMessage(input))
{
UnderlyingE... | mit | C# |
33700826cbb5dfe953ce879be212e1c0a041a5b4 | Fix area id. | UCASoft/DynamicControls,UCASoft/DynamicControls | DynamicControls.Site/Views/Home/Index.cshtml | DynamicControls.Site/Views/Home/Index.cshtml | @using System.Web.Compilation
@using DynamicControls
@model dynamic
@functions {
private DynamicDataSource DataSourceDelegate(string name, Dictionary<string, string> additionalParameters)
{
DynamicDataSource result = new DynamicDataSource();
if (name.Equals("select-field"))
{
... | @using System.Web.Compilation
@using DynamicControls
@model dynamic
@functions {
private DynamicDataSource DataSourceDelegate(string name, Dictionary<string, string> additionalParameters)
{
DynamicDataSource result = new DynamicDataSource();
if (name.Equals("select-field"))
{
... | mit | C# |
e743c418d314d055249e9f1d8c051cc1ae5a2f14 | Add type restriction to `BuilderFor<T>()`. | alastairs/BobTheBuilder,fffej/BobTheBuilder | BobTheBuilder/Builder.cs | BobTheBuilder/Builder.cs | using System;
using System.Dynamic;
namespace BobTheBuilder
{
public class DynamicBuilder : DynamicObject
{
private readonly Type _destinationType;
internal DynamicBuilder(Type destinationType)
{
if (destinationType == null)
{
throw new Argument... | using System;
using System.Dynamic;
namespace BobTheBuilder
{
public class DynamicBuilder : DynamicObject
{
private readonly Type _destinationType;
internal DynamicBuilder(Type destinationType)
{
if (destinationType == null)
{
throw new Argument... | apache-2.0 | C# |
74be8c8edf811d568c613880b73fdf065682dc80 | Remove SuppressOpen enum value to line up with CEF (#1942) | Livit/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,Livit/CefSharp,jamespearce2006/CefSharp,Livit/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp,jamespearce2006/CefSharp | CefSharp/WindowOpenDisposition.cs | CefSharp/WindowOpenDisposition.cs | // Copyright © 2010-2016 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>
/// The manner in which a link click should be opened.
/// </summary>
public enum WindowOpenDis... | // Copyright © 2010-2016 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>
/// The manner in which a link click should be opened.
/// </summary>
public enum WindowOpenDis... | bsd-3-clause | C# |
258a4dc282e776f6dda264240c0980981b9273a0 | Set svn:eol-style. | ft-/opensim-optimizations-wip-tests,allquixotic/opensim-autobackup,N3X15/VoxelSim,intari/OpenSimMirror,TomDataworks/opensim,allquixotic/opensim-autobackup,QuillLittlefeather/opensim-1,OpenSimian/opensimulator,QuillLittlefeather/opensim-1,RavenB/opensim,bravelittlescientist/opensim-performance,BogusCurry/arribasim-dev,N... | OpenSim/Framework/Data/OpenSimTableMapper.cs | OpenSim/Framework/Data/OpenSimTableMapper.cs | using System.Data;
using TribalMedia.Framework.Data;
namespace OpenSim.Framework.Data
{
public abstract class OpenSimTableMapper<TRowMapper, TPrimaryKey> : BaseTableMapper<TRowMapper, TPrimaryKey>
{
public OpenSimTableMapper(BaseDatabaseConnector database, string tableName) : base(database, tableName)
... | using System.Data;
using TribalMedia.Framework.Data;
namespace OpenSim.Framework.Data
{
public abstract class OpenSimTableMapper<TRowMapper, TPrimaryKey> : BaseTableMapper<TRowMapper, TPrimaryKey>
{
public OpenSimTableMapper(BaseDatabaseConnector database, string tableName) : base(database, tabl... | bsd-3-clause | C# |
f29ecfea06e4761f1d7f21184326d6a90a21d936 | change build script to exclude client projects | roflkins/IdentityModel.OidcClient2,roflkins/IdentityModel.OidcClient2,IdentityModel/IdentityModel.OidcClient,IdentityModel/IdentityModel.OidcClient2,IdentityModel/IdentityModel.OidcClient,IdentityModel/IdentityModel.OidcClient2 | build.cake | build.cake | var target = Argument("target", "Default");
var configuration = Argument<string>("configuration", "Release");
///////////////////////////////////////////////////////////////////////////////
// GLOBAL VARIABLES
///////////////////////////////////////////////////////////////////////////////
var isLocalBuild ... | var target = Argument("target", "Default");
var configuration = Argument<string>("configuration", "Release");
///////////////////////////////////////////////////////////////////////////////
// GLOBAL VARIABLES
///////////////////////////////////////////////////////////////////////////////
var isLocalBuild ... | apache-2.0 | C# |
2958d59522a0256404ea48344b0317e36fa85373 | add support for guid.native to MySQL5Dialect | alobakov/nhibernate-core,alobakov/nhibernate-core,hazzik/nhibernate-core,lnu/nhibernate-core,lnu/nhibernate-core,ManufacturingIntelligence/nhibernate-core,fredericDelaporte/nhibernate-core,RogerKratz/nhibernate-core,nkreipke/nhibernate-core,nhibernate/nhibernate-core,nhibernate/nhibernate-core,ngbrown/nhibernate-core,g... | src/NHibernate/Dialect/MySQL5Dialect.cs | src/NHibernate/Dialect/MySQL5Dialect.cs | using NHibernate.SqlCommand;
namespace NHibernate.Dialect
{
public class MySQL5Dialect : MySQLDialect
{
//Reference 5.x
//Numeric:
//http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html
//Date and time:
//http://dev.mysql.com/doc/refman/5.0/en/date-and-time-type-overview.html
//St... | using NHibernate.SqlCommand;
namespace NHibernate.Dialect
{
public class MySQL5Dialect : MySQLDialect
{
//Reference 5.x
//Numeric:
//http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html
//Date and time:
//http://dev.mysql.com/doc/refman/5.0/en/date-and-time-type-overview.html
//St... | lgpl-2.1 | C# |
8448d3b4420540133c8c51d800aaf435d0794645 | add Session cookies to RootPath | ZocDoc/ServiceStack,NServiceKit/NServiceKit,timba/NServiceKit,nataren/NServiceKit,MindTouch/NServiceKit,nataren/NServiceKit,NServiceKit/NServiceKit,ZocDoc/ServiceStack,timba/NServiceKit,MindTouch/NServiceKit,NServiceKit/NServiceKit,MindTouch/NServiceKit,nataren/NServiceKit,nataren/NServiceKit,ZocDoc/ServiceStack,meebey... | src/ServiceStack/ServiceHost/Cookies.cs | src/ServiceStack/ServiceHost/Cookies.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Net;
using System.Text;
using System.Web;
using ServiceStack.Common.Web;
namespace ServiceStack.ServiceHost
{
public class Cookies : ICookies
{
readonly IHttpResponse httpRes;
public Dictionary<string, List<Coo... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Net;
using System.Text;
using System.Web;
using ServiceStack.Common.Web;
namespace ServiceStack.ServiceHost
{
public class Cookies : ICookies
{
readonly IHttpResponse httpRes;
public Dictionary<string, List<Coo... | bsd-3-clause | C# |
74ab5cd8d1f77eefa64540a71719bf892e6c7cda | Add a diagnostic tool for myself. | MrJoy/UnityGit | ShellHelpers.cs | ShellHelpers.cs | #define DEBUG_COMMANDS
//using UnityEditor;
//using UnityEngine;
//using System.Collections;
using System.Diagnostics;
public class ShellHelpers {
public static Process StartProcess(string filename, string arguments) {
#if DEBUG_COMMANDS
UnityEngine.Debug.Log("Running: " + filename + " " + arguments);
#endif
... | //using UnityEditor;
//using UnityEngine;
//using System.Collections;
using System.Diagnostics;
public class ShellHelpers {
public static Process StartProcess(string filename, string arguments) {
Process p = new Process();
p.StartInfo.Arguments = arguments;
p.StartInfo.CreateNoWindow = true;
p.StartI... | mit | C# |
96316203d632034203b63f9cf6ed421a29d3fbc3 | Add `OptionExtensions.BindNone` | Weingartner/SolidworksAddinFramework | SolidworksAddinFramework/OptionExtensions.cs | SolidworksAddinFramework/OptionExtensions.cs | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using LanguageExt;
using Weingartner.Exceptional;
using static LanguageExt.Prelude;
namespace SolidworksAddinFramework
{
public static class OptionExtensions
{
/// <summary>
/// Get the value from an option. I... | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using LanguageExt;
using Weingartner.Exceptional;
using static LanguageExt.Prelude;
namespace SolidworksAddinFramework
{
public static class OptionExtensions
{
/// <summary>
/// Get the value from an option. I... | mit | C# |
3bd46dc23552669228154e22c6a3f4a1eebb0200 | Update default.aspx.cs | subodhtirkey/Gmail-Feed | Gmailfeed2/default.aspx.cs | Gmailfeed2/default.aspx.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using System.IO;
using System.Xml;
using System.Data;
namespace Gmailfeed2
{
public partial class _default : System.Web.UI.Page
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using System.IO;
using System.Xml;
using System.Data;
namespace Gmailfeed2
{
public partial class _default : System.Web.UI.Page
{
... | apache-2.0 | C# |
210c360fca85268c4697c4c4669af904f0e298af | Throw an exception when creating a Color with an invalid float value | AntiTcb/Discord.Net,LassieME/Discord.Net,Confruggy/Discord.Net,RogueException/Discord.Net | src/Discord.Net.Core/Entities/Roles/Color.cs | src/Discord.Net.Core/Entities/Roles/Color.cs | using System;
using System.Diagnostics;
namespace Discord
{
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public struct Color
{
/// <summary> Gets the default user color value. </summary>
public static readonly Color Default = new Color(0);
/// <summary> Gets the encoded value for thi... | using System;
using System.Diagnostics;
namespace Discord
{
[DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public struct Color
{
/// <summary> Gets the default user color value. </summary>
public static readonly Color Default = new Color(0);
/// <summary> Gets the encoded value for thi... | mit | C# |
0e90812a617ea0a90a893727d0ef5051958c88af | Update JsonDeserializer.cs | tiksn/TIKSN-Framework | TIKSN.Core/Serialization/JsonDeserializer.cs | TIKSN.Core/Serialization/JsonDeserializer.cs | using Newtonsoft.Json;
namespace TIKSN.Serialization
{
public class JsonDeserializer : DeserializerBase<string>
{
protected override T DeserializeInternal<T>(string serial) => JsonConvert.DeserializeObject<T>(serial);
}
}
| using Newtonsoft.Json;
namespace TIKSN.Serialization
{
public class JsonDeserializer : DeserializerBase<string>
{
protected override T DeserializeInternal<T>(string serial)
{
return JsonConvert.DeserializeObject<T>(serial);
}
}
} | mit | C# |
51000bfc2227c143d9e52d1a41edb79cbdff0b52 | Add constructor with FileInfo param | clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch | csharp/CsSearch/CsSearch/SearchFile.cs | csharp/CsSearch/CsSearch/SearchFile.cs | using System.Collections.Generic;
using System.IO;
using System.Text;
namespace CsSearch
{
public class SearchFile
{
public static string ContainerSeparator = "!";
public IList<string> Containers { get; private set; }
public string FilePath { get; private set; }
public string FileName { get; pr... | using System.Collections.Generic;
using System.IO;
using System.Text;
namespace CsSearch
{
public class SearchFile
{
public static string ContainerSeparator = "!";
public IList<string> Containers { get; private set; }
public string FilePath { get; private set; }
public string FileName { get; pr... | mit | C# |
466487589acff3118a9f9475428c625bc31a4075 | Make the "type" attribute available from GenerateScript | mrahhal/MR.AspNet.Deps,mrahhal/MR.AspNet.Deps | src/MR.AspNet.Deps/OutputHelper.cs | src/MR.AspNet.Deps/OutputHelper.cs | using System.Collections.Generic;
namespace MR.AspNet.Deps
{
public class OutputHelper
{
private List<Element> _elements = new List<Element>();
public void Add(Element element)
{
_elements.Add(element);
}
public void Add(List<Element> elements)
{
_elements.AddRange(elements);
}
public List<... | using System.Collections.Generic;
namespace MR.AspNet.Deps
{
public class OutputHelper
{
private List<Element> _elements = new List<Element>();
public void Add(Element element)
{
_elements.Add(element);
}
public void Add(List<Element> elements)
{
_elements.AddRange(elements);
}
public List<... | mit | C# |
386715c0c247f03db33870dab3474148a5e5b851 | Rename parameter | picklesdoc/pickles,magicmonty/pickles,dirkrombauts/pickles,picklesdoc/pickles,picklesdoc/pickles,ludwigjossieaux/pickles,ludwigjossieaux/pickles,blorgbeard/pickles,irfanah/pickles,ludwigjossieaux/pickles,irfanah/pickles,magicmonty/pickles,blorgbeard/pickles,magicmonty/pickles,blorgbeard/pickles,magicmonty/pickles,dirkr... | src/Pickles/Pickles.Test/AssertExtensions.cs | src/Pickles/Pickles.Test/AssertExtensions.cs | using System;
using System.Linq;
using System.Xml.Linq;
using NFluent;
using NFluent.Extensibility;
using NUnit.Framework;
using PicklesDoc.Pickles.Test.Extensions;
namespace PicklesDoc.Pickles.Test
{
public static class AssertExtensions
{
public static void HasAttribute(this ICheck<XElement> check, s... | using System;
using System.Linq;
using System.Xml.Linq;
using NFluent;
using NFluent.Extensibility;
using NUnit.Framework;
using PicklesDoc.Pickles.Test.Extensions;
namespace PicklesDoc.Pickles.Test
{
public static class AssertExtensions
{
public static void HasAttribute(this ICheck<XElement> check, s... | apache-2.0 | C# |
e8efb58d80ca87b1c14cc08ba9d3fcafe048d4dc | use config setup form service base | aruss/ServiceBase,aruss/ServiceBase | src/ServiceBase/Config/ConfigurationSetup.cs | src/ServiceBase/Config/ConfigurationSetup.cs | using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace ServiceBase.Config
{
public static class ConfigurationSetup
{
public static IConfigurationRoot Configure(IHostingEnvironment environment)
{
var builder = new ConfigurationBuild... | using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace ServiceBase.Config
{
public static class ConfigurationSetup
{
public static IConfigurationRoot Configure(IHostingEnvironment hostEnv)
{
var builder = new ConfigurationBuilder()... | apache-2.0 | C# |
36d24f4663343543650f4e6220ec3949be0da0c4 | move ChatChannel enum to TCC.Utils | Foglio1024/Tera-custom-cooldowns,Foglio1024/Tera-custom-cooldowns | TCC.Utils/Enums.cs | TCC.Utils/Enums.cs | namespace TCC.Utils
{
public enum NotificationType
{
Normal = 0,
Success,
Warning,
Error
}
public enum NotificationTemplate
{
Default,
Progress,
Confirm
}
}
namespace TCC.Data
{
public enum ChatChannel
{
Say = 0,
... | namespace TCC.Utils
{
public enum NotificationType
{
Normal = 0,
Success,
Warning,
Error
}
public enum NotificationTemplate
{
Default,
Progress,
Confirm
}
}
| mit | C# |
902438467f2d7cf339b32011e3f1af3356cf88be | support multi PrefsKvsPathCustom | fuqunaga/PrefsGUI | Packages/PrefsGUI/Runtime/Kvs/PrefsKvsPathSelector.cs | Packages/PrefsGUI/Runtime/Kvs/PrefsKvsPathSelector.cs | using System.Linq;
using UnityEngine;
namespace PrefsGUI.Kvs
{
public interface IPrefsKvsPath
{
string path { get; }
}
public static class PrefsKvsPathSelector
{
static bool _first = true;
static string _path;
public static string path
{
get
... | using System.Linq;
using UnityEngine;
namespace PrefsGUI.Kvs
{
public interface IPrefsKvsPath
{
string path { get; }
}
public static class PrefsKvsPathSelector
{
static bool first = true;
static IPrefsKvsPath _path;
public static string path
{
... | mit | C# |
66e87f0c746494f74a363e2179aa2da02a0a5403 | Add a FindByPrefix(string) overload | thefactory/datastore,thefactory/datastore,thefactory/datastore,thefactory/datastore | csharp/TheFactory.Datastore/src/IDatabase.cs | csharp/TheFactory.Datastore/src/IDatabase.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace TheFactory.Datastore {
public interface IDatabase : IDisposable {
void PushTablet(string filename);
void PopTablet();
IEnumerable<IKeyValuePair> Find(Slice term);
void PushTabletStream(S... | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace TheFactory.Datastore {
public interface IDatabase : IDisposable {
void PushTablet(string filename);
void PopTablet();
IEnumerable<IKeyValuePair> Find(Slice term);
void PushTabletStream(S... | mit | C# |
bc171d244d66592f61e91ad5fc1b5abf6b97a804 | Revert "Add OptimizationCount to UserData." | nfleet/.net-sdk | NFleetSDK/Data/UserData.cs | NFleetSDK/Data/UserData.cs | using System.Collections.Generic;
using System.Runtime.Serialization;
namespace NFleet.Data
{
[DataContract]
public class UserData : IResponseData
{
[IgnoreDataMember]
public int VersionNumber { get; set; }
[DataMember]
public int Id { get; set; }
[DataMember]
... | using System.Collections.Generic;
using System.Runtime.Serialization;
namespace NFleet.Data
{
[DataContract]
public class UserData : IResponseData
{
[IgnoreDataMember]
public int VersionNumber { get; set; }
[DataMember]
public int Id { get; set; }
[DataMember]
... | mit | C# |
ea49fa2f15568fe1b0d2ebdb5b7a42c9c12caf49 | Fix bumping algorithm | monoman/NugetCracker,monoman/NugetCracker | NugetCracker/Extensions.cs | NugetCracker/Extensions.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace NugetCracker
{
public enum VersionPart { Major, Minor, Revision, Build }
public static class Extensions
{
public static string GetMetaProjectFilePath(this IEnumerable<string> args)
{
var dir = GetFirs... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace NugetCracker
{
public enum VersionPart { Major, Minor, Revision, Build }
public static class Extensions
{
public static string GetMetaProjectFilePath(this IEnumerable<string> args)
{
var dir = GetFirs... | apache-2.0 | C# |
9a08c25609cef05db7b375403a0b1e289e9fd638 | Update resource to handle message strings | mike-kaufman/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.... | src/Glimpse.Server.Web/Resources/MessageHistoryResource.cs | src/Glimpse.Server.Web/Resources/MessageHistoryResource.cs | using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.Net.Http.Headers;
namespace Glimpse.Server.Web
{
public class MessageHistoryResource : IResource
{
private readonly InMemoryStorage _store;
public MessageHistoryReso... | using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.Net.Http.Headers;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Glimpse.Server.Web
{
public class MessageHistoryResource : IResource
{
private readonly InMemoryStorage _... | mit | C# |
5fe44dddfa1e2afdc9d458c3d8f92a90e0a574b3 | Update 20170714.cs | twilightspike/cuddly-disco,twilightspike/cuddly-disco | main/20170714.cs | main/20170714.cs | public struct AABB{
}
| int aaa;
int bbb;
int ccc;
| mit | C# |
e1a9d66a39db422fe5542e1092537e20ff509a74 | Update ArrayEx.ToList | DaveSenn/Extend | PortableExtensions/System.Array/Array.ToList.cs | PortableExtensions/System.Array/Array.ToList.cs | #region Using
using System;
using System.Collections.Generic;
using System.Linq;
#endregion
namespace PortableExtensions
{
/// <summary>
/// Class containing some extension methods for <see cref="Array" />.
/// </summary>
public static partial class ArrayEx
{
/// <summary>
//... | #region Using
using System;
using System.Collections.Generic;
#endregion
namespace PortableExtensions
{
/// <summary>
/// Class containing some extension methods for <see cref="Array" />.
/// </summary>
public static partial class ArrayEx
{
/// <summary>
/// Converts the ... | mit | C# |
d1f919d0caa5734dbb9a1610dd0402d716bf7c85 | Add unit test for Internet detection methods | fredatgithub/UsefulFunctions | UnitTestUsefullFunctions/UnitTestFunctionsInternet.cs | UnitTestUsefullFunctions/UnitTestFunctionsInternet.cs | /*
The MIT License(MIT)
Copyright(c) 2015 Freddy Juhel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | /*
The MIT License(MIT)
Copyright(c) 2015 Freddy Juhel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | mit | C# |
1387c69a39766f02f213fc4e1fae5305447c4fcc | Write TSV. | ethankennerly/UnityToykit | Journal.cs | Journal.cs | using System.Collections.Generic/*<List>*/;
using UnityEngine/*<Mathf>*/;
namespace Finegamedesign.Utils
{
// Record and playback real-time actions.
public sealed class Journal
{
public string action = null;
public int milliseconds = 0;
public float seconds = 0.0f;
public bool isPlayback = false;
public i... | using System.Collections.Generic/*<List>*/;
using UnityEngine/*<Mathf>*/;
namespace Finegamedesign.Utils
{
public sealed class Journal
{
public string action = null;
public int milliseconds = 0;
public float seconds = 0.0f;
public bool isPlayback = false;
public int playbackIndex = 0;
public List<int> pl... | mit | C# |
4dbbd0d765efd016d02d5b570f15eca5efa856c9 | Convert to NFluent | blorgbeard/pickles,magicmonty/pickles,irfanah/pickles,blorgbeard/pickles,ludwigjossieaux/pickles,picklesdoc/pickles,irfanah/pickles,irfanah/pickles,blorgbeard/pickles,magicmonty/pickles,ludwigjossieaux/pickles,ludwigjossieaux/pickles,magicmonty/pickles,blorgbeard/pickles,dirkrombauts/pickles,irfanah/pickles,dirkrombaut... | src/Pickles/Pickles.Test/Extensions/PathExtensionsTests.cs | src/Pickles/Pickles.Test/Extensions/PathExtensionsTests.cs | using System;
using System.IO.Abstractions.TestingHelpers;
using NUnit.Framework;
using PicklesDoc.Pickles.Extensions;
using NFluent;
namespace PicklesDoc.Pickles.Test.Extensions
{
[TestFixture]
internal class PathExtensionsTests : BaseFixture
{
[Test]
public void Get_A_Relative_Path_When_... | using System;
using System.IO.Abstractions.TestingHelpers;
using NUnit.Framework;
using PicklesDoc.Pickles.Extensions;
using Should;
namespace PicklesDoc.Pickles.Test.Extensions
{
[TestFixture]
internal class PathExtensionsTests : BaseFixture
{
[Test]
public void Get_A_Relative_Path_When_L... | apache-2.0 | C# |
971cc8687b756e2b714c60c98ef0fd4e28c5a046 | Bump version | InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET | configuration/SharedAssemblyInfo.cs | configuration/SharedAssemblyInfo.cs | using System.Reflection;
// Assembly Info that is shared across the product
[assembly: AssemblyProduct("InEngine.NET")]
[assembly: AssemblyVersion("2.0.0.*")]
[assembly: AssemblyInformationalVersion("2.0.0-alpha5")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ethan Hann")]
[assembly: AssemblyCo... | using System.Reflection;
// Assembly Info that is shared across the product
[assembly: AssemblyProduct("InEngine.NET")]
[assembly: AssemblyVersion("2.0.0.*")]
[assembly: AssemblyInformationalVersion("2.0.0-alpha4")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ethan Hann")]
[assembly: AssemblyCo... | mit | C# |
5913e07fa2c78f58525aec30df0897eac61aede9 | Fix connection bug to PGSQL | ctigeek/InvokeQueryPowershellModule | InvokePostgreSqlQuery.cs | InvokePostgreSqlQuery.cs | using Npgsql;
using System.Data.Common;
using System.Management.Automation;
namespace InvokeQuery
{
[Cmdlet("Invoke", "PostgreSqlQuery", SupportsTransactions = true, SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Low)]
public class InvokePostgreSqlQuery : InvokeQueryBase
{
pro... | using System.Data.Common;
using System.Management.Automation;
using Npgsql;
namespace InvokeQuery
{
[Cmdlet("Invoke", "PostgreSqlQuery", SupportsTransactions = true, SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Low)]
public class InvokePostgreSqlQuery : InvokeQueryBase
{
pr... | mit | C# |
6f835338acd28fb784b9b5de7c3e26905da4b040 | use essential review support | prozum/solitude | Solitude.Server/Controllers/ReviewController.cs | Solitude.Server/Controllers/ReviewController.cs | using System.Web.Http;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Model;
using System;
namespace Solitude.Server
{
public class ReviewController : SolitudeController
{
public async Task<IHttpActionResult> Get(Guid id)
{
var events = await DB.GetReviews(id)... | using System.Web.Http;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Model;
using System;
namespace Solitude.Server
{
public class ReviewController : SolitudeController
{
public async Task<IHttpActionResult> Post(Review review)
{
review.UserId = new Guid(User... | mit | C# |
07a546da9928d8502675bcbff0c40f89809ca835 | Fix `BassAmplitudeProcessor` allocating unnecessary array | peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,ppy/osu-framework | osu.Framework/Audio/BassAmplitudeProcessor.cs | osu.Framework/Audio/BassAmplitudeProcessor.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.
#nullable enable
using ManagedBass;
using osu.Framework.Audio.Mixing.Bass;
using osu.Framework.Audio.Track;
namespace osu.Framework.Audio
{
/// <summary>
/// Co... | // 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.
#nullable enable
using ManagedBass;
using osu.Framework.Audio.Mixing.Bass;
using osu.Framework.Audio.Track;
namespace osu.Framework.Audio
{
/// <summary>
/// Co... | mit | C# |
afe311cd046837cdd725f30048654c749c83dd6a | fix using wrong id, this one is blank at this point | Pondidum/Ledger,Pondidum/Ledger | Ledger/AggregateStore.cs | Ledger/AggregateStore.cs | using System;
using System.Collections.Generic;
using System.Linq;
using Ledger.Infrastructure;
namespace Ledger
{
public class AggregateStore<TKey>
{
private readonly IEventStore _eventStore;
public int DefaultSnapshotInterval { get; set; }
public AggregateStore(IEventStore eventStore)
{
_eventStore = ... | using System;
using System.Collections.Generic;
using System.Linq;
using Ledger.Infrastructure;
namespace Ledger
{
public class AggregateStore<TKey>
{
private readonly IEventStore _eventStore;
public int DefaultSnapshotInterval { get; set; }
public AggregateStore(IEventStore eventStore)
{
_eventStore = ... | lgpl-2.1 | C# |
76c84fa9bbe9342274453fe18b7790191959aceb | Update App.xaml.cs | wieslawsoltes/Draw2D,wieslawsoltes/Draw2D,wieslawsoltes/Draw2D | src/PathDemo/App.xaml.cs | src/PathDemo/App.xaml.cs | using System.Windows;
using PathDemo.Views;
namespace PathDemo
{
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
var window = new MainView();
window.ShowDialog();
}
}
}
| using System.Windows;
namespace PathDemo
{
public partial class App : Application
{
}
}
| mit | C# |
996511a82e5365a97fb7185ab21e3e4242fca189 | Update version info | Abc-Arbitrage/Zebus,biarne-a/Zebus,rbouallou/Zebus,AtwooTM/Zebus | src/SharedVersionInfo.cs | src/SharedVersionInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("1.2.11")]
[assembly: AssemblyFileVersion("1.2.11")]
[assembly: AssemblyInformationalVersion("1.2.11")]
| using System.Reflection;
[assembly: AssemblyVersion("1.2.10")]
[assembly: AssemblyFileVersion("1.2.10")]
[assembly: AssemblyInformationalVersion("1.2.10")]
| mit | C# |
0e90793a0b7968cbe6f144fa8d22b39e802edcf0 | Update ModuleInitializer.cs | SimonCropp/CaptureSnippets | Tests/ModuleInitializer.cs | Tests/ModuleInitializer.cs | using ObjectApproval;
public static class ModuleInitializer
{
public static void Initialize()
{
SerializerBuilder.ExtraSettings = settings =>
{
var converters = settings.Converters;
converters.Add(new VersionRangeConverter());
converters.Add(new ProcessResul... | using ObjectApproval;
public static class ModuleInitializer
{
public static void Initialize()
{
var converters = ObjectApprover.JsonSerializer.Converters;
converters.Add(new VersionRangeConverter());
converters.Add(new ProcessResultConverter());
converters.Add(new SnippetConver... | mit | C# |
15a0777a2e4bf5e0e4d4ea0315fdeff2360fd845 | Update FirstReverse.cs | michaeljwebb/Algorithm-Practice | Coderbyte/FirstReverse.cs | Coderbyte/FirstReverse.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class FirstReverse
{
static void Main(string[] args)
{
Console.WriteLine(First_Reverse(Console.ReadLine()));
}
public static string First_Reverse(string str)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Coderbyte
{
class FirstReverse
{
static void Main(string[] args)
{
Console.WriteLine(First_Reverse(Console.ReadLine()));
}
public s... | mit | C# |
46b6e0a67fc615f2ef0b264ced88fb7c5f27757d | Write new progress bar on top of the old one | appharbor/appharbor-cli | src/AppHarbor/CompressionExtensions.cs | src/AppHarbor/CompressionExtensions.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using ICSharpCode.SharpZipLib.Tar;
namespace AppHarbor
{
public static class CompressionExtensions
{
public static void ToTar(this DirectoryInfo sourceDirectory, Stream output, string[] excludedDirectoryNames)
{
var archive =... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using ICSharpCode.SharpZipLib.Tar;
namespace AppHarbor
{
public static class CompressionExtensions
{
public static void ToTar(this DirectoryInfo sourceDirectory, Stream output, string[] excludedDirectoryNames)
{
var archive =... | mit | C# |
a3ebd246f7f6a2a0895fe7fa997f578ae82ceba5 | Clear console before game starts | 12joan/hangman | Program.cs | Program.cs | using System;
using System.IO;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
var wordGenerator = new RandomWord();
var word = wordGenerator.Word();
var game = new Game(word);
var width = Math.Min(81, Console.WindowWidth);
string titleText;
... | using System;
using System.IO;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
var wordGenerator = new RandomWord();
var word = wordGenerator.Word();
var game = new Game(word);
var width = Math.Min(81, Console.WindowWidth);
string titleText;
... | unlicense | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.