text:
package com.github.ljtfreitas.restify.http.client.request.async.interceptor.log;

import java.io.ByteArrayOutputStream;
import java.io.OutputStream;

import com.github.ljtfreitas.restify.http.client.message.request.BufferedHttpRequestBody;
import com.github.ljtfreitas.restify.http.client.message.request.HttpRequestBody;
import com.github.ljtfreitas.restify.http.client.message.request.TeeHttpRequestBody;

class AsyncLoggableHttpRequestBody implements BufferedHttpRequestBody {

	private final ByteArrayOutputStream output;
	private final HttpRequestBody delegate;

	AsyncLoggableHttpRequestBody(HttpRequestBody delegate) {
		this.output = new ByteArrayOutputStream();
		this.delegate = new TeeHttpRequestBody(delegate, this.output);
	}

	@Override
	public OutputStream output() {
		return delegate.output();
	}

	@Override
	public byte[] asBytes() {
		return output.toByteArray();
	}
}


text:
namespace Wires
{
	using System;
	using System.Collections.Generic;
	using System.ComponentModel;
	using System.Linq;
	using System.Linq.Expressions;
	using System.Threading.Tasks;
	using System.Windows.Input;
	using Transmute;

	/// <summary>
	/// A binder allows the creation of one or more bindings from a source to a target.
	/// </summary>
	public class Binder<TSource, TTarget> : Binding<TSource,TTarget>, IBinding
		where TSource : class
		where TTarget : class
	{
		public Binder(TSource source, TTarget target) : base(source,target)
		{
		}

		public override bool IsAlive => !this.IsDisposed && this.bindings.Any(b => b.IsAlive);

		private List<IBinding> bindings = new List<IBinding>();

		private Binder<TSource, TTarget> Add(IBinding binding)
		{
			this.bindings.Add(binding);
			return this;
		}

		public Binder<TSource, TNewTarget> As<TNewTarget>()
			where TNewTarget : class
		{
			var cast = new Binder<TSource, TNewTarget>(Source, (TNewTarget)(object)Target);
			this.Add(cast);
			return cast;
		}

		public Binder<TTarget, TSource> Invert()
		{
			var cast = new Binder<TTarget, TSource>(Target,Source);
			this.Add(cast);
			return cast;
		}

		#region OneTime

		private Binder<TSource, TTarget> OneTime<TSourceProperty, TTargetProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Expression<Func<TTarget, TTargetProperty>> targetProperty, IConverter<TSourceProperty, TTargetProperty> converter = null)
		{
			converter = AssertConverter(converter ?? Transmuter.Default.GetConverter<TSourceProperty, TTargetProperty>());

			var sourceAccessors = sourceProperty.BuildAccessors();
			var targetAccessors = targetProperty.BuildAccessors();

			return this.OneTime(sourceAccessors.Item1, targetAccessors.Item1, targetAccessors.Item2, converter);
		}

		private Binder<TSource, TTarget> OneTime<TSourceProperty, TTargetProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Func<TTarget, TTargetProperty> targetGetter, Action<TTarget, TTargetProperty> targetSetter, IConverter<TSourceProperty, TTargetProperty> converter = null)
		{
			converter = AssertConverter(converter ?? Transmuter.Default.GetConverter<TSourceProperty, TTargetProperty>());

			var sourceAccessors = sourceProperty.BuildAccessors();

			return this.OneTime(sourceAccessors.Item1, targetGetter, targetSetter, converter);
		}

		private Binder<TSource, TTarget> OneTime<TSourceProperty, TTargetProperty>(Func<TSource, TSourceProperty> sourceGetter , Func<TTarget, TTargetProperty> targetGetter, Action<TTarget, TTargetProperty> targetSetter, IConverter<TSourceProperty, TTargetProperty> converter = null)
		{
			converter = converter ?? Transmuter.Default.GetConverter<TSourceProperty, TTargetProperty>();

			return Add(new OneTimeBinding<TSource, TTarget, TSourceProperty, TTargetProperty>(Source, sourceGetter, Target, targetGetter, targetSetter, converter));
		}

		#endregion

		#region Async bindings

		private Binder<TSource, TTarget> OneTimeAsync<TSourceProperty, TTargetProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Expression<Func<TTarget, TTargetProperty>> targetProperty, IConverter<TSourceProperty, Task<TTargetProperty>> converter, TTargetProperty loading = default(TTargetProperty))
		{
			var sourceAccessors = sourceProperty.BuildAccessors();
			var targetAccessors = targetProperty.BuildAccessors();

			return Add(new AsyncOneTimeBinding<TSource, TTarget, TSourceProperty, TTargetProperty>(Source, sourceAccessors.Item1, Target, targetAccessors.Item1, targetAccessors.Item2, converter, loading));
		}

		private Binder<TSource, TTarget> OneTimeAsync<TSourceProperty, TTargetProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Func<TTarget, TTargetProperty> targetGetter, Action<TTarget, TTargetProperty> targetSetter, IConverter<TSourceProperty, Task<TTargetProperty>> converter, TTargetProperty loading = default(TTargetProperty))
		{
			var sourceAccessors = sourceProperty.BuildAccessors();

			return Add(new AsyncOneTimeBinding<TSource, TTarget, TSourceProperty, TTargetProperty>(Source, sourceAccessors.Item1, Target, targetGetter, targetSetter, converter, loading));
		}

		public Binder<TSource, TTarget> PropertyAsync<TSourceProperty, TTargetProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Func<TTarget, TTargetProperty> targetGetter, Action<TTarget, TTargetProperty> targetSetter, IConverter<TSourceProperty, Task<TTargetProperty>> converter, TTargetProperty loading = default(TTargetProperty))
		{
			if (Source is INotifyPropertyChanged)
			{
				var sourceAccessors = sourceProperty.BuildAccessors();
				return Add(new AsyncOneWayBinding<TSource, TTarget, TSourceProperty, TTargetProperty, PropertyChangedEventArgs>(Source, sourceAccessors.Item1, sourceAccessors.Item2, nameof(INotifyPropertyChanged.PropertyChanged), Target, targetGetter, targetSetter, converter, loading, (PropertyChangedEventArgs arg) => (arg.PropertyName == sourceAccessors.Item3)));
			}

			return this.OneTimeAsync(sourceProperty, targetGetter, targetSetter, converter, loading);
		}

		public Binder<TSource, TTarget> PropertyAsync<TSourceProperty, TTargetProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Expression<Func<TTarget, TTargetProperty>> targetProperty, IConverter<TSourceProperty, Task<TTargetProperty>> converter, TTargetProperty loading = default(TTargetProperty))
		{
			var targetAccessors = targetProperty.BuildAccessors();
			return this.PropertyAsync(sourceProperty, targetAccessors.Item1, targetAccessors.Item2, converter, loading);
		}

		#endregion

		public Binder<TSource, TTarget> Property<TSourceProperty, TTargetProperty>(Func<TSource, TSourceProperty> sourceGetter, Action<TSource, TSourceProperty> sourceSetter , Func<TTarget, TTargetProperty> targetGetter, Action<TTarget, TTargetProperty> targetSetter, string propertyName, IConverter<TSourceProperty, TTargetProperty> converter = null)
		{
			converter = AssertConverter(converter ?? Transmuter.Default.GetConverter<TSourceProperty, TTargetProperty>());

			if (Source is INotifyPropertyChanged)
			{
				return Add(new OneWayBinding<TSource, TTarget, TSourceProperty, TTargetProperty, PropertyChangedEventArgs>(Source, sourceGetter, sourceSetter, nameof(INotifyPropertyChanged.PropertyChanged), Target, targetGetter, targetSetter, converter, (PropertyChangedEventArgs arg) => (arg.PropertyName == propertyName)));
			}

			return this.OneTime(sourceGetter, targetGetter, targetSetter, converter);
		}

		public Binder<TSource, TTarget> Property<TSourceProperty, TTargetProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Func<TTarget, TTargetProperty> targetGetter, Action<TTarget, TTargetProperty> targetSetter, IConverter<TSourceProperty, TTargetProperty> converter = null)
		{
			var sourceAccessors = sourceProperty.BuildAccessors();
			return this.Property(sourceAccessors.Item1, sourceAccessors.Item2, targetGetter, targetSetter, sourceAccessors.Item3, converter);
		}

		public Binder<TSource, TTarget> Property<TSourceProperty, TTargetProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Expression<Func<TTarget, TTargetProperty>> targetProperty, IConverter<TSourceProperty, TTargetProperty> converter = null)
		{
			var targetAccessors = targetProperty.BuildAccessors();
			return this.Property(sourceProperty , targetAccessors.Item1, targetAccessors.Item2, converter);
		}

		public Binder<TSource, TTarget> Property<TSourceProperty, TTargetProperty, TTargetChangedEventArgs>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Func<TTarget, TTargetProperty> targetGetter, Action<TTarget, TTargetProperty> targetSetter, string targetChangedEvent, ITwoWayConverter<TSourceProperty, TTargetProperty> converter = null, string targetPropertyName = null)
			where TTargetChangedEventArgs : EventArgs
		{
			var forwardconverter = AssertConverter(converter?.ToTarget ?? Transmuter.Default.GetConverter<TSourceProperty, TTargetProperty>());
			var backConverter = AssertConverter(converter?.ToSource ?? Transmuter.Default.GetConverter<TTargetProperty, TSourceProperty>());

			var r = this.Property(sourceProperty, targetGetter, targetSetter, forwardconverter);

			var sourceAccessors = sourceProperty.BuildAccessors();
			this.Invert().Add(new OneWayBinding<TTarget, TSource, TTargetProperty, TSourceProperty, TTargetChangedEventArgs>(Target, targetGetter, targetSetter, targetChangedEvent, Source, sourceAccessors.Item1, sourceAccessors.Item2, backConverter));
			return r;
		}

		public Binder<TSource, TTarget> Property<TSourceProperty, TTargetProperty, TTargetChangedEventArgs>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Expression<Func<TTarget, TTargetProperty>> targetProperty, string targetChangedEvent, ITwoWayConverter<TSourceProperty, TTargetProperty> converter = null)
			where TTargetChangedEventArgs : EventArgs
		{
			var targetAccessors = targetProperty.BuildAccessors();
			return this.Property<TSourceProperty, TTargetProperty, TTargetChangedEventArgs>(sourceProperty, targetAccessors.Item1, targetAccessors.Item2, targetChangedEvent, converter, targetAccessors.Item3);
		}

		#region Commands

		public Binder<TSource, TTarget> Command<TTargetEventArgs>(Expression<Func<TSource, ICommand>> sourceProperty, string targetEvent, Action<TTarget, bool> onExecuteChanged)
			where TTargetEventArgs : EventArgs
		{
			string sourceEvent = null;

			if (this.Source is INotifyPropertyChanged)
			{
				sourceEvent = nameof(INotifyPropertyChanged.PropertyChanged);
			}

			var sourceAccessors = sourceProperty.BuildAccessors();
			return this.Add(new CommandBinding<TSource,TTarget, PropertyChangedEventArgs, TTargetEventArgs>(this.Source, sourceAccessors.Item1, sourceEvent, (PropertyChangedEventArgs arg) => (arg.PropertyName == sourceAccessors.Item3), this.Target, targetEvent, onExecuteChanged));
		}

		#endregion

		private IConverter<TSourceProperty, TTargetProperty> AssertConverter<TSourceProperty,TTargetProperty>(IConverter<TSourceProperty,TTargetProperty> converter)
		{
			if (converter == null)
				throw new MissingMemberException($"No default converter found for conversion : {typeof(TSourceProperty)} -> {typeof(TTargetProperty)}");

			return converter;
		}

		#region Observers

		public Binder<TSource, TTarget> ObserveProperty<TSourceProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Action<TSource, TTarget, TSourceProperty> action)
		{
			return this.ObserveProperty<TSourceProperty, TSourceProperty>(sourceProperty, action);
		}

		/// <summary>
		/// Observes the property change and executes the given callback each time it changes. The action is also executed at initialization.
		/// </summary>
		/// <returns>The property.</returns>
		/// <param name="sourceProperty">Source property.</param>
		/// <param name="action">Action.</param>
		/// <typeparam name="TSourceProperty">The 1st type parameter.</typeparam>
		public Binder<TSource, TTarget> ObserveProperty<TSourceProperty, TTargetProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Action<TSource, TTarget, TTargetProperty> action, IConverter<TSourceProperty, TTargetProperty> converter = null)
		{
			converter = AssertConverter(converter ?? Transmuter.Default.GetConverter<TSourceProperty, TTargetProperty>());

			var sourceAccessors = sourceProperty.BuildAccessors();
			Action<TSource, TTarget> onEvent = (s, t) => action(s, t, converter.Convert(sourceAccessors.Item1(s)));

			// Initialization
			onEvent(this.Source, this.Target);

			// Changes
			if (this.Source is INotifyPropertyChanged)
			{
				this.Add(new RelayEventBinding<TSource, TTarget, PropertyChangedEventArgs>(this.Source, this.Target, nameof(INotifyPropertyChanged.PropertyChanged), onEvent, (a) => (a.PropertyName == sourceAccessors.Item3)));
			}

			return this;
		}

		#endregion

		#region Binding to sub properties

		public Binder<TSource, TTarget> SubBind<TSourceProperty>(Expression<Func<TSource, TSourceProperty>> sourceProperty, Action<Binder<TSourceProperty, TTarget>> subbind)
			where TSourceProperty : class
		{
			return this.ObserveProperty(sourceProperty, (s, t, p) => subbind(p.Rebind(t)));
		}

		#endregion

		public Binder<TSource, TNewTarget> Bind<TNewTarget>(TNewTarget target)
			where TNewTarget : class
		{
			return this.Source.Bind(target);
		}

		public Binder<TSource, TNewTarget> Rebind<TNewTarget>(TNewTarget target)
			where TNewTarget : class
		{
			return this.Source.Rebind(target);
		}

		public override void Dispose()
		{
			if (!this.IsDisposed)
			{
				foreach (var binding in this.bindings)
				{
					binding.Dispose();
				}

				base.Dispose();
			}
		}
	}
}

