text:
/**
 *     This code was auto-generated by a Codezu.
 *
 *     Changes to this file may cause incorrect behavior and will be lost if
 *     the code is regenerated.
 */
package com.mozu.api.clients.commerce.wishlists;

import org.joda.time.DateTime;
import java.util.List;
import java.util.ArrayList;
import com.mozu.api.MozuClient;
import com.mozu.api.MozuClientFactory;
import com.mozu.api.MozuUrl;
import com.mozu.api.Headers;

import com.mozu.api.security.AuthTicket;
import org.apache.commons.lang.StringUtils;

/**
 * Use the Wish List Items subresource to manage items in a shopper wish list. The same product can be defined as an item in any number of wish lists for the customer account. Use the Wish Lists resource to manage shopper wish lists.
 *
 */
public class WishlistItemClient {

	/**
	 * Retrieves the details of an item in a shopper wish list.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient=GetWishlistItemClient( wishlistId,  wishlistItemId);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItem wishlistItem = client.Result();
	 *

	 * @param wishlistId Unique identifier of the wish list.
	 * @param wishlistItemId Unique identifier of the item to remove from the shopper wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> getWishlistItemClient(String wishlistId, String wishlistItemId) throws Exception
	{
		return getWishlistItemClient( wishlistId,  wishlistItemId,  null);
	}

	/**
	 * Retrieves the details of an item in a shopper wish list.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient=GetWishlistItemClient( wishlistId,  wishlistItemId,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItem wishlistItem = client.Result();
	 *

	 * @param responseFields Use this field to include those fields which are not included by default.
	 * @param wishlistId Unique identifier of the wish list.
	 * @param wishlistItemId Unique identifier of the item to remove from the shopper wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> getWishlistItemClient(String wishlistId, String wishlistItemId, String responseFields) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.getWishlistItemUrl(responseFields, wishlistId, wishlistItemId);
		String verb = "GET";
		Class<?> clz = com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem.class;
		MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient = (MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>) MozuClientFactory.getInstance(clz);
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		return mozuClient;

	}

	/**
	 * Retrieves a list of items in a shopper wish list according to any specified filter and sort criteria.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> mozuClient=GetWishlistItemsClient( wishlistId);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItemCollection wishlistItemCollection = client.Result();
	 *

	 * @param wishlistId Unique identifier of the wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> getWishlistItemsClient(String wishlistId) throws Exception
	{
		return getWishlistItemsClient( wishlistId,  null,  null,  null,  null,  null);
	}

	/**
	 * Retrieves a list of items in a shopper wish list according to any specified filter and sort criteria.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> mozuClient=GetWishlistItemsClient( wishlistId,  startIndex,  pageSize,  sortBy,  filter,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItemCollection wishlistItemCollection = client.Result();
	 *

	 * @param filter A set of expressions that consist of a field, operator, and value and represent search parameter syntax when filtering results of a query. Valid operators include equals (eq), does not equal (ne), greater than (gt), less than (lt), greater than or equal to (ge), less than or equal to (le), starts with (sw), or contains (cont). For example - "filter=IsDisplayed+eq+true"
	 * @param pageSize The number of results to display on each page when creating paged results from a query. The maximum value is 200.
	 * @param responseFields Use this field to include those fields which are not included by default.
	 * @param sortBy The property by which to sort results and whether the results appear in ascending (a-z) order, represented by ASC or in descending (z-a) order, represented by DESC. The sortBy parameter follows an available property. For example: "sortBy=productCode+asc"
	 * @param startIndex When creating paged results from a query, this value indicates the zero-based offset in the complete result set where the returned entities begin. For example, with a PageSize of 25, to get the 51st through the 75th items, use startIndex=3.
	 * @param wishlistId Unique identifier of the wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> getWishlistItemsClient(String wishlistId, Integer startIndex, Integer pageSize, String sortBy, String filter, String responseFields) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.getWishlistItemsUrl(filter, pageSize, responseFields, sortBy, startIndex, wishlistId);
		String verb = "GET";
		Class<?> clz = com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection.class;
		MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> mozuClient = (MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection>) MozuClientFactory.getInstance(clz);
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		return mozuClient;

	}

	/**
	 * Retrieve a list of items in a customer wish list by supplying the wish list name.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> mozuClient=GetWishlistItemsByWishlistNameClient( customerAccountId,  wishlistName);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItemCollection wishlistItemCollection = client.Result();
	 *

	 * @param customerAccountId The unique identifier of the customer account for which to retrieve wish lists.
	 * @param wishlistName The name of the wish list to retrieve.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> getWishlistItemsByWishlistNameClient(Integer customerAccountId, String wishlistName) throws Exception
	{
		return getWishlistItemsByWishlistNameClient( customerAccountId,  wishlistName,  null,  null,  null,  null,  null);
	}

	/**
	 * Retrieve a list of items in a customer wish list by supplying the wish list name.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> mozuClient=GetWishlistItemsByWishlistNameClient( customerAccountId,  wishlistName,  startIndex,  pageSize,  sortBy,  filter,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItemCollection wishlistItemCollection = client.Result();
	 *

	 * @param customerAccountId The unique identifier of the customer account for which to retrieve wish lists.
	 * @param filter A set of expressions that consist of a field, operator, and value and represent search parameter syntax when filtering results of a query. Valid operators include equals (eq), does not equal (ne), greater than (gt), less than (lt), greater than or equal to (ge), less than or equal to (le), starts with (sw), or contains (cont). For example - "filter=IsDisplayed+eq+true"
	 * @param pageSize The number of results to display on each page when creating paged results from a query. The maximum value is 200.
	 * @param responseFields Use this field to include those fields which are not included by default.
	 * @param sortBy The property by which to sort results and whether the results appear in ascending (a-z) order, represented by ASC or in descending (z-a) order, represented by DESC. The sortBy parameter follows an available property. For example: "sortBy=productCode+asc"
	 * @param startIndex When creating paged results from a query, this value indicates the zero-based offset in the complete result set where the returned entities begin. For example, with a PageSize of 25, to get the 51st through the 75th items, use startIndex=3.
	 * @param wishlistName The name of the wish list to retrieve.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> getWishlistItemsByWishlistNameClient(Integer customerAccountId, String wishlistName, Integer startIndex, Integer pageSize, String sortBy, String filter, String responseFields) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.getWishlistItemsByWishlistNameUrl(customerAccountId, filter, pageSize, responseFields, sortBy, startIndex, wishlistName);
		String verb = "GET";
		Class<?> clz = com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection.class;
		MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection> mozuClient = (MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItemCollection>) MozuClientFactory.getInstance(clz);
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		return mozuClient;

	}

	/**
	 * Adds a product in a site's catalog as an item in a shopper wish list.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient=AddItemToWishlistClient( wishlistItem,  wishlistId);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItem wishlistItem = client.Result();
	 *

	 * @param wishlistId Unique identifier of the wish list.
	 * @param wishlistItem Properties of an item in a shopper wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> addItemToWishlistClient(com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem wishlistItem, String wishlistId) throws Exception
	{
		return addItemToWishlistClient( wishlistItem,  wishlistId,  null);
	}

	/**
	 * Adds a product in a site's catalog as an item in a shopper wish list.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient=AddItemToWishlistClient( wishlistItem,  wishlistId,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItem wishlistItem = client.Result();
	 *

	 * @param responseFields Use this field to include those fields which are not included by default.
	 * @param wishlistId Unique identifier of the wish list.
	 * @param wishlistItem Properties of an item in a shopper wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> addItemToWishlistClient(com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem wishlistItem, String wishlistId, String responseFields) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.addItemToWishlistUrl(responseFields, wishlistId);
		String verb = "POST";
		Class<?> clz = com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem.class;
		MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient = (MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>) MozuClientFactory.getInstance(clz);
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		mozuClient.setBody(wishlistItem);
		return mozuClient;

	}

	/**
	 * Updates the quantity of an item in a shopper wish list.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient=UpdateWishlistItemQuantityClient( wishlistId,  wishlistItemId,  quantity);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItem wishlistItem = client.Result();
	 *

	 * @param quantity The number of cart items in the shopper's active cart.
	 * @param wishlistId Unique identifier of the wish list.
	 * @param wishlistItemId Unique identifier of the item to remove from the shopper wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> updateWishlistItemQuantityClient(String wishlistId, String wishlistItemId, Integer quantity) throws Exception
	{
		return updateWishlistItemQuantityClient( wishlistId,  wishlistItemId,  quantity,  null);
	}

	/**
	 * Updates the quantity of an item in a shopper wish list.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient=UpdateWishlistItemQuantityClient( wishlistId,  wishlistItemId,  quantity,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItem wishlistItem = client.Result();
	 *

	 * @param quantity The number of cart items in the shopper's active cart.
	 * @param responseFields Use this field to include those fields which are not included by default.
	 * @param wishlistId Unique identifier of the wish list.
	 * @param wishlistItemId Unique identifier of the item to remove from the shopper wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> updateWishlistItemQuantityClient(String wishlistId, String wishlistItemId, Integer quantity, String responseFields) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.updateWishlistItemQuantityUrl(quantity, responseFields, wishlistId, wishlistItemId);
		String verb = "PUT";
		Class<?> clz = com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem.class;
		MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient = (MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>) MozuClientFactory.getInstance(clz);
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		return mozuClient;

	}

	/**
	 * Updates the details of an item in a shopper wish list.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient=UpdateWishlistItemClient( wishlistItem,  wishlistId,  wishlistItemId);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItem wishlistItem = client.Result();
	 *

	 * @param wishlistId Unique identifier of the wish list.
	 * @param wishlistItemId Unique identifier of the item to remove from the shopper wish list.
	 * @param wishlistItem Properties of an item in a shopper wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> updateWishlistItemClient(com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem wishlistItem, String wishlistId, String wishlistItemId) throws Exception
	{
		return updateWishlistItemClient( wishlistItem,  wishlistId,  wishlistItemId,  null);
	}

	/**
	 * Updates the details of an item in a shopper wish list.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient=UpdateWishlistItemClient( wishlistItem,  wishlistId,  wishlistItemId,  responseFields);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * WishlistItem wishlistItem = client.Result();
	 *

	 * @param responseFields Use this field to include those fields which are not included by default.
	 * @param wishlistId Unique identifier of the wish list.
	 * @param wishlistItemId Unique identifier of the item to remove from the shopper wish list.
	 * @param wishlistItem Properties of an item in a shopper wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> updateWishlistItemClient(com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem wishlistItem, String wishlistId, String wishlistItemId, String responseFields) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.updateWishlistItemUrl(responseFields, wishlistId, wishlistItemId);
		String verb = "PUT";
		Class<?> clz = com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem.class;
		MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem> mozuClient = (MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.WishlistItem>) MozuClientFactory.getInstance(clz);
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		mozuClient.setBody(wishlistItem);
		return mozuClient;

	}

	/**
	 * Removes all items associated with a shopper wish list.
	 *

	 * MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.Wishlist> mozuClient=RemoveAllWishlistItemsClient( wishlistId);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 * Wishlist wishlist = client.Result();
	 *

	 * @param wishlistId Unique identifier of the wish list.
	 * @return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.wishlists.Wishlist>
	 * @see com.mozu.api.contracts.commerceruntime.wishlists.Wishlist
	 */
	public static MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.Wishlist> removeAllWishlistItemsClient(String wishlistId) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.removeAllWishlistItemsUrl(wishlistId);
		String verb = "DELETE";
		Class<?> clz = com.mozu.api.contracts.commerceruntime.wishlists.Wishlist.class;
		MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.Wishlist> mozuClient = (MozuClient<com.mozu.api.contracts.commerceruntime.wishlists.Wishlist>) MozuClientFactory.getInstance(clz);
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		return mozuClient;

	}

	/**
	 * Removes an item from the wish list specified in the request.
	 *

	 * MozuClient mozuClient=DeleteWishlistItemClient( wishlistId,  wishlistItemId);
	 * client.setBaseAddress(url);
	 * client.executeRequest();
	 *

	 * @param wishlistId Unique identifier of the wish list.
	 * @param wishlistItemId Unique identifier of the item to remove from the shopper wish list.
	 * @return Mozu.Api.MozuClient
	 */
	public static MozuClient deleteWishlistItemClient(String wishlistId, String wishlistItemId) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.wishlists.WishlistItemUrl.deleteWishlistItemUrl(wishlistId, wishlistItemId);
		String verb = "DELETE";
				MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance();
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		return mozuClient;

	}

}


