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 |
|---|---|---|---|---|---|---|---|---|
a610bca37b7690b73f3fcf926935176a4bc8d796 | Fix dark background on widgets using XWT backend | hwthomas/xwt,residuum/xwt,lytico/xwt,hamekoz/xwt,cra0zy/xwt,TheBrainTech/xwt,antmicro/xwt,mono/xwt,akrisiun/xwt | Xwt.Gtk/Xwt.GtkBackend/CustomWidgetBackend.cs | Xwt.Gtk/Xwt.GtkBackend/CustomWidgetBackend.cs | //
// CustomWidgetBackend.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 r... | //
// CustomWidgetBackend.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 r... | mit | C# |
2a2af95b7e8998661fc37ef06616b69a9f3a924a | Fix VarArray type on create. | xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp,xamarin/WebSharp | PepperSharp/src/VarArray.cs | PepperSharp/src/VarArray.cs | using System;
using System.Runtime.InteropServices;
namespace PepperSharp
{
public partial class VarArray : Var
{
public VarArray() : base(PPVarType.Null)
{
ppvar = PPBVarArray.Create();
}
public VarArray(Var var) : base(var)
{
if (!var.IsArray... | using System;
using System.Runtime.InteropServices;
namespace PepperSharp
{
public partial class VarArray : Var
{
public VarArray() : base(Var.Empty)
{
ppvar = PPBVarDictionary.Create();
}
public VarArray(Var var) : base(var)
{
if (!var.IsArray... | mit | C# |
6705cb84a03e88db0c7f59d9abdc80afa1292a6d | bump version | SimonCropp/NServiceBus.Serilog | CommonAssemblyInfo.cs | CommonAssemblyInfo.cs | using System.Reflection;
[assembly: AssemblyVersion("3.0.2")]
[assembly: AssemblyFileVersion("3.0.2")] | using System.Reflection;
[assembly: AssemblyVersion("3.0.1")]
[assembly: AssemblyFileVersion("3.0.1")] | mit | C# |
6049ef5ec0e6732f502c78332d46c9516dce245b | Update IResources.cs | YAFNET/YAFNET,YAFNET/YAFNET,YAFNET/YAFNET,YAFNET/YAFNET | yafsrc/YAF.Types/Interfaces/IResources.cs | yafsrc/YAF.Types/Interfaces/IResources.cs | /* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2020 Ingo Herbote
* https://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* dis... | /* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2020 Ingo Herbote
* https://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* dis... | apache-2.0 | C# |
36977f5f944222540ff0a58eb0cecba6c74c3d13 | Enable PreLoadImages | Launchify/Launchify,danisein/Wox,jondaniels/Wox,zlphoenix/Wox,dstiert/Wox,kayone/Wox,Megasware128/Wox,kayone/Wox,kayone/Wox,yozora-hitagi/Saber,danisein/Wox,dstiert/Wox,Launchify/Launchify,dstiert/Wox,JohnTheGr8/Wox,yozora-hitagi/Saber,medoni/Wox,jondaniels/Wox,medoni/Wox,Megasware128/Wox,JohnTheGr8/Wox,zlphoenix/Wox | Wox/App.xaml.cs | Wox/App.xaml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Windows;
using Wox.CommandArgs;
using Wox.Core.Plugin;
using Wox.Helper;
using Wox.Infrastructure;
namespace Wox
{
public partial class App : Application, ISingleInstanceApp
{
private const string U... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Windows;
using Wox.CommandArgs;
using Wox.Core.Plugin;
using Wox.Helper;
using Wox.Infrastructure;
namespace Wox
{
public partial class App : Application, ISingleInstanceApp
{
private const string U... | mit | C# |
ca914334eadccfeb4cdfa0137d4fe0d890d8fcd4 | revert logger colon change | livarcocc/cli-1,johnbeisner/cli,harshjain2/cli,Faizan2304/cli,svick/cli,EdwardBlair/cli,ravimeda/cli,blackdwarf/cli,Faizan2304/cli,EdwardBlair/cli,EdwardBlair/cli,ravimeda/cli,harshjain2/cli,ravimeda/cli,livarcocc/cli-1,johnbeisner/cli,svick/cli,blackdwarf/cli,dasMulli/cli,dasMulli/cli,svick/cli,livarcocc/cli-1,dasMull... | build_projects/dotnet-cli-build/DotNetTest.cs | build_projects/dotnet-cli-build/DotNetTest.cs | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DotNet.Cli.Build
{
public class DotNetTest : DotNetMSBuildTool
{
protected override string Command
{
... | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DotNet.Cli.Build
{
public class DotNetTest : DotNetMSBuildTool
{
protected override string Command
{
... | mit | C# |
d3e170e2dff4c86fc4b1954cf47e76408995576e | Add overloads for GlobalDI.GetService | Keboo/AutoDI | AutoDI/GlobalDI.cs | AutoDI/GlobalDI.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace AutoDI
{
public static class GlobalDI
{
private static readonly List<IServiceProvider> Providers = new List<IServiceProvider>();
public static T GetService<T>(object[] parameters)
{
lock (Providers... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AutoDI
{
public static class GlobalDI
{
private static readonly List<IServiceProvider> Providers = new List<IServiceProvider>();
public static T GetService<T>(object[] parameters)
{
lock (Providers... | mit | C# |
2c4a31e8cd3a4f32a04e466823628318899c5fb4 | add numbers | autumn009/TanoCSharpSamples | chap36/GetEnumerator/GetEnumerator/Program.cs | chap36/GetEnumerator/GetEnumerator/Program.cs | using System;
using System.Collections;
using System.Collections.Generic;
class X
{
internal int A { get; set; }
internal int B { get; set; }
}
internal static class MyExtensions
{
internal static IEnumerator GetEnumerator(this X x)
{
yield return x.A;
yield return x.B;
}
}
class... | using System;
using System.Collections;
using System.Collections.Generic;
class X
{
internal int A { get; set; }
internal int B { get; set; }
}
internal static class MyExtensions
{
internal static IEnumerator GetEnumerator(this X x)
{
yield return x.A;
yield return x.B;
}
}
class... | mit | C# |
9fc2459b5578c2981045409eead75f859918534d | Add CustomAttributeCollection Find/FindAll methods | 0xd4d/dnlib,ZixiangBoy/dnlib,ilkerhalil/dnlib,modulexcite/dnlib,kiootic/dnlib,yck1509/dnlib,picrap/dnlib,Arthur2e5/dnlib,jorik041/dnlib | src/DotNet/CustomAttributeCollection.cs | src/DotNet/CustomAttributeCollection.cs | using System.Collections.Generic;
namespace dot10.DotNet {
/// <summary>
/// Stores <see cref="CustomAttribute"/>s
/// </summary>
public class CustomAttributeCollection : LazyList<CustomAttribute> {
/// <summary>
/// Default constructor
/// </summary>
public CustomAttributeCollection() {
}
/// <summa... | using System.Collections.Generic;
namespace dot10.DotNet {
/// <summary>
/// Stores <see cref="CustomAttribute"/>s
/// </summary>
public class CustomAttributeCollection : LazyList<CustomAttribute> {
/// <summary>
/// Default constructor
/// </summary>
public CustomAttributeCollection() {
}
/// <summa... | mit | C# |
f8b2835c81e7655285718a387642314e6544c7bd | Update AdamBertram.cs removing stray backtick | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/AdamBertram.cs | src/Firehose.Web/Authors/AdamBertram.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class AdamBertram : IAmAMicrosoftMVP
{
public string FirstName => "Adam";
public string LastNam... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class AdamBertram : IAmAMicrosoftMVP
{
public string FirstName => "Adam";
public string LastNam... | mit | C# |
b2093201b95f09ca5f60ccc914979da331020804 | Add Computed Expression in ColumnDefinition for Computed Columns | SimpleStack/simplestack.orm,SimpleStack/simplestack.orm | src/SimpleStack.Orm/ColumnDefinition.cs | src/SimpleStack.Orm/ColumnDefinition.cs | using System.Data;
namespace SimpleStack.Orm
{
public interface IColumnDefinition
{
/// <summary>
/// Column Name
/// </summary>
string Name { get; }
/// <summary>
/// Is nullable or not
/// </summary>
bool Nullable { get; }
... | using System.Data;
namespace SimpleStack.Orm
{
public interface IColumnDefinition
{
/// <summary>
/// Column Name
/// </summary>
string Name { get; }
/// <summary>
/// Is nullable or not
/// </summary>
bool Nullable { get; }
... | bsd-3-clause | C# |
b107fdd7c0bba584b72b5601454816546d8f4b4e | Improve MissingCtorException message. | Gankov/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,akrisiun/gtk-sharp,sillsdev/gtk-sharp,antoniusriha/gtk-sharp,sillsdev/gtk-sharp,antoniusriha/gtk-sharp,antoniusriha/gtk-sharp,openmedicus/gtk-sharp,antoniusriha/gtk-sharp,orion75/gtk-sharp,openmedicus/gtk-sharp,Gankov/gtk-sharp,akrisiun/gtk-sharp,Gankov/gtk-... | glib/ObjectManager.cs | glib/ObjectManager.cs | // GLib.ObjectManager.cs - GLib ObjectManager class implementation
//
// Author: Mike Kestner <mkestner@speakeasy.net>
//
// Copyright <c> 2001-2002 Mike Kestner
// Copyright <c> 2004-2005 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the L... | // GLib.ObjectManager.cs - GLib ObjectManager class implementation
//
// Author: Mike Kestner <mkestner@speakeasy.net>
//
// Copyright <c> 2001-2002 Mike Kestner
// Copyright <c> 2004-2005 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the L... | lgpl-2.1 | C# |
01b75499df3ce520d5117a0f968f20db8a26226c | Update ScheduleTomorrowController.cs | dkitchen/bpcc,dkitchen/bpcc | src/BPCCScheduler.Web/Controllers/ScheduleTomorrowController.cs | src/BPCCScheduler.Web/Controllers/ScheduleTomorrowController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using BPCCScheduler.Controllers.BaseControllers;
using BPCCScheduler.Models;
using Twilio;
namespace BPCCScheduler.Controllers
{
public class ScheduleTomorrowController : AppointmentC... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using BPCCScheduler.Controllers.BaseControllers;
using BPCCScheduler.Models;
using Twilio;
namespace BPCCScheduler.Controllers
{
public class ScheduleTomorrowController : AppointmentC... | mit | C# |
303dda9737cb64981417211d2badc95fbcfa1d7f | Check if the project names (new and old one) are the same. | fdeitelhoff/Twainsoft.SimpleRenamer | src/VSX/Twainsoft.SolutionRenamer.VSPackage/GUI/RenameProjectDialog.xaml.cs | src/VSX/Twainsoft.SolutionRenamer.VSPackage/GUI/RenameProjectDialog.xaml.cs | using System;
using System.IO;
using System.Windows;
using System.Windows.Forms;
using EnvDTE;
using MessageBox = System.Windows.Forms.MessageBox;
namespace Twainsoft.SolutionRenamer.VSPackage.GUI
{
public partial class RenameProjectDialog
{
private Project CurrentProject { get; set; }
public... | using System;
using System.IO;
using System.Windows;
using System.Windows.Forms;
using EnvDTE;
using MessageBox = System.Windows.Forms.MessageBox;
namespace Twainsoft.SolutionRenamer.VSPackage.GUI
{
public partial class RenameProjectDialog
{
private Project CurrentProject { get; set; }
public... | mit | C# |
b1f44a2ee2e94b732856fd195ce3c4c9fe1b9f8f | Fix state not propagating to FrameStatisticDisplays | RedNesto/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,Nabile-Rahmani/osu-framework,DrabWeb/osu-framework,default0/osu-framework,EVAST9919/osu-framework,paparony03/osu-framework,naoey/osu-framework,peppy/osu-framework,Tom94/osu-framework,EVAST9919/osu-framework,default0/osu-framework,Tom94/osu-framework,Drab... | osu.Framework/Graphics/Performance/PerformanceOverlay.cs | osu.Framework/Graphics/Performance/PerformanceOverlay.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.OpenGL;
using osu.Framework.Graphics.Textures;
using OpenTK.Graphics.ES30;
using ... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.OpenGL;
using osu.Framework.Graphics.Textures;
using OpenTK.Graphics.ES30;
using ... | mit | C# |
9b83207eb5e18dd1ee6d69450154a43869b29fc6 | fix Assmebly name header name in Excel report | mjrousos/dotnet-apiport,Microsoft/dotnet-apiport,mjrousos/dotnet-apiport,Microsoft/dotnet-apiport,Microsoft/dotnet-apiport | src/lib/Microsoft.Fx.Portability/Reporting/ObjectModel/MissingMemberInfo.cs | src/lib/Microsoft.Fx.Portability/Reporting/ObjectModel/MissingMemberInfo.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Fx.Portability.ObjectModel;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Microsoft.Fx.Portability.Reporting.ObjectMode... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Fx.Portability.ObjectModel;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Microsoft.Fx.Portability.Reporting.ObjectMode... | mit | C# |
821607c0def266d8dd73a6e742079f175a4869c0 | Fix an issue Tooltip does not show on the bottom right edge of the primary display | rubyu/CreviceApp,rubyu/CreviceApp | CreviceApp/Core.Config.UserInterfaceConfig.cs | CreviceApp/Core.Config.UserInterfaceConfig.cs | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CreviceApp.Core.Config
{
public class UserInterfaceConfig
{
public Func<Point, Point> TooltipPositionBinding;
public i... | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CreviceApp.Core.Config
{
public class UserInterfaceConfig
{
public Func<Point, Point> TooltipPositionBinding;
public i... | mit | C# |
46c4a40feff8cc039324a81891c922bb8714fda0 | Fix add notes, when notes are large | michael-reichenauer/GitMind | GitMind/Utils/Git/Private/GitNotesService2.cs | GitMind/Utils/Git/Private/GitNotesService2.cs | using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using GitMind.Utils.OsSystem;
namespace GitMind.Utils.Git.Private
{
internal class GitNotesService2 : IGitNotesService2
{
private readonly IGitCmdService gitCmdService;
public GitNotesService2(IGitCmdService gitCmdService)
... | using System.Threading;
using System.Threading.Tasks;
using GitMind.Utils.OsSystem;
namespace GitMind.Utils.Git.Private
{
internal class GitNotesService2 : IGitNotesService2
{
private readonly IGitCmdService gitCmdService;
public GitNotesService2(IGitCmdService gitCmdService)
{
this.gitCmdService = gitC... | mit | C# |
ee4ca4109b4950359c1ab680801aef36e707aa76 | Use GoogleCredential.CreateScoped to create test credentials | GoogleCloudPlatform/iap-desktop,GoogleCloudPlatform/iap-desktop | Google.Solutions.Compute.Test/Env/Defaults.cs | Google.Solutions.Compute.Test/Env/Defaults.cs | //
// Copyright 2019 Google LLC
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Ver... | //
// Copyright 2019 Google LLC
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Ver... | apache-2.0 | C# |
74869983f4adf6e660afd713e56a50bfe491f468 | Fix null refs | RichiCoder1/omnisharp-roslyn,ianbattersby/omnisharp-roslyn,fishg/omnisharp-roslyn,ChrisHel/omnisharp-roslyn,sriramgd/omnisharp-roslyn,nabychan/omnisharp-roslyn,hitesh97/omnisharp-roslyn,sriramgd/omnisharp-roslyn,sreal/omnisharp-roslyn,DustinCampbell/omnisharp-roslyn,xdegtyarev/omnisharp-roslyn,david-driscoll/omnisharp-... | src/OmniSharp/Api/Navigation/OmnisharpController.GotoDefinition.cs | src/OmniSharp/Api/Navigation/OmnisharpController.GotoDefinition.cs | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.CodeAnalysis.FindSymbols;
using Microsoft.CodeAnalysis.Text;
using OmniSharp.Models;
namespace OmniSharp
{
public partial class OmnisharpController
{
[HttpPost("gotodefinition... | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.CodeAnalysis.FindSymbols;
using Microsoft.CodeAnalysis.Text;
using OmniSharp.Models;
namespace OmniSharp
{
public partial class OmnisharpController
{
[HttpPost("gotodefinition... | mit | C# |
31c7b80723189591166eb7e1b38f70124793f3de | Update PlayerBehaviour.cs | booiljoung/unitywallclimb | Assets/Scripts/PlayerBehaviour.cs | Assets/Scripts/PlayerBehaviour.cs | /*
* Unity3d Wall Climbing Demo
*
* Author: Booil Ted Joung
* Email : tedfromskyy@gmail.com
*
* */
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/*
*
* Wall Climbing Player Behaviour
*
* */
public class PlayerBehaviour
: MonoBehaviour
{
// Sense wall
pu... | /*
* Unity3d Wall Climbing Demo
*
* Author: Booil Ted Joung
* Email : tedfromskyy@gmail.com
*
* */
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/*
*
* Wall Climbing Player Behaviour
*
* */
public class PlayerBehaviour
: MonoBehaviour
{
// Sense wall
pu... | mit | C# |
1be3d8e36edbe0aca0cade8615f3ac50d9ee49d5 | Move to the new StripeBasicService instead of StripeService | richardlawley/stripe.net,stripe/stripe-dotnet | src/Stripe.net/Services/EphemeralKeys/StripeEphemeralKeyService.cs | src/Stripe.net/Services/EphemeralKeys/StripeEphemeralKeyService.cs | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Stripe.Infrastructure;
namespace Stripe
{
public class StripeEphemeralKeyService : StripeBasicService<StripeEphemeralKey>
{
public StripeEphemeralKeyService(string apiKey = null) : base(apiKey) { }
//... | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Stripe.Infrastructure;
namespace Stripe
{
public class StripeEphemeralKeyService : StripeService
{
public StripeEphemeralKeyService(string apiKey = null) : base(apiKey) { }
//Sync
public vir... | apache-2.0 | C# |
74ac6eaa4e38d10e24a7cb493309093e0f9e5b63 | Fix typo | GuardTime/ksi-net-sdk,GuardTime/ksi-net-sdk | ksi-net-api/Service/ServiceCredentials.cs | ksi-net-api/Service/ServiceCredentials.cs | /*
* Copyright 2013-2018 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/licens... | /*
* Copyright 2013-2018 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/licens... | apache-2.0 | C# |
87a154f6ff34b98853ce10b5072257cee3a3f08d | scale tree. | bitzhuwei/CSharpGL,bitzhuwei/CSharpGL,bitzhuwei/CSharpGL | Demos/GridViewer/Scripts/ModelScaleScript.cs | Demos/GridViewer/Scripts/ModelScaleScript.cs | using CSharpGL;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace GridViewer
{
/// <summary>
/// scale model and its children models recursively.
/// </summary>
public class ModelScaleScript : Script... | using CSharpGL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace GridViewer
{
/// <summary>
/// scale model and its children models recursively.
/// </summary>
public class ModelScaleScript : ScriptComponent
{
publi... | mit | C# |
b3e99bce79cadb59f3e53729c377362da6a29545 | remove unused using directives | dnauck/License.Manager,dnauck/License.Manager | src/License.Manager.Core/ServiceModel/GetLicenseTypes.cs | src/License.Manager.Core/ServiceModel/GetLicenseTypes.cs | using System.Collections.Generic;
using ServiceStack.ServiceHost;
namespace License.Manager.Core.ServiceModel
{
[Route("/licenses/types", "GET, OPTIONS")]
public class GetLicenseTypes : IReturn<List<Portable.Licensing.LicenseType>>
{
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServiceStack.ServiceHost;
namespace License.Manager.Core.ServiceModel
{
[Route("/licenses/types", "GET, OPTIONS")]
public class GetLicenseTypes : IReturn<List<Portable.Licensing.LicenseTyp... | mit | C# |
d98cbef285ac9bf76f092c605a5945bcba964205 | Update HttpRequestHandlerDefinition | glenndierckx/RequestHandlers,Smartasses/RequestHandlers | src/RequestHandlers/Http/HttpRequestHandlerDefinition.cs | src/RequestHandlers/Http/HttpRequestHandlerDefinition.cs | using System.Linq;
using System.Reflection;
namespace RequestHandlers.Http
{
public class HttpRequestHandlerDefinition
{
public HttpRequestHandlerDefinition(HttpRequestAttribute attribute, IRequestDefinition definition)
{
var parsedRoute = attribute.Parse();
var isForm... | using System.Linq;
using System.Reflection;
namespace RequestHandlers.Http
{
public class HttpRequestHandlerDefinition
{
public HttpRequestHandlerDefinition(HttpRequestAttribute attribute, IRequestDefinition definition)
{
var parsedRoute = attribute.Parse();
var isForm... | mit | C# |
2d054768d2771c7b3cc00352e02bc23b71165fd3 | add Guard overload and set default messages | acple/ParsecSharp | ParsecSharp/Parser/Parser.Monad.Extensions.cs | ParsecSharp/Parser/Parser.Monad.Extensions.cs | using System;
using System.Runtime.CompilerServices;
using ParsecSharp.Internal;
namespace ParsecSharp
{
public static partial class Parser
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Parser<TToken, TResult> Bind<TToken, T, TResult>(this Parser<TToken, T> parser, Func<T, ... | using System;
using System.Runtime.CompilerServices;
using ParsecSharp.Internal;
namespace ParsecSharp
{
public static partial class Parser
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Parser<TToken, TResult> Bind<TToken, T, TResult>(this Parser<TToken, T> parser, Func<T, ... | mit | C# |
c1f02db655f91656347d21944a3d19dc44df7966 | add example to update a row (PetaPoco) | jgraber/MicroORM_examples,jgraber/MicroORM_examples,jgraber/MicroORM_examples | MicroORM_Dapper/MicroORM_PetaPoco/Program.cs | MicroORM_Dapper/MicroORM_PetaPoco/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MicroORM_Dapper;
using PetaPoco;
namespace MicroORM_PetaPoco
{
class Program
{
static void Main(string[] args)
{
ReadData();
WriteData();
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MicroORM_Dapper;
using PetaPoco;
namespace MicroORM_PetaPoco
{
class Program
{
static void Main(string[] args)
{
ReadData();
WriteData();
}
... | apache-2.0 | C# |
328943cb36e99468664c43c253f4d8d6dc78fbe5 | remove unnecessary using directive. | jwChung/Experimentalism,jwChung/Experimentalism | test/Experiment.AutoFixtureUnitTest/AssemblyLevelTest.cs | test/Experiment.AutoFixtureUnitTest/AssemblyLevelTest.cs | using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using Xunit;
using Xunit.Extensions;
namespace Jwc.Experiment
{
public class AssemblyLevelTest
{
[Fact]
public void SutReferencesOnlySpecifiedAssemblies()
{
var sut = typeof(TheoremAttribute).A... | using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using Jwc.Experiment;
using Xunit;
using Xunit.Extensions;
namespace Jwc.Experiment
{
public class AssemblyLevelTest
{
[Fact]
public void SutReferencesOnlySpecifiedAssemblies()
{
var sut = type... | mit | C# |
adcc176f3419d5249b10d055ffd249e1c997c55b | Add PlayerSpaceship to a level | andrewjleavitt/SpaceThing | Assets/Scripts/LevelManager.cs | Assets/Scripts/LevelManager.cs | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LevelManager : MonoBehaviour {
public EnemySpaceShip enemy;
public PlayerSpaceShip player;
public void SetupLevel() {
LayoutObject();
}
private void LayoutObject() {
Instant... | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LevelManager : MonoBehaviour {
public EnemySpaceShip enemy;
public void SetupLevel() {
LayoutObject();
}
private void LayoutObject() {
Instantiate(enemy, new Vector3(9f, 0f, 0f)... | unlicense | C# |
9ffdd59aed896df85dc8a024632084b1e8fc16a6 | fix local conflicts | NataliaDSmirnova/CGAdvanced2017 | Assets/Scripts/RenderObject.cs | Assets/Scripts/RenderObject.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class RenderObject : MonoBehaviour {
public GameObject renderObject;
private RenderTexture renderTexture;
private SpriteRenderer spriteRenderer;
private RawImage image;
private RenderTextu... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class RenderObject : MonoBehaviour {
public GameObject renderObject;
<<<<<<< HEAD
private RenderTexture renderTexture;
private SpriteRenderer spriteRenderer;
private int xSizeOfSprite;
pri... | mit | C# |
4d92b40f29c12e1fb6b2f96d69fd73ae6ced99a7 | Use UIImage.FromFile instead of reading from the file store into memory because it's faster. | Didux/MvvmCross-Plugins,martijn00/MvvmCross-Plugins,MatthewSannes/MvvmCross-Plugins,lothrop/MvvmCross-Plugins | Cirrious/DownloadCache/Cirrious.MvvmCross.Plugins.DownloadCache.Touch/MvxTouchLocalFileImageLoader.cs | Cirrious/DownloadCache/Cirrious.MvvmCross.Plugins.DownloadCache.Touch/MvxTouchLocalFileImageLoader.cs | // MvxTouchLocalFileImageLoader.cs
// (c) Copyright Cirrious Ltd. http://www.cirrious.com
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, me@slodge.com
using Cirrious.CrossCore;
using Cirri... | // MvxTouchLocalFileImageLoader.cs
// (c) Copyright Cirrious Ltd. http://www.cirrious.com
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, me@slodge.com
using Cirrious.CrossCore;
using Cirri... | mit | C# |
c34ab15bc4f45188c56c60c9d0b64cc3029bab8a | Remove unused binding | dirkrombauts/production-helper-for-ti3 | ProductionHelperForTI3.Specification.AutomationLayer/Bindings.cs | ProductionHelperForTI3.Specification.AutomationLayer/Bindings.cs | using TechTalk.SpecFlow;
using ProductionHelperForTI3.Domain;
namespace ProductionHelperForTI3.Specification.AutomationLayer
{
using NFluent;
[Binding]
public class Bindings
{
private Planet planet;
private SpaceDock spaceDock;
private Technology technology;
private... | using TechTalk.SpecFlow;
using ProductionHelperForTI3.Domain;
namespace ProductionHelperForTI3.Specification.AutomationLayer
{
using NFluent;
using TechTalk.SpecFlow.Configuration;
[Binding]
public class Bindings
{
private Planet planet;
private SpaceDock spaceDock;
pri... | mit | C# |
b73e137ff4ed19f85f376ab0f8a062c9617d689d | Simplify content set | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi.Fluent/ViewModels/AddWallet/LegalDocumentsViewModel.cs | WalletWasabi.Fluent/ViewModels/AddWallet/LegalDocumentsViewModel.cs | using ReactiveUI;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Legal;
using WalletWasabi.Services;
using System;
using System.Reactive.Linq;
using System.Reactive.Disposables;
namespace WalletWasabi.Fluent.ViewModels.AddWallet
{
[NavigationMetaData(
Title = "Legal Docs",
Caption = "Displays... | using ReactiveUI;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Legal;
using WalletWasabi.Services;
using System;
using System.Reactive.Linq;
using System.Reactive.Disposables;
namespace WalletWasabi.Fluent.ViewModels.AddWallet
{
[NavigationMetaData(
Title = "Legal Docs",
Caption = "Displays... | mit | C# |
96fe070d39b29b08bfbc601c4c93176cfddb11c3 | Add OMCode property | ADAPT/ADAPT | source/ADAPT/Documents/Obs.cs | source/ADAPT/Documents/Obs.cs | /*******************************************************************************
* Copyright (C) 2019 AgGateway; PAIL and ADAPT Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | /*******************************************************************************
* Copyright (C) 2019 AgGateway; PAIL and ADAPT Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | epl-1.0 | C# |
f6c75f4d0290c2535d72985c5c7da6d775ca7c2b | Add OMCode property | ADAPT/ADAPT | source/ADAPT/Documents/ObsCollection.cs | source/ADAPT/Documents/ObsCollection.cs | /*******************************************************************************
* Copyright (C) 2019 AgGateway; PAIL and ADAPT Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | /*******************************************************************************
* Copyright (C) 2019 AgGateway; PAIL and ADAPT Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | epl-1.0 | C# |
3641856595498f22f4d4dfb00097c0c5e3d2101d | scale theme now relative to gameobject initial scale, like in other themes | killerantz/HoloToolkit-Unity,DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity | Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/VisualThemes/ThemeEngines/InteractableScaleTheme.cs | Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/VisualThemes/ThemeEngines/InteractableScaleTheme.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.UI
{
/// <summary>
/// Theme Engine to control i... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.UI
{
/// <summary>
/// Theme Engine to control i... | mit | C# |
bc380e14f322678cf4deb6168eea23d8f3bc61d1 | FIx typo | autofac/Autofac | src/Autofac/Builder/DeferredCallback.cs | src/Autofac/Builder/DeferredCallback.cs | using System;
using Autofac.Core.Registration;
namespace Autofac.Builder
{
/// <summary>
/// Reference object allowing location and update of a registration callback.
/// </summary>
public class DeferredCallback
{
// _callback set to default! to get around initialization detection problem ... | using System;
using Autofac.Core.Registration;
namespace Autofac.Builder
{
/// <summary>
/// Reference object allowing location and update of a registration callback.
/// </summary>
public class DeferredCallback
{
// _callback set to default! to get around initialisation detection problem ... | mit | C# |
b0bd80210dc67b067f41815ade33b01e7a020563 | Build script now creates individual zip file packages to align with the NuGet packages and semantic versioning. | autofac/Autofac.Wcf,caioproiete/Autofac.Wcf | Properties/VersionAssemblyInfo.cs | Properties/VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | mit | C# |
6792709db32313b71a1c849019db6201b720d06b | Fix test | mj1856/TimeZoneNames | TimeZoneNames.Tests/TimeZoneCountriesTests.cs | TimeZoneNames.Tests/TimeZoneCountriesTests.cs | using System.Diagnostics;
using System.Linq;
using Xunit;
namespace TimeZoneNames.Tests
{
public class TimeZoneCountriesTests
{
[Fact]
public void Can_Get_Zones_For_US()
{
var zones = TimeZoneNames.GetTimeZoneIdsForCountry("US");
foreach (var zone in zones)
... | using System.Diagnostics;
using System.Linq;
using Xunit;
namespace TimeZoneNames.Tests
{
public class TimeZoneCountriesTests
{
[Fact]
public void Can_Get_Zones_For_US()
{
var zones = TimeZoneNames.GetTimeZoneIdsForCountry("US");
foreach (var zone in zones)
... | mit | C# |
8251b1b565f1e57ffc572040e953717ed7e66c63 | change namespace of PropertyChangedCounter class. | cube-soft/Cube.Core,cube-soft/Cube.Core | Libraries/Tests/Sources/Helpers/PropertyChangedCounter.cs | Libraries/Tests/Sources/Helpers/PropertyChangedCounter.cs | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... | apache-2.0 | C# |
ef64dc27a1016c47d3d36809a266fe155d3cd528 | Update ShaneONeill.cs | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell | src/Firehose.Web/Authors/ShaneONeill.cs | src/Firehose.Web/Authors/ShaneONeill.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class ShaneONeill : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Shane";
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class ShaneONeill : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Shane";
... | mit | C# |
eefd3a565fd5447c47fe147be4bebacca25db4f3 | Add simple unit test. | tiesmaster/DCC,tiesmaster/DCC | Dcc.Test/DccMiddlewareTests.cs | Dcc.Test/DccMiddlewareTests.cs | using System.Threading.Tasks;
using FluentAssertions;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Options;
using Tiesmaster.Dcc;
using Xunit;
namespace Dcc.Test
{
public class DccMiddlewareTests
{
[Fact]
public void CanCreate()
{
// arrange
v... | using FluentAssertions;
using Tiesmaster.Dcc;
using Xunit;
namespace Dcc.Test
{
public class DccMiddlewareTests
{
[Fact]
public void SanityTest()
{
true.Should().BeTrue();
}
[Fact]
public void TEST_NAME()
{
// arrange
... | mit | C# |
216f0b971e47964bba9b8a99f5ab98c7901d96b1 | increment patch version, | jwChung/Experimentalism,jwChung/Experimentalism | build/CommonAssemblyInfo.cs | build/CommonAssemblyInfo.cs | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Jin-Wook Chung")]
[assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: Co... | using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Jin-Wook Chung")]
[assembly: AssemblyCopyright("Copyright (c) 2014, Jin-Wook Chung")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: Co... | mit | C# |
dd06a637a81a0d9889d7837d20becf66a8acdc5a | Fix HandleInput caching logic | Tom94/osu-framework,peppy/osu-framework,Nabile-Rahmani/osu-framework,DrabWeb/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,Nabile-Rahmani/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,default0/osu-framework,Tom94/osu-framework,peppy/osu-framework,Dr... | osu.Framework/Caching/HandleInputCache.cs | osu.Framework/Caching/HandleInputCache.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Collections.Concurrent;
using System.Reflection;
using osu.Framework.Graphics;
namespace osu.Framework.Caching
{
pub... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Collections.Concurrent;
using System.Reflection;
using osu.Framework.Graphics;
namespace osu.Framework.Caching
{
pub... | mit | C# |
f530574b89bd30e0f897de4a73c49bff5a314be2 | Fix typo | paiden/Nett | Test/Nett.UnitTests/Functional/ParserErrorMessageTests.cs | Test/Nett.UnitTests/Functional/ParserErrorMessageTests.cs | using System;
using FluentAssertions;
using Xunit;
namespace Nett.UnitTests.Functional
{
public sealed class ParserErrorMessageTests
{
private const string KeyMissingError = "*Key is missing.";
private const string ValueMissingError = "*Value is missing.";
private const string StringNo... | using System;
using FluentAssertions;
using Xunit;
namespace Nett.UnitTests.Functional
{
public sealed class ParserErrorMessageTests
{
private const string KeyMissingError = "*Key is missing.";
private const string ValueMissingError = "*Value is missing.";
private const string StringNo... | mit | C# |
899ceef6fb59ca31830aa256381412ca751d3cf6 | update password reset css | agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov,agrc/api.mapserv.utah.gov | WebAPI.Dashboard/Views/AccountAccess/PasswordReset.cshtml | WebAPI.Dashboard/Views/AccountAccess/PasswordReset.cshtml | @model WebAPI.Dashboard.Models.ViewModels.MainViewModel
@{
ViewBag.Title = "Password Reset";
}
<div id="home">
<div class="pull-right">
@Html.ActionLink("Log Out", "Logout")
</div>
</div>
<div class="col-sm-offset-3 col-sm-6">
@Html.ErrorBox()
@Html.MessageBox()
</div>
@using (Html.BeginFor... | @model WebAPI.Dashboard.Models.ViewModels.MainViewModel
@{
ViewBag.Title = "Password Reset";
}
<div id="home">
<div class="pull-right">
@Html.ActionLink("Log Out", "Logout")
</div>
</div>
<div class="col-sm-offset-3 col-sm-6">
@Html.ErrorBox()
@Html.MessageBox()
</div>
@using (Html.BeginFor... | mit | C# |
548ba43acf5f934a5fe95d227d11a0fc392ed338 | Change the claim so that the id of the user is stored | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice | src/SFA.DAS.EmployerApprenticeshipsService.Web/Authentication/OwinWrapper.cs | src/SFA.DAS.EmployerApprenticeshipsService.Web/Authentication/OwinWrapper.cs | using System.Collections.Generic;
using System.Security.Claims;
using IdentityServer3.Core.Extensions;
using IdentityServer3.Core.Models;
using Microsoft.Owin;
namespace SFA.DAS.EmployerApprenticeshipsService.Web.Authentication
{
public class OwinWrapper : IOwinWrapper
{
private readonly IOwinContext ... | using System.Collections.Generic;
using System.Security.Claims;
using IdentityServer3.Core.Extensions;
using IdentityServer3.Core.Models;
using Microsoft.Owin;
namespace SFA.DAS.EmployerApprenticeshipsService.Web.Authentication
{
public class OwinWrapper : IOwinWrapper
{
private readonly IOwinContext ... | mit | C# |
3daace53738dfb290eb31ce68b7e05428bab31ce | test parser | wowhy/wowhy,wowhy/wowhy,wowhy/wowhy | All/SampleParser/Program.cs | All/SampleParser/Program.cs | using Microsoft.CSharp;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using HyLibrary.Parser.Expr;
using HyLibrary.ExtensionMethod;
namespace SampleParser
{
public c... | using Microsoft.CSharp;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using HyLibrary.Parser.Expr;
using HyLibrary.ExtensionMethod;
namespace SampleParser
{
public c... | apache-2.0 | C# |
d7e35063a3ce1699b8126834fc3978be123b0687 | Add option to change protocol version | dialogflow/dialogflow-dotnet-client,dialogflow/dialogflow-dotnet-client,api-ai/api-ai-net,api-ai/api-ai-net,IntranetFactory/api-ai-net | ApiAiSDK/AIConfiguration.cs | ApiAiSDK/AIConfiguration.cs | //
// API.AI .NET SDK - client-side libraries for API.AI
// =================================================
//
// Copyright (C) 2015 by Speaktoit, Inc. (https://www.speaktoit.com)
// https://www.api.ai
//
// *************************************************************************************************************... | //
// API.AI .NET SDK - client-side libraries for API.AI
// =================================================
//
// Copyright (C) 2015 by Speaktoit, Inc. (https://www.speaktoit.com)
// https://www.api.ai
//
// *************************************************************************************************************... | apache-2.0 | C# |
d90aa41b22d73a1b84491b82185033405e2cb71b | Update Singleton.cs | Glauz/Unity3D-CharacterCustomizationTutorial | Assets/Scripts/Singleton.cs | Assets/Scripts/Singleton.cs | using UnityEngine;
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour
{
private static T instance;
public void Awake()
{
if (instance == null)
{
instance = GetComponent<T>();
}
else
Destroy(this.gameObject);
}
public stati... | using UnityEngine;
using System.Collections.Generic;
namespace Glauz
{
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour
{
private static T instance;
public static T Instance
{
get
{
if (instance == null)
ins... | mit | C# |
44cb41891cbbaf3184d8546af3731e03883eae30 | Update Developer-Banner.cs | DeanCabral/Code-Snippets | Console/Developer-Banner.cs | Console/Developer-Banner.cs | class DeveloperBanner
{
static string assignmentTitle, developerName, dateSubmitted, generalPurpose;
static int bannerLength = 50;
static void Main(string[] args)
{
GetUserInput();
}
static void GetUserInput()
{
Console.Wri... | class DeveloperBanner
{
static string assignmentTitle, developerName, dateSubmitted, generalPurpose;
static int bannerLength = 50;
static void Main(string[] args)
{
GetUserInput();
}
static void GetUserInput()
{
Console.Wri... | mit | C# |
a893be597f320608c253569d2c3bf572b5bc5944 | Remove not needed tower transform | emazzotta/unity-tower-defense | Assets/Scripts/Tower.cs | Assets/Scripts/Tower.cs | using UnityEngine;
using System.Collections;
public class Tower : MonoBehaviour {
public float range = 10f;
public GameObject bulletPrefab;
public int cost = 5;
public int damage = 10;
public float radius = 0;
private MetallKefer nearestMetallKefer;
void Start () {
InvokeRepeating("AimAtTarget", 0, 0.5f);... | using UnityEngine;
using System.Collections;
public class Tower : MonoBehaviour {
public float range = 10f;
public GameObject bulletPrefab;
public int cost = 5;
public int damage = 10;
public float radius = 0;
private MetallKefer nearestMetallKefer;
void Start () {
InvokeRepeating("AimAtTarget", 0, 0.5f... | mit | C# |
a00c763ce424308133a61843b5be5e7b05964a8d | Set JSON as the default (and only) formatter | cloudfoundry-incubator/wats,cloudfoundry/wats,cloudfoundry-incubator/wats,cloudfoundry/wats,cloudfoundry-incubator/wats,cloudfoundry/wats,cloudfoundry/wats,cloudfoundry-incubator/wats,cloudfoundry/wats,cloudfoundry-incubator/wats | Nora/App_Start/WebApiConfig.cs | Nora/App_Start/WebApiConfig.cs | using System.Web.Http;
namespace Nora
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
// Web API routes
config.MapHttpAttributeRoutes();
config.Routes... | using System.Web.Http;
namespace Nora
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
// Web API routes
config.MapHttpAttributeRoutes();
config.Rout... | apache-2.0 | C# |
88cd1594d2dbeeeaf7a2dadb1bccc52a9f02357a | Mark redundant methods in IDiffer as obsolete | mmanela/diffplex,mmanela/diffplex,mmanela/diffplex,mmanela/diffplex | DiffPlex/IDiffer.cs | DiffPlex/IDiffer.cs | using System;
using DiffPlex.Model;
namespace DiffPlex
{
/// <summary>
/// Responsible for generating differences between texts
/// </summary>
public interface IDiffer
{
[Obsolete("Use CreateDiffs method instead", false)]
DiffResult CreateLineDiffs(string oldText, string newText, b... | using System;
using DiffPlex.Model;
namespace DiffPlex
{
/// <summary>
/// Responsible for generating differences between texts
/// </summary>
public interface IDiffer
{
DiffResult CreateLineDiffs(string oldText, string newText, bool ignoreWhitespace);
DiffResult CreateLineDiffs(st... | apache-2.0 | C# |
af8c9d0b359d89c57d71a22409e4121b1154eb36 | Improve base test | sickboy/JConverter | src/JConverter.Tests/BaseTest.cs | src/JConverter.Tests/BaseTest.cs | using NUnit.Framework;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoFakeItEasy;
namespace JConverter.Tests
{
[TestFixture]
public abstract class BaseTest
{
protected Fixture Fixture { get; } = new Fixture();
protected BaseTest()
{
Fixture.Customize(new AutoFake... | using NUnit.Framework;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.AutoFakeItEasy;
namespace JConverter.Tests
{
[TestFixture]
public abstract class BaseTest
{
protected Fixture Fixturer { get; } = new Fixture();
protected BaseTest()
{
Fixturer.Customize(new AutoFa... | mit | C# |
71f5386875aa82b82faa1b780b9a465f3e3bf743 | Fix Selenium4 support | ObjectivityLtd/Test.Automation | Ocaramba.Tests.Xunit/Tests/ExampleTest2.cs | Ocaramba.Tests.Xunit/Tests/ExampleTest2.cs | // <copyright file="ExampleTest2.cs" company="Objectivity Bespoke Software Specialists">
// Copyright (c) Objectivity Bespoke Software Specialists. All rights reserved.
// </copyright>
// <license>
// The MIT License (MIT)
// Permission is hereby granted, free of charge, to any person obtaining a copy
// o... | // <copyright file="ExampleTest2.cs" company="Objectivity Bespoke Software Specialists">
// Copyright (c) Objectivity Bespoke Software Specialists. All rights reserved.
// </copyright>
// <license>
// The MIT License (MIT)
// Permission is hereby granted, free of charge, to any person obtaining a copy
// o... | mit | C# |
a4d25b138641fef9c85bc38924c8dd81a00d01e4 | Change name | Verrickt/BsodSimulator | BsodSimulator/ViewModel/ViewModelBase.cs | BsodSimulator/ViewModel/ViewModelBase.cs | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;
namespace BsodSimulator.ViewModel
{
public class ViewModelBase : INotifyPropertyChanged
... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;
namespace BsodSimulator.ViewModel
{
public class ViewModelBase : INotifyPropertyChanged
... | mit | C# |
1fc14eaffc255d3b4b4c12dac08a48c354860fe0 | Add implementation of enumerable interface for list responses. | henrikfroehling/TraktApiSharp | Source/Lib/TraktApiSharp/Experimental/Responses/TraktListResponse.cs | Source/Lib/TraktApiSharp/Experimental/Responses/TraktListResponse.cs | namespace TraktApiSharp.Experimental.Responses
{
using Exceptions;
using System.Collections;
using System.Collections.Generic;
public class TraktListResponse<TContentType> : ATraktResponse<List<TContentType>>, ITraktResponseHeaders, IEnumerable<TContentType>
{
public string SortBy { get; s... | namespace TraktApiSharp.Experimental.Responses
{
using Exceptions;
using System.Collections.Generic;
public class TraktListResponse<TContentType> : ATraktResponse<List<TContentType>>, ITraktResponseHeaders
{
public string SortBy { get; set; }
public string SortHow { get; set; }
... | mit | C# |
3797b21b2e21cfa46070791268055c054df11953 | Break test for testing | fullstack101/SuggestionSystem,fullstack101/SuggestionSystem,fullstack101/SuggestionSystem,fullstack101/SuggestionSystem | Source/SuggestionSystem/Tests/SuggestionSystem.Web.Api.Tests/ControllerTests/SuggestionsControllerTests.cs | Source/SuggestionSystem/Tests/SuggestionSystem.Web.Api.Tests/ControllerTests/SuggestionsControllerTests.cs | namespace SuggestionSystem.Web.Api.Tests.ControllerTests
{
using Controllers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MyTested.WebApi;
using Setups;
[TestClass]
public class SuggestionsControllerTests
{
private IControllerBuilder<SuggestionsController> controller;... | namespace SuggestionSystem.Web.Api.Tests.ControllerTests
{
using Controllers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MyTested.WebApi;
using Setups;
[TestClass]
public class SuggestionsControllerTests
{
private IControllerBuilder<SuggestionsController> controller;... | mit | C# |
12058c446f84ea0c0d70f230c9b5e031015eb320 | Remove request HTTP method from logging | alexanderkozlenko/oads,alexanderkozlenko/oads | src/Anemonis.MicrosoftOffice.AddinHost/Middleware/RequestTracingMiddleware.cs | src/Anemonis.MicrosoftOffice.AddinHost/Middleware/RequestTracingMiddleware.cs | // © Alexander Kozlenko. Licensed under the MIT License.
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Serilog;
using Serilog.Events;
namespace Anemonis.MicrosoftOffice.AddinHost.Middleware
{
/// <summary>Represents request tracking... | // © Alexander Kozlenko. Licensed under the MIT License.
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Serilog;
using Serilog.Events;
namespace Anemonis.MicrosoftOffice.AddinHost.Middleware
{
/// <summary>Represents request tracking... | mit | C# |
78561fa944b0c8a7df0cb49b63482eeb0da6dbc1 | Update version to 1.1.0 | TheOtherTimDuncan/TOTD-Mailer | SharedAssemblyInfo.cs | SharedAssemblyInfo.cs | using System.Reflection;
// 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: AssemblyConfiguration("")]
[assembly: AssemblyCompany("The Other Tim Duncan")]
[assembly: Asse... | using System.Reflection;
// 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: AssemblyConfiguration("")]
[assembly: AssemblyCompany("The Other Tim Duncan")]
[assembly: Asse... | mit | C# |
e46ff2094938ab07c696176d5f42e99f6beaa4ac | Fix unit test | GNOME/hyena,dufoli/hyena,arfbtwn/hyena,GNOME/hyena,dufoli/hyena,petejohanson/hyena,petejohanson/hyena,arfbtwn/hyena | src/Hyena/Hyena.Metrics/Tests/MetricsTests.cs | src/Hyena/Hyena.Metrics/Tests/MetricsTests.cs | //
// MetricsTests.cs
//
// Author:
// Gabriel Burt <gburt@novell.com>
//
// Copyright (C) 2010 Novell, 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 restriction, inclu... | //
// MetricsTests.cs
//
// Author:
// Gabriel Burt <gburt@novell.com>
//
// Copyright (C) 2010 Novell, 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 restriction, inclu... | mit | C# |
38f48181f6be152107ac0f7e8c6d7aefc8fa0db1 | use TypeHelper.ConvertType | Research-Institute/json-api-dotnet-core,Research-Institute/json-api-dotnet-core,json-api-dotnet/JsonApiDotNetCore | src/JsonApiDotNetCore/Models/AttrAttribute.cs | src/JsonApiDotNetCore/Models/AttrAttribute.cs | using System;
using System.Reflection;
using JsonApiDotNetCore.Internal;
namespace JsonApiDotNetCore.Models
{
public class AttrAttribute : Attribute
{
public AttrAttribute(string publicName)
{
PublicAttributeName = publicName;
}
public string PublicAttributeName { g... | using System;
using System.Reflection;
namespace JsonApiDotNetCore.Models
{
public class AttrAttribute : Attribute
{
public AttrAttribute(string publicName)
{
PublicAttributeName = publicName;
}
public string PublicAttributeName { get; set; }
public string I... | mit | C# |
ad554784521b258c193b3e7541b7ffe6cbae5ace | Fix comment/doc for TracerProvider.Default (#3584) | open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet,open-telemetry/opentelemetry-dotnet | src/OpenTelemetry.Api/Trace/TracerProvider.cs | src/OpenTelemetry.Api/Trace/TracerProvider.cs | // <copyright file="TracerProvider.cs" company="OpenTelemetry Authors">
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.... | // <copyright file="TracerProvider.cs" company="OpenTelemetry Authors">
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.... | apache-2.0 | C# |
5407e088930379dace739afedc25f93fd2cb7561 | Implement BMP's GetData() | Davipb/BluwolfIcons | BluwolfIcons/BmpIconImage.cs | BluwolfIcons/BmpIconImage.cs | using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
namespace BluwolfIcons
{
/// <summary>
/// A BMP (Bitmap) image inside an icon.
/// </summary>
public class BmpIconImage
{
/// <summary>
/// The original image.
/// </summary>
public Bitmap Image { ... | using System;
using System.Drawing;
namespace BluwolfIcons
{
/// <summary>
/// A BMP (Bitmap) image inside an icon.
/// </summary>
public class BmpIconImage
{
/// <summary>
/// The original image.
/// </summary>
public Bitmap Image { get; set; }
/// <summary>
/// Whether a transparency map should be... | mit | C# |
c31f6f8d0ccdf2ae2f4374656df1075a8fa151d4 | Add utility method ToSnakeCase to convert keys such as 'AppDataSubFolderName' to 'app_data_sub_folder_name' which seems more appropriate for settings files. | PenguinF/sandra-three | Sandra.UI.WF.Chess/Settings.cs | Sandra.UI.WF.Chess/Settings.cs | /*********************************************************************************
* Settings.cs
*
* Copyright (c) 2004-2018 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of t... | /*********************************************************************************
* Settings.cs
*
* Copyright (c) 2004-2018 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of t... | apache-2.0 | C# |
5f38c2e37084271a07abb8f8a8e7ba0c08f257ee | Fix test assembly load path | nbarbettini/polyglot-dotnet,nbarbettini/libpolyglot | libpolyglot.Tests/Assembly_tests.cs | libpolyglot.Tests/Assembly_tests.cs | using System.Collections.Generic;
using System.IO;
using System.Reflection;
using Shouldly;
using Xunit;
namespace libpolyglot.Tests
{
public class Assembly_tests
{
public static IEnumerable<object[]> TestAssemblies()
{
yield return new object[] { "EmptyVB.dll", Language.Vb };
... | using System.Collections.Generic;
using System.Reflection;
using Shouldly;
using Xunit;
namespace libpolyglot.Tests
{
public class Assembly_tests
{
public static IEnumerable<object[]> TestAssemblies()
{
yield return new object[] { "EmptyVB.dll", Language.Vb };
yield ret... | mit | C# |
60699782ffee66364fe172ed41ce8973abe949e4 | Use IDbConnection instead of SqlConnection (fixes #1) | half-ogre/dapper-wrapper | DapperWrapper/SqlExecutor.cs | DapperWrapper/SqlExecutor.cs | using System.Collections.Generic;
using System.Data;
using Dapper;
namespace DapperWrapper
{
public class SqlExecutor : IDbExecutor
{
readonly IDbConnection _dbConnection;
public SqlExecutor(IDbConnection dbConnection)
{
_dbConnection = dbConnection;
}
... | using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Dapper;
namespace DapperWrapper
{
public class SqlExecutor : IDbExecutor
{
readonly SqlConnection _sqlConnection;
public SqlExecutor(SqlConnection sqlConnection)
{
_sqlConnectio... | mit | C# |
ad9171d3ca7c61923da022597e14dad5fcc15b57 | Change http request total name to match Prometheus guidelines | andrasm/prometheus-net | Prometheus.HttpExporter.AspNetCore/HttpRequestCount/HttpRequestCountOptions.cs | Prometheus.HttpExporter.AspNetCore/HttpRequestCount/HttpRequestCountOptions.cs | namespace Prometheus.HttpExporter.AspNetCore.HttpRequestCount
{
public class HttpRequestCountOptions : HttpExporterOptionsBase
{
public Counter Counter { get; set; } =
Metrics.CreateCounter(DefaultName, DefaultHelp, HttpRequestLabelNames.All);
private const string DefaultNam... | namespace Prometheus.HttpExporter.AspNetCore.HttpRequestCount
{
public class HttpRequestCountOptions : HttpExporterOptionsBase
{
public Counter Counter { get; set; } =
Metrics.CreateCounter(DefaultName, DefaultHelp, HttpRequestLabelNames.All);
private const string DefaultNam... | mit | C# |
ab07d5132cc04a619a89eb7c5b211bde7371a3b8 | Order elements in some classes | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet | WalletWasabi/Gma/QrCodeNet/Encoding/Positioning/Stencils/PatternStencilBase.cs | WalletWasabi/Gma/QrCodeNet/Encoding/Positioning/Stencils/PatternStencilBase.cs | using System;
namespace Gma.QrCodeNet.Encoding.Positioning.Stencils
{
internal abstract class PatternStencilBase : BitMatrix
{
protected const bool O = false;
protected const bool X = true;
internal PatternStencilBase(int version)
{
Version = version;
}
public int Version { get; private set; }
pu... | using System;
namespace Gma.QrCodeNet.Encoding.Positioning.Stencils
{
internal abstract class PatternStencilBase : BitMatrix
{
protected const bool O = false;
protected const bool X = true;
internal PatternStencilBase(int version)
{
Version = version;
}
public int Version { get; private set; }
pu... | mit | C# |
43b2d539864ef9c5960ba44921238ed6d17d6319 | Increment Version Number. | krs43/ib-csharp,sebfia/ib-csharp,qusma/ib-csharp | Krs.Ats.IBNet/Properties/AssemblyInfo.cs | Krs.Ats.IBNet/Properties/AssemblyInfo.cs | using System;
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("Krs.Ats.IBNet")]
... | using System;
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("Krs.Ats.IBNet")]
... | mit | C# |
6da3410c53ea86bd90dd6fe5795f68820d44d2dc | update package info | jgh004/CsvHelperAsync,jgh004/CsvHelperAsync,jgh004/CsvHelperAsync | CsvHelperAsync/Properties/AssemblyInfo.cs | CsvHelperAsync/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("CsvHelperAsync")]
[assembly: AssemblyDescription( "A library of asynchronous read and write large csv file. 简单高效的 csv 异步读写类, 可读写大型 csv... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("CsvHelperAsync")]
[assembly: AssemblyDescription( "A library of asynchronous read and write large csv file. 简单高效的 csv 异步读写类, 可读写大型 csv... | mit | C# |
2d733388f5a55abd330e5ce2d5e87a9c2a8af4fc | Change the personalization example comparison to be case insensitive | Kentico/Deliver-Dancing-Goat-.NET-MVC,Kentico/cloud-sample-app-net,Kentico/cloud-sample-app-net,Kentico/cloud-sample-app-net,Kentico/Deliver-Dancing-Goat-.NET-MVC | DancingGoat/Controllers/HomeController.cs | DancingGoat/Controllers/HomeController.cs | using System;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Web.Mvc;
using DancingGoat.Models;
using KenticoCloud.Personalization;
using KenticoCloud.Personalization.MVC;
using KenticoCloud.Delivery;
namespace DancingGoat.Controllers
{
public class HomeController : Co... | using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Web.Mvc;
using DancingGoat.Models;
using KenticoCloud.Personalization;
using KenticoCloud.Personalization.MVC;
using KenticoCloud.Delivery;
namespace DancingGoat.Controllers
{
public class HomeController : ControllerBase
... | mit | C# |
bcd8c7b22f0fc7c38678e2c3e947ba59048116e2 | Fix cheering occuring incorrectly | NitorInc/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare,Barleytree/NitoriWare | Assets/Microgames/BeachBall/Scripts/BeachBallCollisionObserver.cs | Assets/Microgames/BeachBall/Scripts/BeachBallCollisionObserver.cs | using UnityEngine;
/// <summary>
/// Observes ball params. Switches z index and triggers win if requirements are met
/// </summary>
public class BeachBallCollisionObserver : MonoBehaviour
{
[SerializeField]
private AudioClip victoryClip;
protected Collider2D innerArea;
protected Collider2D ballColli... | using UnityEngine;
/// <summary>
/// Observes ball params. Switches z index and triggers win if requirements are met
/// </summary>
public class BeachBallCollisionObserver : MonoBehaviour
{
[SerializeField]
private AudioClip victoryClip;
protected Collider2D innerArea;
protected Collider2D ballColli... | mit | C# |
101860bd4f07cf8ac194adb526ec10881d807a4c | Update Startup.cs | alsafonov/gitresources,alsafonov/gitresources | GitResources/Startup.cs | GitResources/Startup.cs | using System;
using System.Collections.Generic;
using System.Linq;
namespace GitResources
{
public partial class Startup
{
//11111111111111111111111111111
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
namespace GitResources
{
public partial class Startup
{
}
}
| mit | C# |
930499532171a06e686d9a3e99b071f48faa37d0 | reduce max default frame data length | lopper/WebSocket.Portable,esskar/WebSocket.Portable,kabsila/WebSocket.Portable | WebSocket.Portable.Core/Internal/Consts.cs | WebSocket.Portable.Core/Internal/Consts.cs | namespace WebSocket.Portable.Internal
{
internal static class Consts
{
public static readonly char[] ExtensionParmeterValueNeedQuotesChars = { ' ', '\t', ',', ';', '=' };
public const string HeaderOrigin = "Origin";
public const string HeaderSecWebSocketAccept = "Sec-WebSocket-Accept";... | namespace WebSocket.Portable.Internal
{
internal static class Consts
{
public static readonly char[] ExtensionParmeterValueNeedQuotesChars = { ' ', '\t', ',', ';', '=' };
public const string HeaderOrigin = "Origin";
public const string HeaderSecWebSocketAccept = "Sec-WebSocket-Accept";... | apache-2.0 | C# |
9d30402bd593f196b8778b488eb5d8d00e0ffb47 | remove a Enrol method overloading | Mooophy/158212 | as5/Lib/University.cs | as5/Lib/University.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lib
{
public class University
{
public SortedSet<Student> Students { get; private set; }
public SortedSet<Paper> Papers { get; private set; }
public Dictionary<... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lib
{
public class University
{
public SortedSet<Student> Students { get; private set; }
public SortedSet<Paper> Papers { get; private set; }
public Dictionary<... | mit | C# |
25153f1ff749a95776ffe93c9fac0bc7b2cea469 | Clean up on logging | Red-Folder/WebCrawl-Functions | WebCrawlCleanup/run.csx | WebCrawlCleanup/run.csx | using System.Net;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using Microsoft.Azure.Documents.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Red_Folder.WebCrawl.Data;
public static async Task Run(TimerInfo timerInfo, TraceWriter log)
{
log.Info($"Web Crawl Clean up trig... | using System.Net;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using Microsoft.Azure.Documents.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Red_Folder.WebCrawl.Data;
public static async Task Run(TimerInfo timerInfo, TraceWriter log)
{
log.Info($"Web Crawl Clean up trig... | mit | C# |
c143453f5f3e960871674a219b1556a7a55b29d6 | Fix point skipped during get points issue | holance/helix-toolkit,chrkon/helix-toolkit,helix-toolkit/helix-toolkit,JeremyAnsel/helix-toolkit,smischke/helix-toolkit,Iluvatar82/helix-toolkit | Source/HelixToolkit.Wpf.SharpDX/Model/Geometry/PointGeometry3D.cs | Source/HelixToolkit.Wpf.SharpDX/Model/Geometry/PointGeometry3D.cs | namespace HelixToolkit.Wpf.SharpDX
{
using System;
using System.Collections.Generic;
using HelixToolkit.SharpDX.Shared.Utilities;
[Serializable]
public class PointGeometry3D : Geometry3D
{
public IEnumerable<Geometry3D.Point> Points
{
get
{
... | namespace HelixToolkit.Wpf.SharpDX
{
using System;
using System.Collections.Generic;
using HelixToolkit.SharpDX.Shared.Utilities;
[Serializable]
public class PointGeometry3D : Geometry3D
{
public IEnumerable<Geometry3D.Point> Points
{
get
{
... | mit | C# |
b0c678c894cfd71fa0b4aed21801a638d7ac4e09 | Change CharParser to use a predicate | exodrifter/unity-rumor | Parser/Simple/CharParser.cs | Parser/Simple/CharParser.cs | using System;
namespace Exodrifter.Rumor.Parser
{
public class CharParser : Parser<char>
{
private readonly Func<char, bool> predicate;
private readonly string expected;
public CharParser(char ch)
: this((other) => ch == other, ch.ToString()) { }
/// <summary>
/// Creates a new CharParser which succe... | namespace Exodrifter.Rumor.Parser
{
public class CharParser : Parser<char>
{
private readonly char ch;
public CharParser(char ch)
{
this.ch = ch;
}
public override Result<char> Parse(State state)
{
if (state.Source.Length <= state.Index)
{
return Result<char>.Error(state.Index, ch.ToString... | mit | C# |
7a03c277cf6cd60fae86fc049025b08d20e2a2a9 | Add quote search by keyword and text | Midnight-Myth/Mitternacht-NEW,powered-by-moe/MikuBot,Blacnova/NadekoBot,PravEF/EFNadekoBot,gfrewqpoiu/NadekoBot,ShadowNoire/NadekoBot,halitalf/NadekoMods,Midnight-Myth/Mitternacht-NEW,WoodenGlaze/NadekoBot,Midnight-Myth/Mitternacht-NEW,Midnight-Myth/Mitternacht-NEW,Nielk1/NadekoBot,miraai/NadekoBot,Grinjr/NadekoBot,Tak... | src/NadekoBot/Services/Database/Repositories/Impl/QuoteRepository.cs | src/NadekoBot/Services/Database/Repositories/Impl/QuoteRepository.cs | using NadekoBot.Services.Database.Models;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace NadekoBot.Services.Database.Repositories.Impl
{
public class QuoteRepository : Repository<Quote>, IQuoteRepository
{
public QuoteR... | using NadekoBot.Services.Database.Models;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
namespace NadekoBot.Services.Database.Repositories.Impl
{
public class QuoteRepository : Repository<Quote>, IQuoteRepository
{
public QuoteR... | mit | C# |
f4e2bbf69519b38b9c3748ef65461c90c7739946 | Allow to define host address in client | lemked/simplesecurewcfapp | Client/Program.cs | Client/Program.cs | using System;
using System.ServiceModel;
using Service;
namespace Client
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter server address: ");
var hostAddress = Console.ReadLine();
var address = new EndpointAddress(new Uri(string.For... | using System;
using System.ServiceModel;
using Service;
namespace Client
{
class Program
{
static void Main(string[] args)
{
var address = new EndpointAddress(new Uri("http://localhost:9000/MyService"));
var binding = new BasicHttpBinding();
var factory = n... | apache-2.0 | C# |
1414669ebb0d8cb75cce9677d0947ed730b291b5 | Add PrepaymentID to bank transaction | MatthewSteeples/XeroAPI.Net | source/XeroApi/Model/BankTransaction.cs | source/XeroApi/Model/BankTransaction.cs | using System;
namespace XeroApi.Model
{
public class BankTransaction : EndpointModelBase
{
[ItemId]
public Guid? BankTransactionID { get; set; }
public Account BankAccount { get; set; }
public string Type { get; set; }
public string Reference { get; set; ... | using System;
namespace XeroApi.Model
{
public class BankTransaction : EndpointModelBase
{
[ItemId]
public Guid? BankTransactionID { get; set; }
public Account BankAccount { get; set; }
public string Type { get; set; }
public string Reference { get; set; ... | mit | C# |
3cfbf91fdbdf2abb43285658f39f7fbb7a551982 | Bump version | khalidabuhakmeh/NElasticsearch,synhershko/NElasticsearch | NElasticsearch/Properties/AssemblyInfo.cs | NElasticsearch/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("NE... | 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("NE... | apache-2.0 | C# |
98042eb7d4aaec3e53530b6ffbc2bff2b014ea71 | add the default fadeout-while-scaling-up to clicked objects | ppy/osu,smoogipoo/osu,UselessToucan/osu,EVAST9919/osu,peppy/osu,ZLima12/osu,NeoAdonis/osu,smoogipoo/osu,NeoAdonis/osu,johnneijzen/osu,johnneijzen/osu,EVAST9919/osu,peppy/osu-new,2yangk23/osu,peppy/osu,smoogipooo/osu,2yangk23/osu,smoogipoo/osu,ppy/osu,ZLima12/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,ppy/osu,Useless... | osu.Game.Rulesets.Osu/Mods/OsuModDeflate.cs | osu.Game.Rulesets.Osu/Mods/OsuModDeflate.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 osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.Osu.Objects.Draw... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.Osu.Objects.Draw... | mit | C# |
1f0297a0ae0bdb086f76c0e90625f7d3fd53c1a8 | Update version | CodefoundryDE/LegacyWrapper,CodefoundryDE/LegacyWrapper | GlobalAssemblyInfo.cs | GlobalAssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: Asse... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: Asse... | mit | C# |
931c8c36a54148689a70bb14b59a57f8983b4ffc | Update assembly version. | MatthewKing/DeviceId | src/DeviceId/Properties/AssemblyInfo.cs | src/DeviceId/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("DeviceId")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DeviceId")]
[assembly: AssemblyCopyright("Copyright © Matthew King 2015-2016")]
[as... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("DeviceId")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DeviceId")]
[assembly: AssemblyCopyright("Copyright © Matthew King 2015-2016")]
[as... | mit | C# |
410f304e142287f50f1f9ca9d31da639e54cd747 | Document color scheme button | lambdacasserole/shaver | Shaver/ColorSchemeButton.cs | Shaver/ColorSchemeButton.cs | using System.Drawing;
using System.Windows.Forms;
namespace Shaver
{
/// <summary>
/// A color scheme keyboard button control.
/// </summary>
class ColorSchemeButton : KeyboardButton
{
private int iconSize;
/// <summary>
/// Gets or sets the icon size on the button.
... | using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace Shaver
{
/// <summary>
/// A color scheme keyboard button control.
/// </summary>
class ColorSchemeButton : KeyboardButton
{
private int iconSize;
/// <summary>
/// Gets or sets t... | mit | C# |
5a42df47cf2154f437673faf01d7195bf3b6166f | Write as separate words | jeremycook/PickupMailViewer,jeremycook/PickupMailViewer | PickupMailViewer/Controllers/HomeController.cs | PickupMailViewer/Controllers/HomeController.cs | using PickupMailViewer.Helpers;
using PickupMailViewer.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.UI;
namespace PickupMailViewer.Controllers
{
public class HomeController : Controller
{
public Act... | using PickupMailViewer.Helpers;
using PickupMailViewer.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.UI;
namespace PickupMailViewer.Controllers
{
public class HomeController : Controller
{
public Act... | mit | C# |
14666322e1f82c74ea0b4bec69b07092a014b600 | Check for null values. | bigfont/orchard-cms-modules-and-themes,bigfont/orchard-cms-modules-and-themes,bigfont/orchard-cms-modules-and-themes,bigfont/orchard-cms-modules-and-themes,bigfont/orchard-cms-modules-and-themes | Orchard.Source.1.8.1/src/Orchard.Web/Themes/LccNetwork.Bootstrap/Views/ProjectionWidgetWorkItemCarousel.cshtml | Orchard.Source.1.8.1/src/Orchard.Web/Themes/LccNetwork.Bootstrap/Views/ProjectionWidgetWorkItemCarousel.cshtml | @using Orchard.ContentManagement;
@using LccNetwork.Bootstrap.Extensions;
@{
var contentItems = Model.ContentItems;
var carouselUniqueId = Guid.NewGuid().ToString();
var items = new List<dynamic>();
var processedWorkAreas = new List<string>();
foreach (var contentItem in contentItems)
{
... | @using Orchard.ContentManagement;
@using LccNetwork.Bootstrap.Extensions;
@{
var contentItems = Model.ContentItems;
var carouselUniqueId = Guid.NewGuid().ToString();
var items = new List<dynamic>();
var processedWorkAreas = new List<string>();
foreach (var contentItem in contentItems)
{
... | bsd-3-clause | C# |
21d99d8d53213b2f068dbbf038b45ff6da22fa52 | correct regex to remove spaces | OlegKleyman/AlphaDev,OlegKleyman/AlphaDev,OlegKleyman/AlphaDev | tests/integration/AlphaDev.Web.Tests.Integration/SeleniumNotifier.cs | tests/integration/AlphaDev.Web.Tests.Integration/SeleniumNotifier.cs | using System.IO;
using System.Text.RegularExpressions;
using LightBDD.Core.Metadata;
using LightBDD.Core.Notification;
using LightBDD.Core.Results;
using OpenQA.Selenium;
namespace AlphaDev.Web.Tests.Integration
{
public class SeleniumNotifier : IScenarioProgressNotifier
{
private readonly ITakesScree... | using System.IO;
using System.Text.RegularExpressions;
using LightBDD.Core.Metadata;
using LightBDD.Core.Notification;
using LightBDD.Core.Results;
using OpenQA.Selenium;
namespace AlphaDev.Web.Tests.Integration
{
public class SeleniumNotifier : IScenarioProgressNotifier
{
private readonly ITakesScree... | unlicense | C# |
31503861ac2ba7102bafdbb29c0bf656ff647918 | Remove hardcoded `/umbraco/` reference | imulus/census,imulus/census | Src/Census/Configuration.cs | Src/Census/Configuration.cs | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Census.Core.Interfaces;
using Census.UmbracoObjectRelations;
using umbraco;
namespace Census.Core
{
public static class Configuration
{
public static List... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Census.Core.Interfaces;
using Census.UmbracoObjectRelations;
namespace Census.Core
{
public static class Configuration
{
public static List<IRelation> Rel... | mit | C# |
d9a7ba71ef03e7f6c93ae9351b3ba608aebf1b54 | Update Vector2.cs | elacy/PopulationSimulator | PopSim.Logic/Vector2.cs | PopSim.Logic/Vector2.cs | using System;
namespace PopSim.Logic
{
public class Vector2
{
public Vector2(double x, double y)
{
X = x;
Y = y;
IsZero = Math.Abs(x) < double.Epsilon && Math.Abs(y) < double.Epsilon;
}
public bool IsZero { get; private set; }
publi... | using System;
namespace PopSim.Logic
{
public class Vector2
{
public Vector2(double x, double y)
{
X = x;
Y = y;
IsZero = Math.Abs(x) < double.Epsilon && Math.Abs(y) < double.Epsilon;
}
public bool IsZero { get; private set; }
publi... | mit | C# |
3fa615807254e08fec27dc8b8400a9791ac4157c | Change starting point. | EusthEnoptEron/Sketchball | Sketchball/Program.cs | Sketchball/Program.cs | using Sketchball.Controls;
using Sketchball.Elements;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Sketchball
{
static class Program
{
/// <summary>
/// The main entry point for the ... | using Sketchball.Controls;
using Sketchball.Elements;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Sketchball
{
static class Program
{
/// <summary>
/// The main entry point for the ... | mit | C# |
a9670d4b354de301947bd6237f1443e7ecc2fe32 | Add delegate extensions | insthync/LiteNetLibManager,insthync/LiteNetLibManager | Scripts/LiteNetLibDelegates.cs | Scripts/LiteNetLibDelegates.cs | using Cysharp.Threading.Tasks;
using LiteNetLib.Utils;
namespace LiteNetLibManager
{
public delegate void MessageHandlerDelegate(MessageHandlerData messageHandler);
public delegate void RequestProceedResultDelegate<TResponse>(AckResponseCode responseCode, TResponse response, SerializerDelegate responseExtraSe... | using Cysharp.Threading.Tasks;
using LiteNetLib.Utils;
namespace LiteNetLibManager
{
public delegate void MessageHandlerDelegate(MessageHandlerData messageHandler);
public delegate void RequestProceedResultDelegate<TResponse>(AckResponseCode responseCode, TResponse response, SerializerDelegate responseExtraSe... | mit | C# |
35c250c74aef99f5d5d8f656caa3f307f39adbb2 | Make it create game log. | AIWolfSharp/AIWolf_NET | ServerStarter/ServerStarter.cs | ServerStarter/ServerStarter.cs | //
// ServerStarter.cs
//
// Copyright (c) 2016 Takashi OTSUKI
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
using AIWolf.Lib;
using System;
namespace AIWolf.Server
{
class ServerStarter
{
public static void Main(string[] args)
{
... | //
// ServerStarter.cs
//
// Copyright (c) 2016 Takashi OTSUKI
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
using AIWolf.Lib;
using System;
using System.Threading.Tasks;
namespace AIWolf.Server
{
class ServerStarter
{
public static void M... | mit | C# |
bb8c2080ec732df11f9a8cdc2d3b700afd9a1269 | Update OctokitEx.cs | Particular/SyncOMatic | src/GitHubSync/OctokitEx.cs | src/GitHubSync/OctokitEx.cs | using System.Collections.Generic;
using System.Threading.Tasks;
using Octokit;
public static class OctokitEx
{
public static async Task<List<string>> GetRecursive(Credentials credentials, string sourceOwner, string sourceRepository, string path = null)
{
var items = new List<string>();
await G... | using System.Collections.Generic;
using System.Threading.Tasks;
using Octokit;
public static class OctokitEx
{
public static async Task<List<string>> GetRecursive(Credentials credentials, string sourceOwner, string sourceRepository, string path = null)
{
var items = new List<string>();
await G... | mit | C# |
0dc422c2d9206830c32fe9ca6a32f7518fe63757 | Fix type in Range attribute: change from double to int | dariusz-wozniak/TddCourse | TddCourse.Tests.Unit/Part08_ParameterizedTests/Parameterized_Range.cs | TddCourse.Tests.Unit/Part08_ParameterizedTests/Parameterized_Range.cs | using NUnit.Framework;
using TddCourse.CalculatorExample;
namespace TddCourse.Tests.Unit.Part08_ParameterizedTests
{
public class Parameterized_Range
{
[Test]
public void Divide_DividendIsZero_ReturnsQuotientEqualToZero(
[Range(@from: 1, to: 5, step: 1)] int divisor)
{
... | using NUnit.Framework;
using TddCourse.CalculatorExample;
namespace TddCourse.Tests.Unit.Part08_ParameterizedTests
{
public class Parameterized_Range
{
[Test]
public void Divide_DividendIsZero_ReturnsQuotientEqualToZero(
[Range(@from: 1, to: 5, step: 1)] double divisor)
{
... | mit | C# |
89c6afc757900b044152902257149be6f025a1bd | Update AppSettings.cs | Microsoft/HealthClinic.biz,Microsoft/HealthClinic.biz,Microsoft/HealthClinic.biz,Microsoft/HealthClinic.biz,Microsoft/HealthClinic.biz,Microsoft/HealthClinic.biz,Microsoft/HealthClinic.biz | src/MyHealth.Client.Core/AppSettings.cs | src/MyHealth.Client.Core/AppSettings.cs | using System;
namespace MyHealth.Client.Core
{
public static class AppSettings
{
public static string ServerlUrl = "http://YOUR_WEB.azurewebsites.net/";
public static string MobileAPIUrl = "https://YOUR_WEB_MOBILE.azurewebsites.net";
public static int DefaultPatientId = __YOUR_PATIENT_ID__;... | using System;
namespace MyHealth.Client.Core
{
public static class AppSettings
{
public static string ServerlUrl = "http://YOUR_WEB.azurewebsites.net/";
public static string MobileAPIUrl = "https://YOUR_WEB_MOBILE.azurewebsites.net";
public static int DefaultPatientId = YOUR_PATIENT_ID;
... | mit | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.