redpajama_set_name: RedPajamaGithub


text:
<?php

class Google_Service_CloudIdentity_GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse extends Google_Collection
{
  protected $collection_key = 'deviceUsers';
  protected $deviceUsersType = 'Google_Service_CloudIdentity_GoogleAppsCloudidentityDevicesV1DeviceUser';
  protected $deviceUsersDataType = 'array';
  public $nextPageToken;

  /**
   * @param Google_Service_CloudIdentity_GoogleAppsCloudidentityDevicesV1DeviceUser
   */
  public function setDeviceUsers($deviceUsers)
  {
    $this->deviceUsers = $deviceUsers;
  }
  /**
   * @return Google_Service_CloudIdentity_GoogleAppsCloudidentityDevicesV1DeviceUser
   */
  public function getDeviceUsers()
  {
    return $this->deviceUsers;
  }
  public function setNextPageToken($nextPageToken)
  {
    $this->nextPageToken = $nextPageToken;
  }
  public function getNextPageToken()
  {
    return $this->nextPageToken;
  }
}


text:
<?php
/* @var $this TaskController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Tasks',
);

$this->menu=array(
	array('label'=>'Create Task', 'url'=>array('create')),
	array('label'=>'Manage Task', 'url'=>array('admin')),
);
?>

Tasks

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
)); ?>


text:
**[techblog.lankes.org](https://techblog.lankes.org)** is based on a modified version of **[http://mmistakes.github.io/minimal-mistakes](http://mmistakes.github.io/minimal-mistakes)**, which is a two column responsive Jekyll theme perfect for powering GitHub hosted blog.

## Minimal Mistakes is all about:

* Responsive templates. Looking good on mobile, tablet, and desktop.
* Gracefully degrading in older browsers. Compatible with Internet Explorer 8+ and all modern browsers.
* Minimal embellishments -- content first.
* Optional large feature images for posts and pages.
* Simple and clear permalink structure.
* [Custom 404 page](http://mmistakes.github.io/minimal-mistakes/404.html) to get you started.
* Support for Disqus Comments

See a [live version of Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes/) hosted on GitHub.

## Getting Started

Minimal Mistakes takes advantage of Sass and data files to make customizing easier. These features require Jekyll 2.x and will not work with older versions of Jekyll.

To learn how to install and use this theme check out the [Setup Guide](http://mmistakes.github.io/minimal-mistakes/theme-setup/) for more information.


text:
package org;

/**
 *
 * @author Ponec
 */
public interface UIComponent<T> {

    /** Get component value */
    public T getValue();

    /** Get component value */
    public void setValue(T value);

    /** Set HTML stype */
    public void setStyle(String attr, String value);

    /** Is the input value valid? */
    public boolean isValid();

}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN">

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="includes/main.css" type="text/css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>CloudStack API Reference</title>

Apache CloudStack 4.0.0-incubating API Documentation

Using the CloudStack API

For information about how the APIs work, and tips on how to use them, see the
                                   Developer's Guide.

Root Admin API

Commands available through the developer API URL and the integration API URL.

(A) implies that the command is asynchronous.

(*) implies element has a child.

Network

createNetworkOffering

updateNetworkOffering

deleteNetworkOffering

listNetworkOfferings

createNetwork

deleteNetwork (A)

listNetworks

restartNetwork (A)

updateNetwork (A)

createPhysicalNetwork (A)

deletePhysicalNetwork (A)

listPhysicalNetworks

updatePhysicalNetwork (A)

listSupportedNetworkServices

addNetworkServiceProvider (A)

deleteNetworkServiceProvider (A)

listNetworkServiceProviders

updateNetworkServiceProvider (A)

createStorageNetworkIpRange (A)

deleteStorageNetworkIpRange (A)

listStorageNetworkIpRange

updateStorageNetworkIpRange (A)

addNetworkDevice

listNetworkDevice

deleteNetworkDevice

createNetworkACL (A)

deleteNetworkACL (A)

listNetworkACLs

listNiciraNvpDeviceNetworks

VPC

createVPC (A)

listVPCs

deleteVPC (A)

updateVPC (A)

restartVPC (A)

createVPCOffering (A)

updateVPCOffering (A)

deleteVPCOffering (A)

listVPCOfferings

createPrivateGateway (A)

listPrivateGateways

deletePrivateGateway (A)

createStaticRoute (A)

deleteStaticRoute (A)

listStaticRoutes

Virtual Machine

deployVirtualMachine (A)

destroyVirtualMachine (A)

rebootVirtualMachine (A)

startVirtualMachine (A)

stopVirtualMachine (A)

resetPasswordForVirtualMachine (A)

changeServiceForVirtualMachine

updateVirtualMachine

recoverVirtualMachine

listVirtualMachines

getVMPassword

migrateVirtualMachine (A)

assignVirtualMachine

restoreVirtualMachine (A)

VPN

createRemoteAccessVpn (A)

deleteRemoteAccessVpn (A)

listRemoteAccessVpns

createVpnCustomerGateway (A)

createVpnGateway (A)

createVpnConnection (A)

deleteVpnCustomerGateway (A)

deleteVpnGateway (A)

deleteVpnConnection (A)

updateVpnCustomerGateway (A)

resetVpnConnection (A)

listVpnCustomerGateways

listVpnGateways

listVpnConnections

Usage

addTrafficType (A)

deleteTrafficType (A)

listTrafficTypes

updateTrafficType (A)

listTrafficTypeImplementors

generateUsageRecords

listUsageRecords

listUsageTypes

addTrafficMonitor

deleteTrafficMonitor

listTrafficMonitors

User

createUser

deleteUser

updateUser

listUsers

disableUser (A)

enableUser

getUser

addVpnUser (A)

removeVpnUser (A)

listVpnUsers

Load Balancer

createLoadBalancerRule (A)

deleteLoadBalancerRule (A)

removeFromLoadBalancerRule (A)

assignToLoadBalancerRule (A)

createLBStickinessPolicy (A)

deleteLBStickinessPolicy (A)

listLoadBalancerRules

listLBStickinessPolicies

listLoadBalancerRuleInstances

updateLoadBalancerRule (A)

Template

createTemplate (A)

updateTemplate

copyTemplate (A)

deleteTemplate (A)

listTemplates

updateTemplatePermissions

listTemplatePermissions

extractTemplate (A)

prepareTemplate

Router

startRouter (A)

rebootRouter (A)

stopRouter (A)

destroyRouter (A)

changeServiceForRouter

listRouters

createVirtualRouterElement (A)

configureVirtualRouterElement (A)

listVirtualRouterElements

Project

createProject (A)

deleteProject (A)

updateProject (A)

activateProject (A)

suspendProject (A)

listProjects

listProjectInvitations

updateProjectInvitation (A)

deleteProjectInvitation (A)

ISO

attachIso (A)

detachIso (A)

listIsos

updateIso

deleteIso (A)

copyIso (A)

updateIsoPermissions

listIsoPermissions

extractIso (A)

Host

addHost

reconnectHost (A)

updateHost

deleteHost

prepareHostForMaintenance (A)

cancelHostMaintenance (A)

listHosts

addSecondaryStorage

updateHostPassword

Account

createAccount

deleteAccount (A)

updateAccount

disableAccount (A)

enableAccount

listAccounts

addAccountToProject (A)

deleteAccountFromProject (A)

listProjectAccounts

Volume

attachVolume (A)

uploadVolume (A)

detachVolume (A)

createVolume (A)

deleteVolume

listVolumes

extractVolume (A)

migrateVolume (A)

System VM

startSystemVm (A)

rebootSystemVm (A)

stopSystemVm (A)

destroySystemVm (A)

listSystemVms

migrateSystemVm (A)

changeServiceForSystemVm

Security Group

createSecurityGroup

deleteSecurityGroup

authorizeSecurityGroupIngress (A)

revokeSecurityGroupIngress (A)

authorizeSecurityGroupEgress (A)

revokeSecurityGroupEgress (A)

listSecurityGroups

Storage Pool

listStoragePools

createStoragePool

updateStoragePool