text:
========================
REST API Version History
========================

**1.31** (Ocata)

    Added the following fields to the node object, to allow getting and
    setting interfaces for a dynamic driver:

    * boot_interface
    * console_interface
    * deploy_interface
    * inspect_interface
    * management_interface
    * power_interface
    * raid_interface
    * vendor_interface

**1.30** (Ocata)

    Added dynamic driver APIs.

    * GET /v1/drivers now accepts a ``type`` parameter (optional, one of
      ``classic`` or ``dynamic``), to limit the result to only classic drivers
      or dynamic drivers (hardware types). Without this parameter, both
      classic and dynamic drivers are returned.

    * GET /v1/drivers now accepts a ``detail`` parameter (optional, one of
      ``True`` or ``False``), to show all fields for a driver. Defaults to
      ``False``.

    * GET /v1/drivers now returns an additional ``type`` field to show if the
      driver is classic or dynamic.

    * GET /v1/drivers/<name> now returns an additional ``type`` field to show
      if the driver is classic or dynamic.

    * GET /v1/drivers/<name> now returns additional fields that are null for
      classic drivers, and set as following for dynamic drivers:

        * The value of the default_<interface-type>_interface is the entrypoint
          name of the calculated default interface for that type:

            * default_boot_interface
            * default_console_interface
            * default_deploy_interface
            * default_inspect_interface
            * default_management_interface
            * default_network_interface
            * default_power_interface
            * default_raid_interface
            * default_vendor_interface

        * The value of the enabled_<interface-type>_interfaces is a list of
          entrypoint names of the enabled interfaces for that type:

            * enabled_boot_interfaces
            * enabled_console_interfaces
            * enabled_deploy_interfaces
            * enabled_inspect_interfaces
            * enabled_management_interfaces
            * enabled_network_interfaces
            * enabled_power_interfaces
            * enabled_raid_interfaces
            * enabled_vendor_interfaces

**1.29** (Ocata)

    Add a new management API to support inject NMI,
    'PUT /v1/nodes/(node_ident)/management/inject_nmi'.

**1.28** (Ocata)

    Add '/v1/nodes/<node identifier>/vifs' endpoint for attach, detach and list of VIFs.

**1.27** (Ocata)

    Add ``soft rebooting`` and ``soft power off`` as possible values
    for the ``target`` field of the power state change payload, and
    also add ``timeout`` field to it.

**1.26** (Ocata)

    Add portgroup ``mode`` and ``properties`` fields.

**1.25** (Ocata)

    Add possibility to unset chassis_uuid from a node.

**1.24** (Ocata)

    Added new endpoints '/v1/nodes/<node>/portgroups' and '/v1/portgroups/<portgroup>/ports'.
    Added new field ``port.portgroup_uuid``.

**1.23** (Ocata)

    Added '/v1/portgroups/ endpoint.

**1.22** (Newton, 6.1.0)

    Added endpoints for deployment ramdisks.

**1.21** (Newton, 6.1.0)

    Add node ``resource_class`` field.

**1.20** (Newton, 6.1.0)

    Add node ``network_interface`` field.

**1.19** (Newton, 6.1.0)

    Add ``local_link_connection`` and ``pxe_enabled`` fields to the port object.

**1.18** (Newton, 6.1.0)

    Add ``internal_info`` readonly field to the port object, that will be used
    by ironic to store internal port-related information.

**1.17** (Newton, 6.0.0)

    Addition of provision_state verb ``adopt`` which allows an operator
    to move a node from ``manageable`` state to ``active`` state without
    performing a deployment operation on the node. This is intended for
    nodes that have already been deployed by external means.

**1.16** (Mitaka, 5.0.0)

    Add ability to filter nodes by driver.

**1.15** (Mitaka, 5.0.0)

    Add ability to do manual cleaning when a node is in the manageable
    provision state via PUT v1/nodes/<identifier>/states/provision,
    target:clean, clean_steps:[...].

**1.14** (Liberty, 4.2.0)

    Make the following endpoints discoverable via Ironic API:

    * '/v1/nodes/<UUID or logical name>/states'
    * '/v1/drivers/<driver name>/properties'

**1.13** (Liberty, 4.2.0)

    Add a new verb ``abort`` to the API used to abort nodes in
    ``CLEANWAIT`` state.

**1.12** (Liberty, 4.2.0)

    This API version adds the following abilities:

    * Get/set ``node.target_raid_config`` and to get
      ``node.raid_config``.
    * Retrieve the logical disk properties for the driver.

**1.11** (Liberty, 4.0.0, breaking change)

    Newly registered nodes begin in the ``enroll`` provision state by default,
    instead of ``available``. To get them to the ``available`` state,
    the ``manage`` action must first be run to verify basic hardware control.
    On success the node moves to ``manageable`` provision state. Then the
    ``provide`` action must be run. Automated cleaning of the node is done and
    the node is made ``available``.

**1.10** (Liberty, 4.0.0)

    Logical node names support all RFC 3986 unreserved characters.
    Previously only valid fully qualified domain names could be used.

**1.9** (Liberty, 4.0.0)

    Add ability to filter nodes by provision state.

**1.8** (Liberty, 4.0.0)

    Add ability to return a subset of resource fields.

**1.7** (Liberty, 4.0.0)

    Add node ``clean_step`` field.

**1.6** (Kilo)

    Add :ref:`inspection` process: introduce ``inspecting`` and ``inspectfail``
    provision states, and ``inspect`` action that can be used when a node is in
    ``manageable`` provision state.

**1.5** (Kilo)

    Add logical node names that can be used to address a node in addition to
    the node UUID. Name is expected to be a valid `fully qualified domain
    name`_ in this version of API.

**1.4** (Kilo)

    Add ``manageable`` state and ``manage`` transition, which can be used to
    move a node to ``manageable`` state from ``available``.
    The node cannot be deployed in ``manageable`` state.
    This change is mostly a preparation for future inspection work
    and introduction of ``enroll`` provision state.

**1.3** (Kilo)

    Add node ``driver_internal_info`` field.

**1.2** (Kilo, breaking change)

    Renamed NOSTATE (``None`` in Python, ``null`` in JSON) node state to
    ``available``. This is needed to reduce confusion around ``None`` state,
    especially when future additions to the state machine land.

**1.1** (Kilo)

    This was the initial version when API versioning was introduced.
    Includes the following changes from Kilo release cycle:

    * Add node ``maintenance_reason`` field and an API endpoint to
      set/unset the node maintenance mode.

    * Add sync and async support for vendor passthru methods.

    * Vendor passthru endpoints support different HTTP methods, not only
      ``POST``.

    * Make vendor methods discoverable via the Ironic API.

    * Add logic to store the config drive passed by Nova.

    This has been the minimum supported version since versioning was
    introduced.

**1.0** (Juno)

    This version denotes Juno API and was never explicitly supported, as API
    versioning was not implemented in Juno, and **1.1** became the minimum
    supported version in Kilo.

.. _fully qualified domain name: https://en.wikipedia.org/wiki/Fully_qualified_domain_name

redpajama_set_name: RedPajamaGithub


text:
package io.crate.integrationtests;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicReference;

import org.elasticsearch.test.IntegTestCase;
import org.hamcrest.Matchers;
import org.junit.Test;

import io.crate.testing.SQLResponse;

public class InformationSchemaQueryTest extends IntegTestCase {

    @Test
    public void testDoNotIgnoreClosedTables() throws Exception {
        execute("create table t3 (col1 integer, col2 string) " +
                "clustered into 5 shards");
        execute("create table t1 (col1 integer, col2 string) " +
                "clustered into 5 shards " +
                "with (number_of_replicas=0)");

        ensureYellow();
        execute("alter table t3 close");

        execute("select * from information_schema.tables where table_schema = ?", new Object[]{sqlExecutor.getCurrentSchema()});
        assertEquals(2L, response.rowCount());
        execute("select * from information_schema.columns where table_name = 't3'");
        assertEquals(2, response.rowCount());
    }

    @Test
    public void testConcurrentInformationSchemaQueries() throws Exception {
        final SQLResponse response = execute("select * from information_schema.columns " +
                                             "order by table_schema, table_name, column_name");
        final CountDownLatch latch = new CountDownLatch(40);
        final AtomicReference<AssertionError> lastAssertionError = new AtomicReference<>();

        for (int i = 0; i < 40; i++) {
            final Thread t = new Thread(new Runnable() {
                @Override
                public void run() {
                    SQLResponse resp = execute("select * from information_schema.columns " +
                                               "order by table_schema, table_name, column_name");
                    try {
                        assertThat(resp.rows(), Matchers.equalTo(response.rows()));
                    } catch (AssertionError e) {
                        lastAssertionError.set(e);
                    }
                    latch.countDown();
                }
            });
            t.start();
        }

        latch.await();
        AssertionError assertionError = lastAssertionError.get();
        if (assertionError != null) {
            throw assertionError;
        }
    }

    @Test
    public void testConcurrentUnassignedShardsReferenceResolver() throws Exception {
        internalCluster().ensureAtMostNumDataNodes(1);
        execute("create table t1 (col1 integer) " +
                "clustered into 1 shards ");
        execute("create table t2 (col1 integer) " +
                "clustered into 1 shards ");
        ensureYellow();

        final SQLResponse response = execute("select * from sys.shards where table_name in ('t1', 't2') and state='UNASSIGNED' order by schema_name, table_name, id");
        final CountDownLatch latch = new CountDownLatch(40);
        final AtomicReference<AssertionError> lastAssertionError = new AtomicReference<>();
        for (int i = 0; i < 40; i++) {
            final Thread t = new Thread(new Runnable() {
                @Override
                public void run() {
                    SQLResponse resp = execute("select * from sys.shards where table_name in ('t1', 't2') and state='UNASSIGNED' order by schema_name, table_name, id");
                    try {
                        assertThat(resp.rows(), Matchers.equalTo(response.rows()));
                    } catch (AssertionError e) {
                        lastAssertionError.set(e);
                    }
                    latch.countDown();
                }
            });
            t.start();
        }
        latch.await();
        AssertionError assertionError = lastAssertionError.get();
        if (assertionError != null) {
            throw assertionError;
        }
    }
}


text:
"""Wrapper module for reading and parsing cd-info output"""

import io
from lxml import etree
from . import shared
from . import config

def parseCDInfoLog(fileCDInfo):
    """Determine carrier type and number of sessions on carrier"""

    # Create cd-info element
    cdInfoName = etree.QName(config.cdInfo_ns, "cd-info")
    cdInfoElt = etree.Element(
        cdInfoName, nsmap=config.NSMAP)

    # Add trackList and analysisReport elements
    trackListElt = etree.SubElement(cdInfoElt,
                                    "{%s}trackList" % (config.cdInfo_ns))
    analysisReportElt = etree.SubElement(cdInfoElt,
                                         "{%s}analysisReport" % (config.cdInfo_ns))

    # Open cd-info log file and read to list
    outAsList = []

    with io.open(fileCDInfo, "r", encoding="utf-8") as fCdInfoLogFile:
        for line in fCdInfoLogFile:
            line = line.strip()
            outAsList.append(line)
    fCdInfoLogFile.close()

    # Set up list and empty string for storing analysis report
    analysisReport = []
    analysisReportString = ''

    # Initialise variable that reports LSN of data track
    dataTrackLSNStart = 0

    # Locate track list and analysis report in cd-info output
    startIndexTrackList = shared.index_startswith_substring(outAsList, "CD-ROM Track List")
    startIndexAnalysisReport = shared.index_startswith_substring(outAsList, "CD Analysis Report")

    # Parse track list and store interesting bits in dictionary
    for i in range(startIndexTrackList + 2, startIndexAnalysisReport - 1, 1):
        thisTrack = outAsList[i]
        if not thisTrack.startswith("++"):  # This gets rid of warning messages, do we want that?
            thisTrack = thisTrack.split(": ")
            trackNumber = int(thisTrack[0].strip())
            trackDetails = thisTrack[1].split()
            trackMSFStart = trackDetails[0]  # Minute:Second:Frame
            trackLSNStart = trackDetails[1]  # Logical Sector Number
            trackType = trackDetails[2]  # Track type: audio / data
            trackGreen = trackDetails[3]  # Don't  know what this means
            trackCopy = trackDetails[4]  # Don't  know what this means
            if trackType == 'audio':
                trackChannels = trackDetails[5]
                trackPreemphasis = trackDetails[6]

            if trackType == 'data':
                dataTrackLSNStart = int(trackLSNStart)

            # Append properties to trackList
            trackElt = etree.SubElement(trackListElt,
                                        "{%s}track" % (config.cdInfo_ns))
            trackNumberElt = etree.SubElement(trackElt,
                                              "{%s}trackNumber" % (config.cdInfo_ns))
            trackNumberElt.text = str(trackNumber)
            MSFElt = etree.SubElement(trackElt,
                                      "{%s}MSF" % (config.cdInfo_ns))
            MSFElt.text = trackMSFStart
            LSNElt = etree.SubElement(trackElt,
                                      "{%s}LSN" % (config.cdInfo_ns))
            LSNElt.text = str(trackLSNStart)
            TypeElt = etree.SubElement(trackElt,
                                       "{%s}Type" % (config.cdInfo_ns))
            TypeElt.text = trackType
            if trackType != 'leadout':
                GreenElt = etree.SubElement(trackElt,
                                            "{%s}Green" % (config.cdInfo_ns))
                GreenElt.text = trackGreen
                CopyElt = etree.SubElement(trackElt,
                                           "{%s}Copy" % (config.cdInfo_ns))
                CopyElt.text = trackCopy
            if trackType == 'audio':
                ChannelsElt = etree.SubElement(trackElt,
                                               "{%s}Channels" % (config.cdInfo_ns))
                ChannelsElt.text = trackChannels
                PreemphasisElt = etree.SubElement(trackElt,
                                                  "{%s}Preemphasis" % (config.cdInfo_ns))
                PreemphasisElt.text = trackPreemphasis

    # Parse analysis report
    for i in range(startIndexAnalysisReport + 1, len(outAsList), 1):
        thisLine = outAsList[i]
        analysisReport.append(thisLine)
        analysisReportString = analysisReportString + thisLine + "\n"

    # Flags for CD/Extra / multisession / mixed-mode
    # Note that single-session mixed mode CDs are erroneously reported as
    # multisession by libcdio. See: http://savannah.gnu.org/bugs/?49090#comment1
    cdExtra = shared.index_startswith_substring(analysisReport, "CD-Plus/Extra") != -1
    multiSession = shared.index_startswith_substring(analysisReport, "session #") != -1
    mixedMode = shared.index_startswith_substring(analysisReport, "mixed mode CD") != -1

    # Add individual parsed values from analysis report to separate subelements
    cdExtraElt = etree.SubElement(analysisReportElt,
                                  "{%s}cdExtra" % (config.cdInfo_ns))
    cdExtraElt.text = str(cdExtra)
    multiSessionElt = etree.SubElement(analysisReportElt,
                                       "{%s}multiSession" % (config.cdInfo_ns))
    multiSessionElt.text = str(multiSession)
    mixedModeElt = etree.SubElement(analysisReportElt,
                                    "{%s}mixedMode" % (config.cdInfo_ns))
    mixedModeElt.text = str(mixedMode)

    # Add unformatted analysis report to analysisReportFullElt element
    analysisReportFullElt = etree.SubElement(analysisReportElt,
                                             "{%s}fullReport" % (config.cdInfo_ns))
    analysisReportFullElt.text = analysisReportString

    return cdInfoElt, dataTrackLSNStart


text:
"""Data access modules for loading system-of-systems model configuration
"""

# import classes for access like ::
#         from smif.data_layer import DataHandle`
from smif.data_layer.data_array import DataArray
from smif.data_layer.data_handle import DataHandle
from smif.data_layer.results import Results
from smif.data_layer.store import Store

# Define what should be imported as * ::
#         from smif.data_layer import *
__all__ = ['DataArray', 'DataHandle', 'Results', 'Store']


text:
<phpunit bootstrap="./bootstrap.php">
  <testsuites>
    <testsuite name="satal">
      <directory>./</directory>
    </testsuite>
  </testsuites>
</phpunit>


text:
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
    <title>Welcome to @product.name@ v@product.version@!</title>
    <link href="css/is-docs.css" rel="stylesheet"/>

@product.name@ : An Open Source Identity and Entitlement Management Server