deleteStoragePool

enableStorageMaintenance (A)

cancelStorageMaintenance (A)

Snapshot

createSnapshot (A)

listSnapshots

deleteSnapshot (A)

createSnapshotPolicy

deleteSnapshotPolicies

listSnapshotPolicies

Firewall

listPortForwardingRules

createPortForwardingRule (A)

deletePortForwardingRule (A)

createFirewallRule (A)

deleteFirewallRule (A)

listFirewallRules

Zone

markDefaultZoneForAccount (A)

createZone

updateZone

deleteZone

listZones

NAT

enableStaticNat

createIpForwardingRule (A)

deleteIpForwardingRule (A)

listIpForwardingRules

disableStaticNat (A)

Domain

createDomain

updateDomain

deleteDomain (A)

listDomains

listDomainChildren

Configuration

updateConfiguration

listConfigurations

listCapabilities

updateHypervisorCapabilities

listHypervisorCapabilities

VM Group

createInstanceGroup

deleteInstanceGroup

updateInstanceGroup

listInstanceGroups

Service Offering

createServiceOffering

deleteServiceOffering

updateServiceOffering

listServiceOfferings

Registration

registerTemplate

registerIso

registerUserKeys

registerSSHKeyPair

Pod

createPod

updatePod

deletePod

listPods

Disk Offering

createDiskOffering

updateDiskOffering

deleteDiskOffering

listDiskOfferings

Cluster

addCluster

deleteCluster

updateCluster

listClusters

VLAN

createVlanIpRange

deleteVlanIpRange

listVlanIpRanges

SSH

createSSHKeyPair

deleteSSHKeyPair

listSSHKeyPairs

Resource tags

createTags (A)

deleteTags (A)

listTags

Nicira NVP

addNiciraNvpDevice

deleteNiciraNvpDevice

listNiciraNvpDevices

Limit

updateResourceLimit

updateResourceCount

listResourceLimits

Address

associateIpAddress (A)

disassociateIpAddress (A)

listPublicIpAddresses

Swift

addSwift

listSwifts

LDAP

ldapConfig

ldapRemove

Guest OS

listOsTypes

listOsCategories

Event

listEvents

listEventTypes

Async job

queryAsyncJobResult

listAsyncJobs

System Capacity

listCapacity

Logout

logout

Login

login

Hypervisor

listHypervisors

Cloud Identifier

getCloudIdentifier

Certificate

uploadCustomCertificate (A)

Alert

listAlerts

Copyright © 2012 The Apache Software Foundation, Licensed under the
                   Apache License, Version 2.0.

                Apache and the Apache feather logo are trademarks of The Apache Software Foundation.


text:
- [Commit ac367e2](https://github.com/googleapis/google-cloud-dotnet/commit/ac367e2): feat: Regenerate all APIs to support self-signed JWTs

## Version 1.0.0-beta04, released 2021-05-05

- [Commit e02c6fd](https://github.com/googleapis/google-cloud-dotnet/commit/e02c6fd):
  - feat: added ApplySoftwareUpdate API
  - docs: various clarifications, new documentation for ApplySoftwareUpdate
  - chore: update proto annotations

## Version 1.0.0-beta03, released 2020-11-18

- [Commit 0ca05f5](https://github.com/googleapis/google-cloud-dotnet/commit/0ca05f5): chore: Regenerate all APIs using protoc 3.13 and Grpc.Tools 2.31
- [Commit 6bde7a3](https://github.com/googleapis/google-cloud-dotnet/commit/6bde7a3): docs: Regenerate all APIs with service comments in client documentation
- [Commit f83bdf1](https://github.com/googleapis/google-cloud-dotnet/commit/f83bdf1): fix: Apply timeouts to RPCs without retry
- [Commit c3de8dc](https://github.com/googleapis/google-cloud-dotnet/commit/c3de8dc): docs: Change relative URLs to absolute URLs to fix broken links.
- [Commit 947a573](https://github.com/googleapis/google-cloud-dotnet/commit/947a573): docs: Regenerate all clients with more explicit documentation

## Version 1.0.0-beta02, released 2020-03-19

No API surface changes compared with 1.0.0-beta01, just dependency
and implementation changes.

## Version 1.0.0-beta01, released 2020-02-24

Initial beta release.


text:
module.exports = {
    up:   function (migration, DataTypes) {
        return migration.changeColumn('roles', 'note', {type: DataTypes.TEXT});
    },
    down: function (migration, DataTypes) {
        return migration.changeColumn('roles', 'note', {type: DataTypes.STRING})
    }
};


text:
<resources
    xmlns:tools="http://schemas.android.com/tools"
    tools:ignore="MissingTranslation">
    <string name="app_name" translatable="false">Simplicity</string>
    <string name="settings">Settings</string>
    <string name="about" translatable="false">About</string>
    <string name="cancel">Cancel</string>
    <string name="ok">OK</string>
    <string name="privacy_settings">Privacy Settings</string>
    <string name="general_settings">General Settings</string>
    <string name="bookmarks">Bookmarks</string>
    <string name="auth">com.creativetrends.simplicity.app.provider</string>
    <string name="search_engine_choice">Search Engine Choice</string>
    <string name="donate_description">Hello there! Hundreds of hours have been put into developing and perfecting this app, so if you use it quite often, why not consider donating?\n\n\nDonating is 100% optional but, donating any amount ensures that I can keep up development, keeping this app alive 😊.  \n\n*Donations are US Dollars and may include tax. Exchange rates are calculated by Google Play.</string>
    <string-array name="search_engine" translatable="false">
        <item>AOL</item>
        <item>Ask</item>
        <item>Bing</item>
        <item>DuckDuckGo</item>
        <item>Ecosia</item>
        <item>Google</item>
        <item>InfoSpace</item>
        <item>MyWebSearch</item>
        <item>Qwant</item>
        <item>Searx</item>
        <item>StartPage</item>
        <item>WebCrawler</item>
        <item>Wow</item>
        <item>Yandex</item>
        <item>Yahoo</item>
    </string-array>

    <string-array name="search_engine_values" translatable="false">
        <item>https://search.aol.com/aol/search?s_chn=prt_ticker-test-g&q=</item>
        <item>http://www.ask.com/web?q=</item>
        <item>https://www.bing.com/search?q=</item>
        <item>https://duckduckgo.com/?q=</item>
        <item>https://www.ecosia.org/search?q=</item>
        <item>https://www.google.com/search?q=</item>
        <item>http://search.infospace.com/search/web?q=</item>
        <item>http://int.search.mywebsearch.com/mywebsearch/GGmain.jhtml?searchfor=</item>
        <item>https://www.qwant.com/?q=</item>
        <item>https://searx.me/?q=</item>
        <item>https://www.startpage.com/do/search?q=</item>
        <item>https://www.webcrawler.com/serp?q=</item>
        <item>http://www.wow.com/search?s_it=search-thp&v_t=na&q=</item>
        <item>https://www.yandex.com/search/?text=</item>
        <item>https://search.yahoo.com/mobile/s?p=</item>

    </string-array>

    <string name="private_mode">Private window</string>
    <string name="history">History</string>
    <string name="share">Share…</string>
    <string name="find_in">Find in page</string>
    <string name="add_to_home">Add to Home screen</string>
    <string name="request_desk">Desktop site</string>
    <string name="clear_history">Clear History</string>
    <string name="help_trans">Help Translate Simplicity</string>
    <string name="about_app">About</string>
    <string name="new_tab">New tab</string>
    <string name="action_search">Search</string>
    <string name="ratesimple">Rate Simplicity</string>
    <string name="rate_summary">Help others enjoy Simplicity by rating the app on Google Play.</string>

    <string name="mus">Web Browser</string>
    <string name="version_spectrum">Version</string>
    <string name="support_dev">Support Development</string>
    <string name="simplicity_close">Press back again to close Simplicity</string>
    <string name="error">Problem with this link</string>
    <string name="search_bookmarks">Search bookmarks</string>
    <string name="search_history">Search history</string>
    <string name="delete_bookmark">Delete bookmark</string>
    <string name="rename_bookmark">Rename bookmark</string>
    <string name="share_bookmark">Share bookmark</string>
    <string name="rename_titile">Rename Bookmark</string>
    <string name="rename_message">Would you like to rename this bookmark?</string>
    <string name="remove_bookmark">Remove Bookmark?</string>
    <string name="are_you_sure">Are you sure you would like to remove</string>
    <string name="from_bookmark">from your bookmarks?</string>
    <string name="settings_more">More</string>
    <string name="terms">Terms Of Use</string>
    <string name="privacy_policy">Privacy Policy</string>
    <string name="clear_all">Clear all</string>
    <string name="clear_bookmarks">Clear Bookmarks</string>
    <string name="are_you_sure_bookmarks">Are you sure you would like to clear all of your bookmarks? This action cannot be undone.</string>
    <string name="are_you_sure_history">Are you sure you would like to clear all of your history? This action cannot be undone.</string>
    <string name="delete_cache">Tap To Delete App Cache</string>
    <string name="current_cache_size">Estimated cache size</string>
    <string name="cache_dialog">Delete App Cache?</string>
    <string name="cache_dialog_summary">Deleting cache can result with %s, starting slower and may cause more use of data. Are you sure you would like to continue? <b>Please note:</b> This action cannot be un-done.</string>
    <string name="trimming">Deleting cache…</string>

    <string name="policy_about" translatable="false">
Creative Trends Apps LLC built the Simplicity app as a Free app. This SERVICE is provided by Creative Trends Apps LLC at no cost and is intended for use as is.

This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.

If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Simplicity unless otherwise defined in this Privacy Policy.

\n\nInformation Collection and Use\n\n

For a better experience, while using our Service, we may require you to provide us with certain personally identifiable information, including but not limited to Email address, Name. The information that we request will be retained by us and used as described in this privacy policy.

The app does use third party services that may collect information used to identify you.

Link to privacy policy of third party service providers used by the app

\n\nGoogle Play Services

\n\nLog Data

We want to inform you that whenever you use our Service, in a case of an error in the app we collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol ("IP") address, device name, operating system version, the configuration of the app when utilizing our Service, the time and date of your use of the Service, and other statistics.

\n\nCookies\n\n

Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device\'s internal memory.

This Service does not use these "cookies" explicitly. However, the app may use third party code and libraries that use "cookies" to collect information and improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.

\n\nService Providers

\n\nWe may employ third-party companies and individuals due to the following reasons:

To facilitate our Service;\n\n
To provide the Service on our behalf;\n\n
To perform Service-related services; or\n\n
To assist us in analyzing how our Service is used.\n\n

We want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.

\n\nSecurity

We value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security.

\n\nLinks to Other Sites

\n\nThis Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.

\n\nChildren's Privacy

\n\nThese Services do not address anyone under the age of 13. We do not knowingly collect personally identifiable information from children under 13. In the case we discover that a child under 13 has provided us with personal information, we immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us so that we will be able to do necessary actions.

\n\nChanges to This Privacy Policy

\n\nWe may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. We will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page.

\n\nContact Us

\n\nIf you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us.\n\n</string>

    <string name="eula_string" translatable="false">Copyright 2016 - %d Creative Trends. All Rights Reserved.

\n\nBy downloading or using the app, these terms will automatically apply to you – you should make sure therefore that you read them carefully before using the app. You're not allowed to copy, or modify the app, any part of the app, or our trademarks in any way. You're not allowed to attempt to extract the source code of the app, and you also shouldn't try to translate the app into other languages, or make derivative versions. The app itself, and all the trade marks, copyright, database rights and other intellectual property rights related to it, still belong to Creative Trends Apps LLC.

\n\nCreative Trends Apps LLC is committed to ensuring that the app is as useful and efficient as possible. For that reason, we reserve the right to make changes to the app or to charge for its services, at any time and for any reason. We will never charge you for the app or its services without making it very clear to you exactly what you're paying for.

\n\nThe Simplicity app stores and processes personal data that you have provided to us, in order to provide our Service. It's your responsibility to keep your phone and access to the app secure. We therefore recommend that you do not jailbreak or root your phone, which is the process of removing software restrictions and limitations imposed by the official operating system of your device. It could make your phone vulnerable to malware/viruses/malicious programs, compromise your phone's security features and it could mean that the Simplicity app won't work properly or at all.

\n\nYou should be aware that there are certain things that Creative Trends Apps LLC will not take responsibility for. Certain functions of the app will require the app to have an active internet connection. The connection can be Wi-Fi, or provided by your mobile network provider, but Creative Trends Apps LLC cannot take responsibility for the app not working at full functionality if you don't have access to Wi-Fi, and you don't have any of your data allowance left.

\n\nIf you're using the app outside of an area with Wi-Fi, you should remember that your terms of the agreement with your mobile network provider will still apply. As a result, you may be charged by your mobile provider for the cost of data for the duration of the connection while accessing the app, or other third party charges. In using the app, you're accepting responsibility for any such charges, including roaming data charges if you use the app outside of your home territory (i.e. region or country) without turning off data roaming. If you are not the bill payer for the device on which you're using the app, please be aware that we assume that you have received permission from the bill payer for using the app.

\n\nAlong the same lines, Creative Trends Apps LLC cannot always take responsibility for the way you use the app i.e. You need to make sure that your device stays charged – if it runs out of battery and you can't turn it on to avail the Service, Creative Trends Apps LLC cannot accept responsibility.

\n\nWith respect to Creative Trends Apps LLC's responsibility for your use of the app, when you're using the app, it's important to bear in mind that although we endeavour to ensure that it is updated and correct at all times, we do rely on third parties to provide information to us so that we can make it available to you. Creative Trends Apps LLC accepts no liability for any loss, direct or indirect, you experience as a result of relying wholly on this functionality of the app.

\n\nAt some point, we may wish to update the app. The app is currently available on Android – the requirements for system(and for any additional systems we decide to extend the availability of the app to) may change, and you'll need to download the updates if you want to keep using the app. Creative Trends Apps LLC does not promise that it will always update the app so that it is relevant to you and/or works with the Android version that you have installed on your device. However, you promise to always accept updates to the application when offered to you, We may also wish to stop providing the app, and may terminate use of it at any time without giving notice of termination to you. Unless we tell you otherwise, upon any termination, (a) the rights and licenses granted to you in these terms will end; (b) you must stop using the app, and (if needed) delete it from your device.

\n\nChanges to This Terms and Conditions

\n\nWe may update our Terms and Conditions from time to time. Thus, you are advised to review this page periodically for any changes. We will notify you of any changes by posting the new Terms and Conditions on this page. These changes are effective immediately after they are posted on this page.

\n\nContact Us\n\n

If you have any questions or suggestions about our Terms and Conditions, do not hesitate to contact us.\n\n</string>
    <string name="added_to_bookmarks">added to your bookmarks.</string>
    <string name="add_home">Add to Home screen</string>
    <string name="print_page">Print…</string>
    <string name="reader_mode">Reader Mode</string>
    <string name="incognito_mode">Private Window</string>
    <string name="default_font_zoom">Default Font Zoom</string>
    <string name="ad_block">Ad Block</string>
    <string name="ad_block_sum">Block ads on websites.</string>
    <string name="do_not_track">Do Not Track</string>
    <string name="do_not_track_sum">Enable to ask sites not to track your browsing data.</string>
    <string name="clear_data">Clear Data Automatically</string>
    <string name="clear_data_sum">Clear Simplicity\'s cookies, history and data when closing the app.</string>
    <string name="location">Enable Location</string>
    <string name="location_sum">Allows websites to obtain your location.</string>
    <string name="confirm">Confirm Close</string>
    <string name="confirm_sum">Confirm you\'d like to close Simplicity with a double back press.</string>
    <string name="home_page">Home Page</string>
    <string name="remember">Remember Last Page</string>
    <string name="remember_sum">Enable to save and open your last visited page when opening Simplicity.</string>
    <string name="bookmarks_hint">Long press bookmarks to sort them.</string>
    <string name="voice_search_button">Voice Search</string>
    <string name="voice_search_button_sum">Enable to search with your voice.</string>
    <string name="close_app">Exit</string>
    <string name="already_to_bookmarks">already added to your bookmarks.</string>
    <string name="download_warning">This type of file can harm your device. Do you want to keep %s anyway?</string>
    <string name="downloading">Downloading</string>
    <!-- Suggestions provider: no suggestions provider -->
    <string name="notification_widget_channel" translatable="false">com.creativetrends.simplicity.app.downloader</string>
    <string name="notifications_widget">Simplicity Downloader</string>
    <string name="notifications_widget_description">Notifications for when Simplicity is downloading a file.</string>

    <string name="backup_restore_title">Local Backup And Restore</string>
    <string name="backup_restore_sum">Backup and restore your bookmarks and history locally.</string>
    <string name="backup_restore_message">Backup or restore your bookmarks and history. Backing up settings will replace any older backup file you\'ve previously created.</string>
    <string name="backup">Backup</string>
    <string name="restore">Restore</string>
    <string name="backup_restore">Backup & Restore</string>
    <string name="full_screen_sum">Enable to turn on immersive mode, while using the top address bar.</string>
    <string name="full_screen_title">Immersive Mode</string>

    <string name="view_ssl_certificate">View SSL Certificate</string>
    <string name="no_ssl_certificate">Communication with this website is not encrypted by an SSL certificate.</string>
    <string name="common_name">Common Name:</string>
    <string name="organization">Organization:</string>
    <string name="organizational_unit">Organizational Unit:</string>
    <string name="start_date">Start Date:</string>
    <string name="end_date">End Date:</string>

    <!-- SSL Certificate Error. -->

    <string name="ssl_certificate">SSL Certificate</string>
    <string name="unencrypted_website">Unencrypted Website</string>
    <string name="image_actions">Icon Acions</string>
    <string name="help_feedback"><![CDATA[Help & Feedback]]></string>
    <string name="download_file">Download file</string>
    <string name="download">Download</string>
    <string name="rename_title">Rename Downloads</string>
    <string name="rename_sum">When enabled Simplicity will ask if you would like to rename files before downloading them. To keep the original file name, simply tap the download button.</string>
    <string name="tabs">Tabs</string>
    <string name="one">1</string>
    <string name="one_private">😊</string>
    <string name="search_hint">Search or type web address</string>
    <string name="plugin_settings">Plugin Settings</string>
    <string name="instagram_downloads_title">Instagram Downloads</string>
    <string name="instagram_downloads_sum">When enabled, this plugin allows instagram downloads when long pressing an image. This plugin does not allow video downloads.</string>
    <string name="facebook_notifications_title">Facebook Notifications</string>
    <string name="facebook_notifications_sum">When enabled, this plugin will allow notifications for Facebook, (Coming soon).</string>
    <string name="plugin_settings_sum">Enable or disable Simplicity plugins.</string>
    <string name="close_tab">Close Tab</string>
    <string name="facebook_photos_title">Simplicity Photo Viewer</string>
    <string name="facebook_photos_sum">When enabled, this plugin will use Simplicity\'s photo viewer when accesing a photo on Facebook.</string>
    <string name="photos">Photos</string>
    <string name="share_url">Share Photo Url</string>
    <string name="account_sync">Account Sync</string>
    <string name="new_private_mode">New private window</string>
    <string name="close_private">Close private window</string>
    <string name="simplicity_account">Simplicity Account</string>
    <string name="create_account">Tap the image above to set your Simplicity account avatar.</string>
    <string name="create_account_picture">Tap the image above to update your Simplicity account avatar.</string>
    <string name="signin">Sign in to your Simplicity Account.</string>
    <string name="simplicity_account_manage">Manage your Simplicity account. Choose to update your profile (name and profile image) or you can logout.</string>
    <string name="logout">Logout</string>
    <string name="update_profile">Update Profile</string>
    <string name="dark_mode_title">Dark Mode</string>
    <string name="dark_mode_sum">When enabled Simplicity will use a dark theme throughout the app.</string>
    <string name="lite_mode_title">Lite Mode</string>
    <string name="lite_mode_sum">Enable to disable images, which may help save on data usage.</string>
    <string name="new_update">Update Simplicity</string>
    <string name="new_version">Newer version available</string>
    <string name="success">Cache cleared</string>

    <string name="type_archive">Archive</string>
    <string name="type_certificate">Certificate</string>
    <string name="type_directory">Directory</string>
    <string name="type_document">File</string>
    <string name="type_deb">Debian</string>
    <string name="type_drawing">Picture</string>
    <string name="type_excel">Spreadsheet</string>
    <string name="type_image">Image</string>
    <string name="type_music">Music</string>
    <string name="type_video">Video</string>
    <string name="type_pdf">PDF document</string>
    <string name="type_power_point">Presentation</string>
    <string name="type_web">HTML</string>
    <string name="type_word">Document</string>
    <string name="type_apk">APK</string>
    <string name="downloads">Downloads</string>
    <string name="dash">  ●  </string>
    <string name="welcome">Welcome to Simplicity</string>
    <string name="dark_mode_web_title">Dark for Web</string>
    <string name="dark_mode_web_sum">Enable dark mode on webpages. This feature is in beta and may not work 100%.</string>
    <string name="download_successful">Successfully downloaded %s.</string>
    <string name="download_failed">Simplicity could not download %s.</string>
    <string name="download_cancelled">Download cancelled.</string>
    <string name="removed_from_downloads">Successfully removed %s from your device.</string>
    <string name="bullet">\u2022</string>
    <string name="private_active_title"></string>
    <string name="private_active_title_about">Now you can browse privately, and other people who use this device won\'t see your activity. However, downloads and bookmarks will be saved.</string>
    <string name="wont_save">Simplicity  the following information:
            \n\u2022 Your browsing history
            \n\u2022 Cookies from your last visited page
            \n\u2022 Information entered in forms</string>
    <string name="your_activity">Your activity  to:
            \n\u2022 Websites you visit
            \n\u2022 Your employer or school
            \n\u2022 Your internet service provider
            \n\u2022 The person standing behind you</string>
    <string name="delete">Delete?</string>
    <string name="delete_message">Are you sure you would like to delete %s from your device? This cannot be undone.</string>
    <string name="issued_by">Issued By</string>
    <string name="issued_to">Issued To</string>
    <string name="issued_dates">Issued Dates</string>
</resources>


text:
default['gruyere']['apache2']['site_name'] = 'gruyere-proxy'
default['gruyere']['apache2']['server_name'] = 'gruyere'
default['gruyere']['apache2']['server_aliases'] = ['gruyere']


text:
<?php
/**
* WP Better Attachments
*
* @package WP_Better_Attachments
* @since 1.0.0
* @author Dan Holloran dan@danholloran.com
*/
class WPBA_Ajax extends WP_Better_Attachments
{
	/**
	* Constructor
	*
	* @since 1.0.0
	*/
	public function __construct( $config = array() )
	{
		parent::__construct();
		$this->ajax_hooks();
		$this->init_hooks();
	} // __construct

	/**
	* Initialization Hooks
	*
	* @since 1.0.0
	*
	* @return Void
	*/
	public function init_hooks()
	{
	} // init_hooks()

	/**
	* AJAX Hooks
	*
	* @since 1.0.0
	*
	* @return Void
	*/
	public function ajax_hooks()
	{
		add_action( 'wp_ajax_wpba_update_sort_order', array( &$this, 'update_sort_order_callback' ) );
		add_action( 'wp_ajax_wpba_unattach_attachment', array( &$this, 'unattach_attachment_callback' ) );
		add_action( 'wp_ajax_wpba_add_attachment', array( &$this, 'add_attachment_callback' ) );
		add_action( 'wp_ajax_wpba_add_attachment_old', array( &$this, 'add_attachment_old_callback' ) );
		add_action( 'wp_ajax_wpba_delete_attachment', array( &$this, 'delete_attachment_callback' ) );
		add_action( 'wp_ajax_wpba_refresh_attachments', array( &$this, 'refresh_attachments_callback' ) );
		add_action( 'wp_ajax_wpba_update_post', array( &$this, 'update_post_callback' ) );
		add_action('wp_ajax_wpba_image_area_select', array( &$this, 'image_area_select_callback' ) );
	} // ajax_hooks()

	/**
	* AJAX Update Sort Order
	*
	* @since 1.0.0
	* @return Void
	*/
	public function update_sort_order_callback()
	{
		extract( $_POST );

		// Check for empty values
		foreach ( $attids as $key => $value ) {
			if ( is_array( $value ) ) {
				foreach ( $value as $key2 => $value2 ) {
					if ( empty( $value2 ) )
						unset( $attids[ $key ][ $key2 ] );
				}
			}
			if ( empty( $attids[ $key ] ) )
				unset( $attids[ $key ] );
		}

		// Takes an array of attachment ids
		$index = 1;
		foreach ( $attids as $att_id ) {
			$attachment = array();
			$attachment['ID'] = $att_id;
			$attachment['menu_order'] = $index;
			wp_update_post( (array) $attachment );
			$index = $index + 1;
		} //foreach()

		echo json_encode( true );
		die();
	} // update_sort_order_callback()

	/**
	* AJAX Unattach Image
	*
	* @since 1.0.0
	*
	* @return Void
	*/
	public function unattach_attachment_callback()
	{
		extract( $_POST );

		if ( !isset( $attachmentid ) ) {
			echo json_encode( false );
			die();
		} // if()

		$unattach = $this->unattach( array( 'attachment_id' => $attachmentid ) );
		echo json_encode( $unattach );
		die();
	} // unattach_attachment_callback()

	/**
	* AJAX Add Attachment
	*
	* @return Void
	* @since 1.0.0
	*/
	public function add_attachment_callback()
	{
		extract( $_POST );
		$args = array(
			'post' => get_post( $parentid )
		);
		$current_attachments = $this->get_post_attachments( $args );

		// Make sure we have something to work with
		if ( !isset( $attachments ) and !isset( $parentid ) ) {
			echo json_encode( false );
			die();
		} // if()

		// Make sure the attachment doesn't already exist
		// TODO: Find a better way to do this????
		foreach ( $attachments as $attachment_key => $attachment ) {
			foreach ( $current_attachments as $current_attachment ) {
				if ( $attachment['id'] == $current_attachment->ID and $attachment['menuOrder'] != 0 ) {
					unset( $attachments[$attachment_key] );
				} // if()
			} // foreach()
		} // foreach()

		// Add new attachments
		foreach ( $attachments as $attachment ) {
			$this->attach( array(
					'media'   => $attachment['id'],
					'parent_id' => $parentid
				) );
		} // foreach

		global $wpba_meta_box;
		$image_html = $wpba_meta_box->build_image_attachment_li( $attachments, array( 'a_array' => true ) );

		echo json_encode( array(
			'image' => $image_html
		));
		die();
	} // add_attachment_callback()

	/**
	* AJAX Add Attachment - Old Media Uploader
	*
	* @return Void
	* @since 1.0.0
	*/
	public function add_attachment_old_callback()
	{
		extract( $_POST );
		$args = array(
			'post' => get_post( $parentid )
		);
		$current_attachments = $this->get_post_attachments( $args );

		// Make sure we have something to work with
		if ( !isset( $attachmenturl ) and !isset( $parentid ) ) {
			echo json_encode( false );
			die();
		} // if()
		$attachments = array(
			array( 'id' => $this->get_attachment_id_from_src( $attachmenturl ) )
		);

		// Make sure the attachment doesn't already exist
		// TODO: Find a better way to do this????
		foreach ( $attachments as $attachment_key => $attachment ) {
			foreach ( $current_attachments as $current_attachment ) {
				if ( $attachment['id'] == $current_attachment->ID and $attachment['menuOrder'] != 0 ) {
					unset( $attachments[$attachment_key] );
				} // if()
			} // foreach()
		} // foreach()

		// Add new attachments
		foreach ( $attachments as $attachment ) {
			$this->attach( array(
					'media'   => $attachment['id'],
					'parent_id' => $parentid
				) );
		} // foreach

		global $wpba_meta_box;
		$html = $wpba_meta_box->build_image_attachment_li( $attachments, array( 'a_array' => true ) );

		echo json_encode( $html );
		die();
	} // add_attachment_old_callback()

	/**
	* AJAX Update Sort Order
	*/
	public function delete_attachment_callback()
	{
		extract( $_POST );
		// Make sure we have something to work with
		if ( !isset( $attachmentid ) ) {
			echo json_encode( 'noid' );
			die();
		} // if()

		$deleted = wp_delete_attachment( $attachmentid, true );
		if ( false === $deleted ) {
			echo json_encode( false );
		} else {
			echo json_encode( true );
		} // if/else()
		die();
	} // delete_attachment_callback()

	/**
	* AJAX Refresh Attachments
	*
	* @return Void
	* @since 1.0.0
	*/
	public function refresh_attachments_callback()
	{
		global $wpba_meta_box;
		extract( $_GET );

		$html = '';
		$nl = "\n";
		$attachments = $this->get_post_attachments( array( 'post' => get_post( $postid ) ) );
		// Build Attachments Output
		if ( !empty( $attachments ) ) {
			global $wpba_meta_box;
			$html .= $wpba_meta_box->build_image_attachment_li( $attachments );
		} // if (!empty($attachments))

		echo json_encode( $html );
		die();
	} // refresh_attachments_callback()

	/**
	* Update Post
	*
	* @return Void
	* @since 1.0.0
	*/
	public function update_post_callback()
	{
		extract( $_POST );
		$my_post = array();
		$my_post['ID'] = $id;
		$my_post[$key] = $value;

		// Update the post into the database
		echo json_encode( wp_update_post( $my_post ) );
		die();
	} //update_post_callback()

	/**
	* Image Area Select
	*
	* @return Void
	* @since 1.0.0
	*/
	public function image_area_select_callback()
	{
		extract( $_POST );
		global $wpba_crop_resize;
		$resize_crop_selection = $wpba_crop_resize->resize_crop_selection();
		// Save data we need for displaying new crop through JS
		if ( $resize_crop_selection ) {
			$attachment_meta = get_post_meta( $id, 'wpba_crop_points', true );
			$crop_points = ( $attachment_meta ) ? $attachment_meta : array();
			$crop_key = "{$final_w}x{$final_h}";
			$crop_points[$crop_key] = array(
				'x1'	=>	$src_x,
				'x2' 	=>	$src_x + $final_w,
				'y1'	=>	$src_y,
				'y2'	=>	$src_h
			);
			update_post_meta( $id, 'wpba_crop_points', $crop_points );
		} // if()
		echo json_encode( $resize_crop_selection );
		die();
	} // image_area_select_callback()
} // END Class WPBA_Ajax()

	/**
	* Instantiate class and create return method for easier use later
	*/
global $wpba_ajax;
$wpba_ajax = new WPBA_Ajax();

function call_WPBA_Ajax() {
	return new WPBA_Ajax();
} // call_WPBA_Ajax()
if ( is_admin() )
	add_action( 'load-post.php', 'call_WPBA_Ajax' );


text:
<?php

namespace App\Http\Controllers;

use Input;
use Validator;
use App\Vendor;

class VendorController extends Controller
{
 	public function __construct()
    {
        $this->middleware('auth');
    }

    /*
    *   @url    : ./vendor
    *   @method : GET
    */
    public function GetView()
    {
    	return View('vendor',['vendors' => Vendor::all()]);
    }

    /*
    *   @url    : ./vendor
    *   @method : POST
    */
    public function Save()
    {
    	$input = Input::all();
    	$validation = Validator::make($input, Vendor::$rules);
    	if ($validation->passes())
    	{
    		Vendor::create($input);
    		return $this->GetView();
    	}
    	else
    	{
    		return $this->GetView()->withErrors($validation);
    	}
    }
}


text:
var registerShader = require('../core/shader').registerShader;

var isWebGL2AVailable = !!document.createElement('canvas').getContext('webgl2');

var VERTEX_SHADER_WEBGL1 = [
  'attribute vec2 uv;',
  'attribute vec3 position;',
  'uniform mat4 projectionMatrix;',
  'uniform mat4 modelViewMatrix;',
  'varying vec2 vUV;',
  'void main(void) {',
  '  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);',
  '  vUV = uv;',
  '}'
].join('\n');

var VERTEX_SHADER_WEBGL2 = [
  '#version 300 es',
  'in vec2 uv;',
  'in vec3 position;',
  'uniform mat4 projectionMatrix;',
  'uniform mat4 modelViewMatrix;',
  'out vec2 vUV;',
  'void main(void) {',
  '  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);',
  '  vUV = uv;',
  '}'
].join('\n');

var VERTEX_SHADER = isWebGL2AVailable ? VERTEX_SHADER_WEBGL2 : VERTEX_SHADER_WEBGL1;

var FRAGMENT_SHADER_WEBGL1 = [
  '#ifdef GL_OES_standard_derivatives',
  '#extension GL_OES_standard_derivatives: enable',
  '#endif',

  'precision highp float;',
  'uniform float alphaTest;',
  'uniform float opacity;',
  'uniform sampler2D map;',
  'uniform vec3 color;',
  'varying vec2 vUV;',

  '#ifdef GL_OES_standard_derivatives',
  '  float contour(float width, float value) {',
  '    return smoothstep(0.5 - value, 0.5 + value, width);',
  '  }',
  '#else',
  '  float aastep(float value, float afwidth) {',
  '    return smoothstep(0.5 - afwidth, 0.5 + afwidth, value);',
  '  }',
  '#endif',

  // FIXME: Experimentally determined constants.
  '#define BIG_ENOUGH 0.001',
  '#define MODIFIED_ALPHATEST (0.02 * isBigEnough / BIG_ENOUGH)',
  '#define ALL_SMOOTH 0.4',
  '#define ALL_ROUGH 0.02',
  '#define DISCARD_ALPHA (alphaTest / (2.2 - 1.2 * ratio))',

  'void main() {',
     // When we have derivatives and can get texel size for supersampling.
  '  #ifdef GL_OES_standard_derivatives',
  '    vec2 uv = vUV;',
  '    vec4 texColor = texture2D(map, uv);',
  '    float dist = texColor.a;',
  '    float width = fwidth(dist);',
  '    float alpha = contour(dist, width);',
  '    float dscale = 0.353505;',

  '    vec2 duv = dscale * (dFdx(uv) + dFdy(uv));',
  '    float isBigEnough = max(abs(duv.x), abs(duv.y));',

       // When texel is too small, blend raw alpha value rather than supersampling.
       // FIXME: experimentally determined constant
  '    if (isBigEnough > BIG_ENOUGH) {',
  '      float ratio = BIG_ENOUGH / isBigEnough;',
  '      alpha = ratio * alpha + (1.0 - ratio) * dist;',
  '    }',

       // Otherwise do weighted supersampling.
       // FIXME: why this weighting?
  '    if (isBigEnough <= BIG_ENOUGH) {',
  '      vec4 box = vec4 (uv - duv, uv + duv);',
  '      alpha = (alpha + 0.5 * (',
  '        contour(texture2D(map, box.xy).a, width)',
  '        + contour(texture2D(map, box.zw).a, width)',
  '        + contour(texture2D(map, box.xw).a, width)',
  '        + contour(texture2D(map, box.zy).a, width)',
  '      )) / 3.0;',
  '    }',

       // Do modified alpha test.
  '    if (alpha < alphaTest * MODIFIED_ALPHATEST) { discard; return; }',

  '  #else',
       // When we don't have derivatives, use approximations.
  '    vec4 texColor = texture2D(map, vUV);',
  '    float value = texColor.a;',
       // FIXME: if we understood font pixel dimensions, this could probably be improved
  '    float afwidth = (1.0 / 32.0) * (1.4142135623730951 / (2.0 * gl_FragCoord.w));',
  '    float alpha = aastep(value, afwidth);',

       // Use gl_FragCoord.w to guess when we should blend.
       // FIXME: If we understood font pixel dimensions, this could probably be improved.
  '    float ratio = (gl_FragCoord.w >= ALL_SMOOTH) ? 1.0 : (gl_FragCoord.w < ALL_ROUGH) ? 0.0 : (gl_FragCoord.w - ALL_ROUGH) / (ALL_SMOOTH - ALL_ROUGH);',
  '    if (alpha < alphaTest) { if (ratio >= 1.0) { discard; return; } alpha = 0.0; }',
  '    alpha = alpha * ratio + (1.0 - ratio) * value;',
  '    if (ratio < 1.0 && alpha <= DISCARD_ALPHA) { discard; return; }',
  '  #endif',

  '  gl_FragColor = vec4(color, opacity * alpha);',
  '}'
].join('\n');

var FRAGMENT_SHADER_WEBGL2 = [
  '#version 300 es',
  'precision highp float;',
  'uniform float alphaTest;',
  'uniform float opacity;',
  'uniform sampler2D map;',
  'uniform vec3 color;',
  'in vec2 vUV;',
  'out vec4 fragColor;',

  '#ifdef GL_OES_standard_derivatives',
  '  float contour(float width, float value) {',
  '    return smoothstep(0.5 - value, 0.5 + value, width);',
  '  }',
  '#else',
  '  float aastep(float value, float afwidth) {',
  '    return smoothstep(0.5 - afwidth, 0.5 + afwidth, value);',
  '  }',
  '#endif',

  // FIXME: Experimentally determined constants.
  '#define BIG_ENOUGH 0.001',
  '#define MODIFIED_ALPHATEST (0.02 * isBigEnough / BIG_ENOUGH)',
  '#define ALL_SMOOTH 0.4',
  '#define ALL_ROUGH 0.02',
  '#define DISCARD_ALPHA (alphaTest / (2.2 - 1.2 * ratio))',

  'void main() {',
     // When we have derivatives and can get texel size for supersampling.
  '  #ifdef GL_OES_standard_derivatives',
  '    vec2 uv = vUV;',
  '    vec4 texColor = texture(map, uv);',
  '    float dist = texColor.a;',
  '    float width = fwidth(dist);',
  '    float alpha = contour(dist, width);',
  '    float dscale = 0.353505;',

  '    vec2 duv = dscale * (dFdx(uv) + dFdy(uv));',
  '    float isBigEnough = max(abs(duv.x), abs(duv.y));',

       // When texel is too small, blend raw alpha value rather than supersampling.
       // FIXME: experimentally determined constant
  '    if (isBigEnough > BIG_ENOUGH) {',
  '      float ratio = BIG_ENOUGH / isBigEnough;',
  '      alpha = ratio * alpha + (1.0 - ratio) * dist;',
  '    }',

       // Otherwise do weighted supersampling.
       // FIXME: why this weighting?
  '    if (isBigEnough <= BIG_ENOUGH) {',
  '      vec4 box = vec4 (uv - duv, uv + duv);',
  '      alpha = (alpha + 0.5 * (',
  '        contour(texture(map, box.xy).a, width)',
  '        + contour(texture(map, box.zw).a, width)',
  '        + contour(texture(map, box.xw).a, width)',
  '        + contour(texture(map, box.zy).a, width)',
  '      )) / 3.0;',
  '    }',

       // Do modified alpha test.
  '    if (alpha < alphaTest * MODIFIED_ALPHATEST) { discard; return; }',

  '  #else',
       // When we don't have derivatives, use approximations.
  '    vec4 texColor = texture(map, vUV);',
  '    float value = texColor.a;',
       // FIXME: if we understood font pixel dimensions, this could probably be improved
  '    float afwidth = (1.0 / 32.0) * (1.4142135623730951 / (2.0 * gl_FragCoord.w));',
  '    float alpha = aastep(value, afwidth);',

       // Use gl_FragCoord.w to guess when we should blend.
       // FIXME: If we understood font pixel dimensions, this could probably be improved.
  '    float ratio = (gl_FragCoord.w >= ALL_SMOOTH) ? 1.0 : (gl_FragCoord.w < ALL_ROUGH) ? 0.0 : (gl_FragCoord.w - ALL_ROUGH) / (ALL_SMOOTH - ALL_ROUGH);',
  '    if (alpha < alphaTest) { if (ratio >= 1.0) { discard; return; } alpha = 0.0; }',
  '    alpha = alpha * ratio + (1.0 - ratio) * value;',
  '    if (ratio < 1.0 && alpha <= DISCARD_ALPHA) { discard; return; }',
  '  #endif',

  '  fragColor = vec4(color, opacity * alpha);',
  '}'
].join('\n');

var FRAGMENT_SHADER = isWebGL2AVailable ? FRAGMENT_SHADER_WEBGL2 : FRAGMENT_SHADER_WEBGL1;

/**
 * Signed distance field.
 * Used by text component.
 */
module.exports.Shader = registerShader('sdf', {
  schema: {
    alphaTest: {type: 'number', is: 'uniform', default: 0.5},
    color: {type: 'color', is: 'uniform', default: 'white'},
    map: {type: 'map', is: 'uniform'},
    opacity: {type: 'number', is: 'uniform', default: 1.0}
  },

  raw: true,

  vertexShader: VERTEX_SHADER,

  fragmentShader: FRAGMENT_SHADER
});


text:
var util = require('util'),
	Client = require('../client').Client;

var CurrentQueueActivity = exports.CurrentQueueActivity = function(options) {
	this.jsonAPINames = [ 'current_queue_activity', 'current_queue_activities' ];
	Client.call(this, options);
};

// Inherit from Client base object
util.inherits(CurrentQueueActivity, Client);

// ######################################################## Current Queue Activity
// ====================================== Get Current Queue Activity
CurrentQueueActivity.prototype.show = function(cb) {
	return this.request('GET', ['stats', 'current_queue_activity'], cb);
};


text:
<?php

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    /**
     * {@inheritdoc}
     */
    public function init()
    {
        // Please read http://symfony.com/doc/2.0/book/installation.html#configuration-and-setup
        bcscale(3);

        parent::init();
    }

    /**
     * {@inheritdoc}
     */
    public function registerBundles()
    {
        $bundles = array(
            // SYMFONY STANDARD EDITION
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            new Symfony\Bundle\MonologBundle\MonologBundle(),
            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
            new JMS\AopBundle\JMSAopBundle(),
            new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),

            // DOCTRINE
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
            new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),

            // KNP HELPER BUNDLES
            new Knp\Bundle\MenuBundle\KnpMenuBundle(),
            new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(),
            new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),

            // USER
            new FOS\UserBundle\FOSUserBundle(),
            new Sonata\UserBundle\SonataUserBundle('FOSUserBundle'),
            new Application\Sonata\UserBundle\ApplicationSonataUserBundle(),

            // PAGE
            new Sonata\PageBundle\SonataPageBundle(),
            new Application\Sonata\PageBundle\ApplicationSonataPageBundle(),

            // NEWS
            new Sonata\NewsBundle\SonataNewsBundle(),
            new Application\Sonata\NewsBundle\ApplicationSonataNewsBundle(),

            // MEDIA
            new Sonata\MediaBundle\SonataMediaBundle(),
            new Application\Sonata\MediaBundle\ApplicationSonataMediaBundle(),
            // new Liip\ImagineBundle\LiipImagineBundle(),

            new Sonata\MarkItUpBundle\SonataMarkItUpBundle(),
            new Ivory\CKEditorBundle\IvoryCKEditorBundle(),

            new Sonata\AdminBundle\SonataAdminBundle(),
            new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),

            // @todo: remove this bundle
            new Application\Sonata\AdminBundle\ApplicationSonataAdminBundle(),

            // Disable this if you don't want the audit on entities
            new SimpleThings\EntityAudit\SimpleThingsEntityAuditBundle(),

            // API
            new FOS\RestBundle\FOSRestBundle(),
            new Nelmio\ApiDocBundle\NelmioApiDocBundle(),

            // E-COMMERCE
            new Sonata\BasketBundle\SonataBasketBundle(),
            new Application\Sonata\BasketBundle\ApplicationSonataBasketBundle(),
            new Sonata\CustomerBundle\SonataCustomerBundle(),
            new Application\Sonata\CustomerBundle\ApplicationSonataCustomerBundle(),
            new Sonata\DeliveryBundle\SonataDeliveryBundle(),
            new Application\Sonata\DeliveryBundle\ApplicationSonataDeliveryBundle(),
            new Sonata\InvoiceBundle\SonataInvoiceBundle(),
            new Application\Sonata\InvoiceBundle\ApplicationSonataInvoiceBundle(),
            new Sonata\OrderBundle\SonataOrderBundle(),
            new Application\Sonata\OrderBundle\ApplicationSonataOrderBundle(),
            new Sonata\PaymentBundle\SonataPaymentBundle(),
            new Application\Sonata\PaymentBundle\ApplicationSonataPaymentBundle(),
            new Sonata\ProductBundle\SonataProductBundle(),
            new Application\Sonata\ProductBundle\ApplicationSonataProductBundle(),
            new Sonata\PriceBundle\SonataPriceBundle(),
            new JMS\SerializerBundle\JMSSerializerBundle($this),
            new FOS\CommentBundle\FOSCommentBundle(),
            new Sonata\CommentBundle\SonataCommentBundle(),
            new Application\Sonata\CommentBundle\ApplicationSonataCommentBundle(),

            // SONATA CORE & HELPER BUNDLES
            new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle(),
            new Sonata\jQueryBundle\SonatajQueryBundle(),
            new Sonata\CoreBundle\SonataCoreBundle(),
            new Sonata\IntlBundle\SonataIntlBundle(),
            new Sonata\FormatterBundle\SonataFormatterBundle(),
            new Sonata\CacheBundle\SonataCacheBundle(),
            new Sonata\BlockBundle\SonataBlockBundle(),
            new Sonata\SeoBundle\SonataSeoBundle(),
            new Sonata\ClassificationBundle\SonataClassificationBundle(),
            new Application\Sonata\ClassificationBundle\ApplicationSonataClassificationBundle(),
            new Sonata\NotificationBundle\SonataNotificationBundle(),
            new Application\Sonata\NotificationBundle\ApplicationSonataNotificationBundle(),
            new Application\Sonata\SeoBundle\ApplicationSonataSeoBundle(),

            // Search Integration
            //new FOS\ElasticaBundle\FOSElasticaBundle(),

            // CMF Integration
            new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),

            // DEMO and QA - Can be deleted
            new Sonata\Bundle\DemoBundle\SonataDemoBundle(),
            new Sonata\Bundle\QABundle\SonataQABundle(),

            // Disable this if you don't want the timeline in the admin
            new Spy\TimelineBundle\SpyTimelineBundle(),
            new Sonata\TimelineBundle\SonataTimelineBundle(),
            new Application\Sonata\TimelineBundle\ApplicationSonataTimelineBundle(), // easy extends integration

            new Mopa\Bundle\BootstrapBundle\MopaBootstrapBundle()
        );

        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
            $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
            $bundles[] = new Bazinga\Bundle\FakerBundle\BazingaFakerBundle();
            $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
        }

        return $bundles;
    }

    /**
     * {@inheritdoc}
     */
    public function registerContainerConfiguration(LoaderInterface $loader)
    {
        $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
    }
}