@product.name@ v@product.version@ Release Note

18 December 2015

    The @product.name@ team is pleased to announce the release of version @product.version@ of
    the @product.name@ (IS).

@product.name@ is an open source Identity and Entitlement management server. It supports a wide array of
    authentication
    protocols such as SAML 2.0 Web SSO, OpenID, OAuth 2.0/1.0a, OpenID Connect and WS-Federation Passive.
    It supports role based authorization and fined grained authorization with XACML 2.0/3.0 while inbound/outbound
    provisioning is
    supported through SCIM and SPML

    @product.name@ is developed on top of the revolutionary
    WSO2 Carbon platform,
    an OSGi based framework that provides seamless modularity to your SOA via
    componentization.

All the major features have been developed as pluggable Carbon components.

    You can download this distribution from
    http://wso2.com/products/identity-server/.

The online documentation is available at

        http://docs.wso2.org/wiki/display/IS510/WSO2+Identity+Server+Documentation.

How to Run

Extract the downloaded zip

Go to the bin directory in the extracted folder

Run the wso2server.sh or wso2server.bat as appropriate

If you need to start the OSGi console with the server use the property
        -DosgiConsole when starting the server.

New Features In This Release

Workflow support for Identity Server

Engage workflows for any user/role operations carried out using WSO2 IS Management Console.
        For example, when a new user gets registered with WSO2 IS, a workflow will automatically be triggered and
        s/he will be assigned to a particular user role.

FIDO compliance

Fast Identity Online (FIDO) is a specification developed to reduce the reliance on password
        for user authentication. The standard will enable any Web/cloud application to interface with a
        variety of FIDO-enabled security devices.

Link multiple user accounts

In cases where users will have multiple entries in their respective user stores, to avoid requiring multiple
        logins to an application to obtain a fully privileged view for a single user's details, we now support merging
        of multiple user profiles.

PATCH operation support for SCIM 1.1

PUT supports the replace operation but not the update operation. Since group is a heavy resource, the
        operation that alters without replacement (PATCH) needs to be implemented. If not each time a new user is
        added to the group, all the users should be sent in the PUT request.

SAML 2.0 Bearer Token Renewal

In IS 5.0.0, STS feature supports renewing Bearer type SAML 1.1 tokens only;
        attempts to renew Bearer type SAML 2.0 Tokens get failed. With IS 5.2.0 product will
        facilitate renewing expired Bearer type SAML 2.0 Tokens.

OpenID Connect Core 1.0 Compliance

The IS 5.0.0 had OpenID Support, however there were many points in the spec that were being violated.
        Now that the specification is finalized we have made IS 5.2.0 OpenID Connect support specification
        compliant. A major improvement this area is support for IDToken response type from the
        OpenID Connect authorization endpoint.

Ability to notify external endpoints when changes are made to Identities

@product.name@ is now able to send invalidation notifications to external endpoints when there is a change in user
        roles, permissions or attributes as well as clear the internal cache when user roles, permissions or attributes
        been updated

Key Features of @product.name@

Dynamically discovered federation

Identity Bridge - translation between heterogeneous Identity authentication protocols

SP Initiated and IDP Initiated SAML 2.0 Web Browser SSO provider

SAML2 Single Logout profile support

OpenID 2.0 Provider

OpenID Connect Authorization Server

Social login with Facebook, Google, Yahoo and Windows Live

XACML 3.0/2.0 based Entitlement Engine with WS-XACML support

OAuth 2.0/1.0a Authorization Server with OAuth 2.0/1.0a support

Inbound and Outbound Identity Provisioning with SCIM 1.1

Outbound Identity Provisioning with SPML 2.0, Salesforce and GoogleApps

Integrated Windows Authentication and webSEAL authentication

Multi-option and multi-step (multi-factor) authentication

Claim based Security Token Service(STS) with SAML 2.0/1.1 support.

Support for various types of User Stores such as JDBC, Cassandra, LDAP, Active Directory in Read/Write mode.

Claim Management

User Profiles and Profile Management

Separable front-end and back-end - a single front-end server can be used to administer several back-endservers

Identity Bridge

Multi-option and multi-step authentication

 Request Path Authenticators.

Social Login with Facebook / Google / Microsoft Windows Live.

Ability to plug-in custom developed authenticators.

Provisioning Bridge.

Just-in-time provisioning.

Ability to plug-in custom developed provisioning connectors.

User Dashboard.

SAML2 Web SSO profile Request / Response validator.

Remote User Store Management.

Custom permissions.

Encrypted SAML2 Assertions.

NTLM grant type for OAuth 2.0

Workflows for user management operations

2 factor authentication with FIDO

Linking 2 or more local/federated user accounts

Issues Fixed in This Release

    This release of WSO2 Identity Server comes with a number of bug fixes, both in the base Carbon
    framework and in the Identity Server specific components. All the issues which have been
    fixed in this release can be found at:

Fixed Issues for WSO2 Identity Server 5.2.0

Known Issues

    All the known issues in WSO2 Identity Server 5.2.0 are reported at:

Known issues in WSO2 Identity Server 5.2.0

How You Can Contribute

    Mailing Lists

    Join our mailing list and correspond with the developers directly.

        Developer list : dev@wso2.org
        | Subscribe
        | Mail Archive

        User forum : StackOverflow

    Reporting Issues

    We encourage you to report issues, documentation faults and feature requests regarding
    WSO2 Identity Server or in the Carbon base framework through the public
    @product.name@ JIRA or Carbon JIRA.

Support

    We are committed to ensuring that your enterprise middleware deployment is completely supported
    from evaluation to
    production. Our unique approach ensures that all support leverages our open development
    methodology and is provided by
    the very same engineers who build the technology.

    For more details and to take advantage of this unique opportunity

        http://wso2.com/support/

For more information about WSO2 Identity Server, please see http://wso2.com/products/identity-server or visit
    the WSO2 Oxygen Tank developer portal for additional resources.

Thank you for your interest in @product.name@.

Copyright WSO2 Inc.


text:
def job_discovery_generate_job_with_custom_attribute company_name:, requisition_id:
  # [START job_discovery_generate_job_with_custom_attribute]
  # company_name   = "The resource name of the company listing the job. The format is "projects/{project_id}/companies/{company_id}""
  # requisition_id = "The posting ID, assigned by the client to identify a job"

  require "google/apis/jobs_v3"

  jobs = Google::Apis::JobsV3
  talent_solution_client = jobs::CloudTalentSolutionService.new
  # @see
  # https://developers.google.com/identity/protocols/application-default-credentials#callingruby
  talent_solution_client.authorization = Google::Auth.get_application_default(
    "https://www.googleapis.com/auth/jobs"
  )
  # Constructs custom attributes map
  custom_attributes = {}
  # First custom attribute
  custom_attributes["someFieldName1"] = jobs::CustomAttribute.new string_values: ["value1"],
                                                                  filterable:    true
  # Second custom attribute
  custom_attributes["someFieldName2"] = jobs::CustomAttribute.new long_values: [256],
                                                                  filterable:  true
  # Creates job with custom attributes
  job_generated =
    jobs::Job.new requisition_id:    requisition_id,
                  title:             " Lab Technician",
                  company_name:      company_name,
                  application_info:  (jobs::ApplicationInfo.new uris: ["http://careers.google.com"]),
                  description:       "Design, develop, test, deploy, maintain and improve software.",
                  custom_attributes: custom_attributes

  puts "Featured Job generated: #{job_generated.to_json}"
  job_generated
  # [END job_discovery_generate_job_with_custom_attribute]
end

def job_discovery_filters_on_long_value_custom_attribute project_id:
  # [START job_discovery_filters_on_long_value_custom_attribute]
  # project_id       = "Id of the project"

  require "google/apis/jobs_v3"

  jobs = Google::Apis::JobsV3
  talent_solution_client = jobs::CloudTalentSolutionService.new
  # @see https://developers.google.com/identity/protocols/application-default-credentials#callingruby
  talent_solution_client.authorization = Google::Auth.get_application_default(
    "https://www.googleapis.com/auth/jobs"
  )
  # Make sure to set the request_metadata the same as the associated search request
  request_metadata = jobs::RequestMetadata.new user_id:    "HashedUserId",
                                               session_id: "HashedSessionId",
                                               domain:     "www.google.com"
  # Perform a search for analyst  related jobs
  custom_attribute_filter = "(255 <= someFieldName2) AND (someFieldName2 <= 257)"
  job_query = jobs::JobQuery.new custom_attribute_filter: custom_attribute_filter
  search_jobs_request = jobs::SearchJobsRequest.new request_metadata: request_metadata,
                                                    job_query:        job_query,
                                                    job_view:         "JOB_VIEW_FULL"
  search_jobs_response = talent_solution_client.search_jobs project_id, search_jobs_request

  puts search_jobs_response.to_json
  search_jobs_response
  # [END job_discovery_filters_on_long_value_custom_attribute]
end

def job_discovery_filters_on_string_value_custom_attribute project_id:
  # [START job_discovery_filters_on_string_value_custom_attribute]
  # project_id      = "Id of the project"

  require "google/apis/jobs_v3"

  jobs = Google::Apis::JobsV3
  talent_solution_client = jobs::CloudTalentSolutionService.new
  # @see https://developers.google.com/identity/protocols/application-default-credentials#callingruby
  talent_solution_client.authorization = Google::Auth.get_application_default(
    "https://www.googleapis.com/auth/jobs"
  )

  # Make sure to set the request_metadata the same as the associated search request
  request_metadata = jobs::RequestMetadata.new user_id:    "HashedUserId",
                                               session_id: "HashedSessionId",
                                               domain:     "www.google.com"

  # Perform a search for analyst  related jobs
  job_query = jobs::JobQuery.new custom_attribute_filter: "NOT EMPTY(someFieldName1)"
  search_jobs_request = jobs::SearchJobsRequest.new request_metadata: request_metadata,
                                                    job_query:        job_query,
                                                    job_view:         "JOB_VIEW_FULL"
  search_jobs_response = talent_solution_client.search_jobs project_id, search_jobs_request

  puts search_jobs_response.to_json
  search_jobs_response
  # [END job_discovery_filters_on_string_value_custom_attribute]