text:
#include <Main/Gui/SelectObjectConnection.hpp>

#include <Voxie/Node/Types.hpp>

#include <Main/Root.hpp>

#include <QAction>
#include <QDialog>
#include <QHBoxLayout>
#include <QIcon>
#include <QKeyEvent>
#include <QLineEdit>
#include <QListWidgetItem>
#include <QMessageBox>
#include <QPushButton>
#include <QVBoxLayout>
#include <Voxie/Node/PropertyValueConvertRaw.hpp>

using namespace vx::gui;
using namespace vx;

ConnectNodesImpl::~ConnectNodesImpl() {}

ConnectNodesImplInput::ConnectNodesImplInput(
    Node* obj, const QSharedPointer<NodeProperty>& property, Node* val)
    : obj(obj), property(property), val(val) {}

void ConnectNodesImplInput::connect() {
  if (!obj || !val) {
    qWarning() << "Node disappeared before ConnectNodesImpl::connect()";
    return;
  }

  if (property->type() == types::NodeReferenceType()) {
    obj->setNodeProperty(property, Node::getVariant(val));
  } else if (property->type() == types::NodeReferenceListType()) {
    auto old = obj->getNodeProperty(property);
    QList<Node*> list = Node::parseVariantNodeList(old);
    list.append(val);
    obj->setNodeProperty(property, Node::getVariant(list));
  } else {
    qCritical() << "Unknown reference type: " + property->typeName();
  }
}