end

def job_discovery_filters_on_multi_custom_attributes project_id:
  # [START job_discovery_filters_on_multi_custom_attributes]
  # project_id       = "Id of the project"

  require "google/apis/jobs_v3"

  jobs = Google::Apis::JobsV3
  talent_solution_client = jobs::CloudTalentSolutionService.new
  # @see
  # https://developers.google.com/identity/protocols/application-default-credentials#callingruby
  talent_solution_client.authorization = Google::Auth.get_application_default(
    "https://www.googleapis.com/auth/jobs"
  )

  # Make sure to set the request_metadata the same as the associated search request
  request_metadata = jobs::RequestMetadata.new user_id:    "HashedUserId",
                                               session_id: "HashedSessionId",
                                               domain:     "www.google.com"
  custom_attribute_filter = "NOT EMPTY(someFieldName1) " \
                            "AND ((255 <= someFieldName2) OR (someFieldName2 <= 213))"
  job_query = jobs::JobQuery.new custom_attribute_filter: custom_attribute_filter
  search_jobs_request = jobs::SearchJobsRequest.new request_metadata: request_metadata,
                                                    job_query:        job_query,
                                                    job_view:         "JOB_VIEW_FULL"
  search_jobs_response = talent_solution_client.search_jobs project_id, search_jobs_request

  puts search_jobs_response.to_json
  search_jobs_response
  # [END job_discovery_filters_on_multi_custom_attributes]
end

def run_custom_attribute_sample arguments
  require_relative "basic_company_sample"
  require_relative "basic_job_sample"

  command = arguments.shift
  default_project_id = "projects/#{ENV['GOOGLE_CLOUD_PROJECT']}"

  company_name = "#{default_project_id}/companies/#{arguments.shift}"

  case command
  when "create_job_with_custom_attribute"
    job_generated = job_discovery_generate_job_with_custom_attribute company_name:   company_name,
                                                                     requisition_id: arguments.shift
    job_discovery_create_job job_to_be_created: job_generated,
                             project_id:        default_project_id
  when "filters_on_long_value_custom_attribute"
    job_discovery_filters_on_long_value_custom_attribute project_id: default_project_id
  when "filters_on_string_value_custom_attribute"
    job_discovery_filters_on_string_value_custom_attribute project_id: default_project_id
  when "filters_on_multi_custom_attributes"
    job_discovery_filters_on_multi_custom_attributes project_id: default_project_id
  else
    puts <<~USAGE
      Usage: bundle exec ruby custom_attribute_sample.rb [command] [arguments]
      Commands:
        create_job_with_custom_attribute               <company_name> <requisition_id>  Create job with custom attribute under given company.
        filters_on_long_value_custom_attribute         <project_id>                   Filter jobs on long value customer attribute under given comany.
        filters_on_string_value_custom_attribute       <project_id>                   Filter jobs on string value customer attribute under given comany.
        filters_on_multi_custom_attributes             <project_id>                   Filter jobs on multi customer attributes under given comany.
      Environment variables:
        GOOGLE_CLOUD_PROJECT must be set to your Google Cloud project ID
    USAGE
  end
end

run_custom_attribute_sample(*ARGV) if $PROGRAM_NAME == __FILE__


text:
layout: post
date: '2015-05-12'
title: "Weddington Way Wtoo 788 Sleeveless Floor-Length Aline/Princess"
category: Weddington Way
tags: [Weddington Way,Aline/Princess ,Sweetheart,Floor-Length,Sleeveless]
---
### Weddington Way Wtoo 788
Just **$189.99**
###   Sleeveless Floor-Length Aline/Princess

BRANDS	Weddington Way

Silhouette	Aline/Princess

Neckline	Sweetheart

Hemline/Train	Floor-Length

Sleeve	Sleeveless