QString ConnectNodesImplInput::description() {
  if (property->type() == types::NodeReferenceType())
    return "Set input property " + property->displayName();
  else if (property->type() == types::NodeReferenceListType())
    return "Add to input property " + property->displayName();
  else
    return "Unknown reference type: " + property->typeName();
}

ConnectNodesImplOutput::ConnectNodesImplOutput(
    Node* obj, const QSharedPointer<NodeProperty>& property, Node* val)
    : obj(obj), property(property), val(val) {}

void ConnectNodesImplOutput::connect() {
  if (!obj || !val) {
    qWarning() << "Node disappeared before ConnectNodesImpl::connect()";
    return;
  }
  obj->setNodeProperty(property, Node::getVariant(val));
}

QString ConnectNodesImplOutput::description() {
  return "Set output property " + property->displayName();
}

ConnectNodesImplInputObject3D::ConnectNodesImplInputObject3D(
    Node* obj, const QSharedPointer<NodeProperty>& property,
    const QSharedPointer<NodePrototype>& prototype,
    const QSharedPointer<NodeProperty>& property3D, Node* val)
    : obj(obj),
      property(property),
      prototype(prototype),
      property3D(property3D),
      val(val) {}

void ConnectNodesImplInputObject3D::connect() {
  if (!obj || !val) {
    qWarning() << "Node disappeared before ConnectNodesImpl::connect()";
    return;
  }

  auto obj3D = prototype->create(QMap<QString, QVariant>(), QList<Node*>(),
                                 QMap<QString, QDBusVariant>());

  if (property->type() == types::NodeReferenceType()) {
    obj->setNodeProperty(property, Node::getVariant(obj3D.data()));
  } else if (property->type() == types::NodeReferenceListType()) {
    auto old = obj->getNodeProperty(property);
    QList<Node*> list = Node::parseVariantNodeList(old);
    list.append(obj3D.data());
    obj->setNodeProperty(property, Node::getVariant(list));
  } else {
    qCritical() << "Unknown reference type: " + property->typeName();
  }

  if (property3D->type() == types::NodeReferenceType()) {
    obj3D->setNodeProperty(property3D, Node::getVariant(val));
  } else if (property3D->type() == types::NodeReferenceListType()) {
    auto old = obj3D->getNodeProperty(property3D);
    QList<Node*> list = Node::parseVariantNodeList(old);
    list.append(val);
    obj3D->setNodeProperty(property3D, Node::getVariant(list));
  } else {
    qCritical() << "Unknown reference type: " + property3D->typeName();
  }
}

QString ConnectNodesImplInputObject3D::description() {
  if (property->type() == types::NodeReferenceType())
    return "Create new " + prototype->displayName() + " to set property " +
           property->displayName() + " and set its property " +
           property3D->displayName();
  else if (property->type() == types::NodeReferenceListType())
    return "Create new " + prototype->displayName() + " to add to property " +
           property->displayName() + " and set its property " +
           property3D->displayName();
  else
    return "Unknown reference type: " + property->typeName();
}

SelectNodeConnection::SelectNodeConnection(
    const QList<QSharedPointer<ConnectNodesImpl>>& possibilities)
    : QDialog(), possibilities(possibilities) {
  this->setModal(true);
  this->setWindowTitle("Select connection");
  this->setWindowFlags(Qt::Dialog);

  this->listView = new QListWidget();
  this->listView->setMinimumWidth(500);

  this->okButton = new QPushButton("&Ok");
  this->cancelButton = new QPushButton("&Cancel");

  QHBoxLayout* buttons = new QHBoxLayout();
  buttons->addWidget(okButton);
  buttons->addWidget(cancelButton);

  QVBoxLayout* vBox = new QVBoxLayout();
  vBox->addWidget(listView);
  vBox->addLayout(buttons);

  this->setLayout(vBox);

  connect(this->cancelButton, &QPushButton::clicked, this, &QDialog::reject);
  connect(this->okButton, &QPushButton::clicked, this,
          &SelectNodeConnection::finish);
  connect(this->listView, &QListWidget::doubleClicked, this,
          &SelectNodeConnection::finish);

  for (const auto& possibility : possibilities) {
    auto newItem = new QListWidgetItem(possibility->description());
    // newItem->setData(Qt::UserRole, QVariant::fromValue(possibility));
    this->listView->addItem(newItem);
  }

  this->show();
}

void SelectNodeConnection::finish() {
  int row = this->listView->currentRow();
  if (row < 0 || row >= this->possibilities.size()) {
    qCritical() << "row out of range";
    this->accept();
    return;
  }
  auto possibility = this->possibilities[row];

  possibility->connect();

  this->accept();
}

QList<QSharedPointer<ConnectNodesImpl>> vx::getPossibleConnections(
    Node* parent, Node* child) {
  QList<QSharedPointer<ConnectNodesImpl>> possibilities;

  // Search for output property in parent which allows child as value
  for (const auto& property : parent->prototype()->nodeProperties()) {
    if (!property->isReference() || !property->isOutputReference()) continue;

    if (!property->allowsAsValue(child)) continue;

    possibilities << createQSharedPointer<ConnectNodesImplOutput>(
        parent, property, child);
  }

  // Search for input property in child which allows parent as value
  for (const auto& property : child->prototype()->nodeProperties()) {
    if (!property->isReference() || property->isOutputReference()) continue;

    if (!property->allowsAsValue(parent)) continue;

    possibilities << createQSharedPointer<ConnectNodesImplInput>(
        child, property, parent);
  }

  // Search for input property in child for type Object3D which has a property
  // which allows parent as a value
  for (const auto& property : child->prototype()->nodeProperties()) {
    if (!property->isReference() || property->isOutputReference()) continue;

    for (const auto& prototype3D : Root::instance()->factories()) {
      if (prototype3D->nodeKind() != NodeKind::Object3D) continue;
      if (!property->allowsAsValue(prototype3D)) continue;

      // Search for input property in prototype3D which allows parent as value
      for (const auto& property3D : prototype3D->nodeProperties()) {
        if (!property3D->isReference() || property3D->isOutputReference())
          continue;

        if (!property3D->allowsAsValue(parent)) continue;

        possibilities << createQSharedPointer<ConnectNodesImplInputObject3D>(
            child, property, prototype3D, property3D, parent);
      }
    }
  }

  return possibilities;
}