Buy it: [https://www.readybrides.com/en/weddington-way/15423-weddington-way-wtoo-788.html](https://www.readybrides.com/en/weddington-way/15423-weddington-way-wtoo-788.html)


text:
namespace MassTransit.MongoDbIntegration.Tests
{
    using System.Threading;
    using System.Threading.Tasks;
    using Logging;
    using Microsoft.Extensions.DependencyInjection;
    using NUnit.Framework;
    using Responsible;
    using Testing;

    [Explicit]
    [TestFixture]
    public class Responding_through_the_outbox
    {
        [Test]
        public async Task Should_fault_when_failed_to_start()
        {
            await using var provider = CreateServiceProvider();

            var harness = provider.GetTestHarness();

            await harness.Start();

            IRequestClient<Start> client = harness.GetRequestClient<Start>();

            Assert.That(async () => await client.GetResponse<StartupComplete>(new Start { FailToStart = true }, harness.CancellationToken),
                Throws.TypeOf<RequestFaultException>());

            await harness.Stop();
        }

        [Test]
        public async Task Should_only_publish_one_fault()
        {
            await using var provider = CreateServiceProvider();

            var harness = provider.GetTestHarness();

            await harness.Start();

            var count = 0;
            harness.Bus.ConnectHandler<Fault<Start>>(async context =>
            {
                Interlocked.Increment(ref count);
            });

            IRequestClient<Start> client = harness.GetRequestClient<Start>();

            Assert.That(async () => await client.GetResponse<StartupComplete>(new Start { FailToStart = true }, harness.CancellationToken),
                Throws.TypeOf<RequestFaultException>());

            await harness.InactivityTask;

            Assert.That(count, Is.EqualTo(1));

            await harness.Stop();
        }

        [Test]
        public async Task Should_start_successfully()
        {
            await using var provider = CreateServiceProvider();

            var harness = provider.GetTestHarness();

            await harness.Start();

            IRequestClient<Start> client = harness.GetRequestClient<Start>();

            Response<StartupComplete> complete = await client.GetResponse<StartupComplete>(new Start(), harness.CancellationToken);

            await harness.Stop();
        }

        static ServiceProvider CreateServiceProvider()
        {
            var services = new ServiceCollection();

            services
                .AddMassTransitTestHarness(x =>
                {
                    x.AddMongoDbOutbox(r =>
                    {
                        r.Connection = "mongodb://127.0.0.1:27021";
                        r.DatabaseName = "sagaTest";
                    });

                    x.AddSagaStateMachine<ResponsibleStateMachine, ResponsibleState, ResponsibleStateDefinition>()
                        .MongoDbRepository(r =>
                        {
                            r.Connection = "mongodb://127.0.0.1:27021";
                            r.DatabaseName = "sagaTest";
                        });
                });

            services.AddOptions<TextWriterLoggerOptions>().Configure(options => options.Disable("Microsoft"));

            return services.BuildServiceProvider(true);
        }
    }

    namespace Responsible
    {
        using System;
        using TestFramework;

        public class ResponsibleStateDefinition :
            SagaDefinition<ResponsibleState>
        {
            readonly IServiceProvider _provider;

            public ResponsibleStateDefinition(IServiceProvider provider)
            {
                _provider = provider;
            }

            protected override void ConfigureSaga(IReceiveEndpointConfigurator endpointConfigurator,
                ISagaConfigurator<ResponsibleState> consumerConfigurator)
            {
                endpointConfigurator.UseMessageRetry(r => r.Intervals(100, 1000));

                endpointConfigurator.UseMongoDbOutbox(_provider);
            }
        }

        class ResponsibleStateMachine :
            MassTransitStateMachine<ResponsibleState>
        {
            public ResponsibleStateMachine()
            {
                InstanceState(x => x.CurrentState);

                Initially(
                    When(Started, x => x.Data.FailToStart)
                        .Then(context => throw new IntentionalTestException()),
                    When(Started, x => x.Data.FailToStart == false)
                        .Respond(new StartupComplete())
                        .TransitionTo(Running));
            }

            public State Running { get; private set; }
            public Event<Start> Started { get; private set; }
        }

        public class Start :
            CorrelatedBy<Guid>
        {
            public Start()
            {
                CorrelationId = NewId.NextGuid();
            }

            public bool FailToStart { get; set; }

            public Guid CorrelationId { get; private set; }
        }

        class StartupComplete
        {
        }

        public class ResponsibleState :
            SagaStateMachineInstance,
            ISagaVersion
        {
            public string CurrentState { get; set; }
            public int Version { get; set; }
            public Guid CorrelationId { get; set; }
        }
    }
}


text:
package com.luxoft.sqa.webtest;

import com.luxoft.sqa.model.ContactData;
import org.testng.annotations.Test;

public class ContactModificationTest extends TestBase {

    @Test(enabled = false)
    public void TestContactModification(){
        app.getNavigationHelper().goToHomePage();
        if (!app.getContactHelper().isThereAContact()){
            app.getNavigationHelper().goToAddNew();
            app.getContactHelper().contactCreation();
            app.getNavigationHelper().goToHomePage();
        }
        app.getContactHelper().selectFirstContact();
        app.getContactHelper().initFirstContactModification();

        app.getContactHelper().contactModification();
    }

}


text:
package com.github.dkanellis.skyspark.scala.test_utils

import org.scalatest.{BeforeAndAfter, FlatSpec, Matchers}

class IntegrationSpec extends FlatSpec with BeforeAndAfter with Matchers with SparkAddOn


text:
package com.amazonaws.services.opsworks.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 *

 * Describes an instance's RAID array.
 *

 *
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RaidArray implements Serializable, Cloneable, StructuredPojo {

    /**
     *

     * The array ID.
     *

     */
    private String raidArrayId;
    /**
     *

     * The instance ID.
     *

     */
    private String instanceId;
    /**
     *

     * The array name.
     *

     */
    private String name;
    /**
     *

     * The RAID level.
     *

     */
    private Integer raidLevel;
    /**
     *

     * The number of disks in the array.
     *

     */
    private Integer numberOfDisks;
    /**
     *

     * The array's size.
     *

     */
    private Integer size;
    /**
     *

     * The array's Linux device. For example /dev/mdadm0.
     *

     */
    private String device;
    /**
     *

     * The array's mount point.
     *

     */
    private String mountPoint;
    /**
     *

     * The array's Availability Zone. For more information, see Regions and Endpoints.
     *

     */
    private String availabilityZone;
    /**
     *

     * When the RAID array was created.
     *

     */
    private String createdAt;
    /**
     *

     * The stack ID.
     *

     */
    private String stackId;
    /**
     *

     * The volume type, standard or PIOPS.
     *

     */
    private String volumeType;
    /**
     *

     * For PIOPS volumes, the IOPS per disk.
     *

     */
    private Integer iops;

    /**
     *

     * The array ID.
     *

     *
     * @param raidArrayId
     *        The array ID.
     */

    public void setRaidArrayId(String raidArrayId) {
        this.raidArrayId = raidArrayId;
    }

    /**
     *

     * The array ID.
     *

     *
     * @return The array ID.
     */

    public String getRaidArrayId() {
        return this.raidArrayId;
    }

    /**
     *

     * The array ID.
     *

     *
     * @param raidArrayId
     *        The array ID.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withRaidArrayId(String raidArrayId) {
        setRaidArrayId(raidArrayId);
        return this;
    }

    /**
     *

     * The instance ID.
     *

     *
     * @param instanceId
     *        The instance ID.
     */

    public void setInstanceId(String instanceId) {
        this.instanceId = instanceId;
    }

    /**
     *

     * The instance ID.
     *

     *
     * @return The instance ID.
     */

    public String getInstanceId() {
        return this.instanceId;
    }

    /**
     *

     * The instance ID.
     *

     *
     * @param instanceId
     *        The instance ID.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withInstanceId(String instanceId) {
        setInstanceId(instanceId);
        return this;
    }

    /**
     *

     * The array name.
     *

     *
     * @param name
     *        The array name.
     */

    public void setName(String name) {
        this.name = name;
    }

    /**
     *

     * The array name.
     *

     *
     * @return The array name.
     */

    public String getName() {
        return this.name;
    }

    /**
     *

     * The array name.
     *

     *
     * @param name
     *        The array name.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withName(String name) {
        setName(name);
        return this;
    }

    /**
     *

     * The RAID level.
     *

     *
     * @param raidLevel
     *        The RAID level.
     */

    public void setRaidLevel(Integer raidLevel) {
        this.raidLevel = raidLevel;
    }

    /**
     *

     * The RAID level.
     *

     *
     * @return The RAID level.
     */

    public Integer getRaidLevel() {
        return this.raidLevel;
    }

    /**
     *

     * The RAID level.
     *

     *
     * @param raidLevel
     *        The RAID level.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withRaidLevel(Integer raidLevel) {
        setRaidLevel(raidLevel);
        return this;
    }

    /**
     *

     * The number of disks in the array.
     *

     *
     * @param numberOfDisks
     *        The number of disks in the array.
     */

    public void setNumberOfDisks(Integer numberOfDisks) {
        this.numberOfDisks = numberOfDisks;
    }

    /**
     *

     * The number of disks in the array.
     *

     *
     * @return The number of disks in the array.
     */

    public Integer getNumberOfDisks() {
        return this.numberOfDisks;
    }

    /**
     *

     * The number of disks in the array.
     *

     *
     * @param numberOfDisks
     *        The number of disks in the array.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withNumberOfDisks(Integer numberOfDisks) {
        setNumberOfDisks(numberOfDisks);
        return this;
    }

    /**
     *

     * The array's size.
     *

     *
     * @param size
     *        The array's size.
     */

    public void setSize(Integer size) {
        this.size = size;
    }

    /**
     *

     * The array's size.
     *

     *
     * @return The array's size.
     */

    public Integer getSize() {
        return this.size;
    }

    /**
     *

     * The array's size.
     *

     *
     * @param size
     *        The array's size.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withSize(Integer size) {
        setSize(size);
        return this;
    }

    /**
     *

     * The array's Linux device. For example /dev/mdadm0.
     *

     *
     * @param device
     *        The array's Linux device. For example /dev/mdadm0.
     */

    public void setDevice(String device) {
        this.device = device;
    }

    /**
     *

     * The array's Linux device. For example /dev/mdadm0.
     *

     *
     * @return The array's Linux device. For example /dev/mdadm0.
     */

    public String getDevice() {
        return this.device;
    }

    /**
     *

     * The array's Linux device. For example /dev/mdadm0.
     *

     *
     * @param device
     *        The array's Linux device. For example /dev/mdadm0.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withDevice(String device) {
        setDevice(device);
        return this;
    }

    /**
     *

     * The array's mount point.
     *

     *
     * @param mountPoint
     *        The array's mount point.
     */

    public void setMountPoint(String mountPoint) {
        this.mountPoint = mountPoint;
    }

    /**
     *

     * The array's mount point.
     *

     *
     * @return The array's mount point.
     */

    public String getMountPoint() {
        return this.mountPoint;
    }

    /**
     *

     * The array's mount point.
     *

     *
     * @param mountPoint
     *        The array's mount point.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withMountPoint(String mountPoint) {
        setMountPoint(mountPoint);
        return this;
    }

    /**
     *

     * The array's Availability Zone. For more information, see Regions and Endpoints.
     *

     *
     * @param availabilityZone
     *        The array's Availability Zone. For more information, see Regions and Endpoints.
     */

    public void setAvailabilityZone(String availabilityZone) {
        this.availabilityZone = availabilityZone;
    }

    /**
     *

     * The array's Availability Zone. For more information, see Regions and Endpoints.
     *

     *
     * @return The array's Availability Zone. For more information, see Regions and Endpoints.
     */

    public String getAvailabilityZone() {
        return this.availabilityZone;
    }

    /**
     *

     * The array's Availability Zone. For more information, see Regions and Endpoints.
     *

     *
     * @param availabilityZone
     *        The array's Availability Zone. For more information, see Regions and Endpoints.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withAvailabilityZone(String availabilityZone) {
        setAvailabilityZone(availabilityZone);
        return this;
    }

    /**
     *

     * When the RAID array was created.
     *

     *
     * @param createdAt
     *        When the RAID array was created.
     */

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    /**
     *

     * When the RAID array was created.
     *

     *
     * @return When the RAID array was created.
     */

    public String getCreatedAt() {
        return this.createdAt;
    }

    /**
     *

     * When the RAID array was created.
     *

     *
     * @param createdAt
     *        When the RAID array was created.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withCreatedAt(String createdAt) {
        setCreatedAt(createdAt);
        return this;
    }

    /**
     *

     * The stack ID.
     *

     *
     * @param stackId
     *        The stack ID.
     */

    public void setStackId(String stackId) {
        this.stackId = stackId;
    }

    /**
     *

     * The stack ID.
     *

     *
     * @return The stack ID.
     */

    public String getStackId() {
        return this.stackId;
    }

    /**
     *

     * The stack ID.
     *

     *
     * @param stackId
     *        The stack ID.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withStackId(String stackId) {
        setStackId(stackId);
        return this;
    }

    /**
     *

     * The volume type, standard or PIOPS.
     *

     *
     * @param volumeType
     *        The volume type, standard or PIOPS.
     */

    public void setVolumeType(String volumeType) {
        this.volumeType = volumeType;
    }

    /**
     *

     * The volume type, standard or PIOPS.
     *

     *
     * @return The volume type, standard or PIOPS.
     */

    public String getVolumeType() {
        return this.volumeType;
    }

    /**
     *

     * The volume type, standard or PIOPS.
     *

     *
     * @param volumeType
     *        The volume type, standard or PIOPS.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withVolumeType(String volumeType) {
        setVolumeType(volumeType);
        return this;
    }

    /**
     *

     * For PIOPS volumes, the IOPS per disk.
     *

     *
     * @param iops
     *        For PIOPS volumes, the IOPS per disk.
     */

    public void setIops(Integer iops) {
        this.iops = iops;
    }

    /**
     *

     * For PIOPS volumes, the IOPS per disk.
     *

     *
     * @return For PIOPS volumes, the IOPS per disk.
     */

    public Integer getIops() {
        return this.iops;
    }

    /**
     *

     * For PIOPS volumes, the IOPS per disk.
     *

     *
     * @param iops
     *        For PIOPS volumes, the IOPS per disk.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public RaidArray withIops(Integer iops) {
        setIops(iops);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getRaidArrayId() != null)
            sb.append("RaidArrayId: ").append(getRaidArrayId()).append(",");
        if (getInstanceId() != null)
            sb.append("InstanceId: ").append(getInstanceId()).append(",");
        if (getName() != null)
            sb.append("Name: ").append(getName()).append(",");
        if (getRaidLevel() != null)
            sb.append("RaidLevel: ").append(getRaidLevel()).append(",");
        if (getNumberOfDisks() != null)
            sb.append("NumberOfDisks: ").append(getNumberOfDisks()).append(",");
        if (getSize() != null)
            sb.append("Size: ").append(getSize()).append(",");
        if (getDevice() != null)
            sb.append("Device: ").append(getDevice()).append(",");
        if (getMountPoint() != null)
            sb.append("MountPoint: ").append(getMountPoint()).append(",");
        if (getAvailabilityZone() != null)
            sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(",");
        if (getCreatedAt() != null)
            sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
        if (getStackId() != null)
            sb.append("StackId: ").append(getStackId()).append(",");
        if (getVolumeType() != null)
            sb.append("VolumeType: ").append(getVolumeType()).append(",");
        if (getIops() != null)
            sb.append("Iops: ").append(getIops());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof RaidArray == false)
            return false;
        RaidArray other = (RaidArray) obj;
        if (other.getRaidArrayId() == null ^ this.getRaidArrayId() == null)
            return false;
        if (other.getRaidArrayId() != null && other.getRaidArrayId().equals(this.getRaidArrayId()) == false)
            return false;
        if (other.getInstanceId() == null ^ this.getInstanceId() == null)
            return false;
        if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false)
            return false;
        if (other.getName() == null ^ this.getName() == null)
            return false;
        if (other.getName() != null && other.getName().equals(this.getName()) == false)
            return false;
        if (other.getRaidLevel() == null ^ this.getRaidLevel() == null)
            return false;
        if (other.getRaidLevel() != null && other.getRaidLevel().equals(this.getRaidLevel()) == false)
            return false;
        if (other.getNumberOfDisks() == null ^ this.getNumberOfDisks() == null)
            return false;
        if (other.getNumberOfDisks() != null && other.getNumberOfDisks().equals(this.getNumberOfDisks()) == false)
            return false;
        if (other.getSize() == null ^ this.getSize() == null)
            return false;
        if (other.getSize() != null && other.getSize().equals(this.getSize()) == false)
            return false;
        if (other.getDevice() == null ^ this.getDevice() == null)
            return false;
        if (other.getDevice() != null && other.getDevice().equals(this.getDevice()) == false)
            return false;
        if (other.getMountPoint() == null ^ this.getMountPoint() == null)
            return false;
        if (other.getMountPoint() != null && other.getMountPoint().equals(this.getMountPoint()) == false)
            return false;
        if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null)
            return false;
        if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false)
            return false;
        if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
            return false;
        if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
            return false;
        if (other.getStackId() == null ^ this.getStackId() == null)
            return false;
        if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false)
            return false;
        if (other.getVolumeType() == null ^ this.getVolumeType() == null)
            return false;
        if (other.getVolumeType() != null && other.getVolumeType().equals(this.getVolumeType()) == false)
            return false;
        if (other.getIops() == null ^ this.getIops() == null)
            return false;
        if (other.getIops() != null && other.getIops().equals(this.getIops()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getRaidArrayId() == null) ? 0 : getRaidArrayId().hashCode());
        hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode());
        hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
        hashCode = prime * hashCode + ((getRaidLevel() == null) ? 0 : getRaidLevel().hashCode());
        hashCode = prime * hashCode + ((getNumberOfDisks() == null) ? 0 : getNumberOfDisks().hashCode());
        hashCode = prime * hashCode + ((getSize() == null) ? 0 : getSize().hashCode());
        hashCode = prime * hashCode + ((getDevice() == null) ? 0 : getDevice().hashCode());
        hashCode = prime * hashCode + ((getMountPoint() == null) ? 0 : getMountPoint().hashCode());
        hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode());
        hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode());
        hashCode = prime * hashCode + ((getVolumeType() == null) ? 0 : getVolumeType().hashCode());
        hashCode = prime * hashCode + ((getIops() == null) ? 0 : getIops().hashCode());
        return hashCode;
    }

    @Override
    public RaidArray clone() {
        try {
            return (RaidArray) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

    @com.amazonaws.annotation.SdkInternalApi
    @Override
    public void marshall(ProtocolMarshaller protocolMarshaller) {
        com.amazonaws.services.opsworks.model.transform.RaidArrayMarshaller.getInstance().marshall(this, protocolMarshaller);
    }
}


text:
from config import NUM_TRAINING_ITERATIONS, CONVERGENCE_THRESHOLD
from formulas import err
from models import Layer, cfile

f = None
curr_point = 0
target = []
attrs = []
total_runs = 0
data = None
num_incorrect = 0
prev_sample_err = 0
curr_sample_err = 0

def parse_data(fname):
    # reset all the data
    global curr_point
    global total_runs
    global target
    global attrs
    global num_incorrect
    global prev_sample_err
    global curr_sample_err
    global data
    global f

    curr_point = 0
    total_runs = 0
    target = []
    attrs = []
    num_incorrect = 0
    prev_sample_err = 0
    curr_sample_err = 0

    # set the proper data file
    data_file = 'err.txt'
    if fname == 'mushroom-training.txt':
        data_file = 'training_err.txt'
    elif fname == 'mushroom-testing.txt':
        data_file = 'testing_err.txt'

    # clear the file
    open(data_file, 'w+').close()

    # open the data file for logging
    data = cfile(data_file, 'w')

    f = open(fname, 'r').readlines()

    for row in f:
        row = [x.strip() for x in row.split(',')]
        row = [int(num) for num in row]
        target.append(int(row[0]))
        attrs.append(row[1:])

if __name__ == '__main__':
    print "Parsing the training dataset..."
    # parse the training dataset and store its information into globals
    parse_data('mushroom-training.txt')

    # set up the layers to be used
    x = Layer(6, attrs[curr_point], 1)
    y = Layer(1, x.layer_out, 2)

    print "Begining training the neural network:"
    # iterate through to train the neural network
    while total_runs < NUM_TRAINING_ITERATIONS:
        # set the new input values
        x.input_vals = attrs[curr_point]

        # set up the first layer and evaluate it
        x.input_vals = attrs[curr_point]
        x.eval()

        # set up the second layer and evaluate it
        y.input_vals = x.layer_out
        y.eval()

        # backpropogate
        y.backprop(target[curr_point])
        x.backprop(y)

        # get the current error
        curr_err = err(y.layer_out[0], target[curr_point])

        # round up and down to check err
        if y.layer_out[0] >= 0.5:
            temp = 1
        else:
            temp = 0

        # increment the number incorrect if its wrong
        if(temp != target[curr_point]):
            num_incorrect += 1

        # check to see if we have converged
        if total_runs % 100 == 0:
            prev_sample_err = curr_sample_err
            curr_sample_err = curr_err
            if abs(prev_sample_err - curr_sample_err) < CONVERGENCE_THRESHOLD:
                print "Data has converged at the " + str(total_runs) + "th run."
                break;

        # print information about the current iteration
        print "Current iteration: " + str(total_runs)
        print "Current error: " + str(curr_err) + "\n"
        data.w(curr_err)

        # iterate
        total_runs += 1
        curr_point += 1

        if curr_point >= len(f):
            curr_point = 0

    # close the file
    data.close()

    print "Neural network is done training! Hit enter to test it."
    print "Error percentage on testing set: " + str(float(num_incorrect)/NUM_TRAINING_ITERATIONS)
    raw_input()

    print "Begin testing the neural network:"
    # parse the testing data and store its information into globals
    parse_data('mushroom-testing.txt')

    # iterate through to test the neural network
    while curr_point < len(f):
        # set the new input values
        x.input_vals = attrs[curr_point]

        # set up the first layer and evaluate it
        x.input_vals = attrs[curr_point]
        x.eval()

        # set up the second layer and evaluate it
        y.input_vals = x.layer_out
        y.eval()

        # backpropogate
        y.backprop(target[curr_point])
        x.backprop(y)

        # get the current error
        curr_err = err(y.layer_out[0], target[curr_point])

        # round up and down to check err
        if y.layer_out[0] >= 0.5:
            temp = 1
        else:
            temp = 0

        # increment the number incorrect if its wrong
        if(temp != target[curr_point]):
            num_incorrect += 1

        # check to see if we have converged
        if total_runs % 100 == 0:
            prev_sample_err = curr_sample_err
            curr_sample_err = curr_err
            if abs(prev_sample_err - curr_sample_err) < CONVERGENCE_THRESHOLD:
                print "Data has converged at the " + str(total_runs) + "th run."
                break;

        # print information about the current iteration
        print "Current iteration: " + str(total_runs)
        print "Current Error: " + str(curr_err) + "\n"
        data.w(curr_err)

        # iterate
        total_runs += 1
        curr_point += 1

    data.close()
    print "Testing done! Check out the generated output files ('testing_err.txt' and 'training_err.txt')"
    print "Error percentage on training set: " + str(float(num_incorrect)/len(f))


text:
This is a Go (golang) image with basic build tools included so you can
do a `go build` and things out of the box.


text:
**jquery.hideItems** is a jQuery plugin that hide and/or show specific items of a list of elements.

## Installation

* [npm](http://npmjs.org/)

```bash
npm install jquery.eqHeight
```

* [Bower](http://bower.io)

```bash
bower install jquery.hideItems
```

* [Download](https://github.com/reinos/jquery.hideItems/archive/master.zip)

### Put hideItems in your page

Please note that you have to include hideItems after jQuery.

```html
<script src="http://code.jquery.com/jquery.min.js"></script>

<!-- put hideItems after jQuery -->
<script src="jquery.stickyfooter.js"></script>
```

### Use hideItems in your page

Using stickyFooter is simple.
You have to specify a CSS3 selector for element.

Say your HTML looks like this:

```html
<div class="hideItems"
	<ul class="items">
	    <li>Items 1</li>
	    <li>Items 2</li>
	    <li>Items 3</li>
	    <li>Items 4</li>
	</ul>
	<div class="more"></div>
</div>
```

A simple hideItems setup for the above HTML would be:

```html
<script>
$(document).ready(function() {
    $(".hideItems").hideItems();
});
</script>
```

#### Options

##### moreClass
The class that trigger the plugin to show more items

```javascript
$(".hideItems").eqHeight({
    moreClass: "more"
});
```

##### listClass
The class that holds the list
```javascript
$(".hideItems").eqHeight({
    listClass: "items"
});
```

##### visible
The number of items that are visible

```javascript
$(".hideItems").eqHeight({
    visible: 2
});
```

##### autoClose
Auto close other lists

```javascript
$(".hideItems").eqHeight({
    autoClose: true
});
```

##### toggle
Toggle between lists items. By setting to false, the list stay open even when you open another list.

```javascript
$(".hideItems").eqHeight({
    toggle: true
});
```


text:
Leeroy is a self hosted, continuous integration, build and deployment service. It is designed to be easy to setup and will not require an additional ops person to keep running. It runs on your own server, so you can create the test environment you want, exactly mirroring production, without having to trust anyone else to keep your source code or eventually database images with sensitive information safe.

![Leeroy](https://raw.github.com/fallenhitokiri/leeroyci/master/assets/leeroy-black.png)

## Integrations
Currently Leeroy plays nicely with GitHub. An integration for GitLab is current WIP, BitBucket should be supported before the first release.

## Features
- self hosted
- bring your own build / test scripts
- comment on GitHub pull requests
- close GitHub pull requests if the build for HEAD fails
- send notifications about the build via email
- post results to a Slack, Campfire or HipChat channel
- see all builds on an acceptable designed - read bootstrap - webinterface
- continuous deployment using your own deployment scripts - deploy to whichever environment you want.
- search for branches, commits and repositories

## Quickstart
For now please check out the master branch of this repository and run it via `go run leeroy.go`. Binaries will be available with the first stable release.
Master can be considered production ready. Development is used by people who want to have the latest features and can accept if smaller problems show up, but the goal is to keep it stable, too.

### Build Script
Before you start make sure you have a script that is able to run tests for your repository. Two arguments are passed to your build script, the repository URL (first argument) and the branch name (second argument) to which was pushed. Let us use a really simple one for now

     #! /bin/bash
     ls

We assume this script is saved in `/home/ec2-user/test.sh`. See `docs/buildscripts.md` for more information and sample scripts.

### Configuration
To set the path for the SQLite database you can use the environment variable `DATABASE_URL`. The format is `sqlite3 /path/to/leeory.sqlite3`.

Once Leeroy is running go to port `8082` in your web browser and click through the setup assistant. The user you create will automatically be an administrator. If you add an SSL certificate you have to restart Leeroy after completing the setup.

To configure a repository click on `Admin -> Repository Management -> Add Repository`. After adding the repository you can add commands and notifications on the repository detail page you are redirected to. The access key needs permissions to update the status of your commits, comment on PRs and close them if you want to use that feature.

For a command you can select a kind, name, branch and script to run. If a branch is specified the command will only run when you push to the specific branch. For the script please specify the full path.

The order to run commands is

1. tests
2. builds
3. deploy

The script runner exists on the first failed step, so if tests fail builds and deploys will never run.

On GitHub you have to setup a webhook pointing to `http://yourhost:8082/callback/github/` - or `https://…` if you configured SSL and make sure it sends "push" and "pull" events.

## Planned Features
While Leeroy is working and doing its job it is far from being feature complete. Before version 1.0 will be released the following features will be finished

- GitLab integration
- Bitbucket integration
- support for custom templates and notifications
- website with a browsable documentation and more default snippets

## Contributing
Feel free to open issues about bugs or features you want to see or open pull requests. Beside using `go fmt` and `go vet` on your code please try to keep the code length around 80 characters. This is no hard limit. If a line is 86 characters long but easy to read and understand there is no need to break it into multiple lines.

## License
Leeroy is released under the MIT license.


text:
The Java Client API welcomes new contributors. This document will guide you
through the process.

 - [Question or Problem?](#question)
 - [Issues and Bugs](#issue)
 - [Feature Requests](#feature)
 - [Submission Guidelines](#submit)

##  Got a Question or Problem?

If you have questions about how to use the Java Client API, you can ask on
[StackOverflow](http://stackoverflow.com/tags/marklogic), tagging the question
with MarkLogic.

##  Found an Issue?
If you find a bug in the source code or a mistake in the documentation, you can help us by
submitting an issue to our [GitHub Issue
Tracker](https://github.com/marklogic/java-client-api/issues). Even better you
can submit a Pull Request with a fix for the issue you filed.

##  Want a Feature?
You can request a new feature by submitting an issue to our
[GitHub Issue Tracker](https://github.com/marklogic/java-client-api/issues).
If you would like to implement a new feature then first create a new issue and
discuss it with one of our project maintainers.

##  Submission Guidelines

### Submitting an Issue
If your issue appears to be a bug, and hasn't been reported, open a new issue.
Providing the following information will increase the chances of your issue
being dealt with quickly:

* **Overview of the Issue** - if an error is being thrown a stack trace helps
* **Motivation for or Use Case** - explain why this is a bug for you
* **Environment** - Mac, windows? Firefox, Chrome? details help
* **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point
to what might be causing the problem (line of code or commit)

### Submitting a Pull Request

#### Fill in the CLA

Before we can accept your pull request, we need you to sign the [Contributor
License Agreement](http://developer.marklogic.com/products/cla).

#### Fork the Java Client API

Fork the project [on GitHub](https://github.com/marklogic/java-client-api/fork)
and clone your copy.

    $ git clone git@github.com:username/java-client-api.git
    $ cd java-client-api
    $ git remote add upstream git://github.com/marklogic/java-client-api.git

All bug fixes and new features go into the
[develop](https://github.com/marklogic/java-client-api/tree/develop) branch.

We ask that you open an issue in the
[issue tracker](https://github.com/marklogic/java-client-api/issues)
and get agreement from at least one of the project maintainers before you start
coding.

Nothing is more frustrating than seeing your hard work go to waste because
your vision does not align with that of a project maintainer.

#### Choose the appropriate branch

While the \*master branches reflect the latest released code for the
corresponding server release, the \*develop branches reflect the latest changes
that will be released next and are therefore the right place to commit changes.
To be clear, the following branches have the assigned meaning:
* develop - the place to make changes for the next release
* master  - the stable code from the last release
* 3.0-develop - the place to make changes for the next 3.x release (corresponds with the next server 8.x release)
* 3.0-master  - the stable code from the last 3.x release (corresponds with the latest server 8.x release)
* 2.0-develop - the place to make changes for the next 2.x release (corresponds with the next server 7.x release)
* 2.0-master  - the stable code from the last 2.x release (corresponds with the latest server 7.x release)
* 1.0-develop - the place to make changes for the next 1.x release (corresponds with the next server 6.x release)
* 1.0-master  - the stable code from the last 1.x release (corresponds with the latest server 6.x release)

#### Create a branch for your changes

Okay, so you have decided to fix something. Create a feature branch
and start hacking:

    $ git checkout -b my-feature-branch -t origin/develop

#### Commit your changes

Make sure git knows your name and email address:

    $ git config --global user.name "J. Random User"
    $ git config --global user.email "j.random.user@example.com"

Writing good commit logs is important. A commit log should describe what
changed and why. Follow these guidelines when writing one:

1. The first line should be 50 characters or less and contain a short
   description of the change including the Issue number prefixed by a hash (#).
2. Keep the second line blank.
3. Wrap all other lines at 72 columns.

A good commit log looks like this:

```
Fixing Issue #123: make the whatchamajigger work in MarkLogic 8

Body of commit message is a few lines of text, explaining things
in more detail, possibly giving some background about the issue
being fixed, etc etc.

The body of the commit message can be several paragraphs, and
please do proper word-wrap and keep columns shorter than about
72 characters or so. That way `git log` will show things
nicely even when it is indented.
```

The header line should be meaningful; it is what other people see when they
run `git shortlog` or `git log --oneline`.

#### Rebase your repo

Use `git rebase` (not `git merge`) to sync your work from time to time.

    $ git fetch upstream
    $ git rebase upstream/develop

#### Test your code

Be sure to run the tests before submitting your pull request. PRs with failing
tests won't be accepted.

First verify that you have valid server and admin auth info in
`SERVER_ADMIN_USER` and `SERVER_ADMIN_PASS` fields in
src/test/java/com/marklogic/client/test/Common.java

    $ ./gradlew clean
    $ ./gradlew testServerInit
    $ ./gradlew test

#### If your server is not on localhost

You can either create SSH tunnels to your server on ports 8000, 8002, and 8012
by a command like:

    ssh -L 8000:localhost:8000 -L 8002:localhost:8002 -L 8012:localhost:8012 user@hostname

Or you can update the static `HOST` field in
src/test/java/com/marklogic/client/test/Common.java
and the `example.host` property in src/main/resources/Example.properties.

#### Push your changes

    $ git push origin my-feature-branch

#### Submit the pull request

Go to https://github.com/username/java-client-api and select your feature
branch. Click the 'Pull Request' button and fill out the form.

Pull requests are usually reviewed within a few days. If you get comments that
need to be to addressed, apply your changes in a separate commit and push that
to your feature branch. Post a comment in the pull request afterwards; GitHub
does not send out notifications when you add commits to existing pull requests.

That's it! Thank you for your contribution!

#### After your pull request is merged

After your pull request is merged, you can safely delete your branch and pull
the changes from the main (upstream) repository:

* Delete the remote branch on GitHub either through the GitHub web UI or your
local shell as follows:

    $ git push origin --delete my-feature-branch

* Check out the *develop* branch:

    $ git checkout develop -f

* Delete the local branch:

    $ git branch -D my-feature-branch

* Update your *develop* with the latest upstream version:

    $ git pull --ff upstream develop