// TODO: reduce code duplication with getPossibleConnections()?
bool vx::canBeChildOf(Node* parent, NodePrototype* childPrototype) {
  // Search for output property in parent which allows child as value
  for (const auto& property : parent->prototype()->nodeProperties()) {
    if (!property->isReference() || !property->isOutputReference()) continue;

    if (!property->allowsAsValue(childPrototype)) continue;

    return true;
  }

  // Search for input property in child which allows parent as value
  for (const auto& property : childPrototype->nodeProperties()) {
    if (!property->isReference() || property->isOutputReference()) continue;

    if (!property->allowsAsValue(parent)) continue;

    return true;
  }

  // Search for input property in child for type Object3D which has a property
  // which allows parent as a value
  for (const auto& property : childPrototype->nodeProperties()) {
    if (!property->isReference() || property->isOutputReference()) continue;

    for (const auto& prototype3D : Root::instance()->factories()) {
      if (prototype3D->nodeKind() != NodeKind::Object3D) continue;
      if (!property->allowsAsValue(prototype3D)) continue;

      // Search for input property in prototype3D which allows parent as value
      for (const auto& property3D : prototype3D->nodeProperties()) {
        if (!property3D->isReference() || property3D->isOutputReference())
          continue;

        if (!property3D->allowsAsValue(parent)) continue;

        return true;
      }
    }
  }

  return false;
}

void SelectNodeConnection::createNodeConnection(Node* parent, Node* child,
                                                int slot) {
  auto possibilities = getPossibleConnections(parent, child);

  if (possibilities.count() == 0) {
    qWarning() << "Unable to add" << parent->prototype() << child
               << "as child of" << child->prototype() << parent;
    return;

  } else if (possibilities.count() == 1) {
    possibilities[0]->connect();

  } else if (slot == -1) {
    qDebug() << "Possibilites for connection" << possibilities.count();
    new SelectNodeConnection(possibilities);
    return;

  } else {  // when connecting directly to InputDot
    possibilities[slot]->connect();
  }
}


text:
class CreateCandidates < ActiveRecord::Migration
  def change
    create_table :candidates do |t|
      t.string :first_name
      t.string :last_name
      t.string :alias, :string
      t.date :date_of_birth
      t.string :gender
      t.boolean :current_td, null: false, default: false
      t.text :photo_url
      t.text :party_profile_url
      t.text :website_url
      t.text :twitter_url
      t.text :facebook_url
      t.text :instagram_url
      t.text :linkedin_url
      t.text :youtube_url
      t.text :source_url
      t.text :voting_record_url
      t.decimal :claimed_expenses, :precision => 9, :scale => 2

      t.timestamps null: false
    end
  end
end


text:
/*	$NetBSD: pty.h,v 1.8 2008/04/28 20:24:11 martin Exp $	*/

/*-
 * Copyright (c) 2004 The NetBSD Foundation, Inc.
 * All rights reserved.
 *
 * This code is derived from software contributed to The NetBSD Foundation
 * by Christos Zoulas.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
#ifndef _SYS_PTY_H_
#define _SYS_PTY_H_

int pty_isfree(int, int);
int pty_check(int);

#ifndef NO_DEV_PTM
void ptmattach(int);
int pty_fill_ptmget(struct lwp *, dev_t, int, int, void *);
int pty_grant_slave(struct lwp *, dev_t);
dev_t pty_makedev(char, int);
int pty_vn_open(struct vnode *, struct lwp *);
struct ptm_pty *pty_sethandler(struct ptm_pty *);
#endif

struct ptm_pty {
	int (*allocvp)(struct ptm_pty *, struct lwp *, struct vnode **, dev_t,
	    char);
	int (*makename)(struct ptm_pty *, struct lwp *, char *, size_t, dev_t, char);
	void (*getvattr)(struct ptm_pty *, struct lwp *, struct vattr *);
	void *arg;
};

extern int npty;

#ifdef COMPAT_BSDPTY
extern struct ptm_pty ptm_bsdpty;
#endif

#endif /* _SYS_PTY_H_ */


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Classes;

/**
 *
 * @author Nicholas
 */
public class Pessoa{
    private int id;
    private String telefone;
    private String email;
    private String CEP;
    private String logradouro;
    private String complemento;
    private int numero;
    private String bairro;
    private String cidade;
    private String estado;
    private String pais;

    // Instância para validações de senha e e-mail
    Validacoes valida = new Validacoes();

    public int getId() {
        return id;
    }

    public void setId(int id) throws Exception {
        if(id >= 0)
            this.id = id;
        else
            throw new Exception("ID Invalido");
    }

    public String getTelefone() {
        return telefone;
    }

    public void setTelefone(String telefone) throws Exception {
        telefone = telefone.replaceAll("\\D+","");
        if((telefone.length() == 10) || (telefone.length() == 11))
            this.telefone = telefone;
        else
            throw new Exception("Telefone Invalido");
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) throws Exception {
        if(valida.validaEmail(email)){
            this.email = email;
        }
        else
            throw new Exception("E-mail Invalido");
    }

    public String getCEP() {
        return CEP;
    }

    public void setCEP(String CEP) throws Exception {
        CEP = CEP.replaceAll("\\D+","");
        if(CEP.length() == 8)
            this.CEP = CEP;
        else
            throw new Exception("CEP Invalido");
    }

    public String getLogradouro() {
        return logradouro;
    }

    public void setLogradouro(String logradouro) throws Exception {
        if(logradouro.isEmpty())
            throw new Exception("Logradouro Invalido");
        else if(logradouro.length() < 45)
            this.logradouro = logradouro;
        else
            throw new Exception("Logradouro maior que 45 caracteres");
    }

    public String getComplemento() {
        return complemento;
    }

    public void setComplemento(String complemento) throws Exception {
        if(complemento.isEmpty() || complemento.length() < 45)
            this.complemento = complemento;
        else
            throw new Exception("Complemento maior que 45 caracteres");
    }

    public int getNumero() {
        return numero;
    }

    public void setNumero(int numero) throws Exception {
        if(numero > 0)
            this.numero = numero;
        else
            throw new Exception("Numero Invalido");
    }

    public String getBairro() {
        return bairro;
    }

    public void setBairro(String bairro) throws Exception {
        if(bairro.isEmpty())
            throw new Exception("Bairro Invalido");
        else if(bairro.length() < 45)
            this.bairro = bairro;
        else
            throw new Exception("Bairro maior que 45 caracteres");
    }

    public String getCidade() {
        return cidade;
    }

    public void setCidade(String cidade) throws Exception {
        if(cidade.isEmpty())
            throw new Exception("Cidade Invalida");
        else if(cidade.length() < 45)
            this.cidade = cidade;
        else
            throw new Exception("Cidade maior que 45 caracteres");
    }

    public String getEstado() {
        return estado;
    }

    public void setEstado(String estado) throws Exception {
        if(estado.isEmpty())
            throw new Exception("Estado Invalido");
        else if(estado.length() < 45)
            this.estado = estado;
        else
            throw new Exception("Estado maior que 45 caracteres");
    }

    public String getPais() {
        return pais;
    }

    public void setPais(String pais) throws Exception {
        if(pais.isEmpty())
            throw new Exception("País Invalido");
        else if(pais.length() < 45)
            this.pais = pais;
        else
            throw new Exception("País maior que 45 caracteres");
    }

}


text:
namespace BlogSystem.Data.Seeding
{
    using System;
    using System.Linq;
    using System.Threading.Tasks;

    using BlogSystem.Common;
    using BlogSystem.Data.Models;

    using Microsoft.AspNetCore.Identity;
    using Microsoft.Extensions.DependencyInjection;

    internal class RolesSeeder : ISeeder
    {
        public async Task SeedAsync(ApplicationDbContext dbContext, IServiceProvider serviceProvider)
        {
            var roleManager = serviceProvider.GetRequiredService<RoleManager<ApplicationRole>>();

            await SeedRoleAsync(roleManager, GlobalConstants.AdministratorRoleName);
        }

        private static async Task SeedRoleAsync(RoleManager<ApplicationRole> roleManager, string roleName)
        {
            var role = await roleManager.FindByNameAsync(roleName);
            if (role == null)
            {
                var result = await roleManager.CreateAsync(new ApplicationRole(roleName));
                if (!result.Succeeded)
                {
                    throw new Exception(string.Join(Environment.NewLine, result.Errors.Select(e => e.Description)));
                }
            }
        }
    }
}


text:
// Copyright 2007-2015 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
namespace MassTransit.Pipeline.Observables
{
    using System;
    using System.Threading.Tasks;
    using GreenPipes.Util;

    public class ReceiveObservable :
        Connectable<IReceiveObserver>,
        IReceiveObserver
    {
        public Task PreReceive(ReceiveContext context)
        {
            return ForEachAsync(x => x.PreReceive(context));
        }

        public Task PostReceive(ReceiveContext context)
        {
            return ForEachAsync(x => x.PostReceive(context));
        }

        public Task PostConsume<T>(ConsumeContext<T> context, TimeSpan duration, string consumerType) where T : class
        {
            return ForEachAsync(x => x.PostConsume(context, duration, consumerType));
        }

        public Task ConsumeFault<T>(ConsumeContext<T> context, TimeSpan duration, string consumerType, Exception exception) where T : class
        {
            return ForEachAsync(x => x.ConsumeFault(context, duration, consumerType, exception));
        }

        public Task ReceiveFault(ReceiveContext context, Exception exception)
        {
            return ForEachAsync(x => x.ReceiveFault(context, exception));
        }
    }
}


text:
import pytest
from django.conf import settings
from .compat import force_text

try:
    from django.core.urlresolvers import is_valid_path
except ImportError:
    from django.core.urlresolvers import resolve, Resolver404

    def is_valid_path(path, urlconf=None):
        """Return True if path resolves against default URL resolver

        This is a convenience method to make working with "is this a
        match?" cases easier, avoiding unnecessarily indented
        try...except blocks.
        """
        try:
            resolve(path, urlconf)
            return True
        except Resolver404:
            return False

@pytest.mark.urls('tests.urls_overridden')
def test_urls():
    assert settings.ROOT_URLCONF == 'tests.urls_overridden'
    assert is_valid_path('/overridden_url/')

@pytest.mark.urls('tests.urls_overridden')
def test_urls_client(client):
    response = client.get('/overridden_url/')
    assert force_text(response.content) == 'Overridden urlconf works!'


text:
import React from 'react';
import { connectFromRoute } from '../router-mapping';
import { sparqlConnect } from '../sparql/configure-sparql';
import { LOADED } from 'sparql-connect';
import Loading from './loading';
import { Link } from 'react-router';
import { uriToLink } from '../router-mapping';
import ItemChildren from './item-children';

function ItemDetails({
  loaded,
  item,
  label,
  code,
  text,
  parent,
  parentCode,
  parentLabel,
  cl,
  clCode,
  clLabel,
}) {
  if (loaded !== LOADED) return <Loading from="Item details" plural={false} />;
  return (

      <Link to={uriToLink.classificationDetails(cl)}>
        {clCode && `${clCode} - `}
        {clLabel}
      </Link>

        {code} - {label}

      {parent && (
        <Link to={uriToLink.itemDetails(parent)}>
          ↑
          {parentCode} - {parentLabel}
        </Link>
      )}
      {text &&
{text}
}

      <ItemChildren item={item} />

  );
}

export default connectFromRoute(sparqlConnect.itemDetails(ItemDetails));